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

Disassembly:
dec edx
mov word [ebx + eax*8 - 0x68], es
mov esp, 0xfb8b6162
mov edx, 0x86965a1b
mov eax, 0x5b291be8
dec eax
push es
pop esi
fstp qword [ecx + 9]
pop ss
sbb dl, byte [esp + eax*4 - 0x32]
add ebp, dword [ecx]
xor cl, cl
dec esp
xchg edi, eax
aas
push es
fadd dword [ecx + 0x5f]
sbb dword [ecx + ebx + 0x51], esp
mov ebp, dword [edi - 0x5b952445]
xchg dword [ecx + edx + 0x1f25de36], esp
sbb byte [ebx], cl
push eax
adc dword [esi], esi
fisub word [0x500b181f]
xor esp, esi
sub ebx, dword [esi + 0x477f958c]
adc eax, 0x8ba6ae28
mov edx, 0xbf57e69b
mov esp, dword [ebx - 0x29]
push cs
out dx, eax
fsub st(7)
mov ch, 0x8a
dec edx
das
sub ah, bl
movsd dword es:[edi], dword [esi]
shl dword [edi - 0x2174202b], cl
jae 0x4e3e8c
xor eax, 0x8a776a7b
pop eax
clc
jmp 0x4e3e55

Function at 0x509acf
Capabilities:
Encode data using xor

Disassembly:
or ecx, dword [edx]
inc edx
sub esp, dword [esi + 0x6fe728d5]
in al, dx
cmp dword [esi + edx*4 + 0xc], esp
sub al, 0xcd
cmp dword [ecx + edx*4 + 0x6d], eax
pushfd
enter 0x52ce, 0x4d
push esp
pop edx
pop eax
mov byte [eax - 0x21], ah
pushfd
scasb al, byte es:[edi]
or ecx, esp
jnp 0x509af0
mov ebx, 0x1f3d2388
std
outsb dx, byte [esi]
jmp 0x509b31
xor al, 0xf3
pop ebp
dec ebp
stc
jge 0x509a9f
pop ebx
div dword [esp + ebp*2 + 0x56]
invalid
fiadd word [ebx - 0x25]
pop ds
shr byte fs:[edx + 0x4018c96], 0xc9
and ch, byte [ecx]
mov al, byte [0x5bfdba09]
ficom dword [edx - 0x2d]
sti
mov edx, 0x52da5bfd
sar ebx, cl
or bl, byte [edi]
test eax, 0xa982ca2a
cmpsb byte [esi], byte es:[edi]
or dword [edx + 0x49], ebx
fisttp word [edx + esi + 0x3b]
jnp 0x509ae0
fistp dword [eax]
stosd dword es:[edi], eax
cmp dword [edx + 0x1b5a9967], edx
invalid
sub byte [ebp - 0x73], bh
inc edi
xchg byte [eax + 0x58497f76], bl
dec ecx
pop eax
in al, 0x46
jbe 0x509b56
and al, 0x5a
pop ebx
pop esp
inc ebp
bound ecx, qword [edx - 0x5be12629]
sub dword [ecx + 0x48], edi
add eax, 0x47d89528
pop eax
dec ebx
adc al, byte fs:[edi + edx*8]
adc al, byte [edi + edx*8]
cmp dword [ecx + 0x77f96755], edx
imul esi, dword [ecx], 0xffffff98
mov edx, 0x6264fa54
out dx, eax
sbb eax, 0xf5d3f4f
push edi
xor ebx, dword [ecx + edx*4 - 0x457c497]
mov ecx, 0x9f2b40f8
and al, 0xa9
cli
cmpsb byte [esi], byte es:[edi]
sub al, 0x5a
push edi
sub cl, byte [esi + 0x54]
je 0x509b3a
les esi, [edi]
cmp ah, bl
cli
invalid
Function at 0x602bbf
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov bh, bl
loopne 0x602c15
stosb byte es:[edi], al
jge 0x602c3c
xor ebp, dword [0xc0141f81]
adc dh, dl
jg 0x602c81
dec esp
imul ebx, dword [esi + 0x5318282b], 8
and bh, byte [eax + 0x2c]
das
jecxz 0x602cc2
out 0x6a, eax
jge 0x602cb1
cmp dx, si
je 0x602ca7
add ecx, ebx
cmp dx, 0x2c
jne 0x602cac
add byte [ebx - 0x7ba3826], cl
cmp dword [eax], eax
add byte [eax], al
push edi
xor edx, edx
mov dword [ebp - 0xc], ebx
movzx eax, word [esi]
or edi, 0xffffffff
mov ecx, eax
cmp ax, word [ebp - 4]
jb 0x602d0a
movzx ecx, ax
cmp ax, word [ebp - 8]
ja 0x602d0a
imul ecx, edx, 0xa
add esi, 2
movzx edx, ax
add edx, 0xffffffd0
add edx, ecx
cmp edx, 0xffff
jg 0x602d22
movzx ecx, word [esi]
mov eax, ecx
cmp cx, word [ebp - 4]
jae 0x602ce0
push 0x7d
pop eax
cmp cx, ax
jne 0x602d2d
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [ebx], edx
mov dword [eax], edi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp + 0xc]
mov dword [eax], 5
jmp 0x602d1b
add esi, 2
push 0x7d
pop ecx
movzx eax, word [esi]
cmp ax, cx
je 0x602d14
xor edi, edi
cmp ax, word [ebp - 4]
jb 0x602d6f
mov ebx, eax
cmp bx, word [ebp - 8]
ja 0x602d6c
imul ecx, edi, 0xa
add esi, 2
movzx edi, bx
add edi, 0xffffffd0
add edi, ecx
cmp edi, 0xffff
jg 0x602d22
movzx eax, word [esi]
mov ebx, eax
cmp ax, word [ebp - 4]
jae 0x602d45
mov ebx, dword [ebp - 0xc]
cmp edi, edx
jge 0x602d14
mov eax, dword [ebp + 0xc]
mov dword [eax], 4
jmp 0x602d1b
Function at 0x40226c
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x40227e
call fcn.00678b98
mov eax, dword [0x6830a3]
shl eax, 2
mov dword [0x6830a7], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleW
mov edx, eax
mov dword [0x6830ab], edx
call fcn.0066d734
pop edx
call fcn.0066d5d0
call fcn.0066d87c
push 0x68304c
push 0
call sub.KERNEL32.DLL_GetModuleHandleW
mov dword [0x6830ab], eax
push 0
jmp 0x67a6e4
push ebx
push edi
push esi
sub esp, 0x50
mov esi, dword [esp + 0x60]
mov eax, dword [esi + 0x10]
and eax, 1
mov dword [0x68c588], eax
call fcn.0066d848
sub esp, 8
push dword [esi + 0x20]
push dword [esi + 0x1c]
call fcn.00676314
add esp, 4
push dword [esi + 0x28]
call fcn.0066ed38
add esp, 4
push dword [esi + 0x44]
call fcn.0066ed48
add esp, 0x10
mov dword [0x69d508], 1
mov dword [0x69d50c], esi
lea eax, [esp + 4]
mov dword [0x69d4d0], eax
call fcn.0067b10c
call sub.KERNEL32.DLL_GetEnvironmentStringsW
mov dword [0x69d4d8], eax
call sub.KERNEL32.DLL_GetCommandLineW
mov dword [0x69d4e0], eax
sub esp, 8
push dword [esi + 0x30]
push dword [esi + 0x2c]
call fcn.00679148
add esp, 0x10
push dword [esi + 0x40]
push dword [esi + 0x3c]
push dword [esi + 0x38]
push dword [esi + 0x34]
call fcn.00679188
add esp, 8
push 0
push 0x69d508
call fcn.0067a4bc
add esp, 0x10
test byte [esi + 0x10], 1
jne 0x67a7b8
sub esp, 4
push dword [0x69d4fc]
push dword [0x69d4f8]
push dword [0x69d4ec]
call dword [esi + 0x18]
add esp, 0x10
push 0xffffffffffffffff
push eax
push 0
push 0
jmp 0x67a88a
mov eax, dword [0x69d4e0]
nop dword [eax]
add eax, 2
movzx ecx, word [eax - 2]
cmp ecx, 9
je 0x67a7c4
movzx edx, cx
cmp edx, 0x20
je 0x67a7c4
cmp edx, 0x22
jne 0x67a7e7
mov cx, word [eax]
mov edx, 0x22
jmp 0x67a7ef
add eax, 0xfffffffe
mov edx, 0x20
movzx edi, cx
cmp edx, edi
je 0x67a81c
nop word cs:[eax + eax]
test cx, cx
je 0x67a81c
movzx edi, cx
cmp edi, 9
je 0x67a81c
movzx ecx, word [eax + 2]
add eax, 2
cmp edx, ecx
jne 0x67a804
movzx ecx, cx
lea edi, [eax + 2]
cmp ecx, 0x22
cmovne edi, eax
jmp 0x67a837
add edi, 2
movzx eax, word [edi]
cmp eax, 0x20
je 0x67a834
movzx eax, ax
cmp eax, 9
je 0x67a834
mov ebx, dword [esi + 0x18]
sub esp, 0xc
push 0
call sub.KERNEL32.DLL_GetModuleHandleW
add esp, 0xc
mov esi, eax
sub esp, 0xc
lea eax, [esp + 0x18]
push eax
call sub.KERNEL32.DLL_GetStartupInfoW
add esp, 0xc
mov eax, dword [esp + 0x38]
test al, 1
movzx eax, word [esp + 0x3c]
mov ecx, 0xa
cmovne ecx, eax
push ecx
push edi
push 0
push esi
call ebx
push 0xffffffffffffffff
push eax
push 0
push 0
call fcn.00678f4c
add esp, 0x10
add esp, 0x50
pop esi
pop edi
pop ebx
ret
Function at 0x40b0e0
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.0040de94
test esi, esi
jne 0x40b116
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.0040e02c
jmp 0x40b134
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040b024
mov edi, eax
test esi, esi
je 0x40b134
cmp dword [ebx], 0
je 0x40b134
dec esi
jmp 0x40b11d
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x40cba0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.0040d060
mov byte [esp], al
cmp byte [esp], 0
jne 0x40cd29
test edi, edi
je 0x40cd29
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40cc69
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x40cc44
cmp edi, 0xffffffff
je 0x40cc05
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40cc05
mov byte [esp], 0
jmp 0x40cd29
cmp dword [esi], 1
jg 0x40cc44
cmp dword [esi], 0
jne 0x40cc36
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40cc36
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40cd29
lea eax, [esp + 0xc]
call fcn.0040c838
dec ebp
test ebp, ebp
jg 0x40cbea
cmp edi, 0xffffffff
je 0x40cc69
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40cc67
mov byte [esp], 0
jmp 0x40cd29
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40cbae
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40cc69
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040cda4
mov edx, eax
mov ebx, dword [0x68e474]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40cccd
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40cccb
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40cccd
xor edi, edi
cmp byte [esp], 0
je 0x40ccf3
mov ebx, dword [esi]
test bl, 1
jne 0x40cd09
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40ccd3
mov byte [esp + 1], 1
jmp 0x40cd09
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40ccf3
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40cc80
cmp byte [esp], 0
je 0x40cd29
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40db2c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x68dbd0], 0
je 0x40db93
cmp word [0x68dec0], 0xd7b2
jne 0x40db55
cmp dword [0x68dec8], 0
jbe 0x40db55
mov eax, 0x68debc
call dword [0x68ded8]
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, 0x40dbc0
call fcn.0040e7f8
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x68335c], 0
jne 0x40dbaf
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret

Function at 0x40dd54
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 [0x683320], 0
je 0x40dd7f
mov edx, edi
mov eax, esi
call dword [0x683320]
mov ebx, eax
jmp 0x40dd90
mov eax, 8
call fcn.0040a958
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x68dbd1], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40dd1c
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 0x40ddc0
mov eax, ebx
call fcn.0040a974
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x411bf8
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 0x411d5f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040de94
cmp si, word [0x683d30]
jb 0x411c90
cmp si, word [0x683f30]
ja 0x411c90
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x411c90
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x683d30]
jae 0x411c6a
mov edi, ebx
dec edi
jmp 0x411c8b
cmp si, word [ebx*8 + 0x683d30]
jbe 0x411c7a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x411c8b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x683d34]
call fcn.00411b18
jmp 0x411c90
cmp edi, dword [ebp - 8]
jae 0x411c54
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x411d3f
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x411d3f
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.0040eb9c
push dword [ebp - 0x160]
push 0x411d7c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040eb9c
push dword [ebp - 0x164]
push 0x411d8c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040eb9c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040edd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411d66
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040def4
pop eax
jmp eax
Function at 0x411f14
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 0x41201a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x690794
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x6907ac]
jne 0x411f60
mov eax, esi
mov edx, 0x6907ae
mov ecx, 0x55
call fcn.0040eb9c
push 0x690794
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x412002
push 0x690794
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
call fcn.0040de94
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x411fcf
cmp byte [0x690790], 0
je 0x411f94
mov edx, esi
mov eax, ebx
call fcn.00411df8
jmp 0x411fcf
mov edx, esi
mov eax, ebx
call fcn.00411bf8
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x411fcf
cmp dword [esi], 0
je 0x411fb8
mov eax, esi
mov edx, 0x412034
call fcn.0040ecf4
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00411bf8
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040ecf4
push 0x690794
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x6907ac], bx
mov eax, dword [esi]
call fcn.0040eb00
mov ecx, eax
mov eax, 0x6907ae
mov edx, 0xaa
call fcn.00411a78
push 0x690794
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412021
lea eax, [ebp - 4]
call fcn.0040de94
pop eax
jmp eax
Function at 0x41225c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040df88
xor eax, eax
push ebp
push 0x412484
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4122a2
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x4122bc
mov eax, dword [ebp - 4]
call fcn.0040eb00
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.00411a78
cmp word [ebp - 0x21e], 0
je 0x412467
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x412494
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x41238b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x412494
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x41238b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x4124d0
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x41238b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x4124d0
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x41238b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x412504
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x41238b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x412538
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x412467
xor eax, eax
push ebp
push 0x412460
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0041205c
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x4123ee
mov eax, dword [ebp - 0x14]
call fcn.0040a958
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040eb60
jmp 0x412439
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x412578
mov eax, dword [ebp - 0x10]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x412439
mov eax, dword [ebp - 0x14]
call fcn.0040a958
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x412578
mov eax, dword [ebp - 0x10]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040eb60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412467
cmp dword [ebp - 0xc], 0
je 0x412454
mov eax, dword [ebp - 0xc]
call fcn.0040a974
mov eax, dword [ebp - 0x10]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41248b
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040def4
pop eax
jmp eax
Function at 0x412794
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.0040df88
xor eax, eax
push ebp
push 0x412856
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.0040eb9c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ed4c
mov eax, dword [ebx]
call fcn.00412640
test al, al
jne 0x412831
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040eb9c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ed4c
mov eax, dword [ebx]
call fcn.00412640
test al, al
jne 0x412831
mov eax, ebx
call fcn.0040de94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41285d
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040def4
lea eax, [ebp - 4]
call fcn.0040de94
pop eax
jmp eax

Function at 0x41447c
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 0x414fb0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x415093
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x68e510], 1
jae 0x415083
call fcn.0040bd38
call fcn.0040b914
call fcn.0040ad70
call fcn.0040a71c
push 0x400
call sub.KERNEL32.DLL_SetThreadLocale
call fcn.0041197c
mov byte [0x683344], 2
mov dword [0x68db8c], 0x68209e
mov dword [0x68db90], 0x6820c2
mov byte [0x68dbd2], 2
call fcn.0041447c
mov dword [0x68dbdc], eax
mov dword [0x68db78], 0x410614
call fcn.0040bd74
call fcn.0040bd90
mov word [0x68dbe4], 0xd7b0
mov word [0x68dec0], 0xd7b0
mov word [0x68e19c], 0xd7b0
call sub.KERNEL32.DLL_GetCommandLineW
mov dword [0x68dbc4], eax
call fcn.00408f20
mov dword [0x68dbc0], eax
call sub.KERNEL32.DLL_GetACP
mov dword [0x68e4f8], eax
mov dword [0x68e4fc], 0x4b0
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x68dbb8], eax
call fcn.00414490
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41509a
pop eax
jmp eax
Function at 0x4275b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x427609
test eax, edx
je 0x42760c
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4275c7
movzx eax, word [eax]
sub eax, ecx
jmp 0x4275ee
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 [eax + ecx]
xor ebx, dword [edx + ecx]
jne 0x4275ef
add ecx, 4
js 0x4275df
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4275ec
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4275ee
xor eax, eax
ret
test eax, eax
je 0x427618
test edx, edx
jne 0x4275b8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.0040eb00
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x428a62
test esi, 0x400
jne 0x4289f9
test esi, 0x10
setne bl
jmp 0x428a62
cmp byte [esp], 0
je 0x428a2d
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x428a62
push eax
call sub.KERNEL32.DLL_CloseHandle
test esi, 0x10
setne bl
jmp 0x428a62
test esi, 0x10
je 0x428a39
mov bl, 1
jmp 0x428a62
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x428a60
push eax
call sub.KERNEL32.DLL_CloseHandle
xor ebx, ebx
jmp 0x428a62
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42db3c
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 0x100
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
test eax, eax
jle 0x42db75
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040e02c
jmp 0x42db7e
mov eax, ebx
mov edx, esi
call fcn.0040e284
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42db88
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, ecx
mov esi, edx
mov ebx, eax
push 3
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
test eax, eax
jle 0x42dbac
movzx eax, word [esp]
jmp 0x42dbae
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x42f8a4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x42f9cb
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042f6ac
mov esi, eax
mov eax, dword [0x68cff8]
cmp byte [eax], 0
je 0x42f971
mov eax, dword [0x68d00c]
call fcn.0040b8b0
call fcn.0040ab5c
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.KERNEL32.DLL_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x42f874]
call fcn.00411004
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.KERNEL32.DLL_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x42f9e4
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x42f9ad
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x68d120]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x68db14]
call fcn.0041171c
push eax
call fcn.00682852
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call fcn.00682876
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f9d2
lea eax, [ebp - 4]
mov edx, dword [0x42f874]
call fcn.00411128
pop eax
jmp eax