joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4543cc
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x4543e8
cmp dword [esi + 4], 0
je 0x454415
test byte [ebx + 0x55], 1
jne 0x454407
mov eax, ebx
call fcn.00452f6c
test eax, eax
jne 0x454407
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x454525
mov edx, esi
mov eax, ebx
call fcn.00453ef0
jmp 0x454525
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x45451e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00456274
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00450af4
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004543cc
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00456274
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454525
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45ac94
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4bfabc]
cmp byte [eax + 0xc], 0
je 0x45ae01
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45adfa
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4c0b9c], 0
jne 0x45ace8
push 0x45ae08
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x45ae10
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c0b9c], eax
cmp dword [0x4bde20], 0
jne 0x45ade3
push 0x45ae20
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4bde20], eax
cmp dword [0x4bde20], 0
je 0x45ade3
push 0x45ae2c
mov eax, dword [0x4bde20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c0ba0], eax
push 0x45ae3c
mov eax, dword [0x4bde20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c0ba4], eax
push 0x45ae50
mov eax, dword [0x4bde20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c0ba8], eax
push 0x45ae68
mov eax, dword [0x4bde20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c0bac], eax
push 0x45ae80
mov eax, dword [0x4bde20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c0bb0], eax
push 0x45ae94
mov eax, dword [0x4bde20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c0bb4], eax
push 0x45aeac
mov eax, dword [0x4bde20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c0bb8], eax
push 0x45aec4
mov eax, dword [0x4bde20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c0bbc], eax
push 0x45aee0
mov eax, dword [0x4bde20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c0bc0], eax
push 0x45aeec
mov eax, dword [0x4bde20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c0bc4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ae01
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x45ef08
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.00404894
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x45ef57
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.00404b04
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x466758
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4667a8]
test si, 4
je 0x46676c
or bl, 1
test si, 8
je 0x466776
or bl, 4
test si, 1
je 0x466780
or bl, 8
test si, 2
je 0x46678a
or bl, 0x10
test si, 0x10
je 0x466794
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4667a3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4667ac
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4667e4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4667c5
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4667d4
or bl, 4
test esi, 0x20000000
je 0x4667df
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x46ce8c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x46ce9e
add esp, 0xfffffff0
call fcn.00403da4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041f2c0
mov eax, dword [0x4bf6d4]
mov dword [eax + 4], ebx
mov dword [eax], 0x46d230
mov eax, dword [0x4bf6e0]
mov dword [eax + 4], ebx
mov dword [eax], 0x46d23c
mov eax, ebx
call fcn.0046d248
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x416adc]
call fcn.00403a50
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x416adc]
call fcn.00403a50
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x416adc]
call fcn.00403a50
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x416adc]
call fcn.00403a50
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x416adc]
call fcn.00403a50
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, 0x469664
push eax
push 0
push 0
mov eax, dword [0x4bf870]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x420d84]
call fcn.00422598
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x420d84]
call fcn.00422598
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x420d84]
call fcn.00422598
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0046d668
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46d544
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46d544
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46d544
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46cfdb
call fcn.00403dfc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x46d328
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46d4d3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x46d4b4
mov dl, 1
mov eax, dword [0x417084]
call fcn.00403a50
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404894
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46d4a3
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0045aff4
test al, al
je 0x46d496
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x46d4e4
lea eax, [ebp - 0x254]
call fcn.0040a290
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46d496
xor eax, eax
push ebp
push 0x46d48f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x46d51c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46d478
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404b04
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
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 - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x46d478
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404b04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d496
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x46d399
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041b308
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 0x46d4da
lea eax, [ebp - 0x260]
call fcn.00404894
ret

Function at 0x46de08
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4c0be8]
cmp byte [eax + 0xa5], 0
jne 0x46de79
cmp dword [0x4c0c00], 0
jne 0x46de3a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x46ddc4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4c0c00], eax
cmp dword [0x4c0bfc], 0
jne 0x46de55
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4c0bfc], eax
cmp dword [0x4c0c04], 0
jne 0x46de79
push esp
push 0
push 0
push 0x46dd68
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4c0c04], eax
pop edx
ret
Function at 0x46df70
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x46df87
add esp, 0xfffffff0
call fcn.00403da4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041f2c0
mov eax, dword [0x4bf854]
cmp word [eax + 2], 0
jne 0x46dfaf
mov eax, dword [0x4bf854]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046f6f0
mov eax, dword [0x4bf928]
cmp word [eax + 2], 0
jne 0x46dfc9
mov eax, dword [0x4bf928]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046f8e8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x416adc]
call fcn.00403a50
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x416adc]
call fcn.00403a50
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x421904]
call fcn.004297f4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x46e150
mov eax, dword [0x4bf750]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00429bc4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x46fe98
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4bf750]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040dc8c
test eax, eax
je 0x46e0be
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409c70
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040dcb4
test eax, eax
je 0x46e0d2
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404b04
mov eax, dword [0x4bf5d8]
cmp byte [eax], 0
jne 0x46e106
mov eax, ebx
call fcn.0046e278
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00470074
mov eax, ebx
call fcn.00470a38
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46e146
call fcn.00403dfc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46e4f8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4c0be8]
cmp dword [eax + 0x30], 0
je 0x46e5a2
cmp dword [ebx + 0x94], 0
jne 0x46e59c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46e488
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46e59c
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 0x46e562
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46e59c
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.00418fd0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46e571
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46f104
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 0x46f139
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.00404984
jmp 0x46f146
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004048e8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x470250
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x470291
mov eax, esi
call fcn.00456578
test al, al
je 0x470291
mov eax, dword [ebx + 0x84]
call fcn.00456274
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x470291
push 0
mov eax, dword [ebx + 0x84]
call fcn.00456274
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4715d8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x471610]
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4715ee
or bl, 1
push 0x11
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4715fd
or bl, 4
push 0x12
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x47160c
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x472aa8
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x4bf908]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x472ace
push 0
mov eax, dword [0x4bf908]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
ret
Function at 0x476fd4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
je 0x477070
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call fcn.00404ee0
mov esi, 0xb
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebp, eax
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov ebx, eax
mov eax, edi
call fcn.00404dac
lea edx, [ebp + 0x30]
mov byte [eax + esi - 1], dl
dec esi
test ebx, ebx
jne 0x476ffc
cmp byte [esp], 0
je 0x477041
mov eax, edi
call fcn.00404dac
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x47707c
mov eax, edi
call fcn.00404dac
push eax
mov eax, edi
call fcn.00404dac
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.00402a58
mov edx, ebx
mov eax, edi
call fcn.00404ee0
jmp 0x47707c
mov eax, edi
mov edx, 0x47708c
call fcn.004048e8
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x47765c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d44
xor eax, eax
push ebp
push 0x4776be
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004048e8
mov eax, ebx
call fcn.00404da4
mov eax, dword [ebx]
call fcn.00404b54
test eax, eax
jle 0x4776a8
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x47769d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4776c5
lea eax, [ebp - 4]
call fcn.00404894
ret

Function at 0x477964
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor ebx, ebx
xor edx, edx
push ebp
push 0x47799c
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [eax], 0x5a4d
jne 0x477992
lea edx, [eax + 0x3c]
mov ebx, dword [edx]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x477992
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4779a8
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x477ae0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404d44
xor eax, eax
push ebp
push 0x477cbe
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
test ebx, ebx
je 0x477c9d
mov eax, ebx
call fcn.00477964
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x477c88
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x78]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add eax, ebx
mov edi, eax
test edi, edi
je 0x477c88
mov eax, dword [edi + 0x18]
dec eax
test eax, eax
jl 0x477c88
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x12c]
mov edx, dword [edi + 0x20]
add edx, ebx
mov ecx, dword [ebp - 0xc]
mov edx, dword [edx + ecx*4]
add edx, ebx
call fcn.00404a8c
mov eax, dword [ebp - 0x12c]
mov edx, dword [ebp - 4]
call fcn.00404ca0
jne 0x477c7c
mov eax, dword [edi + 0x24]
add eax, ebx
mov edx, dword [ebp - 0xc]
mov si, word [eax + edx*2]
movzx eax, si
mov edx, dword [edi + 0x1c]
add edx, ebx
mov edi, dword [edx + eax*4]
mov eax, dword [ebp - 8]
cmp edi, dword [eax + 0x50]
jbe 0x477c6f
xor edi, edi
push 0x104
lea eax, [ebp - 0x125]
push eax
push ebx
call sub.kernel32.dll_GetModuleFileNameA_1
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x125]
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x477c6f
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x477c66
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x477c5d
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00477a8c
add eax, dword [ebp - 0x1c]
mov edi, eax
mov edx, dword [edi + 0x1c]
mov eax, dword [ebp - 8]
call fcn.00477a8c
add eax, dword [ebp - 0x1c]
movzx edx, si
mov edi, dword [eax + edx*4]
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_UnmapViewOfFile
push 0x104
lea eax, [ebp - 0x125]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_1
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
mov edx, edi
mov eax, ebx
call fcn.004779dc
mov esi, eax
jmp 0x477c88
inc dword [ebp - 0xc]
dec dword [ebp - 0x20]
jne 0x477b5c
test esi, esi
jne 0x477c9d
mov eax, dword [ebp - 4]
call fcn.00404d54
push eax
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477cc5
lea eax, [ebp - 0x12c]
call fcn.00404894
lea eax, [ebp - 4]
call fcn.00404894
ret
Function at 0x47a8cc
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffedc
mov ebp, ecx
mov esi, edx
mov edi, eax
xor ebx, ebx
push 0x1c
lea eax, [esp + 4]
push eax
push edi
call sub.kernel32.dll_VirtualQuery_1
cmp eax, 0x1c
jne 0x47a948
cmp dword [esp + 0x10], 0x1000
jne 0x47a948
cmp dword [esp + 4], 0
je 0x47a948
push 0x104
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
test eax, eax
je 0x47a948
mov eax, dword [esp + 4]
mov dword [esi], eax
mov eax, dword [esi]
cmp word [eax], 0x5a4d
jne 0x47a948
mov eax, dword [esi]
mov edx, dword [esi]
add edx, 0x3c
add eax, dword [edx]
cmp dword [eax], 0x4550
jne 0x47a948
mov edx, dword [esi]
add edx, dword [eax + 0x78]
mov dword [ebp], edx
cmp dword [ebp], 0
setne bl
mov eax, ebx
add esp, 0x124
pop ebp
pop edi
pop esi
pop ebx
ret