joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422d60
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x422d8f
push esi
call fcn.00427340
add esp, 4
cmp byte [esi + 0x40], 0
je 0x422d88
mov dword [esi + 0x10], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x422e0a
mov eax, dword [esi + 0x18c]
cmp byte [eax + 0x10], 0
je 0x422dfa
mov eax, dword [esi + 8]
test eax, eax
je 0x422db4
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
mov edx, dword [esi + 0x18c]
mov eax, dword [edx]
push esi
call eax
add esp, 4
test eax, eax
je 0x422df6
cmp eax, 2
je 0x422dfa
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x422da5
cmp eax, 3
je 0x422ddc
cmp eax, 1
jne 0x422da5
add dword [ecx + 4], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x422da5
mov edx, dword [esi + 0x118]
add dword [eax + 8], edx
jmp 0x422da5
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.00422bf0
pop esi
ret
cmp eax, 0xcc
je 0x422e2c
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x12
mov edx, dword [esi]
mov eax, dword [esi + 0x10]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
call fcn.00422bf0
pop esi
ret

Function at 0x42dc10
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push esi
push edi
mov edi, dword [esp + 0x20]
cmp dword [edi + 0x4c], 1
mov esi, dword [edi + 0x1a4]
mov dword [esp + 0x18], esi
jne 0x42dc37
mov dword [esp + 8], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x42dc43
mov dword [esp + 8], 0
mov byte [esi + 0x1c], 0
mov ecx, dword [edi + 0x64]
mov edx, dword [esp + 8]
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
push ecx
add edx, 0x100
push edx
push 1
push edi
call eax
xor ecx, ecx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
cmp dword [edi + 0x64], ecx
mov dword [esp + 0xc], ecx
jle 0x42dd4f
push ebx
lea edx, [esi + 0x20]
push ebp
mov dword [esp + 0x18], edx
jmp 0x42dc8c
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebp, dword [edx]
cdq
idiv ebp
cmp dword [esp + 0x10], 0
mov dword [esp + 0x1c], eax
je 0x42dcad
mov eax, dword [esi + 0x18]
add dword [eax + ecx*4], 0xff
lea eax, [eax + ecx*4]
mov edx, dword [esi + 0x18]
mov edi, dword [edx + ecx*4]
add ebp, 0xffffffff
mov ecx, ebp
xor eax, eax
xor ebx, ebx
call fcn.0042da80
mov ecx, eax
xor esi, esi
cmp esi, ecx
jle 0x42dce2
lea esp, [esp]
add ebx, 1
mov ecx, ebp
mov eax, ebx
call fcn.0042da80
mov ecx, eax
cmp esi, ecx
jg 0x42dcd0
mov al, byte [esp + 0x1c]
imul bl
mov byte [esi + edi], al
add esi, 1
cmp esi, 0xff
jle 0x42dcc5
cmp dword [esp + 0x10], 0
je 0x42dd30
mov eax, 1
lea ecx, [edi - 1]
jmp 0x42dd10
movzx edx, byte [edi]
mov byte [ecx], dl
movzx edx, byte [edi + 0xff]
mov byte [edi + eax + 0xff], dl
add eax, 1
sub ecx, 1
cmp eax, 0xff
jle 0x42dd10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
add dword [esp + 0x18], 4
add eax, 1
cmp eax, dword [ecx + 0x64]
mov dword [esp + 0x14], eax
jl 0x42dc80
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x43940f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x43942f
cmp dword [edi + 0x54], 0
jne 0x43942f
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00442e2c
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004393d6
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x439a7e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x439ac4
call fcn.00442e2c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x439ac4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x439b07
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x439af0
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x439af0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x439b04
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x43db43
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x43db7c
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004395c0
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004111f0
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x43f68a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x43f6cd
call fcn.00442e2c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x43f6cd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x43f6e8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0043f241
test ebx, ebx
mov esi, eax
je 0x43f6e6
test edi, edi
je 0x43f6e6
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4418c1
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x4418ca
xor eax, eax
jmp 0x441933
cmp dword [esp + 8], 0
jne 0x4418d6
call fcn.004367d0
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.00455e08
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x441911
push dword [esi + 0x10]
call fcn.00455fca
test eax, eax
pop ecx
jne 0x441911
mov esi, dword [esi + 0xc]
call fcn.00456571
push esi
push dword [eax]
push 1
call fcn.0044f877
push dword [esi + 0x10]
call fcn.00455ff9
test eax, eax
pop ecx
je 0x441930
push dword [esi + 0x10]
call fcn.0045891e
push eax
call fcn.00410320
pop ecx
pop ecx
jmp 0x4418ff
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x443a9e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x443acc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x443aea
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00443a08
jmp 0x443aea
mov eax, dword [esi + 0x14]
test eax, eax
je 0x443aea
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00443a08
test edi, edi
mov eax, edi
jne 0x443ad4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x531940]
test ecx, ecx
je 0x443bad
jmp 0x443a9d
ret 8

Function at 0x452906
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x52e4bc]
jne 0x452910
repz ret
jmp fcn.0045a444

Function at 0x453cb2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x453cdf
call fcn.00456571
mov dword [eax], esi
call fcn.0045655e
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0045a3b0
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x453cbb
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x453d0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00456584
pop ecx
call fcn.0045655e
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x453d35
test al, 1
je 0x453d35
test byte [esp + 0xc], 2
je 0x453d35
call fcn.00456571
mov dword [eax], 5
call fcn.0045655e
mov dword [eax], 0xd
jmp 0x453d05
xor eax, eax
pop esi
ret
Function at 0x467842
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00459d3d
xor ebx, ebx
cmp dword [0x532698], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x467917
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x467882
xor eax, eax
jmp 0x4679db
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x47f7c4
push edi
call esi
cmp eax, ebx
je 0x46787b
push eax
call fcn.00459cda
mov dword [esp], 0x47f7b4
push edi
mov dword [0x532698], eax
call esi
push eax
call fcn.00459cda
mov dword [esp], 0x47f7a0
push edi
mov dword [0x53269c], eax
call esi
push eax
call fcn.00459cda
mov dword [0x5326a0], eax
lea eax, [ebp - 8]
push eax
call fcn.0045664b
test eax, eax
pop ecx
pop ecx
je 0x4678e5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0045a2b4
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x467917
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00459cda
cmp eax, ebx
pop ecx
mov dword [0x5326a8], eax
je 0x467917
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00459cda
pop ecx
mov dword [0x5326a4], eax
mov eax, dword [0x5326a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x467990
cmp dword [0x5326a8], esi
je 0x467990
push eax
call fcn.00459d46
pop ecx
call eax
cmp eax, ebx
je 0x46795d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x5326a8]
call fcn.00459d46
pop ecx
call eax
test eax, eax
je 0x46795d
test byte [ebp - 0x18], 1
jne 0x467990
lea eax, [ebp - 0xc]
push eax
call fcn.00456682
test eax, eax
pop ecx
je 0x467978
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0045a2b4
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x467987
or dword [ebp + 0x10], 0x200000
jmp 0x4679c1
or dword [ebp + 0x10], 0x40000
jmp 0x4679c1
mov eax, dword [0x53269c]
cmp eax, esi
je 0x4679c1
push eax
call fcn.00459d46
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4679c1
mov eax, dword [0x5326a0]
cmp eax, esi
je 0x4679c1
push dword [ebp - 4]
push eax
call fcn.00459d46
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x532698]
call fcn.00459d46
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46c4ba
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x52e4bc]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0046c44f
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00452f40
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x46c509
cmp dword [ebp - 0x1c], 5
jb 0x46c521
jmp 0x46c51d
cmp dword [ebp - 0x10], 1
jne 0x46c521
cmp dword [ebp - 0x1c], 4
ja 0x46c51d
jne 0x46c521
cmp dword [ebp - 0x18], 0
jbe 0x46c521
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4800f4
call fcn.0046c323
test eax, eax
jge 0x46c542
mov byte [0x52fda8], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00452906
add ebp, 0x78
leave
ret
Function at 0x402a74
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.00404584
test esi, esi
jne 0x402aaa
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.00404674
jmp 0x402ac8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402928
mov edi, eax
test esi, esi
je 0x402ac8
cmp dword [ebx], 0
je 0x402ac8
dec esi
jmp 0x402ab1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x40360c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x46e010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4036a4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403684
xor eax, eax
push ebp
push 0x40367d
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 0x4036c0
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 0x403684
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x46e010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x46e010], ax
mov esp, ebp
pop ebp
ret

Function at 0x404384
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x470048], 0
je 0x4043e5
cmp word [0x47021c], 0xd7b2
jne 0x4043ad
cmp dword [0x470224], 0
jbe 0x4043ad
mov eax, 0x470218
call dword [0x470234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46e058
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 0x40440c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46e020], 0
jne 0x404401
push 0
push 0x46e078
push 0x46e058
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404538
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402730
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x470049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404500
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406044
Capabilities:
Get geographical location

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 0x406168
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405fbb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406168
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405fbb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406184
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406044
xor eax, eax
push ebp
push 0x40603d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405d80
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 0x406022
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4061a4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406022
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 0x406044
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 0x40615e
cmp byte [ebp - 0xd], 0
jne 0x40608b
cmp byte [ebp - 0x12], 0
je 0x40615e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4060a4
dec ebx
cmp byte [ebx], 0x2e
je 0x4060b3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4060a3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40615e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4060f0
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 0x40615e
cmp byte [ebp - 0xd], 0
je 0x40615e
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 0x40615e
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 0x408c4c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404a50
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408c65
test al, 0x10
jne 0x408c69
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40ae1c
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 0x40ae55
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404674
jmp 0x40ae5e
mov eax, ebx
mov edx, esi
call fcn.004045d8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ae68
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 0x40ae89
mov al, byte [esp]
jmp 0x40ae8b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b510
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b388
mov eax, dword [0x46f28c]
cmp byte [eax], 0
je 0x40b578
mov eax, dword [0x46f0b8]
call fcn.00402e6c
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408fe8
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 0x40b5c0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b5ae
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46f078]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x470714]
call fcn.00405d44
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 0x40c370
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 0x40c3d4
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.004047ec
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408a40
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c3db
lea eax, [ebp - 0xc]
call fcn.00404584
ret

Function at 0x41ded8
Capabilities:
Suspend thread

Disassembly:
push ebx
mov ebx, eax
mov byte [ebx + 0xe], 1
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, ebx
call fcn.0041dd78
pop ebx
ret
Function at 0x41def8
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041dd78
dec esi
jne 0x41df1a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x41f664
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x470a24
cmp dword [edi], 0
jne 0x41f6e0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x470a20]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x46e4fc
mov ecx, 2
call fcn.004028e8
mov edx, 0x41f63c
lea eax, [esi + 5]
call fcn.0041f65c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041f65c
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41f6b5
mov dword [0x470a20], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x420c4c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x420c52
ret

Function at 0x4230a8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4230f9
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4230e0
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4230d0
jmp 0x4230f9
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4230e1
pop ebx
mov esp, ebp
pop ebp
ret