joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000f4f0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x20
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov eax, edi
call sym._strdupWA
mov esi, eax
test byte [0x10013340], 8
jne 0x1000f560
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
call sym.secur32.dll_ImportSecurityContextA
sub esp, 0x10
mov ebx, eax
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov eax, edi
call sym._wine_dbgstr_wn.constprop.0_3
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], 0x100174e6
mov dword [esp + 8], str.thunk_ImportSecurityContextW
mov dword [esp + 4], 0x10013340
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x1000f511
Function at 0x10011670
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
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 0x100116c8
cmp byte [esi + ebx - 1], 0xa
je 0x1001169c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x1001c0c4], 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]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x10011cf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x10011ec8
mov edi, dword [0x1001c0c4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x10011dd7
test byte [0x1001338c], 8
jne 0x10011e70
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x1001339c], 8
jne 0x10011e30
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10011d79
cmp esi, 3
jbe 0x10011de8
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x10011d8a
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x10017bd0]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x10011d79
mov dword [esp], 0x1001339c
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10011d50
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x10011d50
mov dword [esp], 0x1001338c
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10011d3b
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x10011d43
mov eax, 0xffffffff
jmp 0x10011dd7
Function at 0x406440
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x41d68b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x40419c
call fcn.00408fb4
push 4
mov dword [esp + 0x18], 0
call fcn.0040a773
mov edi, eax
add esp, 4
test edi, edi
je 0x4064b4
push ebx
call fcn.00408daf
mov dword [edi], eax
call fcn.00408b6e
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00408f75
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4064a8
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00408f9d
pop ebx
jmp 0x4064b6
xor edi, edi
mov dword [esi + 0x38], 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
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 ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x40b26b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4213ec]
jne 0x40b275
repz ret
jmp fcn.004120fc
Function at 0x4177e4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4213ec]
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.00410d17
and dword [ebp - 0x14], 0
cmp dword [0x4392b0], 0
mov dword [ebp - 0x18], eax
jne 0x417897
push 0x403f30
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41793f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403f24
push ebx
call edi
test eax, eax
je 0x41793f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403f14
push ebx
mov dword [0x4392b0], eax
call edi
push eax
call esi
push 0x403f00
push ebx
mov dword [0x4392b4], eax
call edi
push eax
call esi
push 0x403ee4
push ebx
mov dword [0x4392b8], eax
call edi
push eax
call esi
mov dword [0x4392c0], eax
test eax, eax
je 0x417897
push 0x403ecc
push ebx
call edi
push eax
call esi
mov dword [0x4392bc], eax
mov eax, dword [0x4392bc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4178f0
cmp dword [0x4392c0], ecx
je 0x4178f0
push eax
call esi
push dword [0x4392c0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4178f0
test ebx, ebx
je 0x4178f0
call edi
test eax, eax
je 0x4178e7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4178e7
test byte [ebp - 8], 1
jne 0x4178f0
or dword [ebp + 0x10], 0x200000
jmp 0x417923
mov eax, dword [0x4392b4]
cmp eax, dword [ebp - 0x18]
je 0x417923
push eax
call esi
test eax, eax
je 0x417923
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x417923
mov eax, dword [0x4392b8]
cmp eax, dword [ebp - 0x18]
je 0x417923
push eax
call esi
test eax, eax
je 0x417923
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4392b0]
call esi
test eax, eax
je 0x41793f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x417941
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b26b
leave
ret
Function at 0x419200
Capabilities:
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x1388
call fcn.004180a0
cmp dword [0x8e3704], 0x37
push esi
jne 0x419306
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualUnlock]
push 0
lea ecx, [esp + 0xb8c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
mov esi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea edx, [esp + 0xc]
push edx
push 0
push 0
push 0
call esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
mov eax, dword [esp + 0xc]
push 0
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
push 0
lea ecx, [esp + 0x38c]
push ecx
push 0x404024
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea edx, [esp + 0x78c]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x168]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0
call esi
push 0x40403c
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
lea edx, [esp + 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProfileSectionW]
push 0x30
lea ecx, [esp + 0x24]
push 0
push ecx
mov dword [esp + 0x28], 0
call fcn.0040a590
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CommConfigDialogW]
mov eax, dword [0x8e5e68]
mov dword [esp + 8], eax
mov eax, 0x5d1
add dword [esp + 8], eax
mov ecx, dword [esp + 8]
mov dl, byte [ecx + edi]
mov eax, dword [0x8e1efc]
mov byte [eax + edi], dl
pop esi
add esp, 0x1388
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
popal
nop
nop
jmp int.00401219
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x406273
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406298
mov eax, dword [0x40a8a0]
cmp eax, 0xffffffff
je 0x40628f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8a0], 0xffffffff
jmp 0x40630b
cmp dword [0x440a40], ebx
je 0x40630b
cmp byte [0x440640], bl
je 0x4062d7
cmp dword [0x40a8a0], 0xffffffff
jne 0x4062e0
push 4
push 0x40000000
push 0x440640
call fcn.00405c27
cmp eax, 0xffffffff
mov dword [0x40a8a0], eax
je 0x40630b
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8a0], 0xffffffff
je 0x40630b
push esi
mov esi, 0x444a60
push 0x40aae8
push esi
call fcn.00405f75
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.00405f68
push eax
push esi
push dword [0x40a8a0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

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

Disassembly:
push esi
xor esi, esi
cmp dword [0x44023c], esi
push edi
jne 0x4064f7
mov ecx, 0x440238
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x4064d3
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x440638
jl 0x4064ce
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x40652c
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x440238]
xor eax, esi
inc ecx
dec edx
jne 0x40650f
pop edi
pop esi
not eax
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4013e3
Capabilities:
Encode data using xor

Disassembly:
jmp 0x40ca60
push ebp
push ebx
push edi
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40cc8f
mov edi, dword [esp + 0x14]
xor ebx, ebx
mov ebp, dword [sym.imp.USER32.dll_ReleaseDC]
nop dword [eax]
push str.dHJdvghcgyhushgjdshgj
push 0x62b458
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x75
push str.dHJdvghcgyhushgjdshgj
push 0x62b458
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0xbb
push str.dHJdvghcgyhushgjdshgj
push 0x62b458
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0xd8
push str.dHJdvghcgyhushgjdshgj
push 0x62b458
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
xor byte [edi + ebx], 0x94
push str.dHJdvghcgyhushgjdshgj
push 0x62b458
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 6
push str.dHJdvghcgyhushgjdshgj
push 0x62b458
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x4a
push str.dHJdvghcgyhushgjdshgj
push 0x62b458
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x3f
push str.dHJdvghcgyhushgjdshgj
push 0x62b458
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
xor byte [edi + ebx], 0xc0
push str.dHJdvghcgyhushgjdshgj
push 0x62b458
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x62
push str.dHJdvghcgyhushgjdshgj
push 0x62b458
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x1d
push str.dHJdvghcgyhushgjdshgj
push 0x62b458
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
xor byte [edi + ebx], 0x89
push str.dHJdvghcgyhushgjdshgj
push 0x62b458
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0xd6
push str.dHJdvghcgyhushgjdshgj
push 0x62b458
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
xor byte [edi + ebx], 0x1c
push str.dHJdvghcgyhushgjdshgj
push 0x62b458
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x4b
inc ebx
cmp esi, ebx
jne 0x40ca80
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402e4b
Capabilities:
Encode data using xor

Disassembly:
jmp 0x40cca0
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0x10]
cmp dword [eax + 0x14], 0x10
mov ebp, eax
jb 0x40ccb8
mov ebp, dword [eax]
mov esi, dword [esp + 0x20]
xor esi, edi
cmp edi, 4
jae 0x40ccc7
mov ecx, edi
jmp 0x40cd23
mov dword [esp], edi
shr edi, 2
cmp edi, 2
mov eax, 1
cmovae eax, edi
mov dword [esp + 4], eax
xor ebx, ebx
nop
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov ecx, 0x62b458
push edi
call fcn.00403ff8
imul eax, dword [ebp + ebx*4], 0x5bd1e991
mov ecx, eax
shr ecx, 0x18
xor ecx, eax
imul eax, ecx, 0x5bd1e991
imul esi, esi, 0x5bd1e991
xor esi, eax
inc ebx
cmp dword [esp + 4], ebx
jne 0x40cce0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x10]
mov edi, dword [esp]
and edi, 0xfffffffc
and ecx, 3
xor eax, eax
cmp ecx, 1
je 0x40cd4c
cmp ecx, 2
je 0x40cd42
cmp ecx, 3
jne 0x40cd5b
movsx eax, byte [ebp + edi + 2]
shl eax, 0x10
movsx ecx, byte [ebp + edi + 1]
shl ecx, 8
xor eax, ecx
movsx ecx, byte [ebp + edi]
xor ecx, eax
imul eax, ecx, 0x5bd1e991
xor esi, eax
mov eax, esi
shr eax, 0xd
xor eax, esi
imul ecx, eax, 0x5bd1e991
mov eax, ecx
shr eax, 0xf
xor eax, ecx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4037ab
Capabilities:
Terminate process

Disassembly:
jmp 0x460d63
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x460d74
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405cf9
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4038ff
Capabilities:
Query environment variable

Disassembly:
jmp 0x4a0d07
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a0d18
pop esi
ret
push ebx
push edi
push esi
call fcn.004a0bee
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040426e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a0d40
push ebx
push esi
push edi
call fcn.00405ad3
add esp, 0xc
push 0
call fcn.00406703
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x405b9b
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x6252b4]
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 0x49ee64
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049f2db
test al, al
jne 0x49ee5e
sub edx, 2
cmp edx, edi
jne 0x49ee44
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49ee86
lea eax, [edi + 2]
cmp edx, eax
je 0x49ee86
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049ea12
add esp, 0x10
jmp 0x49ef80
push esi
lea ecx, [ebp - 0x255]
call fcn.0049f2db
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 0x49eec9
push dword [ebp - 0x25c]
jmp 0x49ee76
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 0x49ef06
cmp word [ebp - 0x226], 0
je 0x49ef27
cmp word [ebp - 0x226], ax
jne 0x49ef06
cmp word [ebp - 0x224], 0
je 0x49ef27
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049ea12
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49ef73
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49eee0
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49ef5b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49ef80
push 0x49e3fa
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040590c
add esp, 0x10
jmp 0x49ef50
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.004031d4
leave
ret
Function at 0x4aa40c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401e38
mov eax, dword [0x6252b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004062c6
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4aa44e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4aa5aa
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406433
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x62c8b0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004033f5
mov ecx, dword [esi*4 + 0x62c8b0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4aa5a3
cmp eax, dword [edi + ecx + 0x24]
jne 0x4aa5a3
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4aa5a3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004033f5
add esp, 0x14
test edx, edx
jl 0x4aa5a3
jg 0x4aa519
test eax, eax
jb 0x4aa5a3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4aa5a3
jl 0x4aa533
cmp dword [ebp - 0x1008], eax
ja 0x4aa5a3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4aa551
test ebx, ebx
je 0x4aa58a
cmp ecx, edi
jae 0x4aa58a
mov al, byte [ecx]
cmp al, 0xd
jne 0x4aa56b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4aa577
cmp byte [ecx + 1], 0xa
jne 0x4aa577
inc ecx
jmp 0x4aa577
movzx eax, al
movsx eax, byte [eax + 0x629020]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4aa551
cmp edx, ebx
jne 0x4aa551
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4aa5a8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004031d4
leave
ret