joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c850
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x140
push esi
mov esi, dword [esp + 0x148]
test esi, esi
je 0x43c8b4
cmp byte [esi], 0
je 0x43c8b4
push 0x4567b0
push esi
call fcn.00409fc0
add esp, 8
test eax, eax
je 0x43c89b
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
je 0x43c8b4
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov al, 1
pop esi
add esp, 0x140
ret
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
pop esi
add esp, 0x140
ret
xor al, al
pop esi
add esp, 0x140
ret
Function at 0x440e30
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
jne 0x440e43
xor eax, eax
pop ebx
add esp, 0x10
ret
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
jne 0x440e5e
push eax
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
cmp ebx, esi
jne 0x440e6a
pop esi
mov eax, ebx
pop ebx
add esp, 0x10
ret
push ebx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x440e7e
push 9
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov al, byte [0x45d809]
test al, al
jne 0x440e9e
push 0x44f4f8
push esi
push ebx
call fcn.00440dc0
add esp, 0xc
test eax, eax
jne 0x440fcb
test esi, esi
push ebp
push edi
mov byte [esp + 0x24], 0
mov byte [esp + 0x13], 0
je 0x440f24
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
push esi
call edi
mov ebp, eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push 0
push ebx
mov dword [esp + 0x1c], eax
call edi
test ebp, ebp
mov edi, eax
mov dword [esp + 0x1c], edi
je 0x440f28
cmp dword [esp + 0x14], ebp
je 0x440efc
push esi
call fcn.004407a0
add esp, 4
test al, al
jne 0x440efc
mov eax, dword [esp + 0x14]
push 1
push ebp
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x24]
test edi, edi
je 0x440f28
cmp ebp, edi
je 0x440f28
push ebx
call fcn.004407a0
add esp, 4
test al, al
jne 0x440f28
push 1
push edi
push ebp
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x13]
jmp 0x440f28
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x18], 0
push 0x44f4f8
push esi
push ebx
call fcn.00440dc0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x440f86
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 5
mov dword [esp + 0x18], eax
jl 0x440f30
push 0xffc3d44d
push edi
push edi
push edi
push 0x12
push 2
call fcn.0040aeb0
push 0xffc3d44d
push edi
push edi
push edi
push 0x12
push 2
call fcn.0040aeb0
push 0x44f4f8
push esi
push ebx
call fcn.00440dc0
add esp, 0x3c
mov edi, eax
mov al, byte [esp + 0x24]
test al, al
je 0x440f9c
mov ecx, dword [esp + 0x14]
push 0
push ebp
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov al, byte [esp + 0x13]
test al, al
je 0x440fb2
mov edx, dword [esp + 0x1c]
push 0
push edx
push ebp
call dword [sym.imp.USER32.dll_AttachThreadInput]
test edi, edi
je 0x440fc7
push ebx
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov eax, edi
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x10
ret
pop edi
xor eax, eax
pop ebp
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x441200
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 8
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov dword [esp], eax
lea eax, [esp]
push eax
push 0x440650
mov dword [esp + 0xc], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 4]
add esp, 8
ret

Function at 0x441230
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
lea ecx, [esp]
push ecx
push 0x4406d0
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 4]
add esp, 8
ret
Function at 0x441d70
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
push esi
push edi
jne 0x441d81
mov ebp, 0x44f4f8
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x441d95
mov dword [esp + 0x18], 0x44f4f8
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
test ebx, ebx
jne 0x441da2
mov ebx, 0x44f4f8
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x441daf
mov edi, 0x44f4f8
mov eax, dword [esp + 0x1c]
test eax, eax
jge 0x441dbf
mov dword [esp + 0x1c], 0
mov al, byte [ebp]
cmp al, 0x41
je 0x441dca
cmp al, 0x61
jne 0x441e0a
mov dl, byte [ebp + 1]
test dl, dl
jne 0x441e0a
cmp byte [ecx], 0
jne 0x441e0a
cmp byte [ebx], 0
jne 0x441e0a
cmp byte [edi], 0
jne 0x441e0a
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x441e81
mov al, byte [0x45d5fd]
test al, al
jne 0x441e7d
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x441e81
jmp 0x441e7d
test al, al
jne 0x441e52
cmp byte [ecx], 0
jne 0x441e52
cmp byte [ebx], 0
jne 0x441e52
cmp byte [edi], 0
jne 0x441e52
mov eax, dword [0x45d6d0]
test eax, eax
je 0x441e81
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x441e81
mov al, byte [0x45d5fd]
test al, al
jne 0x441e4a
mov eax, dword [0x45d6d0]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x441e81
mov esi, dword [0x45d6d0]
jmp 0x441e7d
push 0
push edi
push ebx
push ecx
push ebp
call fcn.00441350
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x441e88
mov ecx, dword [esp + 0x18]
push eax
push eax
push eax
push eax
push eax
push edi
push ebx
push ecx
push ebp
call fcn.004417e0
add esp, 0x24
mov esi, eax
test esi, esi
jne 0x441e88
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov al, byte [esp + 0x28]
test al, al
je 0x441edf
lea edx, [esp + 0x18]
push edx
push 0xc8
push 2
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
jne 0x441eec
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x441eec
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
test edi, edi
je 0x441eec
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x441eec
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call ebx
push 0
push 0x8000012f
mov edi, eax
call fcn.00401650
mov ebp, dword [sym.imp.USER32.dll_IsWindow]
add esp, 8
push esi
call ebp
test eax, eax
je 0x441f39
mov eax, dword [esp + 0x1c]
add edi, eax
call ebx
mov ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x441f39
push 0
push 0x8000012f
call fcn.00401650
add esp, 8
push esi
call ebp
test eax, eax
jne 0x441f18
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x4421b0
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x8000
call fcn.004444f0
push ebx
push edi
mov edi, dword [esp + 0x800c]
test edi, edi
mov ebx, ecx
jne 0x4421d6
pop edi
xor eax, eax
pop ebx
add esp, 0x8000
ret 4
push esi
push 0x7fff
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x442226
mov esi, dword [ebx + 8]
nop
mov ecx, dword [esi + 8]
mov edx, dword [esi]
push ecx
push edx
lea eax, [esp + 0x14]
push eax
push edi
call fcn.0043fca0
add esp, 0x10
test al, al
je 0x44221e
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push ecx
push edx
push edi
call fcn.00441260
add esp, 0xc
test eax, eax
jne 0x442234
mov esi, dword [esi + 0x14]
cmp esi, dword [ebx + 8]
jne 0x4421f0
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 0x8000
ret 4
mov eax, esi
pop esi
pop edi
pop ebx
add esp, 0x8000
ret 4

Function at 0x442430
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x1020
call fcn.004444f0
mov eax, dword [ecx + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x4424e6
mov dword [esp + 0x101c], eax
lea eax, [esp + 4]
push eax
push 0x442360
mov byte [esp + 0x100c], bl
mov dword [esp + 0x1010], ebx
mov dword [esp + 0x1014], ebx
mov dword [esp + 0x1018], ebx
mov dword [esp + 0x101c], ebx
mov dword [esp + 0x1020], ebx
mov dword [esp + 0x1028], ebx
mov byte [esp + 0xc0c], bl
mov byte [esp + 0x80c], bl
mov byte [esp + 0x40c], bl
mov byte [esp + 0xc], bl
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esp + 0x100c], ebx
je 0x4424e6
mov eax, dword [0x45d618]
cmp eax, ebx
jl 0x4424e6
cmp eax, 0x19
jge 0x4424dc
cmp byte [0x45f111], bl
je 0x4424dc
push eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, 1
pop ebx
add esp, 0x1020
ret
push ebx
push eax
call fcn.00401650
add esp, 8
mov eax, 1
pop ebx
add esp, 0x1020
ret
Function at 0x4426c0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x1020
call fcn.004444f0
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x442866
mov byte [esi], 0
cmp dword [0x463274], esi
je 0x4426f3
mov dword [0x463274], esi
mov dword [0x46327c], 0
mov eax, dword [0x463278]
test eax, eax
jne 0x44271c
push 0x7d0
call fcn.0043bf80
add esp, 4
test eax, eax
mov dword [0x463278], eax
jne 0x44271c
pop esi
add esp, 0x1020
ret 4
push ebp
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, eax
push ebp
mov ecx, esi
call fcn.004421b0
test eax, eax
je 0x44273c
xor edi, edi
mov dword [0x46327c], edi
jmp 0x442742
mov edi, dword [0x46327c]
lea ecx, [esp + 0xc]
call fcn.00426f30
mov eax, dword [0x463278]
mov ecx, dword [esi + 8]
mov dword [esp + 0x101c], eax
mov al, byte [esp + 0x1030]
test al, al
mov dword [esp + 0x1020], edi
mov dword [esp + 0x1024], ecx
je 0x44277f
test edi, edi
mov byte [esp + 0x100c], 0
je 0x442787
mov byte [esp + 0x100c], 1
lea edx, [esp + 0xc]
push edx
push 0x442250
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0x1014]
test eax, eax
je 0x442835
push eax
call fcn.00441230
mov esi, eax
add esp, 4
test esi, esi
je 0x4427cc
mov eax, dword [esp + 0x1014]
push eax
call fcn.00441f40
add esp, 4
mov dword [esp + 0x1014], esi
mov ecx, dword [esp + 0x1014]
push ecx
call fcn.00440e30
mov edx, dword [esp + 0x1018]
push edx
call fcn.00441f40
mov eax, dword [0x45d618]
add esp, 8
test eax, eax
jl 0x442864
cmp eax, 0x19
jge 0x442819
mov cl, byte [0x45f111]
test cl, cl
je 0x442819
push eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop edi
pop ebp
mov eax, 1
pop esi
add esp, 0x1020
ret 4
push 0
push eax
call fcn.00401650
add esp, 8
pop edi
pop ebp
mov eax, 1
pop esi
add esp, 0x1020
ret 4
mov eax, dword [0x46327c]
test eax, eax
je 0x442864
cmp eax, 1
setg al
test al, al
mov dword [0x46327c], 0
je 0x442864
push ebp
call fcn.00441f40
add esp, 4
push 0
mov ecx, esi
call fcn.004426c0
pop edi
pop ebp
mov eax, 1
pop esi
add esp, 0x1020
ret 4

Function at 0x442b61
Capabilities:
Encode data using xor

Disassembly:
push edi
push dword [esp + 0x10]
call fcn.0040dd90
xor edi, edi
pop ecx
cmp dword [esp + 0xc], edi
jbe 0x442b8b
push esi
mov eax, dword [esp + 0xc]
lea esi, [edi + eax]
call fcn.0040df00
xor byte [esi], al
inc edi
cmp edi, dword [esp + 0x10]
jb 0x442b75
pop esi
pop edi
ret 0xc

Function at 0x442ffd
Capabilities:
Hash data using crc32b

Disassembly:
mov eax, ecx
push esi
push edi
mov edi, eax
or dword [eax + 0x400], 0xffffffff
xor esi, esi
mov edx, esi
push 8
shl edx, 0x18
pop ecx
test edx, 0x80000000
je 0x443026
add edx, edx
xor edx, 0x4c11db7
jmp 0x443028
shl edx, 1
dec ecx
jne 0x443014
mov dword [edi], edx
inc esi
add edi, 4
cmp esi, 0x100
jl 0x44300c
pop edi
pop esi
ret
Function at 0x443a3e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4632d0], esi
push edi
jne 0x443a5e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x4632cc], esi
mov byte [0x4632c8], al
jne 0x443ac4
mov ecx, dword [0x464994]
test ecx, ecx
je 0x443aa5
mov eax, dword [0x464990]
sub eax, 4
cmp eax, ecx
jmp 0x443a9e
mov eax, dword [eax]
test eax, eax
je 0x443a90
call eax
mov eax, dword [0x464990]
sub eax, 4
cmp eax, dword [0x464994]
mov dword [0x464990], eax
jae 0x443a88
mov eax, 0x45b03c
mov esi, 0x45b044
cmp eax, esi
mov edi, eax
jae 0x443ac4
mov eax, dword [edi]
test eax, eax
je 0x443abd
call eax
add edi, 4
cmp edi, esi
jb 0x443ab5
mov eax, 0x45b048
mov esi, 0x45b04c
cmp eax, esi
mov edi, eax
jae 0x443ae3
mov eax, dword [edi]
test eax, eax
je 0x443adc
call eax
add edi, 4
cmp edi, esi
jb 0x443ad4
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x443afd
push dword [ebp + 8]
mov dword [0x4632d0], 1
call fcn.004439a4
pop ebp
ret
Function at 0x445c3d
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x457b90
call fcn.0044b1e4
mov edi, 0x94
mov eax, edi
call fcn.004444f0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x463290], ecx
mov eax, dword [esi + 4]
mov dword [0x46329c], eax
mov edx, dword [esi + 8]
mov dword [0x4632a0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x463294], esi
cmp ecx, 2
je 0x445c9d
or esi, 0x8000
mov dword [0x463294], esi
shl eax, 8
add eax, edx
mov dword [0x463298], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x445cd8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x445cd8
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x445cf0
cmp eax, 0x20b
je 0x445cdd
mov dword [ebp - 0x1c], esi
jmp 0x445d04
cmp dword [ecx + 0x84], 0xe
jbe 0x445cd8
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x445cfe
cmp dword [ecx + 0x74], 0xe
jbe 0x445cd8
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0044702f
pop ecx
test eax, eax
jne 0x445d30
cmp dword [0x4632e8], 1
jne 0x445d1d
call fcn.0044abe6
push 0x1c
call fcn.0044aa6f
push 0xff
call fcn.004439a4
pop ecx
pop ecx
call fcn.0044658b
mov dword [ebp - 4], esi
call fcn.0044a764
test eax, eax
jge 0x445d49
push 0x1b
call fcn.00445c18
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x464988], eax
call fcn.0044b0c2
mov dword [0x4632e0], eax
call fcn.0044b020
test eax, eax
jge 0x445d6f
push 8
call fcn.00445c18
pop ecx
call fcn.0044aded
test eax, eax
jge 0x445d80
push 9
call fcn.00445c18
pop ecx
push 1
call fcn.004439d4
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x445d96
push eax
call fcn.00445c18
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
call fcn.0044ad90
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x445db7
movzx eax, word [ebp - 0x40]
jmp 0x445dba
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00402270
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x445dd8
push edi
call fcn.00443aff
call fcn.00443b21
jmp 0x445e0a
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0044b21f
ret
Function at 0x4491d0
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x4635e4]
mov eax, dword [0x45ccc0]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x449396
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x463600]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x449396
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x44923a
xor eax, eax
jmp 0x4493aa
test al, 0x20
je 0x44924b
push 2
push edi
push edi
push ecx
call fcn.0044cf1b
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x449320
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x449367
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x4492ad
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x44929e
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x449280
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x4492ed
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x4492f9
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x449274
jmp 0x4492fb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x449391
cmp dword [ebp + 0x3a4], edi
je 0x449367
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x449359
mov dword [0x463288], eax
jmp 0x44939d
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x44934b
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x4492fb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x4492fb
push dword [ebp + 0x3a4]
call fcn.0044c744
pop ecx
jmp 0x4493a7
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x44937f
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x449233
mov dword [0x463284], 0x1c
mov dword [0x463288], edi
jmp 0x4493a7
sub eax, dword [ebp - 0x7c]
jmp 0x4493aa
and dword [0x463288], 0
mov dword [0x463284], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.004490dd
add ebp, 0x39c
leave
ret
Function at 0x44aa6f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x45ccc0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x45cdd0]
je 0x44aaa4
inc eax
cmp eax, 0x13
jb 0x44aa95
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x45cdd0]
jne 0x44abca
mov eax, dword [0x4632e8]
cmp eax, 1
je 0x44aba2
cmp eax, edx
jne 0x44aad4
cmp dword [0x45c944], 1
je 0x44aba2
cmp ecx, 0xfc
je 0x44abca
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x44ab0a
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0044b9a0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004460f0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x44ab3e
mov eax, edi
push eax
call fcn.004460f0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x451578
push edi
call fcn.00443880
add esp, 0x10
push edi
call fcn.004460f0
push dword [esi + 0x45cdd4]
mov ebx, eax
call fcn.004460f0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004444f0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0044b9a0
push edi
push ebx
call fcn.0044b9b0
push 0x4585d8
push ebx
call fcn.0044b9b0
push dword [esi + 0x45cdd4]
push ebx
call fcn.0044b9b0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0044d0ee
add esp, 0x2c
jmp 0x44abca
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x45cdd4]
push dword [esi]
call fcn.004460f0
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.004490dd
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x44b339
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x4635e4]
push edi
jae 0x44b50e
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x463600]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x44b50e
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x44b3e4
test dl, 2
jne 0x44b3e4
test dl, 0x48
je 0x44b3ae
cmp byte [eax + 5], 0xa
je 0x44b3ae
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x44b3f7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x44b3df
mov dword [0x463288], ecx
jmp 0x44b515
cmp eax, 0x6d
jne 0x44b3eb
xor eax, eax
jmp 0x44b522
push eax
call fcn.0044c744
pop ecx
jmp 0x44b51f
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x44b509
test eax, eax
je 0x44b41e
cmp byte [ebx], 0xa
jne 0x44b41e
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x44b427
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x44b503
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x44b4f3
cmp al, 0xd
je 0x44b459
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x44b4e5
dec ecx
cmp dword [ebp - 8], ecx
jae 0x44b473
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x44b46e
add dword [ebp - 8], 2
jmp 0x44b4c7
mov dword [ebp - 8], eax
jmp 0x44b4e1
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x44b49b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x44b4e1
cmp dword [ebp - 0x10], 0
je 0x44b4e1
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x44b4bc
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x44b4c7
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x44b4e4
cmp ebx, dword [ebp + 0xc]
jne 0x44b4cc
cmp byte [ebp - 1], 0xa
jne 0x44b4cc
mov byte [ebx], 0xa
jmp 0x44b4e4
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0044a6d8
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x44b4e5
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x44b43d
jmp 0x44b503
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x44b503
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x44b522
and dword [0x463288], 0
mov dword [0x463284], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret