joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa32f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xa479fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0xa33002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00a36dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xa33002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00a2e6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00a3720b
push 0x10
call fcn.00a371d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xa32fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00a231c0
jmp 0xa32fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00a32b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xa32ff0
mov ecx, edi
call fcn.00a232c0
push edi
call fcn.00a371c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xa33021
inc ebx
cmp ebx, 0x20
jb 0xa32f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xa34250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xa48808
push 0xa38288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xa34329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xa34329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00a371d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xa34329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xa34329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xa3432c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00a34351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xa34d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xa34d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xa34d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xa34d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xa34d94
push eax
push esi
call fcn.00a3720b
add esp, 8
pop esi
ret 0x10

Function at 0xa34da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xa34e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xa34e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xa4d320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00a36dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xa34dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xa34e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xa34ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xa34eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xa4d320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00a36dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xa34eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xa34e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xa35000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xa35131
push esi
call fcn.00a38145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00a27080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xa35131
push 0
push ebp
call fcn.00a273a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00a27260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xa3508b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00a272f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xa35121
push 0xa4d918
push edi
call fcn.00a363f0
push eax
push ebx
push esi
call fcn.00a34f60
push 0xa4d8f8
push edi
call fcn.00a363f0
push eax
push ebx
push esi
call fcn.00a34f60
push 0xa4d8d8
push edi
call fcn.00a363f0
push eax
push ebx
push esi
call fcn.00a34f60
push 0xa4d8c0
push edi
call fcn.00a363f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00a34f60
push 0xa4d8a0
push edi
call fcn.00a363f0
push eax
push ebx
push esi
call fcn.00a34f60
push 0xa4d888
push edi
call fcn.00a363f0
push eax
push ebx
push esi
call fcn.00a34f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xa361b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00a36140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00a36140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00a36140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00a36140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xa36bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xa36c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xa4887c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xa36c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xa36c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x40115b
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x40e270]
push esi
push 0
push 2
mov dword [ebp - 4], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x4011c0
lea eax, [ebp - 0x12c]
push eax
push esi
mov dword [ebp - 0x12c], 0x128
call sub.KERNEL32.dll_Process32First
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call fcn.0040b7da
test eax, eax
pop ecx
pop ecx
je 0x4011cd
lea eax, [ebp - 0x12c]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401193
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
pop esi
call fcn.00404fd2
leave
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x4011c2

Function at 0x4011d8
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x40e270]
push ebx
push 0x94
mov dword [ebp - 4], eax
xor ebx, ebx
lea eax, [ebp - 0x98]
push ebx
push eax
call fcn.00405050
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x40122c
cmp dword [ebp - 0x94], 6
jb 0x40122c
mov bl, 1
mov ecx, dword [ebp - 4]
mov al, bl
pop ebx
call fcn.00404fd2
leave
ret
Function at 0x4024a1
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40250f
lea eax, [ebp - 0xc]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x402506
mov eax, dword [ebp - 0xc]
push 0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push 0
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x402513
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
leave
ret
mov al, 1
leave
ret

Function at 0x402858
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 0xffffffffffffffff
mov esi, str..pipeprobe_inside_msg_QQ_SessionKey
push esi
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
je 0x40294e
push ebx
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40294c
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call fcn.004047c0
inc eax
cmp ax, 0x3ff
pop ecx
mov dword [ebp - 4], eax
jle 0x4028b9
mov dword [ebp - 4], 0x3ff
push edi
lea eax, [ebp - 8]
push eax
mov esi, str.acct
push esi
call fcn.004047c0
pop ecx
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call esi
push edi
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push ebx
call esi
push edi
lea eax, [ebp - 8]
push eax
movsx eax, word [ebp - 4]
push eax
push dword [ebp + 8]
push ebx
call esi
push dword [ebp + 0xc]
call fcn.004047c0
inc eax
cmp ax, 0x3ff
pop ecx
mov dword [ebp - 4], eax
jle 0x40290d
mov dword [ebp - 4], 0x3ff
push edi
lea eax, [ebp - 8]
push eax
push str.sessionkey
call fcn.004047c0
pop ecx
push eax
push str.sessionkey
push ebx
call esi
push edi
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push ebx
call esi
push edi
lea eax, [ebp - 8]
push eax
movsx eax, word [ebp - 4]
inc eax
push eax
push dword [ebp + 0xc]
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
leave
ret
Function at 0x404303
Capabilities:
Find taskbar

Disassembly:
push esi
push edi
xor edi, edi
push edi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, dword [sym.imp.USER32.dll_FindWindowExA]
push edi
push str.TrayNotifyWnd
push edi
push eax
call esi
push edi
push str.SysPager
push edi
push eax
call esi
push edi
push str.ToolbarWindow32
push edi
push eax
call esi
pop edi
pop esi
ret

Function at 0x405722
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40e9a8], esi
push edi
jne 0x405742
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40e9a4], esi
mov byte [0x40e9a0], al
jne 0x4057a8
mov ecx, dword [0x40ff50]
test ecx, ecx
je 0x405789
mov eax, dword [0x40ff4c]
sub eax, 4
cmp eax, ecx
jmp 0x405782
mov eax, dword [eax]
test eax, eax
je 0x405774
call eax
mov eax, dword [0x40ff4c]
sub eax, 4
cmp eax, dword [0x40ff50]
mov dword [0x40ff4c], eax
jae 0x40576c
mov eax, 0x40e028
mov esi, 0x40e030
cmp eax, esi
mov edi, eax
jae 0x4057a8
mov eax, dword [edi]
test eax, eax
je 0x4057a1
call eax
add edi, 4
cmp edi, esi
jb 0x405799
mov eax, 0x40e034
mov esi, 0x40e03c
cmp eax, esi
mov edi, eax
jae 0x4057c7
mov eax, dword [edi]
test eax, eax
je 0x4057c0
call eax
add edi, 4
cmp edi, esi
jb 0x4057b8
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4057e1
push dword [ebp + 8]
mov dword [0x40e9a8], 1
call fcn.00405688
pop ebp
ret
Function at 0x405c42
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x40c448
call fcn.0040608c
mov edi, 0x94
mov eax, edi
call fcn.00405b20
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x40e968], ecx
mov eax, dword [esi + 4]
mov dword [0x40e974], eax
mov edx, dword [esi + 8]
mov dword [0x40e978], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40e96c], esi
cmp ecx, 2
je 0x405ca2
or esi, 0x8000
mov dword [0x40e96c], esi
shl eax, 8
add eax, edx
mov dword [0x40e970], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x405cdb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x405cdb
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x405cf3
cmp eax, 0x20b
je 0x405ce0
mov dword [ebp - 0x1c], edi
jmp 0x405d07
cmp dword [ecx + 0x84], 0xe
jbe 0x405cdb
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x405d01
cmp dword [ecx + 0x74], 0xe
jbe 0x405cdb
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.00408c6b
pop ecx
test eax, eax
jne 0x405d33
cmp dword [0x40e9b4], 2
je 0x405d20
call fcn.00408505
push 0x1c
call fcn.0040838e
push 0xff
call fcn.00405688
pop ecx
pop ecx
call fcn.004076e8
mov dword [ebp - 4], edi
call fcn.00408aa6
test eax, eax
jge 0x405d4c
push 0x1b
call fcn.00405c1d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40ff44], eax
call fcn.00408984
mov dword [0x40e9ac], eax
call fcn.004088e2
test eax, eax
jge 0x405d72
push 8
call fcn.00405c1d
pop ecx
call fcn.004086af
test eax, eax
jge 0x405d83
push 9
call fcn.00405c1d
pop ecx
push 1
call fcn.004056b8
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x405d99
push eax
call fcn.00405c1d
pop ecx
mov eax, dword [0x40e988]
mov dword [0x40e98c], eax
push eax
push dword [0x40e980]
push dword [0x40e97c]
call fcn.00401ece
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x405dc8
push esi
call fcn.004057e3
call fcn.00405805
jmp 0x405dfa
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.004060c7
ret
Function at 0x40838e
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40e270]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40e570]
je 0x4083c3
inc eax
cmp eax, 0x13
jb 0x4083b4
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40e570]
jne 0x4084e9
mov eax, dword [0x40e9b4]
cmp eax, 1
je 0x4084c1
cmp eax, edx
jne 0x4083f3
cmp dword [0x40e2b4], 1
je 0x4084c1
cmp ecx, 0xfc
je 0x4084e9
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408429
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004075f0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004047c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40845d
mov eax, edi
push eax
call fcn.004047c0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40c48c
push edi
call fcn.00408dc0
add esp, 0x10
push edi
call fcn.004047c0
push dword [esi + 0x40e574]
mov ebx, eax
call fcn.004047c0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00405b20
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004075f0
push edi
push ebx
call fcn.00407600
push 0x40c488
push ebx
call fcn.00407600
push dword [esi + 0x40e574]
push ebx
call fcn.00407600
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00408cbc
add esp, 0x2c
jmp 0x4084e9
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40e574]
push dword [esi]
call fcn.004047c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00404fd2
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x408cbc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40eaf4], ebx
push esi
push edi
jne 0x408d3c
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x408d77
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x40eaf4], eax
je 0x408d77
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40eaf8], eax
call esi
cmp dword [0x40e968], 2
mov dword [0x40eafc], eax
jne 0x408d3c
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40eb04], eax
je 0x408d3c
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40eb00], eax
mov eax, dword [0x40eb00]
test eax, eax
je 0x408d81
call eax
test eax, eax
je 0x408d68
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40eb04]
test eax, eax
je 0x408d68
test byte [ebp - 8], 1
jne 0x408d81
cmp dword [0x40e974], 4
jb 0x408d7b
or byte [ebp + 0x12], 0x20
jmp 0x408da0
xor eax, eax
jmp 0x408db0
or byte [ebp + 0x12], 4
jmp 0x408da0
mov eax, dword [0x40eaf8]
test eax, eax
je 0x408da0
call eax
mov ebx, eax
test ebx, ebx
je 0x408da0
mov eax, dword [0x40eafc]
test eax, eax
je 0x408da0
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40eaf4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408ee4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x408f12
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x408f19
cmp ebx, dword [eax + 4]
jae 0x408f19
xor eax, eax
jmp 0x409109
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x408f2a
xor eax, eax
inc eax
jmp 0x409108
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x408f40
cmp ecx, edx
jae 0x409085
cmp dword [eax + 4], 0
je 0x408f49
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x408f31
cmp dword [ebp + 8], 0
je 0x408f6b
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x409085
cmp eax, esi
jae 0x409085
mov eax, dword [0x40eb08]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x408f90
cmp dword [esi*4 + 0x40eb10], edi
je 0x409089
inc esi
cmp esi, eax
jl 0x408f7e
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x409105
cmp dword [ebp - 8], 0x1000000
jne 0x409105
test byte [ebp - 0xc], 0xcc
je 0x40900e
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x409105
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x409105
cmp word [eax + 0x18], 0x10b
jne 0x409105
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x409105
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40900e
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40900e
test byte [ecx + 0x27], 0x80
jne 0x409085
push 1
push 0x40eb50
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x408f22
mov ecx, dword [0x40eb08]
test ecx, ecx
mov edx, ecx
jle 0x409042
lea eax, [ecx*4 + 0x40eb0c]
cmp dword [eax], edi
je 0x409042
dec edx
sub eax, 4
test edx, edx
jg 0x409036
test edx, edx
jne 0x409073
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40904f
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x409067
lea eax, [edx*4 + 0x40eb10]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x409055
cmp ecx, 0x10
jge 0x409073
inc ecx
mov dword [0x40eb08], ecx
push 0
push 0x40eb50
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x408f22
xor eax, eax
jmp 0x409108
test esi, esi
jle 0x408f22
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40eb50
call ebx
test eax, eax
jne 0x408f22
cmp dword [esi*4 + 0x40eb10], edi
je 0x4090df
mov eax, dword [0x40eb08]
lea esi, [eax - 1]
test esi, esi
jl 0x4090cd
cmp dword [esi*4 + 0x40eb10], edi
je 0x4090c9
dec esi
jns 0x4090bd
test esi, esi
jge 0x4090dd
cmp eax, 0x10
jge 0x4090d8
inc eax
mov dword [0x40eb08], eax
lea esi, [eax - 1]
jmp 0x4090df
je 0x4090f7
xor ecx, ecx
test esi, esi
jl 0x4090f7
lea eax, [ecx*4 + 0x40eb10]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4090e5
push 0
push 0x40eb50
call ebx
jmp 0x408f22
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret