joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40174a
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
lea eax, [ebp - 0x20]
push esi
push edi
push eax
mov esi, dword [ebp + 8]
push esi
xor ebx, ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
movzx edi, word [ebp + 0xc]
push ebx
push edi
push 0x186
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push edi
push 0x199
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
je 0x401810
cmp dword [eax + 0x188], ebx
je 0x40179c
push ebx
call fcn.0040266a
jmp 0x401810
add eax, 0x81
xor edx, edx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], edx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x64], 0x44
mov word [ebp - 0x32], dx
add ecx, 5
lea ebx, [ebp - 0x10]
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp - 0x1c]
push ebx
add ecx, 5
lea edi, [ebp - 0x64]
push edi
mov dword [ebp - 0x50], ecx
push edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x38], 4
push edx
push 0x200
push edx
push edx
push edx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401810
push 1
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0xffffffffffffffff
push 0x186
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4020f3
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
xor ecx, ecx
mov ebp, esp
sub esp, 0x54
mov eax, 5
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov word [ebp - 0x22], cx
mov dword [ebp - 0x44], eax
lea edx, [ebp - 0x10]
mov dword [ebp - 0x40], eax
push edx
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x28], 4
push ecx
push ecx
push 0x200
push ecx
push ecx
push ecx
push 0x401260
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
mov eax, 0
je 0x40216f
push 1
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x402203
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
mov dword [ebp - 0xc], 0x20
push str.SoftwareMicrosoftWindowsCurrentVersionSetup
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40226e
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x2c]
push eax
lea edx, [ebp - 8]
push ecx
push edx
push esi
push str.HWSetup
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402265
cmp dword [ebp - 8], 1
jne 0x402265
lea eax, [ebp - 0x2c]
push eax
call sub.CRTDLL.dll_atoi
add esp, 4
test eax, eax
je 0x402265
mov esi, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402275
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
push esi
xor esi, esi
cmp dword [0x404220], esi
je 0x402324
test byte [0x404229], 4
je 0x402324
push dword [ebp + 8]
push 0x4012a8
lea ecx, [ebp - 0x158]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [ebp - 0x50], esi
mov eax, 5
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], eax
mov word [ebp - 0x22], si
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x54]
push ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x28], 4
push edx
push esi
push esi
lea eax, [ebp - 0x158]
push 0x200
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x402320
push 1
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402324
xor eax, eax
jmp 0x402329
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x402330
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0040240e
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x4013b4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402404
lea eax, [ebp - 8]
lea ecx, [ebp - 0x110]
mov dword [ebp - 8], 0x104
push eax
push ecx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x4023a6
cmp byte [ebp - 0x110], bl
je 0x4023a6
lea eax, [ebp - 0x110]
push eax
call fcn.0040240e
or esi, eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp - 8]
lea ecx, [ebp - 0x110]
push eax
lea edx, [ebp - 0xc]
mov dword [ebp - 8], 0x104
push ecx
push edx
push 0
push 0x4012ec
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4023fb
cmp byte [ebp - 0x110], 0
je 0x4023fb
cmp dword [ebp - 0xc], 1
jne 0x4023ed
lea eax, [ebp - 0x110]
push eax
call fcn.0040240e
or esi, eax
push 0x4012ec
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40260b
Capabilities:
Persist via run registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x4013b4
mov dword [ebp - 4], esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402663
push esi
lea eax, [ebp - 8]
push esi
push esi
push esi
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [ebp - 8]
mov dword [0x40423c], esi
mov dword [0x404238], eax
cmp eax, 1
push dword [ebp - 4]
sbb esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40266a
Capabilities:
Persist via run registry key

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp + 8], eax
je 0x4026ac
lea eax, [ebp - 4]
push eax
push 0x40102c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4026ac
push dword [ebp - 4]
mov dword [0x404224], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0040260b
jmp 0x4026f5
call fcn.0040260b
test eax, eax
je 0x4026f5
cmp dword [0x404238], 2
jl 0x4026e4
test byte [0x404218], 0x10
jne 0x4026e4
push 0
push 0x402ee9
call fcn.004020bb
push eax
push 0x66
push dword [0x404214]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
jmp 0x4026f5
push 0
push 0x4013b4
push 0x80000002
call fcn.0040289e
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x402700
Capabilities:
Persist via run registry key

Disassembly:
sub esp, 4
xor eax, eax
cmp dword [0x40421c], eax
mov dword [esp], eax
jne 0x40274f
lea eax, [esp]
push eax
push 0x40102c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40274f
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x401f63
call fcn.004020bb
push eax
push 0x65
push dword [0x404214]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov eax, 1
add esp, 4
ret
Function at 0x402b4d
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 [eax]
cmp al, 0x22
jne 0x402b75
inc esi
mov al, byte [esi]
test al, al
je 0x402b6d
cmp al, 0x22
jne 0x402b62
cmp byte [esi], 0x22
jne 0x402b7f
inc esi
jmp 0x402b7f
cmp al, 0x20
jle 0x402b7f
inc esi
cmp byte [esi], 0x20
jg 0x402b79
cmp byte [esi], 0
je 0x402b8f
cmp byte [esi], 0x20
jg 0x402b8f
inc esi
cmp byte [esi], 0
jne 0x402b84
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x18], 1
mov eax, 0xa
je 0x402baf
movzx eax, word [ebp - 0x14]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x402bd1
Capabilities:
Shutdown system

Disassembly:
call fcn.004020f3
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
ret

Function at 0x402be1
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push 0x104
lea eax, [ebp - 0x104]
push eax
push 1
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_Ordinal_58]
cmp byte [ebp - 0x104], 0
je 0x402c2e
lea eax, [ebp - 0x104]
lea edx, [ebp - 0x208]
push eax
push dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esp, ebp
pop ebp
ret 8

