joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5e6350
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push 0xe87e20
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0xe87d48]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x5e63cb
push 0x4c
push 1
call fcn.005cebe5
mov esi, eax
add esp, 8
test esi, esi
jne 0x5e6393
push 0xe87e20
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret
mov ecx, dword [0xe87d48]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0xe7a718]
inc eax
lea edx, [esi + 0xc]
mov dword [0xe7a718], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 4]
push 0
push eax
call fcn.005e9e70
add esp, 8
mov byte [esi + 0x3c], 1
push 0xe87e20
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret

Function at 0x5e6850
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.005ce7bd
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.005d8fdb
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x5e694a
call fcn.005ce7bd
cmp dword [eax], 0
je 0x5e6897
call fcn.005ce7bd
mov ebp, dword [eax]
jmp 0x5e689a
or ebp, 0xffffffff
call fcn.005e63e0
test esi, esi
mov dword [eax], ebp
jne 0x5e68af
call fcn.005ce7bd
cmp dword [eax], 4
je 0x5e68ff
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x5e68e2
cmp esi, 0xffffffff
je 0x5e6924
test al, 6
je 0x5e68e2
call fcn.005e63e0
mov ecx, dword [eax]
push ecx
push ebx
call fcn.005e9ea0
add esp, 4
push eax
push 0x24
push 9
call fcn.005e6c30
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x5e6942
test al, 6
je 0x5e68f0
test ah, 2
je 0x5e6942
test esi, esi
jbe 0x5e694e
test ah, 2
je 0x5e694e
add dword [esp + 0x18], esi
sub edi, esi
call fcn.005ce7bd
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.005d8fdb
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x5e694a
jmp 0x5e6884
call fcn.005e63e0
mov eax, dword [eax]
push eax
push ebx
call fcn.005e9ea0
add esp, 4
push eax
push 0x24
push 2
call fcn.005e6c30
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x20]
test al, 6
je 0x5e695b
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test ah, 2
je 0x5e6964
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x5fce95
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5fcecd
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005faf22
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005faefa
jmp 0x5fced9
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x5fe58a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5fe5cc
call fcn.0060456c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5fe5cc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5fe5c3
xor eax, eax
jmp 0x5fe5d4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005fe5da
pop edi
pop esi
pop ebx
ret 4

Function at 0x604a9c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x604aca
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x604ae8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00604a02
jmp 0x604ae8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x604ae8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00604a02
test edi, edi
mov eax, edi
jne 0x604ad2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x413cf0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd000]
push edi
or ebp, 0xffffffff
jmp 0x413d12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x413d19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x413d08
mov eax, 1
add ebx, ebx
jne 0x413d2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x413d20
jne 0x413d3c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x413d20
xor ecx, ecx
sub eax, 3
jb 0x413d50
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x413dc2
mov ebp, eax
add ebx, ebx
jne 0x413d5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x413d68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x413d8c
inc ecx
add ebx, ebx
jne 0x413d78
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x413d6d
jne 0x413d89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x413d6d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x413dac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x413d9d
jmp 0x413d0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x413dac
add edi, ecx
jmp 0x413d0e
pop esi
mov edi, esi
mov ecx, 0x12e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x413dca
cmp byte [edi], 7
jne 0x413dca
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 0x413dcf
lea edi, [esi + 0x11000]
mov eax, dword [edi]
or eax, eax
je 0x413e3e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x13434]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x134ac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x413dfc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x134b0]
or eax, eax
je 0x413e38
mov dword [ebx], eax
add ebx, 4
jmp 0x413e19
call dword [esi + 0x134b8]
mov ebp, dword [esi + 0x134b4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x413e72
sub esp, 0xffffff80
jmp 0x401e5e
Function at 0x42e001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
jmp 0x401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408e84
nop
mov ecx, 0x426362d4
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x31fc0f0d
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x40a708
Capabilities:
Read file on windows

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

Function at 0x411fd0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
test eax, eax
je 0x41213d
push ebx
dec eax
add edx, 9
push esi
lea esi, [ecx + 0xa0]
shr eax, 4
add ecx, 0xb0
mov dword [ebp - 0x14], esi
inc eax
mov dword [ebp - 0x10], ecx
push edi
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
nop word [eax + eax]
movups xmm0, xmmword [edx - 9]
lea ebx, [edx - 9]
mov edi, 4
mov ecx, ebx
mov edx, esi
mov esi, 4
mov al, byte [edx]
inc edx
xor byte [ecx], al
inc ecx
sub esi, 1
jne 0x412025
sub edi, 1
jne 0x412020
mov byte [ebp + 0xb], 9
nop dword [eax]
mov edx, dword [ebp - 4]
mov esi, ebx
mov edi, 4
movzx eax, byte [edx]
mov cl, byte [edx + 4]
mov byte [edx + 4], al
movzx eax, byte [edx - 4]
mov byte [edx], al
movzx eax, byte [edx - 8]
mov byte [edx - 4], al
movzx eax, byte [edx + 1]
mov byte [edx - 8], cl
mov cl, byte [edx - 7]
mov byte [edx - 7], al
movzx eax, byte [edx + 5]
mov byte [edx + 1], cl
mov cl, byte [edx - 3]
mov byte [edx - 3], al
movzx eax, byte [edx - 2]
mov byte [edx + 5], cl
mov cl, byte [edx - 6]
mov byte [edx - 6], al
movzx eax, byte [edx + 2]
mov byte [edx - 2], al
movzx eax, byte [edx + 6]
mov byte [edx + 2], al
mov byte [edx + 6], cl
nop dword [eax + eax]
mov ecx, esi
mov edx, 4
nop word [eax + eax]
movzx eax, byte [ecx]
lea ecx, [ecx + 4]
mov al, byte [eax + 0x41ae00]
mov byte [ecx - 4], al
sub edx, 1
jne 0x4120b0
inc esi
sub edi, 1
jne 0x4120a0
mov ch, byte [ebp + 0xb]
mov eax, ebx
movzx edx, ch
mov edi, 4
shl edx, 4
add edx, dword [ebp - 0xc]
nop dword [eax]
mov esi, 4
mov cl, byte [edx]
inc edx
xor byte [eax], cl
inc eax
sub esi, 1
jne 0x4120e5
sub edi, 1
jne 0x4120e0
test ch, ch
je 0x412108
mov ecx, ebx
call fcn.00412560
dec byte [ebp + 0xb]
jmp 0x412040
mov esi, dword [ebp - 0x10]
mov edx, 0x10
mov ecx, esi
mov al, byte [ecx]
lea ecx, [ecx + 1]
xor byte [ebx], al
lea ebx, [ebx + 1]
sub edx, 1
jne 0x412112
mov edx, dword [ebp - 4]
add edx, 0x10
sub dword [ebp - 8], 1
movups xmmword [esi], xmm0
mov esi, dword [ebp - 0x14]
mov dword [ebp - 4], edx
jne 0x412010
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4122f0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov eax, edx
mov esi, ecx
push edi
mov edi, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esi
sub edi, esi
mov ebx, 4
nop dword [eax]
mov edx, 4
mov al, byte [edi + ecx]
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x412315
sub ebx, 1
jne 0x412310
mov byte [ebp - 1], 1
nop dword [eax]
mov edi, esi
mov ebx, 4
nop word [eax + eax]
mov ecx, edi
mov edx, 4
nop word [eax + eax]
movzx eax, byte [ecx]
lea ecx, [ecx + 4]
mov al, byte [eax + str.cw]
mov byte [ecx - 4], al
sub edx, 1
jne 0x412350
inc edi
sub ebx, 1
jne 0x412340
cmp byte [ebp - 1], 0xa
movzx eax, byte [esi + 5]
mov cl, byte [esi + 1]
mov byte [esi + 1], al
movzx eax, byte [esi + 9]
mov byte [esi + 5], al
movzx eax, byte [esi + 0xd]
mov byte [esi + 9], al
movzx eax, byte [esi + 0xa]
mov byte [esi + 0xd], cl
mov cl, byte [esi + 2]
mov byte [esi + 2], al
movzx eax, byte [esi + 0xe]
mov byte [esi + 0xa], cl
mov cl, byte [esi + 6]
mov byte [esi + 6], al
movzx eax, byte [esi + 0xf]
mov byte [esi + 0xe], cl
mov cl, byte [esi + 3]
mov byte [esi + 3], al
movzx eax, byte [esi + 0xb]
mov byte [esi + 0xf], al
movzx eax, byte [esi + 7]
mov byte [esi + 0xb], al
mov byte [esi + 7], cl
je 0x412490
lea edi, [esi + 2]
lea esi, [edx + 4]
nop word [eax + eax]
mov bh, byte [edi + 1]
lea edi, [edi + 4]
mov al, byte [edi - 6]
mov bl, bh
mov ch, byte [edi - 4]
mov cl, al
mov dl, byte [edi - 5]
xor bl, ch
mov byte [ebp - 2], al
xor cl, dl
mov dh, bl
xor dh, al
mov al, cl
shr al, 7
add cl, cl
movzx eax, al
xor dh, dl
imul eax, eax, 0x1b
xor al, cl
mov cl, dl
xor al, byte [ebp - 2]
xor cl, ch
xor al, dh
mov byte [edi - 6], al
mov al, cl
shr al, 7
add cl, cl
movzx eax, al
imul eax, eax, 0x1b
xor al, cl
mov cl, byte [ebp - 2]
xor al, dl
xor cl, bh
xor al, dh
mov byte [edi - 5], al
mov al, bl
shr al, 7
add bl, bl
movzx eax, al
imul eax, eax, 0x1b
xor al, bl
xor al, ch
xor al, dh
mov byte [edi - 4], al
mov al, cl
shr al, 7
add cl, cl
movzx eax, al
imul eax, eax, 0x1b
xor al, cl
xor al, bh
xor al, dh
mov byte [edi - 3], al
sub esi, 1
jne 0x4123d0
mov ch, byte [ebp - 1]
mov ebx, 4
mov esi, dword [ebp - 0xc]
mov eax, esi
movzx edx, ch
shl edx, 4
add edx, dword [ebp - 8]
mov edi, 4
mov cl, byte [edx]
inc edx
xor byte [eax], cl
inc eax
sub edi, 1
jne 0x412476
sub ebx, 1
jne 0x412471
inc ch
mov byte [ebp - 1], ch
jmp 0x412330
mov ecx, dword [ebp - 8]
mov edi, 4
add ecx, 0xa0
nop
mov edx, 4
mov al, byte [ecx]
inc ecx
xor byte [esi], al
inc esi
sub edx, 1
jne 0x4124a5
sub edi, 1
jne 0x4124a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412920
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, byte [edx]
push ebx
push esi
mov esi, ecx
mov ebx, 4
mov byte [esi], al
movzx eax, byte [edx + 1]
mov byte [esi + 1], al
movzx eax, byte [edx + 2]
mov byte [esi + 2], al
movzx eax, byte [edx + 3]
mov byte [esi + 3], al
movzx eax, byte [edx + 4]
mov byte [esi + 4], al
movzx eax, byte [edx + 5]
mov byte [esi + 5], al
movzx eax, byte [edx + 6]
mov byte [esi + 6], al
movzx eax, byte [edx + 7]
mov byte [esi + 7], al
movzx eax, byte [edx + 8]
mov byte [esi + 8], al
movzx eax, byte [edx + 9]
mov byte [esi + 9], al
movzx eax, byte [edx + 0xa]
mov byte [esi + 0xa], al
movzx eax, byte [edx + 0xb]
mov byte [esi + 0xb], al
movzx eax, byte [edx + 0xc]
mov byte [esi + 0xc], al
lea eax, [esi + 0xd]
mov cl, byte [edx + 0xd]
mov byte [eax], cl
mov cl, byte [edx + 0xe]
mov byte [esi + 0xe], cl
mov cl, byte [edx + 0xf]
mov byte [esi + 0xf], cl
nop word [eax + eax]
mov ch, byte [eax - 1]
mov cl, byte [eax]
mov dl, byte [eax + 1]
mov dh, byte [eax + 2]
mov byte [ebp - 4], ch
mov byte [ebp - 3], cl
mov byte [ebp - 1], dl
mov byte [ebp - 2], dh
test bl, 3
jne 0x4129fd
movzx edx, cl
movzx ecx, byte [ebp - 1]
mov cl, byte [ecx + str.cw]
mov byte [ebp - 3], cl
movzx ecx, byte [ebp - 2]
mov cl, byte [ecx + str.cw]
mov byte [ebp - 1], cl
movzx ecx, byte [ebp - 4]
mov cl, byte [ecx + str.cw]
mov byte [ebp - 2], cl
mov ecx, ebx
shr ecx, 2
mov ch, byte [ecx + 0x41af00]
xor ch, byte [edx + str.cw]
mov dl, byte [ebp - 1]
mov dh, byte [ebp - 2]
mov cl, byte [eax - 0xd]
inc ebx
xor cl, ch
mov byte [eax + 3], cl
mov cl, byte [eax - 0xc]
xor cl, byte [ebp - 3]
mov byte [eax + 4], cl
mov cl, byte [eax - 0xb]
xor cl, dl
mov byte [eax + 5], cl
mov cl, byte [eax - 0xa]
xor cl, dh
mov byte [eax + 6], cl
add eax, 4
cmp ebx, 0x2c
jb 0x4129a0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4147f0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
push edi
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x24]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 8]
movlpd qword [ebp - 0x78], xmm0
push eax
mov ebx, ecx
movlpd qword [ebp - 0x70], xmm0
movlpd qword [ebp - 0x68], xmm0
movlpd qword [ebp - 0x60], xmm0
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x24], 0xc
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x41497c
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [ebp - 0xc]
mov ecx, ebx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], eax
xor eax, eax
mov word [ebp - 0x4c], ax
mov dword [ebp - 0x50], 0x101
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4148a0
sub ecx, edx
lea eax, [ecx + 1]
lea esi, [eax + eax]
mov dword [ebp - 0x10], eax
push esi
call fcn.00405e4d
push esi
mov edi, eax
push 0
push edi
call fcn.004028f0
mov ecx, ebx
add esp, 0x10
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4148d0
push dword [ebp - 0x10]
sub ecx, edx
push edi
push ecx
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41497c
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x9c40
push dword [ebp - 0x30]
call esi
push 0x9c40
push dword [ebp - 0x34]
call esi
push dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x34]
call esi
push dword [ebp - 0xc]
call esi
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push dword [ebp - 0x14]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 8]
call esi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414b00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd8
mov eax, dword [0x41d004]
xor eax, esp
mov dword [esp + 0xd4], eax
cmp dword [ebp + 0x10], 1
xorps xmm0, xmm0
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [esp + 0x10], eax
push edi
mov edi, edx
mov dword [esp + 8], esi
jne 0x414c17
mov eax, edi
and eax, 0x8000000f
jns 0x414b46
dec eax
or eax, 0xfffffff0
inc eax
mov esi, 0x10
sub esi, eax
lea eax, [edi + esi]
push eax
mov dword [esp + 0x14], eax
call fcn.00405e4d
push edi
push dword [esp + 0x10]
mov dword [esp + 0x18], eax
push eax
call fcn.00404440
add esp, 0x10
test esi, esi
je 0x414b8b
lea eax, [edi + esi]
cmp edi, eax
jge 0x414b8b
push esi
push esi
mov esi, dword [esp + 0x14]
lea eax, [edi + esi]
push eax
call fcn.004028f0
add esp, 0xc
jmp 0x414b8f
mov esi, dword [esp + 0xc]
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x18]
call fcn.00412920
mov eax, dword [esp + 0x10]
xorps xmm0, xmm0
mov edi, esi
lea esi, [esp + 0xc8]
movups xmmword [esp + 0xc8], xmm0
test eax, eax
je 0x414bf9
lea ecx, [eax - 1]
shr ecx, 4
inc ecx
mov dword [esp + 8], ecx
mov eax, edi
sub esi, edi
mov edx, 0x10
nop dword [eax + eax]
mov cl, byte [esi + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x414bd0
lea edx, [esp + 0x18]
mov ecx, edi
call fcn.004122f0
mov esi, edi
add edi, 0x10
sub dword [esp + 8], 1
jne 0x414bc2
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
mov eax, dword [esp + 0xc]
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.004012eb
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x18]
call fcn.00412920
push edi
mov edx, esi
lea ecx, [esp + 0x1c]
movups xmmword [esp + 0xcc], xmm0
call fcn.00411fd0
movsx eax, byte [edi + esi - 1]
sub edi, eax
push edi
call fcn.0040153a
push edi
push dword [esp + 0x14]
mov esi, eax
push esi
call fcn.00404440
mov ecx, dword [esp + 0x28]
add esp, 0x14
mov eax, esi
mov dword [ecx], edi
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
xor ecx, esp
call fcn.004012eb
mov esp, ebp
pop ebp
ret
Function at 0x414ca0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ecx + 0x1c], 0xffffffff
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
jne 0x414cbb
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
xor edi, edi
test ebx, ebx
jle 0x414d0e
push 0
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
push dword [ecx + 0x1c]
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, dword [ebp - 4]
cmp eax, 0xffffffff
je 0x414cf1
inc edi
add esi, eax
cmp edi, 0x28
je 0x414d0a
cmp esi, ebx
jl 0x414cc5
jmp 0x414d0a
mov eax, dword [ecx + 0x1c]
cmp eax, 0xffffffff
je 0x414d0a
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1c], 0xffffffff
test esi, esi
jne 0x414d27
mov eax, dword [ecx + 0x1c]
cmp eax, 0xffffffff
je 0x414d27
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], 0xffffffff
xor eax, eax
cmp esi, ebx
pop edi
cmove eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x414d40
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov dword [ebp - 4], esi
mov eax, dword [esi + 0x1c]
cmp eax, 0xffffffff
jne 0x414d5d
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
mov ebx, dword [ebp + 0xc]
cmp ebx, 0x400
ja 0x414dac
push 0
push ebx
push dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
jne 0x414e27
mov ecx, dword [esi + 0x1c]
cmp ecx, eax
je 0x414e24
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
pop ebx
mov dword [esi + 0x1c], 0xffffffff
setne al
pop esi
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 8]
mov ecx, 0x400
xor esi, esi
sub ecx, edx
mov dword [ebp - 8], ecx
push edi
nop dword [eax]
lea edi, [esi + edx]
mov eax, 0x400
add ecx, edi
mov edx, ebx
sub edx, esi
cmp ecx, ebx
push 0
cmova eax, edx
push eax
push edi
mov edi, dword [ebp - 4]
push dword [edi + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
je 0x414e0a
mov ecx, dword [ebp - 8]
add esi, 0x400
mov edx, dword [ebp + 8]
cmp esi, ebx
jb 0x414dc0
pop edi
cmp eax, 0xffffffff
pop ebx
setne al
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [edi + 0x1c]
cmp ecx, 0xffffffff
je 0x414e23
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x1c], 0xffffffff
pop edi
cmp eax, 0xffffffff
pop ebx
setne al
pop esi
mov esp, ebp
pop ebp
ret 8