joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436c50
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x469d30
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x489190]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0x18]
call fcn.00403574
mov dword [esp + 0x24], 0
lea ecx, [esp + 0x14]
call fcn.00403574
mov byte [esp + 0x24], 1
mov ecx, dword [0x48afa4]
push ecx
lea eax, [edi + 4]
push str.8EF0E96B_118D_466b_A9E3_81175866B1F0__d
push eax
call fcn.0040907a
mov edx, dword [0x48afa4]
push edx
lea eax, [esp + 0x28]
push str.E3E23319_4433_40bd_A611_79EEA469B90B__d
push eax
call fcn.0040907a
mov ecx, dword [0x48afa4]
push ecx
lea edx, [esp + 0x30]
push str.21918AFB_D09D_4836_84CE_F6352A910B82__d
push edx
call fcn.0040907a
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0x24
call esi
mov ebp, eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_OpenEventW]
sub eax, ebp
cmp eax, 0x7d0
jae 0x436d1f
mov eax, dword [esp + 0x18]
push eax
push 0
push 2
call ebx
test eax, eax
mov dword [edi + 0x2c], eax
jne 0x436d1f
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
sub eax, ebp
cmp eax, 0x7d0
jb 0x436cf7
cmp dword [edi + 0x2c], 0
je 0x436d9c
call esi
mov ebp, eax
call esi
sub eax, ebp
cmp eax, 0x7d0
jae 0x436d5f
mov ecx, dword [esp + 0x14]
push ecx
push 0
push 0x100002
call ebx
test eax, eax
mov dword [edi + 0x30], eax
jne 0x436d5f
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
sub eax, ebp
cmp eax, 0x7d0
jb 0x436d34
cmp dword [edi + 0x30], 0
je 0x436d9c
call esi
mov ebx, eax
call esi
sub eax, ebx
cmp eax, 0x7d0
jae 0x436d9c
mov eax, dword [edi + 4]
push eax
call fcn.00436850
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x436dd1
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
sub eax, ebx
cmp eax, 0x7d0
jb 0x436d74
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x14]
call fcn.0040359a
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.0040359a
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push ebp
call fcn.0043ce40
mov edx, dword [ebp + 4]
add esp, 4
mov ecx, edi
mov dword [edi], edx
call fcn.00436680
test eax, eax
je 0x436ded
add dword [edi], 1
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x14]
call fcn.0040359a
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.0040359a
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x43b960
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x18]
mov ecx, dword [edi]
lea eax, [esp + 0x10]
push eax
add esi, esi
push 0x40
add esi, esi
push 4
add ecx, esi
push ecx
xor bl, bl
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esp + 0x24]
mov ecx, dword [edi]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [esp + 0x10]
push edx
push 4
push eax
add ecx, esi
push ecx
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x43b9d3
mov ecx, dword [edi]
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [esp + 0x28]
push eax
add ecx, esi
push ecx
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x43b9d3
mov bl, 1
push 0
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret
Function at 0x43c540
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46a907
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
mov eax, dword [0x489190]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x1c], ebx
test byte [0x48c89c], 1
jne 0x43c59e
or dword [0x48c89c], 1
mov dword [esp + 0x28], 1
mov ecx, 0x48c898
call fcn.00403574
push 0x46b810
call fcn.00446d40
add esp, 4
mov byte [esp + 0x28], bl
mov eax, dword [0x48c898]
cmp dword [eax - 0xc], ebx
jle 0x43c5d8
mov esi, dword [esp + 0x30]
push 0x48c898
mov ecx, esi
call fcn.004046aa
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], 1
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x20
ret
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], 3
mov dword [esp + 0xc], ebx
mov byte [esp + 0x28], 5
lea ecx, [esp + 0x18]
push ecx
push 0x46fd78
push 1
push ebx
push 0x4791f0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x43c61d
mov edx, dword [eax]
mov edx, dword [edx + 0x1b0]
lea ecx, [esp + 0xc]
push ecx
push eax
call edx
cmp dword [esp + 0xc], ebx
je 0x43c68d
lea ecx, [esp + 0x14]
call fcn.0042cfb0
mov byte [esp + 0x28], 6
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [ecx + 0x64]
call eax
mov dword [esp + 0x10], ebx
mov byte [esp + 0x28], 7
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
test eax, eax
jl 0x43c66f
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, 0x48c898
call fcn.0040a203
mov byte [esp + 0x28], 6
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [esp + 0x28], 5
lea ecx, [esp + 0x14]
call fcn.00438930
mov esi, dword [esp + 0x30]
push 0x48c898
mov ecx, esi
call fcn.004046aa
mov dword [esp + 0x1c], 1
mov byte [esp + 0x28], 3
lea ecx, [esp + 0xc]
call fcn.00438930
mov byte [esp + 0x28], bl
lea ecx, [esp + 0x18]
call fcn.0041adc4
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x20
ret

Function at 0x43d1e0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push esi
push 0
push esi
push 0x43d1c0
push 0
push 0
call fcn.00445a10
add esp, 0x18
mov dword [esi + 4], eax
pop esi
ret
Function at 0x442c20
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x40
xor eax, eax
push ebx
push esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push edi
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, dword [esp + 0x2c]
cmp edi, 0x1000
mov esi, eax
jb 0x442c90
mov edi, 0x1000
mov ebx, dword [esp + 0x50]
push edi
lea ecx, [esp + 0x10]
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp dword [esp + 0x10], 0
jne 0x442cc0
push 1
push 0x2000
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
pop edi
pop esi
pop ebx
add esp, 0x40
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x40
ret

Function at 0x442cd0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push esi
mov esi, dword [esp + 0x2c]
xor eax, eax
cmp esi, eax
jne 0x442ce3
pop esi
add esp, 0x24
ret
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [esp + 8]
cmp ecx, 0x1000
jb 0x442d29
mov ecx, 0x1000
push 0x8000
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
pop esi
add esp, 0x24
ret

Function at 0x442f00
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x489190]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 0x11c
lea eax, [esp + 8]
push 0
push eax
call fcn.004456a0
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x11c
call esi
test eax, eax
jne 0x442f55
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x114
call esi
test eax, eax
je 0x442f8c
cmp dword [esp + 0x14], 2
jne 0x442f8c
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x442f87
cmp dword [esp + 0xc], 0
jne 0x442f8c
mov eax, 1
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00445f93
add esp, 0x120
ret
cmp eax, 4
jbe 0x442f6c
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00445f93
add esp, 0x120
ret
Function at 0x4435e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x46b29b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x489190]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esi], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 4], ecx
xor ebx, ebx
push 0xffffffffffffffff
lea ecx, [esi + 0xc]
mov dword [esi + 8], edx
push ebx
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
push eax
mov word [ecx + 4], bx
call fcn.0041f680
mov dword [esp + 0x18], ebx
mov cl, byte [esp + 0x30]
mov byte [esi + 0x28], cl
mov byte [esi + 0x29], bl
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret 0x14

Function at 0x4449d0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x46b435
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x489190]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
call fcn.00444960
mov dword [esp + 0x14], 0
lea ecx, [esi + 0xc]
call fcn.00444960
mov byte [esp + 0x14], 1
lea ecx, [esi + 0x18]
call fcn.00444960
mov byte [esp + 0x14], 2
lea ecx, [esi + 0x24]
call fcn.00444960
mov byte [esp + 0x14], 3
lea ecx, [esi + 0x30]
call fcn.00444960
mov byte [esp + 0x14], 4
lea ecx, [esi + 0x3c]
call fcn.00444960
mov byte [esp + 0x14], 5
lea ecx, [esi + 0x48]
call fcn.00444960
mov byte [esp + 0x14], 6
lea ecx, [esi + 0x54]
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
call fcn.00411242
test eax, eax
jge 0x444a78
push eax
call fcn.0040106a
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x444d0c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x489190]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00444c4b
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004456a0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x444d5b
cmp dword [ebp - 0x1c], 5
jb 0x444d73
jmp 0x444d6f
cmp dword [ebp - 0x10], 1
jne 0x444d73
cmp dword [ebp - 0x1c], 4
ja 0x444d6f
jne 0x444d73
cmp dword [ebp - 0x18], 0
jbe 0x444d73
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x473fac
call fcn.00411242
test eax, eax
jge 0x444d94
mov byte [0x48a7d4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00445f93
add ebp, 0x78
leave
ret
Function at 0x444f46
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x48cc74], 0
push esi
jne 0x444eb9
call fcn.00444de4
test eax, eax
je 0x444efc
mov eax, dword [0x48cc74]
cmp eax, 1
jne 0x444eda
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x444efc
pop esi
ret
push eax
call dword [0x48cc7c]
test eax, eax
jne 0x444f44
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x444f00
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x48cc74]
call dword [0x48cc7c]
mov edi, eax
test edi, edi
je 0x444f27
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x444f43
lea edi, [esi + 0xff0]
push esi
push dword [0x48cc74]
call dword [0x48cc78]
add esi, 0x10
cmp esi, edi
jb 0x444f2d
mov eax, esi
pop edi
pop esi
ret
jmp 0x444ea6

Function at 0x445f93
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x489190]
jne 0x445f9d
repz ret
jmp fcn.0044ebcc
Function at 0x44a001
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 0x44a03e
cmp dword [ebp + 0x14], edi
je 0x44a03e
cmp ecx, edi
jne 0x44a045
call fcn.0044cc12
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00449edf
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x44a059
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x44a07a
cmp ebx, 0xffffffff
je 0x44a069
push ebx
push edi
push ecx
call fcn.004456a0
add esp, 0xc
cmp esi, edi
je 0x44a026
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x44a026
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x44a096
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x44a09d
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x44a18e
test word [esi + 0xc], 0x10c
je 0x44a0f1
mov eax, dword [esi + 4]
test eax, eax
je 0x44a0f1
jl 0x44a1ef
cmp ebx, eax
mov edi, ebx
jb 0x44a0c2
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x44a196
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00445321
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 0x44a186
cmp ebx, dword [ebp - 0xc]
jb 0x44a15e
cmp dword [ebp - 0xc], 0
je 0x44a11b
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x44a110
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x44a117
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x44a126
mov eax, SysReAllocString
cmp ebx, eax
ja 0x44a126
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x44a1c2
push eax
push dword [ebp - 8]
push esi
call fcn.004540f1
pop ecx
push eax
call fcn.00454b53
add esp, 0xc
test eax, eax
je 0x44a201
cmp eax, 0xffffffff
je 0x44a1ef
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x44a186
push esi
call fcn.00454472
cmp eax, 0xffffffff
pop ecx
je 0x44a1f3
cmp dword [ebp - 4], 0
je 0x44a1c2
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 0x44a0a5
mov eax, dword [ebp + 0x14]
jmp 0x44a040
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x44a1ad
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004456a0
add esp, 0xc
call fcn.0044cc12
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x44a036
cmp dword [ebp + 0xc], 0xffffffff
je 0x44a1d8
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004456a0
add esp, 0xc
call fcn.0044cc12
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x44a036
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x44a040
or dword [esi + 0xc], 0x10
jmp 0x44a1f3
Function at 0x44d9b1
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 + 0x4894c0]
je 0x44d9cc
inc edi
cmp edi, 0x17
jb 0x44d9bd
cmp edi, 0x17
jae 0x44db4c
push ebp
push 3
call fcn.00458433
cmp eax, 1
pop ecx
je 0x44db18
push 3
call fcn.00458433
test eax, eax
pop ecx
jne 0x44da00
cmp dword [0x4891d0], 1
je 0x44db18
cmp ebx, 0xfc
je 0x44db4b
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x48cf80
push ebp
call fcn.0044b1f2
add esp, 0xc
test eax, eax
je 0x44da36
push esi
push esi
push esi
push esi
push esi
call fcn.00449dc1
add esp, 0x14
push 0x104
mov esi, 0x48cf99
push esi
push 0
mov byte [0x48d09d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x44da7a
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0044b1f2
add esp, 0xc
test eax, eax
je 0x44da7a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00449dc1
add esp, 0x14
push esi
call fcn.00446070
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x44dabf
push esi
call fcn.00446070
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x48d294
push 0x474f04
sub ecx, eax
push ecx
push eax
call fcn.004581b6
add esp, 0x14
test eax, eax
je 0x44dabf
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00449dc1
add esp, 0x14
jmp 0x44dac1
xor esi, esi
push 0x474f00
push ebx
push ebp
call fcn.004580fa
add esp, 0xc
test eax, eax
je 0x44dae1
push esi
push esi
push esi
push esi
push esi
call fcn.00449dc1
add esp, 0x14
push dword [edi*8 + 0x4894c4]
push ebx
push ebp
call fcn.004580fa
add esp, 0xc
test eax, eax
je 0x44db03
push esi
push esi
push esi
push esi
push esi
call fcn.00449dc1
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00458276
add esp, 0xc
jmp 0x44db4b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x44db4b
cmp ebp, 0xffffffff
je 0x44db4b
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4894c4]
push dword [esi]
call fcn.00446070
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 0x458276
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0044e405
xor ebx, ebx
cmp dword [0x48da4c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x45834c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x45842c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x45842c
push eax
call fcn.0044e397
mov dword [esp], 0x4752dc
push edi
mov dword [0x48da4c], eax
call esi
push eax
call fcn.0044e397
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x48da50], eax
call esi
push eax
call fcn.0044e397
mov dword [0x48da54], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004491a7
test eax, eax
pop ecx
pop ecx
je 0x45831a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00449dc1
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x45834c
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0044e397
cmp eax, ebx
pop ecx
mov dword [0x48da5c], eax
je 0x45834c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044e397
pop ecx
mov dword [0x48da58], eax
mov eax, dword [0x48da58]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4583d1
cmp dword [0x48da5c], ecx
je 0x4583d1
push eax
call fcn.0044e40e
push dword [0x48da5c]
mov esi, eax
call fcn.0044e40e
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4583d1
cmp edi, ebx
je 0x4583d1
call esi
cmp eax, ebx
je 0x45839e
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x45839e
test byte [ebp - 0x18], 1
jne 0x4583d1
lea eax, [ebp - 0x10]
push eax
call fcn.004491de
test eax, eax
pop ecx
je 0x4583b9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00449dc1
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4583c8
or dword [ebp + 0x10], 0x200000
jmp 0x45840c
or dword [ebp + 0x10], 0x40000
jmp 0x45840c
mov eax, dword [0x48da50]
cmp eax, dword [ebp - 8]
je 0x45840c
push eax
call fcn.0044e40e
cmp eax, ebx
pop ecx
je 0x45840c
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x45840c
mov eax, dword [0x48da54]
cmp eax, dword [ebp - 8]
je 0x45840c
push eax
call fcn.0044e40e
cmp eax, ebx
pop ecx
je 0x45840c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x48da4c]
call fcn.0044e40e
cmp eax, ebx
pop ecx
je 0x45842c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x45842e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45ee40
Capabilities:
Read file on windows

Disassembly:
cmp dword [esi + 0x3c], 0
jne 0x45ee93
cmp dword [esi + 4], 0
jne 0x45ee9c
call fcn.0044cc12
mov dword [eax], 0
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
push eax
push 0x4000
push 1
push ecx
call fcn.0044a29d
add esp, 0x10
test eax, eax
mov dword [esi + 4], eax
jne 0x45ee97
mov edx, dword [esi + 0x40]
push edx
mov dword [esi + 0x3c], 1
call fcn.0044a6ce
add esp, 4
test eax, eax
je 0x45ee93
mov dword [esi + 0x38], 0xffffffff
or eax, 0xffffffff
ret
mov eax, dword [esi + 0x44]
mov dword [esi], eax
mov eax, dword [esi]
add dword [esi + 4], 0xffffffff
mov cl, byte [eax]
add eax, 1
mov dword [esi], eax
movzx eax, cl
ret

Function at 0x45eeb0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, eax
push edi
mov edi, dword [esi + 4]
cmp edi, 2
jae 0x45ef25
test edi, edi
je 0x45eec9
mov eax, dword [esi]
mov ecx, dword [esi + 0x44]
mov dl, byte [eax]
mov byte [ecx], dl
call fcn.0044cc12
mov dword [eax], 0
mov eax, dword [esi + 0x40]
mov ecx, edi
push eax
mov eax, dword [esi + 0x44]
mov edx, 0x4000
sar edx, cl
add eax, edi
push edx
push 1
push eax
call fcn.0044a29d
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x45ef0f
mov ecx, dword [esi + 0x40]
push ecx
call fcn.0044a6ce
add esp, 4
test eax, eax
je 0x45ef0f
mov dword [esi + 0x38], 0xffffffff
add dword [esi + 4], edi
mov eax, dword [esi + 4]
cmp eax, 2
mov edx, dword [esi + 0x44]
mov dword [esi], edx
jae 0x45ef25
pop edi
mov dword [esi + 0x58], eax
pop esi
ret
mov eax, dword [esi]
cmp byte [eax], 0x1f
jne 0x45effe
cmp byte [eax + 1], 0x8b
jne 0x45effe
add dword [esi + 4], 0xfffffffe
add eax, 2
push ebx
mov dword [esi], eax
call fcn.0045ee40
mov edi, eax
call fcn.0045ee40
cmp edi, 8
mov ebx, eax
jne 0x45eff3
test bl, 0xe0
jne 0x45eff3
mov edi, 6
lea esp, [esp]
call fcn.0045ee40
sub edi, 1
jne 0x45ef70
test bl, 4
je 0x45efa3
call fcn.0045ee40
mov edi, eax
call fcn.0045ee40
shl eax, 8
add edi, eax
mov eax, edi
sub edi, 1
test eax, eax
je 0x45efa3
call fcn.0045ee40
cmp eax, 0xffffffff
jne 0x45ef90
test bl, 8
je 0x45efb6
call fcn.0045ee40
test eax, eax
je 0x45efb6
cmp eax, 0xffffffff
jne 0x45efa8
test bl, 0x10
je 0x45efce
jmp 0x45efc0
call fcn.0045ee40
test eax, eax
je 0x45efce
cmp eax, 0xffffffff
jne 0x45efc0
test bl, 2
je 0x45efe2
mov edi, 2
call fcn.0045ee40
sub edi, 1
jne 0x45efd8
mov ecx, dword [esi + 0x3c]
neg ecx
sbb ecx, ecx
pop ebx
and ecx, 0xfffffffd
pop edi
mov dword [esi + 0x38], ecx
pop esi
ret
pop ebx
pop edi
mov dword [esi + 0x38], 0xfffffffd
pop esi
ret
pop edi
mov dword [esi + 0x58], 1
pop esi
ret