Function at 0x402c34
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
cmp dword [ebp + 0x14], 0
je 0x402ceb
push 0x104
lea eax, [ebp - 0x208]
push eax
push 1
push dword [ebp + 0x10]
call dword [sym.imp.SHELL32.dll_Ordinal_58]
cmp byte [ebp - 0x208], 0
je 0x402ceb
push dword [ebp + 0xc]
push dword [ebp + 8]
lea edx, [ebp - 0x30c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea ecx, [ebp - 0x208]
lea eax, [ebp - 0x104]
push ecx
push dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea ecx, [ebp - 0x104]
lea edx, [ebp - 0x30c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x402cfe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402cfe
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x402cfe
lea eax, [ebp - 0x104]
lea ecx, [ebp - 0x30c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x402cfe
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x402cfe
push dword [ebp + 0xc]
push dword [ebp + 8]
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
push 0x104
lea eax, [ebp - 0x208]
push eax
push 2
push dword [ebp + 0x10]
call dword [sym.imp.SHELL32.dll_Ordinal_58]
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrToIntA]
test eax, eax
je 0x402d34
push eax
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x402d3a
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push ebx
lea eax, [ebp - 4]
push esi
push edi
push eax
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402e8f
xor esi, esi
push 0x20
lea eax, [ebp - 0x48]
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x402e78
lea eax, [ebp - 8]
lea ecx, [ebp - 0x48]
push eax
push ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402e5f
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x14c]
push eax
lea edx, [ebp - 0x48]
mov dword [ebp - 0x18], 0x104
push ecx
push edx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x402e56
cmp byte [ebp - 0x14c], 0
je 0x402e56
lea eax, [ebp - 0x14c]
xor edi, edi
push eax
call dword [sym.imp.SHELL32.dll_IsLFNDrive]
mov ebx, eax
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x250]
push eax
lea edx, [ebp - 0xc]
push ecx
lea eax, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], 0xd
mov dword [ebp - 0x14], 0x104
push 0
push eax
push ecx
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 1
sbb eax, eax
neg eax
test eax, eax
je 0x402e56
cmp byte [ebp - 0x28], 0
je 0x402e53
cmp dword [ebp - 0xc], 1
jne 0x402e53
cmp dword [ebp + 0xc], 0
je 0x402e3b
lea eax, [ebp - 0x250]
lea ecx, [ebp - 0x14c]
push eax
push ecx
call fcn.00402be1
jmp 0x402e53
push ebx
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x14c]
push edx
call fcn.00402c34
inc edi
jmp 0x402dd8
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
push 0x20
lea eax, [ebp - 0x48]
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x402d7a
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40340c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 8]
xor esi, esi
push eax
push 0x401598
mov dword [ebp - 4], esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40345f
lea eax, [ebp - 0xc]
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], 4
push eax
push ecx
push esi
push esi
push 0x40158c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x403456
mov dword [ebp - 4], esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45f9ea
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x486904]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0045f97f
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.00446ce0
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 0x45fa39
cmp dword [ebp - 0x1c], 5
jb 0x45fa51
jmp 0x45fa4d
cmp dword [ebp - 0x10], 1
jne 0x45fa51
cmp dword [ebp - 0x1c], 4
ja 0x45fa4d
jne 0x45fa51
cmp dword [ebp - 0x18], 0
jbe 0x45fa51
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x475d5c
call fcn.0045f870
test eax, eax
jge 0x45fa72
mov byte [0x49381c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00445fb9
add ebp, 0x78
leave
ret

Function at 0x4010b8
Capabilities:
Encode data using xor

Disassembly:
and eax, sym.imp.MSVBVM60.DLL_EVENT_SINK_Release
jmp dword [sym.imp.MSVBVM60.DLL_MethCallEngine]
push 0x42ac14
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
cmp byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
pop ecx
jns 0x4010a5
xchg ecx, eax
js 0x401128
adc al, 0x44
mov bh, 0xbc
jmp 0x57e505ca
xor ebx, dword [ecx - 0x48ee309a]
or al, 0
stosb byte es:[edi], al
add byte [eax - 0x2d], ah
xchg ebx, eax
mov bh, 0xc
add byte [edx - 0x6c2ca000], ch
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
stosd dword es:[edi], eax
lcall 0, 0xf150002
add byte [0x726f4600], al
insd dword es:[edi], dx
xor dword [eax], eax
or eax, 0xbb000e01
loope 0x40112d
invalid
Function at 0x4035c0
Capabilities:
Query or enumerate registry value

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

Function at 0x404328
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46904c], 0
je 0x404389
cmp word [0x469220], 0xd7b2
jne 0x404351
cmp dword [0x469228], 0
jbe 0x404351
mov eax, 0x46921c
call dword [0x469238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x467070
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 0x4043b0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x467030], 0
jne 0x4043a5
push 0
push 0x467068
push 0x467070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405ac8
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 0x405cf8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405b4b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405cf8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405b4b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405d14
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405bd4
xor eax, eax
push ebp
push 0x405bcd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405910
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 0x405bb2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405d34
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405bb2
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 0x405bd4
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 0x405cee
cmp byte [ebp - 0xd], 0
jne 0x405c1b
cmp byte [ebp - 0x12], 0
je 0x405cee
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405c34
dec ebx
cmp byte [ebx], 0x2e
je 0x405c43
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405c33
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405cee
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405c80
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 0x405cee
cmp byte [ebp - 0xd], 0
je 0x405cee
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 0x405cee
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 0x4063c0
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 0x406426
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.00404714
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403184
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406410
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40642d
lea eax, [ebp - 0x10]
call fcn.004044a4
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404964
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408bfd
test al, 0x10
jne 0x408c01
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b638
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b671
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404594
jmp 0x40b67a
mov eax, ebx
mov edx, esi
call fcn.004044f8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c68c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c762
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040453c
lea eax, [ebp - 8]
call fcn.004049b4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404964
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c74c
mov eax, ebx
call fcn.00402794
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c745
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404964
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c72f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c774
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c72f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c74c
mov eax, dword [ebp - 0x10]
call fcn.004027b4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c769
lea eax, [ebp - 8]
call fcn.004044a4
ret