joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435755
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x44c080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00429bf8
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00429bf8
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4357cc
cmp word [ecx], dx
je 0x4357cc
mov eax, dword [0x443574]
push edi
dec eax
push eax
push 0x443460
call fcn.004356ee
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x43583f
cmp word [eax], dx
je 0x43583f
mov eax, dword [edi]
test eax, eax
je 0x4357f0
cmp word [eax], dx
je 0x4357f0
lea eax, [ebp - 0x10]
push eax
call fcn.004350d4
jmp 0x4357f9
lea eax, [ebp - 0x10]
push eax
call fcn.0043516f
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x435869
mov eax, dword [0x44345c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x443150
call fcn.004356ee
add esp, 0xc
test al, al
je 0x435869
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x435834
cmp word [eax], di
je 0x435834
lea eax, [ebp - 0x10]
push eax
call fcn.004350d4
pop ecx
jmp 0x43586b
lea eax, [ebp - 0x10]
push eax
call fcn.0043516f
jmp 0x435831
mov eax, dword [edi]
test eax, eax
je 0x435856
cmp word [eax], dx
je 0x435856
lea eax, [ebp - 0x10]
push eax
call fcn.00435089
pop ecx
jmp 0x435869
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x435934
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00435573
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x435934
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x435934
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x435934
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4358c1
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0042b27a
test ebx, ebx
je 0x43592f
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0042b27a
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x435934
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x435934
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004398d9
add esp, 0x10
xor eax, eax
inc eax
jmp 0x435936
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b605
leave
ret
Function at 0x439fbb
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00439f37
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x43a12a
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x43a12a
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x43a0df
jg 0x43a017
test eax, eax
je 0x43a0d5
push 1
push 0x1000
call fcn.00429d70
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x43a03a
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x43a0cc
push 0x8000
push ebx
call fcn.00427950
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x43a063
jg 0x43a05e
cmp ecx, 0x1000
jb 0x43a063
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0042c488
add esp, 0x10
cmp eax, 0xffffffff
je 0x43a0a8
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x43a05e
jl 0x43a08f
test ecx, ecx
jne 0x43a050
push dword [ebp - 0xc]
push ebx
call fcn.00427950
push esi
call fcn.00429dd0
add esp, 0xc
xor ebx, ebx
jmp 0x43a138
cmp byte [edi + 0x24], 0
je 0x43a0bf
cmp dword [edi + 0x20], 5
jne 0x43a0bf
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x43a0ca
mov ebx, dword [edi + 0x18]
jmp 0x43a0cc
xor ebx, ebx
push esi
call fcn.00429dd0
pop ecx
jmp 0x43a138
test ecx, ecx
jg 0x43a0a1
jl 0x43a0df
test eax, eax
jae 0x43a0a1
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042e04c
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x43a0ff
cmp byte [edi + 0x1c], 0
je 0x43a0a1
jmp 0x43a130
push ebx
call fcn.00433680
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x43a0a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x43a138
cmp byte [edi + 0x1c], 0
je 0x43a135
mov ebx, dword [edi + 0x18]
jmp 0x43a138
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0042e04c
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43b380
Capabilities:
Parse pe header

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

Disassembly:
cmp ecx, dword [0x42dad0]
jne 0x40a573
repz ret
jmp fcn.0040d73b

Function at 0x4139d4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040ee12
xor ebx, ebx
cmp dword [0x431f3c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x413aa9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x413a14
xor eax, eax
jmp 0x413b6d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x413a0d
push eax
call fcn.0040edaf
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x431f3c], eax
call esi
push eax
call fcn.0040edaf
mov dword [esp], 0x42236c
push edi
mov dword [0x431f40], eax
call esi
push eax
call fcn.0040edaf
mov dword [0x431f44], eax
lea eax, [ebp - 8]
push eax
call fcn.0040d4b1
test eax, eax
pop ecx
pop ecx
je 0x413a77
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040dbaf
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x413aa9
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040edaf
cmp eax, ebx
pop ecx
mov dword [0x431f4c], eax
je 0x413aa9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040edaf
pop ecx
mov dword [0x431f48], eax
mov eax, dword [0x431f48]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x413b22
cmp dword [0x431f4c], esi
je 0x413b22
push eax
call fcn.0040ee1b
pop ecx
call eax
cmp eax, ebx
je 0x413aef
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x431f4c]
call fcn.0040ee1b
pop ecx
call eax
test eax, eax
je 0x413aef
test byte [ebp - 0x18], 1
jne 0x413b22
lea eax, [ebp - 0xc]
push eax
call fcn.0040d4e8
test eax, eax
pop ecx
je 0x413b0a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040dbaf
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x413b19
or dword [ebp + 0x10], 0x200000
jmp 0x413b53
or dword [ebp + 0x10], 0x40000
jmp 0x413b53
mov eax, dword [0x431f40]
cmp eax, esi
je 0x413b53
push eax
call fcn.0040ee1b
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x413b53
mov eax, dword [0x431f44]
cmp eax, esi
je 0x413b53
push dword [ebp - 4]
push eax
call fcn.0040ee1b
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x431f3c]
call fcn.0040ee1b
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419b3e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x42dad0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00419ad3
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.0040b410
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 0x419b8d
cmp dword [ebp - 0x1c], 5
jb 0x419ba5
jmp 0x419ba1
cmp dword [ebp - 0x10], 1
jne 0x419ba5
cmp dword [ebp - 0x1c], 4
ja 0x419ba1
jne 0x419ba5
cmp dword [ebp - 0x18], 0
jbe 0x419ba5
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x422e90
call fcn.004199a7
test eax, eax
jge 0x419bc6
mov byte [0x451fb8], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040a569
add ebp, 0x78
leave
ret

Function at 0x41f320
Capabilities:
Get disk information

Disassembly:
sub esp, 0xec
mov eax, dword [0x42dad0]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
mov ebx, dword [esp + 4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push edi
mov edi, 0x2207
mov eax, ebx
sub eax, 1
je 0x41f363
sub eax, 0xd
je 0x41f386
movzx ax, bl
add ax, 0x61
add word [0x42eee8], ax
jmp 0x41f386
mov ecx, dword [0x42eee8]
movzx eax, byte [0x42eee8]
imul ecx, ecx, 0x443b
add eax, 3
mov dword [0x42ef14], eax
sub eax, ecx
mov word [0x42eee8], ax
movzx edx, word [0x42eee8]
mov eax, dword [0x42eeec]
push 0x64
lea ecx, [esp + 0x30]
push ecx
push 0
push 0
lea ebx, [edx + eax + 0x4a]
lea edx, [esp + 0x1c]
push edx
push 0x64
lea eax, [esp + 0xa8]
push eax
push 0x4295c4
call esi
sub edi, 1
jne 0x41f346
movzx ecx, word [0x42eee8]
mov eax, dword [0x42ef14]
sub eax, ecx
add eax, 0x53
mov ebx, eax
sub eax, dword [0x42eeec]
lea edx, [ecx - 0x5e]
sub eax, dword [0x42eee8]
mov word [0x42eee8], ax
call fcn.004011a0
mov edx, dword [0x42eee8]
imul edx, edx, 0x443b
mov ecx, eax
sub ecx, edx
mov edx, dword [0x42ef14]
imul edx, edx, 0xbbc5
add edx, eax
mov dword [0x42eeec], eax
mov eax, ebx
sub eax, 1
mov word [0x42eee8], cx
mov dword [0x42ef14], edx
je 0x41f439
sub eax, 0xd
je 0x41f45c
movzx ax, bl
add ax, 0x61
add cx, ax
mov word [0x42eee8], cx
jmp 0x41f45c
mov ecx, dword [0x42eee8]
movzx eax, byte [0x42eee8]
imul ecx, ecx, 0x443b
add eax, 3
mov dword [0x42ef14], eax
sub eax, ecx
mov word [0x42eee8], ax
xor eax, eax
lea esi, [esp + 0x10]
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], 0
call fcn.00401460
cmp dword [esp + 0x28], 8
pop edi
pop esi
pop ebx
jb 0x41f495
mov edx, dword [esp + 8]
push edx
call fcn.004018db
add esp, 4
mov ecx, dword [esp + 0xe8]
xor ecx, esp
mov eax, 1
call fcn.0040a569
add esp, 0xec
ret 0x10
Function at 0x8d2058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x8d21a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x8d207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8d206a
add dl, dl
jne 0x8d2089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8d20dc
xor eax, eax
add dl, dl
jne 0x8d2096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8d217d
add dl, dl
jne 0x8d20a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8d20b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8d20bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8d20c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8d20d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x8d2075
mov eax, 1
add dl, dl
jne 0x8d20ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8d20f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8d20e1
sub eax, ebx
mov ebx, 1
jne 0x8d2128
mov ecx, 1
add dl, dl
jne 0x8d210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8d2119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8d2105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8d2075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x8d213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8d214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8d2136
cmp eax, 0x7d00
jae 0x8d216d
cmp eax, 0x500
jb 0x8d2168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8d2075
cmp eax, 0x7f
ja 0x8d2170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8d2075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x8d219e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x8d2075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x402a44
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.00404498
test esi, esi
jne 0x402a7a
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.00404588
jmp 0x402a98
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402958
mov edi, eax
test esi, esi
je 0x402a98
cmp dword [ebx], 0
je 0x402a98
dec esi
jmp 0x402a81
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4035b8
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 0x403650
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403630
xor eax, eax
push ebp
push 0x403629
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 0x40366c
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 0x403630
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 0x40431c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49004c], 0
je 0x40437d
cmp word [0x490220], 0xd7b2
jne 0x404345
cmp dword [0x490228], 0
jbe 0x404345
mov eax, 0x49021c
call dword [0x490238]
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 0x4043a4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48e030], 0
jne 0x404399
push 0
push 0x48e068
push 0x48e070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405b38
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 0x405d68
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405bbb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405d68
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405bbb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405d84
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405c44
xor eax, eax
push ebp
push 0x405c3d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405980
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 0x405c22
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405da4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405c22
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 0x405c44
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 0x405d5e
cmp byte [ebp - 0xd], 0
jne 0x405c8b
cmp byte [ebp - 0x12], 0
je 0x405d5e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405ca4
dec ebx
cmp byte [ebx], 0x2e
je 0x405cb3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405ca3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405d5e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405cf0
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 0x405d5e
cmp byte [ebp - 0xd], 0
je 0x405d5e
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 0x405d5e
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 0x406430
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 0x406496
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.00404708
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403020
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406480
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40649d
lea eax, [ebp - 0x10]
call fcn.00404498
ret

Function at 0x40bda8
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 0x40bde1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404588
jmp 0x40bdea
mov eax, ebx
mov edx, esi
call fcn.004044ec
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c49c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c314
mov eax, dword [0x48f508]
cmp byte [eax], 0
je 0x40c518
mov eax, dword [0x48f2f0]
call fcn.00402e80
call fcn.00402884
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.00409180
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 0x40c560
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c54e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x48f294]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x490668]
call fcn.00405944
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
Function at 0x40cdfc
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 0x40ced2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404530
lea eax, [ebp - 8]
call fcn.004049a8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404958
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cebc
mov eax, ebx
call fcn.0040271c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40ceb5
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.00404958
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40ce9f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cee4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40ce9f
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 0x40cebc
mov eax, dword [ebp - 0x10]
call fcn.0040273c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ced9
lea eax, [ebp - 8]
call fcn.00404498
ret

Function at 0x40d45c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40d4c0
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404708
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408bfc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d4c7
lea eax, [ebp - 0xc]
call fcn.00404498
ret

Function at 0x41fba4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x490888
cmp dword [edi], 0
jne 0x41fc20
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x490884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x48e480
mov ecx, 2
call fcn.00402918
mov edx, 0x41fb7c
lea eax, [esi + 5]
call fcn.0041fb9c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041fb9c
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41fbf5
mov dword [0x490884], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4211c4
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4211ca
ret