joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409930
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x409aec
cmp dword [edi + 0x18], 0
je 0x409aec
cmp dword [edi + 0x7c], 0
je 0x409959
call fcn.00409de0
lea eax, [ebp - 8]
mov ecx, edi
push eax
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0xc]
call fcn.004096c0
add esp, 8
test eax, eax
je 0x40997d
pop edi
mov eax, 0xffffff99
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0x84
call fcn.0041d395
mov esi, eax
add esp, 4
test esi, esi
je 0x4099c0
push 0x4000
call fcn.0041d395
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [esi + 0x44], ecx
mov ecx, dword [ebp - 8]
mov dword [esi], eax
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], 0
test eax, eax
jne 0x4099cc
push esi
call fcn.0041c805
add esp, 4
pop esi
pop edi
mov eax, 0xffffff98
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x40], 0
mov ecx, dword [edi + 0x34]
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x54], eax
mov dword [esi + 0x50], 0
mov eax, dword [edi + 0x34]
mov dword [esi + 0x64], eax
mov eax, dword [edi]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x68], eax
mov dword [esi + 0x18], 0
test ecx, ecx
je 0x409a27
lea ecx, [esi + 4]
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call fcn.00408510
test eax, eax
jne 0x409a27
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov eax, dword [edi + 0x44]
mov dword [esi + 0x5c], eax
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x409a4a
mov al, byte [edi + 0x39]
jmp 0x409a4d
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
mov ecx, 0xc
xor eax, eax
cmp byte [esi + 0x6c], al
cmovne eax, ecx
mov dword [esi + 0x7c], eax
mov dword [esi + 0x70], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
test ebx, ebx
je 0x409acd
nop dword [eax]
mov al, byte [ebx]
test al, al
je 0x409acd
mov ecx, dword [esi + 0x70]
movsx eax, al
xor eax, ecx
shr ecx, 8
movzx eax, al
mov eax, dword [eax*4 + 0x44a820]
xor eax, ecx
mov ecx, dword [esi + 0x78]
mov dword [esi + 0x70], eax
movzx eax, al
add eax, dword [esi + 0x74]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x74], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x44a820]
mov dword [esi + 0x78], ecx
add ebx, 1
jne 0x409a80
mov eax, dword [ebp - 0xc]
add eax, 0x1e
add eax, dword [edi + 0x78]
mov dword [esi + 0x3c], eax
xor eax, eax
mov dword [esi + 8], 0
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0xffffff9a
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a550
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ac92
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x450008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x10], ecx
push 0x244
call fcn.004162a7
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
push 0x244
push 0
push esi
call fcn.00419080
add esp, 0xc
mov dword [esi], 0
lea edi, [esi + 0x140]
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x134], 0xffffffff
mov dword [esi + 0x138], 0
push edi
push 0x104
mov dword [esi + 0x13c], 0
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a5e8
sub ecx, edx
mov al, byte [ecx + esi + 0x13f]
cmp al, 0x5c
je 0x40a613
cmp al, 0x2f
je 0x40a613
push 0x44c45c
push 0x104
push edi
call fcn.0041d405
add esp, 0xc
push 0x20
call fcn.004162a7
mov ecx, dword [ebp - 0x10]
add esp, 4
mov dword [eax + 0x14], ecx
mov ecx, eax
mov word [eax], 0x100
mov byte [eax + 0x10], 0
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], 0
mov dword [eax + 0xc], 0
call fcn.00408de0
mov dword [esi], eax
test eax, eax
jne 0x40a670
push ecx
mov ecx, esi
mov dword [0x451e20], 0x200
call fcn.0040a6a0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 8
mov dword [0x451e20], 0
call fcn.004162a7
add esp, 4
mov dword [eax], 1
mov dword [eax + 4], 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 0x411a90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x450008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x114]
mov dword [ebp - 0x230], ecx
push 0
push eax
mov ebx, edx
call fcn.00419080
add esp, 0xc
lea eax, [ebp - 0x114]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x114]
push 0x5c
push eax
call fcn.0041db27
add esp, 4
mov edx, 0xc
push str.network.log
push ecx
lea ecx, [eax + 1]
call fcn.0040a960
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 2
push 0
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x220]
movzx eax, word [ebp - 0x222]
push ecx
push eax
movzx eax, word [ebp - 0x224]
push eax
movzx eax, word [ebp - 0x226]
push eax
movzx eax, word [ebp - 0x22a]
push eax
movzx eax, word [ebp - 0x22c]
push eax
push str._d__02d__02d__02d:_02d:_02d
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.0040a8e0
lea eax, [ebp - 0x21c]
add esp, 0x24
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411b90
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
sub eax, edx
push 0
push 0
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
call edi
mov eax, dword [ebp + 8]
cmp eax, 5
ja case.default.0x411bb6
jmp dword [eax*4 + 0x411c48]
push 0
push 0
push 0xc
push str._Send_Head:
jmp 0x411c09
push 0
push 0
push 0x11
push str._Send_Plan_Text:
jmp 0x411c09
push 0
push 0
push 0x13
push str._Send_Cipher_Text:
jmp 0x411c09
push 0
push 0
push 0xf
push str._Receive_Head:
jmp 0x411c09
push 0
push 0
push 0x14
push str._Receive_Plan_Text:
jmp 0x411c09
push 0
push 0
push 0x16
push str._Receive_Cipher_Text:
push esi
call edi
push 0
push 0
push ebx
push dword [ebp - 0x230]
push esi
call edi
push 0
push 0
push 4
push str._r_n_r_n
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416291
mov esp, ebp
pop ebp
ret
Function at 0x412450
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x41247b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00412e70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x41249d
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x41249f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x41253e
jg 0x4124bc
test esi, esi
je 0x41253e
test ecx, ecx
jl 0x412509
jg 0x4124c6
test eax, eax
je 0x412509
cmp ebx, ecx
jg 0x4124da
jl 0x4124d0
cmp esi, eax
jae 0x4124da
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.00419220
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x412510
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x41253e
jg 0x41251a
test esi, esi
je 0x41253e
cmp dword [edi + 0x4c], 0
je 0x41253e
mov ecx, edi
call fcn.004132d0
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.0042028d
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4133e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b280
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x450008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004162a7
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00417297
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x415bf0
Capabilities:
Hide graphical window
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x18c
mov eax, dword [0x450008]
xor eax, esp
mov dword [esp + 0x188], eax
movzx eax, byte [0x44cc1c]
movq xmm0, qword [0x44cc14]
push esi
mov esi, dword [ebp + 8]
mov byte [esp + 0x4c], al
mov eax, dword [0x44cc28]
movq qword [esp + 0x44], xmm0
movq xmm0, qword [str.HelloWindows]
mov dword [esp + 0x58], eax
movzx eax, byte [0x44cc2c]
push 0x7f00
push 0
movq qword [esp + 0x58], xmm0
mov byte [esp + 0x64], al
mov dword [esp + 0x14], 0x30
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], 0x415e50
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], esi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push 0
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x44]
mov dword [esp + 0x34], eax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], 0
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push esi
push 0
push 0
push 0x12c
push 0x190
push 0x80000000
push 0x80000000
push 0xcf0000
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x6c]
push eax
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x415e2b
mov al, byte [eax]
cmp al, 0x31
jne 0x415d2a
call fcn.00415e60
call fcn.0040b340
jmp 0x415e23
cmp al, 0x32
jne 0x415e23
movups xmm0, xmmword [str.SoftwareBearScreenShot]
push 0
lea eax, [esp + 0xc]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [esp + 0x7c]
movups xmmword [esp + 0x7c], xmm0
push eax
movq xmm0, qword [0x44cc40]
push 0x80000001
movq qword [esp + 0x94], xmm0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x415e1e
push 0x104
push eax
lea eax, [esp + 0x88]
push eax
call fcn.00419080
add esp, 0xc
mov dword [esp + 0x40], 1
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0x104
push eax
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x48]
push eax
push 0
push str.LogicBear
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x415e0f
mov ecx, str.W2e3Ux891
lea eax, [esp + 0x80]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x415df4
test dl, dl
je 0x415df0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x415df4
add eax, 2
add ecx, 2
test dl, dl
jne 0x415dd4
xor ecx, ecx
jmp 0x415df9
sbb ecx, ecx
or ecx, 1
movzx eax, byte [0x451f2c]
test ecx, ecx
mov edx, 1
cmove eax, edx
mov byte [0x451f2c], al
mov eax, dword [esp + 8]
test eax, eax
je 0x415e1e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0040dba0
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov ecx, dword [esp + 0x18c]
xor eax, eax
pop esi
xor ecx, esp
call fcn.00416291
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4257ac
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4257eb
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4257eb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4257eb
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4257eb
cmp dword [ecx + 0x74], 0xe
jbe 0x4257eb
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x42b5e2
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4421e0
push 0x4421d8
push str.FlsAlloc
push 0x1f
call fcn.0042b4aa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42b616
push dword [ebp + 8]
mov ecx, esi
call dword [0x43c1f8]
call esi
jmp 0x42b61c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42b660
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4421f0
push 0x4421e8
push str.FlsGetValue
push 0x21
call fcn.0042b4aa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42b697
push dword [ebp + 8]
mov ecx, esi
call dword [0x43c1f8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42b69f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4421f8
push 0x4421f0
push str.FlsSetValue
push 0x22
call fcn.0042b4aa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42b6d9
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43c1f8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42d5f7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00439cf0
mov eax, dword [0x450008]
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.00429929
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42d639
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42d795
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00439b40
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 + 0x451ac8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0042e585
mov ecx, dword [esi*4 + 0x451ac8]
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 0x42d78e
cmp eax, dword [ecx + edi + 0x24]
jne 0x42d78e
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 0x42d78e
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042e585
add esp, 0x14
test edx, edx
jl 0x42d78e
jg 0x42d704
test eax, eax
jb 0x42d78e
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x42d78e
jl 0x42d71e
cmp dword [ebp - 0x1008], eax
ja 0x42d78e
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x42d73c
test ebx, ebx
je 0x42d775
cmp ecx, edi
jae 0x42d775
mov al, byte [ecx]
cmp al, 0xd
jne 0x42d756
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42d762
cmp byte [ecx + 1], 0xa
jne 0x42d762
inc ecx
jmp 0x42d762
movzx eax, al
movsx eax, byte [eax + 0x4502d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42d73c
cmp edx, ebx
jne 0x42d73c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x42d793
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00416291
leave
ret
Function at 0x42d890
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 + 0x451ac8]
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 0x42d8d0
cmp byte [ebx], 0xa
jne 0x42d8d0
or byte [edi + eax + 0x28], 4
jmp 0x42d8d5
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 0x42d9d4
mov dl, byte [eax]
cmp dl, 0x1a
je 0x42d9b7
inc eax
cmp dl, 0xd
je 0x42d901
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x42d927
cmp eax, ecx
jae 0x42d935
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 0x42d8e9
jmp 0x42d9d4
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 0x42d9b2
cmp dword [ebp - 0x10], 0
je 0x42d9b2
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x451ac8]
test byte [eax + edi + 0x28], 0x48
je 0x42d98c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42d977
mov byte [esi], dl
jmp 0x42d988
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x451ac8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42d9d4
cmp byte [ebp - 1], 0xa
jne 0x42d99b
cmp esi, ebx
jne 0x42d99b
mov byte [esi], 0xa
jmp 0x42d9d3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042e5a3
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42d9d4
mov byte [esi], 0xd
jmp 0x42d9d3
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x451ac8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42d9d1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42d9d4
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42d9dd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x451ac8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42da23
cmp word [ebx], dx
jne 0x42da23
or byte [eax + edi + 0x28], 4
jmp 0x42da28
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x42db8b
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x42db6b
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x42da69
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42da9f
cmp eax, edx
jae 0x42daad
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x42da44
jmp 0x42db8b
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42db66
cmp dword [ebp - 0x18], 0
je 0x42db66
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x451ac8]
test byte [eax + edi + 0x28], 0x48
je 0x42db3c
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x42db00
mov word [esi], cx
jmp 0x42db37
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x451ac8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x451ac8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x451ac8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x42db8b
pop eax
cmp word [ebp - 4], ax
jne 0x42db4c
cmp esi, ebx
jne 0x42db4c
mov word [esi], ax
jmp 0x42db88
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0042e5a3
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x42db8b
push 0xd
pop eax
jmp 0x42db47
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x451ac8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x42db85
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x42db8b
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42f702
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x42f79f
push ebx
push esi
call fcn.0042f6cb
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0042f65f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42f74c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42f79e
push edi
push eax
call fcn.0042bcfa
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42f76c
call fcn.004298ef
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42f79d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042f65f
add esp, 0x20
test eax, eax
jne 0x42f78b
push edi
call fcn.004298ef
jmp 0x42f793
push ebx
call fcn.004298ef
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x43220e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042a038
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43227d
cmp esi, dword [ebp - 4]
je 0x432278
cmp dword [ebp + 0xc], 0
je 0x432278
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x432255
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00431d60
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x43227f
xor eax, eax
inc eax
jmp 0x43227f
xor eax, eax
pop edi
pop esi
leave
ret