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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x41d154
sub eax, 4
mov eax, dword [eax]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x41d16e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x41d169
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41d173
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x41d1e1
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x41d22a
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x41d19f
inc dword [ebp - 0xc]
jmp 0x41d1b7
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x41d1b7
cmp dword [ebp - 0xc], 0
jle 0x41d1b7
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x41d1d9
xor eax, eax
jmp 0x41d1d5
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x41d1d4
mov eax, esi
jmp 0x41d22d
inc eax
cmp eax, ecx
jle 0x41d1c1
inc esi
cmp esi, dword [ebp - 8]
jl 0x41d18b
jmp 0x41d22a
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x41d22a
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x41d202
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x41d224
xor eax, eax
jmp 0x41d220
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x41d21f
mov eax, esi
jmp 0x41d22d
inc eax
cmp eax, ecx
jle 0x41d20c
inc esi
cmp esi, dword [ebp - 8]
jl 0x41d1ea
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41d410
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x41d42f
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x41d43f
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, dword [ebp + 8]
sub ebx, esi
inc ebx
cmp dword [ebp + 8], 0
jl 0x41d561
test ebx, ebx
jl 0x41d561
test esi, esi
jle 0x41d561
mov eax, dword [ebp - 8]
call fcn.00407aa4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00407aa4
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, eax
add ecx, eax
movzx eax, word [ebp - 0xa]
cmp ax, word [ebp + 0xc]
je 0x41d4fe
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0x41d561
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x41d4e3
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x41d4b2
inc dword [ebp - 0x14]
jmp 0x41d4c2
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x41d4c2
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x41d4cd
or eax, 0xffffffff
jmp 0x41d4e3
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x41d4e0
inc eax
jmp 0x41d4e3
or eax, 0xffffffff
test eax, eax
jl 0x41d4eb
cmp esi, eax
jg 0x41d4a0
cmp esi, eax
jg 0x41d4f6
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x41d564
inc edx
dec dword [ebp - 0x1c]
jne 0x41d49c
jmp 0x41d561
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0x41d561
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x41d548
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x41d527
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x41d532
or eax, 0xffffffff
jmp 0x41d548
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x41d545
inc eax
jmp 0x41d548
or eax, 0xffffffff
test eax, eax
jl 0x41d550
cmp esi, eax
jg 0x41d510
cmp esi, eax
jg 0x41d55b
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x41d564
inc edx
dec dword [ebp - 0x1c]
jne 0x41d50c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x407378
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4074b2
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
mov al, 1
test bl, bl
je 0x407400
movzx eax, bl
add ax, 0x41
dec eax
mov word [ebp - 0x10], ax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], 0
lea eax, [ebp - 0x420]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
cmp esi, 0x104
jbe 0x4073f1
mov edx, esi
dec edx
lea eax, [ebp - 4]
call fcn.0040c9b0
mov eax, dword [ebp - 4]
call fcn.0040c824
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x407426
test bl, bl
je 0x407426
mov word [ebp - 0xc], 0x5c
mov word [ebp - 0xa], 0
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x10]
mov ecx, 4
call fcn.0040c8d8
jmp 0x407472
lea eax, [ebp - 0x218]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
mov edi, eax
cmp edi, 0x104
ja 0x407456
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x218]
mov ecx, 0x104
call fcn.0040c8d8
jmp 0x407472
mov edx, edi
dec edx
mov eax, dword [ebp - 8]
call fcn.0040c9b0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0040c824
push eax
push edi
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x40749a
cmp esi, 0x104
jbe 0x40748e
mov eax, dword [ebp - 4]
call fcn.0040c824
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
jmp 0x40749a
lea eax, [ebp - 0x420]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4074b9
lea eax, [ebp - 4]
call fcn.0040b8b4
pop eax
jmp eax

Function at 0x407a88
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.0040b8b4
test esi, esi
jne 0x407abe
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.0040ba4c
jmp 0x407adc
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407968
mov edi, eax
test esi, esi
je 0x407adc
cmp dword [ebx], 0
je 0x407adc
dec esi
jmp 0x407ac5
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x40a3ac
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.0040a86c
mov byte [esp], al
cmp byte [esp], 0
jne 0x40a535
test edi, edi
je 0x40a535
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40a475
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x40a450
cmp edi, 0xffffffff
je 0x40a411
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40a411
mov byte [esp], 0
jmp 0x40a535
cmp dword [esi], 1
jg 0x40a450
cmp dword [esi], 0
jne 0x40a442
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40a442
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40a535
lea eax, [esp + 0xc]
call fcn.0040a068
dec ebp
test ebp, ebp
jg 0x40a3f6
cmp edi, 0xffffffff
je 0x40a475
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40a473
mov byte [esp], 0
jmp 0x40a535
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40a3ba
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40a475
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040a5b0
mov edx, eax
mov ebx, dword [0x8de900]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40a4d9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40a4d7
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40a4d9
xor edi, edi
cmp byte [esp], 0
je 0x40a4ff
mov ebx, dword [esi]
test bl, 1
jne 0x40a515
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40a4df
mov byte [esp + 1], 1
jmp 0x40a515
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40a4ff
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40a48c
cmp byte [esp], 0
je 0x40a535
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 0x40b510
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x8de05c], 0
je 0x40b577
cmp word [0x8de34c], 0xd7b2
jne 0x40b539
cmp dword [0x8de354], 0
jbe 0x40b539
mov eax, 0x8de348
call dword [0x8de364]
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, 0x40b5a4
call fcn.0040c30c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x8c7036], 0
jne 0x40b593
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40b774
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 [0x8c7038], 0
je 0x40b79f
mov edx, edi
mov eax, esi
call dword [0x8c7038]
mov ebx, eax
jmp 0x40b7b0
mov eax, 8
call fcn.00407160
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x8de05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40b73c
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 0x40b7e0
mov eax, ebx
call fcn.0040717c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40fd7c
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 0x40fee8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040b8b4
cmp si, word [0x8c7a18]
jb 0x40fe19
cmp si, word [0x8c7c18]
ja 0x40fe19
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jl 0x40fe19
mov ebx, edi
add ebx, dword [ebp - 8]
sar ebx, 1
jns 0x40fde4
adc ebx, 0
cmp si, word [ebx*8 + 0x8c7a18]
jae 0x40fdf3
mov edi, ebx
dec edi
jmp 0x40fe14
cmp si, word [ebx*8 + 0x8c7a18]
jbe 0x40fe03
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40fe14
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x8c7a1c]
call fcn.0040fc9c
jmp 0x40fe19
cmp edi, dword [ebp - 8]
jge 0x40fdd8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40fec8
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40fec8
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.0040c8d8
push dword [ebp - 0x160]
push 0x40ff04
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040c8d8
push dword [ebp - 0x164]
push 0x40ff14
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040c8d8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040cb14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40feef
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040b914
pop eax
jmp eax
Function at 0x41009c
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 0x4101a2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x8e0c18
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x8e0c30]
jne 0x4100e8
mov eax, esi
mov edx, 0x8e0c32
mov ecx, 0x55
call fcn.0040c8d8
push 0x8e0c18
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x41018a
push 0x8e0c18
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040b8b4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x410157
cmp byte [0x8e0c14], 0
je 0x41011c
mov edx, esi
mov eax, ebx
call fcn.0040ff80
jmp 0x410157
mov edx, esi
mov eax, ebx
call fcn.0040fd7c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x410157
cmp dword [esi], 0
je 0x410140
mov eax, esi
mov edx, 0x4101bc
call fcn.0040ca34
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040fd7c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040ca34
push 0x8e0c18
call sub.kernel32.dll_EnterCriticalSection
mov word [0x8e0c30], bx
mov eax, dword [esi]
call fcn.0040c824
mov ecx, eax
mov eax, 0x8e0c32
mov edx, 0xaa
call fcn.0040fbfc
push 0x8e0c18
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4101a9
lea eax, [ebp - 4]
call fcn.0040b8b4
pop eax
jmp eax
Function at 0x4103e4
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.0040b9a8
xor eax, eax
push ebp
push 0x41060c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x41042a
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x410444
mov eax, dword [ebp - 4]
call fcn.0040c824
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040fbfc
cmp word [ebp - 0x21e], 0
je 0x4105ef
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x41061c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x410513
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x41061c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x410513
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x410658
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x410513
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x410658
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x410513
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x41068c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x410513
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x4106c0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4105ef
xor eax, eax
push ebp
push 0x4105e8
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.004101e4
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 0x410576
mov eax, dword [ebp - 0x14]
call fcn.00407160
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.0040c884
jmp 0x4105c1
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x410700
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4105c1
mov eax, dword [ebp - 0x14]
call fcn.00407160
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x410700
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040c884
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4105ef
cmp dword [ebp - 0xc], 0
je 0x4105dc
mov eax, dword [ebp - 0xc]
call fcn.0040717c
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 0x410613
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040b914
pop eax
jmp eax
Function at 0x41091c
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.0040b9a8
xor eax, eax
push ebp
push 0x4109de
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.0040c8d8
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ca8c
mov eax, dword [ebx]
call fcn.004107c8
test al, al
jne 0x4109b9
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040c8d8
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ca8c
mov eax, dword [ebx]
call fcn.004107c8
test al, al
jne 0x4109b9
mov eax, ebx
call fcn.0040b8b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4109e5
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040b914
lea eax, [ebp - 4]
call fcn.0040b8b4
pop eax
jmp eax

Function at 0x412458
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 0x41b7c8
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov dword [esp], eax
mov eax, dword [esp]
mov eax, dword [eax + 0x28]
mov edx, dword [esp]
lea eax, [edx + eax + 0x44]
mov edx, dword [esp]
movzx edx, byte [edx + 0x3d]
shl edx, 3
lea ecx, [eax + edx]
or edx, 0xffffffff
cmp ecx, eax
je 0x41b7f6
xor edx, dword [eax]
add eax, 4
cmp ecx, eax
jne 0x41b7ed
mov eax, edx
pop edx
ret

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

Disassembly:
push ebx
mov ebx, eax
push ebx
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
setne al
pop ebx
ret
Function at 0x41d018
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
push edi
push ebp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x41d022
mov eax, dword [esp + 0x10000]
add esp, 0xfffffff0
mov dword [esp + 0xc], edx
mov ebx, eax
lea edi, [esp + 0x10]
lea ebp, [esp + 0x1000e]
mov esi, edi
mov eax, ebx
cmp al, 0xf
ja 0x41d05a
and eax, 0x7f
bt word [0x8c7cc5], ax
jae 0x41d06f
push ebp
mov edx, dword [esp + 0x10]
mov ecx, esi
mov eax, dword [0x8c7ccc]
call fcn.0041cf24
mov esi, eax
mov dword [esp + 4], esi
movzx eax, bl
cmp eax, 0xa
ja case.default.0x41d07f
jmp dword [eax*4 + 0x41d086]
mov eax, dword [0x8c7cd8]
mov edx, dword [0x8c7cdc]
mov dword [esp], edx
jmp 0x41d1a7
mov eax, dword [0x8c7cd0]
mov edx, dword [0x8c7cdc]
mov dword [esp], edx
jmp 0x41d1a7
mov eax, dword [0x8c7cd4]
mov edx, dword [0x8c7cdc]
mov dword [esp], edx
jmp 0x41d1a7
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x10], 0
je 0x41d0fc
mov eax, dword [0x8c7ce4]
jmp 0x41d101
mov eax, dword [0x8c7ce0]
mov edx, dword [0x8c7cf0]
mov dword [esp], edx
jmp 0x41d1a7
test byte [0x8c7cc5], 8
je 0x41d11f
mov eax, dword [0x8c7cec]
jmp 0x41d124
mov eax, dword [0x8c7ce8]
mov edx, dword [0x8c7cf0]
mov dword [esp], edx
jmp 0x41d1a7
mov eax, dword [0x8c7cf4]
mov edx, dword [0x8c7d0c]
mov dword [esp], edx
jmp 0x41d1a7
mov eax, dword [0x8c7cf8]
mov edx, dword [0x8c7d0c]
mov dword [esp], edx
jmp 0x41d1a7
mov eax, dword [0x8c7d00]
mov edx, dword [0x8c7d0c]
mov dword [esp], edx
jmp 0x41d1a7
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x14], 0
je 0x41d170
mov eax, dword [0x8c7d08]
jmp 0x41d175
mov eax, dword [0x8c7d04]
mov edx, dword [0x8c7d0c]
mov dword [esp], edx
jmp 0x41d1a7
mov eax, dword [0x8c7cfc]
mov edx, dword [0x8c7d0c]
mov dword [esp], edx
jmp 0x41d1a7
mov eax, dword [0x8c7d10]
mov edx, dword [0x8c7d14]
mov dword [esp], edx
jmp 0x41d1a7
xor eax, eax
xor edx, edx
mov dword [esp], edx
push ebp
mov edx, dword [esp + 0x10]
mov ecx, esi
call fcn.0041cf24
mov esi, eax
mov word [esi], 0
mov eax, ebx
cmp al, 0xf
ja 0x41d1cb
and eax, 0x7f
bt word [0x8c7cc5], ax
jae 0x41d20d
call fcn.0041cfc8
mov byte [esp + 8], al
cmp byte [esp + 8], 0
jne 0x41d1e6
call fcn.0041cfd4
test al, al
je 0x41d201
lea eax, [esp + 0x10]
mov ecx, esi
sub ecx, eax
sar ecx, 1
jns 0x41d1f5
adc ecx, 0
mov edx, edi
mov eax, dword [0x8f2264]
call fcn.0041c020
cmp byte [esp + 8], 0
jne 0x41d20d
call fcn.0041cff8
mov eax, ebx
cmp al, 0xf
ja 0x41d21e
and eax, 0x7f
bt word [0x8c7cc3], ax
jae 0x41d226
push edi
call sub.kernel32.dll_OutputDebugStringW
cmp bl, 0xf
ja 0x41d236
and ebx, 0x7f
bt word [0x8c7cc7], bx
jae 0x41d249
call fcn.0041cff8
mov edx, dword [esp]
mov eax, dword [esp + 4]
call fcn.0041be5c
add esp, 0x10014
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42f76c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x42f7c5
test eax, edx
je 0x42f7c8
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x42f783
movzx eax, word [eax]
sub eax, ecx
jmp 0x42f7aa
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 0x42f7ab
add ecx, 4
js 0x42f79b
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
xor eax, eax
ret
test eax, eax
je 0x42f7d4
test edx, edx
jne 0x42f774
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x430c70
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.0040c824
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x430cda
test ah, 4
je 0x430cd3
test bl, bl
jne 0x430c98
mov al, 1
jmp 0x430d01
test al, 0x10
je 0x430ca0
xor eax, eax
jmp 0x430d01
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x430cc4
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x430d01
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x430d01
test al, 0x10
sete al
jmp 0x430d01
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x430cfb
cmp ebx, 3
je 0x430cfb
cmp ebx, 0x7b
je 0x430cfb
mov eax, esi
call fcn.00430c30
test al, al
jne 0x430cff
xor eax, eax
jmp 0x430d01
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x430d08
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.0040c824
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x430da6
test esi, 0x400
jne 0x430d3d
test esi, 0x10
setne bl
jmp 0x430da6
cmp byte [esp], 0
je 0x430d71
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x430da6
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x430da6
test esi, 0x10
je 0x430d7d
mov bl, 1
jmp 0x430da6
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x430da4
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x430da6
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret