joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f740
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
call fcn.00414290
sub esp, 0x10
mov edi, esp
push eax
mov esi, esp
xor eax, eax
sub esp, 4
mov dword [esp], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
jmp 0x42f76a
cmp eax, 0
setne al
jmp 0x42f772
xor ebx, ebx
test al, 1
jne 0x42f77d
jmp 0x42f8fb
xor eax, eax
sub esp, 8
mov dword [esp], 0
mov dword [esp + 4], 0
call dword [sym.imp.USER32.dll_GetWindowLongW]
sub esp, 4
mov dword [esp], 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
xor ebx, ebx
cmp eax, 0
je 0x42f8f5
mov dword [ebp - 0x14], esi
sub esp, 4
mov dword [ebp - 0x20], eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
sub esp, 4
mov dword [esp], esi
call fcn.004236c0
add esp, 4
xor ebx, ebx
cmp eax, 0
je 0x42f8e6
mov ecx, eax
and ecx, 1
shl ecx, 1
mov dword [ebp - 0x1c], eax
mov ebx, eax
xor ebx, 1
add ebx, ecx
sub esp, 4
mov dword [esp], ebx
call fcn.004082a0
sub esp, 8
mov dword [ebp - 0x18], eax
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
call fcn.00409100
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov al, byte [eax]
mov byte [ebp - 0x10], al
mov byte [edi], 0x6a
mov byte [edi + 1], 0x56
mov byte [edi + 2], 0x52
mov byte [edi + 3], 0x5c
mov byte [edi + 4], 0x4f
mov byte [edi + 5], 0x51
mov byte [edi + 6], 0x4e
mov byte [edi + 7], 0x52
mov byte [edi + 8], 0x45
mov byte [edi + 9], 0x1c
mov byte [edi + 0xa], 0x57
mov byte [edi + 0xb], 0xac
mov byte [edi + 0xc], 0x51
mov byte [edi + 0xd], 0x26
xor eax, eax
cmp eax, 0xe
jae 0x42f8af
movzx edx, byte [edi + eax]
mov ecx, eax
add ecx, 0xf9cb7a21
mov esi, ecx
and esi, edx
shl esi, 1
add ecx, edx
sub ecx, esi
add ecx, 0x738108c2
mov edx, ecx
shl edx, 1
and edx, 0xee
xor ecx, 0xf7
add ecx, edx
add cl, 0x3f
mov byte [edi + eax], cl
mov edx, eax
add edx, 1
mov ecx, eax
xor ecx, 0xffffffff
or ecx, 1
add ecx, edx
mov edx, eax
and edx, 0xe
mov esi, eax
xor esi, 1
add eax, esi
sub eax, edx
add eax, ecx
jmp 0x42f855
sub esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [esp], edi
mov esi, dword [ebp - 0x18]
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
call fcn.00409280
mov bl, al
jmp 0x42f8cf
and bl, 1
jmp 0x42f8d4
sub esp, 4
mov dword [esp], esi
call fcn.004082b0
add esp, 4
jmp 0x42f8e4
jmp 0x42f8e6
sub esp, 4
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
and bl, 1
movzx eax, bl
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43aa00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [0x446b30]
mov eax, 0xffffffff
test ecx, ecx
je 0x43abf0
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
xor edx, edx
mov esi, dword [0x446b34]
nop
nop
cmp dword [esi + edx*8], 0x29df508e
je 0x43aa43
inc edx
cmp ecx, edx
jne 0x43aa30
jmp 0x43abe9
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, 0xffffffff
je 0x43abe9
lea eax, [esp + 8]
push eax
push 0
push 0
push 0
push ebp
push ebx
push 0x18
push ecx
push dword [0x446b38]
call fcn.004383c0
add esp, 0x24
cmp eax, 0xc0000023
jne 0x43abe9
push dword [esp + 8]
call fcn.00436db0
add esp, 4
mov edx, eax
mov ecx, dword [0x446b30]
mov eax, 0xffffffff
test ecx, ecx
je 0x43abdc
mov dword [esp + 4], edx
mov eax, dword [esp + 8]
mov dword [esp], eax
xor edx, edx
mov eax, dword [0x446b34]
nop
nop
nop
nop
cmp dword [eax + edx*8], 0x29df508e
je 0x43aad6
mov esi, edx
and esi, 1
xor edx, 1
lea edx, [edx + esi*2]
cmp edx, ecx
jb 0x43aab0
mov eax, 0xffffffff
mov edx, dword [esp + 4]
jmp 0x43abdc
mov ecx, dword [eax + edx*8 + 4]
cmp ecx, 0xffffffff
mov eax, 0xffffffff
mov edx, dword [esp + 4]
je 0x43abdc
lea eax, [esp + 8]
push eax
push dword [esp + 4]
mov esi, edx
push edx
push 0
push ebp
push ebx
push 0x18
push ecx
push dword [0x446b38]
call fcn.004383c0
add esp, 0x24
mov ebp, dword [esp + 0x2c]
test ebp, ebp
je 0x43ab6b
test eax, eax
js 0x43ab6b
test edi, edi
mov edx, esi
je 0x43abd4
mov ecx, dword [edx + 0xc]
shr ecx, 1
mov esi, dword [ebp]
cmp esi, ecx
jb 0x43ab31
mov esi, ecx
mov dword [esp], eax
test esi, esi
je 0x43abc8
add edx, 0x10
mov ebx, esi
and ebx, 3
je 0x43ab6f
xor ebp, ebp
movzx eax, word [edx]
xor ecx, ecx
test ax, ax
setne cl
lea edx, [edx + ecx*2]
mov word [edi], ax
add edi, 2
inc ebp
cmp ebx, ebp
jne 0x43ab48
mov ebx, esi
sub ebx, ebp
mov ebp, dword [esp + 0x2c]
jmp 0x43ab71
mov edx, esi
jmp 0x43abdc
mov ebx, esi
cmp esi, 4
jb 0x43abc8
movzx eax, word [edx]
xor ecx, ecx
test ax, ax
setne cl
lea esi, [edx + ecx*2]
mov word [edi], ax
movzx eax, word [edx + ecx*2]
xor ecx, ecx
test ax, ax
setne cl
lea edx, [esi + ecx*2]
mov word [edi + 2], ax
movzx eax, word [esi + ecx*2]
xor ecx, ecx
test ax, ax
setne cl
lea esi, [edx + ecx*2]
mov word [edi + 4], ax
movzx ecx, word [edx + ecx*2]
xor eax, eax
test cx, cx
setne al
mov word [edi + 6], cx
add edi, 8
lea edx, [esi + eax*2]
add ebx, 0xfffffffc
jne 0x43ab76
mov word [edi], 0
mov eax, dword [esp]
mov edx, dword [esp + 4]
mov ecx, dword [edx + 0xc]
shr ecx, 1
mov dword [ebp], ecx
push edx
mov esi, eax
call fcn.00436dd0
mov eax, esi
add esp, 4
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x10005020
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100330e3
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x100426ec]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x100426ec]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
push 4
push str.ATH_r
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
call fcn.10001ff0
push 0x20
mov dword [esp + 0x3c], 0
call fcn.10018f98
add esp, 4
mov dword [esp + 0xc], eax
mov byte [esp + 0x38], 1
test eax, eax
je 0x100050ae
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call fcn.10001710
mov esi, eax
jmp 0x100050b0
xor esi, esi
push esi
mov ecx, edi
mov byte [esp + 0x3c], 0
call fcn.10004430
test al, al
jne 0x100050d5
test esi, esi
je 0x100050ce
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x10]
mov esi, 0x14010025
jmp 0x100050d7
xor esi, esi
cmp dword [esp + 0x24], 0x10
jb 0x100050ea
push dword [esp + 0x10]
call fcn.10018f48
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.10018784
mov esp, ebp
pop ebp
ret

Function at 0x10005110
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100330e3
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x100426ec]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x100426ec]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
push 4
push str.ATA_r
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
call fcn.10001ff0
push 0x20
mov dword [esp + 0x3c], 0
call fcn.10018f98
add esp, 4
mov dword [esp + 0xc], eax
mov byte [esp + 0x38], 1
test eax, eax
je 0x1000519e
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call fcn.10001710
mov esi, eax
jmp 0x100051a0
xor esi, esi
push esi
mov ecx, edi
mov byte [esp + 0x3c], 0
call fcn.10004430
test al, al
jne 0x100051c5
test esi, esi
je 0x100051be
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x10]
mov esi, 0x14010025
jmp 0x100051c7
xor esi, esi
cmp dword [esp + 0x24], 0x10
jb 0x100051da
push dword [esp + 0x10]
call fcn.10018f48
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.10018784
mov esp, ebp
pop ebp
ret
Function at 0x100065d0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100426ec]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
xorps xmm0, xmm0
mov eax, 2
movq qword [ebp - 0x18], xmm0
movq qword [ebp - 0x10], xmm0
mov word [ebp - 0x18], ax
call dword [sym.imp.WS2_32.dll_htons]
push esi
mov word [ebp - 0x16], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x14], eax
push 0x10
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_connect]
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.10018784
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10006640
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x100426ec]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x18]
push edi
mov dword [ebp - 0x228], esi
test eax, eax
jne 0x1000667b
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10018784
mov esp, ebp
pop ebp
ret 0x14
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
jne 0x100066b0
call ebx
cmp eax, 0x2734
je 0x100066b0
cmp eax, 0x2733
je 0x100066b0
call ebx
mov dword [esi], eax
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10018784
mov esp, ebp
pop ebp
ret 0x14
mov eax, 0x10624dd3
imul dword [ebp + 0x10]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
mov ecx, 1
cmovg ecx, eax
xor ebx, ebx
mov dword [ebp - 0x224], ecx
test ecx, ecx
jle 0x10006799
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x234]
push eax
push 0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x114], 1
mov ecx, 0x41
lea esi, [ebp - 0x114]
lea edi, [ebp - 0x21c]
push edx
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x234], 1
mov dword [ebp - 0x230], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x100067b1
mov esi, dword [ebp + 8]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x220]
push eax
push 0x1007
push 0xffff
push esi
mov dword [ebp - 0x22c], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
je 0x10006779
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1000677f
mov eax, dword [ebp - 0x220]
test eax, eax
jg 0x10006860
inc ebx
mov eax, esi
lea edx, [eax + 1]
cmp ebx, dword [ebp - 0x224]
jl 0x100066e2
mov eax, 0xfffffffc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10018784
mov esp, ebp
pop ebp
ret 0x14
jns 0x100067cb
mov eax, 0xfffffffd
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10018784
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.WS2_32.dll___WSAFDIsSet]
lea eax, [ebp - 0x21c]
push eax
push esi
call edi
test eax, eax
jne 0x10006808
lea eax, [ebp - 0x114]
push eax
push esi
call edi
test eax, eax
jne 0x10006808
mov eax, 0xfffffffa
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10018784
mov esp, ebp
pop ebp
ret 0x14
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x220]
push eax
push 0x1007
push 0xffff
push esi
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x224], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
je 0x10006847
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1000684d
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x10006666
cmp eax, 0x2748
je 0x10006666
mov ecx, dword [ebp - 0x228]
pop edi
mov dword [ecx], eax
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.10018784
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10006a60
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov edi, eax
test eax, eax
jle 0x10006b19
mov eax, dword [ebp + 8]
inc eax
mov dword [esp + 0x14], eax
lea ebx, [ebx]
push ecx
push dword [ebp + 0x18]
push 0
push eax
call fcn.10006c00
test eax, eax
js 0x10006b0b
cmp byte [esi + 0x104], 0
je 0x10006ab8
push 0
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
jmp 0x10006ace
push 0x10
lea eax, [esi + 0x108]
push eax
push 0
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_sendto]
mov esi, eax
test esi, esi
jns 0x10006aec
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x10006ae8
cmp eax, 0x2714
jne 0x10006b00
xor esi, esi
jmp 0x10006aee
je 0x10006b0b
sub edi, esi
add ebx, esi
test edi, edi
jle 0x10006b16
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
jmp 0x10006a90
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x10006b30
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov edi, eax
mov dword [esp + 0xc], 0x10
test eax, eax
jle 0x10006bf0
mov eax, dword [ebp + 8]
inc eax
mov dword [esp + 0x14], eax
push ecx
push dword [ebp + 0x18]
push 1
push eax
call fcn.10006c00
test eax, eax
js 0x10006be2
cmp byte [esi + 0x104], 0
je 0x10006b8a
push 0
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
jmp 0x10006ba3
lea eax, [esp + 0xc]
push eax
lea eax, [esi + 0x108]
push eax
push 0
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov esi, eax
test esi, esi
jg 0x10006bd7
jns 0x10006bc3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x10006bbf
cmp eax, 0x2714
jne 0x10006bd7
xor esi, esi
jmp 0x10006bc5
je 0x10006be2
sub edi, esi
add ebx, esi
test edi, edi
jle 0x10006bed
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
jmp 0x10006b62
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10006c00
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x100426ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, 0x10624dd3
imul dword [ebp + 0x10]
sar edx, 6
push ebx
push esi
mov eax, edx
shr eax, 0x1f
push edi
mov edi, dword [ebp + 8]
add eax, edx
dec edi
test eax, eax
mov ecx, 1
cmovg ecx, eax
xor esi, esi
mov dword [ebp - 0x11c], ecx
test ecx, ecx
jle 0x10006ca4
mov ebx, dword [sym.imp.WS2_32.dll_select]
jmp 0x10006c50
cmp byte [ebp + 0xc], 0
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x110], 1
mov dword [ebp - 0x118], 1
mov dword [ebp - 0x114], 0
push 0
lea eax, [ebp - 0x110]
je 0x10006c8e
push 0
push eax
jmp 0x10006c91
push eax
push 0
lea eax, [edi + 1]
push eax
call ebx
test eax, eax
jne 0x10006cbc
inc esi
cmp esi, dword [ebp - 0x11c]
jl 0x10006c50
mov eax, 0xfffffffc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10018784
mov esp, ebp
pop ebp
ret 0x10
jns 0x10006ca9
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0xfffffffd
pop ebx
call fcn.10018784
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10007360
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x100426ec]
xor eax, esp
mov dword [esp + 0x198], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [esp + 0xc], edi
test edi, edi
je 0x100074ce
lea eax, [edi + 1]
test eax, eax
je 0x100074ce
cmp byte [ebx + 0x38], 0
je 0x100073ae
mov eax, dword [ebx]
call dword [eax + 0xc]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov byte [ebx + 0x38], 0
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x100073de
mov eax, 0xfffffc17
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.10018784
mov esp, ebp
pop ebp
ret 4
mov edx, dword [edi + 0x4d]
mov esi, dword [edi + 0x49]
cmp byte [edi], 0
mov edi, dword [edi + 0x45]
mov ecx, dword [ebx + 0x28]
push edx
push esi
push edi
je 0x1000742f
cmp esi, 1
sete al
mov byte [ecx + 0x104], al
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx + 0x20], eax
cmp eax, 0xffffffff
jne 0x10007446
mov eax, dword [sym.imp.WS2_32.dll_WSACleanup]
call eax
mov eax, 0xfffffc15
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.10018784
mov esp, ebp
pop ebp
ret 4
cmp esi, 1
sete al
mov byte [ecx + 0x104], al
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx + 0x24], eax
jmp 0x10007407
mov esi, dword [esp + 0xc]
mov ecx, ebx
movzx eax, byte [esi]
push eax
call fcn.10007280
mov eax, dword [ebx + 0x28]
push esi
cmp byte [eax + 0x104], 0
mov ecx, ebx
je 0x1000749c
call fcn.10007190
mov esi, eax
test esi, esi
je 0x100074b5
cmp byte [ebx + 0x38], 0
jne 0x100074b5
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0xc]
mov eax, dword [sym.imp.WS2_32.dll_WSACleanup]
call eax
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.10018784
mov esp, ebp
pop ebp
ret 4
call fcn.100070d0
mov esi, eax
test esi, esi
je 0x100074b5
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
mov eax, dword [sym.imp.WS2_32.dll_WSACleanup]
call eax
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.10018784
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x1a4]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 0xfffffc16
call fcn.10018784
mov esp, ebp
pop ebp
ret 4
Function at 0x10007840
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x100426ec]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0xac]
test esi, esi
je 0x1000786f
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x10007873
mov esi, dword [esp + 0x10]
push esi
mov byte [edi + 0xc1], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x100078b3
movq xmm0, qword [ecx]
movq qword [edi + 0x24], xmm0
movq xmm0, qword [ecx + 8]
movq qword [edi + 0x2c], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [edi + 0x34], xmm0
mov ax, word [ecx + 0x18]
mov word [edi + 0x3c], ax
mov al, byte [ecx + 0x1a]
mov byte [edi + 0x3e], al
cmp byte [ebx], 0
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
jne 0x100078d1
xor ecx, ecx
jmp 0x100078df
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100078d6
sub ecx, edx
push ecx
push ebx
lea ecx, [esp + 0x1c]
call fcn.10001ff0
lea eax, [edi + 0x24]
push eax
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.100079e0
mov ebx, eax
test ebx, ebx
jne 0x10007935
push eax
push eax
lea esi, [edi + 0xb0]
push esi
xorps xmm0, xmm0
movq qword [edi + 0x3f], xmm0
push 0x10012770
movq qword [edi + 0x47], xmm0
push eax
push eax
mov dword [esi + 0xd], 0x10007cb0
mov dword [esi + 9], edi
mov byte [esi + 8], al
call fcn.1001b0e3
add esp, 0x18
mov dword [esi + 4], eax
cmp dword [esp + 0x28], 0x10
jb 0x10007948
push dword [esp + 0x14]
call fcn.10018f48
add esp, 4
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.10018784
mov esp, ebp
pop ebp
ret 8

Function at 0x10007bf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
mov eax, dword [ebx]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x10007ca1
mov edx, dword [ebp + 8]
test edx, edx
je 0x10007ca1
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10007ca1
push esi
xor esi, esi
test eax, eax
je 0x10007c97
lea ecx, [ebx + 0x7c]
push edi
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [esi + edx]
push eax
push dword [ebx + 0x64]
mov dword [ebp - 4], 0
mov dword [ebx + 0x98], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
test edi, edi
jne 0x10007c79
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x10007c77
push 1
lea eax, [ebp - 4]
push eax
lea eax, [ebx + 0x7c]
push eax
push dword [ebx + 0x64]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov edi, eax
test edi, edi
je 0x10007c96
test edi, edi
setne al
test al, al
je 0x10007c96
mov ecx, dword [ebp - 4]
test ecx, ecx
jle 0x10007c96
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
add esi, ecx
lea ecx, [ebx + 0x7c]
sub eax, esi
jne 0x10007c27
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10009580
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
test ebx, ebx
jne 0x10009596
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x100095a7
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc
lea eax, [esi + 0xbc]
push eax
mov dword [ebp + 8], 0
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esi + 0x7c]
push eax
lea eax, [ebp + 8]
push eax
push edi
push ebx
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10009616
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1000963e
push 0
push dword [ebp + 0x10]
push dword [esi + 0x8c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
jne 0x1000962b
push 0
lea eax, [ebp + 8]
push eax
lea eax, [esi + 0x7c]
push eax
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push dword [esi + 0x8c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [ebp + 0xc]
mov esi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc
cmp eax, 0x102
je 0x100095f7
push dword [esi + 0x8c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [ebp + 0xc]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc