joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5d5d60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
sub esp, 0x98
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov bl, byte [esp + 0xb8]
mov byte [esp + 0x2f], bl
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xac]
mov esi, dword [esp + 0xa8]
mov dword [esp + 0x34], esi
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], ecx
and bl, 1
mov byte [esp + 0x6f], bl
lea esi, [esp + 0x38]
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.005d5840
mov eax, 1
xor ecx, ecx
cmp dword [esp + 0x38], 0
cmove eax, ecx
cmp eax, 0
jne 0x5d5e08
mov al, byte [esp + 0x2f]
movzx ecx, al
and ecx, 1
mov eax, esp
mov dword [eax], ecx
call fcn.005ec6d0
mov ecx, eax
mov eax, dword [esp + 0x24]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax], 0
jmp 0x5d5e60
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], eax
mov esi, dword [esp + 0x40]
mov dword [esp + 0x20], esi
mov dword [esp + 0x78], esi
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.005d09d0
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x5c]
xor eax, eax
mov ecx, 1
cmp edx, 0
cmove eax, ecx
cmp eax, 0
je 0x5d5e6d
jmp 0x5d5ec7
mov eax, dword [esp + 0x28]
add esp, 0x98
pop esi
pop ebx
ret
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x60]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], esi
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], ecx
add ecx, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], ecx
sub eax, 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x94], eax
cmp eax, 8
jb 0x5d5f12
jmp 0x5d5eff
mov cl, byte [esp + 0x2f]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov eax, esp
mov dword [eax + 8], esi
mov dword [eax + 4], edx
movzx ecx, cl
and ecx, 1
mov dword [eax], ecx
call fcn.005ec720
mov ecx, eax
mov eax, dword [esp + 0x24]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax], 0
jmp 0x5d5e60
mov eax, dword [esp + 0x14]
add eax, 1
shr eax, 3
imul eax, eax, 7
mov dword [esp + 0x58], eax
jmp 0x5d5f1a
mov eax, dword [esp + 0x14]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], 0
mov ecx, dword [esp + 0x48]
mov dword [eax], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 0xc], ecx
jmp 0x5d5e60
Function at 0x5d9200
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x24
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 8], 0
movups xmmword [ebp - 0x18], xmm0
movups xmmword [ebp - 0x28], xmm0
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x5d9235
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x5d9245
mov eax, dword [0x612d88]
mov ecx, dword [0x612d8c]
mov dword [esi + 4], ecx
mov dword [esi], eax
mov eax, esi
add esp, 0x24
pop esi
pop ebp
ret

Function at 0x5d9250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x438
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x5e5ab0
mov edi, 0x200
lea eax, [ebp - 0x18]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 2
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x20], 0
cmp edi, 0x201
jae 0x5d92e0
jmp 0x5d92ce
jbe 0x5d936a
cmp edi, 0x201
jae 0x5d92e0
mov dword [ebp - 0x30], 0x200
lea ebx, [ebp - 0x444]
mov esi, edi
jmp 0x5d9315
mov esi, dword [ebp - 0x34]
sub edi, esi
je 0x5d9309
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x28]
mov edx, esi
push 2
push 2
push edi
call fcn.005f5c90
add esp, 0xc
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], esi
push 0
call dword [sym.imp.kernel32.dll_SetLastError]
push ebx
push esi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x5d9339
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x5d93cd
cmp edi, esi
jne 0x5d92c0
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x5d93ec
lea edi, [esi + esi]
test esi, esi
mov eax, 0xffffffff
cmovs edi, eax
cmp edi, 0x201
jb 0x5d92ce
jmp 0x5d92e0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], 0
cmp edi, eax
ja 0x5d9409
lea eax, [ebp - 0x44]
push edi
push ebx
push eax
call fcn.005dd120
add esp, 0xc
movsd xmm0, qword [ebp - 0x44]
mov esi, dword [ebp + 8]
movsd xmm1, qword [ebp - 0x3c]
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x5d93b7
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call fcn.0040cc60
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x438
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov byte [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi], 0x80000000
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x5d93a7
jmp 0x5d93b7
mov dword [ebp - 0x10], 0
push 0x612e20
push 0x28
push str.internal_error:_entered_unreachable_code_rustc_9322d183f45e0fd5a509820874cc5ff27744a479library_alloc_src_vecmod.rst
call fcn.005f6b70
add esp, 0xc
jmp 0x5d9418
push 0x612e10
push eax
push edi
call fcn.005f6e60
add esp, 0xc
ud2
Function at 0x5e2630
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov esi, ecx
mov ecx, dword [ebp + 0x14]
mov edi, edx
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
lea ebx, [esp + 8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], edx
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x20], edx
xor edx, edx
test cl, 1
lea ecx, [esp + 0x20]
cmovne edx, ecx
mov ecx, dword [ebp + 0xc]
push 0
push edx
push ecx
push eax
push ebx
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x5e26a9
push 0xffffffffffffffff
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0xc0000011
jne 0x5e26b9
mov dword [esi + 4], 0
jmp 0x5e26cb
cmp eax, 0x103
je 0x5e26e5
test eax, eax
js 0x5e26d6
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov byte [esi], 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x5e26ce
lea eax, [esp + 4]
mov dword [esp + 0x2c], 0x612900
mov dword [esp + 0x30], 1
mov dword [esp + 0x3c], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea esi, [esp + 0x44]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x38], 0
push eax
push ecx
push esi
call fcn.005dc770
add esp, 0xc
mov ecx, esi
call fcn.005d7760
mov ecx, 7
int 0x29
ud2

Function at 0x5e2750
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov esi, ecx
mov ecx, dword [ebp + 0x14]
mov edi, edx
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
lea ebx, [esp + 8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], edx
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x20], edx
xor edx, edx
test cl, 1
lea ecx, [esp + 0x20]
cmovne edx, ecx
mov ecx, dword [ebp + 0xc]
push 0
push edx
push ecx
push eax
push ebx
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x5e27d0
push 0xffffffffffffffff
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x5e27f2
test eax, eax
js 0x5e27dc
mov eax, dword [esp + 0xc]
mov bl, 4
jmp 0x5e27e5
xor ebx, ebx
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [esi + 4], eax
mov byte [esi], bl
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 4]
mov dword [esp + 0x2c], 0x612900
mov dword [esp + 0x30], 1
mov dword [esp + 0x3c], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea esi, [esp + 0x44]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x38], 0
push eax
push ecx
push esi
call fcn.005dc770
add esp, 0xc
mov ecx, esi
call fcn.005d7760
mov ecx, 7
int 0x29
ud2
Function at 0x5e3980
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x5e5de0
lea eax, [ebp - 0x18]
mov ebx, dword [ebp + 0x10]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
movzx eax, byte [0x637141]
push 4
push 8
call fcn.0040cc50
add esp, 8
test eax, eax
je 0x5e3a6b
mov esi, eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [esi], ebx
mov dword [esi + 4], ecx
push 0
push 0x10000
push esi
push 0x5e3ae0
push eax
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
je 0x5e39fd
mov dword [edi + 4], eax
mov byte [edi], 4
jmp 0x5e3a58
mov eax, dword [esi]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x20], eax
mov eax, dword [eax]
test eax, eax
je 0x5e3a23
mov dword [ebp - 0x10], 1
push dword [ebp - 0x24]
call eax
mov edi, dword [ebp + 8]
add esp, 4
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov eax, dword [edx + 4]
test eax, eax
je 0x5e3a3d
push dword [edx + 8]
push eax
push ecx
call fcn.0040cc60
add esp, 0xc
push 4
push 8
push dword [ebp - 0x28]
call fcn.0040cc60
add esp, 0xc
call dword [sym.imp.kernel32.dll_GetLastError]
mov byte [edi], 0
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
push 8
push 4
call fcn.005f68b6
add esp, 8
ud2
Function at 0x5f5518
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
test eax, eax
je 0x5f5557
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5f5557
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5f5557
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x5f5557
cmp dword [ecx + 0x74], 0xe
jbe 0x5f5557
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x405d6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a0c], 0
push esi
jne 0x405da2
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d7c
mov dword [ecx*4 + 0x422a08], eax
inc ecx
cmp ecx, 0x100
jl 0x405d77
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dd3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a08]
xor eax, esi
inc ecx
dec edx
jne 0x405db5
pop edi
not eax
pop esi
ret 0xc

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x416c4f0f
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x49014397
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x402960
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004042f8
test esi, esi
jne 0x402996
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004043e8
jmp 0x4029b4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402874
mov edi, eax
test esi, esi
je 0x4029b4
cmp dword [ebx], 0
je 0x4029b4
dec esi
jmp 0x40299d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402ed8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x41e008], 0x8088405
inc edx
mov dword [ebx + 0x41e008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403438
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x41e010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4034d0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4034b0
xor eax, eax
push ebp
push 0x4034a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4034ec
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4034b0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x41e010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x41e010], ax
mov esp, ebp
pop ebp
ret

Function at 0x40417c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41f044], 0
je 0x4041dd
cmp word [0x41f218], 0xd7b2
jne 0x4041a5
cmp dword [0x41f220], 0
jbe 0x4041a5
mov eax, 0x41f214
call dword [0x41f230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41e058
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404204
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41e020], 0
jne 0x4041f9
push 0
push 0x41e078
push 0x41e058
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405ab8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405ce8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405b3b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405ce8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405b3b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405d04
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405bc4
xor eax, eax
push ebp
push 0x405bbd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405900
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405ba2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405d24
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405ba2
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405bc4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405cde
cmp byte [ebp - 0xd], 0
jne 0x405c0b
cmp byte [ebp - 0x12], 0
je 0x405cde
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405c24
dec ebx
cmp byte [ebx], 0x2e
je 0x405c33
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405c23
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405cde
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405c70
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405cde
cmp byte [ebp - 0xd], 0
je 0x405cde
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405cde
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408b08
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x408b41
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004043e8
jmp 0x408b4a
mov eax, ebx
mov edx, esi
call fcn.0040434c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x408b54
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x408b75
mov al, byte [esp]
jmp 0x408b77
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4091fc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409074
mov eax, dword [0x41e8b8]
cmp byte [eax], 0
je 0x409264
mov eax, dword [0x41e7d0]
call fcn.00402d9c
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407e24
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4092ac
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40929a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x41e7ac]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x41f710]
call fcn.004058c4
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x409d04
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x409d68
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404560
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407a58
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409d6f
lea eax, [ebp - 0xc]
call fcn.004042f8
ret
Function at 0x41c594
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x41c749
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x41c5e9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xff
call fcn.004026d0
mov dword [0x41fa78], eax
mov eax, dword [0x41fa78]
push eax
push 0xff
call sub.kernel32.dll_GetTempPathA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41c5f3
mov dl, 1
mov eax, dword [0x410de8]
call fcn.00403590
mov esi, eax
mov dl, 1
mov eax, dword [0x410de8]
call fcn.00403590
mov ebx, eax
mov dl, 1
mov eax, dword [0x410de8]
call fcn.00403590
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00414214
mov eax, ebx
call fcn.00414214
mov eax, esi
call fcn.00414214
lea edx, [ebp - 8]
xor eax, eax
call fcn.00402960
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00414264
mov eax, ebx
call fcn.00413b58
cmp edx, 0
jne 0x41c676
cmp eax, 0x22a00
jne 0x41c676
mov eax, ebx
call fcn.004035c0
mov eax, dword [ebp - 4]
call fcn.004035c0
mov eax, esi
call fcn.004035c0
jmp 0x41c72e
xor ecx, ecx
mov edx, pe_overlay
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x10]
mov eax, ebx
call fcn.00413b58
sub eax, 0x22a00
sbb edx, 0
push edx
push eax
mov edx, ebx
mov eax, esi
call fcn.00413dc0
lea eax, [ebp - 0xc]
mov edx, dword [0x41fa78]
call fcn.004044e8
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.00402960
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00407d30
mov edx, dword [ebp - 0x10]
pop eax
call fcn.004045b8
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.00414190
push 5
lea eax, [ebp - 0x18]
mov edx, dword [0x41fa78]
call fcn.004044e8
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x20]
xor eax, eax
call fcn.00402960
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.00407d30
mov edx, dword [ebp - 0x1c]
pop eax
call fcn.004045b8
mov eax, dword [ebp - 0x18]
call fcn.004047a8
push eax
call sub.kernel32.dll_WinExec
mov eax, ebx
call fcn.004035c0
mov eax, esi
call fcn.004035c0
mov eax, dword [ebp - 4]
call fcn.004035c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41c750
lea eax, [ebp - 0x20]
mov edx, 7
call fcn.0040431c
ret