joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e2d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov ebx, dword [ebp + 8]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + eax + 2], 0
lea eax, [eax + 2]
jne 0x43e2f0
mov edi, eax
sar edi, 1
cmp eax, 0xfffffff5
jge 0x43e30b
mov eax, 0xffffffff
jmp 0x43e30e
add eax, 0xa
push eax
call fcn.00408e20
add esp, 4
mov esi, eax
mov dword [eax], 0x3f005c
mov dword [eax + 4], 0x5c003f
lea eax, [edi + 4]
mov word [esi + 8], 0
mov ecx, esi
add ecx, 8
movzx edx, word [ebx]
test dx, dx
je 0x43e351
add ebx, 2
nop
mov word [ecx], dx
add ecx, 2
movzx edx, word [ebx]
add ebx, 2
test dx, dx
jne 0x43e340
mov word [ecx], 0
mov ecx, 3
sub ecx, edi
and ecx, 2
mov edx, eax
and edx, 0xfffd
imul edx, ecx
and edi, 2
or eax, 2
imul eax, edi
add eax, edx
mov word [esp + 0x2c], ax
mov ecx, eax
and ecx, 2
xor eax, 2
lea eax, [eax + ecx*2]
mov word [esp + 0x2e], ax
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 0x18
mov dword [esp + 0x38], 0
mov dword [esp + 0x40], 0x40
lea eax, [esp + 0x2c]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp], 0xf756c297
mov eax, dword [esp]
add eax, 0x68
movzx ecx, al
mov dword [esp], 0xf756c297
mov eax, dword [esp]
shl eax, 8
add eax, 0x6800
movzx eax, ax
or eax, ecx
mov dword [esp], 0xf756c297
mov ecx, dword [esp]
shl ecx, 0x10
add ecx, 0x680000
mov dword [esp], 0xf756c297
mov edx, dword [esp]
shl edx, 0x18
and ecx, 0xff0000
or ecx, eax
lea edi, [edx + ecx]
add edi, 0x68000000
mov dword [esp], 0xf756c2ac
mov eax, dword [esp]
mov dword [esp], 0xf756c2ad
mov eax, dword [esp]
mov dword [esp], 0xf756c2ae
mov eax, dword [esp]
mov dword [esp], 0xf756c2af
mov eax, dword [esp]
mov dword [esp], 0xf756c2b0
mov eax, dword [esp]
mov dword [esp], 0xf756c2b1
mov eax, dword [esp]
mov eax, dword [0x44ac54]
test eax, eax
je 0x43e480
xor ecx, ecx
mov edx, dword [0x44ac58]
mov ebx, dword [ebp + 0xc]
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0xdcc9f508
je 0x43e485
inc ecx
cmp eax, ecx
jne 0x43e470
jmp 0x43e4a8
mov ebx, dword [ebp + 0xc]
jmp 0x43e4a8
mov eax, dword [edx + ecx*8 + 4]
cmp eax, edi
je 0x43e4a8
mov ecx, esp
lea edx, [esp + 0x34]
push ecx
push edx
push 2
push dword [0x44ac5c]
push eax
call fcn.0043b040
add esp, 0x14
mov edi, eax
push esi
call fcn.00408e30
add esp, 4
test ebx, ebx
je 0x43e4bb
mov eax, dword [esp + 0x20]
mov dword [ebx], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4a2200
Capabilities:
Encode data using xor

Disassembly:
imul ebx, ebp, 0x8a5c9b30
add eax, 0xa3721324
mov dword [0xafc8b127], eax
mov dword [0xafc8b127], eax
shr edi, cl
xchg esi, esi
out dx, eax
push es
xchg ecx, eax
scasb al, byte es:[edi]
ja 0x4a2272
xor byte [ebx], cl
jnp 0x4a21f6
mov esi, 0xdd8b00ff
test eax, 0xe4cf4753
jg 0x4a2234
mov fs, esi
sub eax, 0x23224ede
mov ds, ebp
jmp 0x55501079
sbb dword [esi], eax
or byte [eax], bl
xor eax, 0x89472b03
add al, byte [eax + 0x6baec7bd]
jns 0x4a2234
mov dword [edx], eax
cmp byte [ebp - 0xc945139], 0x79
out dx, al
jge 0x4a228a
fadd dword [ebx]
and dword [esp + ecx + 0x3df47690], edx
add dword [eax - 0xd9e64a3], ebp
iretd
xchg esi, eax
sar dword [ecx], cl
push ds
pop ecx
pop esi
xor dword [eax + 0x7584d57b], edx
push edx
jb 0x4a223c
mov bl, 0xef
dec edi
lea eax, [esi + 0x42]
in al, dx
cmp al, 0x77
push ds
hlt

Function at 0x4a4d00
Capabilities:
Encode data using xor

Disassembly:
aas
xchg dword [0xbbbcd034], esi
cmp al, 0xb3
pushfd
test al, 0xe0
aad 0xfb
and al, 0x41
adc dword fs:[edx + eax + 0x14], 0x8ae7f411
insb byte es:[edi], dx
test al, 0x61
cmp ecx, dword [edi - 0x1c2805dd]
aad 0x3a
lahf
bound ecx, qword [edi + ecx*4 + 0x5955c224]
jb 0x4a4d4a
jecxz 0x4a4d32
mov eax, dword [0xe478b6b8]
and dword [edx], esi
mov eax, 0x21e478b6
mov dh, 0x78
in al, 0x21
jb 0x4a4d38
in al, 0x7e
adc eax, 0x8c8b1aa
bound ecx, qword [esi]
or esi, ecx
sub edi, esi
and dword [ebp + 0x36], edx
mov eax, 0x46acb827
sub edi, esp
mov eax, 0x2b6446ac
cld
mov al, byte [0x3cc3ca2f]
lahf
pop edx
lodsb al, byte [esi]
movsb byte es:[edi], byte [esi]
lahf
xor al, byte [eax + 0x47]
pop esp
add byte [edi], bh
pop edx
mov dl, 0x10
cdq
sbb edi, dword [ecx + 0x57ed093d]
xchg edx, eax
or byte [ebx + 0x19390c04], bl
cmp eax, 0x75b902a8
cmp ebx, dword [0xa639f67e]
fmul qword [edx + 0x1b]
or al, al
and dword [eax + 0x70], esp
dec ebp
dec edi
sub al, 0x1e
push eax
pushal
lodsd eax, dword [esi]
rcr byte [0xc8f23a6b], 0x5d
inc eax
mov eax, dword [0xb7db0ddf]
xor al, 5
mov esi, dword [esi - 0x52]
wait
xchg ebp, eax
jp 0x4a4d31
mov eax, 0xdf08abc8
int3
Function at 0x4209cb
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x420a0a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x420a0a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x420a0a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x420a0a
cmp dword [ecx + 0x74], 0xe
jbe 0x420a0a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x433180
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4331ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4331ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40ed61
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x40eae0
and ecx, edx
dec edx
call fcn.0040ed84
add ecx, 0xa0d2468a
sub edx, 0x532ec86c
xor dword [edi], esi
inc edi
sub ecx, ecx
cmp edi, eax
jne fcn.0040ed61
ret
Function at 0x40ed6c
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x40eae0
call fcn.0040ed8c
xor dword [ebx], esi
add edi, 0xa0700b21
sub edx, edi
inc ebx
push edx
pop edi
sub edx, edi
cmp ebx, ecx
jne fcn.0040ed6c
ret
Function at 0x10001b00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10001b58
cmp byte [esi + ebx - 1], 0xa
je 0x10001b2c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10007084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x10002100
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov edi, dword [0x10007094]
mov esi, dword [ebp + 8]
test edi, edi
je 0x100022c0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x10007094]
movzx eax, al
bt eax, esi
jae 0x10002320
mov ecx, dword [0x10007084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x100021c5
test byte [0x10003030], 8
jne 0x10002260
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x10003040], 8
jne 0x10002210
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10002194
cmp esi, 3
jbe 0x100021d0
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x100050d0]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x10002194
mov ecx, dword [0x10007094]
test ecx, ecx
je 0x10002300
mov dword [esp], 0x10003040
call dword [0x10007094]
test al, 8
je 0x1000216b
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x1000216b
mov ebx, dword [0x10007094]
test ebx, ebx
je 0x100022e0
mov dword [esp], 0x10003030
call dword [0x10007094]
test al, 8
je 0x10002156
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x1000215e
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x10007094
call sym._load_func.part.0
jmp 0x1000211d
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x10007094
call sym._load_func.part.0
jmp 0x1000226a
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x10007094
call sym._load_func.part.0
jmp 0x1000221e
mov eax, 0xffffffff
jmp 0x100021c5
Function at 0x404720
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.00406928
test esi, esi
jne 0x404756
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.00406a90
jmp 0x404774
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404664
mov edi, eax
test esi, esi
je 0x404774
cmp dword [ebx], 0
je 0x404774
dec esi
jmp 0x40475d
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405688
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.00405a74
mov byte [esp], al
cmp byte [esp], 0
jne 0x405811
test edi, edi
je 0x405811
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405748
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405723
cmp edi, 0xffffffff
je 0x4056e7
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4056e7
mov byte [esp], 0
jmp 0x405811
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405723
test ebx, ebx
jne 0x40571c
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402594
test eax, eax
jne 0x40571c
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405811
pause
dec ebp
test ebp, ebp
jg 0x4056cc
cmp edi, 0xffffffff
je 0x405748
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405746
mov byte [esp], 0
jmp 0x405811
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405696
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402594
cmp ebx, eax
jne 0x405748
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405884
mov edx, eax
mov ebx, dword [0x5418c8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4057af
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4057ad
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4057af
xor edi, edi
cmp byte [esp], 0
je 0x4057d8
mov ebx, dword [esi]
test bl, 1
jne 0x4057f1
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402594
cmp ebx, eax
jne 0x4057b5
mov byte [esp + 1], 1
jmp 0x4057f1
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402594
cmp ebx, eax
jne 0x4057d8
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405762
cmp byte [esp], 0
je 0x405811
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 0x40658c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x541050], 0
je 0x4065ed
cmp word [0x54132c], 0xd7b2
jne 0x4065b5
cmp dword [0x541334], 0
jbe 0x4065b5
mov eax, 0x541328
call dword [0x541344]
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 0x406618
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x53b028], 0
jne 0x406609
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4067e4
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 [0x53b02c], 0
je 0x40680f
mov edx, edi
mov eax, esi
call dword [0x53b02c]
mov ebx, eax
jmp 0x406820
mov eax, 8
call fcn.00404398
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x541051], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4067ac
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 0x406855
mov edx, 8
mov eax, ebx
call fcn.004043b4
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x408a20
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 0x408b85
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406928
cmp si, word [0x53b7dc]
jb 0x408ab8
cmp si, word [0x53b9dc]
ja 0x408ab8
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408ab8
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x53b7dc]
jae 0x408a92
mov edi, ebx
dec edi
jmp 0x408ab3
cmp si, word [ebx*8 + 0x53b7dc]
jbe 0x408aa2
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408ab3
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x53b7e0]
call fcn.00408930
jmp 0x408ab8
cmp edi, dword [ebp - 8]
jae 0x408a7c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408b67
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408b67
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.00407384
push dword [ebp - 0x160]
push 0x408ba0
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407384
push dword [ebp - 0x164]
push 0x408bb0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407384
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004075bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408b8c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406988
ret
Function at 0x408d38
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 0x408e3b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x543b51
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x543b6a]
jne 0x408d84
mov eax, esi
mov edx, 0x543b6c
mov ecx, 0x55
call fcn.00407384
push 0x543b51
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408e25
push 0x543b51
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406928
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408df3
cmp byte [0x543b50], 0
je 0x408db8
mov edx, esi
mov eax, ebx
call fcn.00408c1c
jmp 0x408df3
mov edx, esi
mov eax, ebx
call fcn.00408a20
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408df3
cmp dword [esi], 0
je 0x408ddc
mov eax, esi
mov edx, 0x408e54
call fcn.004074dc
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408a20
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004074dc
push 0x543b51
call sub.kernel32.dll_EnterCriticalSection
mov word [0x543b6a], bx
push 0xaa
mov eax, dword [esi]
call fcn.004072e8
push eax
push 0x543b6c
call sub.kernel32.dll_lstrcpynW
push 0x543b51
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e42
lea eax, [ebp - 4]
call fcn.00406928
ret
Function at 0x409070
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.00406a0c
xor eax, eax
push ebp
push 0x409295
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4090b0
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4090ca
push 0x105
mov eax, dword [ebp - 4]
call fcn.004072e8
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40927f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4092a4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409199
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4092a4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409199
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4092e0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409199
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4092e0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409199
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409314
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409199
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409348
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40927f
xor eax, eax
push ebp
push 0x409278
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408e7c
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 0x409208
mov eax, dword [ebp - 0x10]
call fcn.00404398
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.00407348
jmp 0x409253
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409388
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409253
mov eax, dword [ebp - 0x10]
call fcn.00404398
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409388
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407348
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40927f
cmp dword [ebp - 8], 0
je 0x40926e
mov eax, dword [ebp - 8]
call fcn.004043b4
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 0x40929c
lea eax, [ebp - 4]
call fcn.00406928
ret
Function at 0x4095d4
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.00406a0c
xor eax, eax
push ebp
push 0x409694
push dword fs:[eax]
mov dword fs:[eax], esp
push 8
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.00407384
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407534
mov eax, dword [ebx]
call fcn.0040949c
test al, al
jne 0x409671
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407384
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407534
mov eax, dword [ebx]
call fcn.0040949c
test al, al
jne 0x409671
mov eax, ebx
call fcn.00406928
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40969b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406988
lea eax, [ebp - 4]
call fcn.00406928
ret

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

Disassembly:
cmp eax, edx
je 0x41acd9
test eax, edx
je 0x41acdc
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41ac97
movzx eax, word [eax]
sub eax, ecx
jmp 0x41acbe
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 0x41acbf
add ecx, 4
js 0x41acaf
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41acbc
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41acbe
xor eax, eax
ret
test eax, eax
je 0x41ace8
test edx, edx
jne 0x41ac88
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41bcc0
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.004072e8
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41bd2a
test ah, 4
je 0x41bd23
test bl, bl
jne 0x41bce8
mov al, 1
jmp 0x41bd51
test al, 0x10
je 0x41bcf0
xor eax, eax
jmp 0x41bd51
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41bd14
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41bd51
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41bd51
test al, 0x10
sete al
jmp 0x41bd51
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x41bd4b
cmp ebx, 3
je 0x41bd4b
cmp ebx, 0x7b
je 0x41bd4b
mov eax, esi
call fcn.0041bc80
test al, al
jne 0x41bd4f
xor eax, eax
jmp 0x41bd51
mov al, 1
pop edi
pop esi
pop ebx
ret