joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4626a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x492e64]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push 0x70
mov eax, dword [ebp + 0xc]
push eax
call fcn.0044ad78
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4626d4
mov eax, 8
jmp 0x46285b
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x70
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.0044a680
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
jmp 0x462701
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jge 0x462742
cmp dword [ebp - 4], 0
jne 0x462711
jmp 0x462742
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.0044aa80
add esp, 4
add eax, 1
push eax
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x70
add edx, dword [ebp - 8]
push edx
call fcn.0044af58
add esp, 0xc
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x70]
mov dword [ebp - 4], ecx
jmp 0x4626f8
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x220]
push eax
call fcn.00401f10
add esp, 8
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [ebp - 0x220]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x462830
push str.OuttrayVal
lea ecx, [ebp - 0x420]
push ecx
call fcn.00401f10
add esp, 8
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x70
push edx
mov eax, dword [ebp - 8]
push eax
push 3
push 0
lea ecx, [ebp - 0x420]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4627de
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
push ecx
call fcn.0044a992
add esp, 4
mov eax, 8
jmp 0x46285b
push str.OuttrayNum
lea edx, [ebp - 0x420]
push edx
call fcn.00401f10
add esp, 8
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
lea ecx, [ebp - 0x420]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x46282e
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
push ecx
call fcn.0044a992
add esp, 4
mov eax, 8
jmp 0x46285b
jmp 0x462843
mov edx, dword [ebp - 8]
push edx
call fcn.0044a992
add esp, 4
mov eax, 8
jmp 0x46285b
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
push ecx
call fcn.0044a992
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00448dba
mov esp, ebp
pop ebp
ret
Function at 0x462870
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x492e64]
xor eax, ebp
mov dword [ebp - 0x18], eax
push 0xb0
mov eax, dword [ebp + 0xc]
push eax
call fcn.0044ad78
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4628a7
mov eax, 8
jmp 0x462a4c
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0xb0
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.0044a680
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 8], 0
jmp 0x4628da
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0xc]
jge 0x462930
cmp dword [ebp - 0x21c], 0
jne 0x4628ed
jmp 0x462930
mov eax, dword [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x21c]
push ecx
call fcn.0044aa80
add esp, 4
add eax, 1
push eax
mov edx, dword [ebp - 8]
imul edx, edx, 0xb0
add edx, dword [ebp - 4]
push edx
call fcn.0044af58
add esp, 0xc
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax + 0xb0]
mov dword [ebp - 0x21c], ecx
jmp 0x4628d1
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x218]
push eax
call fcn.00401f10
add esp, 8
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [ebp - 0x218]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x462a21
push str.IntrayVal
lea ecx, [ebp - 0x420]
push ecx
call fcn.00401f10
add esp, 8
mov edx, dword [ebp + 0xc]
imul edx, edx, 0xb0
push edx
mov eax, dword [ebp - 4]
push eax
push 3
push 0
lea ecx, [ebp - 0x420]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4629cf
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
push ecx
call fcn.0044a992
add esp, 4
mov eax, 8
jmp 0x462a4c
push str.IntrayNum
lea edx, [ebp - 0x420]
push edx
call fcn.00401f10
add esp, 8
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
lea ecx, [ebp - 0x420]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x462a1f
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
push ecx
call fcn.0044a992
add esp, 4
mov eax, 8
jmp 0x462a4c
jmp 0x462a34
mov edx, dword [ebp - 4]
push edx
call fcn.0044a992
add esp, 4
mov eax, 8
jmp 0x462a4c
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
push ecx
call fcn.0044a992
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00448dba
mov esp, ebp
pop ebp
ret
Function at 0x4633c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x492e64]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.00401f10
add esp, 8
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
lea ecx, [ebp - 0x210]
push ecx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x46348c
push str.KACT_Version
lea edx, [ebp - 0x418]
push edx
call fcn.00401f10
add esp, 8
push 0x22
push str.Version_4.3.4217
push 1
push 0
lea eax, [ebp - 0x418]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x486e90
lea edx, [ebp - 0x418]
push edx
call fcn.00401f10
add esp, 8
mov dword [ebp - 0x214], 0xff
push 4
lea eax, [ebp - 0x214]
push eax
push 4
push 0
lea ecx, [ebp - 0x418]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00448dba
mov esp, ebp
pop ebp
ret

Function at 0x4634a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x492e64]
xor eax, ebp
mov dword [ebp - 0xc], eax
push 0x486e08
lea eax, [ebp - 0x410]
push eax
call fcn.00401f10
add esp, 8
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [ebp - 0x410]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4634f9
xor eax, eax
jmp 0x46359b
push str.InstallPath2
lea ecx, [ebp - 0x410]
push ecx
call fcn.00401f10
add esp, 8
push 0x200
lea edx, [ebp - 0x210]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
lea eax, [ebp - 0x210]
push eax
call fcn.00402010
add esp, 8
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0
je 0x46354c
mov ecx, dword [ebp - 0x414]
mov word [ecx], 0
lea edx, [ebp - 0x210]
push edx
call fcn.00448e9e
add esp, 4
shl eax, 1
push eax
lea eax, [ebp - 0x210]
push eax
push 1
push 0
lea ecx, [ebp - 0x410]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x46358c
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x46359b
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00448dba
mov esp, ebp
pop ebp
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x10001130
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
push 1
mov eax, 0x1000620d
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, 0x1000621c
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.10001348
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x10001172
push ebx
call fcn.1000363c
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10001182
push ebx
call fcn.1000363c
add esp, 4
lea eax, [ebp - 0x10]
push eax
mov eax, 0x10006239
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.1000186f
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x100011aa
push ebx
call fcn.1000363c
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x100011ba
push ebx
call fcn.1000363c
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x100011ce
push ebx
call fcn.1000363c
add esp, 4
pop eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.100023c1
mov dword [0x100e5c42], eax
push 0x80000301
push 0
push 0x2000
push 0x80000301
push 0
push 0x1000
push 2
mov ebx, 0xc8
call fcn.10003a20
add esp, 0x1c
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0x40
push dword [ebp - 8]
push dword [0x100e5c42]
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10001249
push 0x25c
push 0x40130f5
push 6
call fcn.10003648
add esp, 0xc
mov dword [0x100e5c46], eax
cmp dword [0x100e5c46], 0
jne 0x10001260
jmp 0x100012c9
lea eax, [ebp - 4]
push eax
call fcn.100023e5
mov dword [ebp - 8], eax
push dword [0x100e5c42]
push dword [ebp - 8]
push dword [0x100e5c46]
call fcn.1000240a
push dword [0x100e5c46]
call fcn.10002424
mov dword [0x100e5c42], eax
mov dword [ebp - 8], esp
push 0x8000
push 0
push dword [0x100e5c46]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
nop
nop
cmp dword [ebp - 8], esp
je 0x100012c9
push 0x347
push 0x40130f5
push 6
call fcn.10003648
add esp, 0xc
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x100012d9
push ebx
call fcn.1000363c
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x10002424
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov eax, 0x100e5290
test eax, eax
je 0x10002465
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.10003642
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10002476
push ebx
call fcn.1000363c
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000005
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x1000248d
mov eax, 0x100e5241
push eax
push 1
mov ebx, 0x194
call fcn.10003a40
add esp, 0x10
mov dword [ebp - 8], eax
push 0x80000301
push 0
push 0x2000
push 0x80000301
push 0
push 0x1000
push 2
mov ebx, 0xc8
call fcn.10003a20
add esp, 0x1c
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push 0x40
push dword [ebp - 0x14]
push dword [ebp - 8]
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x10002509
push 0x18f
push 0x401002e
push 6
call fcn.10003648
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10002520
mov eax, 0
jmp 0x10002586
lea eax, [ebp - 4]
push eax
call fcn.100023e5
mov dword [ebp - 0x14], eax
push dword [ebp - 8]
push dword [ebp - 0x14]
push dword [ebp - 0xc]
call fcn.1000240a
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.1000259e
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push 0x8000
push 0
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x1000257e
push 0x2e1
push 0x401002e
push 6
call fcn.10003648
add esp, 0xc
mov eax, dword [ebp - 0x10]
jmp 0x10002586
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10002597
push ebx
call fcn.1000363c
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x10004080
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x1000409e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x10004093
pop esi
ret
Function at 0x4a504cb0
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4a5065d0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push esi
push edi
push ebx
push ebp
sub esp, 0x30
mov edi, dword [0x4a5eb773]
mov eax, dword fs:[0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
mov edx, dword [ebx]
cmp edx, ebx
je 0x4a50663c
xor ebp, ebp
mov esi, dword [edx + 0x30]
mov ecx, ebp
movzx eax, word [esi]
test eax, eax
je 0x4a50662e
mov dword [esp + 4], ebx
mov eax, ebp
mov dword [esp], edi
movzx edi, word [esi + eax*2]
cmp edi, 0x41
jl 0x4a506619
cmp edi, 0x5a
lea ebx, [edi + 0x20]
jg 0x4a506619
mov edi, ebx
inc eax
invalid
invalid

Function at 0x4a507288
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a5ee054], 0
je 0x4a5072ef
cmp word [0x4a5ee340], 0xd7b2
jne 0x4a5072b1
cmp dword [0x4a5ee348], 0
jbe 0x4a5072b1
mov eax, 0x4a5ee33c
call dword [0x4a5ee358]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x4a50731c
call fcn.4a507f78
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a5e4032], 0
jne 0x4a50730b
push 0
push 0x4a5e49c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret
Function at 0x402fac
Capabilities:
Query or enumerate registry value

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

Function at 0x403d50
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x470048], 0
je 0x403db1
cmp word [0x47021c], 0xd7b2
jne 0x403d79
cmp dword [0x470224], 0
jbe 0x403d79
mov eax, 0x470218
call dword [0x470234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46e06c
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 0x403dd8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46e030], 0
jne 0x403dcd
push 0
push 0x46e064
push 0x46e06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403f04
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.004026dc
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x470049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403ecc
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405d08
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 0x405d6e
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.004041c0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b64
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405d58
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d75
lea eax, [ebp - 0x10]
call fcn.00403f50
ret

Function at 0x40ae50
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 0x40ae89
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404040
jmp 0x40ae92
mov eax, ebx
mov edx, esi
call fcn.00403fa4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40be5c
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 0x40bf32
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403fe8
lea eax, [ebp - 8]
call fcn.00404460
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404410
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bf1c
mov eax, ebx
call fcn.004026dc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bf15
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.00404410
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40beff
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bf44
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40beff
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 0x40bf1c
mov eax, dword [ebp - 0x10]
call fcn.004026fc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bf39
lea eax, [ebp - 8]
call fcn.00403f50
ret
Function at 0x40c444
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 0x40c4a8
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.004041c0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004081a4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c4af
lea eax, [ebp - 0xc]
call fcn.00403f50
ret

Function at 0x421f14
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x470888
cmp dword [edi], 0
jne 0x421f90
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x470884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x46e494
mov ecx, 2
call fcn.004028d8
mov edx, 0x421eec
lea eax, [esi + 5]
call fcn.00421f0c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00421f0c
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 0x421f65
mov dword [0x470884], 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 0x423514
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 0x42351a
ret

Function at 0x425aa0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x425af1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x425ad8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x425ac8
jmp 0x425af1
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x425ad9
pop ebx
mov esp, ebp
pop ebp
ret