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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404794
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x4d667a
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
xor edx, edx
mov eax, 2
call fcn.0048b634
mov ebx, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, ebx
call fcn.0048b654
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x4d6646
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00404554
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.0040942c
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00408a28
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00408a28
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.004046f0
je 0x4d6620
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00404554
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00408a28
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00408a28
mov edx, dword [ebp - 0x148]
pop eax
call fcn.004046f0
jne 0x4d6637
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov esi, eax
mov edx, edi
mov eax, ebx
call fcn.0048b674
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4d6581
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d6681
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.00404308
lea eax, [ebp - 4]
call fcn.004042e4
ret
Function at 0x4dbbe8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x4dbbf0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4dbe5c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov dword [edi + 0x6d4], eax
cmp dword [ebp - 4], 0
jne 0x4dbc22
mov byte [ebp - 5], 1
jmp 0x4dbc26
mov byte [ebp - 5], 0
xor edx, edx
mov eax, edi
call fcn.004dbb3c
mov ebx, dword [edi + 0x720]
test ebx, ebx
jle 0x4dbc72
mov esi, 1
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.00408e1c
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 0x4dbe74
call fcn.004045f0
mov edx, dword [ebp - 0xc]
mov eax, dword [edi + 0x310]
call fcn.004d58e0
mov dl, byte [ebp - 5]
call fcn.004c9e94
inc esi
dec ebx
jne 0x4dbc3e
mov ebx, dword [edi + 0x724]
test ebx, ebx
jle 0x4dbcb5
mov esi, 1
lea edx, [ebp - 0x18]
mov eax, esi
call fcn.00408e1c
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 0x4dbe88
call fcn.004045f0
mov edx, dword [ebp - 0x14]
mov eax, dword [edi + 0x310]
call fcn.004d58e0
mov dl, byte [ebp - 5]
call fcn.004c9e94
inc esi
dec ebx
jne 0x4dbc81
cmp byte [ebp - 5], 0
je 0x4dbd39
mov eax, dword [edi + 0x310]
mov edx, 0x4dbe9c
call fcn.004d58e0
mov ecx, 0x12c
mov edx, 1
call fcn.004c9e1c
mov eax, dword [edi + 0x310]
mov edx, 0x4dbeb0
call fcn.004d58e0
mov edx, 0x4dbec4
call fcn.004cfdf8
push 0x32
lea edx, [ebp - 0x20]
xor eax, eax
call fcn.00402b98
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.004093d8
lea eax, [ebp - 0x1c]
mov edx, 0x4dbf24
call fcn.004045ac
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [edi + 0x310]
mov edx, 0x4dbf3c
call fcn.004d58e0
mov ecx, 0xc0
pop edx
call fcn.004ca5e8
jmp 0x4dbdb5
push 0x32
lea edx, [ebp - 0x28]
xor eax, eax
call fcn.00402b98
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.004093d8
lea eax, [ebp - 0x24]
mov edx, 0x4dbf54
call fcn.004045ac
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [edi + 0x310]
mov edx, 0x4dbf3c
call fcn.004d58e0
mov ecx, 0xc0
pop edx
call fcn.004ca5e8
mov eax, dword [edi + 0x310]
mov edx, 0x4dbe9c
call fcn.004d58e0
mov ecx, 0xbe
mov edx, 1
call fcn.004c9e1c
mov eax, dword [edi + 0x310]
mov edx, 0x4dbeb0
call fcn.004d58e0
mov edx, 0x4dbf6c
call fcn.004cfdf8
mov ebx, dword [edi + 0x728]
test ebx, ebx
jle 0x4dbdfb
mov esi, 1
lea edx, [ebp - 0x30]
mov eax, esi
call fcn.00408e1c
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov edx, 0x4dbfcc
call fcn.004045f0
mov edx, dword [ebp - 0x2c]
mov eax, dword [edi + 0x310]
call fcn.004d58e0
mov dl, byte [ebp - 5]
xor dl, 1
call fcn.004c9e94
inc esi
dec ebx
jne 0x4dbdc4
mov ebx, dword [edi + 0x72c]
test ebx, ebx
jle 0x4dbe41
mov esi, 1
lea edx, [ebp - 0x38]
mov eax, esi
call fcn.00408e1c
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 0x4dbfe0
call fcn.004045f0
mov edx, dword [ebp - 0x34]
mov eax, dword [edi + 0x310]
call fcn.004d58e0
mov dl, byte [ebp - 5]
xor dl, 1
call fcn.004c9e94
inc esi
dec ebx
jne 0x4dbe0a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dbe63
lea eax, [ebp - 0x38]
mov edx, 0xc
call fcn.00404308
ret
Function at 0x4e4890
Capabilities:
Get graphical window text

Disassembly:
mov edx, dword [eax + 0x52c]
test edx, edx
je 0x4e48c4
mov byte [edx + 0xf5c], 0
mov byte [edx + 0xf5d], 0
mov byte [edx + 0xf5e], 0
push 0xd
push 3
push 0x444
mov eax, dword [edx + 0xf40]
push eax
call sub.user32.dll_SendMessageA
ret

Function at 0x4e48c8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, eax
cmp dword [esi + 0x52c], 0
je 0x4e49b0
mov eax, dword [esi + 0x480]
test eax, eax
jl 0x4e49b0
xor ebx, ebx
mov byte [esp], 0
mov byte [esp + 1], 0
test eax, eax
jle 0x4e48fa
mov bl, 1
test eax, eax
jne 0x4e4916
xor edx, edx
mov eax, dword [esi + 0x528]
call fcn.0041c570
cmp byte [eax + 0x365], 0
je 0x4e4916
mov bl, 1
mov edx, dword [esi + 0x480]
inc edx
mov edi, dword [esi + 0x528]
mov eax, dword [edi + 8]
cmp edx, eax
jge 0x4e492e
mov byte [esp], 1
cmp edx, eax
jne 0x4e494c
mov edx, dword [esi + 0x480]
mov eax, edi
call fcn.0041c570
cmp byte [eax + 0x364], 0
je 0x4e494c
mov byte [esp], 1
mov eax, dword [esi + 0x528]
cmp dword [eax + 8], 1
jle 0x4e495d
mov byte [esp + 1], 1
mov eax, dword [esi + 0x52c]
mov dl, byte [eax + 0xf5e]
cmp dl, byte [esp + 1]
jne 0x4e4982
mov dl, byte [eax + 0xf5d]
cmp dl, byte [esp]
jne 0x4e4982
cmp bl, byte [eax + 0xf5c]
je 0x4e49b0
mov dl, byte [esp + 1]
mov byte [eax + 0xf5e], dl
mov dl, byte [esp]
mov byte [eax + 0xf5d], dl
mov byte [eax + 0xf5c], bl
push 0xd
push 3
push 0x444
mov eax, dword [eax + 0xf40]
push eax
call sub.user32.dll_SendMessageA
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4e64a4
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 0x4e64f5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4e64dc
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4e64cc
jmp 0x4e64f5
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 0x4e64dd
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404914
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00407fec
test esi, esi
jne 0x40494a
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.00408174
jmp 0x404968
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004047f8
mov edi, eax
test esi, esi
je 0x404968
cmp dword [ebx], 0
je 0x404968
dec esi
jmp 0x404951
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x406d68
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.00407160
mov byte [esp], al
cmp byte [esp], 0
jne 0x406ef4
test edi, edi
je 0x406ef4
mov byte [esp + 1], 0
test ebp, ebp
jle 0x406e2b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x406e06
cmp edi, 0xffffffff
je 0x406dc7
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406dc7
mov byte [esp], 0
jmp 0x406ef4
mov ebx, dword [esi]
cmp ebx, 1
jg 0x406e06
test ebx, ebx
jne 0x406dfc
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402770
test eax, eax
jne 0x406dfc
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x406ef4
call 0x407284
dec ebp
test ebp, ebp
jg 0x406dac
cmp edi, 0xffffffff
je 0x406e2b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406e29
mov byte [esp], 0
jmp 0x406ef4
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x406d76
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402770
cmp ebx, eax
jne 0x406e2b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00406f64
mov edx, eax
mov ebx, dword [0x5268f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x406e92
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x406e90
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x406e92
xor edi, edi
cmp byte [esp], 0
je 0x406ebb
mov ebx, dword [esi]
test bl, 1
jne 0x406ed4
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402770
cmp ebx, eax
jne 0x406e98
mov byte [esp + 1], 1
jmp 0x406ed4
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402770
cmp ebx, eax
jne 0x406ebb
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x406e45
cmp byte [esp], 0
je 0x406ef4
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 0x407c84
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x526058], 0
je 0x407ceb
cmp word [0x526344], 0xd7b2
jne 0x407cad
cmp dword [0x52634c], 0
jbe 0x407cad
mov eax, 0x526340
call dword [0x52635c]
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, 0x407d18
call fcn.004088b8
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x521032], 0
jne 0x407d07
push 0
push 0x5219ca
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x407ea8
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 [0x521034], 0
je 0x407ed3
mov edx, edi
mov eax, esi
call dword [0x521034]
mov ebx, eax
jmp 0x407ee4
mov eax, 8
call fcn.00404534
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x526059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x407e70
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 0x407f19
mov edx, 8
mov eax, ebx
call fcn.00404550
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40a464
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 0x40a5c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407fec
cmp si, word [0x521a08]
jb 0x40a4fc
cmp si, word [0x521c08]
ja 0x40a4fc
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40a4fc
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x521a08]
jae 0x40a4d6
mov edi, ebx
dec edi
jmp 0x40a4f7
cmp si, word [ebx*8 + 0x521a08]
jbe 0x40a4e6
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40a4f7
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x521a0c]
call fcn.0040a374
jmp 0x40a4fc
cmp edi, dword [ebp - 8]
jae 0x40a4c0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40a5ab
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40a5ab
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.00408c2c
push dword [ebp - 0x160]
push 0x40a5e4
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00408c2c
push dword [ebp - 0x164]
push 0x40a5f4
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00408c2c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00408e64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a5d0
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040804c
ret
Function at 0x40a77c
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 0x40a87f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x528b88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x528ba0]
jne 0x40a7c8
mov eax, esi
mov edx, 0x528ba2
mov ecx, 0x55
call fcn.00408c2c
push 0x528b88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40a869
push 0x528b88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00407fec
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40a837
cmp byte [0x528b84], 0
je 0x40a7fc
mov edx, esi
mov eax, ebx
call fcn.0040a660
jmp 0x40a837
mov edx, esi
mov eax, ebx
call fcn.0040a464
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40a837
cmp dword [esi], 0
je 0x40a820
mov eax, esi
mov edx, 0x40a898
call fcn.00408d84
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040a464
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00408d84
push 0x528b88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x528ba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.00408b98
push eax
push 0x528ba2
call sub.kernel32.dll_lstrcpynW
push 0x528b88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a886
lea eax, [ebp - 4]
call fcn.00407fec
ret
Function at 0x40aab4
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.004080d0
xor eax, eax
push ebp
push 0x40acd9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40aaf4
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40ab0e
push 0x105
mov eax, dword [ebp - 4]
call fcn.00408b98
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40acc3
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40ace8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40abdd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40ace8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40abdd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40ad24
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40abdd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40ad24
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40abdd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40ad58
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40abdd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40ad8c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40acc3
xor eax, eax
push ebp
push 0x40acbc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040a8c0
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 0x40ac4c
mov eax, dword [ebp - 0x10]
call fcn.00404534
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.00408bf0
jmp 0x40ac97
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40adcc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40ac97
mov eax, dword [ebp - 0x10]
call fcn.00404534
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40adcc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00408bf0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40acc3
cmp dword [ebp - 8], 0
je 0x40acb2
mov eax, dword [ebp - 8]
call fcn.00404550
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 0x40ace0
lea eax, [ebp - 4]
call fcn.00407fec
ret
Function at 0x40afbc
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.004080d0
xor eax, eax
push ebp
push 0x40b07c
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.00408c2c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00408ddc
mov eax, dword [ebx]
call fcn.0040ae84
test al, al
jne 0x40b059
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00408c2c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00408ddc
mov eax, dword [ebx]
call fcn.0040ae84
test al, al
jne 0x40b059
mov eax, ebx
call fcn.00407fec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b083
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040804c
lea eax, [ebp - 4]
call fcn.00407fec
ret

Function at 0x40ba40
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 0x41f0dc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41f135
test eax, edx
je 0x41f138
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41f0f3
movzx eax, word [eax]
sub eax, ecx
jmp 0x41f11a
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 0x41f11b
add ecx, 4
js 0x41f10b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41f118
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41f11a
xor eax, eax
ret
test eax, eax
je 0x41f144
test edx, edx
jne 0x41f0e4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x41f7b8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, edx
mov ebp, eax
mov byte [esp], 0
mov eax, ebp
test eax, eax
je 0x41f7d0
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x41f7d8
mov al, 1
jmp 0x41f7f5
movzx esi, word [ebp]
mov eax, esi
call fcn.00410928
test al, al
jne 0x41f7f1
cmp si, 0x5f
je 0x41f7f1
xor eax, eax
jmp 0x41f7f3
mov al, 1
xor al, 1
test al, al
jne 0x41f885
test bl, bl
je 0x41f845
mov eax, ebp
test eax, eax
je 0x41f80c
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x41f881
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.004109b4
test al, al
jne 0x41f839
cmp di, 0x5f
je 0x41f839
cmp di, 0x2e
je 0x41f839
xor eax, eax
jmp 0x41f83b
mov al, 1
test al, al
je 0x41f885
inc esi
dec ebx
jne 0x41f819
jmp 0x41f881
mov eax, ebp
test eax, eax
je 0x41f850
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x41f881
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.004109b4
test al, al
jne 0x41f877
cmp di, 0x5f
je 0x41f877
xor eax, eax
jmp 0x41f879
mov al, 1
test al, al
je 0x41f885
inc esi
dec ebx
jne 0x41f85d
mov byte [esp], 1
movzx eax, byte [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x420430
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.00408b98
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42049a
test ah, 4
je 0x420493
test bl, bl
jne 0x420458
mov al, 1
jmp 0x4204c1
test al, 0x10
je 0x420460
xor eax, eax
jmp 0x4204c1
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x420484
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x4204c1
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x4204c1
test al, 0x10
sete al
jmp 0x4204c1
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x4204bb
cmp ebx, 3
je 0x4204bb
cmp ebx, 0x7b
je 0x4204bb
mov eax, esi
call fcn.004203f0
test al, al
jne 0x4204bf
xor eax, eax
jmp 0x4204c1
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x4241d8
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 0x424211
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00408174
jmp 0x42421a
mov eax, ebx
mov edx, esi
call fcn.004083cc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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