joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4096e9
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.00405240
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x409784
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 [0x40f338]
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 0x409784
cmp eax, 1
je 0x4097a5
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 0x409784
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x409751
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x409780
xor eax, eax
inc eax
jmp 0x4097c4
cmp edi, eax
jae 0x409788
xor eax, eax
jmp 0x4097c4
cmp eax, esi
jae 0x40978f
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 [0x40f338]
jmp 0x4097a8
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 0x409e80
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40f528], ebx
push esi
push edi
jne 0x409f00
push 0x40cdd8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x409f3b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40cdcc
push edi
call esi
test eax, eax
mov dword [0x40f528], eax
je 0x409f3b
push 0x40cdbc
push edi
call esi
push 0x40cda8
push edi
mov dword [0x40f52c], eax
call esi
cmp dword [0x40f338], 2
mov dword [0x40f530], eax
jne 0x409f00
push 0x40cd8c
push edi
call esi
test eax, eax
mov dword [0x40f538], eax
je 0x409f00
push 0x40cd74
push edi
call esi
mov dword [0x40f534], eax
mov eax, dword [0x40f534]
test eax, eax
je 0x409f45
call eax
test eax, eax
je 0x409f2c
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40f538]
test eax, eax
je 0x409f2c
test byte [ebp - 8], 1
jne 0x409f45
cmp dword [0x40f344], 4
jb 0x409f3f
or byte [ebp + 0x12], 0x20
jmp 0x409f64
xor eax, eax
jmp 0x409f74
or byte [ebp + 0x12], 4
jmp 0x409f64
mov eax, dword [0x40f52c]
test eax, eax
je 0x409f64
call eax
mov ebx, eax
test ebx, ebx
je 0x409f64
mov eax, dword [0x40f530]
test eax, eax
je 0x409f64
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40f528]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a192
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 0x40a1c0
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 0x40a1c7
cmp ebx, dword [eax + 4]
jae 0x40a1c7
xor eax, eax
jmp 0x40a3b7
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40a1d8
xor eax, eax
inc eax
jmp 0x40a3b6
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40a1ee
cmp ecx, edx
jae 0x40a333
cmp dword [eax + 4], 0
je 0x40a1f7
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40a1df
cmp dword [ebp + 8], 0
je 0x40a219
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40a333
cmp eax, esi
jae 0x40a333
mov eax, dword [0x40f540]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40a23e
cmp dword [esi*4 + 0x40f548], edi
je 0x40a337
inc esi
cmp esi, eax
jl 0x40a22c
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40a3b3
cmp dword [ebp - 8], 0x1000000
jne 0x40a3b3
test byte [ebp - 0xc], 0xcc
je 0x40a2bc
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40a3b3
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40a3b3
cmp word [eax + 0x18], 0x10b
jne 0x40a3b3
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40a3b3
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40a2bc
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40a2bc
test byte [ecx + 0x27], 0x80
jne 0x40a333
push 1
push 0x40f588
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40a1d0
mov ecx, dword [0x40f540]
test ecx, ecx
mov edx, ecx
jle 0x40a2f0
lea eax, [ecx*4 + 0x40f544]
cmp dword [eax], edi
je 0x40a2f0
dec edx
sub eax, 4
test edx, edx
jg 0x40a2e4
test edx, edx
jne 0x40a321
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40a2fd
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40a315
lea eax, [edx*4 + 0x40f548]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40a303
cmp ecx, 0x10
jge 0x40a321
inc ecx
mov dword [0x40f540], ecx
push 0
push 0x40f588
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40a1d0
xor eax, eax
jmp 0x40a3b6
test esi, esi
jle 0x40a1d0
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40f588
call ebx
test eax, eax
jne 0x40a1d0
cmp dword [esi*4 + 0x40f548], edi
je 0x40a38d
mov eax, dword [0x40f540]
lea esi, [eax - 1]
test esi, esi
jl 0x40a37b
cmp dword [esi*4 + 0x40f548], edi
je 0x40a377
dec esi
jns 0x40a36b
test esi, esi
jge 0x40a38b
cmp eax, 0x10
jge 0x40a386
inc eax
mov dword [0x40f540], eax
lea esi, [eax - 1]
jmp 0x40a38d
je 0x40a3a5
xor ecx, ecx
test esi, esi
jl 0x40a3a5
lea eax, [ecx*4 + 0x40f548]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40a393
push 0
push 0x40f588
call ebx
jmp 0x40a1d0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x10001071
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x10001071
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x1000105a
jmp 0x10001071
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x10010e90
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Read .ini file
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp dword [ebp + 0xc], 1
jne 0x10011015
push esi
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
push edi
push str.Home___KnoxsBite
push 0
call esi
push str.KnoxsBite_Anti
push 0
mov edi, eax
call esi
test eax, eax
je 0x10010ed5
push 0x10002050
push 0x10002030
call fcn.100014e0
test edi, edi
je 0x1001100a
push 0x40
push 0x1000
push 1
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push str..KnoxsBite.ini
push 0
push str.AutoEnterServer
push str.GameClient
mov dword [0x1001cdc8], eax
call esi
push str..KnoxsBite.ini
push 0
push str.RemoveGameTransition
push str.GameClient
call esi
push str..KnoxsBite.ini
push 0
push str.FPSHook
push str.GameClient
mov edi, eax
call esi
cmp eax, 2
jne 0x10010f46
push str.FPSHook.KnoxsBite
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x10010f70
test eax, eax
jne 0x10010f57
push str.Normal.KnoxsBite
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x10010f70
cmp eax, 1
jne 0x10010f70
push 5
mov edx, 0x100189dc
mov ecx, 0x4701cb
call fcn.100025b0
add esp, 4
cmp edi, 1
jne 0x10010f89
push 2
mov edx, 0x10017cac
mov ecx, 0x8b6f26
call fcn.100025b0
add esp, 4
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthread]
push 0xc
push 0
push 0x1000b850
call esi
push 0xc
push 0
push 0x100042c0
call esi
add esp, 0x18
cmp byte [0x1001c96c], 0
jne 0x1001100a
push 0xc
push 0
push 0x1000b4e0
call esi
push 1
mov edx, 0x10017990
mov byte [0x1001c96c], 1
mov ecx, 0x77c99b
call fcn.100025b0
push 1
mov edx, 0x10017990
mov ecx, 0x77ca20
call fcn.100025b0
push 1
mov edx, 0x10017990
mov ecx, 0x77af7a
call fcn.100025b0
push 1
mov edx, 0x10017990
mov ecx, 0x46437f
call fcn.100025b0
add esp, 0x1c
pop edi
mov eax, 1
pop esi
pop ebp
ret 0xc
mov eax, 1
pop ebp
ret 0xc
Function at 0x10011ac0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x10011aec
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__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x10011b14
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x10011b1a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x10011b82
jg 0x10011b31
test esi, esi
je 0x10011b82
test ecx, ecx
jl 0x10011b7d
jg 0x10011b3b
test eax, eax
je 0x10011b7d
cmp edi, ecx
jg 0x10011b4f
jl 0x10011b45
cmp esi, eax
jae 0x10011b4f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x10011b85
mov ecx, dword [ebp + 8]
jmp 0x10011b8f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x10011ba9
jg 0x10011b8f
test esi, esi
je 0x10011ba9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10011ba9
push eax
push esi
push 1
push ecx
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 [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10011bc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
test eax, eax
jg 0x10011be4
jl 0x10011bd9
test ecx, ecx
jne 0x10011be4
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10011bfe
push eax
push ecx
push dword [ebp + 8]
mov ecx, ebx
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__]
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push esi
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x10011c4a
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 4], edx
mov eax, dword [eax]
test eax, eax
je 0x10011c50
mov edi, dword [ebp + 8]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp + 8], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x10011c50
lea eax, [ebx + 0x2c]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
mov esi, dword [ebp + 8]
je 0x10011cc6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10011c7c
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x10011cb4
nop dword [eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10011cc6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10011c90
test edi, edi
je 0x10011cc6
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10012020
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1001c0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10012050
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10013bb0
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10012080
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10012080
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10013bb0
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x10012158
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x100120a9
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100120b5
movsx eax, bl
jmp 0x100120ed
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
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 0x10012117
sub eax, 1
je 0x10012117
sub eax, 2
jne 0x10012158
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10013bb0
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10012135
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 0x10012158
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10013bb0
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10013bb0
mov esp, ebp
pop ebp
ret 4
Function at 0x100125d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1001c0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1001268c
cmp byte [esi + 0x3d], 0
je 0x1001268c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1001267a
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, 0
je 0x10012641
sub eax, 1
je 0x10012645
sub eax, 2
jne 0x1001267a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10013bb0
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10012663
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 0x1001267a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10013bb0
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10013bb0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.10013bb0
mov esp, ebp
pop ebp
ret
Function at 0x40ca80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40a015
lea edi, [esi - 0x9015]
push edi
or ebp, 0xffffffff
jmp 0x40caa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40caa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40ca98
mov eax, 1
add ebx, ebx
jne 0x40cabb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40cab0
jne 0x40cacc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40cab0
xor ecx, ecx
sub eax, 3
jb 0x40cae0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40cb52
mov ebp, eax
add ebx, ebx
jne 0x40caeb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40caf8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40cb1c
inc ecx
add ebx, ebx
jne 0x40cb08
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40cafd
jne 0x40cb19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40cafd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40cb3c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40cb2d
jmp 0x40ca9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40cb3c
add edi, ecx
jmp 0x40ca9e
pop esi
mov edi, esi
mov ecx, 0x169
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40cb5a
cmp byte [edi], 1
jne 0x40cb5a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x40cb5f
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40cbce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd31c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd3a8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40cb8c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd3ac]
or eax, eax
je 0x40cbc8
mov dword [ebx], eax
add ebx, 4
jmp 0x40cba9
call dword [esi + 0xd3b0]
popal
jmp section.UPX0
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x6eac57c7
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
mov ecx, 0x17303c8d
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219

Function at 0x1001f27
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [section..data]
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push 1
push esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0x1001963
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
push esi
push esi
push 1
push esi
call ebx
mov dword [0x1003040], eax
cmp eax, esi
jne 0x1001f72
push 1
call dword [sym.imp.msvcrt.dll_exit]
xor eax, eax
mov edi, 0x1003400
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push esi
push esi
stosd dword es:[edi], eax
push 1
push esi
stosd dword es:[edi], eax
call ebx
mov dword [0x1003410], eax
cmp eax, esi
jne 0x1001f9c
push dword [0x1003040]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001f6a
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
push dword [0x1003040]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
call esi
push dword [0x1003410]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4031f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0043bf80
mov eax, dword [0x464714]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x468358], 0
je 0x40329d
push 0x1000
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.0043ca10
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x1004]
push 0x1000
push 0x1000
push eax
call fcn.00401000
push dword [eax + 4]
push dword [eax]
call fcn.00440f54
or ecx, 0xffffffff
add esp, 0x20
test eax, eax
cmovs eax, ecx
mov byte [ebp + eax - 0x1004], 0xa
inc eax
cmp eax, 0x1000
jae 0x4032ab
push 0
lea ecx, [ebp - 0x1008]
mov byte [ebp + eax - 0x1004], 0
push ecx
push eax
lea eax, [ebp - 0x1004]
mov dword [ebp - 0x1008], 0
push eax
push dword [0x468358]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b9a5
mov esp, ebp
pop ebp
ret
call fcn.0043bad5
int3