joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ca19
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x513d4c]
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.004569a9
and dword [ebp - 0x14], 0
cmp dword [0x515a9c], 0
mov dword [ebp - 0x18], eax
jne 0x45cacc
push 0x402ab0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x45cb74
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402aa4
push ebx
call edi
test eax, eax
je 0x45cb74
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402a94
push ebx
mov dword [0x515a9c], eax
call edi
push eax
call esi
push 0x402a80
push ebx
mov dword [0x515aa0], eax
call edi
push eax
call esi
push 0x402a64
push ebx
mov dword [0x515aa4], eax
call edi
push eax
call esi
mov dword [0x515aac], eax
test eax, eax
je 0x45cacc
push 0x402a4c
push ebx
call edi
push eax
call esi
mov dword [0x515aa8], eax
mov eax, dword [0x515aa8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x45cb25
cmp dword [0x515aac], ecx
je 0x45cb25
push eax
call esi
push dword [0x515aac]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x45cb25
test ebx, ebx
je 0x45cb25
call edi
test eax, eax
je 0x45cb1c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x45cb1c
test byte [ebp - 8], 1
jne 0x45cb25
or dword [ebp + 0x10], 0x200000
jmp 0x45cb58
mov eax, dword [0x515aa0]
cmp eax, dword [ebp - 0x18]
je 0x45cb58
push eax
call esi
test eax, eax
je 0x45cb58
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x45cb58
mov eax, dword [0x515aa4]
cmp eax, dword [ebp - 0x18]
je 0x45cb58
push eax
call esi
test eax, eax
je 0x45cb58
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x515a9c]
call esi
test eax, eax
je 0x45cb74
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x45cb76
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004538a0
leave
ret
Function at 0x462420
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x463ec0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x513d4c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x18]
push 0x513450
xor ebx, ebx
push eax
xor esi, esi
mov dword [ebp - 4], ebx
call fcn.00449030
mov ecx, dword [ebp - 0x18]
add esp, 8
cmp dword [ecx - 0xc], ebx
je 0x4624f6
mov edi, dword [ebp + 8]
cmp ebx, 2
jge 0x4624f6
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x14]
push edx
push 0
xor eax, eax
push 2
test ebx, ebx
push 0
setne al
push 0
push 0
push ecx
mov dword [ebp - 0x14], 0
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4624ed
mov esi, dword [ebp - 0x14]
mov ecx, esi
mov dword [ebp - 0x28], ecx
test edi, edi
jne 0x4624b9
lea eax, [edi + 0xd]
jmp 0x4624d9
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push 0x4019a4
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x28]
xor edx, edx
test eax, eax
sete dl
mov esi, edx
test ecx, ecx
je 0x4624ed
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
inc ebx
jmp 0x462472
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x462536
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x462550
Capabilities:
Delete file
Get common file path
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x463eeb
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x513d4c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
xor ebx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], edi
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x230]
push ecx
push edx
push eax
mov byte [ebp - 4], 1
call fcn.004305f0
add esp, 0xc
cmp eax, edi
je 0x4626f8
mov eax, dword [ebp - 0x230]
cmp eax, dword [ebp - 0x22c]
je 0x4626f8
lea ecx, [ebp - 0x230]
push 0x4019d8
push ecx
call fcn.004313c0
add esp, 8
push 0x4019c8
push 0x4019b0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x4626f8
push esi
call eax
cmp eax, edi
je 0x46267d
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x46267d
push 0x206
lea eax, [ebp - 0x21a]
xor edx, edx
push edi
push eax
mov word [ebp - reloc.shell32.dll_ShellExecuteExA], dx
call fcn.00453db0
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4626f8
lea edx, [ebp - 0x21c]
push edx
push edi
push edi
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4626f8
push 1
lea ecx, [ebp - 0x21c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4626f8
push 0x4019a8
lea edx, [ebp - 0x220]
push esi
push edx
mov dword [ebp - 0x220], edi
call fcn.004559d8
add esp, 0xc
test eax, eax
jne 0x4626f8
mov eax, dword [ebp - 0x220]
cmp eax, edi
je 0x4626f8
mov ecx, dword [ebp - 0x22c]
push eax
mov eax, dword [ebp - 0x230]
sub ecx, eax
push ecx
push 1
push eax
call fcn.004558a0
mov edx, dword [ebp - 0x220]
push edx
call fcn.004556ed
mov eax, dword [ebp - 0x220]
mov esi, dword [ebp - 0x22c]
sub esi, dword [ebp - 0x230]
push eax
call fcn.004554fe
mov ecx, dword [ebp - 0x220]
xor ebx, ebx
cmp esi, eax
push ecx
sete bl
call fcn.004552f6
add esp, 0x1c
mov eax, dword [ebp - 0x230]
cmp eax, edi
je 0x462723
push eax
call fcn.00453c11
add esp, 4
jmp 0x462723
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004538a0
mov esp, ebp
pop ebp
ret
Function at 0x4628b0
Capabilities:
Check if file exists
Create process on windows
Delete file
Extract resource via kernel32 functions
Move file
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x463f68
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x513d4c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x462a97
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4628f3
sub eax, edx
sar eax, 1
je 0x462a97
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x462a97
push 0x409
push 0x65
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x462a89
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
je 0x462a97
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x462a97
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x462a97
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
lea ecx, [ebp - 0x2c]
push ecx
push edi
push eax
mov byte [ebp - 4], 1
call fcn.004305f0
add esp, 0xc
cmp eax, ebx
je 0x462a70
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x28]
je 0x462a70
mov edi, dword [ebp + 8]
push 0x4019a8
lea eax, [ebp - 0x18]
push edi
push eax
mov dword [ebp - 0x18], ebx
call fcn.004559d8
add esp, 0xc
test eax, eax
jne 0x462a70
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x462a70
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x28]
push ecx
sub esi, eax
push esi
push 1
push eax
call fcn.004558a0
mov edx, dword [ebp - 0x18]
xor ecx, ecx
cmp esi, eax
sete cl
push edx
mov esi, ecx
call fcn.004552f6
add esp, 0x14
cmp esi, ebx
je 0x462a70
mov eax, dword [0x514c50]
mov edx, dword [eax + 0xc]
mov ecx, 0x514c50
call edx
add eax, 0x10
mov dword [ebp - 0x1c], eax
push 0x6b
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.004292a0
cmp eax, ebx
je 0x462a68
mov esi, dword [ebp - 0x1c]
cmp dword [esi - 0xc], ebx
je 0x462a68
push edi
lea ecx, [ebp + 8]
call fcn.00429790
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.0044eef0
push esi
lea ecx, [ebp + 8]
call fcn.0044e5a0
cmp eax, ebx
je 0x462a60
mov eax, dword [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x462a60
mov ecx, dword [ebp + 8]
push 1
push ebx
push ebx
push ecx
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x14], 1
lea ecx, [ebp + 8]
call fcn.0044d710
lea ecx, [ebp - 0x1c]
call fcn.004261d0
lea ecx, [ebp - 0x2c]
call fcn.0042e2d0
jmp 0x462a97
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x462f90
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x463fe0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x513d4c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x463155
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x462fd3
sub eax, edx
sar eax, 1
je 0x463155
push esi
lea ecx, [ebp - 0x1c]
call fcn.00429790
mov eax, dword [0x514c50]
mov edx, dword [eax + 0xc]
mov ecx, 0x514c50
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], edi
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [0x514c50]
mov edx, dword [eax + 0xc]
mov ecx, 0x514c50
mov byte [ebp - 4], 2
call edx
lea esi, [eax + 0x10]
mov dword [ebp + 8], esi
mov byte [ebp - 4], 3
lea eax, [ebp - 0x20]
push eax
push 0x401a40
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00450670
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.0044f1a0
mov edi, dword [ebp - 0x18]
cmp dword [edi - 0xc], 0
mov eax, dword [ebp - 0x24]
setne bl
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x463079
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4630f2
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [ebp + 8]
mov dword [ebp - 0x14], 1
call fcn.00426ee0
push 1
push 0x401a40
lea ecx, [ebp + 8]
call fcn.00426ee0
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x46302a
push 0x401a2c
push 0x401698
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4630da
push 0
push esi
call eax
test eax, eax
jne 0x46316a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x46316a
mov dword [ebp - 0x14], 0
lea eax, [esi - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x463112
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x463132
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x463155
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0xc], 0
je 0x46302a
push 2
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x46302a
Function at 0x40cf70
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x158
push esi
push edi
mov edi, ecx
push 0
push 0x20
mov eax, dword [edi + 0x7c]
jl 0x40cf0d
xchg edi, eax
mov byte [eax], al
add byte [eax], al

