joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4eaf20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x543758
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x59e554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4eb04b
cmp byte [ebx + 0x3d], 0
je 0x4eb04b
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4eaf74
xor al, al
jmp 0x4eb04d
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0047ca20
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
nop
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x28]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4eafe3
sub eax, 1
je 0x4eafe7
sub eax, 2
je 0x4eb03d
lea ecx, [ebp - 0x28]
xor bl, bl
call fcn.00418a10
mov al, bl
jmp 0x4eb04d
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x4eb01f
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.00528e5a
add esp, 0x10
cmp esi, eax
jne 0x4eafd5
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp byte [ebx + 0x3d], 0
je 0x4eb03d
test esi, esi
jne 0x4eafa0
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.004eb3a0
jmp 0x4eaf99
lea ecx, [ebp - 0x28]
mov bl, 1
call fcn.00418a10
mov al, bl
jmp 0x4eb04d
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004106a0
mov esp, ebp
pop ebp
ret
Function at 0x512cd0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54746c
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x59e554]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0x574040
xor eax, eax
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov byte [edi + 0x14], 1
mov dword [edi + 0x18], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 7
mov dword [ebp - 4], 0
mov word [edi + 0x1c], ax
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], 7
mov word [edi + 0x34], ax
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], 7
mov word [edi + 0x4c], ax
mov dword [edi + 0x74], eax
mov dword [edi + 0x78], 0xf
mov byte [edi + 0x64], al
mov dword [edi + 0x8c], eax
mov dword [edi + 0x90], 0xf
mov byte [edi + 0x7c], al
mov dword [edi + 0xa4], eax
mov dword [edi + 0xa8], 0xf
mov byte [edi + 0x94], al
push 0x573fb8
mov byte [ebp - 4], 6
mov dword [edi + 0xac], eax
mov dword [edi + 0xb0], eax
mov dword [edi + 0xb4], eax
mov dword [edi + 0xb8], eax
mov dword [edi + 0xbc], eax
mov dword [edi + 0xc0], eax
mov dword [edi + 0xc4], eax
mov dword [edi + 0xc8], eax
mov dword [edi + 0xcc], eax
mov dword [edi + 0xd0], eax
mov dword [edi + 0xd4], eax
mov dword [edi + 0xd8], eax
mov dword [edi + 0xdc], eax
mov dword [edi + 0xe0], eax
call fcn.00445620
add esp, 4
mov dword [edi + 0xe0], eax
test eax, eax
je 0x512eb8
push 8
call fcn.00414e69
mov ebx, eax
add esp, 4
mov dword [ebp - 0x14], ebx
mov esi, dword [0x5482f8]
mov byte [ebp - 4], 7
test ebx, ebx
je 0x512e5b
xorps xmm0, xmm0
push 0x574008
movq qword [ebx], xmm0
push dword [edi + 0xe0]
call esi
push 0x574050
push dword [edi + 0xe0]
mov esi, eax
call dword [0x5482f8]
mov dword [ebx + 4], esi
mov esi, dword [0x5482f8]
mov dword [ebx], eax
jmp 0x512e5d
xor ebx, ebx
push 0x574064
push dword [edi + 0xe0]
mov byte [ebp - 4], 6
mov dword [edi + 0xac], ebx
call esi
push 0x574074
push dword [edi + 0xe0]
mov dword [edi + 4], eax
call esi
mov ecx, dword [edi + 4]
mov dword [edi + 8], eax
test ecx, ecx
je 0x512eb8
test eax, eax
je 0x512eb8
push 0
call ecx
test eax, eax
mov eax, edi
js 0x512ec4
mov dword [edi + 0xb8], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
mov dword [edi + 0xb8], 3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x531b11
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005317c6

Function at 0x531b1c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00531949
Function at 0x53bae0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ecx + 4]
push ebx
push esi
push edi
mov ebx, dword [eax + 0x3c]
xor esi, esi
add ebx, eax
mov dword [ebp - 4], eax
xor edi, edi
movzx ecx, word [ebx + 6]
cmp esi, ecx
jae 0x53bb39
movzx eax, word [ebx + 0x14]
lea edx, [ebx + 0x18]
add eax, edi
add edx, eax
je 0x53bb39
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 4]
add ecx, eax
neg eax
sbb eax, eax
and eax, ecx
cmp eax, dword [ebp + 8]
ja 0x53bb28
mov ecx, dword [edx + 8]
add ecx, eax
cmp ecx, dword [ebp + 8]
ja 0x53bb2e
inc esi
add edi, 0x28
jmp 0x53baf6
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4bbce0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.004bba86
mov ch, 0x13
insb byte es:[edi], dx
lea eax, ss:[ebp - 0x58]
push eax
call fcn.004bba96
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.004bba4b
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x4bbd74
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
ror byte [eax + 0x45c6c15d], 0xc2
in al, dx

Function at 0x4bbed0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
fistp word [ecx - 0x3a]
inc ebp
loopne 0x4bbf21
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.004bba96
push eax
push esi
push dword [ebp + 8]
call fcn.004bba4b
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.004bba86
xchg esi, eax
xor dword [edi + 0x7c9d888a], ebx
invalid
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.004bba86
sahf
rcl dword ss:[eax], 0x8d
test dword [edi + edi*8 - 1], edi
call dword [eax - 0x18]
sbb al, 0xfb
invalid
Function at 0x4bc0e0
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax + 4], ebx
jne 0x4bc02b
cmp dword [eax + 0xc], ebx
je 0x4bc0ce
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.004bba86
lea edi, [ebx + 0x1c]
fdivr dword [ecx]
pop ebp
or al, 0x75
adc dl, byte [edi - 1]
xchg ebp, eax
dec eax
invalid
mov eax, dword [eax]
cmp eax, ebx
lea edi, [ecx + esi]
jne 0x4bc06e
mov dword [ebp + 0x10], edi
jmp 0x4bc073
add eax, esi
mov dword [ebp + 0x10], eax
call fcn.004bba86
push 0x8bd127d5
inc ebp
adc byte [ebx + 0x74c33b00], cl
aaa
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x4bc0bc
test eax, 0x80000000
lea ecx, [eax + esi]
je 0x4bc097
and eax, 0xffff
push eax
jmp 0x4bc09b
add ecx, 2
push ecx
push dword [ebp + 0xc]
jne 0x4bc0aa
push dword [ebp + 8]
call fcn.004bba4b
add esp, 0xc
cmp edi, ebx
sti
mov dword [edi], eax
je 0x4bc275
add edi, 4
add dword [ebp + 0x10], 4
jmp 0x4bc07c
add dword [ebp - 0x44], 0x14
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x44]
jmp 0x4bc01d
call fcn.004bba86
ja 0x4bc09c
int 0x71
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x4bc13a
pop ecx
add eax, esi
cmp dword [eax], ebx
je 0x4bc13a
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x4bc135
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x4bc11f
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x4bc127
cmp edx, ebx
jne 0x4bc275
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x4bc0f6
add eax, dword [eax + 4]
jmp 0x4bc0e3
mov dword [ebp + 0xc], ebx
jmp 0x4bc145
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4bc15d
invalid
xchg ebp, eax
Function at 0x40455c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.004069f4
test esi, esi
jne 0x404594
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406b30
jmp 0x4045b2
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004044a0
mov edi, eax
test esi, esi
je 0x4045b2
cmp dword [ebx], 0
je 0x4045b2
dec esi
jmp 0x40459b
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405e50
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x510050], 0
je 0x405eb1
cmp word [0x51032c], 0xd7b2
jne 0x405e79
cmp dword [0x510334], 0
jbe 0x405e79
mov eax, 0x510328
call dword [0x510344]
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
push 0x405edc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x509034], 0
jne 0x405ecd
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40603c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x509038], 0
je 0x406062
mov edx, esi
mov eax, ebx
call dword [0x509038]
jmp 0x406071
mov eax, 8
call fcn.004041e8
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x510051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406004
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4088c4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408a2b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.004069f4
cmp si, word [0x5097d4]
jb 0x40895e
cmp si, word [0x5099d4]
ja 0x40895e
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x40895e
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5097d4]
jae 0x408938
mov edi, ebx
dec edi
jmp 0x408959
cmp si, word [ebx*8 + 0x5097d4]
jbe 0x408948
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408959
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x5097d8]
call fcn.004087d4
jmp 0x40895e
cmp edi, dword [ebp - 0xc]
jae 0x408922
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408a0d
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408a0d
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406bf4
push dword [ebp - 0x164]
push 0x408a48
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406bf4
push dword [ebp - 0x168]
push 0x408a58
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406bf4
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406fac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408a32
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.004069ec
ret
Function at 0x408a5c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 6], edx
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x408c42
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x512b58
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x512b70]
cmp ax, word [ebp - 2]
jne 0x408ab4
mov eax, dword [ebp - 6]
mov edx, 0x512b74
mov ecx, 0x55
call fcn.00406bf4
push 0x512b58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408c2c
push 0x512b58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.004069f4
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408bf4
cmp byte [0x512b54], 0
je 0x408baa
call dword [0x512b4c]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x512b50]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x408ba3
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x512b48]
test al, al
je 0x408b7c
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.004041e8
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x512b48]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x408b71
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x408b6d
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x408b5a
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.00406ba0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408bf4
movzx eax, word [ebp - 0x16]
push eax
call dword [0x512b50]
cmp dword [ebp - 0x10], 0
je 0x408ba2
mov eax, dword [ebp - 0x10]
call fcn.00404204
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.004088c4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x408bf4
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x408bd9
mov eax, dword [ebp - 6]
mov edx, 0x408c5c
call fcn.00406e08
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.004088c4
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.00406e08
mov eax, dword [ebp - 6]
push 0x512b58
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x512b70], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.00406a80
push eax
push 0x512b74
call sub.kernel32.dll_lstrcpynW
push 0x512b58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408c49
lea eax, [ebp - 0x1c]
call fcn.004069e4
ret
Function at 0x408e80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004069dc
xor eax, eax
push ebp
push 0x409065
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408ec0
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408eda
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406a80
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40904f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409074
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408f69
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409074
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408f69
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4090a8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408f69
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4090dc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40904f
xor eax, eax
push ebp
push 0x409048
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408c84
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408fd8
mov eax, dword [ebp - 0x10]
call fcn.004041e8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406ba0
jmp 0x409023
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40911c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409023
mov eax, dword [ebp - 0x10]
call fcn.004041e8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40911c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406ba0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40904f
cmp dword [ebp - 8], 0
je 0x40903e
mov eax, dword [ebp - 8]
call fcn.00404204
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40906c
lea eax, [ebp - 4]
call fcn.004069e4
ret
Function at 0x409330
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.004069dc
mov eax, dword [ebp - 0x21c]
call fcn.004069dc
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x4094cf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.004069f4
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406a80
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x4093d0
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x4093e2
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x4093cd
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x40949b
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x40940b
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.00408e80
cmp dword [ebp - 0x220], 0
je 0x409443
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409224
pop ecx
mov ebx, eax
jmp 0x40949b
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408a5c
mov eax, dword [ebp - 0x224]
call fcn.00409224
pop ecx
mov ebx, eax
test bl, bl
jne 0x40948e
cmp byte [0x512b54], 0
jne 0x40948e
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408a5c
mov eax, dword [ebp - 0x228]
call fcn.00409224
pop ecx
mov ebx, eax
test bl, bl
jne 0x40949b
push ebp
call fcn.004092d4
pop ecx
mov ebx, eax
test bl, bl
je 0x4094b1
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406bf4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4094d6
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.004069ec
ret

Function at 0x409c48
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x40cfc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x512c58
push 0xa
push 0x40d054
mov eax, dword [0x512c3c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40cfe4
call fcn.00419310
push ebx
mov eax, dword [0x512c3c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40cffb
call fcn.00419310
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40d00d
call fcn.00419310
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x512c5c], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x512c60], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x512c64], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x512c68], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x512c6c], ecx
add edx, dword [eax + 0x14]
mov dword [0x512c70], edx
pop esi
pop ebx
ret

Function at 0x411b34
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x411bdd
test eax, edx
je 0x411be0
push 0
push 0
cmp word [eax - 0xa], 2
je 0x411b5d
push edx
mov edx, eax
mov eax, esp
call fcn.00406c10
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x411b73
push eax
lea eax, [esp + 8]
call fcn.00406c10
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x411b82
movzx eax, word [eax]
sub eax, ecx
jmp 0x411ba9
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x411bc3
add ecx, 4
js 0x411b9a
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x411bc0
push eax
mov eax, ecx
mov edx, 2
call fcn.004060dc
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x411ba7
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x411ba9
xor eax, eax
ret
test eax, eax
je 0x411bf0
test edx, edx
jne 0x411b44
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x416504
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x41653d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406b30
jmp 0x416546
mov eax, ebx
mov edx, esi
call fcn.004069f4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x416550
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x416572
movzx eax, word [esp]
jmp 0x416574
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret