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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
lea ebx, [ebp - 0x14]
xor eax, eax
push ebp
push 0x19db11
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x3fffffff
call fcn.00182c54
mov edi, eax
add edi, 0x12e499d
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
mov ecx, edi
mov edx, dword [ebp - 0xc]
call fcn.0019d3e0
mov eax, dword [ebp - 0x10]
call fcn.001851b4
add eax, 0x48
push eax
mov eax, esi
mov ecx, 1
mov edx, dword [0x185d70]
call fcn.00185390
add esp, 4
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebp - 0x10]
call fcn.001851b4
add eax, 0x48
mov edx, dword [ebx]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
call fcn.001851b4
add edi, 0x48
add eax, edi
mov edx, dword [ebx]
mov dword [edx + 8], eax
mov eax, dword [ebx]
mov eax, dword [eax]
mov edx, dword [ebx]
add eax, dword [edx + 8]
mov ecx, 7
cdq
idiv ecx
lea ecx, [eax + eax*2]
mov eax, dword [ebx]
mov dword [eax + 4], ecx
add ecx, dword [ebp - 4]
mov eax, dword [ebx]
mov dword [eax + 0x18], ecx
mov eax, dword [ebx]
mov eax, dword [eax + 4]
add eax, dword [ebp + 0xc]
mov edx, dword [ebx]
mov dword [edx + 0x14], eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
add eax, 0x989680
mov edx, dword [ebx]
mov dword [edx + 0x1c], eax
call fcn.0019cce8
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.0018ab7c
push edx
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
mov ecx, dword [ebx]
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], edx
mov eax, 0x3fffffff
call fcn.00182c54
mov edx, dword [ebx]
add eax, dword [edx + 4]
cdq
mov ecx, dword [ebx]
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edx
mov eax, dword [ebp - 0x10]
call fcn.001851b4
mov ecx, eax
mov edx, dword [ebp - 0x10]
mov eax, dword [esi]
add eax, 0x48
call fcn.0018b55c
mov eax, 0x3fffffff
call fcn.00182c54
mov edx, dword [ebx]
add eax, dword [edx + 4]
cdq
mov ecx, dword [ebx]
add dword [ecx + 0x40], eax
adc dword [ecx + 0x44], edx
mov eax, 0x3fffffff
call fcn.00182c54
mov edx, dword [ebx]
add eax, dword [edx + 4]
cdq
mov ecx, dword [ebx]
add dword [ecx + 0x38], eax
adc dword [ecx + 0x3c], edx
mov eax, 0x3fffffff
call fcn.00182c54
mov edx, dword [ebx]
add eax, dword [edx + 4]
cdq
mov ecx, dword [ebx]
add dword [ecx + 0x30], eax
adc dword [ecx + 0x34], edx
mov eax, 0x3fffffff
call fcn.00182c54
mov edx, dword [ebx]
add eax, dword [edx + 4]
cdq
mov ecx, dword [ebx]
add dword [ecx + 0x28], eax
adc dword [ecx + 0x2c], edx
mov eax, 0x3fffffff
call fcn.00182c54
mov edx, dword [ebx]
add dword [edx + 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x19db18
lea eax, [ebp - 0x10]
mov edx, dword [0x185d70]
call fcn.0018539c
ret
Function at 0x19f5c8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x19f6f8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, ebx
call fcn.001840c8
mov eax, dword [esi]
call fcn.00184344
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x19f6e2
mov eax, edi
shr eax, 0x18
mov byte [ebp - 0x10], al
mov eax, edi
shr eax, 0x10
mov byte [ebp - 0xf], al
mov eax, edi
shr eax, 8
mov byte [ebp - 0xe], al
mov eax, edi
mov byte [ebp - 0xd], al
mov eax, dword [ebp - 4]
dec eax
cmp eax, 0
jl 0x19f6ce
mov dword [ebp - 8], eax
mov eax, esi
call fcn.0018459c
mov edx, dword [esi]
mov dl, byte [edx]
mov cl, byte [ebp - 0xf]
add dl, cl
mov byte [eax], dl
mov edi, dword [ebp - 0xc]
sub edi, 2
jl 0x19f67a
inc edi
mov ebx, 2
mov eax, esi
call fcn.0018459c
mov edx, dword [esi]
mov dl, byte [edx + ebx - 2]
mov ecx, dword [esi]
mov cl, byte [ecx + ebx - 1]
add dl, cl
mov cl, byte [ebp - 0xd]
xor dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
dec edi
jne 0x19f658
mov eax, esi
call fcn.0018459c
mov edx, dword [ebp - 0xc]
mov ecx, dword [esi]
mov ebx, dword [ebp - 0xc]
mov cl, byte [ecx + ebx - 1]
mov bl, byte [ebp - 0x10]
add cl, bl
mov byte [eax + edx - 1], cl
mov ebx, dword [ebp - 0xc]
dec ebx
cmp ebx, 1
jl 0x19f6c1
mov eax, esi
call fcn.0018459c
mov edx, dword [esi]
mov dl, byte [edx + ebx]
mov ecx, dword [esi]
mov cl, byte [ecx + ebx - 1]
add dl, cl
mov cl, byte [ebp - 0xe]
xor dl, cl
mov byte [eax + ebx - 1], dl
dec ebx
test ebx, ebx
jne 0x19f69f
dec dword [ebp - 8]
cmp dword [ebp - 8], 0xffffffff
jne 0x19f638
lea edx, [ebp - 0x14]
mov eax, dword [esi]
call fcn.0019cc98
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.001840c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x19f6ff
lea eax, [ebp - 0x14]
call fcn.00184074
ret
Function at 0x19f708
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
mov esi, dword [ebp + 8]
mov edx, esi
mov eax, edi
call fcn.0019cca0
mov eax, dword [esi]
call fcn.00184344
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x19f7f4
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 0x10], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0xf], al
mov eax, ebx
shr eax, 8
mov byte [ebp - 0xe], al
mov byte [ebp - 0xd], bl
mov eax, dword [ebp - 4]
dec eax
cmp eax, 0
jl 0x19f7f4
mov dword [ebp - 8], eax
mov edi, dword [ebp - 0xc]
dec edi
test edi, edi
jle 0x19f78f
mov ebx, 1
mov eax, esi
call fcn.0018459c
mov edx, dword [esi]
mov dl, byte [edx + ebx - 1]
xor dl, byte [ebp - 0xe]
mov ecx, dword [esi]
mov cl, byte [ecx + ebx]
sub dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
dec edi
jne 0x19f770
mov eax, esi
call fcn.0018459c
mov edx, dword [ebp - 0xc]
mov ecx, dword [esi]
mov ebx, dword [ebp - 0xc]
mov cl, byte [ecx + ebx - 1]
mov bl, byte [ebp - 0x10]
sub cl, bl
mov byte [eax + edx - 1], cl
mov ebx, dword [ebp - 0xc]
cmp ebx, 2
jl 0x19f7d5
mov eax, esi
call fcn.0018459c
mov edx, dword [esi]
mov dl, byte [edx + ebx - 1]
xor dl, byte [ebp - 0xd]
mov ecx, dword [esi]
mov cl, byte [ecx + ebx - 2]
sub dl, cl
mov byte [eax + ebx - 1], dl
dec ebx
cmp ebx, 1
jne 0x19f7b3
mov eax, esi
call fcn.0018459c
mov edx, dword [esi]
mov dl, byte [edx]
mov cl, byte [ebp - 0xf]
sub dl, cl
mov byte [eax], dl
dec dword [ebp - 8]
cmp dword [ebp - 8], 0xffffffff
jne 0x19f763
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406f7c
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.00409f14
test esi, esi
jne 0x406fb2
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.0040a09c
jmp 0x406fd0
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406e60
mov edi, eax
test esi, esi
je 0x406fd0
cmp dword [ebx], 0
je 0x406fd0
dec esi
jmp 0x406fb9
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408b9c
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.00408ffc
mov byte [esp], al
cmp byte [esp], 0
jne 0x408d26
test edi, edi
je 0x408d26
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408c66
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408c41
cmp edi, 0xffffffff
je 0x408c01
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408c01
mov byte [esp], 0
jmp 0x408d26
mov ebx, dword [esi]
cmp ebx, 1
jg 0x408c41
test ebx, ebx
jne 0x408c33
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408c33
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408d26
lea eax, [esp + 0xc]
call fcn.0040887c
dec ebp
test ebp, ebp
jg 0x408be6
cmp edi, 0xffffffff
je 0x408c66
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408c64
mov byte [esp], 0
jmp 0x408d26
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408baa
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408c66
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408d94
mov edx, eax
mov ebx, dword [0x7a08fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408cca
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408cc8
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408cca
xor edi, edi
cmp byte [esp], 0
je 0x408cf0
mov ebx, dword [esi]
test bl, 1
jne 0x408d06
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408cd0
mov byte [esp + 1], 1
jmp 0x408d06
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408cf0
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408c7d
cmp byte [esp], 0
je 0x408d26
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 0x409b68
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x7a005c], 0
je 0x409bcf
cmp word [0x7a0348], 0xd7b2
jne 0x409b91
cmp dword [0x7a0350], 0
jbe 0x409b91
mov eax, 0x7a0344
call dword [0x7a0360]
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, 0x409bfc
call fcn.0040a7d8
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x792034], 0
jne 0x409beb
push 0
push 0x7929ea
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409dd4
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 [0x792038], 0
je 0x409dff
mov edx, edi
mov eax, esi
call dword [0x792038]
mov ebx, eax
jmp 0x409e10
mov eax, 8
call fcn.00406b90
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x7a005d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409d9c
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 0x409e40
mov eax, ebx
call fcn.00406bac
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40cc64
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 0x40cdc9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409f14
cmp si, word [0x792a28]
jb 0x40ccfc
cmp si, word [0x792c28]
ja 0x40ccfc
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40ccfc
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x792a28]
jae 0x40ccd6
mov edi, ebx
dec edi
jmp 0x40ccf7
cmp si, word [ebx*8 + 0x792a28]
jbe 0x40cce6
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40ccf7
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x792a2c]
call fcn.0040cb84
jmp 0x40ccfc
cmp edi, dword [ebp - 8]
jae 0x40ccc0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40cdab
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40cdab
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.0040abf0
push dword [ebp - 0x160]
push 0x40cde4
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040abf0
push dword [ebp - 0x164]
push 0x40cdf4
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040abf0
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040ae28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cdd0
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409f74
ret
Function at 0x40cf7c
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 0x40d080
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x7a2b8c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x7a2ba4]
jne 0x40cfc8
mov eax, esi
mov edx, 0x7a2ba6
mov ecx, 0x55
call fcn.0040abf0
push 0x7a2b8c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40d06a
push 0x7a2b8c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409f14
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d037
cmp byte [0x7a2b88], 0
je 0x40cffc
mov edx, esi
mov eax, ebx
call fcn.0040ce60
jmp 0x40d037
mov edx, esi
mov eax, ebx
call fcn.0040cc64
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40d037
cmp dword [esi], 0
je 0x40d020
mov eax, esi
mov edx, 0x40d098
call fcn.0040ad48
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040cc64
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040ad48
push 0x7a2b8c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x7a2ba4], bx
mov eax, dword [esi]
call fcn.0040ab34
mov ecx, eax
mov eax, 0x7a2ba6
mov edx, 0xaa
call fcn.0040cae4
push 0x7a2b8c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d087
lea eax, [ebp - 4]
call fcn.00409f14
ret
Function at 0x40d2b0
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.00409ff8
xor eax, eax
push ebp
push 0x40d4d5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40d2f0
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40d30a
mov eax, dword [ebp - 4]
call fcn.0040ab34
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040cae4
cmp word [ebp - 0x21a], 0
je 0x40d4bf
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d4e4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d3d9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d4e4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d3d9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d520
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d3d9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d520
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d3d9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d554
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d3d9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d588
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40d4bf
xor eax, eax
push ebp
push 0x40d4b8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040d0c0
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 0x40d448
mov eax, dword [ebp - 0x10]
call fcn.00406b90
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.0040ab9c
jmp 0x40d493
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40d5c8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40d493
mov eax, dword [ebp - 0x10]
call fcn.00406b90
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40d5c8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040ab9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d4bf
cmp dword [ebp - 8], 0
je 0x40d4ae
mov eax, dword [ebp - 8]
call fcn.00406bac
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 0x40d4dc
lea eax, [ebp - 4]
call fcn.00409f14
ret
Function at 0x40d7c4
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.00409ff8
xor eax, eax
push ebp
push 0x40d884
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.0040abf0
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ada0
mov eax, dword [ebx]
call fcn.0040d68c
test al, al
jne 0x40d861
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040abf0
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ada0
mov eax, dword [ebx]
call fcn.0040d68c
test al, al
jne 0x40d861
mov eax, ebx
call fcn.00409f14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d88b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409f74
lea eax, [ebp - 4]
call fcn.00409f14
ret
Function at 0x421a08
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x421a61
test eax, edx
je 0x421a64
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x421a1f
movzx eax, word [eax]
sub eax, ecx
jmp 0x421a46
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 0x421a47
add ecx, 4
js 0x421a37
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x421a44
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x421a46
xor eax, eax
ret
test eax, eax
je 0x421a70
test edx, edx
jne 0x421a10
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x422ee0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x422f0d
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x422fe0
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.0040ab34
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42304a
test ah, 4
je 0x423043
test bl, bl
jne 0x423008
mov al, 1
jmp 0x423071
test al, 0x10
je 0x423010
xor eax, eax
jmp 0x423071
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x423034
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x423071
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x423071
test al, 0x10
sete al
jmp 0x423071
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x42306b
cmp ebx, 3
je 0x42306b
cmp ebx, 0x7b
je 0x42306b
mov eax, esi
call fcn.00422fa0
test al, al
jne 0x42306f
xor eax, eax
jmp 0x423071
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x423078
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.0040ab34
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x42311f
test esi, 0x400
jne 0x4230b4
test esi, 0x10
setne bl
jmp 0x42314f
cmp byte [esp], 0
je 0x4230e8
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x42314f
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x42314f
test esi, 0x10
je 0x4230f4
mov bl, 1
jmp 0x42314f
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x42311b
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x42314f
mov bl, 1
jmp 0x42314f
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x423149
cmp eax, 3
je 0x423149
cmp eax, 0xa1
je 0x423149
cmp eax, 0x7b
je 0x423149
cmp eax, 0x35
je 0x423149
cmp eax, 0x15
je 0x423149
cmp eax, 0x43
jne 0x42314d
xor ebx, ebx
jmp 0x42314f
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42325c
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.0040ab34
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4232b1
call sub.kernel32.dll_GetLastError_2
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4232ab
test ah, 4
je 0x4232ab
test al, 0x10
je 0x4232ab
mov eax, esi
call fcn.0040ab34
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4232b1
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x427830
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 pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x427869
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a09c
jmp 0x427872
mov eax, ebx
mov edx, esi
call fcn.0040a2f4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42787c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x42789e
movzx eax, word [esp]
jmp 0x4278a0
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret