joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403e90
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x208
cmp eax, 7
jl 0x403eb8
mov eax, dword [esp + 0x20c]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0x208
ret
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x40d230
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, str.wininit.ini
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, ebx
push eax
push eax
and ecx, 3
lea eax, [esp + 0x24]
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
pop edi
pop esi
cmp eax, 0xffffffff
pop ebx
je 0x403f46
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x20c]
lea ecx, [esp + 0x104]
push 0x104
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [esp]
lea ecx, [esp + 0x104]
push eax
push ecx
push 0x40f5c0
push str.rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add esp, 0x208
ret
Function at 0x404380
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x90
lea eax, [esp + 0xc]
lea ecx, [esp]
push ebx
push esi
xor ebx, ebx
push eax
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SystemCurrentControlSetControlUsbFlags
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40441e
mov esi, dword [esp + 0x9c]
test esi, esi
je 0x40441e
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
lea ecx, [esi + 4]
push str._04X__04X
push ecx
call fcn.00405210
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x34]
push str.IgnoreHWSerNum_04X_04X
push ecx
call fcn.00405260
mov eax, dword [esp + 0x2c]
add esp, 0x20
lea edx, [esp + 0x1c]
push edx
push eax
call edi
test eax, eax
jne 0x40440c
mov ebx, 1
mov esi, dword [esi]
test esi, esi
jne 0x4043c3
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x90
ret
mov eax, ebx
pop esi
pop ebx
add esp, 0x90
ret

Function at 0x404430
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret

Function at 0x404770
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x410
push ebx
lea eax, [esp + 0xc]
push esi
xor ebx, ebx
push eax
mov eax, dword [esp + 0x420]
push ebx
push ebx
lea ecx, [esp + 0x14]
push ebx
lea edx, [esp + 0x28]
push ecx
push edx
push ebx
push eax
xor esi, esi
mov dword [esp + 0x28], 0x400
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x40483a
push ebp
mov ebp, dword [esp + 0x424]
push edi
push 0x404
push 1
call fcn.00405130
mov edx, eax
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea esi, [edx + 4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x10]
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
mov dword [edx], ecx
mov dword [ebp], edx
lea edx, [esp + 0x18]
lea ecx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x428]
push 0
push 0
push 0
push eax
push ecx
push ebx
push edx
mov dword [esp + 0x30], 0x400
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4047b6
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
add esp, 0x410
ret
mov eax, esi
pop esi
pop ebx
add esp, 0x410
ret
Function at 0x404850
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x14]
push edi
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
xor edi, edi
push esi
push ecx
push edi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4048a1
mov eax, dword [esp + 0x14]
cmp eax, 1
je 0x40488b
cmp eax, 2
je 0x40488b
cmp eax, 7
jne 0x4048a1
mov ecx, dword [esp + 0x18]
mov dl, byte [0x40d1a1]
pop edi
mov eax, 1
mov byte [esi + ecx - 1], dl
pop esi
ret
mov al, byte [0x40d1a1]
mov byte [esi], al
mov eax, edi
pop edi
pop esi
ret

Function at 0x404940
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x110
push ebp
mov ebp, dword [esp + 0x118]
push esi
lea eax, [esp + 0xc]
push edi
xor esi, esi
push eax
push ebp
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
call fcn.00404720
add esp, 8
test eax, eax
je 0x404a1d
push ebx
mov ebx, dword [esp + 0x14]
cmp ebx, esi
je 0x404a13
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40d230
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx + 4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00404940
mov ebx, dword [ebx]
add esp, 4
test ebx, ebx
jne 0x40497d
mov ebx, dword [esp + 0x14]
push ebx
call fcn.00404310
add esp, 4
pop ebx
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movsx ecx, byte [str._:____t_cz_]
push ecx
push edx
call fcn.004051e0
mov esi, eax
add esp, 8
test esi, esi
je 0x404ab3
mov al, byte [0x40d1a1]
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
lea edx, [esp + 0x20]
push 0
push edx
push 0x80000002
mov byte [esi], al
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404ab3
mov eax, dword [esp + 0x14]
inc esi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
mov esi, 1
je 0x404a9c
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x110
ret
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
add esp, 0x110
ret
Function at 0x404c50
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d6d0
push 0x4068a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x412aec], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x412ae8], ecx
shl ecx, 8
add ecx, edx
mov dword [0x412ae4], ecx
shr eax, 0x10
mov dword [0x412ae0], eax
call fcn.00406770
test eax, eax
jne 0x404cba
push 0x1c
call fcn.00404e30
add esp, 4
call fcn.00406670
test eax, eax
jne 0x404ccd
push 0x10
call fcn.00404e30
add esp, 4
mov dword [ebp - 4], 0
call fcn.00406460
call fcn.00406450
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4141b4], eax
call fcn.00405df0
mov dword [0x412ad0], eax
test eax, eax
je 0x404d00
mov eax, dword [0x4141b4]
test eax, eax
jne 0x404d0a
push 0xffffffffffffffff
call fcn.00405660
add esp, 4
call fcn.00405b40
call fcn.00405a50
call fcn.00405630
mov esi, dword [0x4141b4]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x404de9
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x404d51
test al, al
je 0x404d51
and eax, 0xff
push eax
call fcn.004059f0
add esp, 4
test eax, eax
je 0x404d2b
inc esi
mov dword [ebp - 0x64], esi
jmp 0x404d2b
cmp byte [esi], 0x22
jne 0x404d5a
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x404d6a
cmp al, 0x20
ja 0x404d6a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x404d5a
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x404d8b
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x404d90
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00405660
jmp 0x404dce
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x404d5a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x404de9

Function at 0x404e30
Capabilities:
Terminate process

Disassembly:
cmp dword [0x412ad8], 1
jne 0x404e3e
call fcn.00406980
mov eax, dword [esp + 4]
push eax
call fcn.004069c0
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4056a0
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.00405760
mov eax, dword [0x412b1c]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x4056c4
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x412b18], 1
mov byte [0x412b14], bl
jne 0x40571e
mov ecx, dword [0x4141ac]
test ecx, ecx
je 0x40570c
mov esi, dword [0x4141a8]
sub esi, 4
cmp esi, ecx
jb 0x40570c
mov eax, dword [esi]
test eax, eax
je 0x405705
call eax
mov ecx, dword [0x4141ac]
sub esi, 4
cmp esi, ecx
jae 0x4056f7
push 0x40f020
push 0x40f014
call fcn.00405780
add esp, 8
push 0x40f028
push 0x40f024
call fcn.00405780
add esp, 8
test ebx, ebx
je 0x40573d
call fcn.00405770
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x412b1c], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x405df0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x412c28]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x405e32
call edi
mov esi, eax
test esi, esi
je 0x405e1c
mov eax, 1
jmp 0x405e2d
call ebp
mov ebx, eax
test ebx, ebx
je 0x405f3f
mov eax, 2
mov dword [0x412c28], eax
cmp eax, 1
jne 0x405ed2
test esi, esi
jne 0x405e4b
call edi
mov esi, eax
test esi, esi
je 0x405f3f
cmp word [esi], 0
mov eax, esi
je 0x405e65
add eax, 2
cmp word [eax], 0
jne 0x405e53
add eax, 2
cmp word [eax], 0
jne 0x405e53
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x405ec4
push edi
call fcn.00405410
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x405ec4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x405eb6
push ebx
call fcn.004053a0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x405f3f
test ebx, ebx
jne 0x405ee3
call ebp
mov ebx, eax
test ebx, ebx
je 0x405f3f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x405efb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x405eeb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x405eeb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00405410
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x405f1d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x406670
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.00406e00
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x40f9fc], eax
je 0x4066c8
push 0x74
push 1
call fcn.00405130
mov esi, eax
add esp, 8
test esi, esi
je 0x4066c8
mov eax, dword [0x40f9fc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4066c8
push esi
call fcn.004066d0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x4066f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x40f9fc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x40675e
push 0x74
push 1
call fcn.00405130
mov esi, eax
add esp, 8
test esi, esi
je 0x406754
mov ecx, dword [0x40f9fc]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x406754
push esi
call fcn.004066d0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.00404e00
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
Function at 0x4069c0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x40fa18
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x4069e4
add eax, 8
inc ebp
cmp eax, 0x40faa8
jb 0x4069d5
cmp ecx, dword [ebp*8 + 0x40fa18]
jne 0x406b8b
mov eax, dword [0x412ad8]
cmp eax, 1
je 0x406b4d
test eax, eax
jne 0x406a10
cmp dword [0x40f63c], 1
je 0x406b4d
cmp ecx, 0xfc
je 0x406b8b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x406a4b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x406a94
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x40d9b4
add ebx, ecx
push ebx
call fcn.00409a30
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40d994
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x40fa1c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004099a0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x4140a0]
test eax, eax
je 0x406b5e
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x406b68
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x40fa1c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x40b020
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x40b04c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x4140a0]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
je 0x40b087
push 2
push ebp
push ecx
call fcn.0040af20
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x40b1e9
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x40b131
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x40b0e2
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x40b0cf
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x40b0b2
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b1da
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x40b12d
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x40b0ae
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40b1c9
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40b185
cmp eax, 5
jne 0x40b16e
call fcn.00409900
mov dword [eax], 9
call fcn.00409910
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00409880
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x40b1a5
cmp byte [ebp], 0x1a
jne 0x40b1a5
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.00409900
mov dword [eax], 0x1c
call fcn.00409910
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x40b12d
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b21a
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x40b131
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x40b131
Function at 0x40c160
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x413068]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x40c1a8
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40c18c
mov eax, 1
jmp 0x40c1a3
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x40c288
mov eax, 2
mov dword [0x413068], eax
cmp eax, 2
jne 0x40c1c8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x40c29a
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x40c1e3
mov ecx, dword [0x412ee8]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x40c202
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.00405410
mov esi, eax
add esp, 4
test esi, esi
jne 0x40c219
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40c27f
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x40c260
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x40c27f
push esi
call fcn.004053a0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x40c28f
push esi
call fcn.004053a0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.004053a0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40c2d0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
jne 0x40c303
add esp, 0x94
ret
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, 2
jne 0x40c372
mov ecx, dword [esp + 4]
cmp ecx, 4
ja 0x40c31c
mov eax, 6
cmp ecx, 5
jne 0x40c360
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x40c335
mov eax, 7
add esp, 0x94
ret
cmp ecx, 1
jne 0x40c346
mov eax, 8
add esp, 0x94
ret
cmp ecx, 2
jne 0x40c357
mov eax, 9
add esp, 0x94
ret
ja 0x40c366
add esp, 0x94
ret
jbe 0x40c3ea
mov eax, 0xa
add esp, 0x94
ret
cmp ecx, 1
jne 0x40c3ea
cmp dword [esp + 4], 4
jne 0x40c3ea
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x40c3aa
mov al, byte [esp + 0x15]
cmp al, 0x43
je 0x40c39e
cmp al, 0x42
je 0x40c39e
mov eax, 1
add esp, 0x94
ret
mov eax, 2
add esp, 0x94
ret
cmp ecx, 0xa
jne 0x40c3e0
cmp byte [esp + 0x15], 0x41
jne 0x40c3c2
mov eax, 4
add esp, 0x94
ret
mov eax, dword [esp + 0xc]
and eax, 0xffff
sub eax, 0xbb8
neg eax
sbb eax, eax
and al, 0xfe
add eax, 5
add esp, 0x94
ret
cmp ecx, 0x5a
jne 0x40c3ea
mov eax, 5
add esp, 0x94
ret