joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434a55
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 0x434b10
xor eax, eax
cmp byte [0x48b7c8], bl
je 0x434aa2
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 0x434b1c
push dword [esp + 0x14]
call fcn.00434a55
pop ecx
push dword [esp + 0x14]
mov byte [esp + 0x13], al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0xf], bl
je 0x434b1c
lea eax, [esp + 0x20]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x434b1c
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 0x434a93
mov al, 1
jmp 0x434b1e
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x435523
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
je 0x4355ab
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileType]
cmp eax, 1
jne 0x4355ab
mov esi, dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push eax
xor ebx, ebx
push ebx
push ebx
push edi
call esi
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], eax
je 0x43557f
cmp dword [ebp + 0x10], ebx
jbe 0x43557f
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x435577
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
jmp 0x4355ad
push ebx
push ebx
push dword [ebp - 4]
push edi
call esi
cmp dword [ebp + 0x18], ebx
je 0x43559f
push 2
push ebx
push ebx
push edi
call esi
push ebx
push ebx
push dword [ebp - 4]
mov edi, eax
push dword [ebp + 8]
call esi
sub edi, dword [ebp - 4]
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
inc eax
jmp 0x4355b5
push 6
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43b00d
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
push 0x44
xor ebx, ebx
push ebx
mov edi, 0x48dd20
push edi
call fcn.00451260
push 0x10
push ebx
mov esi, 0x48dd10
push esi
call fcn.00451260
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 [0x48dd20], 0x44
mov dword [0x48dd4c], eax
mov word [0x48dd50], ax
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
pop edi
pop esi
pop ebx
je 0x43b070
push dword [0x48dd10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
ret 4
Function at 0x43b613
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, eax
mov esi, dword [edi]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 0xc]
mov dword [edi + 0x4134], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x4138], eax
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
lea eax, [edi + 0x413c]
cmp ecx, dword [eax]
jne 0x43b65f
cmp edx, dword [edi + 0x4140]
je 0x43b679
cmp dword [ebp + 0xc], 1
mov dword [eax], ecx
mov dword [edi + 0x4140], edx
jl 0x43b679
push edx
push ecx
push 0xfffffffffffffff5
push dword [ebp + 8]
call fcn.0043af0c
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 1
call esi
mov ebx, 0x8000
test bx, ax
jne 0x43b6a0
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test bx, ax
jne 0x43b6a0
and dword [ebp - 4], 0
jmp 0x43b6a7
mov dword [ebp - 4], 1
push 2
call esi
test bx, ax
jne 0x43b6c1
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test bx, ax
jne 0x43b6c1
xor ebx, ebx
jmp 0x43b6c4
xor ebx, ebx
inc ebx
mov esi, dword [ebp - 4]
cmp esi, dword [edi + 0x4144]
je 0x43b72b
cmp dword [ebp + 0xc], 1
jl 0x43b72b
cmp byte [edi + 0x4170], 0
je 0x43b72b
test esi, esi
push dword [ebp - 8]
push dword [ebp - 0xc]
je 0x43b6ec
push 0xfffffffffffffff9
jmp 0x43b71c
push 0xfffffffffffffff8
push dword [ebp + 8]
call fcn.0043af0c
cmp byte [edi + 0x414c], 0
je 0x43b724
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x1000000
push dword [ebp - 8]
push dword [ebp - 0xc]
je 0x43b71a
push 0xfffffffffffffffa
jmp 0x43b71c
push 0xfffffffffffffff4
push dword [ebp + 8]
call fcn.0043af0c
mov byte [edi + 0x414c], 0
cmp dword [ebp + 0xc], 0
je 0x43b737
mov dword [edi + 0x4144], esi
cmp ebx, dword [edi + 0x4148]
je 0x43b75d
cmp dword [ebp + 0xc], 1
jl 0x43b75d
test ebx, ebx
push dword [ebp - 8]
push dword [ebp - 0xc]
je 0x43b753
push 0xfffffffffffffff7
jmp 0x43b755
push 0xfffffffffffffff6
push dword [ebp + 8]
call fcn.0043af0c
cmp dword [ebp + 0xc], 0
je 0x43b769
mov dword [edi + 0x4148], ebx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x43c28d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0xc], 0
je 0x43c2ad
push dword [ebp + 0xc]
mov ecx, 0x48a010
call fcn.0043aa10
mov dword [0x48a02c], eax
jmp 0x43c2b2
mov eax, dword [0x48a02c]
cmp eax, 0xffffffff
jne 0x43c2be
xor eax, eax
jmp 0x43c464
push ebx
push esi
mov esi, dword [eax*4 + 0x48a060]
cmp byte [esi + 0x3a], 0
mov ebx, dword [esi]
push edi
mov dword [ebp + 0xc], ebx
je 0x43c33a
cmp dword [esi + 0x4154], 0
mov byte [esi + 0x3a], 0
jl 0x43c2f9
lea edi, [esi + 0x4160]
cmp byte [edi], 0
je 0x43c2f9
push dword [esi + 0x415c]
call fcn.00440df3
mov byte [edi], 0
lea eax, [ebp - 0x10]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
sub edi, dword [ebp - 0x10]
sub ebx, dword [ebp - 0xc]
push 0xfffffffffffffff0
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test edi, edi
je 0x43c374
test ebx, ebx
jne 0x43c32b
test eax, 0x400000
jne 0x43c374
mov dword [esi + 0x50], ebx
mov dword [esi + 0x48], ebx
mov ebx, dword [ebp + 0xc]
mov dword [esi + 0x4c], edi
mov dword [esi + 0x44], edi
mov edi, dword [ebp + 8]
cmp edi, 8
jg 0x43c3e0
je 0x43c3ae
test edi, edi
je 0x43c39c
cmp edi, 1
je 0x43c3ae
cmp edi, 2
je 0x43c380
cmp edi, 3
je 0x43c43c
jle 0x43c45a
cmp edi, 5
jle 0x43c3ae
cmp edi, 6
je 0x43c384
jmp 0x43c45a
mov byte [esi + 0x3a], 1
or eax, 0xffffffff
jmp 0x43c461
mov byte [esi + 0x38], 1
cmp byte [esi + 0x38], 0
je 0x43c45f
push 6
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x43c45a
push 0
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esi + 0x38], 0
jmp 0x43c45a
cmp byte [esi + 0x38], 0
jne 0x43c45f
push edi
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp edi, 8
je 0x43c3da
cmp edi, 4
je 0x43c3da
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp ebx, eax
je 0x43c3da
push ebx
call fcn.00409786
mov byte [esi + 0x38], 1
jmp 0x43c45a
mov eax, edi
sub eax, 9
je 0x43c43c
sub eax, 0x37
je 0x43c42c
dec eax
je 0x43c41a
dec eax
je 0x43c40d
dec eax
jne 0x43c45a
push eax
mov byte [esi + 0x39], al
call dword [sym.imp.USER32.dll_LockWindowUpdate]
push 1
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x43c45a
push ebx
mov byte [esi + 0x39], 1
call dword [sym.imp.USER32.dll_LockWindowUpdate]
jmp 0x43c45a
push 0
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, esi
call fcn.00443c05
jmp 0x43c45a
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
call fcn.00443b08
jmp 0x43c45a
cmp byte [esi + 0x38], 0
je 0x43c45f
push edi
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp ebx, eax
je 0x43c45a
push ebx
call fcn.00409786
xor eax, eax
inc eax
jmp 0x43c461
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x44057e
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 0x440686
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 0x4405b5
xor eax, eax
jmp 0x4406b2
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 0x467900
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 0x4405ae
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]
mov edx, dword [ecx]
cmp edx, esi
mov eax, dword [ebp + 0x10]
jne 0x44065d
cmp dword [eax], esi
jne 0x44065d
mov edx, dword [ebp - 0x2c]
mov dword [ecx], edx
mov edx, dword [ebp - 0x28]
mov dword [eax], edx
jmp 0x440665
mov dword [ebp - 0x2c], edx
mov edx, dword [eax]
mov dword [ebp - 0x28], 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 0x440689
mov dword [ebp - 8], esi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x44]
cmp eax, esi
je 0x44069a
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 8]
push eax
push esi
mov dword [edi + 0x44], 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 0x440df3
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0x4158]
cmp eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push edi
je 0x440e7b
push 3
pop eax
cmp dword [esi + 0x14], eax
mov dword [ebp - 4], eax
jl 0x440e72
lea edi, [esi + 0x64]
mov eax, dword [edi]
test eax, eax
je 0x440e64
cmp byte [eax + 0x70], 0xb
je 0x440e64
mov cl, byte [eax + 0x73]
movzx edx, cl
cmp edx, dword [esi + 0x4158]
je 0x440e46
cmp byte [esi + 0x4160], 0
je 0x440e64
cmp cl, 0xff
je 0x440e64
cmp byte [eax + 0x70], 0xa
je 0x440e64
push 0
push dword [eax]
call ebx
mov eax, dword [edi]
test byte [eax + 0x72], 0x40
je 0x440e64
cmp byte [eax + 0x70], 0x1a
jne 0x440e64
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 4
cmp eax, dword [esi + 0x14]
jle 0x440e18
mov eax, dword [ebp + 8]
mov dword [esi + 0x4158], eax
push 3
pop eax
cmp dword [esi + 0x14], eax
mov dword [ebp - 4], eax
jl 0x440edb
lea edi, [esi + 0x64]
mov eax, dword [edi]
test eax, eax
je 0x440ecd
cmp byte [eax + 0x70], 0xb
je 0x440ecd
movzx ecx, byte [eax + 0x73]
cmp ecx, dword [esi + 0x4158]
jne 0x440ecd
test byte [eax + 0x72], 0x20
jne 0x440ecd
push 0
push dword [eax]
call ebx
mov eax, dword [edi]
push 4
push dword [eax]
call ebx
mov eax, dword [edi]
test byte [eax + 0x72], 0x40
je 0x440ecd
cmp byte [eax + 0x70], 0x1a
jne 0x440ecd
push 1
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 4
cmp eax, dword [esi + 0x14]
jle 0x440e89
push 0
push dword [ebp + 8]
push 0x130c
push dword [esi + 0x4150]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop ebx
leave
ret 4
Function at 0x4454c6
Capabilities:
Parse credit card information

Disassembly:
jmp 0x44555f
cmp ecx, 0x4f
jne 0x4454dd
xor ecx, ecx
mov ch, byte [eax + 1]
mov cl, byte [eax + 2]
jmp 0x44555d
cmp ecx, 0x5e
jne 0x4454f9
xor ecx, ecx
mov ch, byte [eax + 3]
mov cl, byte [eax + 4]
cmp ecx, dword [esp + 8]
je 0x44556c
movzx ecx, byte [0x4685de]
jmp 0x44555d
cmp ecx, 0x38
jl 0x445526
cmp ecx, 0x3d
jle 0x445517
cmp ecx, 0x40
jle 0x445512
cmp ecx, 0x43
jle 0x445517
cmp ecx, 0x44
jne 0x445526
mov dl, byte [eax + 3]
jmp 0x44551a
mov dl, byte [eax + 1]
cmp dl, 0xf
je 0x445524
cmp dl, 0xe
jne 0x445526
inc eax
inc eax
movzx edx, byte [ecx + 0x468580]
add eax, edx
cmp dword [esp + 4], 0
je 0x44555f
cmp ecx, 0x1b
jl 0x44555f
cmp ecx, 0x1c
jle 0x44554a
cmp ecx, 0x1d
jle 0x44555f
cmp ecx, 0x2a
jg 0x44555f
movzx ecx, byte [eax - 1]
cmp cl, 0xc0
jb 0x44555f
and ecx, 0x3f
movzx ecx, byte [ecx + 0x468640]
add eax, ecx
movzx ecx, byte [eax]
test ecx, ecx
jne 0x4454cb
xor eax, eax
ret
Function at 0x452132
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 0x45216f
cmp dword [ebp + 0x14], edi
je 0x45216f
cmp ecx, edi
jne 0x452176
call fcn.0045507c
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0045501d
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x45218a
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4521ab
cmp ebx, 0xffffffff
je 0x45219a
push ebx
push edi
push ecx
call fcn.00451260
add esp, 0xc
cmp esi, edi
je 0x452157
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x452157
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4521c7
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4521ce
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4522bf
test word [esi + 0xc], 0x10c
je 0x452222
mov eax, dword [esi + 4]
test eax, eax
je 0x452222
jl 0x452320
cmp ebx, eax
mov edi, ebx
jb 0x4521f3
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4522c7
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0045b058
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 0x4522b7
cmp ebx, dword [ebp - 0xc]
jb 0x45228f
cmp dword [ebp - 0xc], 0
je 0x45224c
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x452241
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x452248
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x452257
mov eax, SysReAllocString
cmp ebx, eax
ja 0x452257
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4522f3
push eax
push dword [ebp - 8]
push esi
call fcn.00452a09
pop ecx
push eax
call fcn.0045af5b
add esp, 0xc
test eax, eax
je 0x452332
cmp eax, 0xffffffff
je 0x452320
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4522b7
push esi
call fcn.0045a87a
cmp eax, 0xffffffff
pop ecx
je 0x452324
cmp dword [ebp - 4], 0
je 0x4522f3
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 0x4521d6
mov eax, dword [ebp + 0x14]
jmp 0x452171
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4522de
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00451260
add esp, 0xc
call fcn.0045507c
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x452167
cmp dword [ebp + 0xc], 0xffffffff
je 0x452309
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00451260
add esp, 0xc
call fcn.0045507c
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x452167
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x452171
or dword [esi + 0xc], 0x10
jmp 0x452324
Function at 0x4551e3
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 + 0x476b50]
je 0x4551fe
inc edi
cmp edi, 0x17
jb 0x4551ef
cmp edi, 0x17
jae 0x45537e
push ebp
push 3
call fcn.00460825
cmp eax, 1
pop ecx
je 0x45534a
push 3
call fcn.00460825
test eax, eax
pop ecx
jne 0x455232
cmp dword [0x476388], 1
je 0x45534a
cmp ebx, 0xfc
je 0x45537d
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x478a90
push ebp
call fcn.00460549
add esp, 0xc
test eax, eax
je 0x455268
push esi
push esi
push esi
push esi
push esi
call fcn.00454f21
add esp, 0x14
push 0x104
mov esi, 0x478aa9
push esi
push 0
mov byte [0x478bad], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x4552ac
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00460549
add esp, 0xc
test eax, eax
je 0x4552ac
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00454f21
add esp, 0x14
push esi
call fcn.00450bb0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4552f1
push esi
call fcn.00450bb0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x478da4
push 0x4696d4
sub ecx, eax
push ecx
push eax
call fcn.00460496
add esp, 0x14
test eax, eax
je 0x4552f1
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00454f21
add esp, 0x14
jmp 0x4552f3
xor esi, esi
push 0x4696d0
push ebx
push ebp
call fcn.004603d5
add esp, 0xc
test eax, eax
je 0x455313
push esi
push esi
push esi
push esi
push esi
call fcn.00454f21
add esp, 0x14
push dword [edi*8 + 0x476b54]
push ebx
push ebp
call fcn.004603d5
add esp, 0xc
test eax, eax
je 0x455335
push esi
push esi
push esi
push esi
push esi
call fcn.00454f21
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00460668
add esp, 0xc
jmp 0x45537d
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x45537d
cmp ebp, 0xffffffff
je 0x45537d
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x476b54]
push dword [esi]
call fcn.00450bb0
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 0x460147
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x476dec]
jne 0x460151
repz ret
jmp fcn.00463919
Function at 0x460668
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00454998
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 0x46073e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x46081e
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x46b49c
push edi
call esi
cmp eax, ebx
je 0x46081e
push eax
call fcn.0045492a
mov dword [esp], 0x46b48c
push edi
mov dword [0x479228], eax
call esi
push eax
call fcn.0045492a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x47922c], eax
call esi
push eax
call fcn.0045492a
mov dword [0x479230], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0044eb00
test eax, eax
pop ecx
pop ecx
je 0x46070c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00454f21
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x46073e
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0045492a
cmp eax, ebx
pop ecx
mov dword [0x479238], eax
je 0x46073e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0045492a
pop ecx
mov dword [0x479234], eax
mov eax, dword [0x479234]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4607c3
cmp dword [0x479238], ecx
je 0x4607c3
push eax
call fcn.004549a1
push dword [0x479238]
mov esi, eax
call fcn.004549a1
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4607c3
cmp edi, ebx
je 0x4607c3
call esi
cmp eax, ebx
je 0x460790
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x460790
test byte [ebp - 0x18], 1
jne 0x4607c3
lea eax, [ebp - 0x10]
push eax
call fcn.0044eb37
test eax, eax
pop ecx
je 0x4607ab
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00454f21
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4607ba
or dword [ebp + 0x10], 0x200000
jmp 0x4607fe
or dword [ebp + 0x10], 0x40000
jmp 0x4607fe
mov eax, dword [0x47922c]
cmp eax, dword [ebp - 8]
je 0x4607fe
push eax
call fcn.004549a1
cmp eax, ebx
pop ecx
je 0x4607fe
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4607fe
mov eax, dword [0x479230]
cmp eax, dword [ebp - 8]
je 0x4607fe
push eax
call fcn.004549a1
cmp eax, ebx
pop ecx
je 0x4607fe
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x479228]
call fcn.004549a1
cmp eax, ebx
pop ecx
je 0x46081e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x460820
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x7c864d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x7d2388
cmp edx, dword [eax]
je 0x7c866f
add eax, 8
inc ecx
cmp eax, 0x7d2418
jl 0x7c8660
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x7d2388]
jne 0x7c879d
mov eax, dword [0xbd7ca0]
cmp eax, 1
je 0x7c8777
test eax, eax
jne 0x7c86a0
cmp dword [0x7d22b4], 1
je 0x7c8777
cmp edx, 0xfc
je 0x7c879d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x7c86d7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.007c9030
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.007c94c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x7c871a
lea eax, [ebp - 0x1a4]
push eax
call fcn.007c94c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x7cdde4
push edi
call fcn.007cb390
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.007c9030
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.007c9040
lea eax, [ebp - 0xa0]
push 0x7cddc4
push eax
call fcn.007c9040
push dword [esi + 0x7d238c]
lea eax, [ebp - 0xa0]
push eax
call fcn.007c9040
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.007cb304
add esp, 0x2c
pop edi
jmp 0x7c879d
lea eax, [ebp + 8]
lea esi, [esi + 0x7d238c]
push 0
push eax
push dword [esi]
call fcn.007c94c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret