joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a400
Capabilities:
Link many functions at runtime

Disassembly:
push ecx
push ebp
push esi
push 0x20
mov ebp, ecx
call fcn.0049aac1
add esp, 4
test eax, eax
je 0x46a432
xor ecx, ecx
mov edx, eax
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], ecx
mov dword [edx + 0x18], ecx
mov dword [edx + 0x1c], ecx
mov esi, eax
jmp 0x46a434
xor esi, esi
mov eax, dword [esp + 0x10]
push eax
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi], eax
jne 0x46a45a
push esi
call fcn.0049ab38
add esp, 4
pop esi
xor eax, eax
pop ebp
pop ecx
ret 4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Load
push eax
call edi
mov dword [esi + 8], eax
mov ecx, dword [esi]
push str.Unload
push ecx
call edi
mov dword [esi + 0xc], eax
mov edx, dword [esi]
push str.Supports
push edx
call edi
mov dword [esi + 0x10], eax
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x46a540
test eax, eax
je 0x46a540
call eax
mov dword [esi + 4], eax
and eax, 0xffff
cmp eax, 0x220
jle 0x46a4c5
mov eax, dword [esi + 4]
and eax, 0xffff
push eax
push str.__Unsupported_version___This_plugin_requires_version__x.
call fcn.0048c8d0
add esp, 8
jmp 0x46a54d
test dword [esi + 4], 0x10000
je 0x46a4ea
mov edx, dword [esi]
push str.AmxLoad
push edx
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi]
push str.AmxUnload
push eax
call edi
mov dword [esi + 0x1c], eax
jmp 0x46a4f8
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
test dword [esi + 4], 0x20000
je 0x46a510
mov ecx, dword [esi]
push str.ProcessTick
push ecx
call edi
mov dword [esi + 0x14], eax
jmp 0x46a517
mov dword [esi + 0x14], 0
push ebp
call dword [esi + 8]
test al, al
jne 0x46a524
mov edx, dword [esi]
push edx
jmp 0x46a550
lea eax, [esp + 0xc]
push eax
lea ecx, [ebp + 0x4b0]
call fcn.0046a3b0
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret 4
push str.__Plugin_does_not_conform_to_architecture.
call fcn.0048c8d0
add esp, 4
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
call fcn.0049ab38
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 4

Function at 0x46a6c0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
xor al, al
xor ecx, ecx
test esi, esi
je 0x46a6e0
push edi
mov edi, dword [esp + 0xc]
mov dl, byte [ecx + edi]
and dl, 0xaa
xor al, dl
inc ecx
cmp ecx, esi
jne 0x46a6d2
pop edi
pop esi
ret

Function at 0x480a60
Capabilities:
Create thread

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push 0
push ecx
push 0x4809f0
push 0
push 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x480a9a
cmp eax, 0xffffffff
je 0x480a9a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ecx
ret
xor eax, eax
pop ecx
ret
Function at 0x480aa0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4aaed1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov eax, 0xf
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], ebx
mov dword [esp + 8], esi
mov byte [esi + 0x14], bl
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov dword [esp + 0x18], ebx
mov byte [esi + 0x30], bl
push 0x7330
mov byte [esp + 0x1c], 1
call fcn.0049aac1
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, ebx
mov byte [esp + 0x18], 2
je 0x480b0a
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, eax
call fcn.00468080
jmp 0x480b0c
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov byte [esi + 0x48], 1
mov ecx, dword [esp + 0x10]
xor edx, edx
lea eax, [esi + 0x4d]
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], edx
mov dword [eax + 0x20], edx
mov dword [eax + 0x24], edx
mov dword [esi + 0x75], ebx
mov dword [esi + 0x79], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x48e0f0
Capabilities:
Create process on windows

Disassembly:
fld dword [0x515d00]
sub esp, 0x120
fsub dword [esp + 0x124]
fst dword [0x515d00]
fcomp dword [0x4ac700]
fnstsw ax
test ah, 0x41
jp 0x48e184
mov ecx, dword [0x4f5fbc]
push str.port
mov dword [0x515d00], 0x43960000
call fcn.0048b5b0
push eax
lea eax, [esp + 4]
push 0x4b0da4
push eax
call fcn.00498ee0
mov ecx, dword [0x4f5fbc]
add esp, 0xc
push str.bind
call fcn.0048b4d0
lea ecx, [esp]
push ecx
lea edx, [esp + 0x24]
push 0x4ac3ac
push edx
call fcn.00498ee0
add esp, 0xc
push 0
push 0
lea eax, [esp + 0x28]
push eax
push str.announce.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
add esp, 0x120
ret 4
Function at 0x497b70
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [0x515d18]
test eax, eax
je 0x497c41
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov eax, ebp
push edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x497b90
mov ecx, dword [0x515d20]
sub eax, edx
lea edx, [eax + ecx + 2]
push edx
call fcn.00498e24
mov ecx, dword [0x515d20]
mov esi, dword [0x515d1c]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x515d20]
add esp, 4
mov ebx, eax
add eax, ecx
mov ecx, ebp
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x497bd7
sub ecx, esi
mov word [eax], cx
mov ecx, ebp
add eax, 2
lea esi, [ecx + 1]
jmp 0x497bf0
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x497bf0
sub ecx, esi
mov edx, ecx
shr ecx, 2
mov esi, ebp
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x497c10
push 0x10
sub ecx, esi
push 0x515d08
push 0
sub ecx, ebx
add ecx, eax
mov eax, dword [0x4e5970]
push ecx
push ebx
push eax
call dword [sym.imp.WSOCK32.dll_sendto]
push ebx
call fcn.00498e36
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x49b6c1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x49b6de
call fcn.0049f73b
mov dword [eax], 0x16
xor eax, eax
jmp 0x49b748
push esi
push 0x8c
push 1
call fcn.0049b74c
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x49b733
push esi
call fcn.0049ef0a
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x49b711
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x49b62c
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x49b747
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00498e36
test ebx, ebx
pop ecx
je 0x49b745
push ebx
call fcn.0049f74d
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x49c05f
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4ba3b8
call fcn.0049d244
push 8
call fcn.0049d212
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x515da8], esi
jne 0x49c093
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x515da4], esi
mov al, byte [ebp + 0x10]
mov byte [0x515da0], al
cmp dword [ebp + 0xc], edi
jne 0x49c0dd
cmp dword [0x5165cc], edi
je 0x49c0cd
mov eax, dword [0x5165c8]
sub eax, 4
mov dword [0x5165c8], eax
cmp eax, dword [0x5165cc]
jb 0x49c0cd
mov eax, dword [eax]
cmp eax, edi
je 0x49c0ae
call eax
jmp 0x49c0ae
push 0x4c4050
mov eax, 0x4c4040
call fcn.0049bfdd
pop ecx
push 0x4c405c
mov eax, 0x4c4054
call fcn.0049bfdd
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x49c10e
cmp dword [ebp + 0x10], edi
jne 0x49c11c
mov dword [0x515da8], esi
push dword [ebp + 8]
call fcn.0049bf9b
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x49c11b
push 8
call fcn.0049d15d
pop ecx
ret
call fcn.0049d27f
ret
Function at 0x49cd8a
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4e6324]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x49cdbb
xor eax, eax
jmp 0x49cf44
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x5164c0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x49cdf7
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.004a57c3
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x49ced2
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x49cf10
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x49ce5b
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x49ce4c
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x49ce2c
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x49ce9b
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x49cea4
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x49ce1d
jmp 0x49cea6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x49cf3f
cmp dword [ebp - 0x6c], edi
je 0x49cf10
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x49cf05
call fcn.0049f73b
mov dword [eax], 9
call fcn.0049f744
mov dword [eax], esi
jmp 0x49cf3a
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x49cefa
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x49cea6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x49cea6
push dword [ebp - 0x6c]
call fcn.0049f74d
pop ecx
jmp 0x49cf3a
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x49cf28
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x49cf28
xor eax, eax
jmp 0x49cf42
call fcn.0049f73b
mov dword [eax], 0x1c
call fcn.0049f744
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x49cf42
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.004a36dd
add ebp, 0x3a0
leave
ret
Function at 0x49fdfd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x49ffd1
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x5164c0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x49ffd1
test cl, 0x48
je 0x49fe68
cmp byte [eax + 5], 0xa
je 0x49fe68
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x49feba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x49fea2
call fcn.0049f73b
mov dword [eax], 9
call fcn.0049f744
mov dword [eax], esi
jmp 0x49feb2
cmp eax, 0x6d
je 0x49ffd1
push eax
call fcn.0049f74d
pop ecx
or eax, 0xffffffff
jmp 0x49ffd3
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x49ffcc
test eax, eax
je 0x49fee1
cmp byte [ebx], 0xa
jne 0x49fee1
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x49feea
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x49ffc6
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x49ffb6
cmp al, 0xd
je 0x49ff1c
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x49ffa8
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x49ff36
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x49ff31
add dword [ebp + 0x10], 2
jmp 0x49ff8a
mov dword [ebp + 0x10], eax
jmp 0x49ffa4
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
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 0x49ff5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x49ffa4
cmp dword [ebp - 0xc], 0
je 0x49ffa4
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x49ff7f
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x49ff8a
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x49ffa7
cmp ebx, dword [ebp + 0xc]
jne 0x49ff8f
cmp byte [ebp - 1], 0xa
jne 0x49ff8f
mov byte [ebx], 0xa
jmp 0x49ffa7
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004a0648
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x49ffa8
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x49ff00
jmp 0x49ffc6
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x49ffc6
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x49ffd3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a029b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4a02bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0049f74d
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4a02de
test byte [esp + 8], 2
je 0x4a02de
call fcn.0049f73b
mov dword [eax], 0xd
call fcn.0049f744
mov dword [eax], 5
jmp 0x4a02b7
xor eax, eax
ret

Function at 0x4a5139
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00498d40
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4a51d4
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x515d68]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4a51d4
cmp eax, 1
je 0x4a51f5
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4a51d4
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4a51a1
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4a51d0
xor eax, eax
inc eax
jmp 0x4a5214
cmp edi, eax
jae 0x4a51d8
xor eax, eax
jmp 0x4a5214
cmp eax, esi
jae 0x4a51df
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x515d68]
jmp 0x4a51f8
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a521c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4e6324]
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 + 0x4e64f8]
je 0x4a5251
inc eax
cmp eax, 0x13
jb 0x4a5242
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4e64f8]
jne 0x4a5377
mov eax, dword [0x515db4]
cmp eax, 1
je 0x4a534f
cmp eax, edx
jne 0x4a5281
cmp dword [0x4e5d5c], 1
je 0x4a534f
cmp ecx, 0xfc
je 0x4a5377
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 0x4a52b7
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004a0090
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0049fa30
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4a52eb
mov eax, edi
push eax
call fcn.0049fa30
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4bed8c
push edi
call fcn.0049b140
add esp, 0x10
push edi
call fcn.0049fa30
push dword [esi + 0x4e64fc]
mov ebx, eax
call fcn.0049fa30
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00498d40
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004a0090
push edi
push ebx
call fcn.004a00a0
push 0x4b5588
push ebx
call fcn.004a00a0
push dword [esi + 0x4e64fc]
push ebx
call fcn.004a00a0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004a8cd1
add esp, 0x2c
jmp 0x4a5377
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4e64fc]
push dword [esi]
call fcn.0049fa30
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.004a36dd
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4a5d19
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4a5d47
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4a5d4e
cmp ebx, dword [eax + 4]
jae 0x4a5d4e
xor eax, eax
jmp 0x4a5f3e
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4a5d5f
xor eax, eax
inc eax
jmp 0x4a5f3d
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4a5d75
cmp ecx, edx
jae 0x4a5eba
cmp dword [eax + 4], 0
je 0x4a5d7e
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4a5d66
cmp dword [ebp + 8], 0
je 0x4a5da0
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4a5eba
cmp eax, esi
jae 0x4a5eba
mov eax, dword [0x516138]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4a5dc5
cmp dword [esi*4 + 0x516140], edi
je 0x4a5ebe
inc esi
cmp esi, eax
jl 0x4a5db3
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4a5f3a
cmp dword [ebp - 8], 0x1000000
jne 0x4a5f3a
test byte [ebp - 0xc], 0xcc
je 0x4a5e43
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4a5f3a
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4a5f3a
cmp word [eax + 0x18], 0x10b
jne 0x4a5f3a
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4a5f3a
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4a5e43
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4a5e43
test byte [ecx + 0x27], 0x80
jne 0x4a5eba
push 1
push 0x516180
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4a5d57
mov ecx, dword [0x516138]
test ecx, ecx
mov edx, ecx
jle 0x4a5e77
lea eax, [ecx*4 + 0x51613c]
cmp dword [eax], edi
je 0x4a5e77
dec edx
sub eax, 4
test edx, edx
jg 0x4a5e6b
test edx, edx
jne 0x4a5ea8
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4a5e84
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4a5e9c
lea eax, [edx*4 + 0x516140]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4a5e8a
cmp ecx, 0x10
jge 0x4a5ea8
inc ecx
mov dword [0x516138], ecx
push 0
push 0x516180
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4a5d57
xor eax, eax
jmp 0x4a5f3d
test esi, esi
jle 0x4a5d57
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x516180
call ebx
test eax, eax
jne 0x4a5d57
cmp dword [esi*4 + 0x516140], edi
je 0x4a5f14
mov eax, dword [0x516138]
lea esi, [eax - 1]
test esi, esi
jl 0x4a5f02
cmp dword [esi*4 + 0x516140], edi
je 0x4a5efe
dec esi
jns 0x4a5ef2
test esi, esi
jge 0x4a5f12
cmp eax, 0x10
jge 0x4a5f0d
inc eax
mov dword [0x516138], eax
lea esi, [eax - 1]
jmp 0x4a5f14
je 0x4a5f2c
xor ecx, ecx
test esi, esi
jl 0x4a5f2c
lea eax, [ecx*4 + 0x516140]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4a5f1a
push 0
push 0x516180
call ebx
jmp 0x4a5d57
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a6ad9
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00498d40
mov eax, dword [0x4e6324]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.004a0648
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x4a6c0c
push 2
push esi
push dword [ebp + 8]
call fcn.004a0648
add esp, 0xc
cmp eax, ebx
je 0x4a6c0c
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4a6bac
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004a3930
push 0x8000
push dword [ebp + 8]
call fcn.004a8fd6
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x4a6b62
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0049cd8a
add esp, 0xc
cmp eax, 0xffffffff
je 0x4a6b82
sub edi, eax
test edi, edi
jg 0x4a6b5a
jmp 0x4a6b9a
call fcn.0049f744
cmp dword [eax], 5
jne 0x4a6b97
call fcn.0049f73b
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.004a8fd6
pop ecx
pop ecx
jmp 0x4a6bf4
jge 0x4a6bf4
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004a0648
push dword [ebp + 8]
call fcn.004a59ff
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x4a6bf4
call fcn.0049f73b
mov dword [eax], 0xd
call fcn.0049f744
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.004a0648
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4a6c0e
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.004a36dd
leave
ret
Function at 0x4a8cd1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x51620c], ebx
push esi
push edi
jne 0x4a8d51
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4a8d8c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x51620c], eax
je 0x4a8d8c
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x516210], eax
call esi
cmp dword [0x515d68], 2
mov dword [0x516214], eax
jne 0x4a8d51
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x51621c], eax
je 0x4a8d51
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x516218], eax
mov eax, dword [0x516218]
test eax, eax
je 0x4a8d96
call eax
test eax, eax
je 0x4a8d7d
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x51621c]
test eax, eax
je 0x4a8d7d
test byte [ebp - 8], 1
jne 0x4a8d96
cmp dword [0x515d74], 4
jb 0x4a8d90
or byte [ebp + 0x12], 0x20
jmp 0x4a8db5
xor eax, eax
jmp 0x4a8dc5
or byte [ebp + 0x12], 4
jmp 0x4a8db5
mov eax, dword [0x516210]
test eax, eax
je 0x4a8db5
call eax
mov ebx, eax
test ebx, ebx
je 0x4a8db5
mov eax, dword [0x516214]
test eax, eax
je 0x4a8db5
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x51620c]
pop edi
pop esi
pop ebx
leave
ret