joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d7890
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4d78c3
push esi
call fcn.004e5b20
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4d78bc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4d7949
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4d7932
mov eax, dword [esi + 8]
test eax, eax
je 0x4d78e7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4d792e
cmp eax, 2
je 0x4d7932
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4d78da
cmp eax, 3
je 0x4d790d
cmp eax, 1
jne 0x4d78da
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4d78da
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4d78da
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004d7970
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4d7958
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004d7970
add esp, 4
pop esi
ret

Function at 0x4d81f0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4d8211
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4d8211
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4d8211
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4f3b70
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x73b88c]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4f3b83
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4f3bc4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x73b934]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4f3bf6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4f3bfa
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4f3beb
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4f3c18
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4f3c1c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4f3c0d
xor ecx, ecx
mov eax, 0x73b89c
xor ebx, ebx
mov bl, byte [ecx + 0x73b944]
cmp byte [esp + ebx + 0x14], 0
je 0x4f3c47
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x73b95c]
cmp byte [esp + ebx + 0x14], 0
je 0x4f3c5e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x4f3c2e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4f3bb7
lea edx, [esp + 0x84]
push edx
call fcn.004f3ca0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4f5ef0
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x71e488
push 0x4fc8b4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x1c], 1
mov dword [ebp - 4], 0
push edx
push ecx
push ebx
mov eax, 0x564d5868
mov ebx, 0
mov ecx, 0xa
mov edx, 0x5658
in eax, dx
cmp ebx, 0x564d5868
sete byte [ebp - 0x1c]
pop ebx
pop ecx
pop edx
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4f60d6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4f60d6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4f60b7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4f6460
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4f6498
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x4f7120
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4f7169
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4f75e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x519880
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004f7190
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004f7210
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004f7210
lea ecx, [esi + 0xc]
call fcn.0050ace1
lea ecx, [esi + 0x10]
call fcn.0050ace1
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004f87a0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004f87a0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004f87a0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0050ad56
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0050ad56
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x50d127
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x50d15f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0050b1b1
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0050b189
jmp 0x50d16b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x50e819
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x50e85b
call fcn.00514594
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x50e85b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x50e852
xor eax, eax
jmp 0x50e863
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0050e869
pop edi
pop esi
pop ebx
ret 4

Function at 0x514ac4
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x514af2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x514b10
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00514a2a
jmp 0x514b10
mov eax, dword [esi + 0x14]
test eax, eax
je 0x514b10
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00514a2a
test edi, edi
mov eax, edi
jne 0x514afa
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x407d94
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x4ae038], 0
je 0x407dbf
mov edx, edi
mov eax, esi
call dword [0x4ae038]
mov ebx, eax
jmp 0x407dd0
mov eax, 8
call fcn.004053c0
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4b2059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x407d5c
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x407e00
mov eax, ebx
call fcn.004053dc
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40b98c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40baf3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407ed4
cmp si, word [0x4aea18]
jb 0x40ba24
cmp si, word [0x4aec18]
ja 0x40ba24
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40ba24
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4aea18]
jae 0x40b9fe
mov edi, ebx
dec edi
jmp 0x40ba1f
cmp si, word [ebx*8 + 0x4aea18]
jbe 0x40ba0e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40ba1f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4aea1c]
call fcn.0040b8ac
jmp 0x40ba24
cmp edi, dword [ebp - 8]
jae 0x40b9e8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40bad3
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bad3
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00408a1c
push dword [ebp - 0x160]
push 0x40bb10
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00408a1c
push dword [ebp - 0x164]
push 0x40bb20
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00408a1c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00408c54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bafa
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00407f34
pop eax
jmp eax
Function at 0x40bca8
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40bdae
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4b4c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4b4c2c]
jne 0x40bcf4
mov eax, esi
mov edx, 0x4b4c2e
mov ecx, 0x55
call fcn.00408a1c
push 0x4b4c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40bd96
push 0x4b4c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00407ed4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bd63
cmp byte [0x4b4c10], 0
je 0x40bd28
mov edx, esi
mov eax, ebx
call fcn.0040bb8c
jmp 0x40bd63
mov edx, esi
mov eax, ebx
call fcn.0040b98c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40bd63
cmp dword [esi], 0
je 0x40bd4c
mov eax, esi
mov edx, 0x40bdc8
call fcn.00408b74
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040b98c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00408b74
push 0x4b4c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4b4c2c], bx
mov eax, dword [esi]
call fcn.00408980
mov ecx, eax
mov eax, 0x4b4c2e
mov edx, 0xaa
call fcn.0040b80c
push 0x4b4c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bdb5
lea eax, [ebp - 4]
call fcn.00407ed4
pop eax
jmp eax
Function at 0x40bff0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407fc8
xor eax, eax
push ebp
push 0x40c218
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40c036
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40c050
mov eax, dword [ebp - 4]
call fcn.00408980
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040b80c
cmp word [ebp - 0x21e], 0
je 0x40c1fb
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40c228
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c11f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40c228
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c11f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40c264
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c11f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40c264
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c11f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40c298
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c11f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40c2cc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40c1fb
xor eax, eax
push ebp
push 0x40c1f4
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040bdf0
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c182
mov eax, dword [ebp - 0x14]
call fcn.004053c0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.004089e0
jmp 0x40c1cd
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40c30c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c1cd
mov eax, dword [ebp - 0x14]
call fcn.004053c0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40c30c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.004089e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c1fb
cmp dword [ebp - 0xc], 0
je 0x40c1e8
mov eax, dword [ebp - 0xc]
call fcn.004053dc
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c21f
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407f34
pop eax
jmp eax
Function at 0x40c528
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407fc8
xor eax, eax
push ebp
push 0x40c5ea
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00408a1c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00408bcc
mov eax, dword [ebx]
call fcn.0040c3d4
test al, al
jne 0x40c5c5
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00408a1c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00408bcc
mov eax, dword [ebx]
call fcn.0040c3d4
test al, al
jne 0x40c5c5
mov eax, ebx
call fcn.00407ed4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c5f1
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00407f34
lea eax, [ebp - 4]
call fcn.00407ed4
pop eax
jmp eax

Function at 0x40de78
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 0x40fb30
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0040fb1c
add esp, 0x208
pop ebx
ret

Function at 0x41b544
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41b59d
test eax, edx
je 0x41b5a0
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41b55b
movzx eax, word [eax]
sub eax, ecx
jmp 0x41b582
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 [eax + ecx]
xor ebx, dword [edx + ecx]
jne 0x41b583
add ecx, 4
js 0x41b573
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41b580
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41b582
xor eax, eax
ret
test eax, eax
je 0x41b5ac
test edx, edx
jne 0x41b54c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x420c40
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
test eax, eax
jle 0x420c79
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040806c
jmp 0x420c82
mov eax, ebx
mov edx, esi
call fcn.004082c4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x420c8c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, ecx
mov esi, edx
mov ebx, eax
push 3
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x420cb0
movzx eax, word [esp]
jmp 0x420cb2
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x422184
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 0x4222ab
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00421f8c
mov esi, eax
mov eax, dword [0x4b1b14]
cmp byte [eax], 0
je 0x422251
mov eax, dword [0x4b1960]
call fcn.00405b98
call fcn.00405514
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
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x422154]
call fcn.0040ade0
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
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4222c4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x42228d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4b192c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b5634]
call fcn.0040b4b0
push eax
call sub.user32.dll_LoadStringW
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 0x4222b2
lea eax, [ebp - 4]
mov edx, dword [0x422154]
call fcn.0040af04
pop eax
jmp eax
Function at 0x423168
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
mov dword [ebp - 0x11c], 0x114
lea eax, [ebp - 0x11c]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x4231ab
mov eax, dword [ebp - 0x10c]
mov dword [0x4b58f4], eax
mov eax, 0x4b58f8
lea edx, [ebp - 0x108]
mov ecx, 0x80
call fcn.00408a1c
mov eax, 0x4b58fc
call fcn.00407ed4
xor eax, eax
mov dword [0x4b5900], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x4b57b8], 0xa
jl 0x423301
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x42330c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x423301
xor eax, eax
push ebp
push 0x4232fa
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x423368
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42325a
cmp dword [ebp - 8], 2
jle 0x42325a
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42322d
adc edx, 0
mov eax, 0x4b58fc
call fcn.00408af4
lea eax, [ebp - 8]
push eax
mov eax, dword [0x4b58fc]
call fcn.00408980
push eax
push 0
push 0
push 0x423368
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
jmp 0x4232b4
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x423388
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4232b4
cmp dword [ebp - 8], 2
jle 0x4232b4
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x423289
adc edx, 0
mov eax, 0x4b58fc
call fcn.00408af4
lea eax, [ebp - 8]
push eax
mov eax, dword [0x4b58fc]
call fcn.00408980
push eax
push 0
push 0
push 0x423388
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
push 0x4b5900
push 0
push 0
push 0x42339c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x4232e1
xor eax, eax
mov dword [0x4b5900], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423301
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
mov byte [0x4b02f0], 1
mov esp, ebp
pop ebp
ret