joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100201e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100a370]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [ebp - 0x28], ecx
cmp dword [0x100c368], ebx
jne 0x1002069
mov eax, dword [0x100abc8]
cmp eax, ebx
jne 0x100204c
mov eax, ecx
add eax, 4
mov dword [0x100abc8], eax
mov eax, dword [eax]
cmp eax, ebx
jne 0x1002216
mov dword [0x100abc8], ebx
jmp 0x1002216
mov eax, dword [0x100f074]
push esi
push edi
mov esi, 0x100f080
cmp eax, ebx
jne 0x10021a8
mov edi, dword [sym.imp.msvcrt.dll_getenv]
push 0x1001350
call edi
pop ecx
cmp eax, ebx
jne 0x10020b8
push 0x100134c
call edi
pop ecx
cmp eax, ebx
jne 0x10020b8
push 0x1001344
call edi
pop ecx
cmp eax, ebx
jne 0x10020b8
push 0x100133c
call edi
pop ecx
cmp eax, ebx
jne 0x10020b8
mov eax, 0x1001338
push 0x1001334
push eax
call dword [sym.imp.msvcrt.dll__tempnam]
push esi
mov edi, eax
call dword [sym.imp.msvcrt.dll_tmpnam]
push 0xff
push edi
push esi
call dword [sym.imp.msvcrt.dll__mbsnbcpy]
push edi
mov byte [0x100f17f], bl
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [0x100c790]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x100c360]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x24]
push 0x100c340
push eax
mov dword [0x100c790], ebx
mov dword [0x100c360], ebx
call dword [sym.imp.msvcrt.dll__mbscpy]
push ebx
push 0x10012d0
mov ebx, 0x1001310
push ebx
mov edi, 0x1001c4f
push edi
call fcn.0100436d
add esp, 0x34
mov ecx, 0x1001320
jmp 0x1002145
push ecx
push eax
push esi
push 0x100132c
call fcn.0100750a
mov ecx, 0x1001328
add dword [ebp - 0x28], 4
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
test eax, eax
jne 0x1002133
mov eax, dword [ebp - 0x2c]
mov dword [0x100c790], eax
mov eax, dword [ebp - 0x30]
mov dword [0x100c360], eax
push 0
lea eax, [ebp - 0x24]
push eax
push ebx
push edi
call fcn.0100436d
push 0x1001324
push esi
call dword [sym.imp.msvcrt.dll_fopen]
add esp, 0x18
mov dword [0x100f074], eax
test eax, eax
jne 0x10021a6
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push 0x2732
push eax
call fcn.01005f9f
push esi
call dword [sym.imp.msvcrt.dll__unlink]
add esp, 0xc
jmp 0x10021f5
xor ebx, ebx
push eax
push 0x7d0
mov edi, 0x100a3c0
push edi
call dword [sym.imp.msvcrt.dll_fgets]
add esp, 0xc
test eax, eax
jne 0x1002200
push dword [0x100f074]
call dword [sym.imp.msvcrt.dll_fclose]
push esi
mov dword [0x100f074], ebx
call dword [sym.imp.msvcrt.dll__unlink]
pop ecx
pop ecx
test eax, eax
jge 0x10021f5
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push 0x2733
push eax
call fcn.01005f9f
pop ecx
pop ecx
mov byte [0x100f080], 0
xor eax, eax
jmp 0x1002214
push 0xa
push edi
call dword [sym.imp.msvcrt.dll__mbschr]
pop ecx
pop ecx
cmp eax, ebx
je 0x1002212
mov byte [eax], 0
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.01008359
leave
ret 8
Function at 0x1005161
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
xor edi, edi
cmp dword [0x100b4b8], edi
je 0x1005184
mov ecx, dword [0x100a36c]
mov dword [ebp - 4], ecx
jmp 0x100518e
mov eax, dword [0x100a368]
mov dword [ebp - 4], eax
mov ecx, eax
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov esi, dword [ebp + 0x18]
cmp eax, dword [esi]
jne 0x1005268
mov dword [edx], edi
mov dword [ebp - 0xc], 0x3c
mov dword [ebp - 8], edi
cmp dword [0x100b4b4], edi
je 0x10051b9
mov dword [ebp - 0xc], 5
mov eax, dword [ebp + 8]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x110], ebx
cmp ecx, 0xffffffff
je 0x10051f4
xor eax, eax
cmp dword [ebp + eax*4 - 0x10c], ecx
je 0x10051e0
inc eax
cmp eax, ebx
jb 0x10051d2
cmp eax, ebx
jne 0x10051f4
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x110], 2
lea eax, [ebp - 0xc]
push eax
push edi
push edi
lea eax, [ebp - 0x110]
push eax
mov dword [0x100b4bc], ebx
push edi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, edi
mov dword [0x100b4bc], edi
jg 0x100521f
mov dword [esi], edi
or eax, 0xffffffff
jmp 0x1005274
cmp dword [ebp - 4], 0xffffffff
je 0x100524f
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 4]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100524f
push edi
push ebx
lea eax, [ebp + 0x1b]
push eax
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [0x100b4c0], edi
jmp 0x1005218
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, edi
mov dword [esi], eax
jle 0x1005218
mov edx, dword [ebp + 0x14]
mov ecx, dword [edx]
mov eax, dword [ebp + 0xc]
movzx eax, byte [ecx + eax]
inc ecx
mov dword [edx], ecx
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x1005609
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test eax, eax
je 0x1005625
cmp eax, 0xffffffff
je 0x1005625
xor eax, eax
inc eax
jmp 0x1005627
xor eax, eax
pop ebp
ret 4

Function at 0x1005630
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test eax, eax
je 0x1005650
cmp eax, 0xffffffff
je 0x1005650
test al, 0x10
je 0x1005650
xor eax, eax
inc eax
jmp 0x1005652
xor eax, eax
pop ebp
ret 4

Function at 0x10056e2
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x100a370]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 7
pop ecx
mov esi, 0x10015b8
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
mov esi, 0x10015ac
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x34]
push eax
push 0x20019
movsb byte es:[edi], byte [esi]
xor esi, esi
push esi
lea eax, [ebp - 0x2c]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x100575d
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
push eax
push esi
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x34]
mov dword [ebp - 0x38], 2
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x34]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x30]
cmp edi, esi
je 0x100575f
mov al, 0x2e
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01008359
leave
ret
Function at 0x1005772
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x208
cmp dword [0x100b4b8], 0
push ebx
mov ebx, dword [0x100a36c]
push esi
push edi
jne 0x1005795
mov ebx, dword [0x100a368]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor esi, esi
inc esi
mov dword [ebp - 0x100], ecx
mov dword [ebp - 0x104], esi
xor eax, eax
cmp dword [ebp + eax*4 - 0x100], edi
je 0x10057ba
inc eax
cmp eax, esi
jb 0x10057ac
cmp eax, esi
jne 0x10057ce
mov dword [ebp - 0xfc], edi
mov dword [ebp - 0x104], 2
cmp ebx, 0xffffffff
je 0x100580d
xor eax, eax
cmp dword [ebp - 0x104], eax
jbe 0x10057ef
cmp dword [ebp + eax*4 - 0x100], ebx
je 0x10057ef
inc eax
cmp eax, dword [ebp - 0x104]
jb 0x10057dd
cmp eax, dword [ebp - 0x104]
jne 0x100580d
cmp dword [ebp - 0x104], 0x40
jae 0x100580d
mov dword [ebp + eax*4 - 0x100], ebx
inc dword [ebp - 0x104]
mov dword [ebp - 0x204], ecx
xor ecx, ecx
mov dword [ebp - 0x208], esi
xor eax, eax
cmp dword [ebp + eax*4 - 0x204], edi
je 0x100582b
inc eax
cmp eax, esi
jb 0x100581d
cmp eax, esi
jne 0x100583f
mov dword [ebp - 0x200], edi
mov dword [ebp - 0x208], 2
push ecx
lea eax, [ebp - 0x208]
push eax
push ecx
lea eax, [ebp - 0x104]
push eax
mov dword [0x100b4bc], esi
push ecx
call dword [sym.imp.WS2_32.dll_select]
mov dword [0x100b4bc], 0
test eax, eax
jg 0x100586f
or eax, 0xffffffff
jmp 0x10058ee
cmp ebx, 0xffffffff
je 0x100589f
lea eax, [ebp - 0x104]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100589f
push 0
push esi
lea eax, [ebp + 0xf]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [0x100b4c0], 0
jmp 0x100586a
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x10058eb
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x10058eb
lea eax, [ebp - 0x104]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x10058e7
lea eax, [ebp - 0x208]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100586a
mov eax, edi
jmp 0x10058ee
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1006412
Capabilities:
Send data
Send data on socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x100a36c]
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [0x100b4b8], ebx
jne 0x1006430
mov eax, dword [0x100a368]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
xor edi, edi
mov dword [ebp - 8], eax
mov eax, dword [0x100b4bc]
inc edi
test eax, eax
je 0x100648d
push ebx
push edi
push 0x100b4c0
call esi
test eax, eax
jne 0x100648d
mov eax, dword [ebp + 8]
sub eax, ebx
mov byte [ebp - 1], 0x71
je 0x1006467
dec eax
jne 0x100647c
push 0x279d
jmp 0x100646c
push 0x279e
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push eax
call fcn.01005f9f
pop ecx
pop ecx
push ebx
push edi
lea eax, [ebp - 1]
push eax
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_send]
jmp 0x10064f4
cmp dword [0x100a364], 0xffffffff
je 0x10064f4
push ebx
push edi
push 0x100b4b4
call esi
test eax, eax
jne 0x10064f4
mov eax, dword [ebp + 8]
sub eax, ebx
mov dword [0x100f180], edi
je 0x10064ba
dec eax
jne 0x10064cf
push 0x279d
jmp 0x10064bf
push 0x279e
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push eax
call fcn.01005f9f
pop ecx
pop ecx
mov esi, dword [sym.imp.WS2_32.dll_send]
push ebx
push 2
push 0x1001604
push dword [0x100b8a0]
call esi
push edi
push edi
push 0x1001600
push dword [0x100b8a0]
call esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1006d4a
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [0x100a36c]
cmp dword [0x100b4b8], ebx
jne 0x1006d6e
mov edi, dword [0x100a368]
cmp dword [0x100ba40], ebx
jne 0x1006e1e
mov eax, dword [0x100a364]
xor esi, esi
inc esi
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x108], esi
cmp edi, 0xffffffff
je 0x1006db7
xor eax, eax
cmp dword [ebp + eax*4 - 0x104], edi
je 0x1006da3
inc eax
cmp eax, esi
jb 0x1006d95
cmp eax, esi
jne 0x1006db7
mov dword [ebp - 0x100], edi
mov dword [ebp - 0x108], 2
push ebx
push ebx
push ebx
lea eax, [ebp - 0x108]
push eax
mov dword [0x100b4bc], esi
push ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, ebx
mov dword [0x100b4bc], ebx
jg 0x1006dee
push dword [0x100a364]
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
mov dword [0x100a364], eax
jmp 0x1006e23
cmp edi, 0xffffffff
je 0x1006e19
lea eax, [ebp - 0x108]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1006e19
push ebx
push esi
lea eax, [ebp - 1]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
mov dword [0x100b4c0], ebx
jmp 0x1006dd8
call fcn.010062c3
mov eax, dword [0x100a364]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1007f02
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
push 0xc0000000
push 0x1001714
mov byte [0x100b4d0], bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 4], edi
cmp edi, 0xffffffff
jne 0x1007f5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push 0x7d2
push eax
call fcn.01005f9f
add esp, 0xc
jmp 0x10080a6
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jne 0x1007f8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push 0x7d4
push eax
call fcn.01005f9f
add esp, 0xc
jmp 0x100809d
mov eax, dword [ebp + 8]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x1007f92
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push ebx
sub eax, ecx
lea ecx, [ebp - 0x10]
push ecx
sar eax, 1
push eax
push dword [ebp + 8]
push 0xfffffffffffffff5
call esi
push eax
call fcn.0100597c
mov eax, dword [ebp - 0xc]
and eax, 0xfffffffb
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
call edi
test eax, eax
jne 0x1007ff0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push 0x7d5
push eax
call fcn.01005f9f
add esp, 0xc
jmp 0x100809c
push ebx
lea eax, [ebp - 8]
push eax
push 0x20
push 0x100b4d0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1008028
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push 0x7d7
push eax
call fcn.01005f9f
add esp, 0xc
jmp 0x100802e
mov byte [0x100b4f0], bl
push dword [ebp - 8]
mov eax, 0x100b4d0
push eax
push eax
call dword [sym.imp.USER32.dll_OemToCharBuffA]
mov eax, dword [ebp - 8]
dec eax
cmp eax, ebx
jl 0x100805d
lea ecx, [eax + 0x100b4d0]
mov dl, byte [ecx]
cmp dl, 0xa
je 0x1008058
cmp dl, 0xd
jne 0x100805a
mov byte [ecx], bl
dec eax
jns 0x1008046
push dword [ebp - 0xc]
push dword [ebp - 4]
call edi
test eax, eax
jne 0x1008086
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push 0x7d8
push eax
call fcn.01005f9f
add esp, 0xc
push ebx
lea eax, [ebp - 0x10]
push eax
push 1
push 0x10015d4
push 0xfffffffffffffff5
call esi
push eax
call fcn.0100597c
pop esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 0x100b4d0
pop ebx
leave
ret 4

Function at 0x100881d
Capabilities:
Send data
Send data on socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_send]
push 0xa
pop esi
jmp 0x1008847
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2747
jne 0x100885c
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
imul esi, esi, 0xa
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1008830
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0x10
Function at 0x402b98
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.00404834
test esi, esi
jne 0x402bce
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.00404924
jmp 0x402bec
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a4c
mov edi, eax
test esi, esi
je 0x402bec
cmp dword [ebx], 0
je 0x402bec
dec esi
jmp 0x402bd5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4037b4
Capabilities:
Query or enumerate registry value

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

Function at 0x404614
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4f404c], 0
je 0x404675
cmp word [0x4f4220], 0xd7b2
jne 0x40463d
cmp dword [0x4f4228], 0
jbe 0x40463d
mov eax, 0x4f421c
call dword [0x4f4238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4ee058
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 0x40469c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ee020], 0
jne 0x404691
push 0
push 0x4ee078
push 0x4ee058
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4047e8
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.00402810
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4f404d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4047b0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406510
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 0x406740
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406593
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406740
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406593
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40675c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40661c
xor eax, eax
push ebp
push 0x406615
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406358
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 0x4065fa
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40677c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4065fa
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 0x40661c
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 0x406736
cmp byte [ebp - 0xd], 0
jne 0x406663
cmp byte [ebp - 0x12], 0
je 0x406736
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40667c
dec ebx
cmp byte [ebx], 0x2e
je 0x40668b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40667b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406736
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4066c8
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 0x406736
cmp byte [ebp - 0xd], 0
je 0x406736
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 0x406736
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 0x4098ec
Capabilities:
Check if file exists
Get file attributes

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

Function at 0x40cb20
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 0x40cb59
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404924
jmp 0x40cb62
mov eax, ebx
mov edx, esi
call fcn.00404888
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40d214
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d08c
mov eax, dword [0x4f2ed4]
cmp byte [eax], 0
je 0x40d27c
mov eax, dword [0x4f2adc]
call fcn.00402f94
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409c70
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 0x40d2c4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d2b2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4f2a4c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4f4718]
call fcn.0040631c
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 0x40e11c
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 0x40e180
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.00404a9c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004096a0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e187
lea eax, [ebp - 0xc]
call fcn.00404834
ret

Function at 0x42179c
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.00421610
pop ebx
ret