joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a0d00
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4cf994
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x517930]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov eax, dword [esi]
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov ebx, str.KukusDashis
cmp dword [eax - 0xc], ebp
je 0x4a0e54
push 0x50e4fc
push eax
call fcn.004b70dc
test eax, eax
pop ecx
sete al
pop ecx
test al, al
jne 0x4a0e54
push ebx
push dword [esi]
call fcn.004b70dc
test eax, eax
pop ecx
sete al
pop ecx
test al, al
jne 0x4a0e54
push ebp
push ebp
push 3
push ebp
push ebp
push SysReAllocStringLen
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4a0d96
push str.KukusDashis
jmp 0x4a0e55
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebp
push eax
push ebx
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x4a0db7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4a0d8c
cmp dword [esp + 0x24], ebp
jne 0x4a0dae
cmp dword [esp + 0x20], ebp
jne 0x4a0dd4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x50e4fc
jmp 0x4a0e55
call fcn.004a1634
push eax
lea ecx, [esp + 0x18]
call fcn.004a10d2
push ebp
lea eax, [esp + 0x1c]
mov dword [esp + 0x34], ebp
push eax
push dword [esp + 0x28]
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], ebp
push dword [esp + 0x2c]
call fcn.004a1845
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [esp + 0x20]
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.004a16f0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x4a0e3e
push str.KukusDashis
mov ecx, edi
call fcn.004a0fdb
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.004a1719
jmp 0x4a0e5c
mov esi, dword [esp + 0x14]
lea ecx, [esi - 0x10]
call fcn.004a11ce
add eax, 0x10
lea ecx, [esi - 0x10]
mov dword [edi], eax
jmp 0x4a0e37
push ebx
mov ecx, edi
call fcn.004a0fdb
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret

Function at 0x4a0e72
Capabilities:
Write file on windows

Disassembly:
push 4
mov eax, 0x4cf9b7
call fcn.004b9c9d
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x40000000
mov dword [ebp - 4], ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4a0ee7
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ebx
push ecx
mov dword [ebp - 0x10], ebx
lea ecx, [ebp + 8]
push dword [eax - 0xc]
push ebx
call fcn.004a1845
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 1
sete bl
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004a1719
mov al, bl
call fcn.004b9c6b
ret
Function at 0x4b2830
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x517930]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x40c], eax
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x410], 0
jb 0x4b2869
mov eax, dword [esi]
jmp 0x4b286b
mov eax, esi
push 0x4d3018
push eax
call fcn.004b629c
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4b28a7
push esi
mov esi, dword [ebp - 0x40c]
push str.Failed_to_open_target:
push esi
call fcn.004b0e00
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b5580
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x14], 8
jb 0x4b28af
mov edi, dword [edi]
push 0x4d3034
push edi
call fcn.004b9ac4
mov edi, eax
add esp, 8
test edi, edi
jne 0x4b28d6
push ebx
call fcn.004b6a9c
add esp, 4
push str.Failed_to_open_source
jmp 0x4b296a
push edi
call fcn.004b98fe
add esp, 4
test eax, eax
jne 0x4b2956
push edi
push 0x400
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.004b6984
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b2913
push ebx
push esi
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.004b6de2
add esp, 0x10
push edi
call fcn.004b98fe
add esp, 4
test eax, eax
je 0x4b2949
test esi, esi
je 0x4b2949
cmp byte [ebp + esi - 0x405], 0xa
je 0x4b2949
push ebx
push 1
lea eax, [ebp - 0x405]
mov byte [ebp - 0x405], 0xa
push 1
push eax
call fcn.004b6de2
add esp, 0x10
push edi
call fcn.004b98fe
add esp, 4
test eax, eax
je 0x4b28e3
push ebx
call fcn.004b6a9c
push edi
call fcn.004b6a9c
add esp, 8
push 0x50e4fc
mov ecx, dword [ebp - 0x40c]
call fcn.004a0551
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x40c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004b5580
mov esp, ebp
pop ebp
ret
Function at 0x4b2990
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], 0
cmp dword [esi + 0x10], 0
jne 0x4b29ce
mov esi, dword [ebp + 8]
mov ecx, esi
push 0xc
push str.Empty_string
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
call fcn.004a083c
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x14], 0x10
jb 0x4b29dc
mov eax, dword [edi]
jmp 0x4b29de
mov eax, edi
push ebx
push 0x4d3018
push eax
call fcn.004b629c
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4b2a0e
mov esi, dword [ebp + 8]
push edi
push str.Failed_to_open_target:
push esi
call fcn.004b0e00
add esp, 0xc
mov eax, esi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 0x10
jb 0x4b2a18
mov eax, dword [esi]
jmp 0x4b2a1a
mov eax, esi
push ebx
push dword [esi + 0x10]
push 1
push eax
call fcn.004b6de2
mov eax, dword [esi + 0x10]
add esp, 0x10
cmp dword [esi + 0x14], 0x10
jb 0x4b2a34
mov esi, dword [esi]
cmp byte [esi + eax - 1], 0xa
je 0x4b2a50
push ebx
push 1
lea eax, [ebp + 0x13]
mov byte [ebp + 0x13], 0xa
push 1
push eax
call fcn.004b6de2
add esp, 0x10
push ebx
call fcn.004b6a9c
mov ecx, dword [ebp + 8]
add esp, 4
push 0x50e4fc
call fcn.004a0551
mov eax, dword [ebp + 8]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x65592162
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x64a90f8a
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401400
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov dword [ebp - 0x210], 0
lea eax, [ebp - 0x208]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.MicrosoftInternet_ExplorerQuick_Launch
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x208]
push eax
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
mov ecx, dword [ebp - 0x210]
or ecx, 1
mov dword [ebp - 0x210], ecx
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret

Function at 0x40146a
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [0x404404]
test eax, eax
jne 0x40149d
push 0x404404
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push str.Internet_Exploreriexplore.exe
push 0x404404
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x404404
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4014c8
push 5
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0x404404
push 0x404118
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x4014df
push 5
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop ebp
ret
Function at 0x4014e1
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 4]
push eax
push 0x402b8c
push 1
push 0
push 0x402e6c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x4015fa
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
push ecx
call dword [eax + 0x50]
cmp dword [ebp + 0x10], 0
je 0x40153d
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
push edx
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], 0
je 0x401553
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
push eax
call dword [edx + 0x1c]
cmp dword [ebp + 0x18], 0
je 0x401569
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
push ecx
call dword [eax + 0x24]
cmp dword [ebp + 0x1c], 0
jl 0x40157f
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
push edx
call dword [ecx + 0x3c]
cmp dword [ebp + 0x20], 0
je 0x401599
mov eax, dword [ebp + 0x24]
push eax
mov ecx, dword [ebp + 0x20]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
push ecx
call dword [eax + 0x44]
lea edx, [ebp - 0xc]
push edx
push 0x40329c
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
push edx
call dword [ecx]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x4015ee
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
push 1
lea edx, [ebp - 0x214]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
push edx
call dword [ecx + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
push edx
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
push edx
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x100119e
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov cl, byte [eax]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
xor ebx, ebx
mov byte [edi], cl
lea ecx, [edi + 1]
inc eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x18]
call fcn.010017ef
test eax, eax
je 0x10012d3
call fcn.010017ef
test eax, eax
je 0x100124d
call fcn.010017ef
xor esi, esi
test eax, eax
je 0x1001217
push 4
pop edi
lea ecx, [ebp - 0x18]
call fcn.010017ef
dec edi
lea esi, [eax + esi*2]
jne 0x10011e9
test esi, esi
mov eax, dword [ebp - 0x14]
je 0x1001209
mov ecx, dword [ebp - 0x14]
sub eax, esi
mov al, byte [eax]
mov byte [ecx], al
jmp 0x100120c
mov byte [eax], 0
inc dword [ebp - 0x14]
mov edi, dword [ebp + 8]
jmp 0x10012e3
mov eax, dword [ebp - 0x18]
movzx ecx, byte [eax]
inc dword [ebp - 0x18]
inc esi
mov eax, ecx
and eax, esi
inc eax
inc eax
shr ecx, 1
je 0x1001243
test eax, eax
je 0x1001246
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x14]
sub edx, ecx
mov dl, byte [edx]
inc dword [ebp - 0x14]
dec eax
mov byte [ebx], dl
jne 0x100122f
jmp 0x1001246
mov dword [ebp - 8], esi
mov ebx, ecx
jmp 0x10012e5
call fcn.01001713
test esi, esi
jne 0x1001280
cmp eax, 2
jne 0x100127b
lea ecx, [ebp - 0x18]
call fcn.01001713
test eax, eax
je 0x10012ce
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
sub ecx, ebx
mov cl, byte [ecx]
inc dword [ebp - 0x14]
dec eax
mov byte [edx], cl
jne 0x1001267
jmp 0x10012ce
sub eax, 3
jmp 0x1001282
dec eax
dec eax
mov ecx, dword [ebp - 0x18]
movzx ecx, byte [ecx]
shl eax, 8
add eax, ecx
inc dword [ebp - 0x18]
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.01001713
cmp esi, 0x7d00
jb 0x10012a3
inc eax
cmp esi, 0x500
jb 0x10012ac
inc eax
cmp esi, 0x80
jae 0x10012b6
inc eax
inc eax
test eax, eax
je 0x10012cc
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
sub ecx, esi
mov cl, byte [ecx]
inc dword [ebp - 0x14]
dec eax
mov byte [edx], cl
jne 0x10012ba
mov ebx, esi
xor esi, esi
inc esi
jmp 0x10012e5
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov al, byte [eax]
inc dword [ebp - 0x14]
inc dword [ebp - 0x18]
mov byte [ecx], al
xor esi, esi
cmp dword [ebp - 8], 0
je 0x10011c2
mov eax, dword [ebp - 0x14]
sub eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100185d
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 6]
and dword [ebp - 8], 0
push ebx
mov dword [ebp - 4], eax
movzx eax, word [ecx + 0x14]
push esi
push edi
lea esi, [eax + ecx + 0x18]
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0xc]
jb 0x10018cc
mov edi, dword [ecx + 0x38]
mov eax, dword [esi + 8]
mov edx, dword [ecx + 0x3c]
mov ebx, dword [esi + 0x10]
lea eax, [eax + edi - 1]
dec edi
not edi
and eax, edi
lea edi, [ebx + edx - 1]
dec edx
not edx
and edi, edx
cmp edi, eax
jbe 0x10018b0
mov eax, dword [ecx + 0x3c]
lea edx, [eax + ebx - 1]
jmp 0x10018ba
mov eax, dword [ecx + 0x38]
mov edx, dword [esi + 8]
lea edx, [eax + edx - 1]
dec eax
not eax
and edx, eax
mov eax, dword [esi + 0xc]
add eax, edx
cmp dword [ebp + 8], eax
jae 0x10018cc
mov dword [ebp - 8], esi
mov eax, dword [ebp - 8]
add esi, 0x28
dec dword [ebp - 4]
test eax, eax
jne 0x10018de
cmp dword [ebp - 4], eax
jne 0x100187d
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1001dc9
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x1001dfa
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x1001e01
cmp ebx, dword [ebp + 8]
jae 0x1001e01
xor eax, eax
jmp 0x1001fe7
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x1001e12
xor eax, eax
inc eax
jmp 0x1001fe6
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x1001e24
cmp ecx, edx
jae 0x1001e88
cmp dword [eax + 4], 0
je 0x1001e2d
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x1001e19
cmp dword [ebp + 8], 0
je 0x1001e47
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x1001e88
cmp eax, esi
jae 0x1001e88
mov ecx, dword [0x403020]
mov esi, ebx
and esi, 0xfffff000
xor eax, eax
test ecx, ecx
jle 0x1001e69
cmp dword [eax*4 + 0x403028], esi
je 0x1001e8f
inc eax
cmp eax, ecx
jl 0x1001e5b
lea eax, [ebp + 8]
push eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
push 0
push ebx
or edi, 0xffffffff
push edi
call fcn.01001796
test eax, eax
jl 0x1001eff
mov eax, dword [ebp + 8]
jmp 0x1001f01
xor eax, eax
jmp 0x1001fe6
test eax, eax
jle 0x1001e0a
xor edx, edx
mov ebx, 0x403068
inc edx
mov edi, ebx
xchg dword [edi], edx
test edx, edx
jne 0x1001e0a
cmp dword [eax*4 + 0x403028], esi
je 0x1001ede
lea eax, [ecx - 1]
test eax, eax
jl 0x1001ecb
cmp dword [eax*4 + 0x403028], esi
je 0x1001ec7
dec eax
jns 0x1001ebb
test eax, eax
jge 0x1001edc
cmp ecx, 0x10
jge 0x1001ed7
inc ecx
mov dword [0x403020], ecx
lea eax, [ecx - 1]
jmp 0x1001ede
je 0x1001ef6
xor edx, edx
test eax, eax
jl 0x1001ef6
lea ecx, [edx*4 + 0x403028]
mov edi, dword [ecx]
inc edx
cmp edx, eax
mov dword [ecx], esi
mov esi, edi
jle 0x1001ee4
xor eax, eax
xchg dword [ebx], eax
jmp 0x1001e0a
xor eax, eax
test eax, eax
je 0x1001fe4
cmp dword [ebp - 8], 0x1000000
jne 0x1001fe4
test byte [ebp - 0xc], 0xcc
je 0x1001f76
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x1001fe4
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1001fe4
cmp word [eax + 0x18], 0x10b
jne 0x1001fe4
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x1001fe4
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x1001f76
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x1001f76
test byte [ecx + 0x27], 0x80
jne 0x1001e88
xor eax, eax
inc eax
mov ecx, eax
mov edx, 0x403068
xchg dword [edx], ecx
test ecx, ecx
jne 0x1001fe6
mov ecx, dword [0x403020]
test ecx, ecx
mov edx, ecx
jle 0x1001fa5
lea eax, [ecx*4 + 0x403024]
cmp dword [eax], esi
je 0x1001fa5
dec edx
sub eax, 4
test edx, edx
jg 0x1001f99
test edx, edx
jne 0x1001fd6
push 0xf
pop ebx
cmp ecx, ebx
jg 0x1001fb2
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x1001fca
lea eax, [edx*4 + 0x403028]
mov edi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], esi
mov esi, edi
jle 0x1001fb8
cmp ecx, 0x10
jge 0x1001fd6
inc ecx
mov dword [0x403020], ecx
xor eax, eax
mov ecx, 0x403068
xchg dword [ecx], eax
jmp 0x1001e0a
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401440
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440290
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x449040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
push 0x30
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
push 0
push esi
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
call sub.VCRUNTIME140.dll_memset
lea edi, [esi + 0x40]
add esp, 0xc
lea eax, [edi + 0x10]
mov dword [ebp - 0x10], edi
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov byte [edi], 0
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov dword [edi + 4], 0
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x401538
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x10]
call fcn.0041ce90
lea eax, [edi + 0x10]
mov dword [eax], 0
xorps xmm0, xmm0
mov dword [edi + 0x2c], 0
mov eax, esi
mov dword [edi + 0x30], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x34], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x88], 0
movups xmmword [esi + 0x78], xmm0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0x34], 0xffffffff
mov dword [esi + 0x30], 0xffffffff
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403f10
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x403f71
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x403f54
cmp edi, 2
jb 0x403f54
cmp byte [esi], cl
jne 0x403f54
cmp byte [esi + 1], cl
jne 0x403f54
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x4426a0]
jmp 0x403f25
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x4426a0]
test edi, edi
jne 0x403f25
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x403fa0
cmp cl, 0x23
jne 0x403f87
cmp byte [esi], cl
jne 0x403f87
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x4426a0]
test cl, cl
jne 0x403f78
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
Function at 0x404140
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x404153
mov dword [ebx], 0
mov edx, 0x442240
call fcn.00403fb0
mov esi, eax
test esi, esi
je 0x404273
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call edi
add esp, 4
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x404269
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x404269
push esi
call edi
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x404269
push 0
push dword [ebp + 8]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x404269
mov ecx, edi
call fcn.00408bb0
mov dword [ebp + 8], eax
test eax, eax
je 0x404269
push esi
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, edi
je 0x404252
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, dword [0x449430]
add esp, 4
test ecx, ecx
je 0x40423f
movsx edx, word [ecx + 0x6008]
lea eax, [ecx + 0x600c]
mov esi, dword [ecx + 0x3f58]
lea eax, [eax + edx*8]
cmp dword [eax], esi
je 0x404235
lea eax, [edx + 1]
mov edi, 6
cdq
idiv edi
movzx eax, dx
mov word [ecx + 0x6008], ax
cwde
lea eax, [eax*8 + 0x600c]
add eax, ecx
xor edx, edx
mov dword [eax], esi
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x6004]
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test ebx, ebx
je 0x404261
mov dword [ebx], edi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x40c040
Capabilities:
Hash data with crc32

Disassembly:
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x40c07d
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x40c063
cmp byte [esi], bl
jne 0x40c063
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x4426a0]
test bl, bl
jne 0x40c054
pop edi
pop esi
not ecx
pop ebx
jmp fcn.0040bfe0