joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1347bd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push esi
push edi
push dword [ebp + 0x10]
xor eax, eax
lea edi, [ebp - 0x118]
push dword [ebp + 0xc]
mov ecx, 0x46
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x118]
push eax
lea esi, [edi + 8]
mov dword [edi + 4], esi
call fcn.01347dd0
add esp, 0xc
mov dword [ebp + 8], eax
test eax, eax
jne 0x1347dc4
mov ecx, dword [ebp - 0x118]
mov dword [edi], ecx
shl ecx, 4
add ecx, dword [ebp - 0x114]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov eax, dword [ecx + 8]
mov dword [esi + 8], eax
mov eax, dword [ecx + 0xc]
sub ecx, 0x10
mov dword [esi + 0xc], eax
add esi, 0x10
mov edi, dword [edi]
dec edi
test edi, edi
jle 0x1347dab
push ebx
nop dword [eax]
movzx eax, byte [ecx + 3]
dec edi
movzx edx, byte [eax + 0x134c8b8]
movzx eax, byte [ecx + 2]
mov edx, dword [edx*4 + 0x134e6b8]
movzx eax, byte [eax + 0x134c8b8]
xor edx, dword [eax*4 + 0x134e2b8]
movzx eax, byte [ecx + 1]
movzx eax, byte [eax + 0x134c8b8]
xor edx, dword [eax*4 + 0x134deb8]
movzx eax, byte [ecx]
movzx eax, byte [eax + 0x134c8b8]
xor edx, dword [eax*4 + 0x134dab8]
mov dword [esi], edx
mov ebx, dword [ecx + 4]
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + 0x134c8b8]
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [edx*4 + 0x134e2b8]
movzx eax, byte [eax + 0x134c8b8]
xor edx, dword [eax*4 + 0x134deb8]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x134c8b8]
xor edx, dword [eax*4 + 0x134e6b8]
movzx eax, bl
movzx eax, byte [eax + 0x134c8b8]
xor edx, dword [eax*4 + 0x134dab8]
mov dword [esi + 4], edx
mov ebx, dword [ecx + 8]
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + 0x134c8b8]
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [edx*4 + 0x134e2b8]
movzx eax, byte [eax + 0x134c8b8]
xor edx, dword [eax*4 + 0x134deb8]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x134c8b8]
xor edx, dword [eax*4 + 0x134e6b8]
movzx eax, bl
movzx eax, byte [eax + 0x134c8b8]
xor edx, dword [eax*4 + 0x134dab8]
mov dword [esi + 8], edx
mov ebx, dword [ecx + 0xc]
mov eax, ebx
shr eax, 0x10
sub ecx, 0x10
movzx eax, al
movzx edx, byte [eax + 0x134c8b8]
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [edx*4 + 0x134e2b8]
movzx eax, byte [eax + 0x134c8b8]
xor edx, dword [eax*4 + 0x134deb8]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x134c8b8]
xor edx, dword [eax*4 + 0x134e6b8]
movzx eax, bl
movzx eax, byte [eax + 0x134c8b8]
xor edx, dword [eax*4 + 0x134dab8]
mov dword [esi + 0xc], edx
add esi, 0x10
test edi, edi
jg 0x1347c50
pop ebx
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov eax, dword [ecx + 8]
mov dword [esi + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1349880
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0x3c], 0x6b25
mov edx, 0x6b41
mov word [ebp - 0x38], dx
mov eax, 0x6b47
mov word [ebp - 0x36], ax
mov ecx, 0x6b49
mov eax, 0x6b42
mov word [ebp - 0x34], ax
mov eax, 0x6b4d
mov word [ebp - 0x32], ax
mov eax, 0x6b40
mov word [ebp - 0x30], ax
mov eax, 0x6b55
mov word [ebp - 0x2e], cx
mov word [ebp - 0x2c], ax
mov eax, 0x6b0b
mov word [ebp - 0x2a], ax
xor eax, eax
mov word [ebp - 0x28], dx
xor edx, edx
mov word [ebp - 0x26], cx
mov word [ebp - 0x24], cx
mov word [ebp - 0x22], ax
mov ax, word [ebp - 0x38]
nop dword [eax]
mov ax, word [ebp + edx*2 - 0x38]
movzx ecx, ax
movzx eax, word [ebp - 0x3c]
xor ecx, eax
mov word [ebp + edx*2 - 0x38], cx
inc edx
cmp edx, 0xb
jb 0x13498f0
push esi
xor eax, eax
push edi
mov edi, dword [ebp + 8]
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x38]
push eax
mov eax, dword [edi + 0x6a0]
call eax
mov edx, eax
test edx, edx
jne 0x1349931
pop edi
mov eax, 0xe0d00721
pop esi
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x1e], 0x55
xor ecx, ecx
mov byte [ebp - 0x1d], 0x71
mov byte [ebp - 0x1c], 0x76
mov byte [ebp - 0x1b], 0x71
mov byte [ebp - 0x1a], 0x4c
mov byte [ebp - 0x19], 0x7d
mov byte [ebp - 0x18], 0x75
mov byte [ebp - 0x17], 0x78
mov byte [ebp - 0x16], 0x5f
mov byte [ebp - 0x15], 0x7a
mov byte [ebp - 0x14], 0x71
mov byte [ebp - 0x13], 0x7c
mov byte [ebp - 0x12], 0x6d
mov byte [ebp - 0x11], 0x4c
mov byte [ebp - 0x10], 0x7d
mov byte [ebp - 0xf], 0x75
mov byte [ebp - 0xe], 0x78
mov byte [ebp - 0xd], 0
mov al, byte [ebp - 0x1e]
nop
mov al, byte [ebp + ecx - 0x1e]
movsx eax, al
sub eax, 8
mov byte [ebp + ecx - 0x1e], al
inc ecx
cmp ecx, 0x11
jb 0x1349980
lea eax, [ebp - 0x1e]
push eax
mov eax, dword [edi + 0x6a8]
push edx
call eax
mov esi, eax
test esi, esi
jne 0x13499b2
pop edi
mov eax, 0xe0d00728
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x68c]
push ebx
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push dword [ebp + 0xc]
call eax
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x13499e3
pop ebx
pop edi
mov eax, 0xe0d00751
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x748]
call eax
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov dword [ebp - 0xc], eax
test ecx, ecx
push 0
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
cmove eax, edx
mov dword [ebp - 4], 1
push eax
push dword [ebp + 0x14]
mov eax, dword [edi + 0x75c]
push ebx
call eax
push eax
push 0xffffffffffffffff
call esi
mov ecx, dword [edi + 0x698]
mov esi, eax
push ebx
call ecx
xor ecx, ecx
mov eax, 0xe0d00770
pop ebx
test esi, esi
pop edi
cmovne eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x134bc90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
xor ecx, ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x24]
mov word [edi], cx
test eax, eax
je 0x134be8d
push ebx
mov ebx, dword [esi + 0x24]
test ebx, ebx
je 0x134be8c
mov ecx, 0x27
mov edx, 0x32
nop word [eax + eax]
mov word [ebp - 0x26], cx
mov eax, 0x34
mov word [ebp - 0x24], dx
mov word [ebp - 0x22], ax
mov eax, 0x5a
mov word [ebp - 0x20], ax
xor eax, eax
mov word [ebp - 0x1e], ax
xor ecx, ecx
mov ax, word [ebp - 0x26]
nop word [eax + eax]
mov ax, word [ebp + ecx*2 - 0x26]
movzx eax, ax
add eax, 0xfffffffe
mov word [ebp + ecx*2 - 0x26], ax
inc ecx
cmp ecx, 4
jb 0x134bd00
movsx eax, byte [esi + ebx + 0x28]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x50]
push eax
mov eax, dword [esi + 0x770]
call eax
add esp, 0xc
cmp word [edi], 0
jne 0x134bd87
mov dword [ebp - 0x1c], 0x951e
mov eax, 0x953b
mov word [ebp - 0x18], ax
mov eax, 0x9572
mov word [ebp - 0x16], ax
mov eax, 0x956d
mov word [ebp - 0x14], ax
xor eax, eax
mov word [ebp - 0x12], ax
xor edx, edx
mov ax, word [ebp - 0x18]
mov ax, word [ebp + edx*2 - 0x18]
movzx ecx, ax
movzx eax, word [ebp - 0x1c]
xor ecx, eax
mov word [ebp + edx*2 - 0x18], cx
inc edx
cmp edx, 3
jb 0x134bd63
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x18]
jmp 0x134bdf3
mov dword [ebp - 0x10], 0x65c3
mov eax, dword [ebp - 0x10]
xor eax, 0x25
mov word [ebp - 0xc], ax
mov eax, dword [ebp - 0x10]
inc eax
xor eax, 0x6c
mov word [ebp - 0xa], ax
mov eax, dword [ebp - 0x10]
add eax, 2
xor eax, 0x73
mov word [ebp - 8], ax
mov eax, dword [ebp - 0x10]
add eax, 3
xor eax, 0x2d
mov word [ebp - 6], ax
xor eax, eax
mov word [ebp - 4], ax
mov ax, word [ebp - 0xc]
xor eax, eax
nop dword [eax]
mov cx, word [ebp + eax*2 - 0xc]
mov edx, dword [ebp - 0x10]
add edx, eax
movzx ecx, cx
xor edx, ecx
mov word [ebp + eax*2 - 0xc], dx
inc eax
cmp eax, 4
jb 0x134bdd0
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0xc]
push edi
push eax
lea eax, [ebp - 0x450]
push eax
mov eax, dword [esi + 0x770]
call eax
mov dword [ebp - 0x3c], 0x882e
mov eax, 0x880b
mov word [ebp - 0x38], ax
mov ecx, 0x8842
mov word [ebp - 0x36], cx
mov edx, 0x885d
mov word [ebp - 0x34], dx
add esp, 0xc
mov word [ebp - 0x32], ax
xor eax, eax
mov word [ebp - 0x30], cx
mov word [ebp - 0x2e], dx
xor edx, edx
mov word [ebp - 0x2c], ax
mov ax, word [ebp - 0x38]
mov ax, word [ebp + edx*2 - 0x38]
movzx ecx, ax
movzx eax, word [ebp - 0x3c]
xor ecx, eax
mov word [ebp + edx*2 - 0x38], cx
inc edx
cmp edx, 6
jb 0x134be41
xor eax, eax
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x38]
push eax
mov eax, dword [esi + 0x770]
push edi
call eax
mov ecx, 0x27
add esp, 0x10
lea edx, [ecx + 0xb]
sub ebx, 1
jne 0x134bcd0
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
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

Disassembly:
or eax, 0xffffffff
test ecx, ecx
je 0x10001169
push ebx
push edi
lea esp, [esp]
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
shr eax, 8
xor eax, dword [esi + edi*4]
inc edx
dec ecx
jne 0x10001150
pop edi
pop ebx
not eax
ret
Function at 0x10001170
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x10017644
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [esi], 0xffffffff
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCR100.dll_fopen_s]
add esp, 0xc
test eax, eax
je 0x100011a2
xor al, al
mov esp, ebp
pop ebp
ret 4
push edi
push 0x400
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
jne 0x100011d0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
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 dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
je 0x10001233
push ebx
lea ebx, [ebx]
mov ecx, eax
mov edx, edi
test eax, eax
je 0x10001219
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 0x100011f8
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push ecx
push 0x400
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
jne 0x100011f0
pop ebx
push edi
call dword [sym.imp.MSVCR100.dll_free]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
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 0x10001260
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x10017648
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [esi], 0xffffffff
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCR100.dll__wfopen_s]
add esp, 0xc
test eax, eax
je 0x10001292
xor al, al
mov esp, ebp
pop ebp
ret 4
push edi
push 0x400
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
jne 0x100012c0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
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 dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
je 0x10001323
push ebx
lea ebx, [ebx]
mov ecx, eax
mov edx, edi
test eax, eax
je 0x10001309
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 0x100012e8
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push ecx
push 0x400
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
jne 0x100012e0
pop ebx
push edi
call dword [sym.imp.MSVCR100.dll_free]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
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 0x10001350
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x1001f018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push 0x10017648
push eax
lea eax, [ebp - 0x408]
push eax
or esi, 0xffffffff
mov dword [ebp - 0x408], 0
call dword [sym.imp.MSVCR100.dll__wfopen_s]
add esp, 0xc
test eax, eax
je 0x100013a2
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10014184
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 dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
mov ecx, eax
lea edx, [ebp - 0x404]
test eax, eax
je 0x100013ea
mov edi, edi
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 0x100013d0
cmp eax, 0x400
je 0x100013a4
mov eax, dword [ebp - 0x408]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
mov eax, esi
pop ebx
xor ecx, ebp
not eax
pop esi
call fcn.10014184
mov esp, ebp
pop ebp
ret 8

Function at 0x10001460
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x1001f018]
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 0x10001499
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10014184
mov esp, ebp
pop ebp
ret
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x10023c44], eax
cmp eax, 0xffffffff
je 0x10001489
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [0x10023c48], eax
test eax, eax
je 0x10001489
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [0x1003d4d4], 0x10003a70
mov al, 1
call fcn.10014184
mov esp, ebp
pop ebp
ret
Function at 0x100014e0
Capabilities:
Connect socket
Create thread
Encode data using xor
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1001f018]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x10023c44], 0xffffffff
push esi
mov esi, ecx
jne 0x10001553
push 0x100
push 0
push 0x10048ec8
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
mov cl, byte [eax + 0x10017a78]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10048ec8], cl
inc eax
cmp eax, 0x100
jb 0x10001512
push 0x10048ec8
push 0
mov ecx, 0x1003d6d8
call fcn.100075a0
add esp, 8
xor al, al
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10014184
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 0x1000159b
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x1000159b
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 sub.MSVCR100.dll_memcpy
add esp, 0xc
mov eax, dword [0x10023c44]
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 0x100015fb
call esi
cmp eax, 0x2733
je 0x100015fb
call esi
push eax
mov eax, 2
call fcn.10011200
push eax
push 0
mov ecx, 0x1003d6d8
call fcn.100075a0
add esp, 0xc
mov esi, 0x10023c40
call fcn.100016a0
xor al, al
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10014184
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x10023c48]
mov edx, dword [0x10023c44]
push 0x23
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x10001620
call esi
push eax
mov eax, 3
jmp 0x100015c9
push 0xcc40
push 0
push 0x10023c4c
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0xcc40
push 0
push 0x10030890
mov dword [0x1003088c], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x10048a7c
push 0
push 0x10023c40
push 0x10001bd0
push 0
push 0
mov dword [0x1003d4d0], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 8]
mov dword [0x1003d4f4], eax
xor ecx, ebp
mov byte [0x1003d4f8], 1
mov al, 1
pop esi
call fcn.10014184
mov esp, ebp
pop ebp
ret 4

Function at 0x100016a0
Capabilities:
Terminate thread

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esi + 0x198b4], ebx
je 0x100016d6
mov dword [0x10048a7c], 0xffffffff
mov eax, dword [esi + 0x198b4]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x198b4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x198b4], ebx
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x100016ec
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x100016fd
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 8], ebx
mov byte [esi + 0x198b8], bl
pop ebx
ret
Function at 0x10001730
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 + 0xcc4c]
xor edi, edi
push edi
mov ecx, 0xcc40
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 0x10001780
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x100018aa
call edi
push eax
mov eax, 4
jmp 0x100018ef
add dword [esi + 0xcc4c], eax
mov eax, dword [esi + 0xcc4c]
cmp eax, 4
jl 0x100018aa
mov al, byte [esi + edi + 0xc]
lea edx, [esi + 0xc]
cmp al, 0xc1
jne 0x100017ab
movzx ebx, byte [edi + esi + 0xd]
mov cl, byte [edi + esi + 0xf]
jmp 0x100017ca
cmp al, 0xc2
jne 0x100018e4
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 0x100018b3
cmp ebx, 0xcc40
jg 0x100018b3
cmp ebx, dword [esi + 0xcc4c]
jg 0x10001881
cmp al, 0xc1
jne 0x1000181d
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 0x10001849
mov dl, byte [ecx + eax]
add dl, byte [ebp - 4]
lea ecx, [edi + esi + 0xf]
xor dl, 0xa8
mov byte [ecx + eax], dl
inc eax
lea edx, [ebx - 3]
cmp eax, edx
jl 0x10001803
jmp 0x10001849
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 0x10001849
mov dl, byte [ecx + eax]
add dl, byte [ebp - 4]
lea ecx, [edi + esi + 0x10]
xor dl, 0xa8
mov byte [ecx + eax], dl
inc eax
lea edx, [ebx - 4]
cmp eax, edx
jl 0x10001831
mov al, byte [ecx]
mov edx, dword [esi + 0x19894]
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 + 0xcc4c], ebx
add esp, 0xc
add edi, ebx
cmp dword [esi + 0xcc4c], 0
jg 0x10001795
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jle 0x100018aa
mov eax, dword [esi + 0xcc4c]
test eax, eax
jle 0x100018aa
mov ecx, 0xcc40
sub ecx, edi
cmp eax, ecx
jg 0x100018aa
push eax
lea eax, [edi + esi + 0xc]
push eax
push edx
call dword [sym.imp.MSVCR100.dll_memmove]
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.10011200
push eax
push 0
mov ecx, 0x1003d6d8
call fcn.100075a0
add esp, 0x14
call fcn.100016a0
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.10011200
push eax
push 0
mov ecx, 0x1003d6d8
call fcn.100075a0
add esp, 0xc
call fcn.100016a0
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001920
Capabilities:
Encode data using xor
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xcc4c
call fcn.10014b90
mov eax, dword [0x1001f018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1003d4dc
mov esi, ecx
mov edi, edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x10023c44], 0xffffffff
je 0x10001a15
cmp byte [0x1003d4f8], 0
je 0x10001a15
push esi
lea eax, [ebp - 0xcc48]
push edi
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
xor eax, eax
cmp byte [ebp - 0xcc48], 0xc1
jne 0x100019aa
mov cl, byte [ebp - 0xcc46]
lea edi, [esi - 3]
test edi, edi
jle 0x100019d8
lea esp, [esp]
mov dl, byte [ebp + eax - 0xcc45]
xor dl, 0xa8
sub dl, cl
mov byte [ebp + eax - 0xcc45], dl
inc eax
cmp eax, edi
jl 0x10001990
jmp 0x100019d8
mov cl, byte [ebp - 0xcc45]
lea edi, [esi - 4]
test edi, edi
jle 0x100019d8
jmp 0x100019c0
mov dl, byte [ebp + eax - 0xcc44]
xor dl, 0xa8
sub dl, cl
mov byte [ebp + eax - 0xcc44], dl
inc eax
cmp eax, edi
jl 0x100019c0
mov eax, dword [0x1003d4d0]
test eax, eax
jle 0x10001a6e
lea ecx, [eax + esi]
cmp ecx, 0xcc40
jle 0x10001a33
mov eax, 7
push ecx
call fcn.10011200
push eax
push 0
mov ecx, 0x1003d6d8
call fcn.100075a0
add esp, 0xc
mov esi, 0x10023c40
call fcn.100016a0
push 0x1003d4dc
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.10014184
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 0xcc48]
push ecx
lea edx, [eax + 0x10030890]
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
add dword [0x1003d4d0], esi
push 0x1003d4dc
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.10014184
mov esp, ebp
pop ebp
ret
xor edi, edi
test esi, esi
jle 0x10001a50
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [0x10023c44]
push 0
push esi
lea eax, [ebp + edi - 0xcc48]
push eax
push ecx
call ebx
cmp eax, 0xffffffff
je 0x10001a9d
sub esi, eax
add edi, eax
test esi, esi
jg 0x10001a7a
jmp 0x10001a50
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
cmp eax, 0x2733
jne 0x10001adb
mov eax, dword [0x1003d4d0]
lea ecx, [eax + esi]
cmp ecx, 0xcc40
jle 0x10001ac6
mov eax, 8
jmp 0x100019f5
push esi
lea edx, [ebp + edi - 0xcc48]
push edx
lea eax, [eax + 0x10030890]
push eax
jmp 0x10001a42
call ebx
push eax
mov eax, 9
jmp 0x100019f6