joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404340
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5258f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x571a38]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x44], 0
je 0x4044ef
cmp byte [ebx + 0x49], 0
je 0x4044ef
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x4044e3
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x4043b6
lea eax, [ebp - 0x2c]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x4043d3
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
push edx
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x40440a
dec eax
je 0x40440e
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x4044ea
call fcn.004079e0
xor al, al
jmp 0x4044f1
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x40441e
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x40444b
cmp edi, 0x10
jae 0x40442d
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.004fd77e
add esp, 0x10
cmp esi, eax
jne 0x4044db
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x4044e7
test esi, esi
jne 0x4043c7
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x40450d
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x40450d
cmp edi, esi
jae 0x4044c4
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.004077e0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x4043c7
mov ecx, eax
cmp edi, 0x10
jae 0x4044a0
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x4044bb
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x4043c1
test esi, esi
jne 0x404496
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x4044d3
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x4043c1
lea ecx, [ebp - 0x2c]
call fcn.004079e0
xor al, al
jmp 0x4044f1
lea ecx, [ebp - 0x2c]
call fcn.004079e0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fc787
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.00518541
int3
Function at 0x405110
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52552b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x571a38]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.005183ee
push 4
mov dword [ebp - 4], 0
call fcn.00408e6a
mov edi, eax
add esp, 4
test edi, edi
je 0x405190
call fcn.0051899b
mov dword [edi], eax
call fcn.0051875a
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.005184e0
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x405186
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00518508
jmp 0x405192
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408710
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40872b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x408762
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40875e
jmp 0x408750
cmp esi, eax
jae 0x408762
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x408750
cmp esi, eax
jb 0x408769
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x408f07
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x571a38]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x408f4c
push 0x528e18
push 4
push eax
call fcn.004fe545
push eax
call fcn.004087c0
add esp, 0x10
jmp 0x408f62
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x408fe2
push edi
call fcn.004fe629
mov edi, dword [eax]
call fcn.004fe629
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.004fe5c6
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.004fe629
cmp dword [eax], 0
je 0x408fb6
call fcn.004fe629
push dword [eax]
call fcn.00408eaf
pop ecx
jmp 0x408fbd
call fcn.004fe629
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x408fe2
cmp dword [ebp - 0x234], esi
jae 0x408fe2
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x408fe4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004fc787
leave
ret
Function at 0x409583
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x571a38]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.004094e4
pop ecx
cmp eax, esi
je 0x40966d
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x40966d
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.004ff570
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x40966d
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x40966d
cmp esi, 0x14
jge 0x40966d
push 0x10
push 0
push edi
call fcn.004ff54b
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x40965c
call fcn.004fe629
cmp dword [eax], 0x22
je 0x40965c
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.004ff15f
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x409632
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x57300c], 0
jne 0x4096f8
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x409721
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.00408f07
pop ecx
pop ecx
test eax, eax
jne 0x409723
inc edi
cmp edi, esi
jl 0x4096fe
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fc787
leave
ret 8

Function at 0x40d20c
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x571a38]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x40d241
xor eax, eax
jmp 0x40d294
lea eax, [ebp - 0x210]
push eax
call fcn.004ff15f
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x40d272
push 0x552934
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004ff5ea
add esp, 0xc
test eax, eax
jne 0x40d23d
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004ff5ea
add esp, 0xc
test eax, eax
jne 0x40d23d
lea eax, [ebp - 0x210]
push eax
call fcn.004094e4
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004fc787
leave
ret
Function at 0x41ca92
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41cad9
call fcn.0040f877
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41cad9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41caf5
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041c592
mov esi, eax
test edi, edi
je 0x41caf3
test ebx, ebx
je 0x41caf3
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41ced4
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x51ef48
call fcn.004fea56
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x41cef9
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x41cf4b
call fcn.0040af34
push eax
lea ecx, [ebp - 0x10]
call fcn.004086c0
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004fe250
push eax
call fcn.004087c0
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00408a70
mov eax, esi
call fcn.004feb2e
ret 8

Function at 0x44559c
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00445240
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4455e6
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040ae35
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00408170
jmp 0x4455f1
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00410d9f
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4455f7
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0041cb9e
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x445634
call fcn.00445240
mov dword [esi + 0xc], 1
jmp 0x445639
call fcn.00445240
cmp dword [esi], 0
je 0x445682
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x44565a
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040ae35
jmp 0x44566c
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00408bd0
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00408170
jmp 0x4456a6
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4456a6
push dword [esi]
push dword [ebp + 8]
call fcn.00410d9f
pop esi
pop ebp
ret 0xc

Function at 0x46f635
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0040f877
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x46f66e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0046f272
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x46f6cc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x46f6f0
cmp dword [edi + 0x74], 0
jne 0x46f6f0
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0040f877
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0046f68d
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x475b3b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x475b55
call fcn.0040f877
mov esi, dword [eax + 0xc]
push dword [0x576c0c]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x475b73
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x475b6b
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x475ba0
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x475b6d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00475a69
mov esi, eax
jmp 0x475b92

Function at 0x4c2776
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004f6e9b
call fcn.0040f2a8
cmp dword [eax + 0x14], 0
jne 0x4c2793
mov ecx, esi
pop esi
jmp fcn.004c227b
pop esi
ret

Function at 0x4c58fe
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004e07e3
call fcn.0040f2a8
cmp dword [eax + 0x14], 0
jne 0x4c591b
mov ecx, esi
pop esi
jmp fcn.004c52d1
pop esi
ret

Function at 0x4d797c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4d7994
mov edi, dword [esi + 0xc]
jmp 0x4d79d4
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4d79ad
call fcn.0040fc45
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4d79c2
call fcn.0040fc45
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4d79d4
call fcn.0040fc45
call fcn.0040f877
cmp dword [eax + 0x3c], 0
je 0x4d79e9
push edi
mov ecx, ebx
call fcn.004d67a6
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004d7896
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4d7a07
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4d7a13
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4fc787
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x571a38]
jne 0x4fc791
repz ret
jmp fcn.00503a74
Function at 0x51397d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x571a38]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00505bd4
and dword [ebp - 0x14], 0
cmp dword [0x5794e8], 0
mov dword [ebp - 0x18], eax
jne 0x513a30
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x513ad8
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x551bec
push ebx
call edi
test eax, eax
je 0x513ad8
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x551bdc
push ebx
mov dword [0x5794e8], eax
call edi
push eax
call esi
push 0x551bc8
push ebx
mov dword [0x5794ec], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5794f0], eax
call edi
push eax
call esi
mov dword [0x5794f8], eax
test eax, eax
je 0x513a30
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5794f4], eax
mov eax, dword [0x5794f4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x513a89
cmp dword [0x5794f8], ecx
je 0x513a89
push eax
call esi
push dword [0x5794f8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x513a89
test ebx, ebx
je 0x513a89
call edi
test eax, eax
je 0x513a80
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x513a80
test byte [ebp - 8], 1
jne 0x513a89
or dword [ebp + 0x10], 0x200000
jmp 0x513abc
mov eax, dword [0x5794ec]
cmp eax, dword [ebp - 0x18]
je 0x513abc
push eax
call esi
test eax, eax
je 0x513abc
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x513abc
mov eax, dword [0x5794f0]
cmp eax, dword [ebp - 0x18]
je 0x513abc
push eax
call esi
test eax, eax
je 0x513abc
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5794e8]
call esi
test eax, eax
je 0x513ad8
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x513ada
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fc787
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x40a873
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x40a882
pop dword [ebp - 0xc]
mov eax, 0x3e936561
sub eax, 0x3e52bcdf
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x36bdb
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x1ce12d3b
sub ecx, 0x1ce0ef1f
xor edi, edi
add edi, eax
mov ebx, 0x413bc4
add ebx, dword [ebp - 0xc]
mov edx, 0x32f3ea08
sub edx, 0x88149876
xor dword [ebp - 8], esi
mov esi, dword [ebx]
xor dword [ebp - 8], esi
add esi, edx
xor dword [ebp - 4], ecx
mov dword [edi], esi
mov dword [ebp - 8], 0xcd4dc4df
add edi, 0x4640b195
add edi, 0xb9bf4e6f
add ebx, 0xd8f49aaa
add ebx, 0x270b655a
loop 0x40a8d8
add eax, 0xeae60c78
add eax, 0x151adecb
mov ebx, eax
add eax, 0x8731134c
add eax, 0x78ceecb9
mov ecx, 0x400000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x403203
pop dword [ebp - 0x24]
mov eax, 0xf687ee9b
sub eax, 0xf647bc98
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x1c68a0a0
sub dword [ebp - 0x34], 0xce165b55
mov dword [ebp - 0x30], 0x98d57c4b
add dword [ebp - 0x30], 0x995dcffa
mov dword [ebp - 0x2c], 0x92ee105f
sub dword [ebp - 0x2c], 0x46a1cc31
mov dword [ebp - 0x28], 0xdab46a51
sub dword [ebp - 0x28], 0xdab46a51
lea eax, [ebp - 0x34]
push eax
mov eax, 0x2b659b1
add eax, 0xfd8a16b3
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0xd1708a32
sub dword [ebp - 0x34], 0x5cfe20dc
mov dword [ebp - 0x30], 0x21049493
add dword [ebp - 0x30], 0x2067cce2
mov dword [ebp - 0x2c], 0x21e3e13d
sub dword [ebp - 0x2c], 0xbe7474d1
mov dword [ebp - 0x28], 0xd1868757
add dword [ebp - 0x28], 0x2e7978a9
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0xd6a28cc5
sub eax, 0xd6621c1d
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x381f5
push 0
call eax
mov ecx, 0x4e1d
mov edx, eax
mov esi, 0x410000
add esi, dword [ebp - 0x24]
mov ebx, 0x440656a2
add ebx, 0xf6803c4c
xor dword [ebp - 0x20], 0xf581f298
mov edi, dword [esi]
add dword [ebp - 0x1c], edi
add edi, ebx
add dword [ebp - 0xc], ebx
mov dword [edx], edi
mov dword [ebp - 0xc], 0x558a1ffc
add edx, 0xc38b3dca
add edx, 0x3c74c23a
add esi, 0xb0d2aeaf
add esi, 0x4f2d5155
loop 0x403319
add eax, 0x12b47
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0xef50fc
Capabilities:
Encode data using xor

Disassembly:
jmp 0xef5106
pushal
call 0xef510c
pop ebp
sub ebp, 0x10
sub ebp, 0xaf50fc
jmp 0xef5122
mov eax, 0xaf50fc
add eax, ebp
add eax, 0x4c
mov ecx, 0x5bd
mov edx, 0x6e6c1a02
xor byte [eax], dl
inc eax
dec ecx
jne 0xef5139
jmp 0xef514c
mov edi, ecx
mov dword [ebx + 0x202023e], ecx
add ebx, 0xfffffffa
add al, byte [edx]
add al, byte [ecx]
iretd