joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473650
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x473667
add esp, 0xfffffff0
call fcn.00403b04
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00422810
mov eax, dword [0x489370]
cmp word [eax + 2], 0
jne 0x47368f
mov eax, dword [0x489370]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00474d28
mov eax, dword [0x489458]
cmp word [eax + 2], 0
jne 0x4736a9
mov eax, dword [0x489458]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00474f20
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x417010]
call fcn.00403770
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x417010]
call fcn.00403770
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x424d74]
call fcn.0042c1f4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x473830
mov eax, dword [0x489264]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042c5c4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4754c0
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x489264]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d458
test eax, eax
je 0x47379e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409160
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d480
test eax, eax
je 0x4737b2
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404824
mov eax, dword [0x489104]
cmp byte [eax], 0
jne 0x4737e6
mov eax, ebx
call fcn.00473958
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0047569c
mov eax, ebx
call fcn.00476060
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x473826
call fcn.00403b5c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x473bd8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x48abf4]
cmp dword [eax + 0x30], 0
je 0x473c82
cmp dword [ebx + 0x94], 0
jne 0x473c7c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x473b68
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x473c7c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x473c42
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x473c7c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00419b8c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x473c51
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4747e4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x474819
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004046a4
jmp 0x474826
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404608
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x475878
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4758b9
mov eax, esi
call fcn.0045b9b0
test al, al
je 0x4758b9
mov eax, dword [ebx + 0x84]
call fcn.0045b6ac
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4758b9
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045b6ac
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x47a28c
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
lea edi, [ebp - 0x44]
xor eax, eax
push ebp
push 0x47a39e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
mov edx, 0x3c
call fcn.0047a278
mov dword [edi + 8], 0x21
mov dword [edi + 0x14], 0x101
mov dword [edi + 0x20], 0x81
mov dword [edi + 0x28], 0x81
mov dword [edi + 0x30], 0x801
mov dword [edi + 0x38], 0x801
mov eax, 0x101
call fcn.00409324
mov dword [edi + 0x10], eax
mov eax, 0x801
call fcn.00409324
mov dword [edi + 0x2c], eax
mov eax, 0x801
call fcn.00409324
mov dword [edi + 0x34], eax
push edi
push 0x80000000
mov eax, ebx
call fcn.00404874
push eax
mov eax, ebx
call fcn.00404a74
push eax
call sub.wininet.dll_InternetCrackUrlA
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
test bl, bl
je 0x47a370
mov eax, dword [ebp - 4]
mov edx, dword [edi + 0x10]
call fcn.004047ac
mov eax, esi
mov edx, dword [edi + 0x2c]
call fcn.004047ac
lea eax, [ebp - 8]
mov edx, dword [edi + 0x34]
call fcn.004047ac
cmp dword [ebp - 8], 0
je 0x47a366
mov eax, esi
mov edx, dword [ebp - 8]
call fcn.0040487c
mov eax, dword [ebp + 8]
mov dx, word [edi + 0x18]
mov word [eax], dx
mov eax, dword [edi + 0x34]
call fcn.00409370
mov eax, dword [edi + 0x2c]
call fcn.00409370
mov eax, dword [edi + 0x10]
call fcn.00409370
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a3a5
lea eax, [ebp - 8]
call fcn.004045b4
ret
Function at 0x47bdec
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x489434]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x47be00
Capabilities:
Hide graphical window

Disassembly:
push 9
mov eax, dword [0x489434]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [0x489434]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_SetForegroundWindow
mov eax, dword [0x489434]
mov eax, dword [eax]
cmp byte [eax + 0x5b], 0
jne 0x47be55
mov eax, dword [0x489434]
mov eax, dword [eax]
mov byte [eax + 0x5b], 1
mov eax, dword [0x489434]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x47be55
mov edx, dword [0x489434]
mov dl, 1
call fcn.0046e224
ret

Function at 0x47e70c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a64
xor eax, eax
push ebp
push 0x47e7d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.004045b4
mov eax, dword [ebp - 4]
call fcn.00404874
sar eax, 1
jns 0x47e753
adc eax, 0
mov ebx, eax
test ebx, ebx
jle 0x47e7a7
mov esi, 1
lea eax, [ebp - 0x18]
push eax
mov edx, esi
add edx, edx
dec edx
mov ecx, 2
mov eax, dword [ebp - 4]
call fcn.00404ad4
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 0x47e7ec
call fcn.004048c0
mov eax, dword [ebp - 0x14]
call fcn.00408b64
mov edx, eax
xor edx, edi
lea eax, [ebp - 0x10]
call fcn.0040479c
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.0040487c
inc esi
dec ebx
jne 0x47e75e
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.00404608
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e7dc
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.004045d8
lea eax, [ebp - 4]
call fcn.004045b4
ret
Function at 0x47eab0
Capabilities:
Create process on windows
Self delete

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe18
xor eax, eax
mov dword [ebp - 0x1e4], eax
mov dword [ebp - 0x1e8], eax
mov dword [ebp - 0x1dc], eax
mov dword [ebp - 0x1e0], eax
mov dword [ebp - 0x1d4], eax
mov dword [ebp - 0x1d8], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47ec69
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1d8]
xor eax, eax
call fcn.00402a6c
mov eax, dword [ebp - 0x1d8]
lea edx, [ebp - 0x1d4]
call fcn.00408fc0
mov edx, dword [ebp - 0x1d4]
lea eax, [ebp - 4]
mov ecx, 0x47ec7c
call fcn.004048c0
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d0]
call fcn.00402df8
lea eax, [ebp - 0x1d0]
call fcn.00402b94
call fcn.004028ac
mov edx, 0x47ec90
lea eax, [ebp - 0x1d0]
call fcn.00404c90
call fcn.00403230
call fcn.004028ac
mov edx, 0x47eca4
lea eax, [ebp - 0x1d0]
call fcn.00404c90
call fcn.00403230
call fcn.004028ac
push 0x47ecb4
lea edx, [ebp - 0x1e0]
xor eax, eax
call fcn.00402a6c
push dword [ebp - 0x1e0]
push 0x47ecc4
lea eax, [ebp - 0x1dc]
mov edx, 3
call fcn.00404934
mov edx, dword [ebp - 0x1dc]
lea eax, [ebp - 0x1d0]
call fcn.00404c90
call fcn.00403230
call fcn.004028ac
push 0x47ecd0
lea edx, [ebp - 0x1e8]
xor eax, eax
call fcn.00402a6c
push dword [ebp - 0x1e8]
push 0x47ecc4
push 0x47ece4
lea eax, [ebp - 0x1e4]
mov edx, 4
call fcn.00404934
mov edx, dword [ebp - 0x1e4]
lea eax, [ebp - 0x1d0]
call fcn.00404c90
call fcn.00403230
call fcn.004028ac
mov edx, 0x47ecf8
lea eax, [ebp - 0x1d0]
call fcn.00404c90
call fcn.00403230
call fcn.004028ac
lea eax, [ebp - 0x1d0]
call fcn.00402ec0
call fcn.004028ac
push 0
push 0x47ed00
call sub.kernel32.dll_WinExec
call fcn.0047e9d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ec70
lea eax, [ebp - 0x1e8]
mov edx, 6
call fcn.004045d8
lea eax, [ebp - 4]
call fcn.004045b4
ret
Function at 0x48032c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, eax
mov esi, 0x9b
push 0x480430
push 0x480438
mov ecx, dword [0x48a668]
mov dl, 1
mov eax, dword [0x417a68]
call fcn.0041cc18
mov dword [ebp - 0xc], eax
mov dl, 1
mov eax, dword [0x417964]
call fcn.00403770
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x480417
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x4803af
inc ebx
lea edx, [ebp - 2]
mov ecx, 1
mov eax, dword [ebp - 0xc]
call fcn.0041c420
mov eax, esi
xor byte [ebp - 2], al
lea edx, [ebp - 2]
mov ecx, 1
mov eax, dword [ebp - 8]
call fcn.0041c458
dec ebx
jne 0x480387
mov byte [ebp - 1], 1
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x4803c6
cmp eax, 0
jbe 0x4803cc
jmp 0x4803c8
jle 0x4803cc
mov byte [ebp - 1], 1
push edi
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
call sub.Code.DLL_LoadCdsFromBuffer
mov dword [0x48ac88], eax
cmp dword [0x48ac88], 0xffffffff
jne 0x4803f5
mov byte [ebp - 1], 0
jmp 0x4803f9
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48041e
mov eax, dword [ebp - 8]
call fcn.004037a0
mov eax, dword [ebp - 0xc]
call fcn.004037a0
ret
Function at 0x405c4f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, eax
mov eax, ecx
shr eax, 5
push edi
mov edi, 0x41dd30
test eax, eax
jbe 0x405c89
mov eax, ecx
shr eax, 5
mov dword [ebp - 8], eax
push ebx
mov edx, edi
mov dword [ebp - 4], 0x20
mov bl, byte [edx]
xor byte [esi], bl
inc esi
inc edx
dec dword [ebp - 4]
jne 0x405c78
dec dword [ebp - 8]
jne 0x405c6f
pop ebx
shl eax, 5
sub ecx, eax
je 0x405c99
mov al, byte [edi]
xor byte [esi], al
inc esi
inc edi
dec ecx
jne 0x405c90
pop edi
pop esi
leave
ret
Function at 0x441c40
Capabilities:
Set thread local storage value

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x441c69
push eax
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [0x45877c]
add esp, 4
test eax, eax
je 0x441c69
mov eax, dword [0x458778]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
ret

Function at 0x481c20
Capabilities:
Check for software breakpoints

Disassembly:
call 0x481c25
pop eax
mov ebx, 0x400000
mov esi, dword [ebx + 0xc0]
lea eax, [ebx + esi]
dec eax
mov cl, byte [eax]
cmp cl, 0xcc
je 0x481c34
sub eax, 3
mov edx, dword [eax]
mov esi, dword [ebx + 0x16c]
add esi, ebx
lea edi, [ebx + 0x1000]
push edi
mov ecx, edx
sub ecx, esi
push ecx
push esi
call fcn.00481ac2
lea edx, [eax - 4]
sub edx, dword [edx]
mov esi, ebx
add esi, dword [edx + 0x10c]
mov edi, dword [edx + 0x104]
mov ecx, 0x1d6be
call fcn.00481be3
mov esi, dword [edx + 0x80]
push edx
add esi, ebx
mov eax, dword [esi + 0xc]
or eax, eax
je 0x481ccb
add eax, ebx
push eax
call sub.kernel32.dll_LoadLibraryA
mov ebp, eax
mov ecx, dword [esi]
add ecx, ebx
mov edi, dword [esi + 0x10]
add edi, ebx
mov eax, dword [ecx]
or eax, eax
je 0x481cc6
pushal
test eax, 0x80000000
je 0x481cb0
and eax, 0x7fffffff
jmp 0x481cb4
lea eax, [ebx + eax + 2]
push eax
push ebp
call sub.kernel32.dll_GetProcAddress
mov dword [edi], eax
popal
add edi, 4
add ecx, 4
jmp 0x481c9b
add esi, 0x14
jmp 0x481c81
pop edx
add ebx, dword [edx + 0x28]
jmp ebx
Function at 0x402a20
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.00404058
test esi, esi
jne 0x402a56
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.00404148
jmp 0x402a74
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402934
mov edi, eax
test esi, esi
je 0x402a74
cmp dword [ebx], 0
je 0x402a74
dec esi
jmp 0x402a5d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4030fc
Capabilities:
Query or enumerate registry value

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

Function at 0x403e58
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x462048], 0
je 0x403eb9
cmp word [0x46221c], 0xd7b2
jne 0x403e81
cmp dword [0x462224], 0
jbe 0x403e81
mov eax, 0x462218
call dword [0x462234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46006c
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 0x403ee0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x460030], 0
jne 0x403ed5
push 0
push 0x460064
push 0x46006c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40400c
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.004026ec
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x462049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403fd4
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40541c
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 0x40564c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40549f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40564c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40549f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405668
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405528
xor eax, eax
push ebp
push 0x405521
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405264
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 0x405506
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405688
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405506
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 0x405528
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 0x405642
cmp byte [ebp - 0xd], 0
jne 0x40556f
cmp byte [ebp - 0x12], 0
je 0x405642
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405588
dec ebx
cmp byte [ebx], 0x2e
je 0x405597
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405587
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405642
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4055d4
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 0x405642
cmp byte [ebp - 0xd], 0
je 0x405642
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 0x405642
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 0x405d48
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 0x405dae
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.004042c8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402cc0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405d98
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405db5
lea eax, [ebp - 0x10]
call fcn.00404058
ret

Function at 0x40b214
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 0x40b24d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404148
jmp 0x40b256
mov eax, ebx
mov edx, esi
call fcn.004040ac
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b908
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b780
mov eax, dword [0x461194]
cmp byte [eax], 0
je 0x40b984
mov eax, dword [0x460fa0]
call fcn.00402b2c
call fcn.00402860
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.004089c4
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 0x40b9cc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b9ba
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x460f50]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x462664]
call fcn.00405228
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