joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452160
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45bc04]
cmp dword [eax + 0x30], 0
je 0x45220a
cmp dword [ebx + 0x94], 0
jne 0x452204
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4520f0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x452204
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4521ca
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x452204
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413a6c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4521d9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x452ce8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x452d1d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404308
jmp 0x452d2a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040426c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x453d38
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x453d79
mov eax, esi
call fcn.0043a320
test al, al
je 0x453d79
mov eax, dword [ebx + 0x84]
call fcn.0043a01c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x453d79
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043a01c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x10008e6e
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x10008ee2
cmp dword [ebp + 0xc], 0
je 0x10008ee2
cmp dword [ebp + 0x10], 0
je 0x10008ee2
push esi
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
lea eax, [ebp - 8]
push eax
push 0x40
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov esi, eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, esi
pop esi
jmp 0x10008ee4
xor eax, eax
pop ebx
leave
ret

Function at 0x10008ee7
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10008f09
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 4]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
leave
ret

Function at 0x10008f21
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp + 0xc]
mov dword [edi + 1], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
leave
ret
Function at 0x10009322
Capabilities:
Accept command line arguments

Disassembly:
push 0x2c
mov eax, 0x10062f7e
call fcn.1006174f
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2c], ebx
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ecx, eax
mov edi, ecx
mov dword [ebp - 0x30], ecx
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10009348
mov esi, dword [ebp + 0x1c]
lea eax, [ebp + 0xc]
sub edi, edx
cmp dword [ebp + 0x20], 0x10
push esi
cmovae eax, dword [ebp + 0xc]
push eax
push 0
push edi
push ecx
mov dword [ebp - 0x2c], edi
call fcn.1000909d
add esp, 0x14
lea ecx, [ebp - 0x30]
inc esi
add eax, esi
push edi
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.100095ef
mov edx, dword [eax]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000939a
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.100092d9
cmp dword [ebp - 0x14], 0x10
lea esi, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae esi, dword [ebp - 0x28]
mov byte [ebp - 4], 1
cmp eax, 1
jb 0x100093f8
push eax
push 0x20
lea edi, [eax + esi]
push esi
jmp 0x100093ea
movzx eax, byte [ecx]
cmp al, 0x20
jne 0x100093d8
xor eax, eax
jmp 0x100093dd
sbb eax, eax
or eax, 1
test eax, eax
je 0x1000945d
inc ecx
mov eax, edi
sub eax, ecx
push eax
push 0x20
push ecx
call sub.VCRUNTIME140.dll_memchr
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0x100093cd
or ecx, 0xffffffff
push ecx
push 0
push ebx
lea ecx, [ebp - 0x28]
call fcn.100095c3
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1000943e
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], ecx
cmp eax, 0x1000
jb 0x10009435
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.10008886
mov eax, dword [ebp - 0x34]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
push eax
push ecx
call fcn.100611ab
pop ecx
pop ecx
and dword [ebp - 0x18], 0
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.10008953
mov eax, ebx
call fcn.100616fe
ret
sub ecx, esi
jmp 0x100093fb

Function at 0x1000aff5
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
xor eax, eax
push esi
mov esi, ecx
mov dword [esi], eax
test edx, edx
je 0x1000b021
mov eax, dword [ebp + 8]
lea ecx, [esi + 8]
push ecx
push 0x40
push edx
push eax
mov dword [esi + 4], edx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne al
mov byte [esi + 0xc], al
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x1000d590
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1008c45c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x1000d5e8
cmp byte [esi + 0x3d], bl
je 0x1000d5e8
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1000d622
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, ebx
je 0x1000d5f9
sub eax, 1
je 0x1000d5fc
dec eax
sub eax, 1
jne 0x1000d622
mov byte [esi + 0x3d], bl
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100616dc
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1000d61a
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1000d622
cmp byte [esi + 0x3d], bl
sete al
jmp 0x1000d5ea
xor al, al
jmp 0x1000d5ea
Function at 0x1000ddd1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1008c45c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x1000ddf7
xor eax, eax
jmp 0x1000deb4
mov eax, dword [esi + 0x20]
cmp dword [eax], 0
je 0x1000de19
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, dword [eax]
cmp dword [eax], edx
jae 0x1000de19
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
mov byte [eax], bl
mov eax, ebx
jmp 0x1000deb4
cmp dword [esi + 0x4c], 0
je 0x1000deb2
call fcn.1000d9d0
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x1000de43
push dword [esi + 0x4c]
push eax
call fcn.1000c838
test al, al
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x1000deb2
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x1000de80
sub eax, 1
je 0x1000de80
dec eax
sub eax, 1
jne 0x1000deb2
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x1000de35
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x30], eax
je 0x1000dea4
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x30], eax
jne 0x1000deb2
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x34], eax
mov eax, ebx
jne 0x1000deb4
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100616dc
leave
ret 4
Function at 0x1000e33e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
jg 0x1000e363
jl 0x1000e35a
test edi, edi
jne 0x1000e363
xor eax, eax
xor edx, edx
jmp 0x1000e431
cmp dword [esi + 0x38], 0
je 0x1000e379
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
jmp 0x1000e431
mov eax, dword [esi + 0x1c]
mov edx, edi
mov dword [ebp + 0x10], edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1000e3be
mov eax, dword [esi + 0x2c]
cmp dword [eax], 0
jbe 0x1000e3be
cmp dword [eax], edi
mov esi, edi
cmovb esi, dword [eax]
push esi
push ecx
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 4]
mov edx, edi
add dword [ebp + 8], esi
sub edx, esi
add esp, 0xc
mov dword [ebp + 0x10], edx
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, ecx
jmp 0x1000e3c4
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
cmp dword [esi + 0x4c], 0
je 0x1000e428
mov ecx, esi
call fcn.1000d9d0
mov ecx, dword [ebp + 0x10]
mov edx, ecx
mov dword [ebp - 4], edx
jmp 0x1000e404
push dword [esi + 0x4c]
push eax
push 1
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, dword [ebp + 0x10]
add esp, 0x10
add dword [ebp + 8], eax
sub ecx, eax
mov dword [ebp + 0x10], ecx
mov edx, ecx
mov dword [ebp - 4], edx
cmp eax, 0xfff
jne 0x1000e438
mov eax, 0xfff
cmp ecx, eax
ja 0x1000e3db
test edx, edx
je 0x1000e428
push dword [esi + 0x4c]
push ecx
push 1
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, dword [ebp - 4]
add esp, 0x10
sub edx, eax
sub edi, edx
sbb ebx, 0
mov eax, edi
mov edx, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc
sub edi, ecx
jmp 0x1000e42a
Function at 0x1000e43c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x1000e45f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
jmp 0x1000e50d
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x1000e480
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x1000e482
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x1000e501
jg 0x1000e495
test esi, esi
je 0x1000e501
test ecx, ecx
jl 0x1000e4e3
jg 0x1000e49f
test eax, eax
je 0x1000e4e3
cmp edi, ecx
jg 0x1000e4b1
jl 0x1000e4a9
cmp esi, eax
jae 0x1000e4b1
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
sbb edi, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
mov eax, dword [ebp + 8]
add eax, ecx
test edi, edi
jl 0x1000e501
jg 0x1000e4e6
test esi, esi
je 0x1000e501
jmp 0x1000e4e6
mov eax, dword [ebp + 8]
cmp dword [ebx + 0x4c], 0
je 0x1000e501
push dword [ebx + 0x4c]
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1001f328
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x40
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
leave
ret
Function at 0x10020f28
Capabilities:
Accept command line arguments

Disassembly:
push 0x138
mov eax, 0x10066553
call fcn.1006174f
lea ecx, [ebp - 0x13c]
call fcn.10008021
xor ebx, ebx
lea ecx, [ebp - 0x13c]
push 0xdc
mov dword [ebp - 4], ebx
call fcn.1001f3de
push 0x8c
lea ecx, [ebp - 0x13c]
call fcn.1001f3de
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edx, eax
mov dword [ebp - 0x28], ebx
mov ecx, edx
mov dword [ebp - 0x18], ebx
push 0xf
pop edi
mov dword [ebp - 0x14], edi
mov byte [ebp - 0x28], bl
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10020f83
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.100092d9
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x13c]
push esi
mov byte [ebp - 4], 1
call fcn.10020424
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x13c]
push eax
call fcn.10008235
mov ecx, dword [0x1016a6f0]
lea eax, [ebp - 0x13c]
push eax
call fcn.1004b468
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x140]
push eax
push str._CommandLine__
call fcn.100203f5
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
cmp eax, 0x10
jb 0x10021040
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], ecx
cmp eax, 0x1000
jb 0x10021037
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.10008886
mov eax, dword [ebp - 0x144]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x140]
push eax
push ecx
call fcn.100611ab
pop ecx
pop ecx
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
mov byte [ebp - 0x28], bl
call fcn.1000803c
call fcn.100616fe
ret
add ecx, 0x14
jmp 0x10020f28
Function at 0x1002193f
Capabilities:
Accept command line arguments

Disassembly:
push 0x138
mov eax, 0x10066553
call fcn.1006174f
lea ecx, [ebp - 0x13c]
call fcn.10008021
xor ebx, ebx
lea ecx, [ebp - 0x13c]
push 0xdc
mov dword [ebp - 4], ebx
call fcn.1001f3de
push 0x8c
lea ecx, [ebp - 0x13c]
call fcn.1001f3de
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edx, eax
mov dword [ebp - 0x28], ebx
mov ecx, edx
mov dword [ebp - 0x18], ebx
push 0xf
pop edi
mov dword [ebp - 0x14], edi
mov byte [ebp - 0x28], bl
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10020f83
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.100092d9
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x13c]
push esi
mov byte [ebp - 4], 1
call fcn.10020424
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x13c]
push eax
call fcn.10008235
mov ecx, dword [0x1016a6f0]
lea eax, [ebp - 0x13c]
push eax
call fcn.1004b468
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x140]
push eax
push str._CommandLine__
call fcn.100203f5
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
cmp eax, 0x10
jb 0x10021040
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], ecx
cmp eax, 0x1000
jb 0x10021037
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.10008886
mov eax, dword [ebp - 0x144]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x140]
push eax
push ecx
call fcn.100611ab
pop ecx
pop ecx
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
mov byte [ebp - 0x28], bl
call fcn.1000803c
call fcn.100616fe
ret
add ecx, 0x14
jmp 0x10020f28
Function at 0x10036839
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1008c45c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push edi
push 0x10072fdc
push eax
mov dword [ebp - 0x24], ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov edi, eax
mov dword [ebp - 0x20], edi
pop ecx
pop ecx
test edi, edi
jne 0x1003688b
push eax
mov dword [ebx], eax
mov ecx, ebx
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], 0xf
push 0x10072e54
mov byte [ebx], al
call fcn.100092d9
jmp 0x10036936
push esi
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push 2
push 0
push edi
call esi
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push 0
push 0
push dword [ebp - 0x20]
mov edi, eax
call esi
add esp, 0x1c
mov dword [ebp - 8], 0xf
xor esi, esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0xc], esi
push esi
push edi
call fcn.10033587
push dword [ebp - 0x20]
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
push edi
cmovae eax, dword [ebp - 0x1c]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push dword [ebp - 0x20]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
mov dword [ebx], esi
lea eax, [ebp - 0x1c]
mov dword [ebx + 0x10], esi
mov ecx, ebx
mov dword [ebx + 0x14], esi
push eax
call fcn.1001b5b5
mov eax, dword [ebp - 8]
pop esi
cmp eax, 0x10
jb 0x10036936
mov ecx, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
cmp eax, 0x1000
jb 0x1003692d
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.10008886
mov eax, dword [ebp - 0x20]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x24]
push eax
push ecx
call fcn.100611ab
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
xor ecx, ebp
pop ebx
call fcn.100616dc
leave
ret
Function at 0x10047bfa
Capabilities:
Accept command line arguments

Disassembly:
push 0x3c
mov eax, 0x1006beb0
call fcn.1006174f
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, eax
mov esi, edi
lea eax, [esi + 1]
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x10047c15
push 0xc
push str.80.66.82.147
sub esi, eax
push 0
push esi
push edi
call fcn.1000909d
add esp, 0x14
cmp eax, 0xffffffff
je 0x10047c56
push 4
push str.7777
push 0
push esi
push edi
call fcn.1000909d
add esp, 0x14
cmp eax, 0xffffffff
je 0x10047c56
push 1
call fcn.10048721
pop ecx
mov ecx, dword [0x1016a6f0]
lea eax, [ebp - 0x3c]
push 0
push eax
lea eax, [ebp - 0x48]
mov byte [ebp - 0x3c], 0
lea ecx, [ecx + 0xc]
push eax
call fcn.10047a57
lea ecx, [ebp - 0x44]
call fcn.1000bcc1
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x3c]
push eax
call fcn.10047a54
add esp, 4
test al, al
je 0x10047c9b
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], vtable.std::_Func_impl_no_alloc_class__lambda_555cb6cdd02536a80519cda405a57150___void___.0
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
mov ecx, 0x1008bf1c
call fcn.1000b79f
push 0
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [eax + 0xc]
push ecx
mov ecx, eax
call fcn.1000b52a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.1000bfaa
push str._ViceCityServer_:_call_install
push str.Debug
call fcn.100494b8
pop ecx
pop ecx
mov eax, ebx
call fcn.100616fe
ret

Function at 0x1004a2f3
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp + 0xc]
mov dword [edi], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
leave
ret

Function at 0x10059c15
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
push esi
movzx eax, ax
mov edx, ecx
push edi
mov edi, eax
mov dword [ebp - 8], eax
shr edi, 8
mov ebx, ecx
cmp dword [ebp + 0x10], ecx
jbe 0x10059c74
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + ebx*2]
mov esi, eax
movzx eax, al
shr esi, 8
add esi, edx
cmp edi, eax
jb 0x10059c74
jne 0x10059c6c
cmp edx, esi
jge 0x10059c6c
mov eax, dword [ebp + 8]
movzx eax, al
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
movzx eax, byte [edx + eax]
cmp ax, word [ebp - 4]
je 0x10059c98
inc edx
cmp edx, esi
jl 0x10059c5a
inc ebx
mov edx, esi
cmp ebx, dword [ebp + 0x10]
jb 0x10059c36
mov bl, 1
cmp dword [ebp + 0x1c], ecx
jbe 0x10059cab
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp - 8]
movzx eax, byte [ecx + esi]
test al, al
jns 0x10059c9c
inc ecx
and eax, 0x7f
shl eax, 8
movzx edx, byte [ecx + esi]
or edx, eax
jmp 0x10059c9e
xor al, al
jmp 0x10059cad
mov edx, eax
sub edi, edx
js 0x10059cab
xor bl, 1
inc ecx
cmp ecx, dword [ebp + 0x1c]
jb 0x10059c81
mov al, bl
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1005ac29
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
imul esi, dword [ebp + 8], 0x2c
push edi
add esi, dword [0x102228d0]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp + 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1005ac6b
push 0xa
pop eax
jmp 0x1005ace7
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x1005ac90
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x1005aca9
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x1005aca9
test byte [esi + 0x14], 1
lea eax, [esi + 0xc]
je 0x1005ac9d
push 7
jmp 0x1005ac9f
push 5
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, byte [esi + 0x14]
and bl, 1
mov cl, bl
and al, 0xfd
add cl, cl
shl bl, 2
or cl, al
and cl, 0xfb
or cl, bl
xor eax, eax
mov byte [esi + 0x14], cl
pop ebx
pop edi
pop esi
leave
ret