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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x433364
mov eax, esi
call fcn.00448abc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x433364
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x433364
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x4334a3
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x4333a4
cmp eax, 0x108
ja 0x4333a4
mov eax, esi
call fcn.00448abc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x43349a
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x4334a3
jmp 0x43349a
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x433483
cmp eax, 0x20a
ja 0x433483
test byte [esi + 0x50], 0x80
jne 0x4333d6
sub eax, 0x203
je 0x4333d3
sub eax, 3
je 0x4333d3
sub eax, 3
jne 0x4333d6
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x4333ea
dec eax
je 0x4333ff
dec eax
je 0x43341c
dec eax
je 0x4333ff
jmp 0x433423
mov ecx, ebx
mov eax, dword [0x524068]
mov eax, dword [eax]
mov edx, esi
call fcn.00452384
jmp 0x43349a
cmp byte [esi + 0x5d], 1
jne 0x433415
mov eax, esi
mov si, 0xffed
call fcn.004036b4
jmp 0x4334a3
or word [esi + 0x54], 1
jmp 0x43349a
and word [esi + 0x54], 0xfffe
jmp 0x43349a
mov eax, dword [0x525aa4]
cmp byte [eax + 0x20], 0
je 0x43349a
mov eax, dword [0x525aa4]
cmp dword [eax + 0x1c], 0
je 0x43349a
mov eax, dword [ebx]
mov edx, dword [0x525aa4]
cmp eax, dword [edx + 0x1c]
jne 0x43349a
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.00448a00
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.004036b4
jmp 0x4334a3
cmp eax, 0xb00b
jne 0x43349a
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00431c2c
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x436a24
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 0x436a40
cmp dword [esi + 4], 0
je 0x436a6d
test byte [ebx + 0x55], 1
jne 0x436a5f
mov eax, ebx
call fcn.004355c4
test eax, eax
jne 0x436a5f
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x436b7d
mov edx, esi
mov eax, ebx
call fcn.00436548
jmp 0x436b7d
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 0x436b76
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00438894
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.0043324c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00436a24
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.00438894
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x436b7d
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 0x43d114
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x5241d4]
cmp byte [eax + 0xc], 0
je 0x43d281
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43d27a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x525af8], 0
jne 0x43d168
push 0x43d288
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43d290
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x525af8], eax
cmp dword [0x46bb14], 0
jne 0x43d263
push 0x43d2a0
call sub.kernel32.dll_LoadLibraryA
mov dword [0x46bb14], eax
cmp dword [0x46bb14], 0
je 0x43d263
push 0x43d2ac
mov eax, dword [0x46bb14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x525afc], eax
push 0x43d2bc
mov eax, dword [0x46bb14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x525b00], eax
push 0x43d2d0
mov eax, dword [0x46bb14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x525b04], eax
push 0x43d2e8
mov eax, dword [0x46bb14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x525b08], eax
push 0x43d300
mov eax, dword [0x46bb14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x525b0c], eax
push 0x43d314
mov eax, dword [0x46bb14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x525b10], eax
push 0x43d32c
mov eax, dword [0x46bb14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x525b14], eax
push 0x43d344
mov eax, dword [0x46bb14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x525b18], eax
push 0x43d360
mov eax, dword [0x46bb14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x525b1c], eax
push 0x43d36c
mov eax, dword [0x46bb14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x525b20], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43d281
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x441150
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.00404238
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44119f
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.004044a8
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x448970
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4489c0]
test si, 4
je 0x448984
or bl, 1
test si, 8
je 0x44898e
or bl, 4
test si, 1
je 0x448998
or bl, 8
test si, 2
je 0x4489a2
or bl, 0x10
test si, 0x10
je 0x4489ac
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4489bb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4489c4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4489fc]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4489dd
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4489ec
or bl, 4
test esi, 0x20000000
je 0x4489f7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44f0c0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44f0d2
add esp, 0xfffffff0
call fcn.004037e4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004198b8
mov eax, dword [0x523e84]
mov dword [eax + 4], ebx
mov dword [eax], 0x44f464
mov eax, dword [0x523e90]
mov dword [eax + 4], ebx
mov dword [eax], 0x44f470
mov eax, ebx
call fcn.0044f47c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411ad0]
call fcn.0040347c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411ad0]
call fcn.0040347c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411ad0]
call fcn.0040347c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411ad0]
call fcn.0040347c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411ad0]
call fcn.0040347c
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, 0x44b894
push eax
push 0
push 0
mov eax, dword [0x523fe4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b380]
call fcn.0041ca40
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b380]
call fcn.0041ca40
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b380]
call fcn.0041ca40
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044f8cc
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44f794
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44f794
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44f794
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44f20f
call fcn.0040383c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44f578
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 0x44f723
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44f704
mov dl, 1
mov eax, dword [0x411eec]
call fcn.0040347c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404238
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44f6f3
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.0043d474
test al, al
je 0x44f6e6
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, 0x44f734
lea eax, [ebp - 0x254]
call fcn.00408e84
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44f6e6
xor eax, eax
push ebp
push 0x44f6df
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 0x44f76c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44f6c8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044a8
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 0x44f6c8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44f6e6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44f5e9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415a50
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 0x44f72a
lea eax, [ebp - 0x260]
call fcn.00404238
ret

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

Disassembly:
push ecx
mov eax, dword [0x525b44]
cmp byte [eax + 0xa5], 0
jne 0x4500dd
cmp dword [0x525b5c], 0
jne 0x45009e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x450028
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x525b5c], eax
cmp dword [0x525b58], 0
jne 0x4500b9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x525b58], eax
cmp dword [0x525b60], 0
jne 0x4500dd
push esp
push 0
push 0
push 0x44ffcc
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x525b60], eax
pop edx
ret
Function at 0x450770
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x525b44]
cmp dword [eax + 0x30], 0
je 0x45081a
cmp dword [ebx + 0x94], 0
jne 0x450814
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x450700
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x450814
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 0x4507da
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x450814
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.00413e4c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4507e9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x451378
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 0x4513ad
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.00404328
jmp 0x4513ba
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040428c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4524cc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45250d
mov eax, esi
call fcn.00438b98
test al, al
je 0x45250d
mov eax, dword [ebx + 0x84]
call fcn.00438894
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45250d
push 0
mov eax, dword [ebx + 0x84]
call fcn.00438894
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x455bfc
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x455c2a
mov eax, ebx
call fcn.004566b0
cmp dword [ebx + 0x40], 0
je 0x455c23
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x455c9b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x455c8d
cmp dword [ebx + 8], 0
je 0x455c4c
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 0x455c5e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x455c8d
cmp dword [ebx + 8], 0
je 0x455c3f
cmp eax, 3
je 0x455c71
dec eax
jne 0x455c3f
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 0x455c3f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x455c3f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x455cb9
cmp dword [ebx + 0x14], 0xcc
je 0x455cb9
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.00455cc4
pop ebx
ret
Function at 0x401225
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b01c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [0x40b020], 0x401219
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
mov dword [0x40b038], eax
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
lea eax, [0x40903c]
fnstenv [eax]
push 0
push 0x40b030
push 0x40b02c
push 0x40b028
call sub.CRTDLL.DLL___GetMainArgs
mov ecx, 0x409058
mov edx, dword [ecx]
or edx, edx
je 0x40129f
call ecx
push dword [0x40b030]
push dword [0x40b02c]
push dword [0x40b028]
mov dword [0x40b014], esp
call fcn.00402230
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40298c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp edi, 1
je 0x402a1a
cmp edi, 4
jne 0x402a0f
mov eax, dword [sym.imp.CRTDLL.DLL__iob]
add eax, 0x40
push eax
push 1
push 7
push str.signal
call sub.CRTDLL.DLL_fwrite
push 0xa
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0xc]
call sub.CRTDLL.DLL__itoa
add esp, 0x1c
lea ecx, [ebp - 0x80]
or eax, 0xffffffff
inc eax
cmp byte [ecx + eax], 0
jne 0x4029d3
mov ebx, dword [sym.imp.CRTDLL.DLL__iob]
add ebx, 0x40
push ebx
push 1
push eax
lea esi, [ebp - 0x80]
push esi
call sub.CRTDLL.DLL_fwrite
add esp, 0x10
mov eax, dword [sym.imp.CRTDLL.DLL__iob]
add eax, 0x40
push eax
push 1
push 1
push 0x40b450
call sub.CRTDLL.DLL_fwrite
add esp, 0x10
jmp 0x402a1a
cmp edi, 3
je 0x402a1a
push dword [ebp + 0xc]
call edi
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405284
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f8
push ebx
push esi
push edi
or dword [ebp - 0x20], 0xffffffff
and dword [ebp - 0x14], 0
or dword [ebp - 0x13c], 0xffffffff
push pe_nt_image_headers32
push 0
lea eax, [ebp - 0x1c0]
push eax
call sub.CRTDLL.DLL_memset
add esp, 0xc
and dword [ebp - 4], 0
and dword [ebp - 0x138], 0
jmp 0x405d32
Function at 0x6f0370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x6f038e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x719074
push ecx
mov edi, eax
call fcn.00704198
mov esi, eax
add esp, 8
test esi, esi
jne 0x6f03cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0070402e
push esi
call fcn.00703fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x6f3850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x6f38ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x71e720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x6f38ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.007041e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x6f38ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x71e720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x6f392a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00705082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x6f3957
mov word [eax], si
add eax, 2
push eax
call fcn.00705030
add esp, 4
jmp 0x6f3959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x6f38ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x6f38b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x6f3ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x6f4080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x6f40c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x719458
push ecx
call fcn.007041e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.007041e1
add esp, 0x10
jmp 0x6f40d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0070420b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00703dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.006f4050
mov eax, dword [0x71e728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x6f413b
push esi
call fcn.006f3fb0
add esp, 4
mov dword [0x71e728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x6f414c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.006f3ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x6f7440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x6f74b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x6f748e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x6f7471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6f747e
add edx, ecx
cmp ebx, edx
jb 0x6f748a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x6f7467
xor ecx, ecx
jmp 0x6f74a2
test eax, eax
jne 0x6f7492
xor ecx, ecx
jmp 0x6f74a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.006f73c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret