joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432562
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push str.open
lea esi, [ebp - 0x18]
mov edi, eax
call fcn.0040ffd4
xor ebx, ebx
push 0x3c
lea eax, [ebp - 0x54]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 1
call fcn.00451700
add esp, 0xc
cmp dword [ebp + 0x10], 2
jb 0x4325c3
mov eax, dword [edi + 4]
mov esi, dword [eax + 4]
call fcn.00412336
cmp word [eax], bx
je 0x4325c3
mov eax, dword [edi + 4]
mov esi, dword [eax + 4]
call fcn.00412336
push eax
call fcn.0040f3a1
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 3
jb 0x4325de
mov eax, dword [edi + 4]
mov esi, dword [eax + 8]
call fcn.00412336
push eax
call fcn.0040f3a1
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp + 0x10], 4
jb 0x43260b
mov eax, dword [edi + 4]
mov esi, dword [eax + 0xc]
call fcn.00412336
cmp word [eax], bx
je 0x43260b
mov eax, dword [edi + 4]
mov esi, dword [eax + 0xc]
call fcn.00412358
mov ebx, eax
lea eax, [ebp - 0x18]
call fcn.00410163
xor ebx, ebx
cmp dword [ebp + 0x10], 5
jb 0x432622
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x10]
call fcn.00412431
movzx eax, ax
mov dword [ebp - 0xc], eax
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.00451700
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], 0x40
mov dword [ebp - 0x4c], ebx
mov esi, dword [eax]
add esp, 0xc
call fcn.00412336
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp esi, ebx
mov dword [ebp + 0x10], eax
je 0x43267d
push esi
call fcn.0044f951
pop ecx
cmp edi, ebx
je 0x432688
push edi
call fcn.0044f951
pop ecx
cmp dword [ebp + 0x10], ebx
jne 0x4326a3
mov eax, dword [ebp + 8]
push ebx
push 1
call fcn.0041c783
mov esi, dword [ebp + 0x14]
push ebx
call fcn.00412914
jmp 0x4326ce
cmp byte [ebp + 0xc], bl
je 0x4326b6
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x554], eax
jmp 0x4326ce
mov esi, dword [ebp + 0x14]
push 1
call fcn.00412914
cmp dword [ebp - 0x1c], ebx
je 0x4326ce
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x18]
call fcn.0044f951
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x435d52
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push edi
xor ebx, ebx
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push ebx
push dword [ebp + 8]
mov dword [esp + 0x30], 0xff
call esi
mov edi, 0x103
jmp 0x435e0d
xor eax, eax
cmp byte [0x48a300], bl
je 0x435d9f
mov eax, pe_nt_image_headers32
lea ecx, [esp + 0x14]
push ecx
or eax, 0x20019
push eax
push ebx
lea eax, [esp + 0x2c]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x435e19
push dword [esp + 0x14]
call fcn.00435d52
pop ecx
push dword [esp + 0x14]
mov byte [esp + 0x13], al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0xf], bl
je 0x435e19
lea eax, [esp + 0x20]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x435e19
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push ebx
push dword [ebp + 8]
mov dword [esp + 0x30], 0xff
call esi
cmp eax, edi
jne 0x435d90
mov al, 1
jmp 0x435e1b
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43bbdd
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
push 0x44
xor ebx, ebx
push ebx
mov edi, 0x48b8d8
push edi
call fcn.00451700
push 0x10
push ebx
mov esi, 0x48b8c8
push esi
call fcn.00451700
add esp, 0x18
push esi
push edi
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push dword [esp + 0x30]
xor eax, eax
inc eax
push ebx
mov dword [0x48b8d8], 0x44
mov dword [0x48b904], eax
mov word [0x48b908], ax
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
pop edi
pop esi
pop ebx
je 0x43bc40
push dword [0x48b8c8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
ret 4
Function at 0x43c23a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, eax
mov esi, dword [edi]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 8]
mov dword [edi + 0x11c], eax
mov eax, dword [ebp - 4]
mov dword [edi + 0x120], eax
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
lea eax, [edi + 0x124]
cmp ecx, dword [eax]
jne 0x43c285
cmp edx, dword [edi + 0x128]
je 0x43c29f
cmp dword [ebp + 0xc], 1
mov dword [eax], ecx
mov dword [edi + 0x128], edx
jl 0x43c29f
push edx
push ecx
push 0xfffffffffffffff5
push dword [ebp + 8]
call fcn.0043bae5
mov eax, dword [ebp + 8]
push dword [eax + 0x18]
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
call ebx
movzx esi, ax
mov eax, dword [ebp + 8]
push dword [eax + 0x1c]
shr esi, 0xf
and esi, 1
call ebx
movzx ebx, ax
shr ebx, 0xf
and ebx, 1
cmp esi, dword [edi + 0x12c]
je 0x43c32b
cmp dword [ebp + 0xc], 1
jl 0x43c32b
cmp byte [edi + 0x158], 0
je 0x43c32b
test esi, esi
push dword [ebp - 4]
push dword [ebp - 8]
je 0x43c2ec
push 0xfffffffffffffff9
jmp 0x43c31c
push 0xfffffffffffffff8
push dword [ebp + 8]
call fcn.0043bae5
cmp byte [edi + 0x134], 0
je 0x43c324
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x1000000
push dword [ebp - 4]
push dword [ebp - 8]
je 0x43c31a
push 0xfffffffffffffffa
jmp 0x43c31c
push 0xfffffffffffffff4
push dword [ebp + 8]
call fcn.0043bae5
mov byte [edi + 0x134], 0
cmp dword [ebp + 0xc], 0
je 0x43c337
mov dword [edi + 0x12c], esi
cmp ebx, dword [edi + 0x130]
je 0x43c35d
cmp dword [ebp + 0xc], 1
jl 0x43c35d
test ebx, ebx
push dword [ebp - 4]
push dword [ebp - 8]
je 0x43c353
push 0xfffffffffffffff7
jmp 0x43c355
push 0xfffffffffffffff6
push dword [ebp + 8]
call fcn.0043bae5
cmp dword [ebp + 0xc], 0
je 0x43c369
mov dword [edi + 0x130], ebx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x43cfce
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
mov esi, 0x48a008
je 0x43cfeb
call fcn.0043b5eb
mov dword [0x48a070], eax
jmp 0x43cff0
mov eax, dword [0x48a070]
cmp eax, 0xffffffff
jne 0x43cffc
xor eax, eax
jmp 0x43d14b
mov ecx, dword [0x48a064]
mov eax, dword [ecx + eax*4]
mov edi, dword [eax]
cmp byte [edi + 0x32], 0
mov ecx, dword [edi]
push ebx
mov dword [ebp + 0xc], ecx
je 0x43d03c
cmp dword [edi + 0x13c], 0
mov byte [edi + 0x32], 0
jl 0x43d03c
lea ebx, [edi + 0x148]
cmp byte [ebx], 0
je 0x43d03c
push dword [edi + 0x144]
call fcn.00441b65
mov ecx, dword [ebp + 0xc]
mov byte [ebx], 0
mov ebx, dword [ebp + 8]
cmp ebx, 8
jg 0x43d0d9
je 0x43d0a4
test ebx, ebx
je 0x43d092
cmp ebx, 1
je 0x43d0a4
cmp ebx, 2
je 0x43d076
cmp ebx, 3
je 0x43d122
jle 0x43d143
cmp ebx, 5
jle 0x43d0a4
cmp ebx, 6
je 0x43d07a
jmp 0x43d143
mov byte [edi + 0x30], 1
cmp byte [edi + 0x30], 0
je 0x43d148
push 6
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x43d143
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [edi + 0x30], 0
jmp 0x43d143
cmp byte [edi + 0x30], 0
jne 0x43d148
push ebx
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp ebx, 8
je 0x43d0d3
cmp ebx, 4
je 0x43d0d3
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp dword [ebp + 0xc], eax
je 0x43d0d3
push dword [ebp + 0xc]
call fcn.0040b3a0
mov byte [edi + 0x30], 1
jmp 0x43d143
mov eax, ebx
sub eax, 9
je 0x43d122
sub eax, 0x37
je 0x43d11e
dec eax
je 0x43d113
dec eax
je 0x43d106
dec eax
jne 0x43d143
push eax
mov byte [edi + 0x31], al
call dword [sym.imp.USER32.dll_LockWindowUpdate]
push 1
push 0
push dword [edi]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x43d143
push ecx
mov byte [edi + 0x31], 1
call dword [sym.imp.USER32.dll_LockWindowUpdate]
jmp 0x43d143
push 0
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x43d143
push 1
jmp 0x43d115
cmp byte [edi + 0x30], 0
je 0x43d148
push ebx
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp dword [ebp + 0xc], eax
je 0x43d143
push dword [ebp + 0xc]
call fcn.0040b3a0
xor eax, eax
inc eax
jmp 0x43d14a
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x4412f6
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
xor esi, esi
cmp word [eax], si
push edi
mov dword [ebp - 0xc], esi
je 0x4413f2
push esi
push esi
push 3
push esi
push esi
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x44132d
xor eax, eax
jmp 0x44141e
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push eax
push 2
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push esi
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x10]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 0xc]
push eax
push 0x467904
push esi
push esi
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [ebp - 0xc]
cmp eax, esi
je 0x441326
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push eax
call dword [ecx + 0xc]
lea eax, [ebp - 0x30]
push eax
push 0x18
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], esi
mov eax, dword [ebp + 0x10]
jne 0x4413d1
cmp dword [eax], esi
jne 0x4413d1
mov edx, dword [ebp - 0x2c]
mov dword [ecx], edx
mov edx, dword [ebp - 0x28]
mov dword [eax], edx
push 0x2000
push dword [eax]
push dword [ecx]
push esi
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4413f5
mov dword [ebp - 8], esi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x48]
cmp eax, esi
je 0x441406
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 8]
push eax
push esi
mov dword [edi + 0x48], eax
mov edi, dword [edi]
push 0x172
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x441b65
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [edi + 4]
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x140]
cmp eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
je 0x441c12
push 3
pop eax
cmp dword [esi + 0x80], eax
mov dword [ebp - 4], eax
jl 0x441c09
mov eax, dword [esi + 0x70]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + ecx*4]
cmp dword [eax], 0
je 0x441bfb
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
cmp dword [eax + 4], ecx
jne 0x441bfb
cmp byte [eax + 0x70], 0xb
je 0x441bfb
mov cl, byte [eax + 0x73]
movzx edx, cl
cmp edx, dword [edi + 0x140]
je 0x441bd4
cmp byte [edi + 0x148], 0
je 0x441bfb
cmp cl, 0xff
je 0x441bfb
cmp byte [eax + 0x70], 0xa
je 0x441bfb
push 0
push dword [eax]
call ebx
mov eax, dword [esi + 0x70]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax]
test byte [eax + 0x72], 0x40
je 0x441bfb
cmp byte [eax + 0x70], 0x1a
jne 0x441bfb
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x80]
jle 0x441b94
mov eax, dword [ebp + 8]
mov dword [edi + 0x140], eax
push 3
pop eax
cmp dword [esi + 0x80], eax
mov dword [ebp - 4], eax
jl 0x441c96
mov eax, dword [esi + 0x70]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + ecx*4]
cmp dword [eax], 0
je 0x441c88
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
cmp dword [eax + 4], ecx
jne 0x441c88
cmp byte [eax + 0x70], 0xb
je 0x441c88
movzx ecx, byte [eax + 0x73]
cmp ecx, dword [edi + 0x140]
jne 0x441c88
test byte [eax + 0x72], 0x20
jne 0x441c88
push 0
push dword [eax]
call ebx
mov eax, dword [esi + 0x70]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax]
push 4
push dword [eax]
call ebx
mov eax, dword [esi + 0x70]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax]
test byte [eax + 0x72], 0x40
je 0x441c88
cmp byte [eax + 0x70], 0x1a
jne 0x441c88
push 1
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x80]
jle 0x441c20
push 0
push dword [ebp + 8]
push 0x130c
push dword [edi + 0x138]
call dword [sym.imp.USER32.dll_SendMessageW]
pop ebx
leave
ret 4
Function at 0x444ca8
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x48a008
call fcn.0043b5eb
mov ecx, dword [0x48a064]
mov edi, dword [ebp + 0xc]
cmp edi, dword [ebp + 8]
mov eax, dword [ecx + eax*4]
mov ebx, dword [eax]
jne 0x444cf7
xor edi, edi
cmp dword [ebx + 0x150], edi
je 0x444d57
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push edi
push dword [ebp + 8]
push dword [ebp - 4]
push dword [ebp - 8]
push edi
push dword [ebx + 0x150]
jmp 0x444d51
mov ecx, esi
call fcn.0043b612
cmp eax, 0xffffffff
je 0x444d57
mov esi, eax
mov eax, dword [0x48a078]
shl esi, 2
mov eax, dword [esi + eax]
mov eax, dword [eax]
mov cl, byte [eax + 0x70]
cmp cl, 0xe
je 0x444d57
cmp cl, 0xf
je 0x444d57
cmp cl, 0x13
je 0x444d57
cmp cl, 0x10
je 0x444d57
xor edi, edi
cmp dword [eax + 8], edi
je 0x444d57
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [0x48a078]
mov eax, dword [esi + eax]
mov eax, dword [eax]
push edi
push dword [ebx]
push dword [ebp - 4]
push dword [ebp - 8]
push edi
push dword [eax + 8]
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4462c8
Capabilities:
Parse credit card information

Disassembly:
jmp 0x446361
cmp ecx, 0x4f
jne 0x4462df
xor ecx, ecx
mov ch, byte [eax + 1]
mov cl, byte [eax + 2]
jmp 0x44635f
cmp ecx, 0x5e
jne 0x4462fb
xor ecx, ecx
mov ch, byte [eax + 3]
mov cl, byte [eax + 4]
cmp ecx, dword [esp + 8]
je 0x44636e
movzx ecx, byte [0x46861e]
jmp 0x44635f
cmp ecx, 0x38
jl 0x446328
cmp ecx, 0x3d
jle 0x446319
cmp ecx, 0x40
jle 0x446314
cmp ecx, 0x43
jle 0x446319
cmp ecx, 0x44
jne 0x446328
mov dl, byte [eax + 3]
jmp 0x44631c
mov dl, byte [eax + 1]
cmp dl, 0xf
je 0x446326
cmp dl, 0xe
jne 0x446328
inc eax
inc eax
movzx edx, byte [ecx + 0x4685c0]
add eax, edx
cmp dword [esp + 4], 0
je 0x446361
cmp ecx, 0x1b
jl 0x446361
cmp ecx, 0x1c
jle 0x44634c
cmp ecx, 0x1d
jle 0x446361
cmp ecx, 0x2a
jg 0x446361
movzx ecx, byte [eax - 1]
cmp cl, 0xc0
jb 0x446361
and ecx, 0x3f
movzx ecx, byte [ecx + 0x468680]
add eax, ecx
movzx ecx, byte [eax]
test ecx, ecx
jne 0x4462cd
xor eax, eax
ret
Function at 0x452cc4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x452d01
cmp dword [ebp + 0x14], edi
je 0x452d01
cmp ecx, edi
jne 0x452d08
call fcn.00455f7c
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00455f1d
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x452d1c
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x452d3d
cmp ebx, 0xffffffff
je 0x452d2c
push ebx
push edi
push ecx
call fcn.00451700
add esp, 0xc
cmp esi, edi
je 0x452ce9
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x452ce9
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x452d59
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x452d60
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x452e51
test word [esi + 0xc], 0x10c
je 0x452db4
mov eax, dword [esi + 4]
test eax, eax
je 0x452db4
jl 0x452eb2
cmp ebx, eax
mov edi, ebx
jb 0x452d85
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x452e59
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0045bf54
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x452e49
cmp ebx, dword [ebp - 0xc]
jb 0x452e21
cmp dword [ebp - 0xc], 0
je 0x452dde
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x452dd3
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x452dda
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x452de9
mov eax, SysReAllocString
cmp ebx, eax
ja 0x452de9
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x452e85
push eax
push dword [ebp - 8]
push esi
call fcn.00453763
pop ecx
push eax
call fcn.0045be57
add esp, 0xc
test eax, eax
je 0x452ec4
cmp eax, 0xffffffff
je 0x452eb2
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x452e49
push esi
call fcn.0045b776
cmp eax, 0xffffffff
pop ecx
je 0x452eb6
cmp dword [ebp - 4], 0
je 0x452e85
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x452d68
mov eax, dword [ebp + 0x14]
jmp 0x452d03
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x452e70
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00451700
add esp, 0xc
call fcn.00455f7c
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x452cf9
cmp dword [ebp + 0xc], 0xffffffff
je 0x452e9b
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00451700
add esp, 0xc
call fcn.00455f7c
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x452cf9
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x452d03
or dword [esi + 0xc], 0x10
jmp 0x452eb6
Function at 0x45628a
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x476c70]
je 0x4562a5
inc edi
cmp edi, 0x17
jb 0x456296
cmp edi, 0x17
jae 0x456425
push ebp
push 3
call fcn.00461715
cmp eax, 1
pop ecx
je 0x4563f1
push 3
call fcn.00461715
test eax, eax
pop ecx
jne 0x4562d9
cmp dword [0x476388], 1
je 0x4563f1
cmp ebx, 0xfc
je 0x456424
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x478be8
push ebp
call fcn.00461439
add esp, 0xc
test eax, eax
je 0x45630f
push esi
push esi
push esi
push esi
push esi
call fcn.00455e21
add esp, 0x14
push 0x104
mov esi, 0x478c01
push esi
push 0
mov byte [0x478d05], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x456353
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00461439
add esp, 0xc
test eax, eax
je 0x456353
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00455e21
add esp, 0x14
push esi
call fcn.00451ee0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x456398
push esi
call fcn.00451ee0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x478efc
push 0x469714
sub ecx, eax
push ecx
push eax
call fcn.00461386
add esp, 0x14
test eax, eax
je 0x456398
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00455e21
add esp, 0x14
jmp 0x45639a
xor esi, esi
push 0x469710
push ebx
push ebp
call fcn.004612c5
add esp, 0xc
test eax, eax
je 0x4563ba
push esi
push esi
push esi
push esi
push esi
call fcn.00455e21
add esp, 0x14
push dword [edi*8 + 0x476c74]
push ebx
push ebp
call fcn.004612c5
add esp, 0xc
test eax, eax
je 0x4563dc
push esi
push esi
push esi
push esi
push esi
call fcn.00455e21
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00461558
add esp, 0xc
jmp 0x456424
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x456424
cmp ebp, 0xffffffff
je 0x456424
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x476c74]
push dword [esi]
call fcn.00451ee0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x461037
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x476dec]
jne 0x461041
repz ret
jmp fcn.00464809

Function at 0x461558
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00455898
xor ebx, ebx
cmp dword [0x479228], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x46162e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x46170e
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x46b4c4
push edi
call esi
cmp eax, ebx
je 0x46170e
push eax
call fcn.0045582a
mov dword [esp], 0x46b4b4
push edi
mov dword [0x479228], eax
call esi
push eax
call fcn.0045582a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x47922c], eax
call esi
push eax
call fcn.0045582a
mov dword [0x479230], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0044fa96
test eax, eax
pop ecx
pop ecx
je 0x4615fc
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00455e21
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x46162e
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0045582a
cmp eax, ebx
pop ecx
mov dword [0x479238], eax
je 0x46162e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0045582a
pop ecx
mov dword [0x479234], eax
mov eax, dword [0x479234]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4616b3
cmp dword [0x479238], ecx
je 0x4616b3
push eax
call fcn.004558a1
push dword [0x479238]
mov esi, eax
call fcn.004558a1
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4616b3
cmp edi, ebx
je 0x4616b3
call esi
cmp eax, ebx
je 0x461680
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x461680
test byte [ebp - 0x18], 1
jne 0x4616b3
lea eax, [ebp - 0x10]
push eax
call fcn.0044facd
test eax, eax
pop ecx
je 0x46169b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00455e21
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4616aa
or dword [ebp + 0x10], 0x200000
jmp 0x4616ee
or dword [ebp + 0x10], 0x40000
jmp 0x4616ee
mov eax, dword [0x47922c]
cmp eax, dword [ebp - 8]
je 0x4616ee
push eax
call fcn.004558a1
cmp eax, ebx
pop ecx
je 0x4616ee
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4616ee
mov eax, dword [0x479230]
cmp eax, dword [ebp - 8]
je 0x4616ee
push eax
call fcn.004558a1
cmp eax, ebx
pop ecx
je 0x4616ee
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x479228]
call fcn.004558a1
cmp eax, ebx
pop ecx
je 0x46170e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x461710
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret