joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10037f2
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x1008b90]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x1003832
call esi
test eax, eax
je 0x1003817
mov dword [0x1008b90], 1
jmp 0x1003837
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x100382e
mov dword [0x1008b90], 2
jmp 0x1003840
xor eax, eax
jmp 0x100388e
cmp eax, 1
jne 0x100383b
call esi
jmp 0x100388e
cmp eax, 2
jne 0x100382e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x100388a
lea eax, [esi + esi]
push eax
call fcn.010043e6
mov ebp, eax
test ebp, ebp
pop ecx
je 0x100388a
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
je 0x1003883
mov eax, ebp
jmp 0x100388c
push ebp
call fcn.010042ce
pop ecx
xor eax, eax
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x10040cd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1008ce8], ebx
push esi
push edi
jne 0x100414d
push 0x10019b8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1004188
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10019ac
push edi
call esi
test eax, eax
mov dword [0x1008ce8], eax
je 0x1004188
push 0x100199c
push edi
call esi
push 0x1001988
push edi
mov dword [0x1008cec], eax
call esi
cmp dword [0x1008934], 2
mov dword [0x1008cf0], eax
jne 0x100414d
push 0x100196c
push edi
call esi
test eax, eax
mov dword [0x1008cf8], eax
je 0x100414d
push 0x1001954
push edi
call esi
mov dword [0x1008cf4], eax
mov eax, dword [0x1008cf4]
test eax, eax
je 0x1004192
call eax
test eax, eax
je 0x1004179
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1008cf8]
test eax, eax
je 0x1004179
test byte [ebp - 8], 1
jne 0x1004192
cmp dword [0x1008940], 4
jb 0x100418c
or byte [ebp + 0x12], 0x20
jmp 0x10041b1
xor eax, eax
jmp 0x10041c1
or byte [ebp + 0x12], 4
jmp 0x10041b1
mov eax, dword [0x1008cec]
test eax, eax
je 0x10041b1
call eax
mov ebx, eax
test ebx, ebx
je 0x10041b1
mov eax, dword [0x1008cf0]
test eax, eax
je 0x10041b1
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1008ce8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10063d5
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.01003c00
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100646a
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x1008934]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x100646a
cmp eax, 1
je 0x1006482
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100646a
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x100643f
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x1006466
xor eax, eax
inc eax
jmp 0x100649e
cmp esi, ebx
jae 0x100646e
xor eax, eax
jmp 0x100649e
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1008934]
jmp 0x1006484
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a090
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov ecx, dword [0x43df24]
mov edx, dword [0x43df28]
mov eax, dword [ebp + 8]
lea esi, [ecx - 1]
imul esi, ecx
mov ecx, esi
xor ecx, 0xfffffffe
test ecx, esi
mov ecx, 0x5f420508
sete byte [ebp - 0xd]
cmp edx, 0xa
mov edx, 0xa28fabba
setl byte [ebp - 0xe]
cmp edx, 0xa28fabba
jne 0x40a0f6
mov bl, byte [ebp - 0xd]
mov dl, byte [ebp - 0xe]
mov esi, 0xf71985d0
mov dh, bl
xor dh, dl
cmovne esi, ecx
test dl, dl
mov edx, esi
cmovne edx, ecx
test bl, bl
cmove edx, esi
cmp edx, 0xa28fabba
je 0x40a0d0
cmp edx, 0xf71985d0
je 0x40a12c
cmp edx, 0x5f420508
jne 0x40a0ee
push eax
mov edi, esp
mov dword [edi], eax
mov eax, section..data
mov esi, dword [edi]
push esi
mov edx, eax
mov ecx, 0x27
xor ecx, 0x1af
add edx, ecx
call edx
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push eax
mov edi, esp
mov dword [edi], eax
mov eax, section..data
mov esi, dword [edi]
push esi
mov edx, eax
mov ecx, 0x27
xor ecx, 0x1af
add edx, ecx
call edx
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x42963c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42967b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42967b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42967b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42967b
cmp dword [ecx + 0x74], 0xe
jbe 0x42967b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x42c2a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42c2cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42c2cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x42c662
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x437758
push 0x437750
push str.FlsAlloc
push 0x1f
call fcn.0042c945
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42c696
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x42c69c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42c6e0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x437768
push 0x437760
push str.FlsGetValue
push 0x21
call fcn.0042c945
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42c717
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42c71f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x437770
push 0x437768
push str.FlsSetValue
push 0x22
call fcn.0042c945
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42c759
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4301ea
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x430287
push ebx
push esi
call fcn.0043028a
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004300ee
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x430234
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x430286
push edi
push eax
call fcn.0042eb7b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x430254
call fcn.0042dc2b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x430285
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004300ee
add esp, 0x20
test eax, eax
jne 0x430273
push edi
call fcn.0042dc2b
jmp 0x43027b
push ebx
call fcn.0042dc2b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x5f7406
Capabilities:
Encode data using add xor sub operations

Disassembly:
mov dh, 0xb8
xchg ebx, eax
or esi, dword [edi]
xchg ebp, eax
mov ebp, 0x74b6b33a
push eax
mov eax, 0x99370b93
mov ebp, 0x74b6b33a
and al, 0x53
mov eax, 0x99380b93
mov ebp, 0xe622b33a
mov ch, 0x6d
mov esp, 0xbc659c3a
cmp dh, byte [ebx - 0x4bc119de]
insd dword es:[edi], dx
mov esp, 0xe6e6143a
std
mov eax, dword cs:[0x46e4083a]
or ah, ah
inc esi
or ah, ah
inc esi
lodsb al, byte [esi]
mov bl, 0x6a
xor dword [edx], ecx
mov dl, 0xf3
test eax, 0x316ab3ac
add bl, byte [ebx - 0x4cc54222]
and al, 0x63
push cs
mov bl, 0xd0
shr byte [edx], 1
and dword [edi], esi
jns 0x5f73ca
rcr dword [ebx - 0x4cc54394], cl
retf 0x2b22

Function at 0x5f741f
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov dh, 0xb8
xchg ebx, eax
or esi, dword [edi]
xchg ebp, eax
mov ebp, 0x74b6b33a
push eax
mov eax, 0x99370b93
mov ebp, 0x74b6b33a
and al, 0x53
mov eax, 0x99380b93
mov ebp, 0xe622b33a
mov ch, 0x6d
mov esp, 0xbc659c3a
cmp dh, byte [ebx - 0x4bc119de]
insd dword es:[edi], dx
mov esp, 0xe6e6143a
std
mov eax, dword cs:[0x46e4083a]
or ah, ah
inc esi
or ah, ah
inc esi
lodsb al, byte [esi]
mov bl, 0x6a
xor dword [edx], ecx
mov dl, 0xf3
test eax, 0x316ab3ac
add bl, byte [ebx - 0x4cc54222]
and al, 0x63
push cs
mov bl, 0xd0
shr byte [edx], 1
and dword [edi], esi
jns 0x5f73ca
rcr dword [ebx - 0x4cc54394], cl
retf 0x2b22

Function at 0x604d16
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x604d31
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124c9f56]
pop edx
test eax, eax
je 0x604e03
cmp dword [ebp - 0x2ac], 0x1000
jne 0x604df2
test dword [ebp - 0x2a8], 1
jne 0x604df2
and dword [ebp - 0x2a8], 0x100
jne 0x604df2
push esi
push edx
push 4
push esi
call dword [edx + 0x122d2f2b]
pop edx
pop esi
test eax, eax
je 0x604d95
jmp 0x604df2
cmp word [esi], 0x5a4d
jne 0x604df2
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x604df2
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d2ccb]
pop edx
test eax, eax
je 0x604df2
lea eax, [ebp - 0x28c]
push eax
call fcn.00604c72
test eax, eax
jne 0x604deb
jmp 0x604df2
mov eax, esi
jmp 0x604e03
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x604d31
pop esi
leave
ret 4
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x425004]
jne 0x40100a
repz ret
jmp fcn.00401374

Function at 0x406a57
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404663
and dword [ebp - 4], 0
cmp dword [0x42701c], 0
mov ebx, eax
jne 0x406b08
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406bb9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406bb9
push eax
call fcn.004045f1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42701c], eax
call esi
push eax
call fcn.004045f1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x427020], eax
call esi
push eax
call fcn.004045f1
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x427024], eax
call esi
push eax
call fcn.004045f1
pop ecx
mov dword [0x42702c], eax
test eax, eax
je 0x406b08
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004045f1
pop ecx
mov dword [0x427028], eax
mov eax, dword [0x427028]
cmp eax, ebx
je 0x406b60
cmp dword [0x42702c], ebx
je 0x406b60
push eax
call fcn.0040466c
push dword [0x42702c]
mov esi, eax
call fcn.0040466c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406b60
test edi, edi
je 0x406b60
call esi
test eax, eax
je 0x406b57
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406b57
test byte [ebp - 0xc], 1
jne 0x406b60
or dword [ebp + 0x10], 0x200000
jmp 0x406b99
mov eax, dword [0x427020]
cmp eax, ebx
je 0x406b99
push eax
call fcn.0040466c
pop ecx
test eax, eax
je 0x406b99
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406b99
mov eax, dword [0x427024]
cmp eax, ebx
je 0x406b99
push eax
call fcn.0040466c
pop ecx
test eax, eax
je 0x406b99
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42701c]
call fcn.0040466c
pop ecx
test eax, eax
je 0x406bb9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406bbb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41e550
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1004
call fcn.00409650
mov eax, dword [0x425004]
xor eax, esp
mov dword [esp + 0x1000], eax
mov eax, dword [0x425f20]
push ebx
mov ebx, dword [0x80cb0c]
push edi
mov edi, dword [0x80c954]
call fcn.0041e460
cmp dword [0x80cb0c], 0x2f
jne 0x41e58f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
call fcn.0041e4a0
cmp dword [0x80cb0c], 0x568
pop edi
pop ebx
jne 0x41e5c3
push 0
push 0
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
push 0
lea ecx, [esp + 0x804]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.00401000
add esp, 0x1004
ret
Function at 0x4029f8
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402a35
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402a55
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404ca4
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402bd4
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.00404a34
test esi, esi
jne 0x402c0a
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.00404b24
jmp 0x402c28
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402ae8
mov edi, eax
test esi, esi
je 0x402c28
cmp dword [ebx], 0
je 0x402c28
dec esi
jmp 0x402c11
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403ab0
Capabilities:
Query or enumerate registry value

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

Function at 0x404814
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c404c], 0
je 0x404875
cmp word [0x4c4220], 0xd7b2
jne 0x40483d
cmp dword [0x4c4228], 0
jbe 0x40483d
mov eax, 0x4c421c
call dword [0x4c4238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4c1098
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 0x40489c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4c1030], 0
jne 0x404891
push 0
push 0x4c1090
push 0x4c1098
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4049e8
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 [0x4c404d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4049b0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40656c
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 0x40679c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4065ef
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40679c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4065ef
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4067b8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406678
xor eax, eax
push ebp
push 0x406671
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004063b4
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 0x406656
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4067d8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406656
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 0x406678
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 0x406792
cmp byte [ebp - 0xd], 0
jne 0x4066bf
cmp byte [ebp - 0x12], 0
je 0x406792
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4066d8
dec ebx
cmp byte [ebx], 0x2e
je 0x4066e7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4066d7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406792
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406724
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 0x406792
cmp byte [ebp - 0xd], 0
je 0x406792
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 0x406792
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 0x406eb4
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 0x406f1a
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.00404ca4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403408
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406f04
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406f21
lea eax, [ebp - 0x10]
call fcn.00404a34
ret

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

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

Function at 0x40c9b0
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 0x40c9e9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404b24
jmp 0x40c9f2
mov eax, ebx
mov edx, esi
call fcn.00404a88
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40d0a4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cf1c
mov eax, dword [0x4c3760]
cmp byte [eax], 0
je 0x40d120
mov eax, dword [0x4c3354]
call fcn.00403020
call fcn.00402978
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.00409ef0
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 0x40d168
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d156
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4c32ac]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4c4668]
call fcn.00406378
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