joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e700
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x77c
mov eax, dword [0x42a458]
xor eax, esp
mov dword [esp + 0x778], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, ecx
push 0x206
push eax
mov word [esp + 0x580], ax
lea eax, [esp + 0x582]
push eax
call fcn.00412f00
add esp, 0xc
lea ecx, [esp + 0x578]
mov edx, 0xa
call fcn.004017e0
cmp word [esp + 0x578], 0
jne 0x40e75f
xor ecx, ecx
jmp 0x40e77f
lea ecx, [esp + 0x578]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e770
sub ecx, edx
sar ecx, 1
push ecx
lea edi, [esi + 0x18]
lea eax, [esp + 0x57c]
mov dword [esp + 0x10], edi
push eax
mov ecx, edi
call fcn.00401e00
xor eax, eax
xorps xmm0, xmm0
push 0x53a
push eax
mov word [esp + 0x18], ax
lea eax, [esp + 0x42]
push eax
movdqu xmmword [esp + 0x1e], xmm0
movdqu xmmword [esp + 0x2e], xmm0
movq qword [esp + 0x3e], xmm0
call fcn.00412f00
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x40e7cd
mov edi, dword [edi]
lea edx, [esp + 0x10]
mov ecx, edi
call fcn.0040da80
movzx eax, word [esp + 0xca]
shl eax, 0x14
mov dword [esi + 0x14], eax
test eax, eax
jne 0x40e7f1
mov dword [esi + 0x14], 0x4b00000
mov ecx, esi
call fcn.0040eab0
test eax, eax
je 0x40e8b1
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e810
mov eax, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
cmp dword [eax + 0xc0], ebx
jbe 0x40e8c8
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40e844
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0xc], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x40e855
push eax
call edi
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x40e88d
push eax
call edi
lea edi, [esi + 0x30]
mov dword [esi + 4], 0xffffffff
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e887
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40e887
mov ecx, edi
call fcn.004018d0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebx + ebx*4]
mov eax, 0x51eb851f
shl ecx, 2
mul ecx
mov ecx, esi
shr edx, 5
add edx, ebx
mov dword [esi + 0x14], edx
call fcn.0040eab0
test eax, eax
jne 0x40e810
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x778]
xor ecx, esp
call fcn.00411ee6
mov esp, ebp
pop ebp
ret
mov ecx, eax
mov eax, dword [ecx + 0xc0]
shr eax, 0x14
inc eax
cmp word [ecx + 0xba], ax
je 0x40e915
mov word [ecx + 0xba], ax
cmp dword [esi + 0x2c], 8
jb 0x40e8f1
mov edi, dword [esi + 0x18]
mov dword [esp + 0xc], edi
mov esi, dword [esi + 0x10]
sub esp, 0x564
mov ecx, 0x159
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x570]
call fcn.0040db20
add esp, 0x564
mov ecx, dword [esp + 0x784]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00411ee6
mov esp, ebp
pop ebp
ret
Function at 0x40e930
Capabilities:
Check if file exists
Create directory
Delete file
Move file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40e955
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0xc], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x40e96a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x40e9a1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
add esi, 0x30
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e9a1
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40e9a1
mov ecx, esi
pop esi
jmp fcn.004018d0
pop esi
ret
Function at 0x40f2b0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x77c
mov eax, dword [0x42a458]
xor eax, esp
mov dword [esp + 0x778], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, ecx
push 0x206
push eax
mov word [esp + 0x580], ax
lea eax, [esp + 0x582]
push eax
call fcn.00412f00
add esp, 0xc
lea ecx, [esp + 0x578]
mov edx, 8
call fcn.004017e0
cmp word [esp + 0x578], 0
jne 0x40f30f
xor ecx, ecx
jmp 0x40f32f
lea ecx, [esp + 0x578]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f320
sub ecx, edx
sar ecx, 1
push ecx
lea edi, [esi + 0x164]
lea eax, [esp + 0x57c]
mov dword [esp + 0x10], edi
push eax
mov ecx, edi
call fcn.00401e00
xor eax, eax
xorps xmm0, xmm0
push 0x53a
push eax
mov word [esp + 0x18], ax
lea eax, [esp + 0x42]
push eax
movdqu xmmword [esp + 0x1e], xmm0
movdqu xmmword [esp + 0x2e], xmm0
movq qword [esp + 0x3e], xmm0
call fcn.00412f00
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x40f380
mov edi, dword [edi]
lea edx, [esp + 0x10]
mov ecx, edi
call fcn.0040da80
movzx eax, word [esp + 0xca]
shl eax, 0x14
mov dword [esi + 0x384], eax
test eax, eax
jne 0x40f3aa
mov dword [esi + 0x384], 0xa00000
mov ecx, esi
call fcn.0040f880
test eax, eax
je 0x40f46a
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, dword [esi + 0x10]
mov ebx, dword [esi + 0x384]
cmp dword [eax + 0xc0], ebx
jbe 0x40f481
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40f3f7
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0xc], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x40f408
push eax
call edi
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x40f443
push eax
call edi
lea edi, [esi + 0x17c]
mov dword [esi + 4], 0xffffffff
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f43d
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40f43d
mov ecx, edi
call fcn.004018d0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebx + ebx*4]
mov eax, 0x51eb851f
shl ecx, 2
mul ecx
mov ecx, esi
shr edx, 5
add edx, ebx
mov dword [esi + 0x384], edx
call fcn.0040f880
test eax, eax
jne 0x40f3c0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x778]
xor ecx, esp
call fcn.00411ee6
mov esp, ebp
pop ebp
ret
mov ecx, eax
mov eax, dword [ecx + 0xc0]
shr eax, 0x14
inc eax
cmp word [ecx + 0xba], ax
je 0x40f4d4
mov word [ecx + 0xba], ax
cmp dword [esi + 0x178], 8
jb 0x40f4b0
mov edi, dword [esi + 0x164]
mov dword [esp + 0xc], edi
mov esi, dword [esi + 0x10]
sub esp, 0x564
mov ecx, 0x159
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x570]
call fcn.0040db20
add esp, 0x564
mov ecx, dword [esp + 0x784]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00411ee6
mov esp, ebp
pop ebp
ret
Function at 0x40f4f0
Capabilities:
Check if file exists
Create directory
Delete file
Move file
Set file attributes

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40f515
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0xc], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x40f52a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x40f564
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
add esi, 0x17c
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f564
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40f564
mov ecx, esi
pop esi
jmp fcn.004018d0
pop esi
ret
Function at 0x41aee8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42a458]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00415215
mov dword [ebp - 0x14], eax
cmp dword [0x42c6d4], esi
jne 0x41afdb
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41af68
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41b0bb
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x41b0bb
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41b0bb
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x42c6d4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x42c6d8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x42c6dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42c6e4], eax
test eax, eax
je 0x41afd8
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42c6e0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41b000
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41aff3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41b015
push 4
pop eax
jmp 0x41b0bd
cmp dword [ebp - 0x14], esi
je 0x41b015
push dword [0x42c6d4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41affa
mov eax, dword [0x42c6e0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41b073
cmp dword [0x42c6e4], edi
je 0x41b073
push eax
call ebx
push dword [0x42c6e4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41b073
test eax, eax
je 0x41b073
call ecx
test eax, eax
je 0x41b068
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41b068
test byte [ebp - 8], 1
jne 0x41b073
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41b0a3
mov eax, dword [0x42c6d8]
cmp eax, edi
je 0x41b0a0
push eax
call ebx
test eax, eax
je 0x41b0a0
call eax
mov esi, eax
test esi, esi
je 0x41b0a0
mov eax, dword [0x42c6dc]
cmp eax, edi
je 0x41b0a0
push eax
call ebx
test eax, eax
je 0x41b0a0
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x42c6d4]
call ebx
test eax, eax
je 0x41b0bb
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x41b0bd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411ee6
mov esp, ebp
pop ebp
ret
Function at 0x40315c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4b6020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4031f4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4031d4
xor eax, eax
push ebp
push 0x4031cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403210
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4031d4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4b6020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4b6020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403fa0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b904c], 0
je 0x404001
cmp word [0x4b9220], 0xd7b2
jne 0x403fc9
cmp dword [0x4b9228], 0
jbe 0x403fc9
mov eax, 0x4b921c
call dword [0x4b9238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4b606c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404028
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4b6030], 0
jne 0x40401d
push 0
push 0x4b6064
push 0x4b606c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404154
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004027e0
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4b904d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40411c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405c64
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405e94
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405ce7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405e94
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405ce7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405eb0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405d70
xor eax, eax
push ebp
push 0x405d69
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405aac
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405d4e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405ed0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405d4e
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d70
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405e8a
cmp byte [ebp - 0xd], 0
jne 0x405db7
cmp byte [ebp - 0x12], 0
je 0x405e8a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405dd0
dec ebx
cmp byte [ebx], 0x2e
je 0x405ddf
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405dcf
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405e8a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405e1c
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405e8a
cmp byte [ebp - 0xd], 0
je 0x405e8a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405e8a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4065c8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40662e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404410
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d14
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406618
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406635
lea eax, [ebp - 0x10]
call fcn.004041a0
ret

Function at 0x40c080
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c0b9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404290
jmp 0x40c0c2
mov eax, ebx
mov edx, esi
call fcn.004041f4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c0cc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c0ed
mov al, byte [esp]
jmp 0x40c0ef
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c774
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c5ec
mov eax, dword [0x4b8d6c]
cmp byte [eax], 0
je 0x40c7f0
mov eax, dword [0x4b8930]
call fcn.00402ad8
call fcn.00402948
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409238
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40c838
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c826
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4b8884]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b9668]
call fcn.00405a70
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40d0f8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d1ce
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404238
lea eax, [ebp - 8]
call fcn.004046b0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404660
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d1b8
mov eax, ebx
call fcn.004027e0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d1b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404660
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d19b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d1e0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d19b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d1b8
mov eax, dword [ebp - 0x10]
call fcn.00402800
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d1d5
lea eax, [ebp - 8]
call fcn.004041a0
ret

Function at 0x40d74c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40d7b0
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404410
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408ce8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d7b7
lea eax, [ebp - 0xc]
call fcn.004041a0
ret

Function at 0x423a94
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004238ec
dec esi
jne 0x423ab6
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x424bf8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4b988c
cmp dword [edi], 0
jne 0x424c74
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4b9888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4b664c
mov ecx, 2
call fcn.004029dc
mov edx, 0x424bd0
lea eax, [esi + 5]
call fcn.00424bf0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00424bf0
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x424c49
mov dword [0x4b9888], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4261f0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4261f6
ret

Function at 0x42868c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4286dd
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4286c4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4286b4
jmp 0x4286dd
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4286c5
pop ebx
mov esp, ebp
pop ebp
ret