joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413f53
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x85c
mov eax, dword [0x41e024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x820], eax
xor ebx, ebx
mov dword [ebp - 0x814], ebx
cmp dword [edi + 0x64], ebx
je 0x4140fe
xor eax, eax
inc eax
mov dword [ebp - 0x818], eax
push eax
push dword [edi + 0x2c]
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.00402a0c
add esp, 0x10
lea eax, [ebp - 0x81c]
push eax
push 0
push eax
push 0
lea eax, [ebp - 0x810]
push eax
push dword [edi + 0x64]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [ebp + 0xc]
test eax, eax
jne 0x413fe1
mov eax, dword [ebp - 0x818]
inc eax
mov dword [ebp - 0x818], eax
cmp eax, 0x64
jb 0x413f90
xor ebx, ebx
jmp 0x414048
cmp esi, 2
jbe 0x41400f
cmp esi, 3
je 0x41400b
cmp esi, 4
je 0x414004
cmp esi, 7
je 0x41400f
cmp esi, 0xb
jne 0x41401e
and dword [ebp - 0xc], ebx
and dword [ebp - 8], ebx
push 8
jmp 0x414017
and dword [ebp - 0xc], ebx
push 4
jmp 0x414017
xor ebx, ebx
jmp 0x414018
xor eax, eax
mov word [ebp - 0xc], ax
push 2
pop ebx
mov dword [ebp - 0x814], ebx
push ebx
lea eax, [ebp - 0xc]
xor ebx, ebx
push eax
push esi
push ebx
lea eax, [ebp - 0x810]
push eax
push dword [edi + 0x64]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x414042
mov eax, 0xa9
jmp 0x414050
mov eax, dword [ebp - 0x818]
cmp eax, 0x64
jne 0x414071
add eax, 0x46
push 0x10
push 0xa8
push eax
push dword [ebp - 0x820]
push dword [0x41edec]
call fcn.0040eae0
add esp, 0x14
jmp 0x4140fe
push ebx
push ebx
push 0x1004
push dword [edi]
lea eax, [ebp - 0x810]
mov dword [ebp - 0x85c], 3
mov dword [ebp - 0x848], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x858], eax
mov dword [ebp - 0x854], ebx
cmp esi, 1
je 0x4140bb
cmp esi, 2
je 0x4140bb
mov dword [ebp - 0x840], 5
cmp esi, 7
jne 0x4140c5
mov dword [ebp - 0x840], 4
lea eax, [ebp - 0x85c]
push eax
push ebx
push 0x104d
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4140fe
mov ecx, dword [edi]
lea eax, [ebp - 0xc]
push esi
push dword [ebp - 0x814]
mov edx, ebx
push eax
call fcn.00414f32
mov ecx, dword [edi]
mov edx, ebx
call fcn.00415291
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ca70
leave
ret 8
Function at 0x41410f
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x858
mov eax, dword [0x41e024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 0x81c], eax
xor esi, esi
xor eax, eax
mov dword [ebp - 0x818], edi
inc esi
mov byte [ebx + 0x5c], al
cmp dword [edi + 0x20], eax
je 0x4142c6
mov dword [ebp - 0x850], eax
lea eax, [ebp - 0x804]
mov dword [ebp - 0x844], eax
lea eax, [ebp - 0x858]
push eax
push dword [edi + 0x10]
mov dword [ebp - 0x840], 0x400
push 0x1073
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 0x20]
xor esi, esi
cmp word [eax], si
jne 0x414191
push 0x4b
pop edi
jmp 0x4142a6
lea ecx, [ebp - 0x814]
push ecx
push esi
push ecx
push esi
push eax
push dword [ebx + 0x64]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 2
pop edi
cmp eax, edi
je 0x4141b0
push 0x4a
jmp 0x41418b
lea eax, [ebp - 0x80c]
push eax
push 0
lea eax, [ebp - 0x808]
push eax
push 0
lea eax, [ebp - 0x804]
push eax
push dword [ebx + 0x64]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x808], 1
je 0x4141ee
cmp dword [ebp - 0x808], edi
je 0x4141ee
cmp dword [ebp - 0x808], 7
je 0x4141ee
xor edi, edi
mov eax, dword [ebp - 0x80c]
add eax, edi
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x810], eax
test eax, eax
je 0x41429f
push 0x49
pop edi
lea ecx, [ebp - 0x80c]
push ecx
push eax
lea eax, [ebp - 0x808]
push eax
push 0
lea eax, [ebp - 0x804]
push eax
push dword [ebx + 0x64]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x414291
lea eax, [ebp - 0x80c]
push eax
push dword [ebp - 0x810]
lea ecx, [ebp - 0x808]
call fcn.0040ecbf
test eax, eax
jne 0x414291
push dword [ebp - 0x80c]
push dword [ebp - 0x810]
push dword [ebp - 0x808]
push eax
mov eax, dword [ebp - 0x818]
push dword [eax + 0x20]
push dword [ebx + 0x64]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x414291
lea eax, [ebp - 0x804]
push eax
push dword [ebx + 0x64]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x414291
xor esi, esi
inc esi
push dword [ebp - 0x810]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4142a2
push 0x76
pop edi
test esi, esi
jne 0x4142c6
lea eax, [ebp - 0x804]
push eax
push 0x10
push 0x48
push edi
push dword [ebp - 0x81c]
push dword [0x41edec]
call fcn.0040eae0
add esp, 0x18
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ca70
leave
ret 8
Function at 0x414a88
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x858
mov eax, dword [0x41e024]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x818], ebx
push edi
mov esi, ecx
push edi
push 0x1032
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
cmp eax, 1
push 0x34
sete cl
push 0x33
lea ecx, [ecx*2 + 0x32]
push ecx
push ebx
push dword [0x41edec]
call fcn.0040eae0
add esp, 0x14
cmp eax, 6
jne 0x414bf9
push edi
push edi
push 0xb
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
or dword [ebp - 0x814], 0xffffffff
push 2
push 0xffffffffffffffff
push 0x100c
push dword [esi]
mov dword [ebp - 0x810], edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
cmp edi, 0xffffffff
je 0x414bcd
mov ebx, dword [ebp - 0x814]
test edi, edi
je 0x414b5b
and dword [ebp - 0x84c], 0
lea eax, [ebp - 0x80c]
mov dword [ebp - 0x840], eax
lea eax, [ebp - 0x854]
push eax
push edi
push 0x1073
push dword [esi]
mov dword [ebp - 0x83c], 0x400
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x414b64
xor eax, eax
mov word [ebp - 0x80c], ax
lea eax, [ebp - 0x80c]
push eax
push dword [esi + 0x64]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x414ba0
test edi, edi
je 0x414b8d
push eax
push edi
push 0x1008
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x414bac
mov ecx, dword [esi]
xor edx, edx
push 1
push 0
push 0
call fcn.00414f32
xor ebx, ebx
jmp 0x414bac
mov dword [ebp - 0x810], 1
mov ebx, edi
push 2
push ebx
push 0x100c
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x414b23
mov ebx, dword [ebp - 0x818]
push 0
push 1
push 0xb
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x810], 0
je 0x414bf9
push 0x10
push 0x58
push 0x59
push ebx
push dword [0x41edec]
call fcn.0040eae0
add esp, 0x14
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ca70
leave
ret 4
Function at 0x4154cc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x858
mov eax, dword [0x41e024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 2
mov eax, ecx
xor edi, edi
mov ecx, dword [ebp + 8]
mov ebx, edi
push 0xffffffffffffffff
push 0x100c
push dword [eax]
mov dword [ebp - 0x810], eax
mov dword [ebp - 0x80c], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
mov dword [ebp - 0x850], edi
lea eax, [ebp - 0x804]
mov dword [ebp - 0x840], 0x400
mov dword [ebp - 0x844], eax
lea eax, [ebp - 0x858]
push eax
mov eax, dword [ebp - 0x810]
push esi
push 0x1073
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
test esi, esi
jne 0x415550
xor eax, eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x804]
mov dword [ebp - 0x81c], eax
lea eax, [ebp - 0x814]
push eax
push edi
lea eax, [ebp - 0x808]
push eax
push edi
lea eax, [ebp - 0x804]
push eax
mov eax, dword [ebp - 0x810]
push dword [eax + 0x64]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4155a2
cmp eax, 2
jne 0x415594
cmp word [ebp - 0x804], bx
je 0x4155a2
mov esi, dword [ebp - 0x80c]
push 0x72
pop edi
jmp 0x415698
cmp dword [ebp - 0x808], 1
je 0x4155c1
cmp dword [ebp - 0x808], 2
je 0x4155c1
cmp dword [ebp - 0x808], 7
je 0x4155c1
mov ecx, edi
jmp 0x4155c4
push 2
pop ecx
mov eax, dword [ebp - 0x814]
add eax, ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov dword [ebp - 0x818], esi
test esi, esi
je 0x415688
lea eax, [ebp - 0x814]
push eax
push esi
lea eax, [ebp - 0x808]
push eax
push edi
lea eax, [ebp - 0x804]
push eax
mov eax, dword [ebp - 0x810]
push dword [eax + 0x64]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x415622
lea eax, [ebp - 0x814]
push eax
push esi
lea ecx, [ebp - 0x808]
call fcn.0040ecbf
cmp eax, 2
jne 0x415647
cmp word [ebp - 0x804], bx
jne 0x41566e
mov eax, dword [ebp - 0x818]
xor ecx, ecx
mov dword [ebp - 0x808], 1
mov word [eax], cx
mov eax, edi
test eax, eax
jne 0x41566e
push dword [ebp - 0x808]
mov esi, dword [ebp - 0x80c]
mov ecx, esi
mov edx, dword [ebp - 0x818]
push 1
push dword [ebp - 0x814]
call fcn.0041a8c1
jmp 0x41567a
mov esi, dword [ebp - 0x80c]
xor ebx, ebx
push 0x72
pop edi
inc ebx
push dword [ebp - 0x818]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x415694
mov esi, dword [ebp - 0x80c]
xor ebx, ebx
push 0x76
pop edi
inc ebx
test ebx, ebx
je 0x4156b3
lea eax, [ebp - 0x804]
push eax
push 0x10
push 0x70
push edi
push esi
push dword [0x41edec]
call fcn.0040eae0
add esp, 0x18
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ca70
leave
ret 4
Function at 0x41ce04
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x41d440
call fcn.0041d0c8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x41ce64
cmp eax, 0xffffffff
je 0x41ce64
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x41ce5d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x41ce5d
cmp edx, 0x10000000
jae 0x41ce5d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x41ce5a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41ced0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x41cf0e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x41cf06
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x41cf10
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x41cef6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41cfe0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x41d011
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41d011
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x41d011
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10490
Capabilities:
Create device object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push 0x10a60
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea ecx, [ebp - 4]
push ecx
push 1
push 0
push 0x22
lea edx, [ebp - 0xc]
push edx
push 0x14
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x104cf
mov eax, dword [ebp - 0x18]
jmp 0x10544
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c]
or edx, 4
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], edx
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x28]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 8]
mov dword [edx + 8], ecx
push 0x10a40
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x10], edx
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x10542
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, dword [ebp - 0x18]
jmp 0x10544
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x10dbe
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.00010d85
pop ebp
jmp fcn.00010410
Function at 0x402aa0
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.0040456c
test esi, esi
jne 0x402ad6
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.0040465c
jmp 0x402af4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402954
mov edi, eax
test esi, esi
je 0x402af4
cmp dword [ebx], 0
je 0x402af4
dec esi
jmp 0x402add
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4035f0
Capabilities:
Query or enumerate registry value

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

Function at 0x40434c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x490048], 0
je 0x4043ad
cmp word [0x49021c], 0xd7b2
jne 0x404375
cmp dword [0x490224], 0
jbe 0x404375
mov eax, 0x490218
call dword [0x490234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48e070
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 0x4043d4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48e030], 0
jne 0x4043c9
push 0
push 0x48e068
push 0x48e070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404520
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.0040270c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x490049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4044e8
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40586c
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 0x405a9c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4058ef
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405a9c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4058ef
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405ab8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405978
xor eax, eax
push ebp
push 0x405971
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004056b4
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 0x405956
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405ad8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405956
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 0x405978
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 0x405a92
cmp byte [ebp - 0xd], 0
jne 0x4059bf
cmp byte [ebp - 0x12], 0
je 0x405a92
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4059d8
dec ebx
cmp byte [ebx], 0x2e
je 0x4059e7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4059d7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405a92
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405a24
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 0x405a92
cmp byte [ebp - 0xd], 0
je 0x405a92
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 0x405a92
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 0x406164
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 0x4061ca
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.004047dc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403058
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4061b4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4061d1
lea eax, [ebp - 0x10]
call fcn.0040456c
ret

Function at 0x408f74
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x408fa5
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x408fac
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x408fdd
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x40c654
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x40c69c
mov ecx, dword [ebp - 0x10]
dec ecx
lea edx, [ebp - 0x110]
mov eax, dword [ebp + 8]
call fcn.0040465c
jmp 0x40c6a7
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.004045c0
mov esp, ebp
pop ebp
ret 4

Function at 0x40c6b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 2
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c6de
mov al, byte [ebp - 0xc]
mov byte [ebp - 0xa], al
jmp 0x40c6e4
mov al, byte [ebp - 9]
mov byte [ebp - 0xa], al
mov al, byte [ebp - 0xa]
mov esp, ebp
pop ebp
ret
Function at 0x40ce6c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbb4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0x400
lea ecx, [ebp - 0x44c]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040ccb4
mov eax, dword [0x48fb74]
cmp byte [eax], 0
je 0x40ceff
mov eax, dword [0x48f878]
call fcn.00402eac
call fcn.00402880
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x44c]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x44c]
call fcn.00409490
push eax
lea eax, [ebp - 0x44c]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 0xc]
push eax
push 2
push 0x40cf44
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40cf35
push 0x40
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [0x48f804]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x490664]
call fcn.00405678
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
mov esp, ebp
pop ebp
ret

Function at 0x40d90c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40d9ea
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404604
lea eax, [ebp - 0xc]
call fcn.00404a98
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404a48
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40d9d4
mov eax, dword [ebp - 0x10]
call fcn.0040270c
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x40d9cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404a48
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d9b7
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x40d9f8
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d9b7
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d9d4
mov eax, dword [ebp - 0x18]
call fcn.0040272c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d9f1
lea eax, [ebp - 0xc]
call fcn.0040456c
ret