Function at 0x40cf80
Capabilities:
Parse pe header

Disassembly:
add byte [eax], al
push edx
call edi
push eax
call ebx
mov eax, dword [esi + 0x9c]
lea ecx, [esp + 0xc]
inc eax
push eax
push 0x409084
push ecx
call 0x40f2d8
mov edx, dword [esp + 0x18]
add esp, 0xc
mov ecx, esi
push edx
push 0x3f6
call 0x40f2d2
lea ecx, [esp + 0xc]
mov dword [esp + 0x78], 0xffffffff
call 0x40f182
mov ecx, dword [esp + 0x70]
pop edi
mov eax, 1
mov dword fs:[0], ecx
pop esi
pop ebx
add esp, 0x70
ret 4
jl 0x40cf0d
xchg edi, eax
mov byte [eax], al
add byte [eax], al
lea esi, [edi + 0x88]
push eax
mov ecx, esi
call dword [edx + 0x28]
test eax, eax
jne 0x40cfb0
push eax
push eax
push 0x409178
mov ecx, edi
call 0x40f2fc
xor eax, eax
pop edi
pop esi
add esp, 0x158
ret
mov eax, dword [esi]
lea ecx, [esp + 0x28]
push 0x40
push ecx
mov ecx, esi
call dword [eax + 0x3c]
cmp word [esp + 0x28], 0x5a4d
jne 0x40cff0
mov ecx, dword [esp + 0x64]
mov eax, dword [esi]
push 0
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov edx, dword [esi]
lea eax, [esp + 0x68]
push pe_nt_image_headers32
push eax
mov ecx, esi
call dword [edx + 0x3c]
cmp dword [esp + 0x68], 0x4550
je 0x40d012
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x54]
push 0
push 0
push 0x409164
mov ecx, edi
call 0x40f2fc
xor eax, eax
pop edi
pop esi
add esp, 0x158
ret
mov eax, dword [esp + 0xf0]
push eax
mov dword [edi + 0x1a8], eax
mov eax, dword [edi + 0x8c]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call 0x40f344
mov ecx, edi
call fcn.0040d0b0
mov edx, dword [esi]
push 0
push eax
mov ecx, esi
mov dword [edi + 0x1a8], eax
call dword [edx + 0x30]
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push 0x10
push ecx
mov ecx, esi
call dword [eax + 0x3c]
mov edx, dword [esi]
lea eax, [esp + 0xc]
push 8
push eax
mov ecx, esi
call dword [edx + 0x3c]
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0x1a8]
mov edx, dword [esi]
and eax, 0x7fffffff
add eax, ecx
push 0
push eax
mov ecx, esi
call dword [edx + 0x30]
mov edx, dword [esi]
lea eax, [esp + 0x14]
push 0x10
push eax
mov ecx, esi
call dword [edx + 0x3c]
mov ecx, dword [esp + 0x22]
mov eax, 1
and ecx, 0xffff
mov dword [edi + 0x98], ecx
pop edi
pop esi
add esp, 0x158
ret
Function at 0x40318e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x447eb0
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x448035
cmp dword [esi + 0x20], 0
je 0x448035
cmp dword [esi + 0x24], 0
je 0x448035
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x448035
cmp dword [eax], esi
jne 0x448035
mov eax, dword [eax + 4]
cmp eax, 0x2a
je 0x447f15
cmp eax, 0x39
je 0x447f15
cmp eax, 0x45
je 0x447f15
cmp eax, 0x49
je 0x447f15
cmp eax, 0x5b
je 0x447f15
cmp eax, 0x67
je 0x447f15
cmp eax, 0x71
je 0x447f15
cmp eax, 0x29a
jne 0x448035
push edi
mov edi, dword [esi + 0x1c]
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 2
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], eax
test ecx, ecx
jns 0x447f4e
neg ecx
mov dword [edi + 0x18], ecx
cmp ecx, 2
mov eax, 0x2a
push 0
mov edx, 0x39
cmove eax, edx
push 0
mov dword [edi + 4], eax
push 0
jne 0x447f70
call fcn.00404061
jmp 0x447f75
call fcn.004061f9
add esp, 0xc
mov dword [esi + 0x30], eax
mov dword [edi + 0x28], 0xfffffffe
push edi
call fcn.0040123a
mov esi, dword [esi + 0x1c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.00403508
mov eax, dword [esi + 0x84]
add esp, 0x10
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x4fb2fa]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x4fb2f8]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x4fb2fc]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x4fb2fe]
pop edi
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x16b4], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret

Function at 0x403aad
Capabilities:
Terminate process

Disassembly:
jmp 0x48c41a
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x48c42b
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00406230
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 0x403c0b
Capabilities:
Query environment variable

Disassembly:
jmp 0x4d6ce8
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4d6cf9
pop esi
ret
push ebx
push edi
push esi
call fcn.004d6bcf
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004045fc
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4d6d21
push ebx
push esi
push edi
call fcn.00405fec
add esp, 0xc
push 0
call fcn.00406c9e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x4060b9
Capabilities:
Parse pe header

Disassembly:
jmp 0x47b51d
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x47b55c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47b55c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47b55c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x47b55c
cmp dword [ecx + 0x74], 0xe
jbe 0x47b55c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x478d9c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.00403c6f
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x478ddb
sub eax, 1
je 0x478dd6
sub eax, 1
je 0x478dd2
xor eax, eax
leave
ret
push 3
jmp 0x478ddd
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x4c1a77
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401f28
mov eax, dword [0x51a0ec]
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.00406843
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4cc4e3
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4cc63f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004069c9
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 + 0x51dc40]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00403693
mov ecx, dword [esi*4 + 0x51dc40]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x4cc638
cmp eax, dword [ecx + edi + 0x24]
jne 0x4cc638
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4cc638
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403693
add esp, 0x14
test edx, edx
jl 0x4cc638
jg 0x4cc5ae
test eax, eax
jb 0x4cc638
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4cc638
jl 0x4cc5c8
cmp dword [ebp - 0x1008], eax
ja 0x4cc638
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4cc5e6
test ebx, ebx
je 0x4cc61f
cmp ecx, edi
jae 0x4cc61f
mov al, byte [ecx]
cmp al, 0xd
jne 0x4cc600
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4cc60c
cmp byte [ecx + 1], 0xa
jne 0x4cc60c
inc ecx
jmp 0x4cc60c
movzx eax, al
movsx eax, byte [eax + 0x51a410]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4cc5e6
cmp edx, ebx
jne 0x4cc5e6
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4cc63d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403427
leave
ret
Function at 0x4cd7c9
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 + 0x51dc40]
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 0x4cd809
cmp byte [ebx], 0xa
jne 0x4cd809
or byte [edi + eax + 0x28], 4
jmp 0x4cd80e
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 0x4cd90d
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4cd8f0
inc eax
cmp dl, 0xd
je 0x4cd83a
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4cd860
cmp eax, ecx
jae 0x4cd86e
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 0x4cd822
jmp 0x4cd90d
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 0x4cd8eb
cmp dword [ebp - 0x10], 0
je 0x4cd8eb
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x51dc40]
test byte [eax + edi + 0x28], 0x48
je 0x4cd8c5
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4cd8b0
mov byte [esi], dl
jmp 0x4cd8c1
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x51dc40]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4cd90d
cmp byte [ebp - 1], 0xa
jne 0x4cd8d4
cmp esi, ebx
jne 0x4cd8d4
mov byte [esi], 0xa
jmp 0x4cd90c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401a5a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4cd90d
mov byte [esi], 0xd
jmp 0x4cd90c
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x51dc40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4cd90a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4cd90d
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret