joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100036c1
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
lea esi, [ecx + 0x108]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add dword [0x10006698], 0x1450
mov edi, eax
test edi, edi
je 0x10003720
push str.StopKey
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
add dword [0x10006698], 0x1ac3
test eax, eax
je 0x1000370f
call eax
add dword [0x100066b4], 0x70d
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
add dword [0x100066b8], 0x7c76
push esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call esi
and byte [ebp - 0x100], 0
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0xff]
add dword [0x100066ac], 0x70ea
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x100]
push 0xff
push eax
push dword [0x1000619c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
add dword [0x100066a4], 0x252d
lea eax, [ebp - 0x100]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add dword [0x1000669c], 0x77d4
and byte [eax], 0
add dword [0x100066a0], 0x30dd
pop ecx
pop ecx
push 0x10006408
push str._szt.txt
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add dword [0x100066b0], 0x1314
add esp, 0xc
lea eax, [ebp - 0x100]
push eax
call esi
add dword [0x10006698], 0x29b1
pop edi
pop esi
leave
ret

Function at 0x100037c9
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
add ecx, 0x208
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add dword [0x100066a0], 0x3bd1
mov esi, eax
test esi, esi
je 0x10003828
push str.StopSocks
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
add dword [0x100066b4], 0x5cb0
test eax, eax
je 0x10003817
call eax
add dword [0x100066ac], 0x6d6
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
add dword [0x100066bc], 0x619a
and byte [ebp - 0x100], 0
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0xff]
push 0xff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x100]
push eax
push dword [0x1000619c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
add dword [0x100066a0], 0xb96
lea eax, [ebp - 0x100]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add dword [0x100066ac], 0x5a12
and byte [eax], 0
add dword [0x100066bc], 0x3c6d
pop ecx
pop ecx
push 0x10006408
push str._sza.txt
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add dword [0x100066a4], 0x2c02
add esp, 0xc
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add dword [0x100066b8], 0x1429
pop edi
pop esi
leave
ret
Function at 0x10003c6d
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
mov eax, dword [ebp + 8]
and word [ebp - 0x190], 0
push edi
push 0x63
mov dword [0x1000619c], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x18e]
rep stosd dword es:[edi], eax
add dword [0x100066a0], 0x5303
stosw word es:[edi], ax
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
add dword [0x100066bc], 0x5029
push 1
pop eax
pop edi
leave
ret 0xc

Function at 0x10003d73
Capabilities:
Delete file

Disassembly:
mov eax, 0x1000426f
call fcn.100040d0
sub esp, 0x32c
push ebx
push esi
push edi
push 8
xor ebx, ebx
pop ecx
xor eax, eax
cmp dword [0x100061a8], ebx
lea edi, [ebp - 0x2c]
mov dword [ebp - 0x30], ebx
rep stosd dword es:[edi], eax
je 0x10003de8
cmp dword [0x100061b8], ebx
jne 0x10003de8
xor edi, edi
mov esi, 0x10006596
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add dword [0x100066b4], 0x78ed
lea eax, [ebp - 0x30]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
je 0x10003de8
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [0x1000669c], 0x521e
inc edi
cmp edi, 0x2710
jl 0x10003dac
lea ecx, [ebp - 0x338]
call fcn.100032f8
add dword [0x100066bc], 0x62de
lea ecx, [ebp - 0x338]
mov dword [ebp - 4], ebx
call fcn.100038c2
add dword [0x100066b8], 0x2234
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x338]
call fcn.10003381
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x10003e33
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x300
push ebx
push esi
push edi
push 0x100061a0
call fcn.10001eac
test eax, eax
pop ecx
je 0x1000406d
push 0x3f
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0xff]
mov byte [ebp - 0x100], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xff
stosb byte es:[edi], al
lea eax, [ebp - 0x100]
push eax
push ebx
call esi
add dword [0x100066a4], 0x680d
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrA]
add dword [0x1000669c], 0x597b
lea eax, [ebp - 0x100]
push str.svchost.exe
push eax
call edi
test eax, eax
je 0x10003f9a
add dword [0x10006698], 0x87b
add dword [0x1000669c], 0x6004
add dword [0x100066b4], 0x4c67
add dword [0x100066a4], 0x1916
add dword [0x100066a8], 0x781e
add dword [0x10006698], 0x5033
add dword [0x100066b8], 0x2e91
push 4
pop esi
mov dword [0x10006180], 0x110
push 0x10003d37
push 0x10006408
mov dword [0x10006184], 2
mov dword [0x10006188], esi
mov dword [0x1000618c], ebx
mov dword [0x10006190], ebx
mov dword [0x10006194], ebx
mov dword [0x10006198], ebx
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerA]
add dword [0x100066b4], 0x251a
cmp eax, ebx
mov dword [0x10006178], eax
je 0x1000406d
push ebx
push ebx
push esi
call fcn.10003cc4
add dword [0x100066a8], 0x65b0
call fcn.10003d73
add dword [0x100066ac], 0x693d
push ebx
push ebx
push 1
call fcn.10003cc4
add esp, 0x18
add dword [0x10006698], 0x81b
jmp 0x1000406d
lea eax, [ebp - 0x100]
push str.rundll32.exe
push eax
call edi
test eax, eax
je 0x10003fc0
call fcn.10003d73
add dword [0x100066a8], 0x56c6
jmp 0x1000406d
cmp dword [0x100061c4], ebx
je 0x1000405e
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x1ff]
mov byte [ebp - 0x200], bl
push 0xff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x200]
push eax
push dword [0x1000619c]
call esi
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x2ff]
mov byte [ebp - 0x300], bl
add dword [0x100066a8], 0x70f2
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x300]
push str.__s___ServiceMain
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add dword [0x1000669c], 0x6e7e
lea eax, [ebp - 0x300]
push ebx
push ebx
push eax
push str.rundll32.exe
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
add dword [0x100066a4], 0x58dd
jmp 0x1000406d
call fcn.10001d94
add dword [0x100066b4], 0x6ced
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4066c0
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 0x406702
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 0x406722
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.0040b494
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x406978
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.0040a310
test esi, esi
jne 0x4069ae
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.0040a498
jmp 0x4069cc
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040685c
mov edi, eax
test esi, esi
je 0x4069cc
cmp dword [ebx], 0
je 0x4069cc
dec esi
jmp 0x4069b5
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x406a00
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x980008], 0x8088405
inc edx
mov dword [ebx + 0x980008], edx
mul edx
mov eax, edx
pop ebx
ret
Function at 0x408ffc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.004093d4
mov byte [esp], al
cmp byte [esp], 0
jne 0x40917c
test edi, edi
je 0x40917c
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4090bc
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x409097
cmp edi, 0xffffffff
je 0x40905b
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40905b
mov byte [esp], 0
jmp 0x40917c
mov ebx, dword [esi]
cmp ebx, 1
jg 0x409097
test ebx, ebx
jne 0x40908d
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40908d
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40917c
call 0x4094f4
dec ebp
test ebp, ebp
jg 0x409040
cmp edi, 0xffffffff
je 0x4090bc
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4090ba
mov byte [esp], 0
jmp 0x40917c
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40900a
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4090bc
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004091e8
mov edx, eax
mov ebx, dword [reloc.gdi32.dll_DeleteDC]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x409120
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40911e
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x409120
xor edi, edi
cmp byte [esp], 0
je 0x409146
mov ebx, dword [esi]
test bl, 1
jne 0x40915c
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409126
mov byte [esp + 1], 1
jmp 0x40915c
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409146
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4090d3
cmp byte [esp], 0
je 0x40917c
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x409f70
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x992058], 0
je 0x409fd7
cmp word [0x992344], 0xd7b2
jne 0x409f99
cmp dword [0x99234c], 0
jbe 0x409f99
mov eax, 0x992340
call dword [0x99235c]
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, 0x40a004
call fcn.0040adf4
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x980034], 0
jne 0x409ff3
push 0
push 0x9809f2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40a1d0
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 [0x980038], 0
je 0x40a1fb
mov edx, edi
mov eax, esi
call dword [0x980038]
mov ebx, eax
jmp 0x40a20c
mov eax, 8
call fcn.0040651c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x992059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a198
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 0x40a23c
mov eax, ebx
call fcn.00406538
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40d284
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 0x40d3e9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a310
cmp si, word [0x980a30]
jb 0x40d31c
cmp si, word [0x980c30]
ja 0x40d31c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40d31c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x980a30]
jae 0x40d2f6
mov edi, ebx
dec edi
jmp 0x40d317
cmp si, word [ebx*8 + 0x980a30]
jbe 0x40d306
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40d317
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x980a34]
call fcn.0040d1a4
jmp 0x40d31c
cmp edi, dword [ebp - 8]
jae 0x40d2e0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40d3cb
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d3cb
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.0040b494
push dword [ebp - 0x160]
push 0x40d404
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040b494
push dword [ebp - 0x164]
push 0x40d414
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b494
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b6cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d3f0
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a370
ret
Function at 0x40d59c
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 0x40d69f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x994b88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x994ba0]
jne 0x40d5e8
mov eax, esi
mov edx, 0x994ba2
mov ecx, 0x55
call fcn.0040b494
push 0x994b88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40d689
push 0x994b88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a310
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d657
cmp byte [0x994b84], 0
je 0x40d61c
mov edx, esi
mov eax, ebx
call fcn.0040d480
jmp 0x40d657
mov edx, esi
mov eax, ebx
call fcn.0040d284
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40d657
cmp dword [esi], 0
je 0x40d640
mov eax, esi
mov edx, 0x40d6b8
call fcn.0040b5ec
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040d284
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040b5ec
push 0x994b88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x994ba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.0040b3d8
push eax
push 0x994ba2
call sub.kernel32.dll_lstrcpynW
push 0x994b88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d6a6
lea eax, [ebp - 4]
call fcn.0040a310
ret
Function at 0x40d8d4
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.0040a3f4
xor eax, eax
push ebp
push 0x40daf9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40d914
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40d92e
push 0x105
mov eax, dword [ebp - 4]
call fcn.0040b3d8
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40dae3
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40db08
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d9fd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40db08
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d9fd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40db44
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d9fd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40db44
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d9fd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40db78
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d9fd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dbac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40dae3
xor eax, eax
push ebp
push 0x40dadc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040d6e0
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 0x40da6c
mov eax, dword [ebp - 0x10]
call fcn.0040651c
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.0040b440
jmp 0x40dab7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40dbec
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40dab7
mov eax, dword [ebp - 0x10]
call fcn.0040651c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40dbec
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040b440
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dae3
cmp dword [ebp - 8], 0
je 0x40dad2
mov eax, dword [ebp - 8]
call fcn.00406538
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 0x40db00
lea eax, [ebp - 4]
call fcn.0040a310
ret
Function at 0x40dde8
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.0040a3f4
xor eax, eax
push ebp
push 0x40dea8
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.0040b494
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b644
mov eax, dword [ebx]
call fcn.0040dcb0
test al, al
jne 0x40de85
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040b494
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b644
mov eax, dword [ebx]
call fcn.0040dcb0
test al, al
jne 0x40de85
mov eax, ebx
call fcn.0040a310
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40deaf
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a370
lea eax, [ebp - 4]
call fcn.0040a310
ret

Function at 0x4253a8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
Function at 0x4255c8
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc4
push ebx
xor ebx, ebx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x425805
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
call fcn.0040a310
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ebx, eax
test ebx, ebx
jne 0x42569f
cmp dword [ebp - 0x14], 0
jne 0x42569f
xor edx, edx
mov eax, 6
call fcn.0042ead4
test al, al
je 0x42569f
push 2
push 0x104
lea eax, [ebp - 0x224]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFinalPathNameByHandleW
test eax, eax
jbe 0x42569f
lea eax, [ebp - 0x22c]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.0040b494
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x228]
call fcn.004253a8
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 8]
call fcn.0040a6f0
mov byte [ebp - 9], 1
jmp 0x4257e7
test ebx, ebx
jne 0x4256ad
cmp dword [ebp - 0x14], 0
je 0x42579b
push 0
push 1
push 0
push 2
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateFileMappingW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3ee
je 0x42579b
xor eax, eax
push ebp
push 0x425794
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42577d
xor eax, eax
push ebp
push 0x425776
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
call sub.kernel32.dll_GetCurrentProcess
lea ecx, [ebp - 0x224]
mov edx, dword [ebp - 0x18]
call fcn.00415dac
test eax, eax
jbe 0x42575f
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.0040b494
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x230]
call fcn.004253a8
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 8]
call fcn.0040a6f0
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42577d
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42579b
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
cmp byte [ebp - 9], 0
jne 0x4257e7
lea edx, [ebp - 0x238]
mov eax, dword [ebp - 4]
call fcn.004254e4
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 8]
call fcn.0040a6f0
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x4257e7
lea edx, [ebp - 0x23c]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004253a8
mov edx, dword [ebp - 0x23c]
mov eax, dword [ebp - 8]
call fcn.0040a6f0
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42580c
lea eax, [ebp - 0x23c]
mov edx, 6
call fcn.0040a370
ret