joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a8bc
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41a8e7
test byte [esp + 8], 0x80
je 0x41a8d6
and al, 0xfe
jmp 0x41a8d8
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x41a8f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041be6a
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x41a9fd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41aa1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041be6a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x41aa3e
test byte [esp + 8], 2
je 0x41aa3e
mov dword [0x42bbac], 0xd
mov dword [0x42bbb0], 5
jmp 0x41aa19
xor eax, eax
ret

Function at 0x41f479
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42b1c0
cmp edx, dword [eax]
je 0x41f49b
add eax, 8
inc ecx
cmp eax, 0x42b250
jl 0x41f48c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42b1c0]
jne 0x41f5c9
mov eax, dword [0x42bc08]
cmp eax, 1
je 0x41f5a3
test eax, eax
jne 0x41f4cc
cmp dword [0x428c38], 1
je 0x41f5a3
cmp edx, 0xfc
je 0x41f5c9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41f503
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041e0d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041e050
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41f546
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041e050
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x426688
push edi
call fcn.0041b020
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041e0d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041e0e0
lea eax, [ebp - 0xa0]
push 0x423b74
push eax
call fcn.0041e0e0
push dword [esi + 0x42b1c4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041e0e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00420dd5
add esp, 0x2c
pop edi
jmp 0x41f5c9
lea eax, [ebp + 8]
lea esi, [esi + 0x42b1c4]
push 0
push eax
push dword [esi]
call fcn.0041e050
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x100016eb
Capabilities:
Connect socket

Disassembly:
push ecx
mov eax, dword [edi + 0x18]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
je 0x10001707
call fcn.10018d4f
mov esi, dword [edi + 0x18]
call fcn.10018cef
mov dword [edi + 0x18], ebx
mov eax, dword [edi + 0x1c]
cmp eax, 0xffffffff
je 0x1000171a
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [edi + 0x1c], 0xffffffff
mov ecx, dword [edi + 0x2c]
push ebx
push ebx
push ebx
push ebx
call fcn.100038c9
mov ecx, dword [edi + 0x30]
push ebx
push ebx
push ebx
push ebx
call fcn.100038c9
add esp, 0x20
xor eax, eax
inc eax
push 6
push eax
push 2
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], ebx
mov dword [edi + 0x13f0], ebx
mov dword [edi + 0x13ec], ebx
mov dword [edi + 0x3dc], ebx
mov dword [edi + 0x3e0], ebx
mov dword [edi + 0x3e4], ebx
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [edi + 0x1c], eax
je 0x100017d2
push 0x10
push edi
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x100017d2
mov eax, dword [edi + 0x40]
push str.http:
push dword [eax]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10001796
mov eax, dword [edi + 0x24]
jmp 0x100017d7
push dword [edi + 0x14]
call fcn.10018ca8
cmp eax, ebx
pop ecx
mov dword [edi + 0x18], eax
je 0x100017d2
mov ecx, dword [edi + 0x1c]
lea edx, [eax + 0xf8]
lea esi, [eax + 0xfc]
mov dword [edx], ecx
mov dword [esi], ecx
mov dword [eax + 0x110], edx
mov dword [eax + 0x114], esi
mov eax, dword [edi + 0x18]
call fcn.10018fc8
cmp eax, 1
je 0x10001791
mov dword [edi + 0x24], ebx
xor eax, eax
pop esi
pop ebx
pop ecx
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [edi + 0x24], 0
push esi
jne 0x100017ec
xor eax, eax
jmp 0x10001863
mov eax, dword [ebx + 4]
and dword [ebp - 4], 0
test eax, eax
mov dword [ebp - 8], eax
jle 0x10001860
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 4]
mov eax, 0x1000
cmp ecx, eax
jl 0x1000180b
mov ecx, eax
mov eax, dword [ebx]
mov esi, dword [edi + 0x18]
add eax, dword [ebp - 4]
test esi, esi
je 0x10001829
push ecx
push eax
call fcn.1001bea1
test eax, eax
pop ecx
pop ecx
jge 0x10001836
or esi, 0xffffffff
jmp 0x10001838
push 0
push ecx
push eax
push dword [edi + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
test esi, esi
jle 0x10001866
mov eax, dword [edi + 0x3e8]
test eax, eax
je 0x10001855
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10001866
add dword [ebp - 4], esi
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jl 0x100017fa
xor eax, eax
inc eax
pop esi
leave
ret
and dword [edi + 0x24], 0
jmp 0x100017e8
Function at 0x1000186f
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
push ecx
cmp dword [esi + 0x24], 0
push ebx
push ebp
push edi
jne 0x10001881
xor eax, eax
jmp 0x10001958
mov edi, dword [esi + 0x13f0]
mov eax, edi
cdq
mov ebx, closesocket
add eax, ebx
adc edx, 0
mov dword [esp + 0x10], edx
mov ebp, 0x1000
js 0x100018e5
jg 0x100018a5
cmp eax, ebp
jbe 0x100018e5
mov ecx, dword [esi + 0x13ec]
test ecx, ecx
je 0x100018e5
cmp edi, ebp
je 0x100018bc
mov eax, edi
sub eax, ecx
cmp eax, 0x10
jg 0x100018e5
mov eax, edi
sub eax, ecx
push eax
mov dword [esi + 0x13f0], eax
lea eax, [ecx + esi + 0x3ec]
push eax
lea eax, [esi + 0x3ec]
push eax
call sub.MSVCRT.dll_memmove
add esp, 0xc
and dword [esi + 0x13ec], 0
mov eax, dword [esi + 0x13f0]
mov ecx, ebp
sub ecx, eax
cmp ecx, ebx
jle 0x100018f5
mov ecx, ebx
mov edx, dword [esi + 0x18]
xor ebx, ebx
cmp edx, ebx
lea eax, [eax + esi + 0x3ec]
je 0x10001912
push ecx
push eax
push edx
call fcn.10018d28
add esp, 0xc
jmp 0x1000191e
push ebx
push ecx
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, ebx
jge 0x1000192c
mov dword [esi + 0x24], ebx
jmp 0x1000187a
mov eax, dword [esi + 0x3e8]
cmp eax, ebx
je 0x10001944
push ebx
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10001924
add dword [esi + 0x13f0], edi
cmp edi, ebx
jne 0x10001955
mov dword [esi + 0x28], 1
mov eax, dword [esi + 0x24]
pop edi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x100027e5
Capabilities:
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
push edi
push str..cached_header
push dword [ebp + 8]
call fcn.10003833
push str..cached_part
push dword [eax]
mov dword [ebp - 0xc], eax
call fcn.10003833
add esp, 0x10
xor edi, edi
push edi
push edi
push 2
push edi
push 1
push 0x40000000
push dword [eax]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x10002843
mov esi, dword [ebp - 0xc]
call fcn.100037e3
mov esi, dword [ebp - 0x10]
call fcn.100037e3
mov eax, edi
pop edi
pop esi
leave
ret
push edi
push edi
push edi
push edi
push edi
push edi
push 0x1002a1a1
mov dword [ebp - 0x4c], 3
mov dword [ebp - 0x48], 0xe
mov dword [ebp - 0x44], 0x18
mov dword [ebp - 0x40], 0x16
mov dword [ebp - 0x3c], 0x14
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x34], 0xd
mov dword [ebp - 0x30], 9
mov dword [ebp - 0x2c], 0x15
mov dword [ebp - 0x28], 0x1c
mov dword [ebp - 0x24], 0x1d
mov dword [ebp - 0x20], 0x1e
mov dword [ebp - 0x1c], 0x1f
mov dword [ebp - 0x18], 0x20
call fcn.1000384f
add esp, 0x1c
mov esi, eax
mov dword [ebp - 4], edi
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0x4c]
mov ecx, dword [ebx + eax*8 + 0x2d8]
cmp dword [ecx + 4], edi
je 0x100028e9
mov eax, dword [ebx + eax*8 + 0x2d4]
mov eax, dword [eax]
push edi
push edi
push edi
push edi
push edi
push dword [ecx]
push esi
call fcn.10003a57
add esp, 0x1c
inc dword [ebp - 4]
cmp dword [ebp - 4], 0xe
jb 0x100028bd
mov eax, dword [ebx + 0x180]
mov eax, dword [eax]
push edi
push edi
push edi
push edi
push edi
push edi
push esi
call fcn.10003a57
add esp, 0x1c
push edi
lea eax, [ebp - 0x14]
push eax
push dword [esi + 4]
push dword [esi]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
call fcn.1000380b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
push 9
push dword [eax]
mov eax, dword [ebp - 0x10]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor edi, edi
inc edi
jmp 0x1000282d
Function at 0x10002944
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
push edi
push str..cached_header
push dword [ebp + 0xc]
call fcn.10003833
pop ecx
pop ecx
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1000296f
test al, 0x10
je 0x10002977
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esi]
call fcn.100034b6
mov edi, eax
pop ecx
mov dword [ebp - 0x10], edi
call fcn.100037e3
test edi, edi
jne 0x10002994
xor eax, eax
jmp 0x10002ae0
mov esi, dword [ebp + 8]
push ebx
push 0x21
add esi, 0x2d8
pop ebx
mov ecx, dword [esi]
xor eax, eax
push eax
push eax
push eax
push eax
call fcn.100038c9
add esp, 0x10
add esi, 8
dec ebx
jne 0x100029a1
mov esi, dword [edi]
mov eax, dword [edi + 4]
add eax, esi
cmp esi, eax
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x40], 0xe
mov dword [ebp - 0x3c], 0x18
mov dword [ebp - 0x38], 0x16
mov dword [ebp - 0x34], 0x14
mov dword [ebp - 0x30], 0xc
mov dword [ebp - 0x2c], 9
mov dword [ebp - 0x28], 0x15
mov dword [ebp - 0x24], 0x1c
mov dword [ebp - 0x20], 0x1d
mov dword [ebp - 0x1c], 0x1e
mov dword [ebp - 0x18], 0x1f
mov dword [ebp - 0x14], 0x20
mov dword [ebp - 4], eax
je 0x10002ad7
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + eax*4 - 0x44]
mov eax, dword [ebp + 8]
lea edi, [eax + ebx*8 + 0x2d4]
mov eax, dword [edi]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x10002a9f
mov edx, dword [ebp - 4]
sub edx, esi
cmp ecx, edx
jg 0x10002a9f
mov eax, dword [eax]
push esi
call fcn.10003eab
test eax, eax
pop ecx
je 0x10002a9f
mov eax, dword [edi]
add esi, dword [eax + 4]
cmp esi, dword [ebp - 4]
mov edi, esi
jmp 0x10002a7d
push 0x1002a460
push edi
call fcn.10003e8a
test eax, eax
pop ecx
pop ecx
jne 0x10002a82
inc edi
cmp edi, dword [ebp - 4]
mov dword [ebp - 0xc], edi
jne 0x10002a68
mov eax, dword [ebp + 8]
sub edi, esi
push esi
mov esi, dword [eax + ebx*8 + 0x2d8]
call fcn.10003884
mov esi, dword [ebp - 0xc]
pop ecx
mov dword [ebp - 0xc], 1
inc dword [ebp - 8]
cmp dword [ebp - 8], 0xd
jb 0x10002a2c
cmp dword [ebp - 0xc], 0
jne 0x10002aaf
inc esi
cmp esi, dword [ebp - 4]
je 0x10002ad4
push 0x1002a460
push esi
call fcn.10003e8a
test eax, eax
pop ecx
pop ecx
jne 0x10002acb
inc esi
cmp esi, dword [ebp - 4]
jne 0x10002ab4
cmp esi, dword [ebp - 4]
jne 0x10002a24
mov edi, dword [ebp - 0x10]
call fcn.10003598
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
leave
ret
Function at 0x10003435
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x1003b320], 0
push esi
push edi
mov edx, 0xff
jne 0x10003474
xor esi, esi
push 8
mov ecx, esi
pop edi
test cl, 1
je 0x1000345b
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x1000345d
shr ecx, 1
dec edi
jne 0x1000344c
mov edi, esi
xor edi, edx
inc esi
cmp esi, 0x100
mov dword [edi*4 + 0x1003b320], ecx
jb 0x10003447
xor ecx, ecx
cmp dword [esp + 0x10], ecx
jle 0x100034a0
mov esi, dword [esp + 0xc]
movzx esi, byte [ecx + esi]
mov edi, eax
and edi, edx
shr eax, 8
xor esi, edi
xor eax, dword [esi*4 + 0x1003b320]
xor eax, 0xff000000
inc ecx
cmp ecx, dword [esp + 0x10]
jl 0x1000347c
pop edi
pop esi
ret

Function at 0x100034b6
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push dword [ebp + 8]
call fcn.1000341c
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
mov dword [ebp - 0xc], ebx
jne 0x100034d4
xor eax, eax
jmp 0x10003547
push esi
push edi
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1000353c
xor esi, esi
cmp dword [ebp - 4], esi
jne 0x1000353c
push esi
push esi
push esi
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
cmp edi, esi
mov dword [ebp - 0x10], edi
je 0x1000353c
mov eax, dword [ebp - 8]
push esi
push esi
push esi
push 4
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x10003529
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push ebx
call esi
jmp 0x10003543
push 0x10
call sub.MSVCRT.dll_malloc
lea esi, [ebp - 0x18]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
movsd dword es:[edi], dword [esi]
jmp 0x10003545
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10015762
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push dword [ebp + 8]
call fcn.1000354a
mov ebx, eax
test ebx, ebx
pop ecx
je 0x100157d8
xor eax, eax
mov cl, byte [eax + 0x100310d8]
xor cl, 0x80
mov byte [ebp + eax - 0x14], cl
inc eax
cmp eax, 0x14
jl 0x1001577a
mov eax, dword [0x100310ec]
push edi
lea ecx, [ebp - 0x14]
push ecx
push dword [ebx + 4]
add eax, 0x14
push dword [ebx]
call fcn.100033c9
add esp, 0xc
test eax, eax
je 0x100157c3
mov edi, dword [0x100310ec]
push esi
mov esi, dword [0x1003b7c8]
add eax, 0x14
push eax
call fcn.10003884
pop ecx
pop esi
push 0x14
pop ecx
lea eax, [ebp - 0x14]
mov byte [eax], 0
inc eax
dec ecx
jne 0x100157c9
mov edi, ebx
call fcn.10003598
pop edi
xor eax, eax
inc eax
pop ebx
leave
ret

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

Disassembly:
push esi
push edi
mov edi, eax
xor esi, esi
jmp 0x10015810
cmp edi, 0x1000
mov eax, 0x1000
jg 0x100157f5
mov eax, edi
push 0
push eax
mov eax, dword [esp + 0x18]
add eax, esi
push eax
push dword [esp + 0x18]
call sub.WS2_32.dll_send
test eax, eax
jle 0x1001581a
sub edi, eax
add esi, eax
test edi, edi
jne 0x100157e6
xor eax, eax
inc eax
pop edi
pop esi
ret
xor eax, eax
jmp 0x10015817

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

Disassembly:
push esi
push edi
mov edi, eax
xor esi, esi
jmp 0x10015850
cmp edi, 0x1000
mov eax, 0x1000
jg 0x10015835
mov eax, edi
push 0
push eax
mov eax, dword [esp + 0x18]
add eax, esi
push eax
push dword [esp + 0x18]
call sub.WS2_32.dll_recv
test eax, eax
jle 0x1001585a
sub edi, eax
add esi, eax
test edi, edi
jne 0x10015826
xor eax, eax
inc eax
pop edi
pop esi
ret
xor eax, eax
jmp 0x10015857
Function at 0x100158cc
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x402c
call fcn.10029310
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov edi, 0x4004667f
push edi
push dword [ebp + 8]
call sub.WS2_32.dll_ioctlsocket
test eax, eax
jne 0x1001596f
xor ebx, ebx
cmp dword [ebp - 4], ebx
je 0x10015976
push ebx
push 0x4000
lea eax, [ebp - 0x4028]
push eax
push dword [ebp + 8]
call sub.WS2_32.dll_recv
mov esi, eax
cmp esi, ebx
jle 0x1001596f
mov eax, dword [ebp + 0x10]
mov ax, word [eax + 8]
mov word [ebp - 0x12], ax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x24]
push eax
mov word [ebp - 0x14], si
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x4028]
push eax
push dword [ebp + 0xc]
mov eax, esi
call fcn.100157de
test eax, eax
pop ecx
pop ecx
je 0x1001596f
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 8]
call sub.WS2_32.dll_ioctlsocket
test eax, eax
je 0x100158f4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp + 0x14]
push eax
mov esi, 0x8004667e
push esi
push dword [ebp + 8]
xor edi, edi
inc edi
mov dword [ebp + 0x14], edi
call sub.WS2_32.dll_ioctlsocket
test eax, eax
jne 0x1001596f
push 2
push edi
lea eax, [ebp - 0x4028]
push eax
push dword [ebp + 8]
call sub.WS2_32.dll_recv
mov edi, eax
cmp edi, 0xffffffff
jne 0x100159b9
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x100159b9
xor edi, edi
lea eax, [ebp + 0x14]
push eax
push esi
push dword [ebp + 8]
mov dword [ebp + 0x14], ebx
call sub.WS2_32.dll_ioctlsocket
test eax, eax
jne 0x1001596f
cmp edi, ebx
setne al
jmp 0x10015971
Function at 0x1001663d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, edi
call fcn.100165d7
lea eax, [ebp - 0x24]
push eax
push dword [edi + 0x18]
push 4
pop eax
call fcn.1001581e
test eax, eax
pop ecx
pop ecx
je 0x100166c0
cmp dword [edi + 0x1c], 1
jne 0x10016684
movzx ecx, byte [ebp - 0x23]
movzx eax, byte [edi + 0xd]
movzx edx, byte [ebp - 0x24]
xor eax, ecx
movzx ecx, byte [edi + 0xc]
shl eax, 8
xor ecx, edx
lea ebx, [eax + ecx - 4]
jmp 0x100166b8
movzx ebx, byte [ebp - 0x23]
mov al, bl
and al, 0x30
cmp al, 0x10
je 0x100166a0
movzx eax, byte [ebp - 0x24]
and ebx, 0xf
shl eax, 4
lea ebx, [ebx + eax - 4]
jmp 0x100166b8
lea eax, [ebp - 0x20]
push eax
push dword [edi + 0x18]
push 0x12
pop eax
call fcn.1001581e
test eax, eax
pop ecx
pop ecx
je 0x100166c0
mov ebx, dword [ebp - 0x12]
cmp ebx, 0x1000000
jb 0x100166c9
and dword [ebp - 4], 0
jmp 0x100167b5
cmp dword [edi + 0x1c], 1
mov dword [edi + 4], ebx
lea eax, [edi + 0xe]
je 0x100166d8
lea eax, [ebp - 0x24]
mov ax, word [eax]
xor ax, word [ebp - 0x22]
cmp ebx, 0xffc
mov word [edi + 8], ax
jbe 0x10016702
mov esi, dword [edi + 0x14]
call fcn.1000380b
mov esi, dword [edi + 4]
call fcn.100037ae
mov dword [edi + 0x14], eax
mov eax, dword [eax]
mov dword [edi], eax
push dword [edi]
mov eax, dword [edi + 4]
push dword [edi + 0x18]
call fcn.1001581e
test eax, eax
pop ecx
pop ecx
je 0x100167c9
cmp dword [edi + 0x1c], 0
mov dword [ebp - 4], 1
jne 0x10016799
test ebx, ebx
je 0x10016799
mov ecx, dword [edi + 0xc]
imul ecx, ecx, 0x20080825
push 0xdff6dffa
push 0xe689e67e
mov eax, 0xa20191cb
sub eax, ecx
push 0
push eax
mov dword [edi + 0xc], eax
call fcn.100292d0
mov dword [ebp - 0xc], eax
movzx eax, byte [edi + 0xc]
and eax, 7
mov esi, eax
mov eax, dword [edi + 4]
cmp esi, eax
mov dword [ebp - 8], edx
ja 0x100167c9
sub eax, esi
add eax, dword [edi]
push esi
lea ecx, [ebp - 0xc]
push ecx
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x100167c9
mov eax, dword [edi + 4]
sub eax, esi
add eax, dword [edi]
test esi, esi
mov dword [ebp - 4], 1
mov ecx, esi
je 0x10016796
mov byte [eax], 0
inc eax
dec ecx
jne 0x1001678f
sub dword [edi + 4], esi
xor ecx, ecx
cmp dword [edi + 4], ecx
jbe 0x100167b5
mov eax, dword [edi]
mov edx, ecx
and edx, 3
mov dl, byte [edx + edi + 0xc]
add eax, ecx
xor byte [eax], dl
inc ecx
cmp ecx, dword [edi + 4]
jb 0x100167a0
push 0x16
pop ecx
pop esi
lea eax, [ebp - 0x24]
pop ebx
mov byte [eax], 0
inc eax
dec ecx
jne 0x100167bd
mov eax, dword [ebp - 4]
leave
ret
and dword [ebp - 4], 0
mov esi, edi
call fcn.100165d7
jmp 0x100167b5
Function at 0x100167d6
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x194
push ebx
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x100167fd
call fcn.10018f8f
push dword [ebp + 8]
call fcn.10015762
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
pop ecx
xor esi, esi
push esi
push esi
push esi
push 0x10007727
push esi
push esi
call edi
mov ebx, 0x100310f0
mov dword [esp + 0xc], 7
push esi
push esi
push ebx
push 0x10016030
push esi
push esi
call edi
add ebx, 0x28
dec dword [esp + 0xc]
jne 0x10016827
push esi
push esi
push esi
push 0x10016195
push esi
push esi
call edi
push esi
push esi
push esi
push 0x1000de8b
push esi
push esi
call edi
push esi
push esi
push esi
push 0x10015481
push esi
push esi
call edi
push esi
push esi
push esi
push 0x1000c9f9
push esi
push esi
call edi
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100176ef
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
mov esi, edx
jne 0x100176fa
xor eax, eax
pop esi
ret
cmp eax, 8
push ebx
not esi
mov edx, 0xff
jb 0x100177ac
push edi
mov edi, eax
shr edi, 3
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x1002f5e0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x1002f5e0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x1002f5e0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x1002f5e0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x1002f5e0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x1002f5e0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x1002f5e0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x1002f5e0]
inc ecx
sub eax, 8
dec edi
jne 0x10017711
pop edi
test eax, eax
je 0x100177c5
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x1002f5e0]
inc ecx
dec eax
jne 0x100177b0
mov eax, esi
pop ebx
not eax
pop esi
ret