joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41cb00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 8]
cmp eax, 1
jne 0x41cb13
xor eax, eax
pop esi
pop ebp
ret
test eax, eax
jne 0x41cb4f
mov eax, dword [ebp + 0xc]
push 0
push 0
push 0
push 0
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push esi
push dword [ebp + 8]
mov dword [esi + 4], eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x41cb55
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop esi
pop ebp
ret
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
pop ebp
ret

Function at 0x41cb80
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
cmp eax, 1
je 0x41cb94
cmp eax, 2
je 0x41cb94
xor eax, eax
jmp 0x41cb99
mov eax, 1
mov ecx, dword [esi + 0xc]
test eax, eax
je 0x41cbbd
push 0x3e8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41cbcf
push 0
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
ret
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret
Function at 0x41d3d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4ff004]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x541874]
mov eax, 0xf0
push ebx
push esi
movzx esi, cx
push edi
cmp si, ax
jb 0x41d413
push 0x17d
push str.....yoctolib_v1.0Privatehttpsupport.c
push str.ASSERT_FAILED:_s:_d_n
call fcn.0041cc00
mov ecx, dword [0x541874]
add esp, 0xc
mov eax, esi
lea eax, [eax + eax*4]
movzx ebx, byte [eax*4 + 0xd76590]
mov dword [ebp - 0x24], ebx
test bl, 1
je 0x41d5f7
test bl, 4
jne 0x41d5f7
call fcn.0043c5e0
movzx edx, ax
test dx, dx
je 0x41d5f7
mov esi, ebx
mov edi, edx
mov bx, word [0x541870]
and esi, 2
add esi, esi
movzx eax, bx
or esi, 3
add esi, eax
cmp edi, esi
jae 0x41d4c2
mov ecx, 0x4f94a4
call fcn.00436650
push ecx
imul ecx, edi, 0x3e8
lea edx, [ebp - 0x20]
push 0x11
call fcn.004202c0
lea ecx, [ebp - 0x20]
call fcn.00436650
push 0x3c
push 0x4fa910
call fcn.004362a0
add esp, 0xc
imul ecx, esi, 0x3e8
lea edx, [ebp - 0x20]
push 0x11
call fcn.004202c0
lea ecx, [ebp - 0x20]
call fcn.00436650
push 0xa
push 0x4fa910
call fcn.004362a0
mov bx, word [0x541870]
add esp, 0x10
inc bl
mov byte [ebp - 0xc], 0x82
test byte [ebp - 0x24], 2
mov byte [ebp - 0xb], bl
je 0x41d5be
call fcn.00422fd0
or bl, 0x80
mov dword [ebp - 0x24], eax
mov byte [ebp - 0xb], bl
mov ebx, eax
shr eax, 0x10
mov edx, ebx
shr edx, 0x18
mov ecx, ebx
mov byte [ebp - 7], al
mov al, byte [0x541876]
shr ecx, 8
xor al, dl
mov byte [ebp - 0xa], dl
lea edx, [ebp - 0xc]
mov byte [ebp - 8], cl
mov ecx, dword [0x541874]
push 7
mov byte [ebp - 9], bl
mov byte [ebp - 6], al
call fcn.0043c6a0
mov di, word [0x541870]
add esp, 4
movzx edx, di
xor eax, eax
add edx, 3
shr edx, 2
test edx, edx
je 0x41d5aa
cmp edx, 0x10
jb 0x41d5aa
mov ecx, edx
movd xmm0, ebx
and ecx, 0xf
pshufd xmm2, xmm0, 0
mov esi, edx
sub esi, ecx
nop dword [eax + eax]
movups xmm0, xmmword [eax*4 + 0x5418a0]
movaps xmm1, xmm2
pxor xmm0, xmm2
movups xmmword [eax*4 + 0x5418a0], xmm0
movups xmm0, xmmword [eax*4 + 0x5418b0]
pxor xmm1, xmm0
movups xmmword [eax*4 + 0x5418b0], xmm1
movups xmm0, xmmword [eax*4 + 0x5418c0]
pxor xmm0, xmm2
movups xmmword [eax*4 + 0x5418c0], xmm0
movups xmm0, xmmword [eax*4 + 0x5418d0]
pxor xmm0, xmm2
movups xmmword [eax*4 + 0x5418d0], xmm0
add eax, 0x10
cmp eax, esi
jl 0x41d550
cmp eax, edx
jge 0x41d5e0
nop
xor dword [eax*4 + 0x5418a0], ebx
inc eax
cmp eax, edx
jl 0x41d5b0
jmp 0x41d5e0
mov al, byte [0x541876]
lea edx, [ebp - 0xc]
mov ecx, dword [0x541874]
push 3
mov byte [ebp - 0xa], al
call fcn.0043c6a0
mov di, word [0x541870]
add esp, 4
mov ecx, dword [0x541874]
mov edx, 0x5418a0
movzx eax, di
push eax
call fcn.0043c6a0
add esp, 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
mov word [0x541870], ax
pop ebx
call fcn.004423fe
mov esp, ebp
pop ebp
ret
Function at 0x41ebe0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, esi
shr eax, 0x10
test al, al
jne 0x41ebf9
mov ecx, esi
pop esi
pop ebp
jmp fcn.0043c3b0
cmp word [0x541870], 0
je 0x41ec19
cmp dword [0x541874], esi
jne 0x41ec19
call fcn.0041d3d0
mov ecx, esi
pop esi
pop ebp
jmp fcn.0043c3b0
pop esi
pop ebp
ret
Function at 0x4204b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4ff004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, 0x10
mov dword [ebp - 0x14], ecx
push esi
mov ebx, ecx
mov dword [ebp - 0x18], eax
mov ch, byte [0xd4bef8]
xor edx, edx
push edi
lea esi, [eax - 4]
nop dword [eax + eax]
mov cl, ch
lea edx, [edx + 1]
sub cl, byte [edx + 0x500b6f]
mov byte [ebp + edx - 0x11], cl
sub esi, 1
jne 0x4204e0
mov esi, 0xc
nop dword [eax]
lea edi, [ebp - 0x10]
mov dword [ebp - 0x1c], ebx
mov eax, edi
sub ebx, eax
movzx eax, si
nop dword [eax]
mov dl, byte [edi]
lea ecx, [ebx + edi]
xor byte [ecx], dl
lea edi, [edi + 1]
mov cl, byte [ecx]
xor cl, dl
mov byte [edi - 1], cl
sub eax, 1
jne 0x420510
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
nop dword [eax]
movzx ecx, si
sub eax, esi
add ebx, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ebx
test ax, ax
je 0x420554
cmp ax, 0xc
jae 0x4204f4
xor ecx, ecx
movzx esi, ax
cmp cx, ax
jae 0x420530
jmp 0x420500
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004423fe
mov esp, ebp
pop ebp
ret

Function at 0x422fd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4ffdf0]
push esi
push edi
mov dword [ebp - 4], 0
lea esi, [ebp - 4]
mov edi, 4
nop word [eax + eax]
movzx ecx, byte [esi]
lea esi, [esi + 1]
mov edx, eax
shr eax, 8
xor edx, ecx
movzx ecx, dl
xor eax, dword [ecx*4 + 0x541920]
sub edi, 1
jne 0x422ff0
pop edi
mov dword [0x4ffdf0], eax
dec eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x423020
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ax, word [ebp + 8]
push esi
xor esi, esi
cmp si, ax
jae 0x42304c
movzx esi, ax
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x541920]
sub esi, 1
jne 0x423032
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x426cb0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x4ff004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x84], edx
mov esi, ecx
call fcn.00422fd0
mov edi, eax
mov dword [ebp - 0x80], edi
call fcn.00408c40
mov ecx, dword [esi + 4]
mov ebx, eax
mov eax, 0xf1
mov dword [ebp - 0x7c], 0x10
xor ebx, edi
cmp cx, ax
je 0x426d1d
mov eax, 0xf0
cmp cx, ax
je 0x426d1d
call fcn.0043bf20
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push dword [eax]
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
js 0x426d2a
mov eax, dword [ebp - 0x10]
jmp 0x426d2c
push 0x7f000001
call dword [sym.imp.WS2_32.dll_htonl]
jmp 0x426d2c
xor eax, eax
mov edx, dword [ebp - 0x80]
mov ecx, edx
shr ecx, 8
mov byte [ebp - 0xd], cl
mov ecx, edx
shr ecx, 0x10
mov byte [ebp - 0xe], cl
mov ecx, ebx
shr ecx, 8
mov byte [ebp - 0xf], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [ebp - 9], cl
mov ecx, eax
shr ecx, 8
mov byte [ebp - 7], cl
mov ecx, eax
mov byte [ebp - 0x10], dl
shr edx, 0x18
shr ecx, 0x10
mov byte [ebp - 0xb], bl
mov byte [ebp - 5], al
mov byte [ebp - 0xa], dl
lea edx, [ebp - 0x10]
mov byte [ebp - 8], cl
lea ecx, [ebp - 0x78]
shr eax, 0x18
shr ebx, 0x18
push 0xc
mov byte [ebp - 0xc], bl
mov byte [ebp - 6], al
mov dword [ebp - 0x78], 0x67452301
mov dword [ebp - 0x74], 0xefcdab89
mov dword [ebp - 0x70], 0x98badcfe
mov dword [ebp - 0x6c], 0x10325476
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
call fcn.00412fa0
add esp, 4
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x78]
call fcn.00413080
push 0x20
push dword [ebp - 0x84]
mov edx, 0x18
lea ecx, [ebp - 0x20]
call fcn.00438f50
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004423fe
mov esp, ebp
pop ebp
ret
Function at 0x426df0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x4ff004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
mov eax, edx
lea ecx, [ebp - 0x20]
mov edx, 0x20
push 0x18
push ecx
mov ecx, eax
call fcn.00438e60
add esp, 8
cmp ax, 0x18
jne 0x426f5b
mov ecx, dword [esi + 4]
mov eax, 0xf1
mov dword [ebp - 0x8c], 0x10
cmp cx, ax
je 0x426e6a
mov eax, 0xf0
cmp cx, ax
je 0x426e6a
call fcn.0043bf20
lea ecx, [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push dword [eax]
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
js 0x426e77
mov eax, dword [ebp - 0x2c]
jmp 0x426e79
push 0x7f000001
call dword [sym.imp.WS2_32.dll_htonl]
jmp 0x426e79
xor eax, eax
mov ecx, eax
mov byte [ebp - 5], al
shr ecx, 8
lea edx, [ebp - 0x10]
mov byte [ebp - 7], cl
mov ecx, eax
shr ecx, 0x10
mov byte [ebp - 8], cl
lea ecx, [ebp - 0x88]
shr eax, 0x18
push 0xc
mov byte [ebp - 6], al
mov dword [ebp - 0x88], 0x67452301
mov dword [ebp - 0x84], 0xefcdab89
mov dword [ebp - 0x80], 0x98badcfe
mov dword [ebp - 0x7c], 0x10325476
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
call fcn.00412fa0
add esp, 4
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x88]
call fcn.00413080
lea ecx, [ebp - 0x30]
mov esi, 0xc
lea edx, [ebp - 0x20]
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x426f5b
add ecx, 4
add edx, 4
sub esi, 4
jae 0x426ef0
call fcn.00408c40
movzx ecx, byte [ebp - 0xa]
mov edi, eax
movzx esi, byte [ebp - 0xc]
movzx edx, byte [ebp - 0xe]
xor esi, ecx
movzx ecx, byte [ebp - 9]
movzx eax, byte [ebp - 0xd]
xor edx, ecx
movzx ecx, byte [ebp - 0xf]
shl esi, 8
xor ecx, eax
movzx eax, byte [ebp - 0xb]
or esi, edx
shl esi, 8
or esi, ecx
movzx ecx, byte [ebp - 0x10]
xor ecx, eax
shl esi, 8
or esi, ecx
mov eax, 0x6ddd00
sub edi, esi
cmp eax, edi
sbb eax, eax
inc eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004423fe
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
xor ecx, ebp
pop esi
call fcn.004423fe
mov esp, ebp
pop ebp
ret
Function at 0x427660
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, ecx
push esi
push edi
lea esi, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x427670
sub edx, esi
mov edi, ecx
movzx esi, dx
test si, si
je 0x42772a
push ebx
mov al, byte [edi]
mov edx, ecx
inc edi
mov dword [ebp - 8], edx
add esi, 0xffff
cmp al, 0x3d
je 0x427719
cmp al, 0x26
je 0x427719
cmp al, 0x2b
jne 0x4276a6
mov al, 0x20
jmp 0x42771b
cmp al, 0x25
jne 0x42771b
cmp si, 2
jb 0x427729
movzx eax, byte [edi]
add esi, 0xfffe
shl ax, 8
movzx eax, ax
mov dword [ebp - 4], eax
movzx eax, byte [edi + 1]
add edi, 2
add word [ebp - 4], ax
mov ebx, dword [ebp - 4]
xor ebx, 0xf0f0
and ebx, 0x1f1f
mov edx, ebx
shr edx, 8
mov cl, dl
and cl, 0x10
lea eax, [edx - 7]
movzx eax, al
mov dword [ebp - 4], eax
mov ecx, eax
movzx eax, dl
mov dl, bl
cmove ecx, eax
lea eax, [ebx - 7]
shl cl, 4
and dl, 0x10
mov edx, dword [ebp - 8]
mov dword [ebp - 4], ecx
movzx ecx, al
movzx eax, bl
cmove ecx, eax
mov eax, dword [ebp - 4]
add al, cl
jmp 0x42771b
xor al, al
mov byte [edx], al
lea ecx, [edx + 1]
test si, si
jne 0x427688
pop ebx
pop edi
mov word [ecx], 0
lea eax, [ecx + 2]
mov byte [ecx + 2], 0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42e050
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x4ff004]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00422fd0
mov dword [ebp - 0xc], eax
call fcn.00408c40
push 2
lea edx, [ebp - 0xc]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x67452301
mov dword [ebp - 0x6c], 0xefcdab89
mov dword [ebp - 0x68], 0x98badcfe
mov dword [ebp - 0x64], 0x10325476
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
call fcn.00412fa0
mov eax, 0xd47136
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42e0b2
sub eax, edx
lea ecx, [ebp - 0x70]
movzx eax, ax
mov edx, 0xd47136
push eax
call fcn.00412fa0
add esp, 4
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x70]
call fcn.00413080
push 0x1c
push 0xd50a74
mov edx, 0x10
lea ecx, [ebp - 0x14]
call fcn.00438f50
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov word [0xd50a90], ax
call fcn.004423fe
mov esp, ebp
pop ebp
ret
Function at 0x438f50
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
mov edi, ecx
mov ebx, edx
xor ecx, ecx
cmp word [ebp + 0xc], 4
mov dword [ebp - 0x10], ecx
jb 0x43905a
push esi
mov esi, dword [ebp + 8]
mov word [ebp - 2], 0xffff
test bx, bx
je 0x439050
mov cl, byte [edi]
add ebx, 0xffff
mov al, cl
mov dword [ebp - 8], ebx
and cl, 3
shr al, 2
inc edi
shl cl, 4
mov dword [ebp - 0xc], edi
mov byte [ebp - 4], al
mov byte [ebp - 3], cl
test bx, bx
je 0x438fea
mov dl, byte [edi]
add ebx, 0xffff
mov al, dl
mov dword [ebp - 8], ebx
shr al, 4
and dl, 0xf
inc edi
shl dl, 2
or al, cl
mov dword [ebp - 0xc], edi
mov byte [ebp - 3], al
mov byte [ebp - 2], dl
test bx, bx
je 0x438fea
mov cl, byte [edi]
add ebx, 0xffff
mov al, cl
mov dword [ebp - 8], ebx
shr al, 6
inc edi
or al, dl
mov dword [ebp - 0xc], edi
and cl, 0x3f
mov byte [ebp - 2], al
mov byte [ebp - 1], cl
mov edi, 4
lea edx, [ebp - 4]
lea ebx, [edi + 0x2b]
mov al, byte [edx]
cmp al, 0x19
ja 0x438fff
add al, 0x41
jmp 0x439023
cmp al, 0x33
ja 0x439007
add al, 0x47
jmp 0x439023
cmp al, 0x3d
ja 0x43900f
add al, 0xfc
jmp 0x439023
cmp al, 0x3e
jne 0x439017
mov al, 0x2b
jmp 0x439023
cmp al, 0x3f
mov ecx, 0x3d
cmove ecx, ebx
mov al, cl
mov byte [esi], al
inc edx
inc esi
sub edi, 1
jne 0x438ff5
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
add eax, 0xfffc
mov ebx, dword [ebp - 8]
add ecx, 4
mov edi, dword [ebp - 0xc]
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x10], ecx
cmp ax, 4
jae 0x438f70
pop esi
pop edi
mov ax, cx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov ax, cx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x439540
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x4ff004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [ebp - 0x40c]
push 0x4fad74
push esi
push eax
call fcn.0044bf78
add esp, 0xc
test eax, eax
je 0x43958c
push esi
push str.Fail_to_format_User_container_file___s__n
call fcn.004362a0
add esp, 8
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004423fe
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x408]
push 0
push eax
call fcn.00443620
add esp, 0xc
lea eax, [ebp - 0x408]
push dword [ebp - 0x40c]
push 2
push 0x200
push eax
call fcn.0044be5e
push dword [ebp - 0x40c]
call fcn.00449c65
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
pop esi
call fcn.004423fe
mov esp, ebp
pop ebp
ret
Function at 0x43a790
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, edx
cmp cl, 0x14
jae 0x43a84c
movzx eax, cl
imul esi, eax, 0x54
mov eax, dword [esi + 0xd4b820]
test eax, eax
je 0x43a84c
cmp eax, 3
je 0x43a84c
push dword [0x541e98]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0xd4b820], 2
jne 0x43a81e
mov cl, byte [esi + 0xd4b824]
cmp cl, 0x14
jbe 0x43a7f7
push dword [0x541e98]
xor eax, eax
movzx esi, ax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ax, si
pop edi
pop esi
pop ecx
pop ebp
ret
push dword [ebp + 8]
mov edx, edi
call fcn.00429eb0
add esp, 4
movzx eax, ax
movzx esi, ax
push dword [0x541e98]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ax, si
pop edi
pop esi
pop ecx
pop ebp
ret
push dword [esi + 0xd4b828]
movzx eax, word [ebp + 8]
add eax, eax
push eax
push 1
push edi
call fcn.0044dc9c
add esp, 0x10
mov esi, eax
push dword [0x541e98]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ax, si
pop edi
pop esi
pop ecx
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ecx
pop ebp
ret

Function at 0x43a9f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], esi
push edi
cmp cl, 0x14
jae 0x43aa7e
movzx eax, cl
imul ebx, eax, 0x54
cmp dword [ebx + 0xd4b820], 3
jne 0x43aa7e
push dword [0x541e98]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 8]
xor eax, eax
mov edx, dword [ebx + 0xd4b830]
cmp ax, cx
jae 0x43aa4e
movzx edi, cx
movzx eax, byte [esi]
lea esi, [esi + 1]
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x541920]
sub edi, 1
jne 0x43aa31
mov esi, dword [ebp - 4]
mov dword [ebx + 0xd4b830], edx
mov edx, esi
push ecx
mov cl, byte [ebx + 0xd4b824]
call fcn.0042aaf0
add esp, 4
movzx esi, ax
push dword [0x541e98]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ax, si
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 0x43b240
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x4fb264
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call fcn.0044bf78
add esp, 0xc
test eax, eax
je 0x43b267
xor eax, eax
mov esp, ebp
pop ebp
ret
push esi
push 2
push 0
push dword [ebp - 4]
call fcn.0044da47
push dword [ebp - 4]
call fcn.0044d775
mov esi, eax
add esp, 0x10
cmp esi, 0x100000
jle 0x43b29b
push dword [ebp - 4]
call fcn.00449c65
add esp, 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esi + 1]
push edi
push eax
call fcn.00449be3
push 0
push 0
push dword [ebp - 4]
mov edi, eax
call fcn.0044da47
push dword [ebp - 4]
push esi
push 1
push edi
call fcn.0044dc9c
push dword [ebp - 4]
mov esi, eax
xor eax, eax
test esi, esi
cmovs esi, eax
call fcn.00449c65
add esp, 0x24
mov byte [esi + edi], 0
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43bb60
Capabilities:
Terminate process

Disassembly:
push ecx
test byte [0xd46d80], 4
jne 0x43bb74
cmp word [0xd46d86], 3
jne 0x43bb7b
call fcn.0043e9e0
pop ecx
ret
push str.Rebooting_the_VirtualHub_:___n
call fcn.0041cc00
add esp, 4
push 0
call fcn.0044d167
int3
Function at 0x43c3b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4ff004]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, cx
mov ecx, 0xf1
mov dword [ebp - 0x11c], eax
push ebx
push esi
push edi
cmp ax, cx
je 0x43c5cc
mov ecx, 0xf0
cmp ax, cx
je 0x43c5cc
mov ecx, eax
call fcn.0043bf20
mov ebx, eax
mov dword [ebp - 0x110], ebx
cmp dword [ebx], 0xffffffff
je 0x43c5cc
mov eax, dword [ebx + 0x34]
cmp eax, 6
je 0x43c5cc
cmp eax, 4
je 0x43c5cc
lea esi, [ebx + 0x20]
push ecx
lea edx, [ebp - 0x114]
mov ecx, esi
call fcn.00411770
movzx eax, ax
add esp, 4
test ax, ax
je 0x43c5cc
mov edi, dword [ebp - 0x114]
nop
push 0
movzx eax, ax
push eax
push edi
mov dword [0xd46d7c], 0
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x43c53f
test ebx, ebx
jle 0x43c4de
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movzx eax, word [esi]
movzx edx, bx
mov ebx, dword [esi + 4]
add ebx, eax
movzx eax, word [esi + 2]
mov dword [ebp - 0x10c], eax
cmp dx, word [ebp - 0x10c]
movzx ecx, ax
mov eax, edx
mov edx, dword [esi + 8]
cmovbe ecx, eax
movzx eax, cx
movzx ecx, ax
mov dword [ebp - 0x118], eax
lea eax, [ecx + edx]
cmp eax, ebx
jbe 0x43c4b7
sub ebx, edx
movzx eax, bx
sub ecx, eax
add ecx, dword [esi + 4]
jmp 0x43c4c2
mov ecx, eax
cmp ecx, ebx
jne 0x43c4c2
movzx eax, word [esi]
sub ecx, eax
mov eax, dword [ebp - 0x10c]
sub eax, dword [ebp - 0x118]
push dword [esi + 0x10]
mov dword [esi + 8], ecx
mov word [esi + 2], ax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movzx edx, word [esi]
xor ebx, ebx
mov eax, dword [esi + 4]
movzx ecx, word [esi + 2]
add eax, edx
cmp bx, cx
jae 0x43c513
mov edi, dword [esi + 8]
cmp edi, eax
jb 0x43c505
sub edi, edx
jmp 0x43c511
sub eax, edi
movzx eax, ax
mov ebx, eax
cmp ax, cx
jb 0x43c513
mov ebx, ecx
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx eax, bx
test bx, bx
mov ebx, dword [ebp - 0x110]
jne 0x43c440
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004423fe
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2746
je 0x43c59e
cmp esi, 0x2745
je 0x43c59e
push 0
push 0x100
lea eax, [ebp - 0x108]
push eax
push 0x400
push esi
push 0
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea eax, [ebp - 0x108]
push eax
push esi
push str.Send_failed_with_error__d:__s_n
call fcn.004362a0
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004423fe
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + 0x34]
cmp ecx, 2
jne 0x43c5b5
mov dword [eax + 0x34], 6
jmp 0x43c5c1
cmp ecx, 3
jne 0x43c5c1
mov dword [eax + 0x34], 4
mov ecx, dword [ebp - 0x11c]
call fcn.0043c110
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004423fe
mov esp, ebp
pop ebp
ret
Function at 0x43ca20
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4ff004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x500bac], 0xf0
push esi
push edi
mov esi, ecx
jb 0x43ca60
push str.cannot_allocate_socket_n
call fcn.004362a0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004423fe
mov esp, ebp
pop ebp
ret
movzx eax, dx
push eax
push 0x4f89b8
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.0041c830
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x43cad0
push 0
push 0x400
push 0xd77a60
push 0x400
push eax
push 0
push 0x12ff
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0xd77a60
push str.getaddrinfo_failed:__s_n
call fcn.004362a0
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004423fe
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov esi, eax
test esi, esi
je 0x43caed
nop dword [eax]
cmp dword [esi + 4], 2
je 0x43cb07
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x43cae0
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004423fe
mov esp, ebp
pop ebp
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push dword [esi + 0x10]
mov edi, eax
push dword [esi + 0x18]
push edi
call dword [sym.imp.WS2_32.dll_connect]
push dword [ebp - 0x14]
test eax, eax
jns 0x43cb49
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004423fe
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 1
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], 1
push eax
push 1
push 6
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, edi
call fcn.0043bd90
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
movzx eax, ax
pop esi
call fcn.004423fe
mov esp, ebp
pop ebp
ret