joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b55d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x447c0c]
jne 0x40b567
repz ret
jmp fcn.0040d805

Function at 0x40c6f3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x447c0c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040997d
and dword [ebp - 0x14], 0
cmp dword [0x448910], 0
mov dword [ebp - 0x18], eax
jne 0x40c7a6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40c84e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40c84e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x448910], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x448914], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x448918], eax
call edi
push eax
call esi
mov dword [0x448920], eax
test eax, eax
je 0x40c7a6
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x44891c], eax
mov eax, dword [0x44891c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40c7ff
cmp dword [0x448920], ecx
je 0x40c7ff
push eax
call esi
push dword [0x448920]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40c7ff
test ebx, ebx
je 0x40c7ff
call edi
test eax, eax
je 0x40c7f6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40c7f6
test byte [ebp - 8], 1
jne 0x40c7ff
or dword [ebp + 0x10], 0x200000
jmp 0x40c832
mov eax, dword [0x448914]
cmp eax, dword [ebp - 0x18]
je 0x40c832
push eax
call esi
test eax, eax
je 0x40c832
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40c832
mov eax, dword [0x448918]
cmp eax, dword [ebp - 0x18]
je 0x40c832
push eax
call esi
test eax, eax
je 0x40c832
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x448910]
call esi
test eax, eax
je 0x40c84e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40c850
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b55d
leave
ret
Function at 0x44e848
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.0044e9df
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x44e9b7
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x44e9b7
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x44e96c
jg 0x44e8a4
test eax, eax
je 0x44e962
push 1
push 0x1000
call fcn.0044421e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x44e8c7
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x44e959
push 0x8000
push ebx
call fcn.00440034
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x44e8f0
jg 0x44e8eb
cmp ecx, 0x1000
jb 0x44e8f0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00449695
add esp, 0x10
cmp eax, 0xffffffff
je 0x44e935
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 0x44e8eb
jl 0x44e91c
test ecx, ecx
jne 0x44e8dd
push dword [ebp - 0xc]
push ebx
call fcn.00440034
push esi
call fcn.004439bb
add esp, 0xc
xor ebx, ebx
jmp 0x44e9c5
cmp byte [edi + 0x24], 0
je 0x44e94c
cmp dword [edi + 0x20], 5
jne 0x44e94c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x44e957
mov ebx, dword [edi + 0x18]
jmp 0x44e959
xor ebx, ebx
push esi
call fcn.004439bb
pop ecx
jmp 0x44e9c5
test ecx, ecx
jg 0x44e92e
jl 0x44e96c
test eax, eax
jae 0x44e92e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00448c3e
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x44e98c
cmp byte [edi + 0x1c], 0
je 0x44e92e
jmp 0x44e9bd
push ebx
call fcn.0044730c
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x44e92e
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 0x44e9c5
cmp byte [edi + 0x1c], 0
je 0x44e9c2
mov ebx, dword [edi + 0x18]
jmp 0x44e9c5
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00448c3e
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x431006
Capabilities:
Encode data using xor

Disassembly:
call 0x43100c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x4045bc
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.00406d94
test esi, esi
jne 0x4045f4
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.00406ed0
jmp 0x404612
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004044a0
mov edi, eax
test esi, esi
je 0x404612
cmp dword [ebx], 0
je 0x404612
dec esi
jmp 0x4045fb
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4054dc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00405790
mov byte [esp], al
cmp byte [esp], 0
jne 0x405665
test edi, edi
je 0x405665
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40559c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405577
cmp edi, 0xffffffff
je 0x40553b
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40553b
mov byte [esp], 0
jmp 0x405665
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405577
test ebx, ebx
jne 0x405570
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.0040244c
test eax, eax
jne 0x405570
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405665
pause
dec ebp
test ebp, ebp
jg 0x405520
cmp edi, 0xffffffff
je 0x40559c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40559a
mov byte [esp], 0
jmp 0x405665
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4054ea
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.0040244c
cmp ebx, eax
jne 0x40559c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004056d8
mov edx, eax
mov ebx, dword [0x4578cc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405603
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405601
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405603
xor edi, edi
cmp byte [esp], 0
je 0x40562c
mov ebx, dword [esi]
test bl, 1
jne 0x405645
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.0040244c
cmp ebx, eax
jne 0x405609
mov byte [esp + 1], 1
jmp 0x405645
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.0040244c
cmp ebx, eax
jne 0x40562c
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4055b6
cmp byte [esp], 0
je 0x405665
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40620c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x457054], 0
je 0x40626d
cmp word [0x457330], 0xd7b2
jne 0x406235
cmp dword [0x457338], 0
jbe 0x406235
mov eax, 0x45732c
call dword [0x457348]
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 0x406298
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x453030], 0
jne 0x406289
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x408b80
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 0x408ce7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406d94
cmp si, word [0x4537c4]
jb 0x408c1a
cmp si, word [0x4539c4]
ja 0x408c1a
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408c1a
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4537c4]
jae 0x408bf4
mov edi, ebx
dec edi
jmp 0x408c15
cmp si, word [ebx*8 + 0x4537c4]
jbe 0x408c04
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408c15
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4537c8]
call fcn.00408a90
jmp 0x408c1a
cmp edi, dword [ebp - 0xc]
jae 0x408bde
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408cc9
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408cc9
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.00406f7c
push dword [ebp - 0x164]
push 0x408d04
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406f7c
push dword [ebp - 0x168]
push 0x408d14
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406f7c
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407328
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408cee
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406d8c
ret
Function at 0x408d18
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 0x408efe
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x459b5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x459b74]
cmp ax, word [ebp - 2]
jne 0x408d70
mov eax, dword [ebp - 6]
mov edx, 0x459b78
mov ecx, 0x55
call fcn.00406f7c
push 0x459b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408ee8
push 0x459b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.00406d94
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408eb0
cmp byte [0x459b58], 0
je 0x408e66
call dword [0x459b50]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x459b54]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x408e5f
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 [0x459b4c]
test al, al
je 0x408e38
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.00404208
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 [0x459b4c]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x408e2d
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x408e29
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x408e16
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.00406f40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408eb0
movzx eax, word [ebp - 0x16]
push eax
call dword [0x459b54]
cmp dword [ebp - 0x10], 0
je 0x408e5e
mov eax, dword [ebp - 0x10]
call fcn.00404224
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.00408b80
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x408eb0
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x408e95
mov eax, dword [ebp - 6]
mov edx, 0x408f18
call fcn.00407184
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.00408b80
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.00407184
mov eax, dword [ebp - 6]
push 0x459b5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x459b74], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.00406e20
push eax
push 0x459b78
call sub.kernel32.dll_lstrcpynW
push 0x459b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408f05
lea eax, [ebp - 0x1c]
call fcn.00406d84
ret
Function at 0x40913c
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.00406d7c
xor eax, eax
push ebp
push 0x409321
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40917c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409196
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406e20
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40930b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409330
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409225
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409330
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409225
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409364
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409225
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409398
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40930b
xor eax, eax
push ebp
push 0x409304
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408f40
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 0x409294
mov eax, dword [ebp - 0x10]
call fcn.00404208
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.00406f40
jmp 0x4092df
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4093d8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4092df
mov eax, dword [ebp - 0x10]
call fcn.00404208
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4093d8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406f40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40930b
cmp dword [ebp - 8], 0
je 0x4092fa
mov eax, dword [ebp - 8]
call fcn.00404224
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 0x409328
lea eax, [ebp - 4]
call fcn.00406d84
ret
Function at 0x4095ec
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.00406d7c
mov eax, dword [ebp - 0x21c]
call fcn.00406d7c
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x40978b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406d94
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406e20
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 0x40968c
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x40969e
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409689
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409757
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 0x4096c7
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.0040913c
cmp dword [ebp - 0x220], 0
je 0x4096ff
push ebp
mov eax, dword [ebp - 0x220]
call fcn.004094e0
pop ecx
mov ebx, eax
jmp 0x409757
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408d18
mov eax, dword [ebp - 0x224]
call fcn.004094e0
pop ecx
mov ebx, eax
test bl, bl
jne 0x40974a
cmp byte [0x459b58], 0
jne 0x40974a
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408d18
mov eax, dword [ebp - 0x228]
call fcn.004094e0
pop ecx
mov ebx, eax
test bl, bl
jne 0x409757
push ebp
call fcn.00409590
pop ecx
mov ebx, eax
test bl, bl
je 0x40976d
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406f7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409792
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406d8c
ret

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

Disassembly:
push ebx
push esi
mov esi, 0x459c50
push 0xa
push 0x40b0f0
mov eax, dword [0x459c40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40b080
call fcn.00415958
push ebx
mov eax, dword [0x459c40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40b097
call fcn.00415958
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40b0a9
call fcn.00415958
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x459c54], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x459c58], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x459c5c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x459c60], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x459c64], ecx
add edx, dword [eax + 0x14]
mov dword [0x459c68], edx
pop esi
pop ebx
ret

Function at 0x40e998
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40ea41
test eax, edx
je 0x40ea44
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40e9c1
push edx
mov edx, eax
mov eax, esp
call fcn.00406f98
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40e9d7
push eax
lea eax, [esp + 8]
call fcn.00406f98
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40e9e6
movzx eax, word [eax]
sub eax, ecx
jmp 0x40ea0d
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 0x40ea27
add ecx, 4
js 0x40e9fe
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40ea24
push eax
mov eax, ecx
mov edx, 2
call fcn.004063e4
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40ea0b
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40ea0d
xor eax, eax
ret
test eax, eax
je 0x40ea54
test edx, edx
jne 0x40e9a8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x412f28
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 0x412f61
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406ed0
jmp 0x412f6a
mov eax, ebx
mov edx, esi
call fcn.00406d94
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x412f74
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 0x412f96
movzx eax, word [esp]
jmp 0x412f98
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret