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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4e04c4]
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.004a9330
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.004a9330
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 0x4b44bb
cmp word [ecx], dx
je 0x4b44bb
mov eax, dword [0x4ca554]
push edi
dec eax
push eax
push 0x4ca440
call fcn.004b43e3
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4b452e
cmp word [eax], dx
je 0x4b452e
mov eax, dword [edi]
test eax, eax
je 0x4b44df
cmp word [eax], dx
je 0x4b44df
lea eax, [ebp - 0x10]
push eax
call fcn.004b3dc6
jmp 0x4b44e8
lea eax, [ebp - 0x10]
push eax
call fcn.004b3e61
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4b4558
mov eax, dword [0x4ca43c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4ca130
call fcn.004b43e3
add esp, 0xc
test al, al
je 0x4b4558
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4b4523
cmp word [eax], di
je 0x4b4523
lea eax, [ebp - 0x10]
push eax
call fcn.004b3dc6
pop ecx
jmp 0x4b455a
lea eax, [ebp - 0x10]
push eax
call fcn.004b3e61
jmp 0x4b4520
mov eax, dword [edi]
test eax, eax
je 0x4b4545
cmp word [eax], dx
je 0x4b4545
lea eax, [ebp - 0x10]
push eax
call fcn.004b3d7b
pop ecx
jmp 0x4b4558
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 0x4b4623
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004b4268
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4b4623
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4b4623
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4b4623
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4b45b0
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004ac4f4
test ebx, ebx
je 0x4b461e
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004ac4f4
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4b4623
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 0x4b4623
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004b8974
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4b4625
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004968dc
leave
ret
Function at 0x4b8f95
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.004b8f11
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4b9104
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4b9104
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4b90b9
jg 0x4b8ff1
test eax, eax
je 0x4b90af
push 1
push 0x1000
call fcn.004aab3a
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4b9014
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4b90a6
push 0x8000
push ebx
call fcn.004a6eed
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4b903d
jg 0x4b9038
cmp ecx, 0x1000
jb 0x4b903d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004aa91e
add esp, 0x10
cmp eax, 0xffffffff
je 0x4b9082
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 0x4b9038
jl 0x4b9069
test ecx, ecx
jne 0x4b902a
push dword [ebp - 0xc]
push ebx
call fcn.004a6eed
push esi
call fcn.004a980b
add esp, 0xc
xor ebx, ebx
jmp 0x4b9112
cmp byte [edi + 0x24], 0
je 0x4b9099
cmp dword [edi + 0x20], 5
jne 0x4b9099
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4b90a4
mov ebx, dword [edi + 0x18]
jmp 0x4b90a6
xor ebx, ebx
push esi
call fcn.004a980b
pop ecx
jmp 0x4b9112
test ecx, ecx
jg 0x4b907b
jl 0x4b90b9
test eax, eax
jae 0x4b907b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004aaddd
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4b90d9
cmp byte [edi + 0x1c], 0
je 0x4b907b
jmp 0x4b910a
push ebx
call fcn.004b233f
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4b907b
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 0x4b9112
cmp byte [edi + 0x1c], 0
je 0x4b910f
mov ebx, dword [edi + 0x18]
jmp 0x4b9112
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004aaddd
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404548
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.0040682c
test esi, esi
jne 0x404580
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.00406968
jmp 0x40459e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040448c
mov edi, eax
test esi, esi
je 0x40459e
cmp dword [ebx], 0
je 0x40459e
dec esi
jmp 0x404587
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405df0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ad050], 0
je 0x405e51
cmp word [0x4ad32c], 0xd7b2
jne 0x405e19
cmp dword [0x4ad334], 0
jbe 0x405e19
mov eax, 0x4ad328
call dword [0x4ad344]
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 0x405e7c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4aa030], 0
jne 0x405e6d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405fdc
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 [0x4aa034], 0
je 0x406002
mov edx, esi
mov eax, ebx
call dword [0x4aa034]
jmp 0x406011
mov eax, 8
call fcn.004041d4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4ad051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405fa4
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 0x4085c8
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 0x40872f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0040682c
cmp si, word [0x4aa7d0]
jb 0x408662
cmp si, word [0x4aa9d0]
ja 0x408662
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408662
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4aa7d0]
jae 0x40863c
mov edi, ebx
dec edi
jmp 0x40865d
cmp si, word [ebx*8 + 0x4aa7d0]
jbe 0x40864c
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x40865d
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4aa7d4]
call fcn.004084d8
jmp 0x408662
cmp edi, dword [ebp - 0xc]
jae 0x408626
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408711
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408711
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.00406a14
push dword [ebp - 0x164]
push 0x40874c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406a14
push dword [ebp - 0x168]
push 0x40875c
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406a14
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406dcc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408736
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406824
ret
Function at 0x408760
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 0x408946
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4afb58
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x4afb70]
cmp ax, word [ebp - 2]
jne 0x4087b8
mov eax, dword [ebp - 6]
mov edx, 0x4afb74
mov ecx, 0x55
call fcn.00406a14
push 0x4afb58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408930
push 0x4afb58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.0040682c
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4088f8
cmp byte [0x4afb54], 0
je 0x4088ae
call dword [0x4afb4c]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x4afb50]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x4088a7
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 [0x4afb48]
test al, al
je 0x408880
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.004041d4
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 [0x4afb48]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x408875
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x408871
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x40885e
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.004069d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4088f8
movzx eax, word [ebp - 0x16]
push eax
call dword [0x4afb50]
cmp dword [ebp - 0x10], 0
je 0x4088a6
mov eax, dword [ebp - 0x10]
call fcn.004041f0
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.004085c8
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x4088f8
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x4088dd
mov eax, dword [ebp - 6]
mov edx, 0x408960
call fcn.00406c28
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.004085c8
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.00406c28
mov eax, dword [ebp - 6]
push 0x4afb58
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x4afb70], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.004068b8
push eax
push 0x4afb74
call sub.kernel32.dll_lstrcpynW
push 0x4afb58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40894d
lea eax, [ebp - 0x1c]
call fcn.0040681c
ret
Function at 0x408b84
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.00406814
xor eax, eax
push ebp
push 0x408d69
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408bc4
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408bde
push 0x105
mov eax, dword [ebp - 4]
call fcn.004068b8
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x408d53
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408d78
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408c6d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408d78
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408c6d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408dac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408c6d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408de0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x408d53
xor eax, eax
push ebp
push 0x408d4c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408988
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 0x408cdc
mov eax, dword [ebp - 0x10]
call fcn.004041d4
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.004069d8
jmp 0x408d27
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x408e20
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408d27
mov eax, dword [ebp - 0x10]
call fcn.004041d4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x408e20
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004069d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408d53
cmp dword [ebp - 8], 0
je 0x408d42
mov eax, dword [ebp - 8]
call fcn.004041f0
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 0x408d70
lea eax, [ebp - 4]
call fcn.0040681c
ret
Function at 0x409034
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.00406814
mov eax, dword [ebp - 0x21c]
call fcn.00406814
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x4091d3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.0040682c
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.004068b8
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 0x4090d4
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x4090e6
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x4090d1
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x40919f
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 0x40910f
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.00408b84
cmp dword [ebp - 0x220], 0
je 0x409147
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00408f28
pop ecx
mov ebx, eax
jmp 0x40919f
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408760
mov eax, dword [ebp - 0x224]
call fcn.00408f28
pop ecx
mov ebx, eax
test bl, bl
jne 0x409192
cmp byte [0x4afb54], 0
jne 0x409192
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408760
mov eax, dword [ebp - 0x228]
call fcn.00408f28
pop ecx
mov ebx, eax
test bl, bl
jne 0x40919f
push ebp
call fcn.00408fd8
pop ecx
mov ebx, eax
test bl, bl
je 0x4091b5
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406a14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4091da
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406824
ret

Function at 0x40994c
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 0x40c7f8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4afc4c
push 0xa
push 0x40c88c
mov eax, dword [0x4afc3c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40c81c
call fcn.0041723c
push ebx
mov eax, dword [0x4afc3c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40c833
call fcn.0041723c
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40c845
call fcn.0041723c
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4afc50], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4afc54], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4afc58], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4afc5c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4afc60], ecx
add edx, dword [eax + 0x14]
mov dword [0x4afc64], edx
pop esi
pop ebx
ret

Function at 0x41013c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4101e5
test eax, edx
je 0x4101e8
push 0
push 0
cmp word [eax - 0xa], 2
je 0x410165
push edx
mov edx, eax
mov eax, esp
call fcn.00406a30
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x41017b
push eax
lea eax, [esp + 8]
call fcn.00406a30
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41018a
movzx eax, word [eax]
sub eax, ecx
jmp 0x4101b1
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 0x4101cb
add ecx, 4
js 0x4101a2
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x4101c8
push eax
mov eax, ecx
mov edx, 2
call fcn.0040607c
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4101af
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4101b1
xor eax, eax
ret
test eax, eax
je 0x4101f8
test edx, edx
jne 0x41014c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x411278
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.004068b8
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x41129a
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x41470c
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 0x414745
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406968
jmp 0x41474e
mov eax, ebx
mov edx, esi
call fcn.0040682c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x414758
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 0x41477a
movzx eax, word [esp]
jmp 0x41477c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x414f0c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x415031
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00414d1c
mov esi, eax
mov eax, dword [0x4ac1ac]
cmp byte [eax], 0
je 0x414fd9
mov eax, dword [0x4abf74]
call fcn.0040467c
call fcn.0040433c
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x414ee4]
call fcn.00407ff0
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x41504c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x415015
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4abf10]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4afc3c]
call fcn.004080e4
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415038
lea eax, [ebp - 4]
mov edx, dword [0x414ee4]
call fcn.00407ffc
ret