joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45cc15
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0045cb91
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x45cd84
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x45cd84
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x45cd39
jg 0x45cc71
test eax, eax
je 0x45cd2f
push 1
push 0x1000
call fcn.0044e96b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x45cc94
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x45cd26
push 0x8000
push ebx
call fcn.0044be99
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x45ccbd
jg 0x45ccb8
cmp ecx, 0x1000
jb 0x45ccbd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00450255
add esp, 0x10
cmp eax, 0xffffffff
je 0x45cd02
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x45ccb8
jl 0x45cce9
test ecx, ecx
jne 0x45ccaa
push dword [ebp - 0xc]
push ebx
call fcn.0044be99
push esi
call fcn.0044e9c8
add esp, 0xc
xor ebx, ebx
jmp 0x45cd92
cmp byte [edi + 0x24], 0
je 0x45cd19
cmp dword [edi + 0x20], 5
jne 0x45cd19
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x45cd24
mov ebx, dword [edi + 0x18]
jmp 0x45cd26
xor ebx, ebx
push esi
call fcn.0044e9c8
pop ecx
jmp 0x45cd92
test ecx, ecx
jg 0x45ccfb
jl 0x45cd39
test eax, eax
jae 0x45ccfb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00451a21
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x45cd59
cmp byte [edi + 0x1c], 0
je 0x45ccfb
jmp 0x45cd8a
push ebx
call fcn.00456458
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x45ccfb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x45cd92
cmp byte [edi + 0x1c], 0
je 0x45cd8f
mov ebx, dword [edi + 0x18]
jmp 0x45cd92
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00451a21
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x45dec0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x45deed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x45deed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401820
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
call fcn.00403db7
push 0
mov dword [eax], 0
call sub.WS2_32.dll_WSASetLastError
cmp word [0x414b1c], 0
je 0x40184e
push 0x11
push 2
jmp 0x401852
push 6
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [0x415c8c], eax
test eax, eax
jge 0x40186c
push str.Cant_get_socket
call fcn.00401340
jne 0x40187d
push 0
call fcn.0040eaed
add esp, 4
mov dword [0x415c8c], eax
mov ecx, dword [0x415ce8]
push 4
push ecx
push 4
push 0xffff
push eax
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x4018a5
push str.nnetfd_reuseaddr_failed
call fcn.004012a0
add esp, 4
mov ecx, dword [0x414af0]
mov edx, 2
mov word [ecx], dx
mov eax, edx
mov edx, dword [0x414af4]
mov word [edx], ax
test esi, esi
je 0x4018c7
mov eax, dword [esi]
mov dword [ecx + 4], eax
test bx, bx
je 0x4018dc
push ebx
call sub.WS2_32.dll_htons
mov ecx, dword [0x414af0]
mov word [ecx + 2], ax
xor edi, edi
test esi, esi
jne 0x4018e7
test bx, bx
je 0x401955
mov esi, 4
jmp 0x4018f6
mov ecx, dword [0x414af0]
push 0x10
push ecx
mov ecx, dword [0x415c8c]
push ecx
call sub.WS2_32.dll_bind
mov edi, eax
test edi, edi
je 0x40194f
call fcn.00403db7
cmp dword [eax], 0x2740
jne 0x40194f
mov eax, dword [0x414af0]
mov ecx, dword [eax + 4]
movzx edx, bx
push edx
push ecx
call sub.WS2_32.dll_inet_ntoa
push eax
push str.retrying_local__s:_d
call fcn.004012a0
push 1
call fcn.00403a7a
add esp, 0x10
call fcn.00403db7
dec esi
mov dword [eax], 0
test esi, esi
jg 0x4018f0
mov ecx, dword [0x414af0]
test edi, edi
je 0x401972
mov edx, dword [ecx + 4]
push edx
movzx esi, bx
call sub.WS2_32.dll_inet_ntoa
push eax
push str.Cant_grab__s:_d_with_bind
mov edx, esi
call fcn.00401340
cmp word [0x414b0c], 0
je 0x401986
mov eax, dword [0x415c8c]
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ebp + 0xc]
mov edx, dword [0x414af4]
push eax
mov dword [edx + 4], ecx
call sub.WS2_32.dll_htons
cmp dword [0x414ad8], 0
mov ecx, dword [0x414af4]
mov word [ecx + 2], ax
je 0x4019bd
push str.Warning:_source_routing_unavailable_on_this_machine__ignoring
call fcn.004012a0
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
call edi
push 0
push 0x415ca0
call fcn.0040edf0
add esp, 8
test eax, eax
jne 0x4019f2
mov edx, dword [0x414af4]
mov eax, dword [0x415c8c]
push 0x10
push edx
push eax
call sub.WS2_32.dll_connect
mov esi, eax
jmp 0x4019ff
push 0x274c
or esi, 0xffffffff
call sub.WS2_32.dll_WSASetLastError
push 0xfffffffffffffff5
call edi
test esi, esi
je 0x40197c
call fcn.00403db7
mov esi, eax
call sub.WS2_32.dll_WSAGetLastError
mov ecx, dword [0x415c8c]
push 2
push ecx
mov dword [esi], eax
call sub.WS2_32.dll_shutdown
mov edx, dword [0x415c8c]
push edx
call sub.WS2_32.dll_closesocket
call fcn.00403db7
mov eax, dword [eax]
push eax
call sub.WS2_32.dll_WSASetLastError
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
Function at 0x401df0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [0x415c88]
push esi
mov esi, dword [0x414004]
push 0
push 1
push eax
push esi
call sub.WS2_32.dll_send
cmp eax, 1
je 0x401e21
call fcn.00403db7
mov ecx, dword [eax]
push ecx
push str.udptest_first_write_failed___errno__d
call fcn.004012a0
add esp, 8
mov eax, dword [0x414b24]
test eax, eax
je 0x401e35
push eax
call fcn.00403a7a
add esp, 4
jmp 0x401e83
mov eax, dword [esp + 8]
push edi
xor edx, edx
push edx
push edx
push 0x7a69
push eax
mov word [0x414b1c], dx
mov dword [0x414b24], 5
call fcn.00401820
mov edi, eax
add esp, 0x10
test edi, edi
jle 0x401e6b
push 2
push esi
call sub.WS2_32.dll_shutdown
push edi
call sub.WS2_32.dll_closesocket
inc word [0x414b1c]
mov dword [0x414b24], 0
pop edi
call fcn.00403db7
mov ecx, dword [0x415c88]
push 0
push 1
push ecx
push esi
mov dword [eax], 0
call sub.WS2_32.dll_send
cmp eax, 1
jne 0x401ea8
mov eax, esi
pop esi
ret
push 2
push esi
call sub.WS2_32.dll_shutdown
push esi
call sub.WS2_32.dll_closesocket
or eax, 0xffffffff
pop esi
ret
Function at 0x403490
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4133f8]
jne 0x40349a
repz ret
jmp fcn.00404929

Function at 0x40ab15
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00407d85
and dword [ebp - 4], 0
cmp dword [0x4149e0], 0
mov ebx, eax
jne 0x40abc6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40ac77
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40ac77
push eax
call fcn.00407d13
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4149e0], eax
call esi
push eax
call fcn.00407d13
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4149e4], eax
call esi
push eax
call fcn.00407d13
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4149e8], eax
call esi
push eax
call fcn.00407d13
pop ecx
mov dword [0x4149f0], eax
test eax, eax
je 0x40abc6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407d13
pop ecx
mov dword [0x4149ec], eax
mov eax, dword [0x4149ec]
cmp eax, ebx
je 0x40ac1e
cmp dword [0x4149f0], ebx
je 0x40ac1e
push eax
call fcn.00407d8e
push dword [0x4149f0]
mov esi, eax
call fcn.00407d8e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ac1e
test edi, edi
je 0x40ac1e
call esi
test eax, eax
je 0x40ac15
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ac15
test byte [ebp - 0xc], 1
jne 0x40ac1e
or dword [ebp + 0x10], 0x200000
jmp 0x40ac57
mov eax, dword [0x4149e4]
cmp eax, ebx
je 0x40ac57
push eax
call fcn.00407d8e
pop ecx
test eax, eax
je 0x40ac57
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ac57
mov eax, dword [0x4149e8]
cmp eax, ebx
je 0x40ac57
push eax
call fcn.00407d8e
pop ecx
test eax, eax
je 0x40ac57
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4149e0]
call fcn.00407d8e
pop ecx
test eax, eax
je 0x40ac77
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ac79
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001000
Capabilities:
Hash data using crc32b

Disassembly:
push ebx
xor edx, edx
push edi
xor eax, eax
test dl, 1
je 0x10001010
mov eax, 0x80
mov ecx, edx
shr ecx, 1
test cl, 1
je 0x1000101c
or eax, 0x40
shr ecx, 1
test cl, 1
je 0x10001026
or eax, 0x20
shr ecx, 1
test cl, 1
je 0x10001030
or eax, 0x10
shr ecx, 1
test cl, 1
je 0x1000103a
or eax, 8
shr ecx, 1
test cl, 1
je 0x10001044
or eax, 4
shr ecx, 1
test cl, 1
je 0x1000104e
or eax, 2
test cl, 2
je 0x10001056
or eax, 1
shl eax, 0x18
mov ecx, eax
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
xor edi, edi
mov dword [esi + edx*4], ecx
mov eax, ecx
lea ecx, [edi + 0x1f]
jmp 0x10001110
test al, 1
je 0x1000111d
mov ebx, 1
shl ebx, cl
or edi, ebx
dec ecx
shr eax, 1
cmp ecx, 0xffffffff
jg 0x10001110
mov dword [esi + edx*4], edi
inc edx
cmp edx, 0xff
jle 0x10001004
pop edi
pop ebx
ret

Function at 0x10001140
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x10031440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push 0x10029314
push eax
lea eax, [ebp - 0x408]
push eax
or esi, 0xffffffff
mov dword [ebp - 0x408], 0
call fcn.10012497
add esp, 0xc
test eax, eax
je 0x10001191
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100123ca
mov esp, ebp
pop ebp
ret 8
push ebx
push edi
mov ecx, dword [ebp - 0x408]
push ecx
push 0x400
lea edx, [ebp - 0x404]
push 1
push edx
call fcn.10012728
add esp, 0x10
mov ecx, eax
lea edx, [ebp - 0x404]
test eax, eax
je 0x100011da
lea esp, [esp]
movzx ebx, byte [edx]
mov edi, esi
and edi, 0xff
xor edi, ebx
mov ebx, dword [ebp + 8]
shr esi, 8
xor esi, dword [ebx + edi*4]
inc edx
dec ecx
jne 0x100011c0
cmp eax, 0x400
je 0x10001193
mov eax, dword [ebp - 0x408]
push eax
call fcn.100127b2
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
mov eax, esi
pop ebx
xor ecx, ebp
not eax
pop esi
call fcn.100123ca
mov esp, ebp
pop ebp
ret 8
Function at 0x10001210
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x1002931c
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [esi], 0xffffffff
mov dword [ebp - 4], 0
call fcn.100128e2
add esp, 0xc
test eax, eax
je 0x10001241
xor al, al
mov esp, ebp
pop ebp
ret 4
push edi
push 0x400
call fcn.10012929
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
jne 0x1000126d
mov edx, dword [ebp - 4]
push edx
call fcn.100127b2
add esp, 4
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
push eax
push 0x400
push 1
push edi
call fcn.10012728
add esp, 0x10
test eax, eax
je 0x100012ca
push ebx
mov ecx, eax
mov edx, edi
test eax, eax
je 0x100012b1
mov edi, edi
mov eax, dword [esi]
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
mov ebx, dword [ebp + 8]
shr eax, 8
xor eax, dword [ebx + edi*4]
inc edx
dec ecx
mov dword [esi], eax
jne 0x10001290
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push ecx
push 0x400
push 1
push edi
call fcn.10012728
add esp, 0x10
test eax, eax
jne 0x10001286
pop ebx
push edi
call fcn.100129bd
mov edx, dword [ebp - 4]
push edx
call fcn.100127b2
mov eax, dword [esi]
not eax
add esp, 8
mov dword [esi], eax
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x100012f0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x10029314
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [esi], 0xffffffff
mov dword [ebp - 4], 0
call fcn.10012497
add esp, 0xc
test eax, eax
je 0x10001321
xor al, al
mov esp, ebp
pop ebp
ret 4
push edi
push 0x400
call fcn.10012929
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
jne 0x1000134d
mov edx, dword [ebp - 4]
push edx
call fcn.100127b2
add esp, 4
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
push eax
push 0x400
push 1
push edi
call fcn.10012728
add esp, 0x10
test eax, eax
je 0x100013aa
push ebx
mov ecx, eax
mov edx, edi
test eax, eax
je 0x10001391
mov edi, edi
mov eax, dword [esi]
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
mov ebx, dword [ebp + 8]
shr eax, 8
xor eax, dword [ebx + edi*4]
inc edx
dec ecx
mov dword [esi], eax
jne 0x10001370
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push ecx
push 0x400
push 1
push edi
call fcn.10012728
add esp, 0x10
test eax, eax
jne 0x10001366
pop ebx
push edi
call fcn.100129bd
mov edx, dword [ebp - 4]
push edx
call fcn.100127b2
mov eax, dword [esi]
not eax
add esp, 8
mov dword [esi], eax
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x10001410
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x10031440]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x198]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10001449
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100123ca
mov esp, ebp
pop ebp
ret
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x100326f4], eax
cmp eax, 0xffffffff
je 0x10001439
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [0x100326f8], eax
test eax, eax
je 0x10001439
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [0x10132704], 0x10001f00
mov al, 1
call fcn.100123ca
mov esp, ebp
pop ebp
ret

Function at 0x10001490
Capabilities:
Connect socket
Create thread
Encode data using xor
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10031440]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x100326f4], 0xffffffff
push esi
mov esi, ecx
jne 0x10001503
push 0x100
push 0
push 0x1013df38
call fcn.10014a00
add esp, 0xc
xor eax, eax
mov cl, byte [eax + 0x10029440]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x1013df38], cl
inc eax
cmp eax, 0x100
jb 0x100014c2
push 0x1013df38
push 0
mov ecx, 0x101328a0
call fcn.10004f30
add esp, 8
xor al, al
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100123ca
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
mov edx, 2
push eax
mov word [ebp - 0x18], dx
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
cmp eax, 0xffffffff
jne 0x1000154b
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x1000154b
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.10014690
add esp, 0xc
mov eax, dword [0x100326f4]
push 0x10
lea edx, [ebp - 0x18]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
jne 0x100015ab
call esi
cmp eax, 0x2733
je 0x100015ab
call esi
push eax
mov eax, 2
call fcn.1000e8f0
push eax
push 0
mov ecx, 0x101328a0
call fcn.10004f30
add esp, 0xc
mov esi, 0x100326f0
call fcn.10001650
xor al, al
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100123ca
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x100326f8]
mov edx, dword [0x100326f4]
push 0x23
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x100015d0
call esi
push eax
mov eax, 3
jmp 0x10001579
push 0x80000
push 0
push 0x100326fc
call fcn.10014a00
add esp, 0xc
push 0x80000
push 0
push 0x100b2700
mov dword [0x100b26fc], 0
call fcn.10014a00
add esp, 0xc
push 0x1013dcf4
push 0
push 0x100326f0
push 0x10001c10
push 0
push 0
mov dword [0x10132700], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 8]
mov dword [0x10132724], eax
xor ecx, ebp
mov byte [0x10132728], 1
mov al, 1
pop esi
call fcn.100123ca
mov esp, ebp
pop ebp
ret 4
Function at 0x10001650
Capabilities:
Terminate thread

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esi + 0x100034], ebx
je 0x10001686
mov dword [0x1013dcf4], 0xffffffff
mov eax, dword [esi + 0x100034]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x100034]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x100034], ebx
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x1000169c
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x100016ad
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 8], ebx
mov byte [esi + 0x100038], bl
pop ebx
ret
Function at 0x100016e0
Capabilities:
Encode data using xor
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, eax
mov eax, dword [esi + 0x8000c]
xor edi, edi
push edi
mov ecx, 0x80000
sub ecx, eax
push ecx
lea edx, [eax + esi + 0xc]
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x10001767
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x10001894
push 0x100
push 0
push 0x1013df38
call fcn.10014a00
add esp, 0xc
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x10029740]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x1013df38], cl
inc eax
cmp eax, 0x100
jb 0x10001740
call edi
push eax
push 0x1013df38
jmp 0x100018df
add dword [esi + 0x8000c], eax
mov eax, dword [esi + 0x8000c]
cmp eax, 4
jl 0x10001894
lea esp, [esp]
mov al, byte [esi + edi + 0xc]
lea edx, [esi + 0xc]
cmp al, 0xc1
jne 0x10001796
movzx ebx, byte [edi + esi + 0xd]
mov cl, byte [edi + esi + 0xf]
jmp 0x100017b5
cmp al, 0xc2
jne 0x100018ce
movzx ecx, byte [edi + esi + 0xd]
shl cx, 8
movzx ebx, cx
movzx ecx, byte [edi + esi + 0xe]
or ebx, ecx
mov cl, byte [edi + esi + 0x10]
cmp ebx, 4
jl 0x1000189d
cmp ebx, 0x80000
jg 0x1000189d
cmp ebx, dword [esi + 0x8000c]
jg 0x1000186c
cmp al, 0xc1
jne 0x10001808
mov dl, byte [edi + esi + 0xe]
mov byte [ebp - 4], dl
lea edx, [ebx - 3]
xor eax, eax
lea ecx, [edi + esi + 0xf]
test edx, edx
jle 0x10001834
mov dl, byte [ecx + eax]
add dl, byte [ebp - 4]
lea ecx, [edi + esi + 0xf]
xor dl, 0xa0
mov byte [ecx + eax], dl
inc eax
lea edx, [ebx - 3]
cmp eax, edx
jl 0x100017ee
jmp 0x10001834
mov cl, byte [edi + esi + 0xf]
lea edx, [ebx - 4]
xor eax, eax
mov byte [ebp - 4], cl
lea ecx, [edi + esi + 0x10]
test edx, edx
jle 0x10001834
mov dl, byte [ecx + eax]
add dl, byte [ebp - 4]
lea ecx, [edi + esi + 0x10]
xor dl, 0xa0
mov byte [ecx + eax], dl
inc eax
lea edx, [ebx - 4]
cmp eax, edx
jl 0x1000181c
mov al, byte [ecx]
mov edx, dword [esi + 0x100014]
mov byte [ebp - 8], al
mov ecx, dword [ebp - 8]
push ebx
lea eax, [esi + edi + 0xc]
push eax
push ecx
call edx
sub dword [esi + 0x8000c], ebx
add esp, 0xc
add edi, ebx
cmp dword [esi + 0x8000c], 0
jg 0x10001780
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jle 0x10001894
mov eax, dword [esi + 0x8000c]
test eax, eax
jle 0x10001894
mov ecx, 0x80000
sub ecx, edi
cmp eax, ecx
jg 0x10001894
push eax
lea eax, [edi + esi + 0xc]
push eax
push edx
call fcn.10012b40
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, cl
push ecx
movzx edx, al
push ebx
push edx
mov eax, 6
call fcn.1000e8f0
push eax
push 0
mov ecx, 0x101328a0
call fcn.10004f30
add esp, 0x14
call fcn.10001650
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [edi + esi + 0xc]
push eax
mov eax, 5
call fcn.1000e8f0
push eax
push 0
mov ecx, 0x101328a0
call fcn.10004f30
add esp, 0xc
call fcn.10001650
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001900
Capabilities:
Encode data using xor
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8000c
call fcn.10023770
mov eax, dword [0x10031440]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1013270c
mov esi, ecx
mov edi, edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100326f4], 0xffffffff
je 0x10001a25
cmp byte [0x10132728], 0
je 0x10001a25
push esi
lea eax, [ebp - 0x80008]
push edi
push eax
call fcn.10014690
mov al, byte [ebp - 0x80008]
add esp, 0xc
cmp al, 0xc1
jne 0x1000198b
mov cl, byte [ebp - 0x80006]
lea edi, [esi - 3]
xor eax, eax
test edi, edi
jle 0x100019e8
mov dl, byte [ebp + eax - 0x80005]
xor dl, 0xa0
sub dl, cl
mov byte [ebp + eax - 0x80005], dl
inc eax
cmp eax, edi
jl 0x10001971
jmp 0x100019e8
cmp al, 0xc3
jne 0x100019ba
mov cl, byte [ebp - 0x80003]
lea edi, [esi - 6]
xor eax, eax
test edi, edi
jle 0x100019e8
mov edi, edi
mov dl, byte [ebp + eax - 0x80002]
xor dl, 0xa0
sub dl, cl
mov byte [ebp + eax - 0x80002], dl
inc eax
cmp eax, edi
jl 0x100019a0
jmp 0x100019e8
mov cl, byte [ebp - 0x80005]
lea edi, [esi - 4]
xor eax, eax
test edi, edi
jle 0x100019e8
lea esp, [esp]
mov dl, byte [ebp + eax - 0x80004]
xor dl, 0xa0
sub dl, cl
mov byte [ebp + eax - 0x80004], dl
inc eax
cmp eax, edi
jl 0x100019d0
mov eax, dword [0x10132700]
test eax, eax
jle 0x10001a7e
lea ecx, [eax + esi]
cmp ecx, 0x80000
jle 0x10001a43
mov eax, 7
push ecx
call fcn.1000e8f0
push eax
push 0
mov ecx, 0x101328a0
call fcn.10004f30
add esp, 0xc
mov esi, 0x100326f0
call fcn.10001650
push 0x1013270c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100123ca
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 0x80008]
push ecx
lea edx, [eax + 0x100b2700]
push edx
call fcn.10014690
add esp, 0xc
add dword [0x10132700], esi
push 0x1013270c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.100123ca
mov esp, ebp
pop ebp
ret
xor edi, edi
test esi, esi
jle 0x10001a60
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [0x100326f4]
push 0
push esi
lea eax, [ebp + edi - 0x80008]
push eax
push ecx
call ebx
cmp eax, 0xffffffff
je 0x10001aad
sub esi, eax
add edi, eax
test esi, esi
jg 0x10001a8a
jmp 0x10001a60
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
cmp eax, 0x2733
jne 0x10001aeb
mov eax, dword [0x10132700]
lea ecx, [eax + esi]
cmp ecx, 0x80000
jle 0x10001ad6
mov eax, 8
jmp 0x10001a05
push esi
lea edx, [ebp + edi - 0x80008]
push edx
lea eax, [eax + 0x100b2700]
push eax
jmp 0x10001a52
call ebx
push eax
mov eax, 9
jmp 0x10001a06