joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10107d9
Capabilities:
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1017068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
movzx edx, word [eax]
cmp dx, 2
jne 0x1010812
mov eax, dword [eax + 4]
push 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 9
push 0
push dword [ecx + 0xc]
call dword [sym.imp.WSOCK32.dll_setsockopt]
jmp 0x1010839
cmp dx, 0x17
jne 0x1010858
push esi
push edi
lea esi, [eax + 8]
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
push 0x10
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
push 9
movsd dword es:[edi], dword [esi]
push 0x29
push dword [ecx + 0xc]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.WSOCK32.dll_setsockopt]
pop edi
pop esi
cmp eax, 0xffffffff
jne 0x1010854
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
test eax, eax
jle 0x101085d
and eax, 0xffff
or eax, 0x80070000
jmp 0x101085d
xor eax, eax
jmp 0x101085d
mov eax, 0x80004001
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100836d
leave
ret 4
Function at 0x101264d
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3b0
mov eax, dword [0x1017068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x148
lea ecx, [ebp - 0x294]
push ecx
push dword [ebp + 0x1c]
push eax
call fcn.010123a7
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x3a8], eax
jl 0x1012727
push 0xffffffffffffffff
lea eax, [ebp - 0x394]
push edi
lea ecx, [ebp - 0x3a4]
mov dword [ebp - 0x3a4], esi
mov dword [ebp - 0x398], eax
mov dword [ebp - 0x39c], 0x80
mov dword [ebp - 0x3a0], esi
call fcn.010034eb
push 0x20
lea ecx, [ebp - 0x3a4]
call fcn.0100aea5
movzx eax, word [ebp + 0x10]
push 0xa
push eax
lea ecx, [ebp - 0x3a4]
call fcn.010031bf
push 0x20
lea ecx, [ebp - 0x3a4]
call fcn.0100aea5
cmp dword [ebp + 0x14], esi
mov eax, 0x1002478
jne 0x10126fe
mov eax, 0x1002510
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x3a4]
call fcn.010034eb
cmp dword [ebp - 0x3a4], esi
jge 0x1012738
mov esi, dword [ebp - 0x3a4]
lea ecx, [ebp - 0x3a4]
call fcn.01002a06
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100836d
leave
ret 0x18
lea eax, [ebp - 0x3b0]
push eax
lea eax, [ebp - 0x3ac]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push ebx
push bind
mov dword [ebp - 0x3ac], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
je 0x1012775
jle 0x1012771
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x101271a
lea eax, [ebp - 0x294]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x101277e
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x294]
push eax
push 1
push esi
lea ecx, [ebp - 0x3a4]
call fcn.0100345b
push eax
push dword [ebp - 0x3ac]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
je 0x10127c9
jle 0x10127c3
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x3a8], eax
push dword [ebp - 0x3ac]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x3a8]
jmp 0x101271a
Function at 0x10127e5
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x1017068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x104]
push 0xffffffffffffffff
xor esi, esi
mov dword [ebp - 0x108], ecx
push eax
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x10c], 0x80
mov dword [ebp - 0x110], esi
call fcn.010034eb
push 0x20
lea ecx, [ebp - 0x114]
call fcn.0100aea5
movzx eax, word [ebp + 0x10]
push 0xa
push eax
lea ecx, [ebp - 0x114]
call fcn.010031bf
push 0x20
lea ecx, [ebp - 0x114]
call fcn.0100aea5
cmp dword [ebp + 0x14], esi
mov eax, 0x1002478
jne 0x101286f
mov eax, 0x1002510
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x114]
call fcn.010034eb
cmp dword [ebp - 0x114], esi
jge 0x10128a8
mov esi, dword [ebp - 0x114]
lea ecx, [ebp - 0x114]
call fcn.01002a06
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0100836d
leave
ret 0x10
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x118]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push edi
push bind
mov dword [ebp - 0x118], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
je 0x10128e5
jle 0x10128e1
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x101288b
lea ecx, [ebp - 0x114]
call fcn.0100345b
push eax
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
je 0x101290f
jle 0x101290d
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x101288b
Function at 0x1013a1f
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push 0xa
lea ecx, [esi + 0x24]
call fcn.01013856
test eax, eax
jge 0x1013a3d
mov eax, 0x8007000e
jmp 0x1013a9e
push edi
xor edi, edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
mov dword [esi + 0x1c], eax
jne 0x1013a67
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1013a9d
and eax, 0xffff
or eax, 0x80070000
jmp 0x1013a9d
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x1013a07
push edi
push edi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, edi
mov dword [esi + 0x18], eax
je 0x1013a94
push 0xffffffffffffffff
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esi + 0x20], edi
jne 0x1013a9b
mov eax, 0x8007000e
jmp 0x1013a9d
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x1013aa6
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x80
xor edi, edi
lea ebx, [esi + 4]
push edi
push ebx
call sub.msvcrt.dll_memset
mov dword [ebp - 4], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
add esp, 0xc
mov dword [esi], 1
push 0x154
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1013b0a
mov ecx, eax
call fcn.010136be
jmp 0x1013b0c
xor eax, eax
test eax, eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
je 0x1013b48
mov ecx, eax
call fcn.01013a1f
test eax, eax
jl 0x1013b2b
add dword [ebp - 4], 4
inc edi
cmp edi, dword [esi]
jl 0x1013aed
jmp 0x1013b48
lea edi, [esi + edi*4 + 4]
mov ecx, dword [edi]
push 0
call fcn.01013871
push dword [edi]
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [edi], 0
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40706c
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 0x4070ae
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 0x4070ce
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.0040b238
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x4072c4
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.0040a698
test esi, esi
jne 0x4072fa
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.0040a820
jmp 0x407318
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407208
mov edi, eax
test esi, esi
je 0x407318
cmp dword [ebx], 0
je 0x407318
dec esi
jmp 0x407301
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x409330
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.004097bc
mov byte [esp], al
cmp byte [esp], 0
jne 0x4094b9
test edi, edi
je 0x4094b9
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4093f9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4093d4
cmp edi, 0xffffffff
je 0x409395
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x409395
mov byte [esp], 0
jmp 0x4094b9
cmp dword [esi], 1
jg 0x4093d4
cmp dword [esi], 0
jne 0x4093c6
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4093c6
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4094b9
lea eax, [esp + 0xc]
call fcn.00408fec
dec ebp
test ebp, ebp
jg 0x40937a
cmp edi, 0xffffffff
je 0x4093f9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4093f7
mov byte [esp], 0
jmp 0x4094b9
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40933e
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4093f9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00409528
mov edx, eax
mov ebx, dword [0x5e78fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40945d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40945b
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40945d
xor edi, edi
cmp byte [esp], 0
je 0x409483
mov ebx, dword [esi]
test bl, 1
jne 0x409499
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409463
mov byte [esp + 1], 1
jmp 0x409499
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409483
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x409410
cmp byte [esp], 0
je 0x4094b9
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 0x40a330
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5e705c], 0
je 0x40a397
cmp word [0x5e7348], 0xd7b2
jne 0x40a359
cmp dword [0x5e7350], 0
jbe 0x40a359
mov eax, 0x5e7344
call dword [0x5e7360]
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, 0x40a3c4
call fcn.0040ae98
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5e1032], 0
jne 0x40a3b3
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40a558
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 [0x5e1034], 0
je 0x40a583
mov edx, edi
mov eax, esi
call dword [0x5e1034]
mov ebx, eax
jmp 0x40a594
mov eax, 8
call fcn.00406ec8
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5e705d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a520
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 0x40a5c4
mov eax, ebx
call fcn.00406ee4
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40d294
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 0x40d3f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a698
cmp si, word [0x5e1a08]
jb 0x40d32c
cmp si, word [0x5e1c08]
ja 0x40d32c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40d32c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5e1a08]
jae 0x40d306
mov edi, ebx
dec edi
jmp 0x40d327
cmp si, word [ebx*8 + 0x5e1a08]
jbe 0x40d316
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40d327
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5e1a0c]
call fcn.0040d1b4
jmp 0x40d32c
cmp edi, dword [ebp - 8]
jae 0x40d2f0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40d3db
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d3db
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.0040b238
push dword [ebp - 0x160]
push 0x40d414
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040b238
push dword [ebp - 0x164]
push 0x40d424
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b238
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b470
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d400
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a6f8
ret
Function at 0x40d5ac
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 0x40d6b0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5e9c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5e9c2c]
jne 0x40d5f8
mov eax, esi
mov edx, 0x5e9c2e
mov ecx, 0x55
call fcn.0040b238
push 0x5e9c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40d69a
push 0x5e9c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a698
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d667
cmp byte [0x5e9c10], 0
je 0x40d62c
mov edx, esi
mov eax, ebx
call fcn.0040d490
jmp 0x40d667
mov edx, esi
mov eax, ebx
call fcn.0040d294
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40d667
cmp dword [esi], 0
je 0x40d650
mov eax, esi
mov edx, 0x40d6c8
call fcn.0040b390
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040d294
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040b390
push 0x5e9c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5e9c2c], bx
mov eax, dword [esi]
call fcn.0040b194
mov ecx, eax
mov eax, 0x5e9c2e
mov edx, 0xaa
call fcn.0040d114
push 0x5e9c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d6b7
lea eax, [ebp - 4]
call fcn.0040a698
ret
Function at 0x40d8e0
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.0040a77c
xor eax, eax
push ebp
push 0x40db05
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40d920
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40d93a
mov eax, dword [ebp - 4]
call fcn.0040b194
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040d114
cmp word [ebp - 0x21a], 0
je 0x40daef
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40db14
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40da09
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40db14
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40da09
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40db50
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40da09
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40db50
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40da09
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40db84
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40da09
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dbb8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40daef
xor eax, eax
push ebp
push 0x40dae8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040d6f0
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 0x40da78
mov eax, dword [ebp - 0x10]
call fcn.00406ec8
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.0040b1fc
jmp 0x40dac3
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40dbf8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40dac3
mov eax, dword [ebp - 0x10]
call fcn.00406ec8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40dbf8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040b1fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40daef
cmp dword [ebp - 8], 0
je 0x40dade
mov eax, dword [ebp - 8]
call fcn.00406ee4
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 0x40db0c
lea eax, [ebp - 4]
call fcn.0040a698
ret
Function at 0x40ddf4
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.0040a77c
xor eax, eax
push ebp
push 0x40deb4
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.0040b238
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b3e8
mov eax, dword [ebx]
call fcn.0040dcbc
test al, al
jne 0x40de91
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040b238
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b3e8
mov eax, dword [ebx]
call fcn.0040dcbc
test al, al
jne 0x40de91
mov eax, ebx
call fcn.0040a698
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40debb
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a6f8
lea eax, [ebp - 4]
call fcn.0040a698
ret

Function at 0x40fbe4
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 0x422e98
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x422ef1
test eax, edx
je 0x422ef4
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x422eaf
movzx eax, word [eax]
sub eax, ecx
jmp 0x422ed6
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 0x422ed7
add ecx, 4
js 0x422ec7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x422ed4
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x422ed6
xor eax, eax
ret
test eax, eax
je 0x422f00
test edx, edx
jne 0x422ea0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x424330
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
test eax, eax
jne 0x42435d
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x4243f0
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.0040b194
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x424497
test esi, 0x400
jne 0x42442c
test esi, 0x10
setne bl
jmp 0x4244c7
cmp byte [esp], 0
je 0x424460
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4244c7
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x4244c7
test esi, 0x10
je 0x42446c
mov bl, 1
jmp 0x4244c7
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x424493
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x4244c7
mov bl, 1
jmp 0x4244c7
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x4244c1
cmp eax, 3
je 0x4244c1
cmp eax, 0xa1
je 0x4244c1
cmp eax, 0x7b
je 0x4244c1
cmp eax, 0x35
je 0x4244c1
cmp eax, 0x15
je 0x4244c1
cmp eax, 0x43
jne 0x4244c5
xor ebx, ebx
jmp 0x4244c7
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x428184
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
test eax, eax
jle 0x4281bd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a820
jmp 0x4281c6
mov eax, ebx
mov edx, esi
call fcn.0040aa78
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4