joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Check os version
Create process on windows

Disassembly:
sub esp, 0x98
mov eax, dword [0x40b040]
xor eax, esp
mov dword [esp + 0x94], eax
push 0x90
lea eax, [esp + 8]
push 0
push eax
call fcn.00405910
mov ecx, dword [esp + 0xb0]
push ecx
mov dword [esp + 0x10], 0x94
call fcn.004010c0
add esp, 0x10
test eax, eax
je 0x40109c
push ebx
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x401058
cmp dword [esp + 8], 6
je 0x40106a
call fcn.004013a0
test eax, eax
je 0x401082
call fcn.00401220
test eax, eax
je 0x401082
call fcn.004014d0
push 0
mov ebx, 0x409cdc
call fcn.00401820
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004019e3
add esp, 0x98
ret 0x10
mov ecx, dword [esp + 0x94]
xor ecx, esp
xor eax, eax
call fcn.004019e3
add esp, 0x98
ret 0x10

Function at 0x4010c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x28
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 1
xor ebp, ebp
push ebp
push str.SOFTWAREATIACESETTINGSCLI
push 0x80000002
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, ebp
jne 0x40113b
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0xc]
push ecx
push ebp
lea edx, [esp + 0x1c]
push edx
push ebp
push str.DELAY
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00401a50
mov ecx, dword [esp + 0x14]
add esp, 4
lea edx, [esp + 0xc]
push edx
mov edi, eax
push edi
lea eax, [esp + 0x1c]
push eax
push ebp
push str.DELAY
push ecx
call esi
mov esi, eax
jmp 0x40113f
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebp
jne 0x401208
push edi
call fcn.00401acb
add esp, 4
cmp eax, 0xffffffff
jl 0x401208
jne 0x40119a
mov esi, dword [esp + 0x38]
mov edi, str.MSRun
mov ecx, 6
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40117f
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
jne 0x401208
mov ebp, 1
pop edi
xor eax, eax
test ebp, ebp
pop esi
sete al
pop ebp
add esp, 0x28
ret
cmp eax, 0x12c
jle 0x4011a8
mov eax, 0x12c
jmp 0x4011ac
cmp eax, ebp
jle 0x401208
imul eax, eax, 0x3e8
push ebp
push eax
push ebp
push ebp
call dword [sym.imp.USER32.dll_SetTimer]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push ebp
push ebp
mov edi, eax
push ebp
lea eax, [esp + 0x24]
push eax
call esi
test eax, eax
je 0x401208
cmp dword [esp + 0x1c], 0x113
jne 0x4011e2
cmp edi, dword [esp + 0x20]
je 0x4011ff
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
call esi
test eax, eax
jne 0x4011d2
pop edi
test ebp, ebp
pop esi
sete al
pop ebp
add esp, 0x28
ret
push edi
push 0
call dword [sym.imp.USER32.dll_KillTimer]
pop edi
xor eax, eax
test ebp, ebp
pop esi
sete al
pop ebp
add esp, 0x28
ret
Function at 0x401220
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x40b040]
xor eax, esp
mov dword [esp + 0x118], eax
mov ecx, dword [0x409a20]
mov eax, dword [str.Warning]
push ebx
push esi
push edi
lea edx, [esp + 0x14]
push edx
push 1
push 0
mov dword [esp + 0x80], ecx
push str.SOFTWAREATIACEASSEMBLIESINSTALLED
mov ecx, 0x2a
mov esi, str.Administrative_privileges_are_required_to_finish_installing_ATI_Catalyst
lea edi, [esp + 0x88]
push 0x80000002
mov dword [esp + 0x84], eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
mov dword [esp + 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40137d
call fcn.00401790
test eax, eax
je 0x401364
xor eax, eax
push 0x40
push eax
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call fcn.00405910
add esp, 0xc
mov ebx, str.CCCInstall
mov dword [esp + 0x28], 0x44
call fcn.00401820
mov edi, eax
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4012e5
sub eax, edx
lea esi, [eax + 0xa]
push esi
call fcn.00401a50
push edi
mov ebx, eax
push esi
push ebx
call fcn.00401ad0
push str._gac:i__a
push esi
push ebx
call fcn.00401b35
add esp, 0x1c
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40134a
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x1c]
push eax
call esi
mov esi, dword [esp + 0x10]
jmp 0x40137d
push 0
push 0x30
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x84]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxExA]
mov ecx, dword [esp + 0x124]
xor eax, eax
test esi, esi
pop edi
pop esi
sete al
pop ebx
xor ecx, esp
call fcn.004019e3
mov esp, ebp
pop ebp
ret
Function at 0x4013a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb8
mov eax, dword [0x40b040]
xor eax, esp
mov dword [esp + 0xb4], eax
mov ecx, dword [0x409a20]
mov eax, dword [str.Warning]
push esi
push edi
mov dword [esp + 0x1c], ecx
mov ecx, 0x24
mov esi, str.Microsoft_.NET_Framework_2.0_is_required_to_run_ATI_Catalyst
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x14]
push edx
push 1
push 0
push str.SOFTWAREMICROSOFT.NETFRAMEWORKPOLICYV2.0
push 0x80000002
mov dword [esp + 0x2c], eax
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x401459
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push esi
lea ecx, [esp + 0x14]
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push str.50727
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call fcn.00401a50
add esp, 4
lea ecx, [esp + 0x10]
push ecx
mov edi, eax
mov eax, dword [esp + 0x18]
push edi
lea edx, [esp + 0x14]
push edx
push 0
push str.50727
push eax
call esi
mov esi, eax
jmp 0x40145d
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x401471
cmp byte [edi], 0x35
je 0x401490
push 0
push 0x30
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x2c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxExA]
test esi, esi
jne 0x4014a9
cmp byte [edi], 0x35
jne 0x4014a9
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.004019e3
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.004019e3
mov esp, ebp
pop ebp
ret
Function at 0x401790
Capabilities:
Get token membership

Disassembly:
sub esp, 0x14
mov eax, dword [0x40b040]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
xor ebx, ebx
lea eax, [esp + 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [esp + 4], eax
je 0x401801
mov eax, dword [esp + 8]
lea edx, [esp + 4]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x14]
pop ebx
xor ecx, esp
call fcn.004019e3
add esp, 0x14
ret
Function at 0x401820
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
push edi
lea eax, [esp + 0xc]
push eax
push 1
push 0
push str.SOFTWAREATIACEPACKAGESCORE_STATIC
push 0x80000002
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40189a
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 8]
push ecx
push eax
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x1c]
push str.LOCATION
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call fcn.00401a50
mov ecx, dword [esp + 0x10]
add esp, 4
lea edx, [esp + 8]
push edx
mov edi, eax
push edi
lea eax, [esp + 0x18]
push eax
push 0
push str.LOCATION
push ecx
call esi
jmp 0x40189e
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 8], 0
jne 0x4018e7
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4018b5
sub eax, edx
add eax, 3
push eax
mov dword [esp + 0xc], eax
call fcn.00401a50
mov esi, eax
mov eax, dword [esp + 0xc]
push 0x409d14
push eax
push esi
call fcn.00401ad0
add esp, 0x10
jmp 0x4019bc
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4018f0
sub eax, edx
cmp byte [eax + edi - 1], 0x5c
mov eax, edi
lea edx, [eax + 1]
jne 0x401960
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401907
sub eax, edx
mov edx, eax
mov eax, ebx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401920
sub eax, esi
lea eax, [eax + edx + 3]
push eax
mov dword [esp + 0xc], eax
call fcn.00401a50
mov ecx, dword [esp + 0xc]
push 0x409d14
mov esi, eax
push ecx
push esi
call fcn.00401ad0
mov edx, dword [esp + 0x18]
push edi
push edx
push esi
call fcn.00401b35
add esp, 0x1c
jmp 0x4019bc
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401960
sub eax, edx
mov edx, eax
mov eax, ebx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401972
sub eax, esi
lea eax, [eax + edx + 4]
push eax
mov dword [esp + 0xc], eax
call fcn.00401a50
mov esi, eax
mov eax, dword [esp + 0xc]
push 0x409d14
push eax
push esi
call fcn.00401ad0
mov ecx, dword [esp + 0x18]
push edi
push ecx
push esi
call fcn.00401b35
mov edx, dword [esp + 0x24]
push 0x409d18
push edx
push esi
call fcn.00401b35
add esp, 0x28
mov eax, dword [esp + 8]
push ebx
push eax
push esi
call fcn.00401b35
mov ecx, dword [esp + 0x14]
push 0x409d14
push ecx
push esi
call fcn.00401b35
add esp, 0x18
pop edi
mov eax, esi
pop esi
add esp, 0xc
ret

Function at 0x4019e3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40b040]
jne 0x4019ed
repz ret
jmp fcn.00401f95
Function at 0x406295
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004044b5
xor ebx, ebx
cmp dword [0x40c6e4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40636a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4062d5
xor eax, eax
jmp 0x40642e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4062ce
push eax
call fcn.00404452
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40c6e4], eax
call esi
push eax
call fcn.00404452
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40c6e8], eax
call esi
push eax
call fcn.00404452
mov dword [0x40c6ec], eax
lea eax, [ebp - 8]
push eax
call fcn.00403764
test eax, eax
pop ecx
pop ecx
je 0x406338
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004025f7
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40636a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404452
cmp eax, ebx
pop ecx
mov dword [0x40c6f4], eax
je 0x40636a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404452
pop ecx
mov dword [0x40c6f0], eax
mov eax, dword [0x40c6f0]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4063e3
cmp dword [0x40c6f4], esi
je 0x4063e3
push eax
call fcn.004044be
pop ecx
call eax
cmp eax, ebx
je 0x4063b0
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x40c6f4]
call fcn.004044be
pop ecx
call eax
test eax, eax
je 0x4063b0
test byte [ebp - 0x18], 1
jne 0x4063e3
lea eax, [ebp - 0xc]
push eax
call fcn.0040379b
test eax, eax
pop ecx
je 0x4063cb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004025f7
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4063da
or dword [ebp + 0x10], 0x200000
jmp 0x406414
or dword [ebp + 0x10], 0x40000
jmp 0x406414
mov eax, dword [0x40c6e8]
cmp eax, esi
je 0x406414
push eax
call fcn.004044be
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x406414
mov eax, dword [0x40c6ec]
cmp eax, esi
je 0x406414
push dword [ebp - 4]
push eax
call fcn.004044be
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 [0x40c6e4]
call fcn.004044be
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401260
Capabilities:
Hide graphical window

Disassembly:
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x403100], eax
push esp
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov esi, dword [esp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x4030f4], eax
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
dec ecx
jne 0x40128d
push esp
mov dword [ebp - 0x24], 0x401330
mov eax, dword [0x4030f4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], str.wookernof
call dword [sym.imp.USER32.dll_RegisterClassA]
xor eax, eax
push eax
push dword [0x4030f4]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.tofkol
push str.wookernof
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403104], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x40132c
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call esi
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x40130d
pop ebp
ret 0x10

Function at 0x40357a
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x4035a3
mov al, byte [esi + 1]
inc esi
test al, al
je 0x40359b
cmp al, 0x22
jne 0x40358f
cmp byte [esi], 0x22
jne 0x4035ad
inc esi
jmp 0x4035ad
cmp al, 0x20
jle 0x4035ad
inc esi
cmp byte [esi], 0x20
jg 0x4035a7
mov al, byte [esi]
test al, al
je 0x4035b7
cmp al, 0x20
jle 0x4035a0
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00401e17
push 0x404004
push section..data
call fcn.00403560
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x4035e7
movzx eax, word [ebp - 0x14]
jmp 0x4035ea
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.0040360d
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x402bb8
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.0040488c
test esi, esi
jne 0x402bee
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.0040497c
jmp 0x402c0c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a6c
mov edi, eax
test esi, esi
je 0x402c0c
cmp dword [ebx], 0
je 0x402c0c
dec esi
jmp 0x402bf5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403848
Capabilities:
Query or enumerate registry value

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

Function at 0x40468c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a904c], 0
je 0x4046ed
cmp word [0x4a9220], 0xd7b2
jne 0x4046b5
cmp dword [0x4a9228], 0
jbe 0x4046b5
mov eax, 0x4a921c
call dword [0x4a9238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4a5074
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 0x404714
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a5034], 0
jne 0x404709
push 0
push 0x4a506c
push 0x4a5074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404840
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.00402830
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4a904d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404808
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406264
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 0x406494
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4062e7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406494
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4062e7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4064b0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406370
xor eax, eax
push ebp
push 0x406369
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004060ac
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 0x40634e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4064d0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40634e
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 0x406370
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 0x40648a
cmp byte [ebp - 0xd], 0
jne 0x4063b7
cmp byte [ebp - 0x12], 0
je 0x40648a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4063d0
dec ebx
cmp byte [ebx], 0x2e
je 0x4063df
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4063cf
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40648a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40641c
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 0x40648a
cmp byte [ebp - 0xd], 0
je 0x40648a
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 0x40648a
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 0x406b90
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406bf6
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404afc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004032b0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406be0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406bfd
lea eax, [ebp - 0x10]
call fcn.0040488c
ret

Function at 0x40c698
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 0x40c6d1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040497c
jmp 0x40c6da
mov eax, ebx
mov edx, esi
call fcn.004048e0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40cd8c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cc04
mov eax, dword [0x4a8518]
cmp byte [eax], 0
je 0x40ce08
mov eax, dword [0x4a8154]
call fcn.0040304c
call fcn.00402998
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409850
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
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 0x40ce50
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ce3e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4a80c0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4a9668]
call fcn.00406070
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