joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410829
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00407c6a
mov dword [ebp - 0x14], eax
cmp dword [0x41bd84], edi
jne 0x41091a
push 0x800
push edi
push 0x4155c8
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4108a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4109fa
push 0x4155c8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4109fa
push 0x4155e0
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4109fa
push eax
call ebx
push 0x4155ec
push esi
mov dword [0x41bd84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4155fc
push esi
mov dword [0x41bd88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x415610
push esi
mov dword [0x41bd8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41bd94], eax
test eax, eax
je 0x410917
push 0x41562c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41bd90], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41093f
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x410932
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x410954
push 4
pop eax
jmp 0x4109fc
cmp dword [ebp - 0x14], edi
je 0x410954
push dword [0x41bd84]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x410939
mov eax, dword [0x41bd90]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4109b2
cmp dword [0x41bd94], esi
je 0x4109b2
push eax
call ebx
push dword [0x41bd94]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4109b2
test eax, eax
je 0x4109b2
call ecx
test eax, eax
je 0x4109a7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4109a7
test byte [ebp - 8], 1
jne 0x4109b2
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4109e2
mov eax, dword [0x41bd88]
cmp eax, esi
je 0x4109df
push eax
call ebx
test eax, eax
je 0x4109df
call eax
mov edi, eax
test edi, edi
je 0x4109df
mov eax, dword [0x41bd8c]
cmp eax, esi
je 0x4109df
push eax
call ebx
test eax, eax
je 0x4109df
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x41bd84]
call ebx
test eax, eax
je 0x4109fa
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4109fc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405da4
leave
ret
Function at 0x430001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x404970
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1cd8
call fcn.0040ff60
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x44a0d8]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [0x44a0dc]
push esi
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], edx
call fcn.00404960
mov edi, dword [ebp - 0xc]
mov ecx, dword [0x44a0e0]
mov edx, dword [0x44a0e4]
add edi, 0x23f
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], 0x20
lea ecx, [ecx]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov esi, dword [ebp - 8]
mov eax, dword [0x451854]
shl esi, 4
add esi, dword [ebp - 0x24]
cmp eax, 0xfa9
jne 0x4049fc
mov dword [0x451850], 0xedeb2e40
jmp 0x404a17
cmp eax, 0x3eb
jne 0x404a17
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [0x4512e0], 0
mov eax, dword [ebp - 8]
lea ecx, [edi + eax]
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x451854], 0x9e6
mov dword [0x45184c], 0xf4ea3dee
jne 0x404a50
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x451854], 0x213
jne 0x404af2
push 0
lea eax, [ebp - 0x8d8]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrencyFormatW]
lea ecx, [ebp - 0x14d8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x10d8]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommBreak]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
push 0
push 0
lea ecx, [ebp - 0x1cd8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
lea edx, [ebp - 0x30]
push edx
push 0
lea eax, [ebp - 0x44]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea ecx, [ebp - 0xd8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
sub ebx, dword [ebp - 4]
cmp dword [0x451854], 0xc
jne 0x404b06
push 0
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
mov eax, ebx
shr eax, 5
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov ecx, ebx
shl ecx, 4
add ecx, dword [ebp - 0x1c]
lea edx, [edi + ebx]
xor ecx, edx
xor ecx, dword [ebp - 4]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
sub dword [ebp - 8], eax
add edi, 0x61c88647
sub dword [ebp - 0x10], 1
jne 0x4049d0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov dword [eax + 4], ebx
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404b60
Capabilities:
Connect pipe
Create process on windows
Create reverse shell
Read pipe
Set environment variable
Set thread local storage value
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1408
call fcn.0040ff60
mov eax, dword [0x451854]
mov ecx, dword [0x4512e4]
shr eax, 3
test eax, eax
jbe 0x404c78
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x451854], 0x959
jne 0x404c5e
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push 0
lea ecx, [ebp - 0xc08]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea edx, [ebp - 0x808]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
lea eax, [ebp - 0x1408]
push eax
push 0
call edi
mov ecx, dword [ebp - 4]
push ecx
call fcn.00404970
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x404ba0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4064f0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4490e8]
jne 0x4064fa
repz ret
jmp fcn.0040a73e

Function at 0x40a369
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.004096ff
and dword [ebp - 4], 0
cmp dword [0x44f294], 0
mov ebx, eax
jne 0x40a41a
push 0x402458
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a4cb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40244c
push edi
call esi
test eax, eax
je 0x40a4cb
push eax
call fcn.0040968d
mov dword [esp], 0x40243c
push edi
mov dword [0x44f294], eax
call esi
push eax
call fcn.0040968d
mov dword [esp], 0x402428
push edi
mov dword [0x44f298], eax
call esi
push eax
call fcn.0040968d
mov dword [esp], 0x40240c
push edi
mov dword [0x44f29c], eax
call esi
push eax
call fcn.0040968d
pop ecx
mov dword [0x44f2a4], eax
test eax, eax
je 0x40a41a
push 0x4023f4
push edi
call esi
push eax
call fcn.0040968d
pop ecx
mov dword [0x44f2a0], eax
mov eax, dword [0x44f2a0]
cmp eax, ebx
je 0x40a472
cmp dword [0x44f2a4], ebx
je 0x40a472
push eax
call fcn.00409708
push dword [0x44f2a4]
mov esi, eax
call fcn.00409708
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a472
test edi, edi
je 0x40a472
call esi
test eax, eax
je 0x40a469
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a469
test byte [ebp - 0xc], 1
jne 0x40a472
or dword [ebp + 0x10], 0x200000
jmp 0x40a4ab
mov eax, dword [0x44f298]
cmp eax, ebx
je 0x40a4ab
push eax
call fcn.00409708
pop ecx
test eax, eax
je 0x40a4ab
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a4ab
mov eax, dword [0x44f29c]
cmp eax, ebx
je 0x40a4ab
push eax
call fcn.00409708
pop ecx
test eax, eax
je 0x40a4ab
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44f294]
call fcn.00409708
pop ecx
test eax, eax
je 0x40a4cb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a4cd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x70492e68
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x4c
mov eax, dword [ebp + 8]
cdq
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
jmp 0x70492f16
jmp 0x70492fb3
jmp 0x70493050
jmp 0x704930ed
jmp 0x7049318a
jmp 0x70493227
jmp 0x704932c4
jmp 0x70493361
jmp 0x704933fe
jmp 0x7049349b
jmp 0x70493538
jmp 0x704935d5
jmp 0x70493672
jmp 0x7049370f
jmp 0x704937ac
jmp 0x70493849
jmp 0x704938e6
jmp 0x70493983
jmp 0x70493a20
jmp 0x70493abd
jmp 0x70493b5a
jmp 0x70493bf7
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
jmp 0x70493c9a
jmp 0x70493d37
jmp 0x70493dd4
jmp 0x70493e71
jmp 0x70493f0e
jmp 0x70493fab
jmp 0x70494048
jmp 0x704940e5
jmp 0x70494182
jmp 0x7049421f
jmp 0x704942bc
jmp 0x70494359
jmp 0x704943f6
jmp 0x70494493
jmp 0x70494530
jmp 0x704945cd
jmp 0x7049466a
jmp 0x70494707
jmp 0x704947a4
jmp 0x70494841
jmp 0x704948de
jmp 0x7049497b
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x3c]
mov ecx, eax
mov ebx, eax
sar ebx, 0x1f
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
add eax, ecx
adc edx, ebx
mov dword [ebp - 0x20], eax
jmp 0x70494a32
jmp 0x70494acf
jmp 0x70494b6c
jmp 0x70494c09
jmp 0x70494ca6
jmp 0x70494d43
jmp 0x70494de0
jmp 0x70494e7d
jmp 0x70494f1a
jmp 0x70494fb7
jmp 0x70495054
jmp 0x704950f1
jmp 0x7049518e
jmp 0x7049522b
jmp 0x704952c8
jmp 0x70495365
jmp 0x70495402
jmp 0x7049549f
jmp 0x7049553c
jmp 0x704955d9
jmp 0x70495676
jmp 0x70495713
mov eax, dword [ebp - 0x20]
add eax, 0x78
mov dword [ebp - 0x24], eax
jmp 0x704957b9
jmp 0x70495856
jmp 0x704958f3
jmp 0x70495990
jmp 0x70495a2d
jmp 0x70495aca
jmp 0x70495b67
jmp 0x70495c04
jmp 0x70495ca1
jmp 0x70495d3e
jmp 0x70495ddb
jmp 0x70495e78
jmp 0x70495f15
jmp 0x70495fb2
jmp 0x7049604f
jmp 0x704960ec
jmp 0x70496189
jmp 0x70496226
jmp 0x704962c3
jmp 0x70496360
jmp 0x704963fd
jmp 0x7049649a
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov ecx, eax
mov ebx, 0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
add eax, ecx
adc edx, ebx
mov dword [ebp - 0x28], eax
jmp 0x70496550
jmp 0x704965ed
jmp 0x7049668a
jmp 0x70496727
jmp 0x704967c4
jmp 0x70496861
jmp 0x704968fe
jmp 0x7049699b
jmp 0x70496a38
jmp 0x70496ad5
jmp 0x70496b72
jmp 0x70496c0f
jmp 0x70496cac
jmp 0x70496d49
jmp 0x70496de6
jmp 0x70496e83
jmp 0x70496f20
jmp 0x70496fbd
jmp 0x7049705a
jmp 0x704970f7
jmp 0x70497194
jmp 0x70497231
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x1c]
mov ecx, eax
mov ebx, 0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
add eax, ecx
adc edx, ebx
mov dword [ebp - 0x2c], eax
jmp 0x704972e8
jmp 0x70497385
jmp 0x70497422
jmp 0x704974bf
jmp 0x7049755c
jmp 0x704975f9
jmp 0x70497696
jmp 0x70497733
jmp 0x704977d0
jmp 0x7049786d
jmp 0x7049790a
jmp 0x704979a7
jmp 0x70497a44
jmp 0x70497ae1
jmp 0x70497b7e
jmp 0x70497c1b
jmp 0x70497cb8
jmp 0x70497d55
jmp 0x70497df2
Function at 0x704ba03f
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x70c0d018]
movzx eax, word [eax + 0x14]
movzx eax, ax
mov edx, dword [0x70c0d018]
add eax, edx
add eax, 0x18
mov dword [ebp - 0xc], eax
jmp 0x704ba0fc
jmp 0x704ba199
jmp 0x704ba236
jmp 0x704ba2d3
jmp 0x704ba370
jmp 0x704ba40d
jmp 0x704ba4aa
jmp 0x704ba547
jmp 0x704ba5e4
jmp 0x704ba681
jmp 0x704ba71e
jmp 0x704ba7bb
jmp 0x704ba858
jmp 0x704ba8f5
jmp 0x704ba992
jmp 0x704baa2f
jmp 0x704baacc
jmp 0x704bab69
jmp 0x704bac06
jmp 0x704baca3
jmp 0x704bad40
jmp 0x704baddd
mov dword [ebp - 0x14], 0
jmp 0x704bae81
jmp 0x704baf1e
jmp 0x704bafbb
jmp 0x704bb058
jmp 0x704bb0f5
jmp 0x704bb192
jmp 0x704bb22f
jmp 0x704bb2cc
jmp 0x704bb369
jmp 0x704bb406
jmp 0x704bb4a3
jmp 0x704bb540
jmp 0x704bb5dd
jmp 0x704bb67a
jmp 0x704bb717
jmp 0x704bb7b4
jmp 0x704bb851
jmp 0x704bb8ee
jmp 0x704bb98b
jmp 0x704bba28
jmp 0x704bbac5
jmp 0x704bbb62
mov dword [ebp - 0x18], 0
Function at 0x402ce0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x50a008], 0x8088405
inc edx
mov dword [ebx + 0x50a008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4031c4
Capabilities:
Query or enumerate registry value

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

Function at 0x4040b4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x50d04c], 0
je 0x404115
cmp word [0x50d220], 0xd7b2
jne 0x4040dd
cmp dword [0x50d228], 0
jbe 0x4040dd
mov eax, 0x50d21c
call dword [0x50d238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x50a070
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 0x40413c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x50a034], 0
jne 0x404131
push 0
push 0x50a068
push 0x50a070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405b24
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 0x405d54
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405ba7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405d54
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405ba7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405d70
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405c30
xor eax, eax
push ebp
push 0x405c29
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040596c
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 0x405c0e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405d90
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405c0e
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 0x405c30
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 0x405d4a
cmp byte [ebp - 0xd], 0
jne 0x405c77
cmp byte [ebp - 0x12], 0
je 0x405d4a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405c90
dec ebx
cmp byte [ebx], 0x2e
je 0x405c9f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405c8f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405d4a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405cdc
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 0x405d4a
cmp byte [ebp - 0xd], 0
je 0x405d4a
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 0x405d4a
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 0x406468
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 0x4064ce
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.004044a0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d68
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4064b8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4064d5
lea eax, [ebp - 0x10]
call fcn.00404230
ret

Function at 0x40c1e8
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 0x40c221
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404320
jmp 0x40c22a
mov eax, ebx
mov edx, esi
call fcn.00404284
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c8dc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c754
mov eax, dword [0x50cd64]
cmp byte [eax], 0
je 0x40c958
mov eax, dword [0x50c8f0]
call fcn.00402b10
call fcn.00402920
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.004092ec
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 0x40c9a0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c98e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x50c86c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x50d668]
call fcn.00405930
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