joyce8/EMBER2024-capa huggingface dataset:
Function at 0x578163
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
sub esp, 0x20
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 8], 8
fild dword [ebp - 8]
fild dword [eax + 4]
fprem
fistp dword [ebp - 8]
fninit
cmp dword [ebp - 8], 0
je 0x5781cd
mov dword [ebp - 4], 0xffffffff
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
cmp dword [ebx + 4], 0x10
je 0x5781df
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 4], 0xffffffff
jne 0x5781f3
mov eax, 0x1752f
jmp 0x57833d
mov eax, dword [ebx + 8]
bswap eax
xor edx, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0xc]
bswap eax
xor edx, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x10]
bswap eax
xor edx, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x14]
bswap eax
xor edx, edx
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov eax, dword [ebx + 8]
bswap eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0xc]
bswap eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0xe3779b90
mov ecx, 0x10
mov eax, dword [ebp - 0x20]
shl eax, 4
add eax, dword [ebp - 0x18]
mov edx, eax
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x28]
xor edx, eax
mov eax, dword [ebp - 0x20]
shr eax, 5
add eax, dword [ebp - 0x1c]
xor edx, eax
mov eax, dword [ebp - 0x24]
sub eax, edx
mov dword [ebp - 0x24], eax
shl eax, 4
add eax, dword [ebp - 0x10]
mov edx, eax
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x28]
xor edx, eax
mov eax, dword [ebp - 0x24]
shr eax, 5
add eax, dword [ebp - 0x14]
xor edx, eax
mov eax, dword [ebp - 0x20]
sub eax, edx
mov dword [ebp - 0x20], eax
sub dword [ebp - 0x28], 0x9e3779b9
loop 0x57823c
xor ecx, ecx
bswap eax
mov cl, al
and cl, 7
mov dword [ebp - 0x30], ecx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov eax, dword [ebx + 4]
sub eax, ecx
sub eax, 0xa
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x2c], ecx
push dword [ebp - 4]
call fcn.005778c5
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x5782d7
push ebx
call fcn.00599219
add esp, 4
pop eax
mov dword [ebp - 8], eax
push dword [ebp - 0x30]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.00578355
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x578333
mov eax, dword [ebp - 8]
test eax, eax
je 0x578329
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00599213
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x57833d
mov eax, 0x1752f
jmp 0x57833d
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x57834e
push ebx
call fcn.00599219
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8
Function at 0x52e5f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x5344cc]
cmp dword [eax + 0x28], 0
jne 0x52e608
xor eax, eax
jmp 0x52e737
mov ecx, dword [0x53443c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
add edx, 0xe
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dword [0x534430], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [0x53442c], eax
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x10], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x18], eax
mov ecx, dword [0x534430]
mov dword [ebp - 0x40], ecx
mov edx, dword [0x53442c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x40]
shr eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 8]
shr ecx, 1
mov dword [ebp - 0x1c], ecx
push 0
mov edx, dword [0x5344b8]
push edx
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0x80000000
push 0x532680
push 0x5326d0
push 0x88
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [0x534428], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.0052e530
push 5
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x52e5c0
mov edx, dword [0x5344cc]
mov eax, dword [edx + 0x34]
imul eax, eax, 0x3e8
push eax
push 0
push 0
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x534434], eax
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x52e737
cmp dword [ebp - 0x38], 0x12
jne 0x52e72b
mov dword [0x534444], 0
call fcn.0052e740
xor eax, eax
jmp 0x52e737
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x52e6fc
mov esp, ebp
pop ebp
ret 4

