joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406743
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405632
and dword [ebp - 4], 0
cmp dword [0x4112c0], 0
mov ebx, eax
jne 0x4067f4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4068a5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4068a5
push eax
call fcn.004055c0
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4112c0], eax
call esi
push eax
call fcn.004055c0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4112c4], eax
call esi
push eax
call fcn.004055c0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4112c8], eax
call esi
push eax
call fcn.004055c0
pop ecx
mov dword [0x4112d0], eax
test eax, eax
je 0x4067f4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004055c0
pop ecx
mov dword [0x4112cc], eax
mov eax, dword [0x4112cc]
cmp eax, ebx
je 0x40684c
cmp dword [0x4112d0], ebx
je 0x40684c
push eax
call fcn.0040563b
push dword [0x4112d0]
mov esi, eax
call fcn.0040563b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40684c
test edi, edi
je 0x40684c
call esi
test eax, eax
je 0x406843
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406843
test byte [ebp - 0xc], 1
jne 0x40684c
or dword [ebp + 0x10], 0x200000
jmp 0x406885
mov eax, dword [0x4112c4]
cmp eax, ebx
je 0x406885
push eax
call fcn.0040563b
pop ecx
test eax, eax
je 0x406885
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406885
mov eax, dword [0x4112c8]
cmp eax, ebx
je 0x406885
push eax
call fcn.0040563b
pop ecx
test eax, eax
je 0x406885
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4112c0]
call fcn.0040563b
pop ecx
test eax, eax
je 0x4068a5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4068a7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4085ae
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4109f8]
jne 0x4085b8
repz ret
jmp fcn.0040b3d5
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
enter 0x84, 0
sub ebp, 0x82
mov dword [ebp - 2], 0
call fcn.00401554
mov ebx, eax
xor eax, eax
mov dword [ebp + 0x7e], eax
lea eax, [ebp + 0x7e]
push eax
mov eax, ebx
or al, 0x40
push eax
mov eax, 0x401e00
sub eax, fcn.004015cb
push eax
push fcn.004015cb
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp + 0x7e], 0
je 0x40107d
mov eax, ebx
lea edx, [ebp - 2]
call fcn.00401478
mov eax, ebx
call fcn.004014c9
lea eax, [ebx + 0x1b600]
lea edx, [ebx - 1]
lea ecx, [ebp - 2]
and edx, eax
test ebx, ebx
je 0x401071
mov eax, 0x402054
add eax, eax
jmp 0x401076
mov eax, 0x402054
mov ebx, ecx
call fcn.004015cb
xor eax, eax
lea esp, [ebp + 0x82]
pop ebp
pop edx
pop ecx
pop ebx
ret

Function at 0x401554
Capabilities:
Delete file
Encode data using base64 via winapi

Disassembly:
push ebx
push ecx
push edx
enter 0x11c, 0
lea ebx, [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push ebx
call dword [sym.imp.USER32.DLL_GetCursorPos]
push 0
push 0
lea ebx, [ebp - 4]
call dword [sym.imp.USER32.DLL_GetWindow]
push ebx
lea ebx, [ebp - 0x18]
push ebx
push 1
push 1
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 4], 0xa
mov byte [ebp - 0x11c], 0
call dword [sym.imp.CRYPT32.DLL_CryptBinaryToStringA]
lea eax, [ebp - 0x18]
movzx ebx, byte [ebp - 0x18]
push eax
sub ebx, 0x41
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov eax, ebx
leave
pop edx
pop ecx
pop ebx
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x6ebe0bc0
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e024
nop
nop
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x42cd70
nop
mov ecx, 0x13bf19b1
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4012ba
Capabilities:
Hide graphical window

Disassembly:
push ebp
push 0x10000
push 0x1000
push 1
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x404014], eax
push 0x64
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, 0x30
push eax
mov dword [eax], ecx
add eax, 0x4c
mov ebp, eax
mov eax, 0x400000
mov dword [0x404010], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], 0x401198
mov dword [ebp - 0x24], str.resiliency
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor eax, eax
push eax
push dword [0x404010]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.abasement
push str.resiliency
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x404018], eax
push eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401384
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x40136b
mov eax, dword [0x404014]
push eax
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
pop ebp
ret 0x10

Function at 0x438cb1
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x438a14
add edi, 1
add eax, 1
sub edi, edi
call fcn.00438cf0
push eax
pop eax
or eax, edi
xor dword [edx], ecx
inc eax
add edx, 1
add edi, edi
sub edi, 0x6fd69187
cmp edx, esi
jne fcn.00438cb1
sub eax, 1
sub eax, 0xeccc78f6
ret
Function at 0x660846a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov eax, 0x103c
mov ebp, esp
push edi
push esi
push ebx
call fcn.660815b0
sub esp, eax
mov ebx, dword [ebp + 8]
mov dword [esp + 8], 6
mov dword [esp + 4], 0x66094170
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll__wcsnicmp]
test eax, eax
je 0x660846e0
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x101c]
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindows_NTCurrentVersionDrivers32
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
je 0x66084750
test byte [0x66090080], 4
je 0x660846d2
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.unable_to_open_registry_key___0x_08lx_n
mov dword [esp + 8], str.MSACM_RegisterDriverFromRegistry
mov dword [esp + 4], 0x66090080
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_3
jmp 0x660846d2
lea eax, [ebp - 0x1020]
lea edi, [ebp - 0x1018]
mov dword [esp + 4], ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x101c]
mov dword [ebp - 0x1020], 0x1000
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
mov esi, eax
test eax, eax
je 0x660847f8
test byte [0x66090080], 4
jne 0x660847c0
mov eax, dword [ebp - 0x101c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
xor eax, eax
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.unable_to_query_requested_subkey__s___0x_08lx_n
mov dword [esp + 8], str.MSACM_RegisterDriverFromRegistry
mov dword [esp + 4], 0x66090080
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_3
jmp 0x660847a3
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], ebx
call sym._MSACM_RegisterDriver
jmp 0x660847a3
Function at 0x66084bf0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [0x66090020]
mov esi, dword [0x66090028]
test ebx, ebx
je 0x66084d22
mov dword [ebp - 0x2c], esi
mov eax, ebx
call sym._MSACM_GetRegistryKey
mov esi, eax
test eax, eax
je 0x66084d0d
lea eax, [ebp - 0x1c]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegCreateKeyW]
sub esp, 0xc
test eax, eax
jne 0x66084cf0
lea eax, [ebx + 0x24]
mov dword [esp + 0x14], 4
mov edi, dword [sym.imp.advapi32.dll_RegSetValueExA]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.cFormatTags
mov dword [esp], eax
call edi
sub esp, 0x18
test eax, eax
jne 0x66084cf0
lea eax, [ebx + 0x20]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.cFilterTags
mov dword [esp], eax
call edi
sub esp, 0x18
test eax, eax
jne 0x66084cf0
lea eax, [ebx + 0x28]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.fdwSupport
mov dword [esp], eax
call edi
sub esp, 0x18
test eax, eax
je 0x66084d48
lea esi, [esi]
mov eax, dword [0x66090018]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov dword [esp], ebx
call sym._MSACM_UnregisterDriver
mov ebx, eax
test eax, eax
jne 0x66084c10
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x66084d3c
mov eax, esi
lea esi, [esi]
nop
mov dword [esp], eax
call sym._MSACM_UnRegisterNotificationWindow
test eax, eax
jne 0x66084d30
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x24]
shl eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0xc], 3
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], 0
mov dword [esp + 4], str.aFormatTagCache
mov dword [esp], eax
call edi
sub esp, 0x18
jmp 0x66084cf0
Function at 0x6608ef80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x6608efdb
cmp byte [esi + ebx - 1], 0xa
je 0x6608efaf
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x66090198], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x407590
Capabilities:
Encode data using xor

Disassembly:
pop ds
mov ebp, dword [ecx + 4]
mov eax, dword [ebx]
lea esi, [ebp - 4]
add ebx, 8
push esi
lea esi, [ebp - 0x54]
push esi
push ecx
push 4
push edx
push eax
call fcn.004085b6
add esp, 0x18
jmp 0x4075de
mov esi, eax
mov ebx, dword [ecx - 0x793f7a1c]
daa
mov eax, dword [ebp - 0x10]
mov al, byte [0xf9816448]
add byte [edx], al
add byte [eax], al
jb 0x4075fa
mov eax, 0x140049ff
cmp dword [ebp - 4], eax
jae 0x40760e
cmp dh, al
push es
xor byte [ebx + 0x3b41fc4d], cl
enter 0x4d89, 0x2a
jb 0x4075ff
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x32357799
mov eax, dword [ebp - 0x28]
test dword [ebx + 0xf], eax
test byte [ecx + 1], ah
add byte [eax], al
mov edx, dword [ebp + 0x10]
xor ecx, dword [esi - 0x76]
add cl, byte [eax + 0x2cc60146]
xor byte [ebx - 0x5d7cd1bb], cl
add ch, cl
mov al, byte [0x5b000001]
xor eax, dword [ebx - 0x97a843d]
and dword [edx + 0x1a0e902], 0
add byte [ebx + 0x33], bl
add ebx, 0x7b
test esi, esi
je 0xd379b6
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x407634
mov edi, esi
mov bh, 0xc9
push dword [ebx]
rol dh, 0x7a
pop ss
and dl, dh
scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 4], ecx
jmp 0x407784
jl 0x4077cc
inc eax
add byte [ebx - 0x3f94f7aa], al
jne 0x4077a1
int1
inc ebp
cld
mov byte [eax + esi], 0x33
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov byte [eax + esi], 0
mov esp, edx
adc byte [eax + 0x13754763], al
push 0xe
aas
call dword [0x41c10e]
and al, ah
or byte [ebx - 0x40], al
je 0x4077bc
mov byte [eax], 0x45
mov al, byte [ebp - 5]
test al, al
movsd dword es:[edi], dword [esi]
daa
cmp esi, 0x6b40c2a0
sub eax, 0xea458d14
cmp esi, eax
lodsb al, byte [esi]
or eax, 0xd6fb4d8a
mov byte [esi], cl
lds eax, [ebp + 0x3c]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x73]
or al, 0xc0
in al, 0x84
add dword [ebx], eax
add byte [edx + 0x1c07d83], ah
jne 0x407aeb
inc ebp
ljmp 0x4d8a
mov edx, dword [ebp - 0x20]
cmpsd dword [esi], dword es:[edi]
adc al, 0xe3
cmp edx, eax
jbe 0x407aeb
add bh, byte [ebp + 0x27]
xor byte [edi], cl
test dword [esi - 0x72ffa2fe], ecx
inc ebp
sti
wait
ror byte [edi], 0x35
mov es, word [edx]
add byte [eax], al
mov dword [ebp - 0xc], eax
jle 0x407899
or al, 0x85
sal byte [esi + 0x3b], 0x45
pushfd
nop dword [edi + 0x3f]
pop es
push 0x55
or byte [ebx - 0x3f7abc3c], al
cvtps2pd xmm1, qword [ecx + esi*2 + 0x4f8b1f00]
add al, 0x8b
pop es
mov dword [ebp - 0x24], ecx
mov dl, byte [esi]
mov byte [esi + 0x4c], ah
mov dword [ebp - 0xc], eax
rcl byte [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
and eax, 0xec558946
lodsd eax, dword [esi]
invalid
jne 0x4078b3
mov ebp, dword [0xfc5c8bec]
cdq
mov dword [ecx], eax
mov dword [ebp - 0x44], 0xa700
mov dword [ecx + 4], edx
add ebp, dword [edi + edi*8]
invalid
cmp dword [ebx - 0x4e], 0x75
adc byte [0x458bfc75], bh
in al, dx
inc ebp
mov esp, 0x89
xchg ebp, eax
add ch, cl
inc esi
invalid
mov edi, edx
mov esp, 0x8b01f883
nop
hlt
Function at 0x4018f0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00402620
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00402620
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x401950
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40539c]
test esi, esi
jle 0x401a50
mov eax, dword [0x4053a0]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x401980
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4019ff
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401970
mov dword [esp], ebx
call fcn.004022c0
mov edi, eax
test eax, eax
je 0x401a77
mov eax, dword [0x4053a0]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.004023d0
mov edx, dword [0x4053a0]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401a57
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4019f8
sub eax, 4
and eax, 0xfffffffb
jne 0x401a06
add dword [0x40539c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x4053a0]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4019f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004018f0
xor esi, esi
jmp 0x40198a
mov eax, dword [0x4053a0]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.004018f0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004018f0
lea esi, [esi]
nop
Function at 0x401123
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [esp + 0x14]
lea eax, [esp + 0x18]
mov edi, ecx
push eax
call fcn.0040117e
xor ebp, ebp
pop ecx
pop ecx
mov ebx, dword [eax]
mov dword [eax], ebp
cmp dword [esp + 0x14], ebp
je 0x401152
push 4
push dword [esp + 0x18]
call fcn.004021ef
pop ecx
pop ecx
lea esi, [edi + 4]
push esi
push ebp
push ebx
push 0x401107
push ebp
push ebp
call fcn.004073c7
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x401174
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 6
mov dword [esi], ebp
call fcn.00401f1c
int3

Function at 0x40157f
Capabilities:
Encode data using xor

Disassembly:
push ebp
xor ebp, ebp
push esi
mov esi, ebp
cmp dword [esp + 0x10], esi
jbe 0x4016ad
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_InitializeAcl]
push edi
mov edi, dword [esp + 0x14]
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0x87
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x68
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xb
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0x7c
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xc5
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x3f
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0x35
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x77
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xdc
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0xd5
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x78
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xeb
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xf
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0xfa
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0x8f
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x46
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x34
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xcb
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x6c
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0xdb
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x58
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x87
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xc4
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xc4
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xca
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xa7
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0xf8
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xa2
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x86
inc esi
cmp esi, dword [esp + 0x18]
jb 0x40159b
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x408987
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4085d8
call fcn.004089b5
xor dword [edi], ecx
sub ebx, edx
sub edx, 0x35939ae
inc edi
cmp edi, eax
jne fcn.00408987
sub edx, 0xf07a2967
sub edx, 1
ret
Function at 0x401694
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x4016db
cmp ebx, 0x20
je 0x4016db
cmp ebx, 0xffffffe0
je 0x4016db
jne 0x4016e4
add eax, 1
cmp esi, eax
je 0x4016f1
jne 0x4016c0
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x4016f5
jne 0x4016bc
pop edx
mov eax, dword [edx + 0x18]
leave
ret 4

Function at 0x401709
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ebx, dword [ebp + 8]
cmp ebx, 0
je 0x40174e
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov edx, dword [eax + 0x78]
add edx, ebx
mov ecx, dword [edx + 0x18]
mov eax, dword [edx + 0x20]
push ecx
push ecx
push eax
xor eax, eax
or ecx, 0xffffffff
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
repne scasb al, byte es:[edi]
not ecx
pop eax
push ecx
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
mov esi, dword [eax + ebx]
add esi, ebx
repe cmpsb byte [esi], byte es:[edi]
pop ecx
je 0x401754
add eax, 4
pop esi
dec esi
push esi
jne 0x401736
xor eax, eax
leave
ret 8
pop esi
pop ecx
sub ecx, esi
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + ebx]
mov ecx, dword [edx + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + ebx]
add eax, ebx
leave
ret 8