joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407da0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x42603c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x40c], esi
test esi, esi
je 0x407f51
push 0xf01ff
push 0x41e2a0
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
je 0x407f43
xor eax, eax
push 0x3fe
push eax
lea ecx, [ebp - 0x406]
push ecx
mov word [ebp - 0x408], ax
call fcn.00413700
add esp, 0xc
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
mov esi, 1
lea edx, [ebp - 0x408]
push 0x41e510
push edx
call edi
lea eax, [ebp - 0x408]
push eax
call fcn.00402950
add esp, 0xc
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x407eb7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x407f0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea ecx, [ebp - 0x408]
push 0x41e5a8
push ecx
call edi
lea edx, [ebp - 0x408]
push edx
call fcn.00402950
add esp, 0x14
cmp esi, 3
je 0x407ef2
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 3
jle 0x407e21
mov ecx, dword [ebp - 0x40c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f51e
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x408]
push 0x41e558
push eax
call edi
lea ecx, [ebp - 0x408]
add esp, 0xc
push ecx
call fcn.00402950
add esp, 4
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f51e
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f51e
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x408]
push str._Resume_Updater__wmcUpdater
push edx
call edi
lea eax, [ebp - 0x408]
push eax
call fcn.00402950
add esp, 0xc
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f51e
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x41e650
jmp 0x407f56
push str._Resume_Updater_
push 0xf9b950
call dword [sym.imp.USER32.dll_wsprintfW]
push 0xf9b950
call fcn.00402950
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.0040f51e
mov esp, ebp
pop ebp
ret
Function at 0x40c310
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x2c]
mov dword [ebp - 0xc], edi
jmp 0x40c323
mov edi, dword [ebp - 0xc]
mov ebx, dword [esi + 0x3c]
sub ebx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub ebx, eax
lea edx, [edi + ecx - 0x106]
mov dword [ebp - 4], ebx
cmp eax, edx
jb 0x40c39d
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.00414d50
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x40c371
sub eax, edi
jmp 0x40c373
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x40c362
mov ecx, dword [esi + 0x40]
mov edx, edi
lea ecx, [ecx + edi*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x40c390
sub eax, edi
jmp 0x40c392
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x40c381
add ebx, edi
mov dword [ebp - 4], ebx
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x40c452
mov edx, dword [esi + 0x74]
add edx, dword [esi + 0x6c]
mov eax, dword [edi + 4]
add edx, dword [esi + 0x38]
mov ecx, dword [ebp - 4]
mov ebx, eax
mov dword [ebp - 8], edx
cmp ebx, ecx
jbe 0x40c3c3
mov ebx, ecx
test ebx, ebx
je 0x40c416
sub eax, ebx
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x40c3e5
mov edx, dword [edi]
mov ecx, dword [edi + 0x30]
mov eax, ebx
call fcn.0040ce80
jmp 0x40c3fe
cmp eax, 2
jne 0x40c404
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
test ecx, ecx
jne 0x40c3f7
xor eax, eax
jmp 0x40c401
mov edx, ebx
call fcn.0040d520
mov edx, dword [ebp - 8]
mov dword [edi + 0x30], eax
mov ecx, dword [edi]
push ebx
push ecx
push edx
call fcn.00414d50
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x40c43e
mov edx, dword [esi + 0x6c]
add edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x40c452
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x40c320
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d500
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test ecx, ecx
jne 0x40d50b
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
pop ebp
jmp fcn.0040d520
Function at 0x40f51e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42603c]
jne 0x40f528
repz ret
jmp fcn.00410bb6

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x40fe30
call fcn.00411ddc
mov dword [eax], esi
call fcn.00411dc9
push 0x16
pop esi
mov dword [eax], esi
call fcn.00411d77
mov eax, esi
jmp 0x40fe85
test dword [ebp + 0xc], 0xfffffff9
jne 0x40fe16
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40fe5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411def
pop ecx
call fcn.00411dc9
mov eax, dword [eax]
jmp 0x40fe85
test al, 0x10
jne 0x40fe83
test al, 1
je 0x40fe83
test byte [ebp + 0xc], 2
je 0x40fe83
call fcn.00411ddc
mov dword [eax], 5
call fcn.00411dc9
mov dword [eax], 0xd
jmp 0x40fe54
xor eax, eax
pop esi
pop ebp
ret
Function at 0x416fe0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42603c]
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.004116d9
and dword [ebp - 0x14], 0
cmp dword [0xf99830], 0
mov dword [ebp - 0x18], eax
jne 0x417093
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41713b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41bb08
push ebx
call edi
test eax, eax
je 0x41713b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0xf99830], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0xf99834], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0xf99838], eax
call edi
push eax
call esi
mov dword [0xf99840], eax
test eax, eax
je 0x417093
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0xf9983c], eax
mov eax, dword [0xf9983c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4170ec
cmp dword [0xf99840], ecx
je 0x4170ec
push eax
call esi
push dword [0xf99840]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4170ec
test ebx, ebx
je 0x4170ec
call edi
test eax, eax
je 0x4170e3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4170e3
test byte [ebp - 8], 1
jne 0x4170ec
or dword [ebp + 0x10], 0x200000
jmp 0x41711f
mov eax, dword [0xf99834]
cmp eax, dword [ebp - 0x18]
je 0x41711f
push eax
call esi
test eax, eax
je 0x41711f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41711f
mov eax, dword [0xf99838]
cmp eax, dword [ebp - 0x18]
je 0x41711f
push eax
call esi
test eax, eax
je 0x41711f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0xf99830]
call esi
test eax, eax
je 0x41713b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41713d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f51e
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x1b771a63
nop
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x6e012bce
nop
nop
nop
nop
test eax, eax
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
jmp 0x431219
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.004068ac
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.004069e8
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 0x405e28
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x528050], 0
je 0x405e89
cmp word [0x52832c], 0xd7b2
jne 0x405e51
cmp dword [0x528334], 0
jbe 0x405e51
mov eax, 0x528328
call dword [0x528344]
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 0x405eb4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x521030], 0
jne 0x405ea5
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406034
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 [0x521034], 0
je 0x40605a
mov edx, esi
mov eax, ebx
call dword [0x521034]
jmp 0x406069
mov eax, 8
call fcn.004041d4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x528051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405ffc
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 0x4086b4
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 0x40881b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.004068ac
cmp si, word [0x5217d0]
jb 0x40874e
cmp si, word [0x5219d0]
ja 0x40874e
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x40874e
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5217d0]
jae 0x408728
mov edi, ebx
dec edi
jmp 0x408749
cmp si, word [ebx*8 + 0x5217d0]
jbe 0x408738
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408749
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x5217d4]
call fcn.004085c4
jmp 0x40874e
cmp edi, dword [ebp - 0xc]
jae 0x408712
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4087fd
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4087fd
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.00406a94
push dword [ebp - 0x164]
push 0x408838
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406a94
push dword [ebp - 0x168]
push 0x408848
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406a94
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406e4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408822
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.004068a4
ret
Function at 0x40884c
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 0x408a32
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x52ab58
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x52ab70]
cmp ax, word [ebp - 2]
jne 0x4088a4
mov eax, dword [ebp - 6]
mov edx, 0x52ab74
mov ecx, 0x55
call fcn.00406a94
push 0x52ab58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408a1c
push 0x52ab58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.004068ac
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4089e4
cmp byte [0x52ab54], 0
je 0x40899a
call dword [0x52ab4c]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x52ab50]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x408993
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 [0x52ab48]
test al, al
je 0x40896c
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 [0x52ab48]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x408961
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x40895d
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x40894a
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.00406a58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4089e4
movzx eax, word [ebp - 0x16]
push eax
call dword [0x52ab50]
cmp dword [ebp - 0x10], 0
je 0x408992
mov eax, dword [ebp - 0x10]
call fcn.004041f0
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.004086b4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x4089e4
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x4089c9
mov eax, dword [ebp - 6]
mov edx, 0x408a4c
call fcn.00406ca8
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.004086b4
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.00406ca8
mov eax, dword [ebp - 6]
push 0x52ab58
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x52ab70], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.00406938
push eax
push 0x52ab74
call sub.kernel32.dll_lstrcpynW
push 0x52ab58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408a39
lea eax, [ebp - 0x1c]
call fcn.0040689c
ret
Function at 0x408c70
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.00406894
xor eax, eax
push ebp
push 0x408e55
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408cb0
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408cca
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406938
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x408e3f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408e64
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408d59
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408e64
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408d59
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408e98
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408d59
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408ecc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x408e3f
xor eax, eax
push ebp
push 0x408e38
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408a74
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 0x408dc8
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.00406a58
jmp 0x408e13
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x408f0c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408e13
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 0x408f0c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406a58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e3f
cmp dword [ebp - 8], 0
je 0x408e2e
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 0x408e5c
lea eax, [ebp - 4]
call fcn.0040689c
ret
Function at 0x409120
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.00406894
mov eax, dword [ebp - 0x21c]
call fcn.00406894
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x4092bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.004068ac
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406938
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 0x4091c0
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x4091d2
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x4091bd
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x40928b
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 0x4091fb
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.00408c70
cmp dword [ebp - 0x220], 0
je 0x409233
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409014
pop ecx
mov ebx, eax
jmp 0x40928b
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.0040884c
mov eax, dword [ebp - 0x224]
call fcn.00409014
pop ecx
mov ebx, eax
test bl, bl
jne 0x40927e
cmp byte [0x52ab54], 0
jne 0x40927e
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.0040884c
mov eax, dword [ebp - 0x228]
call fcn.00409014
pop ecx
mov ebx, eax
test bl, bl
jne 0x40928b
push ebp
call fcn.004090c4
pop ecx
mov ebx, eax
test bl, bl
je 0x4092a1
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406a94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4092c6
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.004068a4
ret

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

Disassembly:
push ebx
push esi
mov esi, 0x52ac58
push 0xa
push 0x40cd34
mov eax, dword [0x52ac3c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40ccc4
call fcn.0041a510
push ebx
mov eax, dword [0x52ac3c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40ccdb
call fcn.0041a510
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40cced
call fcn.0041a510
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x52ac5c], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x52ac60], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x52ac64], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x52ac68], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x52ac6c], ecx
add edx, dword [eax + 0x14]
mov dword [0x52ac70], edx
pop esi
pop ebx
ret

Function at 0x411b54
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x411bfd
test eax, edx
je 0x411c00
push 0
push 0
cmp word [eax - 0xa], 2
je 0x411b7d
push edx
mov edx, eax
mov eax, esp
call fcn.00406ab0
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x411b93
push eax
lea eax, [esp + 8]
call fcn.00406ab0
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x411ba2
movzx eax, word [eax]
sub eax, ecx
jmp 0x411bc9
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 0x411be3
add ecx, 4
js 0x411bba
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x411be0
push eax
mov eax, ecx
mov edx, 2
call fcn.004060d4
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x411bc7
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x411bc9
xor eax, eax
ret
test eax, eax
je 0x411c10
test edx, edx
jne 0x411b64
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406938
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x413036
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x413057
cmp ebx, 3
je 0x413057
cmp ebx, 0x7b
je 0x413057
mov eax, esi
call fcn.00412fd8
test al, al
jne 0x41305b
xor eax, eax
jmp 0x41305d
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406938
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x413079
test al, 0x10
jne 0x41307d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret