joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a3c63
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ca3b0]
jne 0x4a3c6d
repz ret
jmp fcn.004a8dba

Function at 0x4a51b8
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
jne 0x4a51ea
call fcn.004a83c5
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.004a8366
add esp, 0x14
or eax, 0xffffffff
jmp 0x4a526b
push esi
call fcn.004ab8a4
push 0x214
push 1
call fcn.004ac60a
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x4a524e
call fcn.004aba8a
push dword [eax + 0x6c]
push esi
call fcn.004ab92c
mov eax, dword [ebp + 0x10]
pop ecx
pop ecx
push esi
push 4
push esi
push 0x4a5144
push dword [ebp + 0xc]
mov dword [esi + 0x54], edi
push ebx
mov dword [esi + 0x58], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
mov dword [esi + 4], edi
cmp edi, ebx
je 0x4a5245
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4a5268
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push esi
call fcn.004a3dff
pop ecx
cmp dword [ebp - 4], ebx
je 0x4a5263
push dword [ebp - 4]
call fcn.004a83eb
pop ecx
or eax, 0xffffffff
jmp 0x4a526a
mov eax, edi
pop esi
pop edi
pop ebx
leave
ret
Function at 0x4a56e4
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
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x10], edi
je 0x4a5721
cmp dword [ebp + 0x14], edi
je 0x4a5721
cmp ecx, edi
jne 0x4a5728
call fcn.004a83c5
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004a8366
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4a573c
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4a575d
cmp ebx, 0xffffffff
je 0x4a574c
push ebx
push edi
push ecx
call fcn.004a44c0
add esp, 0xc
cmp esi, edi
je 0x4a5709
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4a5709
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test dword [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4a577a
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4a5781
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4a5873
test dword [esi + 0xc], 0x10c
je 0x4a57d6
mov eax, dword [esi + 4]
test eax, eax
je 0x4a57d6
jl 0x4a58d4
mov edi, ebx
cmp ebx, eax
jb 0x4a57a7
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4a587b
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004adf23
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 0x4a586b
cmp ebx, dword [ebp - 0xc]
jb 0x4a5843
cmp dword [ebp - 0xc], 0
je 0x4a5800
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x4a57f5
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4a57fc
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4a580b
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x4a580b
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4a58a7
push eax
push dword [ebp - 8]
push esi
call fcn.004adef6
pop ecx
push eax
call fcn.004addf9
add esp, 0xc
test eax, eax
je 0x4a58e6
cmp eax, 0xffffffff
je 0x4a58d4
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4a586b
push esi
call fcn.004ad713
pop ecx
cmp eax, 0xffffffff
je 0x4a58d8
cmp dword [ebp - 4], 0
je 0x4a58a7
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 0x4a5789
mov eax, dword [ebp + 0x14]
jmp 0x4a5723
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4a5892
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004a44c0
add esp, 0xc
call fcn.004a83c5
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4a5719
cmp dword [ebp + 0xc], 0xffffffff
je 0x4a58bd
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004a44c0
add esp, 0xc
call fcn.004a83c5
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4a5719
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4a5723
or dword [esi + 0xc], 0x10
jmp 0x4a58d8
Function at 0x4a825f
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x4ca3b0]
xor eax, ebp
mov dword [ebp + 0x2a4], eax
and dword [ebp - 0x80], 0
push ebx
push 0x4c
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.004a44c0
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov dword [ebp + 0x88], eax
mov dword [ebp + 0x84], ecx
mov dword [ebp + 0x80], edx
mov dword [ebp + 0x7c], ebx
mov dword [ebp + 0x78], esi
mov dword [ebp + 0x74], edi
mov word [ebp + 0xa0], ss
mov word [ebp + 0x94], cs
mov word [ebp + 0x70], ds
mov word [ebp + 0x6c], es
mov word [ebp + 0x68], fs
mov word [ebp + 0x64], gs
pushfd
pop dword [ebp + 0x98]
mov eax, dword [ebp + 0x2ac]
lea ecx, [ebp + 0x2ac]
mov dword [ebp - 0x28], 0x10001
mov dword [ebp + 0x90], eax
mov dword [ebp + 0x9c], ecx
mov ecx, dword [ecx - 4]
mov dword [ebp + 0x8c], ecx
mov dword [ebp - 0x80], 0xc0000417
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x74], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x4a833e
test ebx, ebx
jne 0x4a833e
push 2
call fcn.004b0404
pop ecx
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
xor ecx, ebp
pop ebx
call fcn.004a3c63
add ebp, 0x2a8
leave
ret

Function at 0x4a8366
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push dword [0x51d138]
call fcn.004ab811
pop ecx
test eax, eax
je 0x4a837c
pop ebp
jmp eax
push 2
call fcn.004b0404
pop ecx
pop ebp
jmp fcn.004a825f
Function at 0x4aa8db
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 + 0x4ca948]
je 0x4aa8f6
inc edi
cmp edi, 0x17
jb 0x4aa8e7
cmp edi, 0x17
jae 0x4aaa76
push ebp
push 3
call fcn.004b0d20
pop ecx
cmp eax, 1
je 0x4aaa42
push 3
call fcn.004b0d20
pop ecx
test eax, eax
jne 0x4aa92a
cmp dword [0x4ca6a0], 1
je 0x4aaa42
cmp ebx, 0xfc
je 0x4aaa75
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x51d5f8
push ebp
call fcn.004aef80
add esp, 0xc
test eax, eax
je 0x4aa960
push esi
push esi
push esi
push esi
push esi
call fcn.004a825f
add esp, 0x14
push 0x104
mov esi, 0x51d611
push esi
push 0
mov byte [0x51d715], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4aa9a4
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004aef80
add esp, 0xc
test eax, eax
je 0x4aa9a4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004a825f
add esp, 0x14
push esi
call fcn.004aee60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4aa9e9
push esi
call fcn.004aee60
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x51d90c
push 0x4c03ec
sub ecx, eax
push ecx
push eax
call fcn.004b0c6d
add esp, 0x14
test eax, eax
je 0x4aa9e9
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004a825f
add esp, 0x14
jmp 0x4aa9eb
xor esi, esi
push 0x4c03e8
push ebx
push ebp
call fcn.004b0bfc
add esp, 0xc
test eax, eax
je 0x4aaa0b
push esi
push esi
push esi
push esi
push esi
call fcn.004a825f
add esp, 0x14
push dword [edi*8 + 0x4ca94c]
push ebx
push ebp
call fcn.004b0bfc
add esp, 0xc
test eax, eax
je 0x4aaa2d
push esi
push esi
push esi
push esi
push esi
call fcn.004a825f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004b0a95
add esp, 0xc
jmp 0x4aaa75
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4aaa75
cmp ebp, 0xffffffff
je 0x4aaa75
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4ca94c]
push dword [esi]
call fcn.004aee60
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 0x4abc3a
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
push edi
mov esi, str.KERNEL32.DLL
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x4abc53
push esi
call fcn.004aa583
pop ecx
mov edi, eax
test edi, edi
je 0x4abdbb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FlsAlloc
push edi
call esi
push str.FlsGetValue
push edi
mov dword [0x51d914], eax
call esi
push str.FlsSetValue
push edi
mov dword [0x51d918], eax
call esi
push str.FlsFree
push edi
mov dword [0x51d91c], eax
call esi
cmp dword [0x51d914], 0
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x51d920], eax
je 0x4abcbc
cmp dword [0x51d918], 0
je 0x4abcbc
cmp dword [0x51d91c], 0
je 0x4abcbc
test eax, eax
jne 0x4abce0
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x51d918], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x51d914], 0x4ab880
mov dword [0x51d91c], esi
mov dword [0x51d920], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4caa28], eax
cmp eax, 0xffffffff
je 0x4abdc0
push dword [0x51d918]
push eax
call esi
test eax, eax
je 0x4abdc0
call fcn.004aa88f
push dword [0x51d914]
call fcn.004ab799
push dword [0x51d918]
mov dword [0x51d914], eax
call fcn.004ab799
push dword [0x51d91c]
mov dword [0x51d918], eax
call fcn.004ab799
push dword [0x51d920]
mov dword [0x51d91c], eax
call fcn.004ab799
add esp, 0x10
mov dword [0x51d920], eax
call fcn.004a989f
test eax, eax
je 0x4abdbb
push fcn.004abaa2
push dword [0x51d914]
call fcn.004ab811
pop ecx
call eax
mov dword [0x4caa24], eax
cmp eax, 0xffffffff
je 0x4abdbb
push 0x214
push 1
call fcn.004ac60a
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4abdbb
push esi
push dword [0x4caa24]
push dword [0x51d91c]
call fcn.004ab811
pop ecx
call eax
test eax, eax
je 0x4abdbb
push 0
push esi
call fcn.004ab92c
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
xor eax, eax
inc eax
jmp 0x4abdc2
call fcn.004ab8ef
xor eax, eax
pop edi
pop esi
ret

Function at 0x4ac340
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x4ac351
xor eax, eax
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4ac34e
xor edx, edx
mov ecx, 0x10b
cmp word [eax + 0x18], cx
sete dl
mov eax, edx
ret

Function at 0x4ac370
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
push edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x4ac3aa
mov edi, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x4ac3a2
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x4ac3ac
inc edx
add eax, 0x28
cmp edx, esi
jb 0x4ac392
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x4ad713
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
cmp esi, edi
jne 0x4ad73c
call fcn.004a83c5
push edi
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
call fcn.004a8366
add esp, 0x14
jmp 0x4ad833
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x4ad833
test al, 0x40
jne 0x4ad833
test al, 2
je 0x4ad75e
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x4ad833
or eax, 1
mov dword [esi + 0xc], eax
test eax, 0x10c
jne 0x4ad774
push esi
call fcn.004b0362
pop ecx
jmp 0x4ad779
mov eax, dword [esi + 8]
mov dword [esi], eax
push dword [esi + 0x18]
push dword [esi + 8]
push esi
call fcn.004adef6
pop ecx
push eax
call fcn.004addf9
add esp, 0xc
mov dword [esi + 4], eax
cmp eax, edi
je 0x4ad823
cmp eax, 0xffffffff
je 0x4ad823
test byte [esi + 0xc], 0x82
jne 0x4ad7f8
push esi
call fcn.004adef6
pop ecx
cmp eax, 0xffffffff
je 0x4ad7e3
push esi
call fcn.004adef6
pop ecx
cmp eax, 0xfffffffe
je 0x4ad7e3
push esi
call fcn.004adef6
sar eax, 5
push esi
lea edi, [eax*4 + 0x51dc00]
call fcn.004adef6
and eax, 0x1f
pop ecx
shl eax, 6
add eax, dword [edi]
pop ecx
jmp 0x4ad7e8
mov eax, 0x4cb168
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x4ad7f8
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x4ad816
mov eax, dword [esi + 0xc]
test al, 8
je 0x4ad816
test eax, 0x400
jne 0x4ad816
mov dword [esi + 0x18], 0x1000
mov ecx, dword [esi]
dec dword [esi + 4]
movzx eax, byte [ecx]
inc ecx
mov dword [esi], ecx
jmp 0x4ad836
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
mov dword [esi + 4], edi
or eax, 0xffffffff
pop edi
pop esi
ret
Function at 0x4affb1
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x51da90]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebx, ebx
xor esi, esi
push 2
pop ebp
cmp eax, ebx
jne 0x4afffa
call edi
mov esi, eax
cmp esi, ebx
je 0x4affe1
mov dword [0x51da90], 1
jmp 0x4b0003
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4afff5
mov eax, ebp
mov dword [0x51da90], eax
jmp 0x4afffa
mov eax, dword [0x51da90]
cmp eax, 1
jne 0x4b0087
cmp esi, ebx
jne 0x4b0016
call edi
mov esi, eax
cmp esi, ebx
jne 0x4b0016
xor eax, eax
jmp 0x4b00df
mov eax, esi
cmp word [esi], bx
je 0x4b002b
add eax, ebp
cmp word [eax], bx
jne 0x4b001d
add eax, ebp
cmp word [eax], bx
jne 0x4b001d
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, esi
push ebx
sar eax, 1
inc eax
push eax
push esi
push ebx
push ebx
mov dword [esp + 0x34], eax
call edi
mov ebp, eax
cmp ebp, ebx
je 0x4b007c
push ebp
call fcn.004ac5ca
pop ecx
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x4b007c
push ebx
push ebx
push ebp
push eax
push dword [esp + 0x24]
push esi
push ebx
push ebx
call edi
test eax, eax
jne 0x4b0078
push dword [esp + 0x10]
call fcn.004a3dff
pop ecx
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x4b00df
cmp eax, ebp
je 0x4b008f
cmp eax, ebx
jne 0x4b000f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
je 0x4b000f
cmp byte [esi], bl
je 0x4b00ad
inc eax
cmp byte [eax], bl
jne 0x4b00a3
inc eax
cmp byte [eax], bl
jne 0x4b00a3
sub eax, esi
inc eax
mov ebp, eax
push ebp
call fcn.004ac5ca
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x4b00cb
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x4b000f
push ebp
push esi
push edi
call fcn.004a4540
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x4b0a95
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004ab808
and dword [ebp - 4], 0
cmp dword [0x51dabc], 0
mov ebx, eax
jne 0x4b0b44
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4b0bf5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4b0bf5
push eax
call fcn.004ab799
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x51dabc], eax
call esi
push eax
call fcn.004ab799
mov dword [esp], 0x4c0680
push edi
mov dword [0x51dac0], eax
call esi
push eax
call fcn.004ab799
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x51dac4], eax
call esi
push eax
call fcn.004ab799
pop ecx
mov dword [0x51dacc], eax
test eax, eax
je 0x4b0b44
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004ab799
pop ecx
mov dword [0x51dac8], eax
mov eax, dword [0x51dac8]
cmp eax, ebx
je 0x4b0b9c
cmp dword [0x51dacc], ebx
je 0x4b0b9c
push eax
call fcn.004ab811
push dword [0x51dacc]
mov esi, eax
call fcn.004ab811
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4b0b9c
test edi, edi
je 0x4b0b9c
call esi
test eax, eax
je 0x4b0b93
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4b0b93
test byte [ebp - 0xc], 1
jne 0x4b0b9c
or dword [ebp + 0x10], 0x200000
jmp 0x4b0bd5
mov eax, dword [0x51dac0]
cmp eax, ebx
je 0x4b0bd5
push eax
call fcn.004ab811
pop ecx
test eax, eax
je 0x4b0bd5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4b0bd5
mov eax, dword [0x51dac4]
cmp eax, ebx
je 0x4b0bd5
push eax
call fcn.004ab811
pop ecx
test eax, eax
je 0x4b0bd5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x51dabc]
call fcn.004ab811
pop ecx
test eax, eax
je 0x4b0bf5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4b0bf7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b3287
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
push 1
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.004b01c6
mov dword [ebp - 0x18], eax
and eax, edx
add esp, 0x10
mov dword [ebp - 0x14], edx
cmp eax, 0xffffffff
je 0x4b330d
push 2
push ebx
push ebx
push dword [ebp + 8]
call fcn.004b01c6
mov ecx, eax
and ecx, edx
add esp, 0x10
cmp ecx, 0xffffffff
je 0x4b330d
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
sub esi, eax
sbb edi, edx
js 0x4b33a2
jg 0x4b32e6
cmp esi, ebx
jbe 0x4b33a2
mov ebx, 0x1000
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4b3319
call fcn.004a83c5
mov dword [eax], 0xc
call fcn.004a83c5
mov eax, dword [eax]
pop edi
pop esi
pop ebx
leave
ret
push 0x8000
push dword [ebp + 8]
call fcn.004b343b
pop ecx
pop ecx
mov dword [ebp - 8], eax
test edi, edi
jl 0x4b3339
jg 0x4b3335
cmp esi, ebx
jb 0x4b3339
mov eax, ebx
jmp 0x4b333b
mov eax, esi
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004ae552
add esp, 0xc
cmp eax, 0xffffffff
je 0x4b3385
cdq
sub esi, eax
sbb edi, edx
js 0x4b335c
jg 0x4b332b
test esi, esi
ja 0x4b332b
mov esi, dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004b343b
pop ecx
pop ecx
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
jmp 0x4b340b
call fcn.004a83d8
cmp dword [eax], 5
jne 0x4b339a
call fcn.004a83c5
mov dword [eax], 0xd
or esi, 0xffffffff
mov dword [ebp - 0xc], esi
jmp 0x4b335f
cmp edi, ebx
jg 0x4b3417
jl 0x4b33ac
cmp esi, ebx
jae 0x4b3417
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004b01c6
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4b330d
push dword [ebp + 8]
call fcn.004a6870
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
cdq
mov dword [ebp - 0x10], eax
and eax, edx
mov dword [ebp - 0xc], edx
cmp eax, 0xffffffff
jne 0x4b3417
call fcn.004a83c5
mov dword [eax], 0xd
call fcn.004a83d8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov esi, dword [ebp - 0x10]
and esi, dword [ebp - 0xc]
cmp esi, 0xffffffff
je 0x4b330d
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.004b01c6
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4b330d
xor eax, eax
jmp 0x4b3314
Function at 0x17f9a
Capabilities:
Find process by pid

Disassembly:
lea esp, [esp + 0xc]
jmp 0x182a5

Function at 0x1854b
Capabilities:
Print debug messages

Disassembly:
movzx dx, cl
mov ecx, dword [ebp - 0x14]
not dh
setno dl
jmp loc.000123dd
mov dword [esp + 0x30], eax
pushfd
push 0xfd649a15
mov dword [esp + 0x34], str.DriverStart___x_DriverSize___d
push 0xb7d63023
pushfd
lea esp, [esp + 0x3c]
call sub.ntoskrnl.exe_DbgPrint
test cl, bl
test cx, 0x260b
bt dx, dx
add esp, 0xc
call fcn.00018fbe
jmp 0x163fa

Function at 0x1a28d
Capabilities:
Attach user process memory

Disassembly:
push 0x9b5ac410
pushfd
mov dword [ebp - 4], 0xffffffff
mov dword [esp], edx
mov byte [esp], dl
lea esp, [esp + 8]
jmp 0x11378
lea esp, [esp + 0x24]
je 0x185ac
stc
clc
cmp dword [ebp + 0x10], 0
call fcn.00018de1
jmp 0x1741c
pushfd
cmp dword [ebp + 0xc], 0
mov byte [esp], al
pushal
jmp 0x177db
stc
mov dword [ebp - 0x40], 0xc0000001
add esp, 0x34
jl 0x19793
cmc
pushal
cmp dword [ebp + 0xc], 0
call fcn.00017896
Function at 0x40e061
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42e520
cmp edx, dword [eax]
je 0x40e083
add eax, 8
inc ecx
cmp eax, 0x42e5b0
jl 0x40e074
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42e520]
jne 0x40e1b1
mov eax, dword [0x431730]
cmp eax, 1
je 0x40e18b
test eax, eax
jne 0x40e0b4
cmp dword [0x42e0f4], 1
je 0x40e18b
cmp edx, 0xfc
je 0x40e1b1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40e0eb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040ee40
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040ef30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40e12e
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040ef30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x426c80
push edi
call fcn.00410b20
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040ee40
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040ee50
lea eax, [ebp - 0xa0]
push 0x426c60
push eax
call fcn.0040ee50
push dword [esi + 0x42e524]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040ee50
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00410a90
add esp, 0x2c
pop edi
jmp 0x40e1b1
lea eax, [ebp + 8]
lea esi, [esi + 0x42e524]
push 0
push eax
push dword [esi]
call fcn.0040ef30
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
Function at 0x416470
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040b580
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41653b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41653b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4164ee
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4164f9
or bh, 8
and edi, 0x8000000
je 0x416514
mov eax, dword [0x432ebc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41653b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret