joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40798a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x413cd0]
call fcn.0040e58d
mov esi, eax
test esi, esi
je 0x407a64
cmp dword [ebp + 0xc], 0
je 0x4079d6
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x4079c7
cmp dword [esi + 0x1c], 0
jne 0x4079c7
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x407a64
test byte [ebp + 0x10], 3
je 0x4079f1
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.00407f45
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x407a16
xor ebx, ebx
cmp dword [esi + 0x3c], 0x1000000
sete bl
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x407a2a
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov ebx, eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
test dword [ebp + 0x10], 0x2000000
je 0x407a47
test ebx, ebx
je 0x407a3b
push 8
jmp 0x407a4d
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x407a5a
test ebx, ebx
je 0x407a50
push 3
pop ecx
jmp 0x407a5a
xor eax, eax
test ecx, ecx
setne al
lea ecx, [eax + 1]
push ecx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x4080d8
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x408170
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x40816d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x40816d
lea eax, [esi - 1]
push eax
push dword [0x413cd0]
call fcn.0040e58d
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x40816f
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x408164
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x408257
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x40814a
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x408216
push eax
call esi
test al, al
jns 0x408216
push 0x11
call esi
test al, al
js 0x408216
push 0x10
call esi
test al, al
js 0x408216
push 0x12
call esi
test al, al
js 0x408216
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x408216
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x4081ea
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x408201
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x408261
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x408261
test ebp, ebp
je 0x40823a
push 0x11
call esi
test al, al
js 0x408232
push 0x10
call esi
test al, al
js 0x408232
push 0x12
call esi
test al, al
jns 0x40823a
push 1
push ebp
call fcn.0040826d
test ebx, ebx
je 0x40824e
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x408261
test edi, edi
je 0x408261
mov eax, dword [edi + 8]
jmp 0x408263
and dword [esp + 0x14], 0
jmp 0x40816f
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4

Function at 0x40af60
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x40af92
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40af8d
cmp dword [esp + 0xc], esi
je 0x40afa9
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 8], esi
pop edi
mov eax, 1
pop esi
ret
Function at 0x40d6cd
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x40d815
xor ecx, ecx
cmp word [eax], cx
je 0x40d815
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x40d726
cmp eax, 3
jne 0x40d760
cmp word [esp + 0xa], 0x3a
jne 0x40d760
cmp eax, 2
jne 0x40d744
lea eax, [esp + 8]
push 0x4103a8
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x40d815
push 0xfffffffffffffffe
pop edi
jmp 0x40d815
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x40d775
cmp ax, bx
jne 0x40d77f
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x40d768
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x40d7be
test byte [esp + 0x21c], 0x10
je 0x40d7a5
push 0xfffffffffffffffe
pop edi
jmp 0x40d7b5
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40d813
cmp word [esp + 0x10], bp
jne 0x40d7cc
cmp word [esp + 0x12], bp
je 0x40d7eb
cmp word [esp + 0x10], bx
jne 0x40d7da
cmp word [esp + 0x12], bx
je 0x40d7eb
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x40d813
cmp word [esp + 0x12], ax
jne 0x40d813
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x40d800
test al, 0x10
je 0x40d813
jmp 0x40d810
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x40d813
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x40d824
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0
je 0x40d844
cmp dword [esp + 8], 0
je 0x40d844
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x40d846
xor eax, eax
ret 8
Function at 0x4148c6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041473c

Function at 0x418e62
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004189b5

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4048cc
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.00406bc8
test esi, esi
jne 0x404902
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.00406d50
jmp 0x404920
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004047b0
mov edi, eax
test esi, esi
je 0x404920
cmp dword [ebx], 0
je 0x404920
dec esi
jmp 0x404909
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405944
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.00405d3c
mov byte [esp], al
cmp byte [esp], 0
jne 0x405ad0
test edi, edi
je 0x405ad0
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405a07
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x4059e2
cmp edi, 0xffffffff
je 0x4059a3
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4059a3
mov byte [esp], 0
jmp 0x405ad0
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4059e2
test ebx, ebx
jne 0x4059d8
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402770
test eax, eax
jne 0x4059d8
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405ad0
call 0x405e60
dec ebp
test ebp, ebp
jg 0x405988
cmp edi, 0xffffffff
je 0x405a07
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405a05
mov byte [esp], 0
jmp 0x405ad0
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405952
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402770
cmp ebx, eax
jne 0x405a07
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405b40
mov edx, eax
mov ebx, dword [0x5218f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405a6e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405a6c
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405a6e
xor edi, edi
cmp byte [esp], 0
je 0x405a97
mov ebx, dword [esi]
test bl, 1
jne 0x405ab0
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402770
cmp ebx, eax
jne 0x405a74
mov byte [esp + 1], 1
jmp 0x405ab0
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402770
cmp ebx, eax
jne 0x405a97
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405a21
cmp byte [esp], 0
je 0x405ad0
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 0x406860
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x521058], 0
je 0x4068c7
cmp word [0x521344], 0xd7b2
jne 0x406889
cmp dword [0x52134c], 0
jbe 0x406889
mov eax, 0x521340
call dword [0x52135c]
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, 0x4068f4
call fcn.00407430
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x51c032], 0
jne 0x4068e3
push 0
push 0x51c9c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406a84
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 [0x51c034], 0
je 0x406aaf
mov edx, edi
mov eax, esi
call dword [0x51c034]
mov ebx, eax
jmp 0x406ac0
mov eax, 8
call fcn.004044ec
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x521059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406a4c
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 0x406af5
mov edx, 8
mov eax, ebx
call fcn.00404508
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x408fdc
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 0x409141
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406bc8
cmp si, word [0x51ca00]
jb 0x409074
cmp si, word [0x51cc00]
ja 0x409074
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x409074
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x51ca00]
jae 0x40904e
mov edi, ebx
dec edi
jmp 0x40906f
cmp si, word [ebx*8 + 0x51ca00]
jbe 0x40905e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40906f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x51ca04]
call fcn.00408eec
jmp 0x409074
cmp edi, dword [ebp - 8]
jae 0x409038
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x409123
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409123
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.004077a4
push dword [ebp - 0x160]
push 0x40915c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004077a4
push dword [ebp - 0x164]
push 0x40916c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004077a4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004079dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409148
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406c28
ret
Function at 0x4092f4
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 0x4093f7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x523b88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x523ba0]
jne 0x409340
mov eax, esi
mov edx, 0x523ba2
mov ecx, 0x55
call fcn.004077a4
push 0x523b88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4093e1
push 0x523b88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406bc8
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4093af
cmp byte [0x523b84], 0
je 0x409374
mov edx, esi
mov eax, ebx
call fcn.004091d8
jmp 0x4093af
mov edx, esi
mov eax, ebx
call fcn.00408fdc
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4093af
cmp dword [esi], 0
je 0x409398
mov eax, esi
mov edx, 0x409410
call fcn.004078fc
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408fdc
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004078fc
push 0x523b88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x523ba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407710
push eax
push 0x523ba2
call sub.kernel32.dll_lstrcpynW
push 0x523b88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4093fe
lea eax, [ebp - 4]
call fcn.00406bc8
ret
Function at 0x40962c
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.00406cac
xor eax, eax
push ebp
push 0x409851
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40966c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409686
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407710
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40983b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409860
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409755
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409860
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409755
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40989c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409755
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40989c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409755
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4098d0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409755
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409904
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40983b
xor eax, eax
push ebp
push 0x409834
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409438
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 0x4097c4
mov eax, dword [ebp - 0x10]
call fcn.004044ec
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.00407768
jmp 0x40980f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409944
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40980f
mov eax, dword [ebp - 0x10]
call fcn.004044ec
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409944
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407768
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40983b
cmp dword [ebp - 8], 0
je 0x40982a
mov eax, dword [ebp - 8]
call fcn.00404508
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 0x409858
lea eax, [ebp - 4]
call fcn.00406bc8
ret
Function at 0x409b34
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.00406cac
xor eax, eax
push ebp
push 0x409bf4
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.004077a4
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407954
mov eax, dword [ebx]
call fcn.004099fc
test al, al
jne 0x409bd1
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004077a4
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407954
mov eax, dword [ebx]
call fcn.004099fc
test al, al
jne 0x409bd1
mov eax, ebx
call fcn.00406bc8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409bfb
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406c28
lea eax, [ebp - 4]
call fcn.00406bc8
ret

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

Disassembly:
cmp eax, edx
je 0x41dab5
test eax, edx
je 0x41dab8
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41da73
movzx eax, word [eax]
sub eax, ecx
jmp 0x41da9a
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 0x41da9b
add ecx, 4
js 0x41da8b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41da98
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41da9a
xor eax, eax
ret
test eax, eax
je 0x41dac4
test edx, edx
jne 0x41da64
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x41e138
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 0x41e150
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x41e158
mov al, 1
jmp 0x41e175
movzx esi, word [ebp]
mov eax, esi
call fcn.0040f2a8
test al, al
jne 0x41e171
cmp si, 0x5f
je 0x41e171
xor eax, eax
jmp 0x41e173
mov al, 1
xor al, 1
test al, al
jne 0x41e205
test bl, bl
je 0x41e1c5
mov eax, ebp
test eax, eax
je 0x41e18c
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x41e201
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.0040f334
test al, al
jne 0x41e1b9
cmp di, 0x5f
je 0x41e1b9
cmp di, 0x2e
je 0x41e1b9
xor eax, eax
jmp 0x41e1bb
mov al, 1
test al, al
je 0x41e205
inc esi
dec ebx
jne 0x41e199
jmp 0x41e201
mov eax, ebp
test eax, eax
je 0x41e1d0
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x41e201
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.0040f334
test al, al
jne 0x41e1f7
cmp di, 0x5f
je 0x41e1f7
xor eax, eax
jmp 0x41e1f9
mov al, 1
test al, al
je 0x41e205
inc esi
dec ebx
jne 0x41e1dd
mov byte [esp], 1
movzx eax, byte [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41edb0
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.00407710
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41ee1a
test ah, 4
je 0x41ee13
test bl, bl
jne 0x41edd8
mov al, 1
jmp 0x41ee41
test al, 0x10
je 0x41ede0
xor eax, eax
jmp 0x41ee41
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41ee04
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41ee41
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41ee41
test al, 0x10
sete al
jmp 0x41ee41
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x41ee3b
cmp ebx, 3
je 0x41ee3b
cmp ebx, 0x7b
je 0x41ee3b
mov eax, esi
call fcn.0041ed70
test al, al
jne 0x41ee3f
xor eax, eax
jmp 0x41ee41
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x422b68
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 0x422ba1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406d50
jmp 0x422baa
mov eax, ebx
mov edx, esi
call fcn.00406fa8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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