Function at 0x52fb00
Capabilities:
Read .ini file
Read and send data from client to server
Send data
Send data on socket
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebp
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
pop ebp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x53069c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x532168
sub eax, eax
test esi, esi
je 0x530774
sub eax, 1
test ecx, ecx
je 0x530772
test esi, 3
je 0x5306da
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x5306bf
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x530759
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x5306e4
mov ecx, edx
test ecx, ecx
je 0x530772
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x53075f
not eax
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x53077c
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.005307ff
jae 0x53078a
xor ecx, ecx
call fcn.005307ff
jae 0x5307b9
xor eax, eax
call fcn.005307ff
jae 0x5307c9
mov bl, 2
inc ecx
mov al, 0x10
call fcn.005307ff
adc al, al
jae 0x5307ab
jne 0x5307f5
stosb byte es:[edi], al
jmp 0x53078d
call fcn.0053080b
sub ecx, ebx
jne 0x5307d2
call fcn.00530809
jmp 0x5307f1
lodsb al, byte [esi]
shr eax, 1
je 0x53081b
adc ecx, ecx
jmp 0x5307ee
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00530809
cmp eax, 0x7d00
jae 0x5307ee
cmp ah, 5
jae 0x5307ef
cmp eax, 0x7f
ja 0x5307f0
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x53078d
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x53114c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x534000]
jne 0x531156
repz ret
jmp fcn.005313fd

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 0x404558
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.00406874
test esi, esi
jne 0x404590
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.004069b0
jmp 0x4045ae
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040449c
mov edi, eax
test esi, esi
je 0x4045ae
cmp dword [ebx], 0
je 0x4045ae
dec esi
jmp 0x404597
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405df0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e6050], 0
je 0x405e51
cmp word [0x4e632c], 0xd7b2
jne 0x405e19
cmp dword [0x4e6334], 0
jbe 0x405e19
mov eax, 0x4e6328
call dword [0x4e6344]
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 0x405e7c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4e2030], 0
jne 0x405e6d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405ffc
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 [0x4e2034], 0
je 0x406022
mov edx, esi
mov eax, ebx
call dword [0x4e2034]
jmp 0x406031
mov eax, 8
call fcn.004041e4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4e6051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405fc4
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 0x407300
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x407342
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x407362
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00406a5c
add esp, 0x41c
pop esi
pop ebx
ret
Function at 0x4086c0
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 0x408827
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406874
cmp si, word [0x4e27dc]
jb 0x40875a
cmp si, word [0x4e29dc]
ja 0x40875a
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x40875a
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4e27dc]
jae 0x408734
mov edi, ebx
dec edi
jmp 0x408755
cmp si, word [ebx*8 + 0x4e27dc]
jbe 0x408744
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408755
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4e27e0]
call fcn.004085d0
jmp 0x40875a
cmp edi, dword [ebp - 0xc]
jae 0x40871e
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408809
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408809
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.00406a5c
push dword [ebp - 0x164]
push 0x408844
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406a5c
push dword [ebp - 0x168]
push 0x408854
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406a5c
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406e14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40882e
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.0040686c
ret
Function at 0x4089e0
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 0x408ae5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4e8b58
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4e8b70]
jne 0x408a2c
mov eax, esi
mov edx, 0x4e8b74
mov ecx, 0x55
call fcn.00406a5c
push 0x4e8b58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408acf
push 0x4e8b58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406874
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408a9d
cmp byte [0x4e8b54], 0
je 0x408a62
mov edx, esi
mov eax, ebx
call fcn.004088c0
jmp 0x408a9d
mov edx, esi
mov eax, ebx
call fcn.004086c0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408a9d
cmp dword [esi], 0
je 0x408a86
mov eax, esi
mov edx, 0x408b00
call fcn.00406c70
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004086c0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406c70
push 0x4e8b58
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4e8b70], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406900
push eax
push 0x4e8b74
call sub.kernel32.dll_lstrcpynW
push 0x4e8b58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408aec
lea eax, [ebp - 4]
call fcn.00406864
ret
Function at 0x408d24
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.0040685c
xor eax, eax
push ebp
push 0x408f09
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408d64
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408d7e
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406900
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x408ef3
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408f18
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408e0d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408f18
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408e0d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408f4c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408e0d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408f80
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x408ef3
xor eax, eax
push ebp
push 0x408eec
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408b28
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 0x408e7c
mov eax, dword [ebp - 0x10]
call fcn.004041e4
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.00406a20
jmp 0x408ec7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x408fc0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408ec7
mov eax, dword [ebp - 0x10]
call fcn.004041e4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x408fc0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406a20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408ef3
cmp dword [ebp - 8], 0
je 0x408ee2
mov eax, dword [ebp - 8]
call fcn.00404200
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 0x408f10
lea eax, [ebp - 4]
call fcn.00406864
ret
Function at 0x4091d4
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.0040685c
mov eax, dword [ebp - 0x21c]
call fcn.0040685c
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409373
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406874
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406900
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 0x409274
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409286
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409271
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x40933f
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 0x4092af
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.00408d24
cmp dword [ebp - 0x220], 0
je 0x4092e7
push ebp
mov eax, dword [ebp - 0x220]
call fcn.004090c8
pop ecx
mov ebx, eax
jmp 0x40933f
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.004089e0
mov eax, dword [ebp - 0x224]
call fcn.004090c8
pop ecx
mov ebx, eax
test bl, bl
jne 0x409332
cmp byte [0x4e8b54], 0
jne 0x409332
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.004089e0
mov eax, dword [ebp - 0x228]
call fcn.004090c8
pop ecx
mov ebx, eax
test bl, bl
jne 0x40933f
push ebp
call fcn.00409178
pop ecx
mov ebx, eax
test bl, bl
je 0x409355
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406a5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40937a
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.0040686c
ret

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

Disassembly:
push ebx
push esi
mov esi, 0x4e8c58
push 0xa
push 0x40cef4
mov eax, dword [0x4e8c3c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40ce84
call fcn.0041a4e4
push ebx
mov eax, dword [0x4e8c3c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40ce9b
call fcn.0041a4e4
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40cead
call fcn.0041a4e4
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4e8c5c], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4e8c60], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4e8c64], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4e8c68], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4e8c6c], ecx
add edx, dword [eax + 0x14]
mov dword [0x4e8c70], edx
pop esi
pop ebx
ret

Function at 0x4120ac
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x412155
test eax, edx
je 0x412158
push 0
push 0
cmp word [eax - 0xa], 2
je 0x4120d5
push edx
mov edx, eax
mov eax, esp
call fcn.00406a78
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x4120eb
push eax
lea eax, [esp + 8]
call fcn.00406a78
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4120fa
movzx eax, word [eax]
sub eax, ecx
jmp 0x412121
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 0x41213b
add ecx, 4
js 0x412112
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x412138
push eax
mov eax, ecx
mov edx, 2
call fcn.0040609c
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41211f
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x412121
xor eax, eax
ret
test eax, eax
je 0x412168
test edx, edx
jne 0x4120bc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406900
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41339e
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x4133bf
cmp ebx, 3
je 0x4133bf
cmp ebx, 0x7b
je 0x4133bf
mov eax, esi
call fcn.00413340
test al, al
jne 0x4133c3
xor eax, eax
jmp 0x4133c5
mov al, 1
pop esi
pop ebx
ret

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

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