joyce8/EMBER2024-capa huggingface dataset:
Function at 0x591fe0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x59209a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00415480
mov eax, dword [0x5d1bc4]
cmp byte [eax], 0
je 0x59204f
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00415a0c
mov eax, dword [ebx]
call fcn.004156a4
push eax
mov eax, dword [ebx]
call fcn.00415694
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.004156a4
mov edx, eax
dec edx
mov eax, ebx
call fcn.00415a0c
jmp 0x592081
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.0041c068
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.00415618
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5920a1
lea eax, [ebp - 0x3f0]
call fcn.00414d74
ret

Function at 0x5920a8
Capabilities:
Get graphical window text

Disassembly:
push ebx
add esp, 0xfffffc14
mov ebx, edx
mov edx, esp
push edx
push 0x3e8
push 0xd
push eax
call sub.user32.dll_SendMessageA
mov edx, ebx
mov eax, esp
call fcn.0041c068
add esp, 0x3ec
pop ebx
ret

Function at 0x592268
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff00
mov esi, edx
mov ebp, eax
mov edx, esi
mov eax, dword [ebp + 0x3c]
call dword [ebp + 0x38]
cmp dword [esi + 0xc], 0
jne 0x59232e
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.00492498
mov ebx, eax
mov dx, word [esi + 4]
mov eax, ebp
call fcn.00591f24
mov edi, eax
test edi, edi
je 0x5922c7
mov al, byte [0x59233c]
cmp al, bl
jne 0x5922c7
mov edx, edi
mov eax, ebp
call fcn.00591e5c
mov dword [esi + 0xc], 1
mov byte [ebp + 0x31], 1
jmp 0x59232e
cmp byte [ebp + 0x161], 2
jne 0x5922f2
mov eax, dword [esi + 8]
push eax
movzx ecx, word [esi + 4]
mov eax, dword [0x5d2358]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
mov edx, 0xb006
call fcn.0047c264
test eax, eax
jne 0x59232e
jmp 0x592329
mov edx, dword [0x5d2130]
mov edx, dword [edx]
mov edx, dword [edx + 0x44]
mov eax, dword [ebp + 0x128]
cmp edx, eax
je 0x592329
test byte [eax + 0x2f4], 8
jne 0x592329
mov eax, dword [esi + 8]
push eax
movzx ecx, word [esi + 4]
mov eax, dword [0x5d2130]
mov eax, edx
mov edx, 0xb006
call fcn.0047c264
xor eax, eax
mov dword [esi + 0xc], eax
add esp, 0x100
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x59838c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, eax
mov eax, dword [0x5d2358]
mov eax, dword [eax]
cmp dword [eax + 0x58], 0
jne 0x598432
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebx + 0x80]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x84]
cdq
cmp edx, dword [esp + 4]
jne 0x5983d1
cmp eax, dword [esp]
pop edx
pop eax
jae 0x59840d
jmp 0x5983d5
pop edx
pop eax
jge 0x59840d
mov eax, dword [0x5d2358]
mov eax, dword [eax]
mov dword [eax + 0x38], 2
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00593054
mov eax, dword [ebx + 0xf4]
test eax, eax
je 0x598432
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov ebx, dword [eax]
call dword [ebx + 0x40]
jmp 0x598432
cmp dword [ebx + 0x11c], 0
je 0x598432
xor edx, edx
mov eax, dword [ebx + 0x58]
call fcn.0044dd3c
push 0
push 0
push 0x10
mov eax, dword [ebx + 0x12c]
push eax
call sub.user32.dll_PostMessageA
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x5a2ee8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5a3059
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x9c], 1
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x5a303e
lea eax, [ebp - 0x10d]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 8]
lea eax, [ebp - 0x10d]
call fcn.0041c068
mov dl, 1
mov eax, dword [0x579ca0]
call fcn.00579cf8
mov edx, dword [ebp - 4]
mov dword [edx + 0x94], eax
mov dl, 1
mov eax, dword [0x42e414]
call fcn.00413e04
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x98]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
call fcn.00579d74
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x5a303b
mov dl, 1
mov eax, dword [0x57b19c]
call fcn.0057b204
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
mov edx, 0x5a3070
call fcn.0057a4dc
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00415080
xor eax, eax
push ebp
push 0x5a3034
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.0057b504
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.005a3078
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a303b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
call fcn.00413e34
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call fcn.00413e34
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.00413e34
ret
mov bl, byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a3060
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00414d98
ret
Function at 0x5a9ae0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x5a9b0e
mov eax, ebx
call fcn.005aa594
cmp dword [ebx + 0x40], 0
je 0x5a9b07
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x5a9b7f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x5a9b71
cmp dword [ebx + 8], 0
je 0x5a9b30
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x5a9b42
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x5a9b71
cmp dword [ebx + 8], 0
je 0x5a9b23
cmp eax, 3
je 0x5a9b55
dec eax
jne 0x5a9b23
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x5a9b23
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x5a9b23
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x5a9b9d
cmp dword [ebx + 0x14], 0xcc
je 0x5a9b9d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.005a9ba8
pop ebx
ret

Function at 0x5bdcfc
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
mov byte [ebp - 1], cl
mov esi, edx
mov ebx, eax
cmp bl, 0x90
jne 0x5bdd51
push 0x90
call sub.user32.dll_GetKeyState
and ax, 1
cmp al, 1
sbb ebx, ebx
inc ebx
lea eax, [ebp - 0x102]
push eax
call sub.user32.dll_GetKeyboardState
test bl, bl
je 0x5bdd3c
and byte [ebp - 0x72], 0xfe
jmp 0x5bdd40
or byte [ebp - 0x72], 1
lea eax, [ebp - 0x102]
push eax
call sub.user32.dll_SetKeyboardState
jmp 0x5bddd7
push 0
xor eax, eax
mov al, bl
push eax
call sub.user32.dll_MapVirtualKeyA
and al, 0xff
mov byte [ebp - 2], al
test si, si
jbe 0x5bddd7
mov eax, ebx
and eax, 0xff
bt dword [0x5d19e8], eax
jae 0x5bdda7
mov eax, dword [ebp + 8]
push eax
mov ecx, 1
mov dl, byte [ebp - 2]
mov eax, ebx
call fcn.005bdcb0
pop ecx
cmp byte [ebp - 1], 0
je 0x5bddd2
mov eax, dword [ebp + 8]
push eax
mov ecx, 3
mov dl, byte [ebp - 2]
mov eax, ebx
call fcn.005bdcb0
pop ecx
jmp 0x5bddd2
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov dl, byte [ebp - 2]
mov eax, ebx
call fcn.005bdcb0
pop ecx
cmp byte [ebp - 1], 0
je 0x5bddd2
mov eax, dword [ebp + 8]
push eax
mov ecx, 2
mov dl, byte [ebp - 2]
mov eax, ebx
call fcn.005bdcb0
pop ecx
dec si
jne 0x5bdd67
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5bdde0
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
push 0
xor eax, eax
mov al, bl
push eax
call sub.user32.dll_MapVirtualKeyA
and al, 0xff
mov edx, ebx
and edx, 0xff
bt dword [0x5d19e8], edx
jae 0x5bde18
mov edx, dword [ebp + 8]
push edx
xor ecx, ecx
mov edx, eax
mov eax, ebx
call fcn.005bdcb0
pop ecx
pop ebx
pop ebp
ret
mov edx, dword [ebp + 8]
push edx
mov ecx, 2
mov edx, eax
mov eax, ebx
call fcn.005bdcb0
pop ecx
pop ebx
pop ebp
ret
Function at 0x5bebf0
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
mov esi, eax
push 0
push 0
push 0
push esi
call sub.user32.dll_MapVirtualKeyA
push eax
mov ebx, esi
push ebx
call sub.user32.dll_keybd_event
push 0x32
call sub.kernel32.dll_Sleep_1
push 0
push 2
push 0
push esi
call sub.user32.dll_MapVirtualKeyA
push eax
push ebx
call sub.user32.dll_keybd_event
pop esi
pop ebx
ret
Function at 0x5c6be8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
xor eax, eax
push ebp
push 0x5c6c3c
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x5d6b4c
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x20]
call fcn.005c68b4
test al, al
je 0x5c6c17
lea edx, [ebp - 0x28]
xor eax, eax
call fcn.004134c4
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.0041bcbc
lea eax, [ebp - 0x24]
mov edx, 0x5c6c54
call fcn.0041503c
mov ecx, dword [ebp - 0x24]
mov dl, 1
mov eax, dword [0x4522a0]
call fcn.00452350
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5c6b77
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov ecx, 0x5c6c64
mov edx, 0x5c6c70
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x24]
fstp qword [ebp - 0x10]
wait
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5c6b81
mov eax, dword [ebp - 4]
call fcn.00413e34
fld qword [ebp - 0x10]
fcomp qword [ebp - 0x18]
fnstsw ax
sahf
jb 0x5c6c00
fld qword [ebp - 0x10]
fcomp qword [ebp - 0x20]
fnstsw ax
sahf
jae 0x5c6c00
push 0x40001
push 0x5c6c78
push 0x5c6c88
fld qword [ebp - 0x20]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x30]
call fcn.0041ccb4
push dword [ebp - 0x30]
push 0x5c6cac
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.004150f4
mov eax, dword [ebp - 0x2c]
call fcn.00415234
push eax
push 0
call sub.user32.dll_MessageBoxA_1
dec eax
jne 0x5c6c00
push 1
push 0x5c6cbc
call sub.kernel32.dll_WinExec
mov eax, dword [0x5d2130]
mov eax, dword [eax]
call fcn.0049b3f8
fld qword [ebp - 0x10]
fcomp qword [ebp - 0x18]
fnstsw ax
sahf
jae 0x5c6c21
mov eax, 0x5c6cd0
call fcn.0044b740
jmp 0x5c6c21
mov eax, 0x5c6d10
call fcn.0044b740
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c6c43
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.00414d98
ret
Function at 0x5c6dd8
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe84
xor ecx, ecx
mov dword [ebp - 0x178], ecx
mov dword [ebp - 0x17c], ecx
mov dword [ebp - 0x170], ecx
mov dword [ebp - 0x174], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00415224
mov eax, dword [ebp - 8]
call fcn.00415224
lea eax, [ebp - 0x168]
mov edx, dword [0x419fb4]
call fcn.00415a74
xor eax, eax
push ebp
push 0x5c6ff8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00414e0c
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00414e0c
mov eax, dword [ebp - 0xc]
call fcn.00415034
mov edx, dword [ebp - 0xc]
cmp byte [edx + eax - 1], 0x5c
je 0x5c6e71
lea eax, [ebp - 0xc]
mov edx, 0x5c700c
call fcn.0041503c
mov eax, dword [ebp - 0x10]
call fcn.00415034
mov edx, dword [ebp - 0x10]
cmp byte [edx + eax - 1], 0x5c
je 0x5c6e90
lea eax, [ebp - 0x10]
mov edx, 0x5c700c
call fcn.0041503c
mov eax, dword [ebp - 4]
call fcn.0041b9ec
test al, al
je 0x5c6fbc
mov eax, dword [ebp - 8]
call fcn.0041b9ec
test al, al
jne 0x5c6eb4
mov eax, dword [ebp - 8]
call fcn.0041ba10
lea eax, [ebp - 0x16c]
mov ecx, 0x5c7018
mov edx, dword [ebp - 0xc]
call fcn.00415080
mov eax, dword [ebp - 0x16c]
lea ecx, [ebp - 0x168]
mov edx, 0x3f
call fcn.0041bb8c
test eax, eax
jne 0x5c6fb1
test byte [ebp - 0x160], 0x10
je 0x5c6f57
mov eax, dword [ebp - 0x15c]
mov edx, 0x5c7024
call fcn.00415180
je 0x5c6f9e
mov eax, dword [ebp - 0x15c]
mov edx, 0x5c7030
call fcn.00415180
je 0x5c6f9e
lea eax, [ebp - 0x170]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 0x10]
call fcn.00415080
mov eax, dword [ebp - 0x170]
push eax
lea eax, [ebp - 0x174]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 0xc]
call fcn.00415080
mov eax, dword [ebp - 0x174]
pop edx
call fcn.005c6dd8
jmp 0x5c6f9e
push 0
lea eax, [ebp - 0x178]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 0x10]
call fcn.00415080
mov eax, dword [ebp - 0x178]
call fcn.00415234
push eax
lea eax, [ebp - 0x17c]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 0xc]
call fcn.00415080
mov eax, dword [ebp - 0x17c]
call fcn.00415234
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x168]
call fcn.0041bbdc
test eax, eax
je 0x5c6ee5
lea eax, [ebp - 0x168]
call fcn.0041bc00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c6fff
lea eax, [ebp - 0x17c]
mov edx, 5
call fcn.00414d98
lea eax, [ebp - 0x168]
mov edx, dword [0x419fb4]
call fcn.00415b44
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00414d98
ret

Function at 0x5c8868
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x5c889d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x5c8764
push 0
push 0
call sub.kernel32.dll_CreateThread_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5c88a7
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x5c9a34
Capabilities:
Create thread

Disassembly:
push esi
push ecx
mov esi, eax
cmp dword [0x5d6b1c], 0
je 0x5c9a7e
mov eax, dword [esi + 0x3d0]
mov eax, dword [eax + 0x220]
mov edx, dword [eax]
call dword [edx + 0x44]
xor edx, edx
mov eax, dword [esi + 0x3cc]
mov ecx, dword [eax]
call dword [ecx + 0x64]
push esp
push 0
mov eax, dword [0x5d6b1c]
call fcn.00415234
push eax
push 0x5c973c
push 0
push 0
call sub.kernel32.dll_CreateThread_1
pop edx
pop esi
ret
mov eax, dword [esi + 0x3d0]
mov eax, dword [eax + 0x220]
mov edx, 0x5c9aa0
mov ecx, dword [eax]
call dword [ecx + 0x38]
pop edx
pop esi
ret
Function at 0x402f50
Capabilities:
Query or enumerate registry value

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

Function at 0x403d1c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x450044], 0
je 0x403d7d
cmp word [0x450218], 0xd7b2
jne 0x403d45
cmp dword [0x450220], 0
jbe 0x403d45
mov eax, 0x450214
call dword [0x450230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x44e06c
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 0x403da4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x44e030], 0
jne 0x403d99
push 0
push 0x44e064
push 0x44e06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405358
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40547c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4052cf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40547c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4052cf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405498
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405358
xor eax, eax
push ebp
push 0x405351
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405094
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 0x405336
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4054b8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405336
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 0x405358
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 0x405472
cmp byte [ebp - 0xd], 0
jne 0x40539f
cmp byte [ebp - 0x12], 0
je 0x405472
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4053b8
dec ebx
cmp byte [ebx], 0x2e
je 0x4053c7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4053b7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405472
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405404
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 0x405472
cmp byte [ebp - 0xd], 0
je 0x405472
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 0x405472
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 0x405b44
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 0x405baa
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.00404128
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b14
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405b94
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405bb1
lea eax, [ebp - 0x10]
call fcn.00403eb8
ret

Function at 0x40aa88
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 0x40aac1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403fa8
jmp 0x40aaca
mov eax, ebx
mov edx, esi
call fcn.00403f0c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b17c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40aff4
mov eax, dword [0x44f05c]
cmp byte [eax], 0
je 0x40b1f8
mov eax, dword [0x44ee58]
call fcn.00402980
call fcn.00402824
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.004082fc
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 0x40b240
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b22e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x44ee04]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x450660]
call fcn.00405058
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