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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [ebp + 0x10]
jle 0x43ac59
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x43ac36
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x43ac75
dec esi
je 0x43ac6e
dec esi
jne 0x43ac7a
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x43c068
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebx + 4], eax
xor eax, eax
cmp byte [ebp + 0x24], al
mov dword [ebx + 0x10], ecx
mov ecx, dword [ebp + 0x10]
push edi
mov word [ebx + 0xc], ax
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x24], ecx
mov dword [ebx + 0x28], eax
jne 0x43c0b2
mov ecx, 0x2000
lea edi, [esi + 0x8000]
rep movsd dword es:[edi], dword [esi]
mov word [ebx + 0x2c], ax
mov dword [ebx + 0x30], eax
call fcn.0043bac4
mov eax, dword [ebx + 0x14]
and dword [ebx + 0x20], 0
mov ecx, 0x8000
push 2
mov word [ebx + 0x3c], cx
mov dword [ebx + 0x34], ecx
add eax, ecx
pop edx
movzx edi, byte [eax]
mov esi, dword [ebx + 0x20]
shl esi, 5
xor esi, edi
and esi, 0x7fff
inc eax
dec edx
mov dword [ebx + 0x20], esi
jne 0x43c0d6
cmp byte [ebp + 0x24], 0
je 0x43c0fd
mov edi, ebx
call fcn.0043b922
jmp 0x43c10c
xor eax, eax
mov edx, dword [ebx + 0x18]
and word [eax + edx], 0
inc eax
inc eax
dec ecx
jne 0x43c0ff
push 8
pop edi
push 0x43
pop edx
mov eax, ebx
call fcn.0043ad7b
push 0x4b
pop edx
call fcn.0043ad7b
call fcn.0043bdec
mov ecx, dword [ebp + 0x28]
inc eax
inc eax
cmp byte [ebp + 0x24], 0
movzx eax, ax
mov dword [ecx], eax
je 0x43c146
mov edi, dword [ebx + 0x14]
mov ecx, 0x2000
lea esi, [edi + 0x8000]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x28]
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 3
pop ebx
pop ebp
ret 0x24
Function at 0x41c500
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x427850], 0
jne 0x41c581
cmp dword [0x427870], 0
jne 0x41c530
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x427870], eax
test eax, eax
jne 0x41c530
push str.GetEnvironmentStrings_failed
call fcn.0041bd1c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x427870]
jmp 0x41c544
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c53c
lea edi, [ebp + 1]
push edi
call fcn.004161a8
pop ecx
mov ebx, eax
mov dword [0x427854], ebx
test ebx, ebx
jne 0x41c56e
xor eax, eax
jmp 0x41c644
push edi
mov edx, dword [0x427870]
push edx
push ebx
call fcn.00416754
add esp, 0xc
jmp 0x41c5a1
xor esi, esi
mov ebx, dword [0x427850]
jmp 0x41c59b
push eax
call fcn.004168a4
pop ecx
test eax, eax
jne 0x41c597
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c58b
lea ebx, [esi + 4]
push 4
mov dword [0x427858], ebx
inc ebx
push ebx
call fcn.00415c80
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x41c5c4
xor eax, eax
jmp 0x41c644
cmp dword [0x427850], 0
jne 0x41c5f5
xor esi, esi
mov ebx, dword [0x427854]
mov eax, dword [esp]
mov ebp, eax
jmp 0x41c5e6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c5dc
jmp 0x41c626
xor esi, esi
mov ebx, dword [0x427850]
mov eax, dword [esp]
mov edi, eax
jmp 0x41c620
push eax
call fcn.004168a4
pop ecx
test eax, eax
je 0x41c615
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x41c619
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c604
mov eax, dword [0x427850]
test eax, eax
je 0x41c636
push eax
call fcn.004161b8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x427850], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x431001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43100c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..reloc
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x756b0783
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..text
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x4f923666
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401350
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x43900c
push 0x80000002
call dword [0x43bc6c]
test eax, eax
jne 0x40137c
mov eax, 0xd903
jmp 0x401404
mov dword [0x43bc64], 0
jmp 0x401397
mov ecx, dword [0x43bc64]
add ecx, 4
mov dword [0x43bc64], ecx
mov edx, dword [0x43bc64]
cmp edx, dword [ebp + 0xc]
jae 0x401404
cmp dword [0x43bc64], 0
jne 0x4013c0
push 0x263
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x4013c0
xor eax, eax
jmp 0x401404
mov eax, dword [ebp + 8]
add eax, dword [0x43bc64]
mov ecx, dword [eax]
add ecx, dword [0x43bc64]
mov edx, dword [ebp + 8]
add edx, dword [0x43bc64]
mov dword [edx], ecx
mov dword [ebp - 8], 0x3b7a27d
mov eax, dword [0x43bc64]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax + 2]
push edx
mov eax, dword [ebp + 8]
add eax, dword [0x43bc64]
push eax
call fcn.00401120
add esp, 8
jmp 0x401388
mov esp, ebp
pop ebp
ret
Function at 0x406894
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4068d6
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x4068f6
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.0040a030
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x406aec
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.004093b0
test esi, esi
jne 0x406b22
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.00409538
jmp 0x406b40
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406a30
mov edi, eax
test esi, esi
je 0x406b40
cmp dword [ebx], 0
je 0x406b40
dec esi
jmp 0x406b29
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x40811c
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.00408500
mov byte [esp], al
cmp byte [esp], 0
jne 0x4082a6
test edi, edi
je 0x4082a6
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4081e6
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4081c1
cmp edi, 0xffffffff
je 0x408181
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408181
mov byte [esp], 0
jmp 0x4082a6
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4081c1
test ebx, ebx
jne 0x4081b3
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4081b3
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4082a6
lea eax, [esp + 0xc]
call fcn.00407dfc
dec ebp
test ebp, ebp
jg 0x408166
cmp edi, 0xffffffff
je 0x4081e6
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4081e4
mov byte [esp], 0
jmp 0x4082a6
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40812a
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4081e6
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408314
mov edx, eax
mov ebx, dword [reloc.kernel32.dll_GetCPInfo]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40824a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408248
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40824a
xor edi, edi
cmp byte [esp], 0
je 0x408270
mov ebx, dword [esi]
test bl, 1
jne 0x408286
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408250
mov byte [esp + 1], 1
jmp 0x408286
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408270
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4081fd
cmp byte [esp], 0
je 0x4082a6
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 0x40904c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x69d05c], 0
je 0x4090b3
cmp word [0x69d348], 0xd7b2
jne 0x409075
cmp dword [reloc.user32.dll_SetForegroundWindow], 0
jbe 0x409075
mov eax, 0x69d344
call dword [0x69d360]
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, 0x4090e0
call fcn.00409c74
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x693034], 0
jne 0x4090cf
push 0
push 0x6939ca
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409270
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 [0x693038], 0
je 0x40929b
mov edx, edi
mov eax, esi
call dword [0x693038]
mov ebx, eax
jmp 0x4092ac
mov eax, 8
call fcn.004066f0
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x69d05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409238
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 0x4092dc
mov eax, ebx
call fcn.0040670c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40bb00
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 0x40bc65
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004093b0
cmp si, word [0x693a08]
jb 0x40bb98
cmp si, word [0x693c08]
ja 0x40bb98
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40bb98
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x693a08]
jae 0x40bb72
mov edi, ebx
dec edi
jmp 0x40bb93
cmp si, word [ebx*8 + 0x693a08]
jbe 0x40bb82
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40bb93
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x693a0c]
call fcn.0040ba20
jmp 0x40bb98
cmp edi, dword [ebp - 8]
jae 0x40bb5c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40bc47
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bc47
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.0040a030
push dword [ebp - 0x160]
push 0x40bc80
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a030
push dword [ebp - 0x164]
push 0x40bc90
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a030
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a268
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bc6c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409410
ret
Function at 0x40be18
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 0x40bf1c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x69fb8c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x69fba4]
jne 0x40be64
mov eax, esi
mov edx, 0x69fba6
mov ecx, 0x55
call fcn.0040a030
push 0x69fb8c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40bf06
push 0x69fb8c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004093b0
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bed3
cmp byte [0x69fb88], 0
je 0x40be98
mov edx, esi
mov eax, ebx
call fcn.0040bcfc
jmp 0x40bed3
mov edx, esi
mov eax, ebx
call fcn.0040bb00
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40bed3
cmp dword [esi], 0
je 0x40bebc
mov eax, esi
mov edx, 0x40bf34
call fcn.0040a188
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040bb00
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a188
push 0x69fb8c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x69fba4], bx
mov eax, dword [esi]
call fcn.00409f74
mov ecx, eax
mov eax, 0x69fba6
mov edx, 0xaa
call fcn.0040b980
push 0x69fb8c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bf23
lea eax, [ebp - 4]
call fcn.004093b0
ret
Function at 0x40c14c
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.00409494
xor eax, eax
push ebp
push 0x40c371
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40c18c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40c1a6
mov eax, dword [ebp - 4]
call fcn.00409f74
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040b980
cmp word [ebp - 0x21a], 0
je 0x40c35b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c380
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c275
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c380
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c275
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c3bc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c275
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c3bc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c275
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c3f0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c275
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c424
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40c35b
xor eax, eax
push ebp
push 0x40c354
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040bf5c
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 0x40c2e4
mov eax, dword [ebp - 0x10]
call fcn.004066f0
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.00409fdc
jmp 0x40c32f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40c464
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c32f
mov eax, dword [ebp - 0x10]
call fcn.004066f0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40c464
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00409fdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c35b
cmp dword [ebp - 8], 0
je 0x40c34a
mov eax, dword [ebp - 8]
call fcn.0040670c
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 0x40c378
lea eax, [ebp - 4]
call fcn.004093b0
ret
Function at 0x40c660
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.00409494
xor eax, eax
push ebp
push 0x40c720
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.0040a030
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a1e0
mov eax, dword [ebx]
call fcn.0040c528
test al, al
jne 0x40c6fd
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a030
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a1e0
mov eax, dword [ebx]
call fcn.0040c528
test al, al
jne 0x40c6fd
mov eax, ebx
call fcn.004093b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c727
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409410
lea eax, [ebp - 4]
call fcn.004093b0
ret

Function at 0x4216d4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x42172d
test eax, edx
je 0x421730
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4216eb
movzx eax, word [eax]
sub eax, ecx
jmp 0x421712
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 0x421713
add ecx, 4
js 0x421703
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x421710
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x421712
xor eax, eax
ret
test eax, eax
je 0x42173c
test edx, edx
jne 0x4216dc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x422bc8
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.00409f74
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x422c32
test ah, 4
je 0x422c2b
test bl, bl
jne 0x422bf0
mov al, 1
jmp 0x422c59
test al, 0x10
je 0x422bf8
xor eax, eax
jmp 0x422c59
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x422c1c
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x422c59
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x422c59
test al, 0x10
sete al
jmp 0x422c59
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x422c53
cmp ebx, 3
je 0x422c53
cmp ebx, 0x7b
je 0x422c53
mov eax, esi
call fcn.00422b88
test al, al
jne 0x422c57
xor eax, eax
jmp 0x422c59
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x422c60
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.00409f74
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x422d07
test esi, 0x400
jne 0x422c9c
test esi, 0x10
setne bl
jmp 0x422d37
cmp byte [esp], 0
je 0x422cd0
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x422d37
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x422d37
test esi, 0x10
je 0x422cdc
mov bl, 1
jmp 0x422d37
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x422d03
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x422d37
mov bl, 1
jmp 0x422d37
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x422d31
cmp eax, 3
je 0x422d31
cmp eax, 0xa1
je 0x422d31
cmp eax, 0x7b
je 0x422d31
cmp eax, 0x35
je 0x422d31
cmp eax, 0x15
je 0x422d31
cmp eax, 0x43
jne 0x422d35
xor ebx, ebx
jmp 0x422d37
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x426bb0
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 0x426be9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00409538
jmp 0x426bf2
mov eax, ebx
mov edx, esi
call fcn.00409790
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x426bfc
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 0x426c1e
movzx eax, word [esp]
jmp 0x426c20
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret