joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003b30
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, 4
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp]
push eax
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea ecx, [esp + 4]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push str.MHz
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
add esp, 0x10
ret

Function at 0x10003bd0
Capabilities:
Get hostname

Disassembly:
sub esp, 0x400
xor eax, eax
push ebx
mov ebx, dword [esp + 0x410]
mov ecx, ebx
push esi
mov esi, dword [esp + 0x410]
mov edx, ecx
push edi
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x410]
lea ecx, [esp + 0xc]
push eax
push str.SYSTEMCurrentControlSetServices_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
push 0
push ebx
push 0
push esi
push 1
lea edx, [esp + 0x2c]
push str.Host
push edx
push closesocket
call fcn.100031e0
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0x2c
push esi
call edi
test eax, eax
jne 0x10003c54
push ebx
push esi
call dword [sym.imp.WS2_32.dll_gethostname]
push esi
call edi
pop edi
pop esi
pop ebx
add esp, 0x400
ret

Function at 0x10003c70
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x1f4
push ebx
push esi
lea eax, [esp + 0x20]
push edi
push eax
mov byte [esp + 0x24], 0x66
mov byte [esp + 0xfe], 0
mov dword [esp + 0x28], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edx, dword [esp + 0x204]
lea ecx, [esp + 0x100]
push 0x100
push ecx
push edx
call fcn.10003bd0
mov ebx, dword [esp + 0x214]
xor eax, eax
mov dword [esp + 0x1c], eax
add esp, 0xc
mov dword [esp + 0x14], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], eax
lea edx, [esp + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0xa8]
push ecx
push edx
push eax
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [esp + 0x14]
lea esi, [esp + 0x100]
mov dword [esp + 0xc4], ecx
mov ecx, 0xc
lea edi, [esp + 0xc8]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.10003b30
mov dword [esp + 0xc0], eax
call fcn.10003b90
mov edx, dword [esp + 0x20c]
mov byte [esp + 0xfa], al
lea eax, [esp + 0x20]
push 0xe0
push eax
mov ecx, ebx
mov dword [esp + 0x104], edx
call fcn.100019e0
pop edi
pop esi
pop ebx
add esp, 0x1f4
ret
Function at 0x100042f0
Capabilities:
Enumerate processes

Disassembly:
push ebx
push ebp
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x128
mov ebx, eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
push esi
push ebx
mov dword [esi], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1000435f
mov ebp, dword [esp + 0x14]
lea edi, [esi + 0x24]
push ebp
push edi
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x1000433d
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x1000435f
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x10004335
push esi
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10004348
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x100043f0
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dl, byte [esp + 0x2c]
push esi
push 0
push 0
push 0
push 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov byte [esp + 0x1c], dl
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 4]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push 0x10004370
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov edx, dword [esp + 0x28]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x10004530
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
sub esp, 0x414
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push ebp
push ebp
mov esi, 1
push ebp
push str.Mozilla_4.0__compatible_
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x28], esi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x20], edi
jne 0x10004573
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x414
ret
mov eax, dword [esp + 0x428]
push ebp
push closesocket
push ebp
push ebp
push eax
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
cmp ebx, ebp
jne 0x1000459d
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x414
ret
mov ecx, dword [esp + 0x42c]
push ebp
push ebp
push 2
push ebp
push ebp
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x1000462f
mov ebp, dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x28]
push 0x400
push eax
push ebx
call ebp
test esi, esi
je 0x100045f1
cmp word [esp + 0x24], 0x5a4d
jne 0x10004618
mov edx, dword [esp + 0x10]
xor esi, esi
lea ecx, [esp + 0x1c]
push esi
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x10004620
jmp 0x100045c5
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x20]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
push edi
call esi
mov ecx, dword [esp + 0x14]
xor eax, eax
pop edi
pop esi
test ecx, ecx
pop ebp
pop ebx
setne al
add esp, 0x414
ret
Function at 0x407214
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.00409f00
test esi, esi
jne 0x40724a
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.0040a088
jmp 0x407268
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407158
mov edi, eax
test esi, esi
je 0x407268
cmp dword [ebx], 0
je 0x407268
dec esi
jmp 0x407251
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408b50
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.00409010
mov byte [esp], al
cmp byte [esp], 0
jne 0x408cd9
test edi, edi
je 0x408cd9
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408c19
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408bf4
cmp edi, 0xffffffff
je 0x408bb5
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408bb5
mov byte [esp], 0
jmp 0x408cd9
cmp dword [esi], 1
jg 0x408bf4
cmp dword [esi], 0
jne 0x408be6
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408be6
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408cd9
lea eax, [esp + 0xc]
call fcn.0040880c
dec ebp
test ebp, ebp
jg 0x408b9a
cmp edi, 0xffffffff
je 0x408c19
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408c17
mov byte [esp], 0
jmp 0x408cd9
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408b5e
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408c19
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408d54
mov edx, eax
mov ebx, dword [0x61e8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408c7d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408c7b
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408c7d
xor edi, edi
cmp byte [esp], 0
je 0x408ca3
mov ebx, dword [esi]
test bl, 1
jne 0x408cb9
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408c83
mov byte [esp + 1], 1
jmp 0x408cb9
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408ca3
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408c30
cmp byte [esp], 0
je 0x408cd9
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 0x409b98
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x61e05c], 0
je 0x409bff
cmp word [0x61e348], 0xd7b2
jne 0x409bc1
cmp dword [0x61e350], 0
jbe 0x409bc1
mov eax, 0x61e344
call dword [0x61e360]
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, 0x409c2c
call fcn.0040a6ac
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x618032], 0
jne 0x409c1b
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409dc0
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 [0x618034], 0
je 0x409deb
mov edx, edi
mov eax, esi
call dword [0x618034]
mov ebx, eax
jmp 0x409dfc
mov eax, 8
call fcn.00406e90
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x61e05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409d88
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 0x409e2c
mov eax, ebx
call fcn.00406eac
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40d268
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 0x40d3cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409f00
cmp si, word [0x618a10]
jb 0x40d300
cmp si, word [0x618c10]
ja 0x40d300
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40d300
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x618a10]
jae 0x40d2da
mov edi, ebx
dec edi
jmp 0x40d2fb
cmp si, word [ebx*8 + 0x618a10]
jbe 0x40d2ea
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40d2fb
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x618a14]
call fcn.0040d188
jmp 0x40d300
cmp edi, dword [ebp - 8]
jae 0x40d2c4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40d3af
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d3af
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.0040a99c
push dword [ebp - 0x160]
push 0x40d3e8
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a99c
push dword [ebp - 0x164]
push 0x40d3f8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a99c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040abd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d3d4
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409f60
ret
Function at 0x40d580
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 0x40d684
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x620c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x620c2c]
jne 0x40d5cc
mov eax, esi
mov edx, 0x620c2e
mov ecx, 0x55
call fcn.0040a99c
push 0x620c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40d66e
push 0x620c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409f00
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d63b
cmp byte [0x620c10], 0
je 0x40d600
mov edx, esi
mov eax, ebx
call fcn.0040d464
jmp 0x40d63b
mov edx, esi
mov eax, ebx
call fcn.0040d268
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40d63b
cmp dword [esi], 0
je 0x40d624
mov eax, esi
mov edx, 0x40d69c
call fcn.0040aaf4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040d268
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040aaf4
push 0x620c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x620c2c], bx
mov eax, dword [esi]
call fcn.0040a8fc
mov ecx, eax
mov eax, 0x620c2e
mov edx, 0xaa
call fcn.0040d0e8
push 0x620c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d68b
lea eax, [ebp - 4]
call fcn.00409f00
ret
Function at 0x40d8b4
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.00409fe4
xor eax, eax
push ebp
push 0x40dad9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40d8f4
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40d90e
mov eax, dword [ebp - 4]
call fcn.0040a8fc
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040d0e8
cmp word [ebp - 0x21a], 0
je 0x40dac3
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dae8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d9dd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dae8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d9dd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40db24
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d9dd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40db24
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d9dd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40db58
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d9dd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40db8c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40dac3
xor eax, eax
push ebp
push 0x40dabc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040d6c4
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 0x40da4c
mov eax, dword [ebp - 0x10]
call fcn.00406e90
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.0040a960
jmp 0x40da97
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40dbcc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40da97
mov eax, dword [ebp - 0x10]
call fcn.00406e90
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40dbcc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a960
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dac3
cmp dword [ebp - 8], 0
je 0x40dab2
mov eax, dword [ebp - 8]
call fcn.00406eac
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 0x40dae0
lea eax, [ebp - 4]
call fcn.00409f00
ret
Function at 0x40dde0
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.00409fe4
xor eax, eax
push ebp
push 0x40dea0
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.0040a99c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ab4c
mov eax, dword [ebx]
call fcn.0040dc90
test al, al
jne 0x40de7d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a99c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ab4c
mov eax, dword [ebx]
call fcn.0040dc90
test al, al
jne 0x40de7d
mov eax, ebx
call fcn.00409f00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dea7
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409f60
lea eax, [ebp - 4]
call fcn.00409f00
ret

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

Disassembly:
cmp eax, edx
je 0x423d65
test eax, edx
je 0x423d68
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x423d23
movzx eax, word [eax]
sub eax, ecx
jmp 0x423d4a
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 0x423d4b
add ecx, 4
js 0x423d3b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x423d48
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x423d4a
xor eax, eax
ret
test eax, eax
je 0x423d74
test edx, edx
jne 0x423d14
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Function at 0x425190
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.0040a8fc
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x42522e
test esi, 0x400
jne 0x4251c5
test esi, 0x10
setne bl
jmp 0x42522e
cmp byte [esp], 0
je 0x4251f9
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x42522e
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x42522e
test esi, 0x10
je 0x425205
mov bl, 1
jmp 0x42522e
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x42522c
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x42522e
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x429090
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 0x4290c9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a088
jmp 0x4290d2
mov eax, ebx
mov edx, esi
call fcn.0040a2e0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4290dc
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
test eax, eax
jle 0x4290fe
movzx eax, word [esp]
jmp 0x429100
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret