joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4508f0
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 0x45090c
cmp dword [esi + 4], 0
je 0x450939
test byte [ebx + 0x55], 1
jne 0x45092b
mov eax, ebx
call fcn.0044f490
test eax, eax
jne 0x45092b
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x450a49
mov edx, esi
mov eax, ebx
call fcn.00450414
jmp 0x450a49
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 0x450a42
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00452798
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.0044d018
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004508f0
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.00452798
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450a49
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 0x4571b8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4c6298]
cmp byte [eax + 0xc], 0
je 0x457325
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45731e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4c7b9c], 0
jne 0x45720c
push 0x45732c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x457334
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c7b9c], eax
cmp dword [0x4c3da0], 0
jne 0x457307
push 0x457344
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4c3da0], eax
cmp dword [0x4c3da0], 0
je 0x457307
push 0x457350
mov eax, dword [0x4c3da0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c7ba0], eax
push 0x457360
mov eax, dword [0x4c3da0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c7ba4], eax
push 0x457374
mov eax, dword [0x4c3da0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c7ba8], eax
push 0x45738c
mov eax, dword [0x4c3da0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c7bac], eax
push 0x4573a4
mov eax, dword [0x4c3da0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c7bb0], eax
push 0x4573b8
mov eax, dword [0x4c3da0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c7bb4], eax
push 0x4573d0
mov eax, dword [0x4c3da0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c7bb8], eax
push 0x4573e8
mov eax, dword [0x4c3da0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c7bbc], eax
push 0x457404
mov eax, dword [0x4c3da0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c7bc0], eax
push 0x457410
mov eax, dword [0x4c3da0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c7bc4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457325
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x45b42c
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.004046bc
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x45b47b
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.0040492c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x462c7c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x462ccc]
test si, 4
je 0x462c90
or bl, 1
test si, 8
je 0x462c9a
or bl, 4
test si, 1
je 0x462ca4
or bl, 8
test si, 2
je 0x462cae
or bl, 0x10
test si, 0x10
je 0x462cb8
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x462cc7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x462cd0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x462d08]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x462ce9
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x462cf8
or bl, 4
test esi, 0x20000000
je 0x462d03
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4693b0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4693c2
add esp, 0xfffffff0
call fcn.00403bac
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041f28c
mov eax, dword [0x4c5ebc]
mov dword [eax + 4], ebx
mov dword [eax], 0x469754
mov eax, dword [0x4c5ec8]
mov dword [eax + 4], ebx
mov dword [eax], 0x469760
mov eax, ebx
call fcn.0046976c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x416b68]
call fcn.00403858
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x416b68]
call fcn.00403858
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x416b68]
call fcn.00403858
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x416b68]
call fcn.00403858
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x416b68]
call fcn.00403858
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, 0x465b88
push eax
push 0
push 0
mov eax, dword [0x4c604c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x420d40]
call fcn.00422554
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x420d40]
call fcn.00422554
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x420d40]
call fcn.00422554
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00469b8c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x469a68
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x469a68
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x469a68
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4694ff
call fcn.00403c04
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x46984c
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 0x4699f7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4699d8
mov dl, 1
mov eax, dword [0x417110]
call fcn.00403858
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004046bc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4699c7
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.00457518
test al, al
je 0x4699ba
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, 0x469a08
lea eax, [ebp - 0x254]
call fcn.00409fc4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4699ba
xor eax, eax
push ebp
push 0x4699b3
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 0x469a40
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46999c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040492c
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 0x46999c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040492c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4699ba
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4698bd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041b394
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 0x4699fe
lea eax, [ebp - 0x260]
call fcn.004046bc
ret

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

Disassembly:
push ecx
mov eax, dword [0x4c7be8]
cmp byte [eax + 0xa5], 0
jne 0x46a39d
cmp dword [0x4c7c00], 0
jne 0x46a35e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x46a2e8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4c7c00], eax
cmp dword [0x4c7bfc], 0
jne 0x46a379
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4c7bfc], eax
cmp dword [0x4c7c04], 0
jne 0x46a39d
push esp
push 0
push 0
push 0x46a28c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4c7c04], eax
pop edx
ret
Function at 0x46a494
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x46a4ab
add esp, 0xfffffff0
call fcn.00403bac
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041f28c
mov eax, dword [0x4c6030]
cmp word [eax + 2], 0
jne 0x46a4d3
mov eax, dword [0x4c6030]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046bc14
mov eax, dword [0x4c6104]
cmp word [eax + 2], 0
jne 0x46a4ed
mov eax, dword [0x4c6104]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046be0c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x416b68]
call fcn.00403858
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x416b68]
call fcn.00403858
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 [0x4218c0]
call fcn.00429a70
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x46a674
mov eax, dword [0x4c5f38]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00429e40
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x46c3bc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4c5f38]
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.0040d8ac
test eax, eax
je 0x46a5e2
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004099a4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d8d4
test eax, eax
je 0x46a5f6
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.0040492c
mov eax, dword [0x4c5dc0]
cmp byte [eax], 0
jne 0x46a62a
mov eax, ebx
call fcn.0046a79c
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.0046c598
mov eax, ebx
call fcn.0046cf5c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46a66a
call fcn.00403c04
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46aa1c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4c7be8]
cmp dword [eax + 0x30], 0
je 0x46aac6
cmp dword [ebx + 0x94], 0
jne 0x46aac0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46a9ac
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46aac0
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 0x46aa86
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46aac0
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.0041905c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46aa95
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46b628
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 0x46b65d
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.004047ac
jmp 0x46b66a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404710
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46c774
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46c7b5
mov eax, esi
call fcn.00452a9c
test al, al
je 0x46c7b5
mov eax, dword [ebx + 0x84]
call fcn.00452798
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46c7b5
push 0
mov eax, dword [ebx + 0x84]
call fcn.00452798
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x46dafc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x46db34]
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x46db12
or bl, 1
push 0x11
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x46db21
or bl, 4
push 0x12
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x46db30
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x46efcc
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x4c60e4]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46eff2
push 0
mov eax, dword [0x4c60e4]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
ret
Function at 0x4734c4
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 0x473560
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call fcn.00404d08
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.00404bd4
lea edx, [ebp + 0x30]
mov byte [eax + esi - 1], dl
dec esi
test ebx, ebx
jne 0x4734ec
cmp byte [esp], 0
je 0x473531
mov eax, edi
call fcn.00404bd4
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x47356c
mov eax, edi
call fcn.00404bd4
push eax
mov eax, edi
call fcn.00404bd4
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.00404d08
jmp 0x47356c
mov eax, edi
mov edx, 0x47357c
call fcn.00404710
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x473b4c
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.00404b6c
xor eax, eax
push ebp
push 0x473bae
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00404710
mov eax, ebx
call fcn.00404bcc
mov eax, dword [ebx]
call fcn.0040497c
test eax, eax
jle 0x473b98
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x473b8d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473bb5
lea eax, [ebp - 4]
call fcn.004046bc
ret

Function at 0x473e54
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 0x473e8c
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [eax], 0x5a4d
jne 0x473e82
lea edx, [eax + 0x3c]
mov ebx, dword [edx]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x473e82
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x473e98
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x473fd0
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.00404b6c
xor eax, eax
push ebp
push 0x4741ae
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
test ebx, ebx
je 0x47418d
mov eax, ebx
call fcn.00473e54
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x474178
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 0x474178
mov eax, dword [edi + 0x18]
dec eax
test eax, eax
jl 0x474178
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.004048b4
mov eax, dword [ebp - 0x12c]
mov edx, dword [ebp - 4]
call fcn.00404ac8
jne 0x47416c
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 0x47415f
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 0x47415f
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 0x474156
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 0x47414d
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00473f7c
add eax, dword [ebp - 0x1c]
mov edi, eax
mov edx, dword [edi + 0x1c]
mov eax, dword [ebp - 8]
call fcn.00473f7c
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.00473ecc
mov esi, eax
jmp 0x474178
inc dword [ebp - 0xc]
dec dword [ebp - 0x20]
jne 0x47404c
test esi, esi
jne 0x47418d
mov eax, dword [ebp - 4]
call fcn.00404b7c
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 0x4741b5
lea eax, [ebp - 0x12c]
call fcn.004046bc
lea eax, [ebp - 4]
call fcn.004046bc
ret
Function at 0x476dbc
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 0x476e38
cmp dword [esp + 0x10], 0x1000
jne 0x476e38
cmp dword [esp + 4], 0
je 0x476e38
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 0x476e38
mov eax, dword [esp + 4]
mov dword [esi], eax
mov eax, dword [esi]
cmp word [eax], 0x5a4d
jne 0x476e38
mov eax, dword [esi]
mov edx, dword [esi]
add edx, 0x3c
add eax, dword [edx]
cmp dword [eax], 0x4550
jne 0x476e38
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