joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ae9c
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 0x44aeb8
cmp dword [esi + 4], 0
je 0x44aee5
test byte [ebx + 0x55], 1
jne 0x44aed7
mov eax, ebx
call fcn.00449a3c
test eax, eax
jne 0x44aed7
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x44aff5
mov edx, esi
mov eax, ebx
call fcn.0044a9c0
jmp 0x44aff5
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 0x44afee
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0044cd0c
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.004475c4
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0044ae9c
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.0044cd0c
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44aff5
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 0x4516e8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x480c98]
cmp byte [eax + 0xc], 0
je 0x451855
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45184e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x481bbc], 0
jne 0x45173c
push 0x45185c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x451864
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481bbc], eax
cmp dword [0x47fd0c], 0
jne 0x451837
push 0x451874
call sub.kernel32.dll_LoadLibraryA
mov dword [0x47fd0c], eax
cmp dword [0x47fd0c], 0
je 0x451837
push 0x451880
mov eax, dword [0x47fd0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481bc0], eax
push 0x451890
mov eax, dword [0x47fd0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481bc4], eax
push 0x4518a4
mov eax, dword [0x47fd0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481bc8], eax
push 0x4518bc
mov eax, dword [0x47fd0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481bcc], eax
push 0x4518d4
mov eax, dword [0x47fd0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481bd0], eax
push 0x4518e8
mov eax, dword [0x47fd0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481bd4], eax
push 0x451900
mov eax, dword [0x47fd0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481bd8], eax
push 0x451918
mov eax, dword [0x47fd0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481bdc], eax
push 0x451934
mov eax, dword [0x47fd0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481be0], eax
push 0x451940
mov eax, dword [0x47fd0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481be4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451855
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x455b98
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.00403ea4
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x455be7
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.00404114
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45dc68
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45dcb8]
test si, 4
je 0x45dc7c
or bl, 1
test si, 8
je 0x45dc86
or bl, 4
test si, 1
je 0x45dc90
or bl, 8
test si, 2
je 0x45dc9a
or bl, 0x10
test si, 0x10
je 0x45dca4
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45dcb3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x45dcbc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45dcf4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45dcd5
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45dce4
or bl, 4
test esi, 0x20000000
je 0x45dcef
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x464494
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4644a6
add esp, 0xfffffff0
call fcn.00403478
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419e8c
mov eax, dword [0x480940]
mov dword [eax + 4], ebx
mov dword [eax], 0x464838
mov eax, dword [0x48094c]
mov dword [eax + 4], ebx
mov dword [eax], 0x464844
mov eax, ebx
call fcn.00464850
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411838]
call fcn.00403124
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411838]
call fcn.00403124
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411838]
call fcn.00403124
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411838]
call fcn.00403124
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411838]
call fcn.00403124
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, 0x460c6c
push eax
push 0
push 0
mov eax, dword [0x480a98]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b910]
call fcn.0041d084
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b910]
call fcn.0041d084
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b910]
call fcn.0041d084
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00464cb8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x464b94
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x464b94
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x464b94
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4645e3
call fcn.004034d0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x464978
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 0x464b23
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x464b04
mov dl, 1
mov eax, dword [0x411de0]
call fcn.00403124
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403ea4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x464af3
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.00451a48
test al, al
je 0x464ae6
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, 0x464b34
lea eax, [ebp - 0x254]
call fcn.00408b04
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x464ae6
xor eax, eax
push ebp
push 0x464adf
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 0x464b6c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x464ac8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404114
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 0x464ac8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404114
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464ae6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4649e9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041607c
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 0x464b2a
lea eax, [ebp - 0x260]
call fcn.00403ea4
ret

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

Disassembly:
push ecx
mov eax, dword [0x481c08]
cmp byte [eax + 0xa5], 0
jne 0x4654c9
cmp dword [0x481c20], 0
jne 0x46548a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x465414
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x481c20], eax
cmp dword [0x481c1c], 0
jne 0x4654a5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x481c1c], eax
cmp dword [0x481c24], 0
jne 0x4654c9
push esp
push 0
push 0
push 0x4653b8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x481c24], eax
pop edx
ret
Function at 0x4655f0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x465607
add esp, 0xfffffff0
call fcn.00403478
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419e8c
mov eax, dword [0x480a84]
cmp word [eax + 2], 0
jne 0x46562f
mov eax, dword [0x480a84]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00466cc8
mov eax, dword [0x480b3c]
cmp word [eax + 2], 0
jne 0x465649
mov eax, dword [0x480b3c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00466ec0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411838]
call fcn.00403124
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411838]
call fcn.00403124
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 [0x41c3f0]
call fcn.00423bc0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4657d0
mov eax, dword [0x4809a4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00423f90
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x467460
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4809a4]
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.0040c24c
test eax, eax
je 0x46573e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004084e4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c274
test eax, eax
je 0x465752
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.00404114
mov eax, dword [0x480880]
cmp byte [eax], 0
jne 0x465786
mov eax, ebx
call fcn.004658f8
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.0046763c
mov eax, ebx
call fcn.00468000
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4657c6
call fcn.004034d0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x465b78
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x481c08]
cmp dword [eax + 0x30], 0
je 0x465c22
cmp dword [ebx + 0x94], 0
jne 0x465c1c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x465b08
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x465c1c
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 0x465be2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x465c1c
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.00413d2c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x465bf1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x466784
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 0x4667b9
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.00403f94
jmp 0x4667c6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403ef8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x467818
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x467859
mov eax, esi
call fcn.0044d010
test al, al
je 0x467859
mov eax, dword [ebx + 0x84]
call fcn.0044cd0c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x467859
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044cd0c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x46af58
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x46af86
mov eax, ebx
call fcn.0046ba0c
cmp dword [ebx + 0x40], 0
je 0x46af7f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x46aff7
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x46afe9
cmp dword [ebx + 8], 0
je 0x46afa8
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 0x46afba
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x46afe9
cmp dword [ebx + 8], 0
je 0x46af9b
cmp eax, 3
je 0x46afcd
dec eax
jne 0x46af9b
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 0x46af9b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x46af9b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x46b015
cmp dword [ebx + 0x14], 0xcc
je 0x46b015
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.0046b020
pop ebx
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x4064b8], 1
mov dword [0x4064b4], 1
mov dword [0x4064b0], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x406014], eax
mov eax, dword [0x4064c4]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x4064d8]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x4064c0]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x4030b4], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056
Function at 0x401d60
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401dc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x4064cc]
test esi, esi
jle 0x401ee0
mov eax, dword [0x4064d0]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x401df4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401e77
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401de0
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401f07
mov eax, dword [0x4064d0]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x4064d0]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401ee7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401e70
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401e80
add dword [0x4064cc], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x4064d0]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401e70
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x401dfe
mov eax, dword [0x4064d0]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop
Function at 0x402420
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4064e8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4064e0]
sub esp, 4
test ebx, ebx
je 0x402475
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40246e
test esi, esi
je 0x40246e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402450
mov dword [esp], 0x4064e8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4027b0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4027d5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4027e0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4027d5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x402828
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40281e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40282a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402810
xor eax, eax
pop ebx
pop esi
ret
Function at 0x401e1a
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [esp], str.MODE_:_default_n
call sub.msvcrt.dll_printf
mov dword [esp], 0x309
call sub.msvcrt.dll__sleep
mov dword [esp], 0x40c0d0
call fcn.004048a0
test eax, eax
jne 0x401e6b
mov dword [esp], 0x40c0d0
call fcn.00404a0e
mov dword [esp + 4], 0x27
mov dword [esp], 0x40c0d0
call sub.KERNEL32.dll_SetFileAttributesA
sub esp, 8
mov dword [esp], 0x48e290
call fcn.00404852
test eax, eax
jne 0x401ead
mov dword [esp], 0x309
call sub.msvcrt.dll__sleep
mov dword [esp], 0x48e290
call fcn.00402f94
mov dword [esp], 0x309
call sub.msvcrt.dll__sleep
mov dword [esp], 0x48e290
call fcn.00402be0
jmp 0x401eed
mov dword [esp], 0x48e290
call fcn.00402c78
test eax, eax
jne 0x401eed
mov dword [esp], 0x309
call sub.msvcrt.dll__sleep
mov dword [esp], 0x48e290
call fcn.00402f94
mov dword [esp], 0x309
call sub.msvcrt.dll__sleep
mov dword [esp], 0x48e290
call fcn.00402be0
mov dword [esp], 0x53f290
call fcn.00404852
test eax, eax
jne 0x401f2f
mov dword [esp], 0x309
call sub.msvcrt.dll__sleep
mov dword [esp], 0x53f290
call fcn.00402f94
mov dword [esp], 0x309
call sub.msvcrt.dll__sleep
mov dword [esp], 0x53f290
call fcn.00402be0
jmp 0x401f6f
mov dword [esp], 0x53f290
call fcn.00402c78
test eax, eax
jne 0x401f6f
mov dword [esp], 0x309
call sub.msvcrt.dll__sleep
mov dword [esp], 0x53f290
call fcn.00402f94
mov dword [esp], 0x309
call sub.msvcrt.dll__sleep
mov dword [esp], 0x53f290
call fcn.00402be0
mov eax, dword [0x40c018]
cmp eax, dword [0x4083e0]
jl 0x401f8a
cmp dword [0x408484], 0
jns 0x401f8a
call fcn.00403c5c
mov eax, dword [0x40c018]
cmp eax, dword [0x4083e4]
jl 0x401fa5
cmp dword [0x408484], 0
jns 0x401fa5
call fcn.00403981
mov dword [esp], 0x309
call sub.msvcrt.dll__sleep
call fcn.004069d6
test eax, eax
jne 0x401fc4
call fcn.00406ac2
call fcn.00402504
leave
ret