joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001c450
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100fa950
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
xor ebx, ebx
mov dword [esp + 8], 0x1010bfb4
mov dword [esp + 0xc], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x30]
lea eax, [esp + 8]
push eax
push edx
mov dword [esp + 0x2c], ebx
call fcn.1001c2c0
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x1001c4c3
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0xffffffff
call fcn.1001d230
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 8
push ebp
push esi
xor esi, esi
cmp eax, ebx
push edi
mov ebp, 4
jle 0x1001c4fe
mov eax, dword [esp + 0x18]
mov edi, dword [eax + esi*4]
mov ecx, dword [edi + 8]
push ecx
call dword [0x1010a124]
mov dl, byte [edi]
add esp, 4
not dl
shr edx, 3
and edx, 2
lea eax, [edx + eax*2 + 4]
add ebp, eax
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
jl 0x1001c4d1
lea edi, [ebp + 6]
push edi
call dword [0x1010a100]
mov ecx, edi
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0x10], esi
and ecx, 3
lea ebp, [esi + 4]
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x3c], ebx
cmp eax, ebx
jle 0x1001c5ce
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
mov ebx, dword [eax + ecx*4]
mov dx, word [ebx]
mov word [ebp], dx
mov al, byte [ebx]
test al, 0x10
je 0x1001c569
mov eax, dword [ebx + 8]
push eax
call dword [0x1010a124]
mov esi, dword [ebx + 8]
add esp, 4
lea ecx, [eax + eax + 2]
lea edi, [ebp + 2]
jmp 0x1001c588
mov ax, word [ebx + 2]
mov word [ebp + 2], ax
mov ecx, dword [ebx + 8]
push ecx
call dword [0x1010a124]
mov esi, dword [ebx + 8]
add esp, 4
lea ecx, [eax + eax + 2]
lea edi, [ebp + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 8]
push eax
call dword [0x1010a124]
mov cl, byte [ebx]
add esp, 4
not cl
shr ecx, 3
and ecx, 2
lea eax, [ecx + eax*2 + 4]
mov ecx, dword [esp + 0x1c]
add ebp, eax
mov eax, dword [esp + 0x3c]
inc eax
cmp eax, ecx
mov dword [esp + 0x3c], eax
jl 0x1001c538
mov esi, dword [esp + 0x10]
xor ebx, ebx
push esi
mov word [ebp], 0x80
call dword [0x1010a418]
mov ecx, dword [esp + 0x38]
push eax
call fcn.100f72ca
push esi
mov dword [esp + 0x40], eax
call dword [0x1010a0fc]
add esp, 4
mov eax, dword [esp + 0x1c]
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x30], 2
jle 0x1001c632
mov ebp, dword [0x1010a22c]
mov edx, dword [esp + 0x18]
mov esi, dword [edx + edi*4]
cmp esi, ebx
je 0x1001c629
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1001c620
push eax
call ebp
push esi
call fcn.100f6cd0
add esp, 4
mov eax, dword [esp + 0x1c]
inc edi
cmp edi, eax
jl 0x1001c60b
mov dword [esp + 0x14], 0x1010bfb4
mov eax, dword [esp + 0x18]
pop edi
pop esi
cmp eax, ebx
mov dword [esp + 0x28], 3
pop ebp
je 0x1001c656
push eax
call fcn.100f6cd0
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x1003a3f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100fca88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [esp + 0xc], esi
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov dword [esi + 0x50], ecx
mov ecx, dword [esp + 0x2c]
push eax
push 0xe
push edi
mov dword [esp + 0x24], eax
lea ebx, [esi + 0x20]
mov dword [esi], 0x1010f0f0
mov dword [esi + 8], edx
mov dword [esi + 0xc], ecx
call dword [0x1010a2d8]
mov eax, edi
lea edx, [esi + 0x10]
push 2
push 6
mov ecx, dword [eax]
push ebx
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [edi]
mov ecx, dword [edi + 4]
add eax, 7
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
add eax, 4
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
add eax, 0xc
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], eax
mov eax, dword [edi]
mov ecx, dword [edi + 0xc]
add eax, 7
inc ecx
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
mov eax, dword [edi + 4]
mov ecx, dword [edi]
add eax, 0xc
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], eax
mov eax, dword [edi]
mov edi, dword [edi + 4]
mov dword [esi + 0x48], eax
add edi, 4
mov dword [esi + 0x4c], edi
call dword [0x10109090]
push eax
mov ecx, esi
call fcn.100f6d8a
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
Function at 0x1003a550
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100fcac8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [esp + 0x10], esi
mov dword [esi + 4], eax
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x3c]
mov dword [esi + 8], ecx
mov ebx, dword [esp + 0x34]
mov ecx, edx
mov ebp, dword [esp + 0x38]
neg ecx
sbb ecx, ecx
mov dword [esp + 0x1c], eax
and ecx, 0xe
mov eax, dword [esp + 0x28]
add ecx, 0xe
mov dword [esi + 0x50], eax
add ecx, ebx
mov eax, dword [esp + 0x24]
neg edx
sbb edx, edx
mov dword [esi], 0x1010f0f0
and edx, 0xf
lea edi, [esi + 0x20]
add edx, 0xf
add edx, ebp
mov ebp, eax
mov dword [ebp], ebx
mov ebx, dword [esp + 0x38]
mov dword [ebp + 4], ebx
lea ebx, [esi + 0x10]
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], edx
mov ebp, dword [esp + 0x34]
mov dword [ebx], ebp
mov ebp, dword [esp + 0x38]
mov dword [ebx + 4], ebp
mov dword [ebx + 8], ecx
mov ecx, dword [esp + 0x3c]
test ecx, ecx
mov dword [ebx + 0xc], edx
mov ecx, dword [eax]
je 0x1003a645
mov edx, dword [eax + 4]
add ecx, 0xe
mov dword [edi], ecx
mov dword [edi + 4], edx
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
add ecx, 8
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], ecx
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
add ecx, 0x18
mov dword [esi + 0x30], edx
mov dword [esi + 0x34], ecx
mov ecx, dword [eax]
mov edx, dword [eax + 0xc]
add ecx, 0xe
add edx, 2
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], edx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
add ecx, 0x18
mov dword [esi + 0x40], edx
mov dword [esi + 0x44], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add eax, 8
jmp 0x1003a693
mov edx, dword [eax + 4]
add ecx, 7
mov dword [edi], ecx
mov dword [edi + 4], edx
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
add ecx, 4
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], ecx
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
add ecx, 0xc
mov dword [esi + 0x30], edx
mov dword [esi + 0x34], ecx
mov ecx, dword [eax]
mov edx, dword [eax + 0xc]
add ecx, 7
inc edx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], edx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
add ecx, 0xc
mov dword [esi + 0x40], edx
mov dword [esi + 0x44], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add eax, 4
push 2
push 6
mov dword [esi + 0x48], ecx
push edi
mov dword [esi + 0x4c], eax
call dword [0x10109090]
push eax
mov ecx, esi
call fcn.100f6d8a
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x1c
Function at 0x406b5c
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.00409364
test esi, esi
jne 0x406b92
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.004094ec
jmp 0x406bb0
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406aa0
mov edi, eax
test esi, esi
je 0x406bb0
cmp dword [ebx], 0
je 0x406bb0
dec esi
jmp 0x406b99
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408084
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.00408468
mov byte [esp], al
cmp byte [esp], 0
jne 0x40820e
test edi, edi
je 0x40820e
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40814e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408129
cmp edi, 0xffffffff
je 0x4080e9
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4080e9
mov byte [esp], 0
jmp 0x40820e
mov ebx, dword [esi]
cmp ebx, 1
jg 0x408129
test ebx, ebx
jne 0x40811b
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40811b
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40820e
lea eax, [esp + 0xc]
call fcn.00407d64
dec ebp
test ebp, ebp
jg 0x4080ce
cmp edi, 0xffffffff
je 0x40814e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40814c
mov byte [esp], 0
jmp 0x40820e
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408092
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40814e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040827c
mov edx, eax
mov ebx, dword [0x63c8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4081b2
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4081b0
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4081b2
xor edi, edi
cmp byte [esp], 0
je 0x4081d8
mov ebx, dword [esi]
test bl, 1
jne 0x4081ee
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4081b8
mov byte [esp + 1], 1
jmp 0x4081ee
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4081d8
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408165
cmp byte [esp], 0
je 0x40820e
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 0x408ff4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x63c05c], 0
je 0x40905b
cmp word [0x63c348], 0xd7b2
jne 0x40901d
cmp dword [0x63c350], 0
jbe 0x40901d
mov eax, 0x63c344
call dword [0x63c360]
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, 0x409088
call fcn.00409c30
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x632034], 0
jne 0x409077
push 0
push 0x6329ca
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409224
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 [0x632038], 0
je 0x40924f
mov edx, edi
mov eax, esi
call dword [0x632038]
mov ebx, eax
jmp 0x409260
mov eax, 8
call fcn.004067dc
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x63c05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4091ec
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 0x409290
mov eax, ebx
call fcn.004067f8
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40bb30
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 0x40bc95
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409364
cmp si, word [0x632a08]
jb 0x40bbc8
cmp si, word [0x632c08]
ja 0x40bbc8
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40bbc8
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x632a08]
jae 0x40bba2
mov edi, ebx
dec edi
jmp 0x40bbc3
cmp si, word [ebx*8 + 0x632a08]
jbe 0x40bbb2
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40bbc3
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x632a0c]
call fcn.0040ba50
jmp 0x40bbc8
cmp edi, dword [ebp - 8]
jae 0x40bb8c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40bc77
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bc77
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.0040a04c
push dword [ebp - 0x160]
push 0x40bcb0
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a04c
push dword [ebp - 0x164]
push 0x40bcc0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a04c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a284
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bc9c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004093c4
ret
Function at 0x40be48
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 0x40bf4c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x63eb8c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x63eba4]
jne 0x40be94
mov eax, esi
mov edx, 0x63eba6
mov ecx, 0x55
call fcn.0040a04c
push 0x63eb8c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40bf36
push 0x63eb8c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409364
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bf03
cmp byte [0x63eb88], 0
je 0x40bec8
mov edx, esi
mov eax, ebx
call fcn.0040bd2c
jmp 0x40bf03
mov edx, esi
mov eax, ebx
call fcn.0040bb30
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40bf03
cmp dword [esi], 0
je 0x40beec
mov eax, esi
mov edx, 0x40bf64
call fcn.0040a1a4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040bb30
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a1a4
push 0x63eb8c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x63eba4], bx
mov eax, dword [esi]
call fcn.00409f90
mov ecx, eax
mov eax, 0x63eba6
mov edx, 0xaa
call fcn.0040b9b0
push 0x63eb8c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bf53
lea eax, [ebp - 4]
call fcn.00409364
ret
Function at 0x40c17c
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.00409448
xor eax, eax
push ebp
push 0x40c3a1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40c1bc
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40c1d6
mov eax, dword [ebp - 4]
call fcn.00409f90
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040b9b0
cmp word [ebp - 0x21a], 0
je 0x40c38b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c3b0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c2a5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c3b0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c2a5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c3ec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c2a5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c3ec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c2a5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c420
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c2a5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c454
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40c38b
xor eax, eax
push ebp
push 0x40c384
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040bf8c
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 0x40c314
mov eax, dword [ebp - 0x10]
call fcn.004067dc
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.00409ff8
jmp 0x40c35f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40c494
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c35f
mov eax, dword [ebp - 0x10]
call fcn.004067dc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40c494
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00409ff8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c38b
cmp dword [ebp - 8], 0
je 0x40c37a
mov eax, dword [ebp - 8]
call fcn.004067f8
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 0x40c3a8
lea eax, [ebp - 4]
call fcn.00409364
ret
Function at 0x40c690
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.00409448
xor eax, eax
push ebp
push 0x40c750
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.0040a04c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a1fc
mov eax, dword [ebx]
call fcn.0040c558
test al, al
jne 0x40c72d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a04c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a1fc
mov eax, dword [ebx]
call fcn.0040c558
test al, al
jne 0x40c72d
mov eax, ebx
call fcn.00409364
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c757
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004093c4
lea eax, [ebp - 4]
call fcn.00409364
ret

Function at 0x40d0d0
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 0x40e76c
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffce4
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x31c], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40e8e6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x212]
xor ecx, ecx
mov edx, 0x20a
call fcn.004070fc
push 0x104
lea eax, [ebp - 0x212]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
lea eax, [ebp - 0x31c]
lea edx, [ebp - 0x212]
mov ecx, 0x105
call fcn.00409d7c
push dword [ebp - 0x31c]
push 0x40e8f8
push 0x40e900
lea eax, [ebp - 4]
mov edx, 3
call fcn.00409dcc
mov eax, dword [ebp - 4]
call fcn.00409db8
push eax
call sub.kernel32.dll_LoadLibraryW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40e86c
xor eax, eax
push ebp
push 0x40e865
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40e91c
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_2
mov esi, eax
mov ebx, esi
test esi, esi
je 0x40e828
push 0x8001
call ebx
push 0x40e930
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_2
mov esi, eax
mov ebx, esi
test esi, esi
je 0x40e84e
mov byte [ebp - 0x317], 0
lea eax, [ebp - 0x317]
push eax
call ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e86c
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_2
ret
lea eax, [ebp - 0x212]
xor ecx, ecx
mov edx, 0x20a
call fcn.004070fc
push 0x105
lea eax, [ebp - 0x212]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW_1
mov esi, 0xfffffefb
lea ebx, [ebp - 0xa]
cmp word [ebx], 0x5c
jne 0x40e8bf
mov word [ebx], 0
lea eax, [ebp - 0x212]
push eax
call sub.kernel32.dll_GetFileAttributesW
inc eax
je 0x40e8bf
lea eax, [ebp - 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
sub ebx, 2
inc esi
jne 0x40e899
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e8ed
lea eax, [ebp - 0x31c]
call fcn.004093ac
lea eax, [ebp - 4]
call fcn.004093ac
ret
Function at 0x40e86c
Capabilities:
Get file attributes
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffce4
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x31c], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40e8e6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x212]
xor ecx, ecx
mov edx, 0x20a
call fcn.004070fc
push 0x104
lea eax, [ebp - 0x212]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
lea eax, [ebp - 0x31c]
lea edx, [ebp - 0x212]
mov ecx, 0x105
call fcn.00409d7c
push dword [ebp - 0x31c]
push 0x40e8f8
push 0x40e900
lea eax, [ebp - 4]
mov edx, 3
call fcn.00409dcc
mov eax, dword [ebp - 4]
call fcn.00409db8
push eax
call sub.kernel32.dll_LoadLibraryW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40e86c
xor eax, eax
push ebp
push 0x40e865
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40e91c
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_2
mov esi, eax
mov ebx, esi
test esi, esi
je 0x40e828
push 0x8001
call ebx
push 0x40e930
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_2
mov esi, eax
mov ebx, esi
test esi, esi
je 0x40e84e
mov byte [ebp - 0x317], 0
lea eax, [ebp - 0x317]
push eax
call ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e86c
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_2
ret
lea eax, [ebp - 0x212]
xor ecx, ecx
mov edx, 0x20a
call fcn.004070fc
push 0x105
lea eax, [ebp - 0x212]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW_1
mov esi, 0xfffffefb
lea ebx, [ebp - 0xa]
cmp word [ebx], 0x5c
jne 0x40e8bf
mov word [ebx], 0
lea eax, [ebp - 0x212]
push eax
call sub.kernel32.dll_GetFileAttributesW
inc eax
je 0x40e8bf
lea eax, [ebp - 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
sub ebx, 2
inc esi
jne 0x40e899
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e8ed
lea eax, [ebp - 0x31c]
call fcn.004093ac
lea eax, [ebp - 4]
call fcn.004093ac
ret

Function at 0x421410
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x421469
test eax, edx
je 0x42146c
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x421427
movzx eax, word [eax]
sub eax, ecx
jmp 0x42144e
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 0x42144f
add ecx, 4
js 0x42143f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x42144c
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x42144e
xor eax, eax
ret
test eax, eax
je 0x421478
test edx, edx
jne 0x421418
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret