joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c408
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44c440]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44c421
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44c430
or bl, 4
test esi, 0x20000000
je 0x44c43b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x452b7c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x452b8e
add esp, 0xfffffff0
call fcn.00403e68
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041aac4
mov eax, dword [0x46114c]
mov dword [eax + 4], ebx
mov dword [eax], 0x452f20
mov eax, dword [0x461158]
mov dword [eax + 4], ebx
mov dword [eax], 0x452f2c
mov eax, ebx
call fcn.00452f38
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x412710]
call fcn.00403b18
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x412710]
call fcn.00403b18
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x412710]
call fcn.00403b18
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x412710]
call fcn.00403b18
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x412710]
call fcn.00403b18
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, 0x44f2f0
push eax
push 0
push 0
mov eax, dword [0x4612b0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41c54c]
call fcn.0041d9b4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41c54c]
call fcn.0041d9b4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41c54c]
call fcn.0041d9b4
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004533ac
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453274
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453274
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453274
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x452ccb
call fcn.00403ec0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x453034
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 0x453204
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4531e5
mov dl, 1
mov eax, dword [0x412b2c]
call fcn.00403b18
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404940
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 0x4531d4
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.00440a1c
test al, al
jne 0x4530d1
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4531c7
xor edx, edx
push ebp
push 0x4531c0
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 0x4530f1
mov ebx, dword [ebp - 0x10]
jmp 0x4530f3
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, 0x453214
lea eax, [ebp - 0x258]
call fcn.00409904
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4531a9
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 0x45324c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4531a9
lea eax, [ebp - 0x264]
lea edx, [ebp - 0x218]
mov ecx, pe_nt_image_headers32
call fcn.00404bb0
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 0x4531a9
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x218]
mov ecx, pe_nt_image_headers32
call fcn.00404bb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4531c7
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x18], 4
dec dword [ebp - 0x14]
jne 0x4530b2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00416728
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 0x45320b
lea eax, [ebp - 0x264]
call fcn.00404940
ret
Function at 0x453b4c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x462b48]
cmp byte [eax + 0xa5], 0
jne 0x453bbd
cmp dword [0x462b60], 0
jne 0x453b7e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x453b08
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x462b60], eax
cmp dword [0x462b5c], 0
jne 0x453b99
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x462b5c], eax
cmp dword [0x462b64], 0
jne 0x453bbd
push esp
push 0
push 0
push 0x453aac
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x462b64], eax
pop edx
ret

Function at 0x454250
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x462b48]
cmp dword [eax + 0x30], 0
je 0x4542fa
cmp dword [ebx + 0x94], 0
jne 0x4542f4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4541e0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4542f4
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 0x4542ba
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4542f4
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.00414b0c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4542c9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x454e58
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 0x454e8d
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.00404a30
jmp 0x454e9a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404994
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x455fbc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x455ffd
mov eax, esi
call fcn.0043bf70
test al, al
je 0x455ffd
mov eax, dword [ebx + 0x84]
call fcn.0043bc6c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x455ffd
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043bc6c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x457654
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4576dd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x462b70
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x4576c7
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040bb5c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x4576f4
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x4613b0]
mov dl, 1
mov eax, dword [0x4569b8]
call fcn.0040c490
call fcn.004042d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4576e4
lea eax, [ebp - 0x1c]
call fcn.00404940
ret

Function at 0x457da8
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.00457ccc
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403d50
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x457e0c
call fcn.0045759c
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x457dfe
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403d50
pop esi
pop ebx
ret

Function at 0x457f7c
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff4
mov ebx, edx
mov eax, ebx
call fcn.00404e00
push eax
call sub.wsock32.dll_gethostbyname
mov dword [esp + 4], eax
lea eax, [esp + 8]
xor ecx, ecx
mov edx, 4
call fcn.004033f8
cmp dword [esp + 4], 0
je 0x457fce
mov eax, dword [esp + 4]
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 8], cl
mov cl, byte [edx + 1]
mov byte [esp + 9], cl
mov cl, byte [edx + 2]
mov byte [esp + 0xa], cl
mov al, byte [edx + 3]
mov byte [esp + 0xb], al
mov eax, dword [esp + 8]
mov dword [esp], eax
mov eax, dword [esp]
add esp, 0xc
pop ebx
ret
Function at 0x4580b4
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4580e5
mov ecx, dword [0x461494]
mov dl, 1
mov eax, dword [0x4569b8]
call fcn.0040c454
call fcn.004042d0
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x458112
mov ecx, dword [0x461294]
mov dl, 1
mov eax, dword [0x4569b8]
call fcn.0040c454
call fcn.004042d0
xor eax, eax
push ebp
push 0x458193
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00403d50
cmp byte [ebp + 8], 0
je 0x45816d
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0045801c
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00457d28
jmp 0x458189
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00457888
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4581b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x458394
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00457b50
xor eax, eax
push ebp
push 0x458506
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x4584f0
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x4583e0
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4583ea
call fcn.0040437c
jmp 0x45850d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004167e4
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x4584e5
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov edi, eax
cmp edi, 0xffffffff
jne 0x458498
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x458485
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403d50
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.0045834c
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x458518]
cmp dl, byte [eax + 0x28]
je 0x4584ec
call fcn.0040c378
jmp 0x4584ec
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00416804
jmp 0x4584ec
cmp edi, ebx
jge 0x4584b4
mov eax, dword [ebp - 0xc]
add eax, edi
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00416804
jmp 0x4583ea
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004167e4
cmp edx, dword [esp + 4]
jne 0x4584d4
cmp eax, dword [esp]
pop edx
pop eax
jne 0x4583ea
push ebp
call fcn.0045834c
pop ecx
jmp 0x4584ec
push ebp
call fcn.0045834c
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45850d
mov eax, dword [ebp - 4]
call fcn.00457b5c
ret
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45851c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45863e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00457b50
xor eax, eax
push ebp
push 0x458621
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x45856c
call fcn.0040437c
jmp 0x458628
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x45860b
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x45860b
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403d50
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x45860b
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040bb5c
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x458658
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4613b0]
mov dl, 1
mov eax, dword [0x4569b8]
call fcn.0040c490
call fcn.004042d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458628
mov eax, dword [ebp - 4]
call fcn.00457b5c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458645
lea eax, [ebp - 0x28]
call fcn.00404940
ret
Function at 0x4586a4
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4587ee
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00457b50
xor eax, eax
push ebp
push 0x4587d1
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x458709
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x458709
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x4587bb
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x45871c
call fcn.0040437c
jmp 0x4587d8
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4587bb
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4587bb
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403d50
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x4587bb
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040bb5c
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x458808
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4613b0]
mov dl, 1
mov eax, dword [0x4569b8]
call fcn.0040c490
call fcn.004042d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4587d8
mov eax, dword [ebp - 4]
call fcn.00457b5c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4587f5
lea eax, [ebp - 0x28]
call fcn.00404940
ret
Function at 0x401120
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1f4
mov ecx, dword [esp + 0x1f8]
xor eax, eax
push ebx
push ebp
mov al, byte [ecx + 6]
mov ebp, dword [esp + 0x208]
add ecx, 7
push esi
mov dword [esp + 0xc], ecx
push edi
lea ecx, [esp + 0x20]
mov esi, 2
mov edx, eax
xor ebx, ebx
and edx, 3
sub ecx, 4
sar eax, 2
mov bl, byte [edx + 0x416030]
dec esi
mov dword [ecx + 4], ebx
jne 0x40114d
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
mov ebx, dword [ecx]
cmp ebx, 1
je 0x4011ae
cmp ebx, 4
je 0x4011ae
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x24]
push 0x18
push edx
push eax
push 0x420748
call fcn.00406db0
mov ecx, 0x78
lea esi, [esp + 0x34]
mov edi, ebp
add esp, 0x10
rep movsd dword es:[edi], dword [esi]
jmp 0x4011b9
mov ecx, 0x78
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add esi, ebx
add ebp, 0x1e0
add ecx, 4
dec eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
jne 0x401176
pop edi
pop esi
pop ebp
mov eax, 0x3c0
pop ebx
add esp, 0x1f4
ret 0xc
Function at 0x402b40
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 9]
push ebp
and eax, 0x1c0
mov ebp, ecx
cmp eax, 0x80
jbe 0x402b5e
mov eax, 1
pop ebp
pop ecx
ret 0x10
push ebx
lea ecx, [ebp + 0x8c]
push 0x416044
push ecx
mov dword [esp + 0x10], 0
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x402bec
push esi
push edi
mov edi, dword [esp + 0x1d]
push edi
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
test esi, esi
je 0x402be0
mov edx, dword [esp + 0x24]
push 0
push edx
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
push ebx
push edi
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
cmp edi, eax
jne 0x402be0
mov eax, dword [ebp + 0x29c]
mov ecx, dword [ebp + 0x298]
push eax
push edi
push esi
call fcn.00408fc0
test eax, eax
je 0x402be0
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x10], 1
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
mov eax, dword [esp + 8]
pop ebx
pop ebp
pop ecx
ret 0x10
Function at 0x404870
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3f0
mov eax, dword [esp + 0x3f5]
push ebx
and eax, 0x1c0
push ebp
push esi
cmp eax, 0x100
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
jne 0x404920
mov eax, dword [0x420c58]
mov ecx, dword [0x4207e0]
lea eax, [eax + eax*4]
mov edx, dword [ecx + eax*4 + 0x10]
shr edx, 1
and edx, 1
mov dword [esi + 0x193c0], edx
mov eax, dword [0x420c58]
mov ecx, dword [0x4207e0]
lea eax, [eax + eax*4]
mov edx, dword [ecx + eax*4 + 0x10]
shr edx, 2
and edx, 1
mov dword [esi + 0x193c4], edx
mov eax, dword [0x420c58]
mov ecx, dword [0x4207e0]
lea eax, [eax + eax*4]
mov edx, dword [ecx + eax*4 + 0x10]
shr edx, 4
and edx, 0x3fff
mov dword [esi + 0x193b8], edx
mov eax, dword [0x420c58]
mov ecx, dword [0x4207e0]
lea eax, [eax + eax*4]
mov edx, dword [ecx + eax*4 + 0x10]
mov eax, 1
shr edx, 0x12
mov dword [esi + 0x193bc], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3f0
ret 0x10
lea eax, [esi + 0x194c4]
push 0x416044
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
mov dword [esp + 0x18], ebp
je 0x404a54
mov edi, dword [esp + 0x409]
push edi
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x404a4a
mov ecx, dword [esp + 0x410]
push 0
push ecx
push ebp
call dword [sym.imp.MSVCRT.dll_fseek]
push ebp
push edi
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
cmp edi, eax
jne 0x404a4a
mov eax, dword [esp + 0x10]
cmp eax, 0x80
ja 0x4049df
lea ebp, [esi + 0x60]
lea ecx, [esi + 0x90]
push ebp
push edi
push ebx
call fcn.00408fc0
test eax, eax
je 0x404a46
push ebp
lea ecx, [esi + 0x78]
call sym.ScrSelfPlayer.exe_public:_int___thiscall_CTPImage::DuplicateFrom_class_CTPImage__
mov edx, dword [esi + 0x6c]
mov eax, dword [esi + 0x70]
mov ecx, esi
mov dword [esi + 0x194bc], edx
mov dword [esi + 0x194c0], eax
call fcn.004050e0
mov ecx, esi
call fcn.00405630
mov ebp, dword [esp + 0x18]
jmp 0x404a33
cmp eax, 0xc0
jne 0x404a33
lea ecx, [esi + 0x145c4]
mov dword [esp + 0x10], ecx
call fcn.00406890
test eax, eax
je 0x404a33
lea ecx, [esp + 0x3d]
push ecx
push 0
push ebx
lea ecx, [esi + 0x19384]
call fcn.00401120
test eax, eax
je 0x404a33
sub esp, 0x3e4
mov ecx, 0xf8
lea esi, [esp + 0x400]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x3f4]
movsb byte es:[edi], byte [esi]
call fcn.004068a0
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x14], 1
jmp 0x404a4a
mov ebp, dword [esp + 0x18]
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3f0
ret 0x10