joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42489d
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44712b
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x485bd0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6c], ecx
and dword [ebp - 0x68], 0
push 0x4501db
lea ecx, [ebp - 0x64]
call fcn.00404bb9
mov dword [ebp - 4], 1
push str.Mozilla_5.0__Windows_NT_10.0_
lea ecx, [ebp - 0x64]
call fcn.00404c73
call fcn.00423fa2
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00414dcf
add esp, 0xc
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 2
push dword [ebp - 0x74]
lea ecx, [ebp - 0x64]
call fcn.004145d6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00404c24
push str._rv:107.0__Gecko___20100101_Firefox___107.0
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00414dcf
add esp, 0xc
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 3
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x64]
call fcn.004145d6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00404c24
lea eax, [ebp - 0x64]
push eax
mov ecx, dword [ebp + 8]
call fcn.00405265
mov eax, dword [ebp - 0x68]
or eax, 1
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.00404c24
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00431c7a
leave
ret 4
Function at 0x425b3d
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4473fe
mov eax, dword fs:[0]
push eax
sub esp, 0x2cc
mov eax, dword [0x485bd0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2d0], ecx
and dword [ebp - 0x2cc], 0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x2b4]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2d0]
call fcn.004258e6
mov dword [ebp - 0x2d4], eax
mov eax, dword [ebp - 0x2d4]
mov dword [ebp - 0x2d8], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2d8]
call fcn.004147f7
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2c8], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004147a8
lea ecx, [ebp - 0x2c4]
call fcn.004274f3
mov byte [ebp - 4], 3
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x48]
call fcn.00424f72
mov byte [ebp - 4], 4
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c4]
call fcn.00427580
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.004147a8
lea eax, [ebp - 0x2b4]
push eax
push dword [ebp - 0x2c8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x425c54
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x64]
call fcn.00424f72
mov byte [ebp - 4], 5
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x2c4]
call fcn.00427580
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x64]
call fcn.004147a8
jmp 0x425c0d
lea eax, [ebp - 0x2c4]
push eax
mov ecx, dword [ebp + 8]
call fcn.00427513
mov eax, dword [ebp - 0x2cc]
or eax, 1
mov dword [ebp - 0x2cc], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c4]
call fcn.00416cab
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00404c24
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00431c7a
leave
ret 0x20

Function at 0x42617a
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447456
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x138
mov eax, dword [0x485bd0]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
and dword [ebp - 4], 0
mov byte [ebp - 0x15], 0
mov dword [ebp - 0x148], 0x128
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 0x14]
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x42620b
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 0x14]
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x42620b
push dword [ebp + 8]
lea eax, [ebp - 0x124]
push eax
call fcn.00443270
pop ecx
pop ecx
test eax, eax
jne 0x426209
mov byte [ebp - 0x15], 1
jmp 0x4261dd
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x15]
jmp 0x426227
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00431c7a
leave
ret
Function at 0x42d082
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
and dword [eax + 0x6af78], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af70], 0
jne 0x42d0b6
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af78], 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af70], 0x10000
mov eax, dword [ebp + 8]
and dword [eax + 0x6af6c], 0
push 0x1fffc
push 0
mov eax, dword [ebp + 8]
add eax, 0x4af70
push eax
call fcn.00431c00
add esp, 0xc
mov eax, dword [ebp + 0xc]
movzx eax, word [eax*8 + 0x450962]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af98], eax
mov eax, dword [ebp + 0xc]
movzx eax, word [eax*8 + 0x450960]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af9c], eax
mov eax, dword [ebp + 0xc]
movzx eax, word [eax*8 + 0x450964]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6afa0], eax
mov eax, dword [ebp + 0xc]
movzx eax, word [eax*8 + 0x450966]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af94], eax
cmp dword [ebp + 0xc], 2
jg 0x42d13f
mov eax, dword [ebp + 0x10]
movzx eax, word [eax]
or eax, 4
mov ecx, dword [ebp + 0x10]
mov word [ecx], ax
jmp 0x42d154
cmp dword [ebp + 0xc], 8
jl 0x42d154
mov eax, dword [ebp + 0x10]
movzx eax, word [eax]
or eax, 2
mov ecx, dword [ebp + 0x10]
mov word [ecx], ax
mov eax, dword [ebp + 8]
and dword [eax + 0x6af84], 0
mov eax, dword [ebp + 8]
and dword [eax + 0x6af74], 0
mov dword [ebp - 4], 0x8000
mov eax, dword [ebp - 4]
shl eax, 1
mov dword [ebp - 4], eax
push dword [ebp - 4]
mov eax, dword [ebp + 8]
add eax, 0x1af70
push eax
push dword [ebp + 8]
mov eax, dword [ebp + 8]
call dword [eax + 0xc]
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af90], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af90], 0
je 0x42d1b0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af90], 0xffffffff
jne 0x42d1c9
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af8c], 1
mov eax, dword [ebp + 8]
and dword [eax + 0x6af90], 0
jmp 0x42d233
mov eax, dword [ebp + 8]
and dword [eax + 0x6af8c], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af90], 0x106
jae 0x42d1eb
push dword [ebp + 8]
call fcn.0042d4e5
pop ecx
mov eax, dword [ebp + 8]
and dword [eax + 0x6af7c], 0
and dword [ebp - 4], 0
jmp 0x42d202
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
jae 0x42d233
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af7c]
shl eax, 5
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movzx ecx, byte [ecx + 0x1af70]
xor eax, ecx
and eax, 0x7fff
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af7c], eax
jmp 0x42d1fb
leave
ret
Function at 0x42ed28
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x42ed38
xor eax, eax
jmp 0x42eebb
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x42ee81
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4509b0]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4509b0]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4509b0]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4509b0]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4509b0]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4509b0]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4509b0]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4509b0]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x42ed41
cmp dword [ebp + 0x10], 0
je 0x42eeb5
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4509b0]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
dec eax
mov dword [ebp + 0x10], eax
jne 0x42ee87
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x42eebd
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor eax, dword [ecx]
and eax, 0xff
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4509b0]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0xff
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 4]
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
imul eax, eax, 0x8088405
inc eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
shr eax, 0x18
mov ecx, dword [ebp + 8]
xor eax, dword [ecx + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4509b0]
mov eax, dword [ebp + 8]
mov dword [eax + 8], ecx
pop ebp
ret
Function at 0x431c7a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x485bd0]
jne 0x431c84
repz ret
jmp fcn.0043866d

Function at 0x440b1c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x485bd0]
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.00438e34
and dword [ebp - 0x14], 0
cmp dword [0x499648], 0
mov dword [ebp - 0x18], eax
jne 0x440bcf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x440c77
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x454114
push ebx
call edi
test eax, eax
je 0x440c77
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x454104
push ebx
mov dword [0x499648], eax
call edi
push eax
call esi
push 0x4540f0
push ebx
mov dword [0x49964c], eax
call edi
push eax
call esi
push 0x4540d4
push ebx
mov dword [0x499650], eax
call edi
push eax
call esi
mov dword [0x499658], eax
test eax, eax
je 0x440bcf
push 0x4540bc
push ebx
call edi
push eax
call esi
mov dword [0x499654], eax
mov eax, dword [0x499654]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x440c28
cmp dword [0x499658], ecx
je 0x440c28
push eax
call esi
push dword [0x499658]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x440c28
test ebx, ebx
je 0x440c28
call edi
test eax, eax
je 0x440c1f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x440c1f
test byte [ebp - 8], 1
jne 0x440c28
or dword [ebp + 0x10], 0x200000
jmp 0x440c5b
mov eax, dword [0x49964c]
cmp eax, dword [ebp - 0x18]
je 0x440c5b
push eax
call esi
test eax, eax
je 0x440c5b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x440c5b
mov eax, dword [0x499650]
cmp eax, dword [ebp - 0x18]
je 0x440c5b
push eax
call esi
test eax, eax
je 0x440c5b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x499648]
call esi
test eax, eax
je 0x440c77
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x440c79
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00431c7a
leave
ret
Function at 0x40c25b
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x452040]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [ebp + 8]
mov edx, 0x104
push ebx
push esi
push edi
push ecx
push ecx
xor edi, edi
mov dword [esp + 0x1c], eax
push ecx
lea ecx, [esp + 0x24]
mov dword [eax], edi
mov dword [eax + 4], edi
call fcn.0040af22
push 0x447cdc
lea ecx, [esp + 0x1c]
call fcn.0040ae96
lea eax, [esp + 0x18]
push eax
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x40c2d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40c301
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xcd
call fcn.0040bf9a
mov edi, eax
jmp 0x40c300
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
mov ecx, esi
call fcn.0040c130
mov ebx, eax
test ebx, ebx
jns 0x40c307
push ebx
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xd3
call fcn.0040bf55
pop ecx
mov edi, ebx
pop ecx
test esi, esi
je 0x40c31b
jmp 0x40c315
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
push esi
call fcn.0040c04b
mov ecx, dword [esp + 0x224]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004181b8
mov esp, ebp
pop ebp
ret
Function at 0x40d069
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040d1a6
Function at 0x40e054
Capabilities:
Read file on windows

Disassembly:
push 0x5c
mov eax, 0x43c6b1
call fcn.00418955
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x14], esi
lea edi, [ebp - 0x2c]
xor eax, eax
xor ecx, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], cl
mov dword [ebp - 4], ecx
mov dword [ebp - 0x4c], ecx
lea ecx, [ebp - 0x68]
call fcn.0040db34
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.0040dd4f
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 3
call fcn.00401da8
cmp dword [ebp - 0x30], 7
lea eax, [ebp - 0x44]
push 0x447eb8
cmova eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00425ba5
add esp, 0xc
cmp dword [ebp - 0x4c], 0
jne 0x40e123
xor eax, eax
lea ecx, [ebp - 0x44]
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
mov byte [esi], al
call fcn.00401da8
mov eax, dword [ebp - 0x18]
cmp eax, 0xf
jbe 0x40e1a9
mov ecx, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x14], ecx
cmp eax, 0x1000
jb 0x40e1a0
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00401ec9
mov eax, dword [ebp - 0x48]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
jmp 0x40e1a0
mov ecx, ebx
call fcn.0040dffe
mov edi, eax
test edi, edi
je 0x40e156
xor eax, eax
lea ecx, [ebp - 0x2c]
push eax
push edi
call fcn.0040ea41
push dword [ebp - 0x4c]
cmp dword [ebp - 0x18], 0xf
lea ecx, [ebp - 0x2c]
push 1
cmova ecx, dword [ebp - 0x2c]
push edi
push ecx
call fcn.00425dc5
add esp, 0x10
push dword [ebp - 0x4c]
call fcn.00425fa4
pop ecx
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.00401d13
lea ecx, [ebp - 0x44]
call fcn.00401da8
mov eax, dword [ebp - 0x18]
cmp eax, 0xf
jbe 0x40e1a9
mov ecx, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x48], ecx
cmp eax, 0x1000
jb 0x40e1a0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00401ec9
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x48]
push eax
push ecx
call fcn.00418219
pop ecx
pop ecx
mov eax, esi
call fcn.00418904
ret
Function at 0x410e63
Capabilities:
Read file via mapping

Disassembly:
push 0x64
mov eax, 0x43ccb0
call fcn.00418955
mov eax, dword [ebp + 0xc]
lea edi, [ecx + 0x84]
mov ebx, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
push ebx
push eax
mov dword [ebp - 0x2c], edi
call fcn.004079d3
mov esi, dword [ebp - 0x38]
cmp byte [esi + 0xd], 0
jne 0x410eb0
lea eax, [esi + 0x10]
push eax
push ebx
call fcn.0040352d
test al, al
jne 0x410eb0
cmp esi, dword [edi]
je 0x410eb0
mov eax, dword [esi + 0x30]
jmp 0x410f64
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x4c]
call fcn.0040db34
xor esi, esi
lea ecx, [ebp - 0x28]
mov edx, eax
mov dword [ebp - 4], esi
call fcn.0040dd4f
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.00401da8
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
push esi
cmova eax, dword [ebp - 0x28]
push 0x80
push 3
push esi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x410f5a
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
je 0x410f5a
push esi
push esi
push esi
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x410f58
push ebx
lea ecx, [ebp - 0x70]
call fcn.00401e92
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], esi
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 3
push eax
call fcn.00415b38
lea ecx, [ebp - 0x70]
call fcn.00401f37
jmp 0x410f5a
xor esi, esi
lea ecx, [ebp - 0x28]
call fcn.00401da8
mov eax, esi
call fcn.00418904
ret 8

Function at 0x419050
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41908f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41908f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41908f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41908f
cmp dword [ecx + 0x74], 0xe
jbe 0x41908f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x425a2c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x452040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x440be0
push esi
call fcn.0042c462
pop ecx
pop ecx
test eax, eax
jne 0x425a5a
xor al, al
jmp 0x425ad7
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.0042576d
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x425a94
push dword [ebp - 0x210]
call fcn.004263ae
xor al, al
jmp 0x425ad5
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x425a9a
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x425aba
push edx
call fcn.00425963
pop ecx
test al, al
je 0x425a85
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x425ac8
mov bl, 1
push dword [ebp - 0x210]
call fcn.004263ae
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004181b8
leave
ret
Function at 0x42bcf7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4422bc
push 0x4422b4
push str.FlsAlloc
push 0x1f
call fcn.0042bb22
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42bd2b
push dword [ebp + 8]
mov ecx, esi
call dword [0x43e29c]
call esi
jmp 0x42bd31
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42bd75
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4422cc
push 0x4422c4
push str.FlsGetValue
push 0x21
call fcn.0042bb22
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42bdac
push dword [ebp + 8]
mov ecx, esi
call dword [0x43e29c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42bdb4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4422d4
push 0x4422cc
push str.FlsSetValue
push 0x22
call fcn.0042bb22
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42bdee
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43e29c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42d2f0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x458018]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42d330
cmp byte [ebx], 0xa
jne 0x42d330
or byte [edi + eax + 0x28], 4
jmp 0x42d335
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x42d434
mov dl, byte [eax]
cmp dl, 0x1a
je 0x42d417
inc eax
cmp dl, 0xd
je 0x42d361
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x42d387
cmp eax, ecx
jae 0x42d395
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x42d349
jmp 0x42d434
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42d412
cmp dword [ebp - 0x10], 0
je 0x42d412
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x458018]
test byte [eax + edi + 0x28], 0x48
je 0x42d3ec
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42d3d7
mov byte [esi], dl
jmp 0x42d3e8
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x458018]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42d434
cmp byte [ebp - 1], 0xa
jne 0x42d3fb
cmp esi, ebx
jne 0x42d3fb
mov byte [esi], 0xa
jmp 0x42d433
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043769c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42d434
mov byte [esi], 0xd
jmp 0x42d433
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x458018]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42d431
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42d434
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret