joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10017c58
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push pe_nt_image_headers32
mov eax, 0x1011241e
call fcn.1011094d
mov ebx, ecx
xor edi, edi
mov dword [ebp - 4], edi
mov esi, edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x124], eax
test eax, eax
jle 0x10017c97
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.1010cff7
mov esi, eax
mov dword [ebp - 0x11c], esi
test esi, esi
js 0x10017e37
cmp dword [ebx + 0xac], edi
je 0x10017caa
lea ecx, [ebx + 0xa8]
call fcn.1010cff7
mov ecx, dword [ebp - 0x124]
cmp ecx, 0x64
jle 0x10017d58
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x120], edi
push 0xa5a9
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 2
call fcn.1010cff7
push 0xa5aa
lea ecx, [ebp - 0x120]
call fcn.1010cff7
push ecx
push dword [ebp - 0x11c]
lea ecx, [ebx + 0x30]
push dword [ebp - 0x120]
call fcn.1010cff7
push dword [ebp - 0x120]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call ebx
push dword [ebp - 0x11c]
call ebx
mov esi, 0x80004005
mov dword [ebp - 0x11c], esi
mov eax, dword [ebp + 8]
test eax, eax
je 0x10017d4e
cmp dword [ebp + 0xc], 0
jle 0x10017d46
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [eax + edi*4]
call esi
mov eax, dword [ebp + 8]
inc edi
cmp edi, dword [ebp + 0xc]
jl 0x10017d32
mov esi, dword [ebp - 0x11c]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov eax, esi
call fcn.101108ff
ret 0xc
mov eax, edi
mov dword [ebp - 0x120], eax
test ecx, ecx
jle 0x10017d19
push eax
lea ecx, [ebp + 8]
call fcn.1010cff7
lea ecx, [ebp - 0x118]
push dword [eax]
call fcn.1010cff7
push dword [eax]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
lea eax, [ebp - 0x114]
cmp dword [ebp - 0x118], eax
je 0x10017d9f
push dword [ebp - 0x118]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
cmp esi, 0xffffffff
jne 0x10017dca
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
je 0x10017de4
cmp eax, 3
je 0x10017de4
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov dword [ebp - 0x11c], esi
jmp 0x10017de0
mov eax, esi
shr eax, 4
and eax, 1
mov dword [ebp - 0x128], eax
mov esi, edi
mov dword [ebp - 0x11c], edi
test esi, esi
js 0x10017e37
push dword [ebp - 0x120]
lea ecx, [ebp + 8]
call fcn.1010cff7
mov ecx, ebx
cmp dword [ebp - 0x128], edi
jne 0x10017e06
push edi
push dword [eax]
call fcn.100180b3
jmp 0x10017e0d
push dword [eax]
call fcn.10018284
mov esi, eax
mov dword [ebp - 0x11c], esi
test esi, esi
js 0x10017e37
mov eax, dword [ebp - 0x120]
inc eax
mov dword [ebp - 0x120], eax
cmp eax, dword [ebp - 0x124]
jl 0x10017d64
jmp 0x10017d19
lea ecx, [ebx + 0xa8]
call fcn.1010cff7
push dword [ebx + 0xbc]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebx + 0xbc], edi
jmp 0x10017d1f
Function at 0x10018284
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x370
mov eax, 0x10112487
call fcn.1011094d
mov dword [ebp - 0x37c], ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
or dword [ebp - 0x374], 0xffffffff
mov esi, ebx
mov dword [ebp - 0x378], eax
mov dword [ebp - 0x370], esi
mov dword [ebp - 4], ebx
test eax, eax
je 0x1001849d
push 1
push eax
call fcn.100180b3
mov edi, eax
test edi, edi
js 0x1001848f
mov edi, dword [ebp - 0x378]
push edi
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp eax, 0x101
ja 0x1001849d
mov ecx, edi
call fcn.10006afa
push eax
push edi
lea ecx, [ebp - 0x370]
call fcn.1010cff7
mov edi, eax
test edi, edi
js 0x10018489
push 2
push 0x1011c2b0
lea ecx, [ebp - 0x370]
call fcn.1010cff7
mov edi, eax
test edi, edi
js 0x10018489
mov esi, dword [ebp - 0x370]
lea ecx, [ebp - 0x118]
push esi
call fcn.1010cff7
lea ecx, [ebp - 0x368]
push ecx
push dword [eax]
call dword [sym.imp.kernel32.dll_FindFirstFileW]
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x374], eax
cmp dword [ebp - 0x118], ecx
je 0x1001836a
push dword [ebp - 0x118]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebp - 0x374]
pop ecx
cmp eax, 0xffffffff
je 0x100184a2
mov edx, 0x1011c2b8
lea ecx, [ebp - 0x33c]
movzx eax, byte [ecx]
cmp al, byte [edx]
jne 0x10018392
movzx eax, byte [ecx + 1]
cmp al, byte [edx + 1]
je 0x10018452
mov edx, 0x1011c2bc
lea ecx, [ebp - 0x33c]
movzx eax, byte [ecx]
cmp al, byte [edx]
jne 0x100183b1
movzx eax, byte [ecx + 1]
cmp al, byte [edx + 1]
je 0x10018452
push dword [ebp - 0x378]
lea ecx, [ebp - 0x36c]
call fcn.1010cff7
push 1
push 0x101191cc
lea ecx, [ebp - 0x36c]
mov byte [ebp - 4], 1
call fcn.1010cff7
mov edi, eax
test edi, edi
js 0x1001847b
lea ecx, [ebp - 0x33c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x100183eb
sub ecx, edx
lea eax, [ebp - 0x33c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x36c]
call fcn.1010cff7
mov edi, eax
test edi, edi
js 0x1001847b
test byte [ebp - 0x368], 0x10
mov eax, dword [ebp - 0x36c]
mov ecx, dword [ebp - 0x37c]
mov dword [ebp - 0x36c], ebx
je 0x10018436
push eax
call fcn.10018284
jmp 0x1001843d
push ebx
push eax
call fcn.100180b3
mov edi, eax
test edi, edi
js 0x1001847b
mov byte [ebp - 4], bl
push dword [ebp - 0x36c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebp - 0x368]
push eax
push dword [ebp - 0x374]
call dword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
jne 0x10018373
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x12
cmovne edi, eax
jmp 0x1001848f
push dword [ebp - 0x36c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x1001848f
mov esi, dword [ebp - 0x370]
push dword [ebp - 0x374]
call dword [sym.imp.kernel32.dll_FindClose]
jmp 0x100184a4
mov ebx, 0x80070057
mov edi, ebx
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, edi
call fcn.101108ff
ret 4
Function at 0x1001f752
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push 0x10
mov esi, ecx
push 1
push esi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x1001f794
push edi
push esi
call dword [sym.imp.kernel32.dll_SizeofResource]
test eax, eax
je 0x1001f794
push edi
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x1001f794
cmp word [eax + 2], 0
je 0x1001f794
cmp dword [eax + 0x28], 0xfeef04bd
jne 0x1001f794
add eax, 0x30
jmp 0x1001f799
mov eax, 0x1011ec80
pop edi
pop esi
ret

Function at 0x10042ae4
Capabilities:
Hash data using djb2

Disassembly:
movzx eax, word [ecx]
mov edx, 0x1505
push esi
xor esi, esi
jmp 0x10042afe
imul edx, edx, 0x21
movzx eax, ax
xor edx, eax
inc esi
movzx eax, word [ecx + esi*2]
test ax, ax
jne 0x10042af1
imul eax, edx, 0x41c64e6d
imul ecx, edx, 0x10dcd
pop esi
add eax, 0x3039
shr eax, 0x10
inc ecx
and ecx, 0xffff0000
or eax, ecx
ret

Function at 0x10045201
Capabilities:
Hash data using djb2

Disassembly:
push esi
mov esi, ecx
test esi, esi
jne 0x1004520d
or eax, 0xffffffff
pop esi
ret
movzx eax, word [esi]
push ebx
push edi
mov edi, 0x1505
xor ebx, ebx
jmp 0x10045235
movzx ecx, ax
add eax, 0xffffffbf
cmp ax, 0x19
lea edx, [ecx + 0x20]
cmova edx, ecx
imul edi, edi, 0x21
xor edi, edx
inc ebx
movzx eax, word [esi + ebx*2]
test ax, ax
jne 0x1004521b
imul eax, edi, 0x41c64e6d
imul ecx, edi, 0x10dcd
pop edi
pop ebx
pop esi
add eax, 0x3039
shr eax, 0x10
inc ecx
and ecx, 0xffff0000
or eax, ecx
ret

Function at 0x10053b70
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, edx
push edi
test ecx, ecx
je 0x10053bc6
test esi, esi
je 0x10053bc6
push 2
pop edx
call fcn.1010cff7
mov edi, eax
test edi, edi
jne 0x10053b91
mov eax, 0x80004005
jmp 0x10053bcb
mov ecx, esi
call fcn.10006995
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push 0
push edi
call dword [sym.imp.advapi32.dll_RegSetValueExW]
push edi
mov esi, eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
movzx eax, si
or eax, 0x80070000
test esi, esi
cmovle eax, esi
jmp 0x10053bcb
mov eax, 0x80070057
pop edi
pop esi
ret 4

Function at 0x10053bd0
Capabilities:
Delete registry key

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
test esi, esi
jne 0x10053be0
mov eax, 0x80070057
jmp 0x10053c24
call fcn.1010cff7
mov edi, eax
test edi, edi
je 0x10053c21
push 0
call fcn.10053fa0
neg eax
sbb eax, eax
and eax, 0x100
push eax
push esi
push edi
call dword [sym.imp.advapi32.dll_RegDeleteKeyExW]
push edi
mov esi, eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp esi, 2
je 0x10053c21
movzx eax, si
or eax, 0x80070000
test esi, esi
cmovle eax, esi
jmp 0x10053c24
xor eax, eax
inc eax
pop edi
pop esi
pop ecx
ret
Function at 0x10062739
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc0
mov eax, 0x10114a80
call fcn.1011094d
mov eax, dword [ebp - 0xc8]
xor ebx, ebx
mov dword [ebp - 0xcc], ebx
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc8], 0x101bb940
mov dword [0x101bb940], ebx
mov dword [0x101bb944], ebx
mov dword [0x101bb948], ebx
xor ecx, ecx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc4], ebx
push eax
inc ecx
push ecx
push ebx
push str.Control_PanelInternational
push SysReAllocString
mov dword [ebp - 0xcc], ecx
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100628b0
mov edi, dword [sym.imp.advapi32.dll_RegGetValueW]
lea eax, [ebp - 0xc0]
push eax
push ebx
push ebx
push 0x20000020
push str.Languages
push str.User_Profile
push dword [ebp - 0xc4]
mov dword [ebp - 0xc0], ebx
call edi
test eax, eax
jne 0x100628a4
cmp dword [ebp - 0xc0], 3
jbe 0x100628a4
push dword [ebp - 0xc0]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x100628a4
lea eax, [ebp - 0xc0]
push eax
push esi
push ebx
push 0x20
push str.Languages
push str.User_Profile
push dword [ebp - 0xc4]
call edi
test eax, eax
jne 0x1006289c
mov ebx, dword [ebp - 0xc0]
cmp ebx, 3
jbe 0x1006289c
xor edx, edx
shr ebx, 1
push edx
pop ecx
mov eax, edx
mov edi, edx
mov word [esi + ebx*2 - 2], cx
je 0x1006289c
jmp 0x10062847
cmp eax, ebx
jae 0x1006284d
inc eax
cmp word [esi + eax*2], dx
je 0x10062842
cmp word [esi + edi*2], dx
jne 0x10062897
cmp edi, eax
jbe 0x10062897
xor ecx, ecx
lea eax, [esi + eax*2]
mov word [ebp - 0xbc], cx
lea ecx, [ebp - 0xbc]
push 0x55
push ecx
push eax
call dword [sym.imp.kernel32.dll_ResolveLocaleName]
test eax, eax
je 0x10062892
cmp word [ebp - 0xbc], 0
je 0x10062892
lea eax, [ebp - 0xbc]
mov ecx, 0x101bb940
push eax
call fcn.1010cff7
lea eax, [edi + 1]
xor edx, edx
inc edi
cmp edi, ebx
jb 0x10062847
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
push dword [ebp - 0xc4]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, 0x101bb940
call fcn.101108ff
ret 4

Function at 0x1010cff7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x1010d006
pop dword [ebp - 0x1c]
mov eax, 0x4b0c77fc
add eax, 0xc504580a
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0xc046f
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0x540f
mov edi, eax
mov esi, 0x21161397
sub esi, 0x10f8a797
add esi, dword [ebp - 0x1c]
mov ebx, 0xa1a8f4e0
sub ebx, 0x6752343f
xor dword [ebp - 0x14], 0x4b240ca2
mov edx, dword [esi]
xor dword [ebp - 0x18], 0x6a1362d0
xor edx, ebx
xor dword [ebp - 4], ebx
mov dword [edi], edx
xor dword [ebp - 0x14], edx
add edi, 0x34f6017e
sub edi, 0x34f6017a
add esi, 4
loop 0x1010d05a
add eax, 0x6c208fa1
add eax, 0x93e0b36e
mov ebx, eax
add eax, 0x72eceab9
sub eax, 0x72eceab4
mov ecx, 0x10000000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x441fe4
Capabilities:
Clear file content
Write file on windows

Disassembly:
push 0x50
mov eax, 0x51ee25
call fcn.0051d3a0
mov eax, edx
mov dword [ebp - 0x3c], eax
mov ebx, ecx
xor esi, esi
lea edx, [ebp - 0x4c]
mov ecx, eax
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
call fcn.004dcef0
xor eax, eax
mov word [ebp - 0x38], 0xbbef
lea edi, [ebp - 0x4c]
mov byte [ebp - 0x36], 0xbf
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], esi
lea eax, [ebp - 0x38]
mov dword [ebp - 0x2c], eax
lea edi, [ebp - 0x28]
push 3
pop edx
mov dword [ebp - 0x34], edx
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x30], edx
mov esi, 0x40937c
push eax
lea eax, [ebp - 0x34]
xor ecx, ecx
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ebx
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004de0c7
mov esi, eax
test esi, esi
js 0x442160
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x442139
mov edi, dword [ebp - 0x4c]
lea eax, [ebp - 0x3c]
and dword [ebp - 0x3c], 0
push 0
push eax
push edi
push dword [ebp - 0x44]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4420ea
xor ebx, ebx
test edi, edi
je 0x4420ea
mov ecx, dword [ebp - 0x44]
mov eax, 0x4000
sub eax, ecx
mov dword [ebp - 0x40], eax
add ecx, ebx
add eax, ecx
cmp eax, edi
jae 0x4420c3
mov eax, 0x4000
jmp 0x4420c7
mov eax, edi
sub eax, ebx
push 0
lea edx, [ebp - 0x3c]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44210a
mov eax, dword [ebp - 0x40]
add ebx, 0x4000
mov ecx, dword [ebp - 0x44]
cmp ebx, edi
jb 0x4420b4
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x44211f
call fcn.004e20f1
mov esi, eax
test esi, esi
js 0x442101
int3
mov dword [ebp - 0x54], 0x33c
jmp 0x442145
call fcn.004e20f1
mov esi, eax
test esi, esi
js 0x442116
int3
mov dword [ebp - 0x54], 0x338
jmp 0x442145
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 5
call fcn.00442e69
xor eax, eax
jmp 0x442171
mov dword [ebp - 0x54], 0x342
mov esi, 0xc0000001
and dword [ebp - 0x50], 0
lea ecx, [ebp - 0x5c]
push esi
mov dword [ebp - 0x5c], 0x418fa8
mov dword [ebp - 0x58], 0x419018
call fcn.004de872
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 4
call fcn.00442e69
mov eax, esi
call fcn.0051d34a
ret
Function at 0x444f8c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x444f9b
int3
mov eax, dword [esi]
xor ebx, ebx
mov edx, dword [eax + ecx*4]
cmp dword [edx + 4], ebx
je 0x444fc8
mov edi, dword [edx]
test edi, edi
je 0x444fc8
mov eax, dword fs:[0x30]
push edi
push ebx
mov dword [edx], ebx
mov dword [edx + 4], ebx
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi]
mov ecx, dword [eax + ecx*4]
add ecx, 0xac
call fcn.0044ed42
mov ecx, dword [esi + 0xc]
mov edi, 0x9c
mov eax, dword [esi]
mov ecx, dword [eax + ecx*4]
add ecx, edi
call fcn.004433d6
mov ecx, dword [esi + 0xc]
dec ecx
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
mov ecx, dword [eax + ecx*4]
add ecx, edi
call fcn.004433d6
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x44682a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x5328d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xfffffffffffffff5
mov edi, 0x20000
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
xor esi, esi
mov ebx, eax
push esi
push esi
push 0x41a35c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 8], eax
test eax, eax
je 0x446916
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
call fcn.0044dffd
mov esi, eax
test esi, esi
je 0x446904
push dword [ebp - 8]
push esi
push 0x41a35c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x446904
push esi
call fcn.00503ae1
pop ecx
push eax
push 0xfffffffffffffff5
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
test eax, eax
je 0x446904
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [ebp - 8]
call fcn.00503f5b
mov edi, eax
pop ecx
pop ecx
cmp edi, 0xffffffff
je 0x446904
push 1
call fcn.005038d8
push eax
call fcn.0050428c
push eax
push edi
call fcn.00504180
add esp, 0x10
push edi
cmp eax, 0xffffffff
je 0x4468fe
call fcn.0050433f
push 1
call fcn.005038d8
push eax
call fcn.0050475b
push esi
call fcn.0044e010
jmp 0x44695b
call fcn.0050433f
pop ecx
mov edi, 0x40000
test esi, esi
je 0x446938
push esi
call fcn.0044e010
pop ecx
jmp 0x446938
push ebx
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test al, 2
je 0x446933
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jne 0x446938
mov edi, 0x40000
push edi
push 1
call fcn.005038d8
push eax
call fcn.0050428c
pop ecx
pop ecx
push eax
call fcn.005047ed
push 1
call fcn.005038d8
push eax
call fcn.0050475b
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0050e82a
leave
ret
Function at 0x44696d
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5328d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
mov esi, edi
call fcn.0044682a
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
call fcn.00446a2e
test eax, eax
jns 0x446a07
mov ecx, eax
call fcn.004e1f69
push edi
mov esi, eax
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0xc], edi
cmp dword [ebp - 8], edi
je 0x4469ba
int3
lea ecx, [ebp - 0xc]
push ecx
push edi
lea ecx, [ebp - 8]
push ecx
push edi
push esi
push eax
push 0x1900
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push dword [ebp - 8]
push esi
push 0x41b400
push 0x41a380
call dword [sym.imp.NTDLL.dll_DbgPrint]
add esp, 0x10
cmp dword [ebp - 8], edi
je 0x446a1e
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x446a1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 7
pop ecx
int 0x29
jmp 0x446a1e
cmp byte [0x533ec9], 0
je 0x446a1e
cmp byte [0x5337d8], 0
mov eax, 0x41020001
jne 0x446a20
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0050e82a
leave
ret
Function at 0x44de85
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x3c
mov eax, 0x51fae7
call fcn.0051d3a0
mov ebx, edx
mov esi, ecx
and dword [ebp - 0x1c], 0
lea edi, [ebp - 0x30]
xor eax, eax
lea edx, [ebp - 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004dcef0
test eax, eax
js 0x44dfe1
xor eax, eax
push eax
push 0x80
push 3
push eax
push 1
push SysReAllocString
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x48], esi
cmp esi, 0xffffffff
jne 0x44df03
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x44dee8
mov eax, 0x36fd
jmp 0x44def3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x44def3
int3
mov dword [ebp - 0x2c], 0xf9b
mov dword [ebp - 0x28], 0x41a640
jmp 0x44df2e
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
jne 0x44df50
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x44df4d
mov dword [ebp - 0x2c], 0xfa6
mov dword [ebp - 0x28], 0x41a668
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 0x41a62c
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x34], 0x41a3a8
call fcn.0044f55e
mov edi, eax
jmp 0x44dfbb
mov eax, dword [ebp - 0x24]
push dword [ebp - 0x20]
lea edx, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00443c1a
mov edi, dword [ebp - 0x1c]
test edi, edi
js 0x44dfbb
mov ecx, dword [ebp - 0x18]
mov edx, ebx
call fcn.004dfbb5
mov edi, eax
test edi, edi
js 0x44dfbb
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push dword [ebx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44dfcf
call fcn.004e20f1
mov edi, eax
test edi, edi
js 0x44df99
int3
and dword [ebp - 0x38], 0
lea ecx, [ebp - 0x44]
push edi
mov dword [ebp - 0x44], 0x41a3a8
mov dword [ebp - 0x40], 0x41a62c
mov dword [ebp - 0x3c], 0xfac
call fcn.004de872
test esi, esi
je 0x44dfcb
cmp esi, 0xffffffff
je 0x44dfcb
push esi
call dword [sym.imp.NTDLL.dll_NtClose]
mov eax, edi
jmp 0x44dfe1
mov eax, dword [ebp - 0x18]
mov dword [ebx], eax
test esi, esi
je 0x44dfdf
push esi
call dword [sym.imp.NTDLL.dll_NtClose]
xor eax, eax
call fcn.0051d34a
ret
Function at 0x469331
Capabilities:
Accept command line arguments

Disassembly:
push 0x38
mov eax, 0x521492
call fcn.0051d3a0
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x24]
mov edx, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
xor eax, eax
stosd dword es:[edi], eax
mov dword [ebp - 0x30], edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea ecx, [edx + 3]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], ebx
cmp ecx, edx
jb 0x4694af
cmp ecx, 3
jb 0x4694af
mov eax, ebx
lea edx, [ebp - 0x28]
shld eax, ecx, 1
add ecx, ecx
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.00443c1a
mov edi, dword [ebp - 0x14]
test edi, edi
jns 0x46939b
mov eax, edi
shr eax, 0x1f
test al, al
jne 0x46939d
int3
mov edi, ebx
test edi, edi
js 0x4694b4
mov ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.004dcd24
mov edi, eax
test edi, edi
js 0x4694be
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x30]
push 0x78
pop eax
mov word [esi], ax
push 0x20
pop eax
mov word [esi + 2], ax
lea eax, [edi + edi]
push eax
push dword [ebp - 0x2c]
lea eax, [esi + 4]
push eax
call fcn.00510ff0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2 + 4], ax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
jne 0x46942d
call fcn.004e20f1
mov edi, eax
test edi, edi
js 0x469407
int3
push edi
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], 0x41ed14
mov dword [ebp - 0x40], 0x41ed94
mov dword [ebp - 0x3c], 0x63
mov dword [ebp - 0x38], ebx
call fcn.004de872
jmp 0x4694be
mov byte [ebp - 4], 4
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x30], esi
cmp edi, 1
jge 0x469440
int3
je 0x46946b
lea eax, [edi - 1]
lea eax, [esi + eax*4]
mov dword [ebp - 0x28], eax
push dword [eax]
mov ecx, dword [ebp - 0x34]
call fcn.00469250
mov dword [ebp - 0x2c], eax
test eax, eax
js 0x46948e
mov eax, dword [ebp - 0x28]
dec edi
sub eax, 4
mov dword [ebp - 0x28], eax
cmp edi, 1
jne 0x46944b
test esi, esi
je 0x469485
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x469485
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 7
pop ecx
int 0x29
mov dword [ebp - 4], 6
jmp 0x4694c7
mov edi, eax
test esi, esi
je 0x4694be
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x4694be
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 7
pop ecx
int 0x29
mov edi, dword [ebp - 0x2c]
jmp 0x4694be
mov edi, 0xc0000095
mov eax, edi
shr eax, 0x1f
test al, al
jne 0x4694be
int3
mov dword [ebp - 4], 5
mov ebx, edi
lea ecx, [ebp - 0x24]
call fcn.00442e69
mov eax, ebx
call fcn.0051d34a
ret 0xc