joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a56b4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, edx
xor eax, eax
push ebp
push 0x4a57fc
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4a57d7
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0xc]
mov eax, dword [0x4ae1b4]
mov eax, dword [eax]
call fcn.004a10cc
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.0041239c
push dword [ebp - 8]
push 0x4a5818
lea edx, [ebp - 0x14]
mov eax, dword [0x4ae1b4]
mov eax, dword [eax]
call fcn.004a10cc
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.004123d8
push dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00407648
mov eax, dword [ebp - 4]
call fcn.0041207c
test al, al
je 0x4a5761
push 1
push 0x4a581c
push 0x4a581c
mov eax, dword [ebp - 4]
call fcn.00407134
push eax
push 0x4a5820
mov eax, ebx
call fcn.00479ce0
push eax
call sub.shell32.dll_ShellExecuteW
jmp 0x4a57cd
lea edx, [ebp - 0x18]
mov eax, dword [0x4ae1b4]
mov eax, dword [eax]
call fcn.004a10cc
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 4]
call fcn.0041239c
mov eax, dword [ebp - 4]
test eax, eax
je 0x4a5798
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4a5798
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406a50
test eax, eax
je 0x4a57a1
sub eax, 4
mov eax, dword [eax]
cmp eax, 3
jne 0x4a57cd
push 1
push 0x4a581c
push 0x4a581c
mov eax, dword [ebp - 4]
call fcn.00407134
push eax
push 0x4a5820
mov eax, ebx
call fcn.00479ce0
push eax
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a57e1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5803
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004070a0
ret

Function at 0x42e001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x290f395f
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
mov ecx, 0x2efb4987
nop
nop
nop
nop
nop
test eax, eax
je 0x42e084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x65997d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x662168
cmp edx, dword [eax]
je 0x65999f
add eax, 8
inc ecx
cmp eax, 0x6621f8
jl 0x659990
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x662168]
jne 0x659acd
mov eax, dword [0xa67a90]
cmp eax, 1
je 0x659aa7
test eax, eax
jne 0x6599d0
cmp dword [0x662094], 1
je 0x659aa7
cmp edx, 0xfc
je 0x659acd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x659a07
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0065a360
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0065a7f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x659a4a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0065a7f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65ee34
push edi
call fcn.0065c6c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0065a360
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0065a370
lea eax, [ebp - 0xa0]
push 0x65ee14
push eax
call fcn.0065a370
push dword [esi + 0x66216c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0065a370
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0065c634
add esp, 0x2c
pop edi
jmp 0x659acd
lea eax, [ebp + 8]
lea esi, [esi + 0x66216c]
push 0
push eax
push dword [esi]
call fcn.0065a7f0
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 0x102aa058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x102aa1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x102aa07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x102aa06a
add dl, dl
jne 0x102aa089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x102aa0dc
xor eax, eax
add dl, dl
jne 0x102aa096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x102aa17d
add dl, dl
jne 0x102aa0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x102aa0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x102aa0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x102aa0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x102aa0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x102aa075
mov eax, 1
add dl, dl
jne 0x102aa0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x102aa0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x102aa0e1
sub eax, ebx
mov ebx, 1
jne 0x102aa128
mov ecx, 1
add dl, dl
jne 0x102aa10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x102aa119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x102aa105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x102aa075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x102aa13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x102aa14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x102aa136
cmp eax, 0x7d00
jae 0x102aa16d
cmp eax, 0x500
jb 0x102aa168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x102aa075
cmp eax, 0x7f
ja 0x102aa170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x102aa075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x102aa19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x102aa075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4fe000
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa9000]
push edi
jmp 0x4fe01a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4fe021
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fe010
mov eax, 1
add ebx, ebx
jne 0x4fe033
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4fe044
jne 0x4fe063
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fe063
dec eax
add ebx, ebx
jne 0x4fe050
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4fe028
add ebx, ebx
jne 0x4fe05f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4fe0b5
xor ecx, ecx
sub eax, 3
jb 0x4fe07b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4fe0ea
sar eax, 1
mov ebp, eax
jmp 0x4fe086
add ebx, ebx
jne 0x4fe086
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fe054
inc ecx
add ebx, ebx
jne 0x4fe094
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fe054
add ebx, ebx
jne 0x4fe0a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4fe096
jne 0x4fe0b2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4fe096
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4fe0d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4fe0c6
jmp 0x4fe016
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4fe0d4
add edi, ecx
jmp 0x4fe016
pop esi
mov edi, esi
mov ecx, 0x3eef
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4fe0f2
cmp byte [edi], 0x11
jne 0x4fe0f2
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 al, bl
loop 0x4fe0f7
lea edi, [esi + 0xf7000]
mov eax, dword [edi]
or eax, eax
je 0x4fe16f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x123fb0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12412c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4fe124
mov ecx, edi
jns 0x4fe153
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x124130]
or eax, eax
je 0x4fe169
mov dword [ebx], eax
add ebx, 4
jmp 0x4fe141
call dword [esi + 0x124140]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4fe1a0
cmp al, 0xef
ja 0x4fe193
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4fe175
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4fe182
mov ebp, dword [esi + 0x124134]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4fe1d4
sub esp, 0xffffff80
jmp 0x426bf7
Function at 0x1000de70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [0x1008f480]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0x62a4e66e
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
sub eax, 0xb6e04291
je 0x1000dee2
jmp 0x1000deaa
mov eax, dword [ebp - 0x20]
sub eax, 0x62a4e66e
je 0x1000dec2
jmp 0x1000debd
jmp 0x1000df25
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
push eax
mov edx, esp
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [eax], ecx
mov dword [ebp - 0x14], 0xb6e04291
jmp 0x1000df25
mov edx, dword [ebp - 0x10]
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
mov ecx, dword [ebp - 0xc]
mov edi, dword [edx]
not byte [edi]
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
add byte [edi], 0x63
sub byte [edi], 0x27
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
imul byte [edi]
inc edi
loop 0x1000def4
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10029cb0
lea esp, [ebp - 4]
pop edi
pop ebp
ret
jmp 0x1000de94
Function at 0x1002ecca
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1002ed09
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002ed09
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002ed09
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1002ed09
cmp dword [ecx + 0x74], 0xe
jbe 0x1002ed09
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10031694
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10031731
push ebx
push esi
call fcn.1003165d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100315f1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100316de
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10031730
push edi
push eax
call fcn.1002ff92
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100316fe
call fcn.1002ffe0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1003172f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100315f1
add esp, 0x20
test eax, eax
jne 0x1003171d
push edi
call fcn.1002ffe0
jmp 0x10031725
push ebx
call fcn.1002ffe0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1003199e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003a3e0
push 0x1003a3d8
push str.FlsAlloc
push 0x1f
call fcn.100318ba
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100319d2
push dword [ebp + 8]
mov ecx, esi
call dword [0x10038150]
call esi
jmp 0x100319d8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10031a1c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003a3f0
push 0x1003a3e8
push str.FlsGetValue
push 0x21
call fcn.100318ba
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10031a53
push dword [ebp + 8]
mov ecx, esi
call dword [0x10038150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10031a5b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003a3f8
push 0x1003a3f0
push str.FlsSetValue
push 0x22
call fcn.100318ba
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10031a95
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10038150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10036fa0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10036fcd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10036fcd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401790
Capabilities:
Print debug messages
Read and send data from client to server
Read file on windows
Read pipe
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1014
call fcn.00405f60
mov eax, dword [0x40a008]
xor eax, esp
mov dword [esp + 0x1010], eax
cmp byte [0x40a66c], 0
push ebx
push esi
push edi
jne 0x401898
mov edi, dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0
push 0
push 0
push dword [0x40a670]
call edi
test eax, eax
je 0x401867
cmp dword [esp + 0x10], 0
jbe 0x401867
push 0xffa
lea eax, [esp + 0x22]
mov dword [esp + 0x18], 0
push 0
push eax
mov dword [esp + 0x24], 0xffa
mov word [esp + 0x28], 0x169
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x14]
push 0
push eax
push 0xff9
lea eax, [esp + 0x2a]
push eax
push dword [0x40a670]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40188d
push 0
push 0x1000
lea eax, [esp + 0x20]
push eax
push dword [0x40a67c]
call ebx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea edx, [esp + 0x1e]
call fcn.00404740
push 1
call esi
cmp byte [0x40a66c], 0
je 0x4017d0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1010]
xor ecx, esp
call fcn.0040520e
mov esp, ebp
pop ebp
ret
push str.read_failed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x101c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040520e
mov esp, ebp
pop ebp
ret
Function at 0x402b30
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x100c
call fcn.00405f60
mov eax, dword [0x40a008]
xor eax, esp
mov dword [esp + 0x1008], eax
push ebx
push esi
push edi
push 0xff9
lea eax, [esp + 0x1b]
mov dword [esp + 0x14], 0xffa
push 0
push eax
mov word [esp + 0x20], 0x168
call sub.VCRUNTIME140.dll_memset
mov esi, dword [0x40a668]
add esp, 0xc
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov byte [esp + 0x16], 0x16
mov eax, dword [esi]
mov eax, dword [eax + 4]
test byte [eax + esi + 0xc], 1
jne 0x402bd7
push 0
push 0xff9
lea eax, [esp + 0x1f]
mov ecx, esi
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
mov eax, dword [0x40a668]
push 0
push 0x1000
mov eax, dword [eax + 8]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push dword [0x40a67c]
call ebx
mov esi, dword [0x40a668]
mov eax, dword [esi]
mov eax, dword [eax + 4]
test byte [eax + esi + 0xc], 1
je 0x402b91
cmp dword [esi + 0x5c], 0
lea ecx, [esi + 0x10]
je 0x402c22
mov edi, dword [esi + 0x1c]
lea eax, [esi + 0x4c]
cmp dword [edi], eax
jne 0x402bfe
mov edx, dword [esi + 0x64]
mov ecx, dword [esi + 0x60]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], ecx
mov eax, dword [esi + 0x3c]
mov dword [eax], edx
lea edi, [esi + 0x10]
mov ecx, edi
call fcn.004043a0
push dword [esi + 0x5c]
xor ecx, ecx
test al, al
cmove edi, ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
lea ecx, [esi + 0x10]
test eax, eax
je 0x402c24
xor edi, edi
mov byte [esi + 0x58], 0
mov byte [esi + 0x4d], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x40a70c]
mov ecx, dword [0x40a710]
mov dword [esi + 0x5c], 0
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], ecx
mov dword [esi + 0x48], 0
test edi, edi
jne 0x402c65
mov eax, dword [esi]
push edi
push 2
mov ecx, dword [eax + 4]
add ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
push 0
push 0x1000
lea eax, [esp + 0x18]
mov byte [esp + 0x1e], 0x17
push eax
push dword [0x40a67c]
mov dword [esp + 0x20], 0
call ebx
mov ecx, dword [esp + 0x1014]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040520e
mov esp, ebp
pop ebp
ret
Function at 0x403040
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40a674]
mov byte [0x40a66c], 1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x403065
push eax
call esi
mov dword [0x40a674], 0xffffffff
mov eax, dword [0x40a698]
cmp eax, 0xffffffff
je 0x40307c
push eax
call esi
mov dword [0x40a698], 0xffffffff
mov eax, dword [0x40a670]
cmp eax, 0xffffffff
je 0x403093
push eax
call esi
mov dword [0x40a670], 0xffffffff
mov eax, dword [0x40a694]
cmp eax, 0xffffffff
je 0x4030aa
push eax
call esi
mov dword [0x40a694], 0xffffffff
mov eax, dword [0x40a680]
cmp eax, 0xffffffff
je 0x4030f0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [0x40a680]
call esi
push 0x404980
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x4075c0
mov dword [0x40a680], 0xffffffff
call fcn.00404740
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov eax, dword [0x40a684]
cmp eax, 0xffffffff
je 0x403107
push eax
call esi
mov dword [0x40a684], 0xffffffff
pop esi
ret