joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42dc3d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2018
call fcn.004528c0
push ebx
push esi
push edi
lea ecx, [ebp - 0xc]
call fcn.0040dc80
lea ecx, [ebp - 0x18]
call fcn.0040dc80
mov esi, dword [ebp + 8]
xor edi, edi
call fcn.0040f5e3
mov esi, eax
movzx eax, word [esi]
xor bl, bl
test ax, ax
je 0x42dd6b
inc edi
cmp ax, 0x25
jne 0x42dd2a
cmp word [esi + edi*2], ax
jne 0x42dc9a
push 0x25
lea eax, [ebp - 0xc]
mov bl, 1
call fcn.0040deee
inc edi
jmp 0x42dd33
push 0x46a170
lea eax, [ebp - 0x18]
call fcn.0040de0f
jmp 0x42dcbb
test ax, ax
je 0x42dcc5
movzx eax, ax
push eax
lea eax, [ebp - 0x18]
call fcn.0040deee
inc edi
movzx eax, word [esi + edi*2]
cmp ax, 0x25
jne 0x42dca9
cmp word [esi + edi*2], 0
je 0x42dd42
and word [ebp - 0x2018], 0
push 0xfff
lea eax, [ebp - 0x2018]
push eax
push dword [ebp - 0x18]
inc edi
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
test eax, eax
je 0x42dd01
lea eax, [ebp - 0x2018]
push eax
lea eax, [ebp - 0xc]
call fcn.0040dea7
mov bl, 1
jmp 0x42dd33
push 0x46f444
lea eax, [ebp - 0xc]
mov bl, 1
call fcn.0040dea7
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0xc]
call fcn.0040de6b
push 0x46f444
lea eax, [ebp - 0xc]
call fcn.0040dea7
jmp 0x42dd33
push eax
lea eax, [ebp - 0xc]
call fcn.0040deee
movzx eax, word [esi + edi*2]
test ax, ax
jne 0x42dc77
jmp 0x42dd5c
push 0x46f444
lea eax, [ebp - 0xc]
mov bl, 1
call fcn.0040dea7
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0xc]
call fcn.0040de6b
test bl, bl
je 0x42dd6b
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0xc]
call fcn.0040fc96
push dword [ebp - 0x18]
call fcn.0044d460
push dword [ebp - 0xc]
call fcn.0044d460
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x430a5c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push str.open
lea esi, [ebp - 0x14]
call fcn.0040dcac
xor ebx, ebx
push 0x3c
xor esi, esi
lea eax, [ebp - 0x5c]
push ebx
inc esi
push eax
xor edi, edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], esi
call fcn.0044fbe0
add esp, 0xc
cmp dword [ebp + 0x14], 2
jb 0x430ac5
mov ecx, dword [ebp + 0x10]
mov eax, esi
call fcn.00405435
mov esi, eax
call fcn.0040f5e3
cmp word [eax], bx
je 0x430ac5
mov ecx, dword [ebp + 0x10]
xor eax, eax
inc eax
call fcn.00405435
mov esi, eax
call fcn.0040f5e3
push eax
call fcn.0040d0a5
pop ecx
mov edi, eax
cmp dword [ebp + 0x14], 3
jb 0x430ae7
mov ecx, dword [ebp + 0x10]
push 2
pop eax
call fcn.00405435
mov esi, eax
call fcn.0040f5e3
push eax
call fcn.0040d0a5
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 4
jb 0x430b22
mov ecx, dword [ebp + 0x10]
push 3
pop eax
call fcn.00405435
mov esi, eax
call fcn.0040f5e3
cmp word [eax], bx
je 0x430b22
mov ecx, dword [ebp + 0x10]
push 3
pop eax
call fcn.00405435
mov esi, eax
call fcn.0040f605
mov ebx, eax
lea eax, [ebp - 0x14]
call fcn.0040dde3
xor ebx, ebx
cmp dword [ebp + 0x14], 5
jb 0x430b3e
mov ecx, dword [ebp + 0x10]
push 4
pop eax
call fcn.00405435
call fcn.0040f6bb
movzx eax, ax
mov dword [ebp - 8], eax
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.0044fbe0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x50], eax
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], 0x40
mov dword [ebp - 0x54], ebx
call fcn.00405435
mov esi, eax
call fcn.0040f5e3
mov esi, dword [ebp - 4]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp edi, ebx
mov dword [ebp + 0x10], eax
je 0x430b9d
push edi
call fcn.0044d460
pop ecx
cmp esi, ebx
je 0x430ba8
push esi
call fcn.0044d460
pop ecx
cmp dword [ebp + 0x10], ebx
jne 0x430c06
mov esi, dword [ebp + 8]
cmp byte [esi + 0x298], 1
jne 0x430bf0
push 0xffffffffffffffff
lea eax, [ebp - 0x20]
push eax
call fcn.00418b5c
push dword [eax]
mov ebx, esi
push 0x87
call fcn.00418996
push dword [ebp - 0x20]
call fcn.0044d460
xor ebx, ebx
pop ecx
inc ebx
push dword [ebp - 0x14]
call fcn.0044d460
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x14
xor ecx, ecx
push ebx
inc ecx
mov eax, esi
call fcn.0041a160
mov esi, dword [ebp + 0x18]
push ebx
call fcn.0040fb9e
jmp 0x430bde
cmp byte [ebp + 0xc], bl
je 0x430c19
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x7d8], eax
jmp 0x430bde
mov esi, dword [ebp + 0x18]
push 1
call fcn.0040fb9e
cmp dword [ebp - 0x24], ebx
je 0x430bde
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x430bde
Function at 0x433bd2
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 0x433c8d
xor eax, eax
cmp byte [0x489860], bl
je 0x433c1f
mov eax, 0x100
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 0x433c99
push dword [esp + 0x14]
call fcn.00433bd2
pop ecx
push dword [esp + 0x14]
mov byte [esp + 0x13], al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0xf], bl
je 0x433c99
lea eax, [esp + 0x20]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x433c99
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 0x433c10
mov al, 1
jmp 0x433c9b
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4346a0
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 0x434728
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileType]
cmp eax, 1
jne 0x434728
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 0x4346fc
cmp dword [ebp + 0x10], ebx
jbe 0x4346fc
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 0x4346f4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
jmp 0x43472a
push ebx
push ebx
push dword [ebp - 4]
push edi
call esi
cmp dword [ebp + 0x18], ebx
je 0x43471c
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 0x434732
push 6
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x439dbf
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
push 0x44
xor ebx, ebx
push ebx
mov edi, 0x48bda0
push edi
call fcn.0044fbe0
push 0x10
push ebx
mov esi, 0x48bd90
push esi
call fcn.0044fbe0
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 [0x48bda0], 0x44
mov dword [0x48bdcc], eax
mov word [0x48bdd0], ax
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
pop edi
pop esi
pop ebx
je 0x439e22
push dword [0x48bd90]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
ret 4
Function at 0x43a3c5
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 0x43a411
cmp edx, dword [edi + 0x4140]
je 0x43a42b
cmp dword [ebp + 0xc], 1
mov dword [eax], ecx
mov dword [edi + 0x4140], edx
jne 0x43a42b
push edx
push ecx
push 0xfffffffffffffff5
push dword [ebp + 8]
call fcn.00439cbe
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 1
call esi
mov ebx, 0x8000
test bx, ax
jne 0x43a452
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test bx, ax
jne 0x43a452
and dword [ebp - 4], 0
jmp 0x43a459
mov dword [ebp - 4], 1
push 2
call esi
test bx, ax
jne 0x43a473
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test bx, ax
jne 0x43a473
xor ebx, ebx
jmp 0x43a476
xor ebx, ebx
inc ebx
mov esi, dword [ebp - 4]
cmp esi, dword [edi + 0x4144]
je 0x43a4dd
cmp dword [ebp + 0xc], 1
jne 0x43a4dd
cmp byte [edi + 0x4170], 0
je 0x43a4e3
test esi, esi
push dword [ebp - 8]
push dword [ebp - 0xc]
je 0x43a49e
push 0xfffffffffffffff9
jmp 0x43a4ce
push 0xfffffffffffffff8
push dword [ebp + 8]
call fcn.00439cbe
cmp byte [edi + 0x414c], 0
je 0x43a4d6
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x1000000
push dword [ebp - 8]
push dword [ebp - 0xc]
je 0x43a4cc
push 0xfffffffffffffffa
jmp 0x43a4ce
push 0xfffffffffffffff4
push dword [ebp + 8]
call fcn.00439cbe
mov byte [edi + 0x414c], 0
cmp dword [ebp + 0xc], 0
je 0x43a4e9
mov dword [edi + 0x4144], esi
cmp ebx, dword [edi + 0x4148]
je 0x43a517
cmp dword [ebp + 0xc], 1
jne 0x43a517
test ebx, ebx
push dword [ebp - 8]
push dword [ebp - 0xc]
je 0x43a50d
push 0xfffffffffffffff7
push dword [ebp + 8]
call fcn.00439cbe
jmp 0x43a51d
push 0xfffffffffffffff6
push dword [ebp + 8]
call fcn.00439cbe
cmp dword [ebp + 0xc], 0
je 0x43a523
mov dword [edi + 0x4148], ebx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x43f2e4
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 0x43f3ec
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 0x43f31b
xor eax, eax
jmp 0x43f418
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 0x467168
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 0x43f314
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 0x43f3c3
cmp dword [eax], esi
jne 0x43f3c3
mov edx, dword [ebp - 0x2c]
mov dword [ecx], edx
mov edx, dword [ebp - 0x28]
mov dword [eax], edx
jmp 0x43f3cb
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 0x43f3ef
mov dword [ebp - 8], esi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x44]
cmp eax, esi
je 0x43f400
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 0x43fb59
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 0x43fbe1
push 3
pop eax
cmp dword [esi + 0x14], eax
mov dword [ebp - 4], eax
jl 0x43fbd8
lea edi, [esi + 0x64]
mov eax, dword [edi]
test eax, eax
je 0x43fbca
cmp byte [eax + 0x70], 0xb
je 0x43fbca
mov cl, byte [eax + 0x73]
movzx edx, cl
cmp edx, dword [esi + 0x4158]
je 0x43fbac
cmp byte [esi + 0x4160], 0
je 0x43fbca
cmp cl, 0xff
je 0x43fbca
cmp byte [eax + 0x70], 0xa
je 0x43fbca
push 0
push dword [eax]
call ebx
mov eax, dword [edi]
test byte [eax + 0x72], 0x40
je 0x43fbca
cmp byte [eax + 0x70], 0x1a
jne 0x43fbca
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 0x43fb7e
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 0x43fc41
lea edi, [esi + 0x64]
mov eax, dword [edi]
test eax, eax
je 0x43fc33
cmp byte [eax + 0x70], 0xb
je 0x43fc33
movzx ecx, byte [eax + 0x73]
cmp ecx, dword [esi + 0x4158]
jne 0x43fc33
test byte [eax + 0x72], 0x20
jne 0x43fc33
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 0x43fc33
cmp byte [eax + 0x70], 0x1a
jne 0x43fc33
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 0x43fbef
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 0x444035
Capabilities:
Parse credit card information

Disassembly:
jmp 0x4440ce
cmp ecx, 0x4f
jne 0x44404c
xor ecx, ecx
mov ch, byte [eax + 1]
mov cl, byte [eax + 2]
jmp 0x4440cc
cmp ecx, 0x5e
jne 0x444068
xor ecx, ecx
mov ch, byte [eax + 3]
mov cl, byte [eax + 4]
cmp ecx, dword [esp + 8]
je 0x4440db
movzx ecx, byte [0x4667fe]
jmp 0x4440cc
cmp ecx, 0x38
jl 0x444095
cmp ecx, 0x3d
jle 0x444086
cmp ecx, 0x40
jle 0x444081
cmp ecx, 0x43
jle 0x444086
cmp ecx, 0x44
jne 0x444095
mov dl, byte [eax + 3]
jmp 0x444089
mov dl, byte [eax + 1]
cmp dl, 0xf
je 0x444093
cmp dl, 0xe
jne 0x444095
inc eax
inc eax
movzx edx, byte [ecx + 0x4667a0]
add eax, edx
cmp dword [esp + 4], 0
je 0x4440ce
cmp ecx, 0x1b
jl 0x4440ce
cmp ecx, 0x1c
jle 0x4440b9
cmp ecx, 0x1d
jle 0x4440ce
cmp ecx, 0x2a
jg 0x4440ce
movzx ecx, byte [eax - 1]
cmp cl, 0xc0
jb 0x4440ce
and ecx, 0x3f
movzx ecx, byte [ecx + 0x466860]
add eax, ecx
movzx ecx, byte [eax]
test ecx, ecx
jne 0x44403a
xor eax, eax
ret
Function at 0x450755
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 0x450792
cmp dword [ebp + 0x14], edi
je 0x450792
cmp ecx, edi
jne 0x450799
call fcn.00453a6c
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00453a0d
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4507ad
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4507ce
cmp ebx, 0xffffffff
je 0x4507bd
push ebx
push edi
push ecx
call fcn.0044fbe0
add esp, 0xc
cmp esi, edi
je 0x45077a
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x45077a
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4507ea
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4507f1
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4508e2
test word [esi + 0xc], 0x10c
je 0x450845
mov eax, dword [esi + 4]
test eax, eax
je 0x450845
jl 0x450943
cmp ebx, eax
mov edi, ebx
jb 0x450816
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4508ea
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00459a48
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 0x4508da
cmp ebx, dword [ebp - 0xc]
jb 0x4508b2
cmp dword [ebp - 0xc], 0
je 0x45086f
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x450864
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x45086b
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x45087a
mov eax, SysReAllocString
cmp ebx, eax
ja 0x45087a
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x450916
push eax
push dword [ebp - 8]
push esi
call fcn.00451253
pop ecx
push eax
call fcn.0045994b
add esp, 0xc
test eax, eax
je 0x450955
cmp eax, 0xffffffff
je 0x450943
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4508da
push esi
call fcn.0045926a
cmp eax, 0xffffffff
pop ecx
je 0x450947
cmp dword [ebp - 4], 0
je 0x450916
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 0x4507f9
mov eax, dword [ebp + 0x14]
jmp 0x450794
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x450901
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0044fbe0
add esp, 0xc
call fcn.00453a6c
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x45078a
cmp dword [ebp + 0xc], 0xffffffff
je 0x45092c
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0044fbe0
add esp, 0xc
call fcn.00453a6c
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x45078a
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x450794
or dword [esi + 0xc], 0x10
jmp 0x450947
Function at 0x453bd3
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 + 0x474c60]
je 0x453bee
inc edi
cmp edi, 0x17
jb 0x453bdf
cmp edi, 0x17
jae 0x453d6e
push ebp
push 3
call fcn.0045f215
cmp eax, 1
pop ecx
je 0x453d3a
push 3
call fcn.0045f215
test eax, eax
pop ecx
jne 0x453c22
cmp dword [0x474498], 1
je 0x453d3a
cmp ebx, 0xfc
je 0x453d6d
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x476b30
push ebp
call fcn.0045ef39
add esp, 0xc
test eax, eax
je 0x453c58
push esi
push esi
push esi
push esi
push esi
call fcn.00453911
add esp, 0x14
push 0x104
mov esi, 0x476b49
push esi
push 0
mov byte [0x476c4d], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x453c9c
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0045ef39
add esp, 0xc
test eax, eax
je 0x453c9c
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00453911
add esp, 0x14
push esi
call fcn.0044f530
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x453ce1
push esi
call fcn.0044f530
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x476e44
push 0x4678ec
sub ecx, eax
push ecx
push eax
call fcn.0045ee86
add esp, 0x14
test eax, eax
je 0x453ce1
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00453911
add esp, 0x14
jmp 0x453ce3
xor esi, esi
push 0x4678e8
push ebx
push ebp
call fcn.0045edc5
add esp, 0xc
test eax, eax
je 0x453d03
push esi
push esi
push esi
push esi
push esi
call fcn.00453911
add esp, 0x14
push dword [edi*8 + 0x474c64]
push ebx
push ebp
call fcn.0045edc5
add esp, 0xc
test eax, eax
je 0x453d25
push esi
push esi
push esi
push esi
push esi
call fcn.00453911
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0045f058
add esp, 0xc
jmp 0x453d6d
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x453d6d
cmp ebp, 0xffffffff
je 0x453d6d
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x474c64]
push dword [esi]
call fcn.0044f530
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 0x45eb37
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x474efc]
jne 0x45eb41
repz ret
jmp fcn.00462309

Function at 0x45f058
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00453388
xor ebx, ebx
cmp dword [0x4772c8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x45f12e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x45f20e
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x4696dc
push edi
call esi
cmp eax, ebx
je 0x45f20e
push eax
call fcn.0045331a
mov dword [esp], 0x4696cc
push edi
mov dword [0x4772c8], eax
call esi
push eax
call fcn.0045331a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4772cc], eax
call esi
push eax
call fcn.0045331a
mov dword [0x4772d0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0044d50e
test eax, eax
pop ecx
pop ecx
je 0x45f0fc
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00453911
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x45f12e
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0045331a
cmp eax, ebx
pop ecx
mov dword [0x4772d8], eax
je 0x45f12e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0045331a
pop ecx
mov dword [0x4772d4], eax
mov eax, dword [0x4772d4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x45f1b3
cmp dword [0x4772d8], ecx
je 0x45f1b3
push eax
call fcn.00453391
push dword [0x4772d8]
mov esi, eax
call fcn.00453391
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x45f1b3
cmp edi, ebx
je 0x45f1b3
call esi
cmp eax, ebx
je 0x45f180
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x45f180
test byte [ebp - 0x18], 1
jne 0x45f1b3
lea eax, [ebp - 0x10]
push eax
call fcn.0044d545
test eax, eax
pop ecx
je 0x45f19b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00453911
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x45f1aa
or dword [ebp + 0x10], 0x200000
jmp 0x45f1ee
or dword [ebp + 0x10], 0x40000
jmp 0x45f1ee
mov eax, dword [0x4772cc]
cmp eax, dword [ebp - 8]
je 0x45f1ee
push eax
call fcn.00453391
cmp eax, ebx
pop ecx
je 0x45f1ee
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x45f1ee
mov eax, dword [0x4772d0]
cmp eax, dword [ebp - 8]
je 0x45f1ee
push eax
call fcn.00453391
cmp eax, ebx
pop ecx
je 0x45f1ee
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4772c8]
call fcn.00453391
cmp eax, ebx
pop ecx
je 0x45f20e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x45f210
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret