joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4025be
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
xor ebx, ebx
cmp dword [ecx + 4], ebx
mov dword [ebp - 0xc], ecx
jne 0x4026a9
push esi
push edi
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0x80
push 3
push ebx
mov edi, 0x80000000
push 1
push edi
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
setne al
push 0x42d1e0
push eax
call fcn.0041203f
pop ecx
pop ecx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp + 8]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x42d5fc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp + 8], 0x42d5fc
je 0x402699
mov eax, dword [ebp + 8]
push ebx
push 0x80
push 3
push ebx
push 1
push edi
push dword [eax]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x402663
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp - 0x10]
add dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40268e
cmp byte [ebp + 0xc], bl
jne 0x40268e
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0x110]
push 0x42d6bc
push eax
call fcn.0041cec8
lea eax, [ebp - 0x110]
push eax
push ebx
call fcn.0041203f
add esp, 0x14
add dword [ebp + 8], 4
mov eax, dword [ebp + 8]
cmp dword [eax], ebx
jne 0x402632
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
add ecx, eax
mov eax, dword [ebp - 0xc]
pop edi
pop esi
mov dword [eax + 4], ecx
mov al, 1
pop ebx
leave
ret 8

Function at 0x4026b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [ebp + 0x10]
push ebx
push eax
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [ebp + 0xc]
cmp eax, 0xffffffff
push 0x42d710
mov dword [esi], eax
setne al
push eax
call fcn.0041203f
push dword [esi]
call fcn.0041c945
add esp, 0xc
lea ecx, [ebp + 8]
mov dword [ebp + 0x10], eax
mov dword [ebp + 8], ebx
push ebx
push ecx
push dword [esi]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402721
mov eax, dword [esi]
cmp eax, dword [ebp + 8]
jne 0x402721
mov bl, 1
push 0x42d6d0
push ebx
call fcn.0041203f
mov eax, dword [ebp + 0x10]
pop ecx
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40282f
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
xor ecx, ecx
or dword [esi], 0xffffffff
or dword [esi + 0x10], 0xffffffff
or dword [esi + 8], 0xffffffff
push edi
mov dword [esi + 4], ecx
mov dword [esi + 0x14], ecx
mov edi, dword [eax + 0x28]
mov dword [ebp + 0xc], ecx
mov dword [esi + 0xc], edi
movzx edx, word [eax + 0x14]
lea edx, [edx + eax + 0x18]
movzx eax, word [eax + 6]
cmp eax, ecx
mov dword [ebp + 8], eax
jbe 0x402896
mov eax, dword [edx + 0x10]
mov ecx, dword [edx + 8]
cmp ecx, eax
jae 0x40287a
mov eax, ecx
mov ebx, dword [edx + 0xc]
cmp edi, ebx
jb 0x402888
lea ecx, [ebx + eax]
cmp edi, ecx
jb 0x4028ad
inc dword [ebp + 0xc]
add edx, 0x28
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 8]
jb 0x40286e
push 0x42d77c
push 0
call fcn.0041203f
pop ecx
xor al, al
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8
mov ecx, dword [ebp + 0xc]
sub edi, ebx
mov dword [esi], ecx
mov dword [esi + 4], edx
mov dword [esi + 8], edi
mov ecx, dword [edx + 0x14]
add ecx, edi
sub eax, edi
mov dword [esi + 0x10], ecx
mov ecx, dword [ebp - 4]
mov ebx, eax
call fcn.004027c2
test al, al
je 0x4028ef
mov edi, 0x80
push 0x42d74c
cmp ebx, edi
sbb al, al
inc al
push eax
call fcn.0041203f
pop ecx
mov dword [esi + 0x14], edi
pop ecx
jmp 0x4028f2
mov dword [esi + 0x14], ebx
mov al, 1
jmp 0x4028a6

Function at 0x402984
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push 0x42d7e4
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4029de
push ebx
lea eax, [ebp - 4]
push esi
push eax
mov esi, 0x4353a4
push 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push edi
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
pop ebx
je 0x4029de
cmp dword [ebp - 4], 8
jne 0x4029de
mov eax, esi
jmp 0x4029e0
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x4029e4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push 0x42d7e4
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402a41
lea eax, [ebp - 4]
push 0
push eax
push 8
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
setne byte [ebp + 0xb]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp + 0xb], 0
je 0x402a3d
cmp dword [ebp - 4], 8
jne 0x402a3d
xor eax, eax
inc eax
jmp 0x402a43
xor eax, eax
jmp 0x402a43
xor al, al
pop esi
leave
ret 4
Function at 0x403547
Capabilities:
Create thread
Print debug messages

Disassembly:
push esi
mov esi, ecx
fld dword [esi + 0x18]
fcomp dword [0x4292d0]
fnstsw ax
test ah, 0x41
je 0x403579
call fcn.004078a0
test al, al
jne 0x403579
push 0
push 0x42dbcc
push 0x42db80
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
ret
mov ecx, esi
call fcn.00403cd1
call fcn.00401006
mov ecx, eax
call fcn.0040117b
test al, al
jne 0x403577
call fcn.00401006
mov ecx, eax
call fcn.0040103b
mov ecx, esi
call fcn.004035af
test al, al
je 0x403577
mov ecx, esi
pop esi
jmp fcn.0040373b

Function at 0x4035af
Capabilities:
Create process on windows
Print debug messages
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x950
push ebx
push esi
push edi
push 0x44
pop esi
xor ebx, ebx
push esi
lea eax, [ebp - 0x50]
push ebx
push eax
mov dword [ebp - 0xc], ecx
call fcn.0041ce70
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 0x50], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 1
push 0x100000
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call edi
test eax, eax
jne 0x40362d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x950]
push 0x42dc68
push eax
call fcn.0041cec8
add esp, 0xc
lea eax, [ebp - 0x950]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x403730
push 2
push 1
lea eax, [ebp - 8]
push 0x100001
push eax
call esi
push eax
call fcn.00401006
mov ecx, eax
call fcn.004011c3
push eax
call esi
push eax
call edi
test eax, eax
jne 0x403689
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x950]
push 0x42dc34
push eax
call fcn.0041cec8
add esp, 0xc
lea eax, [ebp - 0x950]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403730
push dword [ebp - 8]
mov edi, 0x42dc2c
lea eax, [ebp - 0x150]
push edi
push eax
call fcn.0041cec8
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
add esp, 0xc
lea eax, [ebp - 0x150]
push eax
push 0x42dc20
call esi
push dword [ebp - 4]
lea eax, [ebp - 0x150]
push edi
push eax
call fcn.0041cec8
add esp, 0xc
lea eax, [ebp - 0x150]
push eax
push 0x42dc10
call esi
mov eax, dword [ebp - 0xc]
add eax, 0x48
push eax
lea eax, [ebp - 0x50]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push ebx
push 0x42d614
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x403734
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x950]
push 0x42dbdc
push eax
call fcn.0041cec8
add esp, 0xc
lea eax, [ebp - 0x950]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 8]
call esi
xor al, al
jmp 0x403736
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404c20
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push dword [0x435548]
mov esi, ecx
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [esi + 0x30]
mov ebx, eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0xc], eax
xor eax, eax
cmp byte [esi], al
je 0x404cb2
mov dword [ebp - 4], eax
call fcn.00407c40
test eax, eax
jle 0x404ccb
push edi
push dword [ebp - 4]
lea eax, [ebp - 0x2c]
push eax
call fcn.00407cc0
mov esi, eax
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
movsd dword es:[edi], dword [esi]
pop ecx
push 0xcc0020
movsd dword es:[edi], dword [esi]
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push dword [ebp - 0x1c]
push ebx
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_BitBlt]
inc dword [ebp - 4]
call fcn.00407c40
cmp dword [ebp - 4], eax
jl 0x404c62
pop edi
jmp 0x404ccb
push 0xcc0020
push eax
push eax
push ebx
push dword [esi + 0x28]
push dword [esi + 0x2c]
push eax
push eax
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 8]
push dword [0x435548]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop esi
pop ebx
leave
ret

Function at 0x405089
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push 0x42dde8
lea eax, [ebp - 0x210]
push 0x42df00
push eax
call fcn.0041cec8
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0xf003f
lea eax, [ebp - 0x210]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4050fe
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x42def0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4050fe
cmp dword [ebp - 4], eax
setne al
mov byte [0x43553c], al
leave
ret
Function at 0x405344
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x800
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp dword [esi + 0x5c], ebx
jne 0x405391
push ebx
push ebx
push 1
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0x5c], eax
jne 0x405391
call ebp
push eax
lea eax, [esp + 0x14]
push 0x42df40
push eax
call fcn.0041cec8
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [esi + 0x60], ebx
jne 0x4053c4
push ebx
push ebx
push 1
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0x60], eax
jne 0x4053c4
call ebp
push eax
lea eax, [esp + 0x14]
push 0x42df04
push eax
call fcn.0041cec8
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x814]
mov eax, dword [esi + 0x5c]
pop edi
mov dword [ecx], eax
mov eax, dword [esi + 0x60]
mov ecx, dword [esp + 0x814]
pop esi
pop ebp
pop ebx
mov dword [ecx], eax
add esp, 0x800
ret 8

Function at 0x405a57
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push edi
push esi
push esi
push 3
push esi
push esi
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x405ac2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x405a94
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x405ac2
push ebx
call fcn.0041d582
cmp eax, esi
pop ecx
mov dword [ebp + 8], eax
je 0x405a8b
lea ecx, [ebp - 4]
push esi
push ecx
push ebx
push eax
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
jne 0x405ac6
xor al, al
jmp 0x405ae1
push ebx
push dword [ebp + 8]
call fcn.004058f6
mov ecx, dword [ebp + 0xc]
push dword [ebp + 8]
mov dword [ecx], eax
call fcn.0041d499
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4128db
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
cmp byte [esi], 0
jne 0x412944
push dword [esi + 8]
lea ecx, [ebp - 8]
call fcn.0041437a
mov ecx, esi
call fcn.0041227f
test al, al
jne 0x41293c
lea ecx, [ebp - 4]
call fcn.0041435b
lea ecx, [ebp - 8]
call fcn.0041478d
push eax
lea eax, [ebp - 4]
push 0x42fc48
push eax
call fcn.004146f8
add esp, 0xc
lea ecx, [ebp - 4]
call fcn.0041478d
push eax
push 0x42fc34
call fcn.00414186
pop ecx
pop ecx
push 0xffffffffffffffff
call fcn.0041e113
lea ecx, [ebp - 8]
call fcn.00414435
pop esi
leave
ret

Function at 0x412d92
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 0xc]
test edx, edx
mov eax, dword [esp + 4]
je 0x412dbe
mov ecx, dword [esp + 8]
push esi
push edi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
mov esi, dword [esi*4 + 0x42f758]
shr eax, 8
xor eax, esi
inc ecx
dec edx
jne 0x412da4
pop edi
pop esi
ret

Function at 0x414ca1
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.0041cd30
lea eax, [ebp - 0x104]
push eax
call fcn.00414d23
add esp, 0xc
push 0
lea eax, [ebp - 0x104]
push eax
call esi
test eax, eax
jne 0x414d1e
lea eax, [ebp - 0x104]
push 0x5c
push eax
call fcn.0041ce20
test eax, eax
pop ecx
pop ecx
jne 0x414d06
lea eax, [ebp - 0x104]
push 0x2f
push eax
call fcn.0041ce20
test eax, eax
pop ecx
pop ecx
je 0x414d1a
and byte [eax], 0
push 0
lea eax, [ebp - 0x104]
push eax
call esi
test eax, eax
je 0x414cde
jmp 0x414cb1
xor al, al
jmp 0x414d20
mov al, 1
pop esi
leave
ret

Function at 0x414de9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x414dfb
xor al, al
ret
and eax, 1
dec al
neg al
sbb eax, eax
inc eax
ret

Function at 0x414e06
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x414e2d
and eax, 0xfffffffe
cmp byte [esp + 8], 0
je 0x414e22
or eax, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret
Function at 0x4204d3
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x431ed0]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x420530
push 0x74
push 1
call fcn.0041ef03
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x420528
push esi
push dword [0x431ed0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x420528
push esi
call fcn.004204c0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x420530
push 0x10
call fcn.0041d8fa
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret

Function at 0x422935
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov ecx, dword [ebp + 8]
xor eax, eax
cmp ecx, dword [eax*8 + 0x434300]
je 0x422952
inc eax
cmp eax, 0x12
jb 0x422943
push esi
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x434300]
jne 0x422a80
mov eax, dword [0x437538]
cmp eax, 1
je 0x422a5a
test eax, eax
jne 0x422983
cmp dword [0x431ad4], 1
je 0x422a5a
cmp ecx, 0xfc
je 0x422a80
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4229ba
lea eax, [ebp - 0x1a4]
push 0x42b808
push eax
call fcn.0041cd30
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041ccb0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4229fd
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041ccb0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42b708
push edi
call fcn.0041d260
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x42bcbc
push eax
call fcn.0041cd30
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041cd40
lea eax, [ebp - 0xa0]
push 0x42b704
push eax
call fcn.0041cd40
push dword [esi + 0x434304]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041cd40
push 0x12010
lea eax, [ebp - 0xa0]
push 0x42b70c
push eax
call fcn.00422cff
add esp, 0x2c
pop edi
jmp 0x422a80
lea eax, [ebp + 8]
lea esi, [esi + 0x434304]
push 0
push eax
push dword [esi]
call fcn.0041ccb0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x425c31
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
push esi
push edi
xor edi, edi
push edi
push 0x80
push 4
push edi
push 3
push 0x1f03ff
push 0x42bd8c
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, edi
je 0x425caf
push 2
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x804]
push dword [ebp + 8]
push eax
call fcn.0041ed01
add esp, 0xc
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x804]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret

Function at 0x425cb3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
mov ebx, eax
push esi
push 0x80
push 4
push esi
push 3
push 0x1f03ff
push 0x42bd8c
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push esi
lea eax, [ebp - 4]
push esi
push eax
push 0x400
push ebx
push esi
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push dword [ebp - 4]
lea eax, [ebp - 0x808]
push ebx
push 0x42bdb4
push eax
call fcn.0041cec8
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp edi, esi
je 0x425d5d
push 2
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x808]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4012a0
Capabilities:
Bypass uac via icmluautil

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa2c
push ebx
push esi
push 0x400
lea eax, [ebp - 0xa2c]
push 0
push eax
call fcn.004027d0
mov eax, dword [ebp + 0xc]
push dword [eax + 4]
lea eax, [ebp - 0xa2c]
push 0x400
push eax
call fcn.0040442f
add esp, 0x18
call fcn.00401070
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov ebx, eax
mov dword [ebp + 0xc], 0
mov edx, 0x24
lea ecx, [ebp - 0x24]
nop dword [eax + eax]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub edx, 1
jne 0x401300
movups xmm0, xmmword [str.Elevation:Administrator_new:]
mov ax, word [0x412f5c]
push edi
movups xmmword [ebp - 0x22c], xmm0
lea edi, [ebp - 0x22c]
mov dword [ebp - 0x24], 0x24
movups xmm0, xmmword [0x412f34]
mov dword [ebp - 0x10], 4
add edi, 0xfffffffe
mov word [ebp - 0x1f4], ax
movups xmmword [ebp - 0x21c], xmm0
movups xmm0, xmmword [0x412f44]
movups xmmword [ebp - 0x20c], xmm0
movq xmm0, qword [0x412f54]
movq qword [ebp - 0x1fc], xmm0
nop word [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x401370
mov ecx, 0x13
lea eax, [ebp + 0xc]
mov esi, str.3E5FC7F9_9A51_4367_9063_A120244FBEC7
rep movsd dword es:[edi], dword [esi]
push eax
push 0x413048
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x22c]
movsw word es:[edi], word [esi]
push eax
call dword [sym.imp.ole32.dll_CoGetObject]
mov esi, dword [ebp + 0xc]
pop edi
test eax, eax
jne 0x4013c7
test esi, esi
je 0x4013d3
mov eax, dword [esi]
lea ecx, [ebp - 0xa2c]
push 5
push 0
push 0
mov eax, dword [eax + 0x24]
push 0
push ecx
push esi
call eax
test esi, esi
je 0x4013d3
mov eax, dword [esi]
push esi
mov eax, dword [eax + 8]
call eax
pop esi
test ebx, ebx
pop ebx
jne 0x4013df
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x401af6
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401b35
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401b35
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401b35
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401b35
cmp dword [ecx + 0x74], 0xe
jbe 0x401b35
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x406a4a
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x415018]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x406a95
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00406be5
test al, al
jne 0x406a8f
sub edx, 2
cmp edx, edi
jne 0x406a75
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x406ab7
lea eax, [edi + 2]
cmp edx, eax
je 0x406ab7
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00406996
add esp, 0x10
jmp 0x406bb1
push esi
lea ecx, [ebp - 0x255]
call fcn.00406be5
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406afa
push dword [ebp - 0x25c]
jmp 0x406aa7
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x406b37
cmp word [ebp - 0x226], 0
je 0x406b58
cmp word [ebp - 0x226], ax
jne 0x406b37
cmp word [ebp - 0x224], 0
je 0x406b58
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00406996
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x406ba4
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x406b11
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x406b8c
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x406bb1
push 0x4067c6
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00409b60
add esp, 0x10
jmp 0x406b81
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401e25
leave
ret

Function at 0x4076ed
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4076fe
pop esi
ret
push ebx
push edi
push esi
call fcn.004076b6
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00406641
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x407726
push ebx
push esi
push edi
call fcn.00403c70
add esp, 0xc
push 0
call fcn.0040678c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x407af6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040773b