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

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x1004ce42
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x1004ce53
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.1004ce94
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx

Function at 0x1004f200
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x1004f149
add ebx, 0
push ecx
call 0x1004f15e
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x6c48920e
sub ebx, dword [0x6c4a8a4d]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x6c4a8a3d
call fcn.1004ac28
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.1004a136
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x1004f2bc
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x1004f2bc
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x1004f273
mov eax, 1
lock xchg dword [0x6c4a8a49], eax
push 0x3dd1fc71
call 0x1004f200
push esi
add esp, 8
cmp eax, 0
jne 0x1004f1e9
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x1004f20f
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x1004f224
cmp ecx, edx
cmp eax, 0
je 0x1004f249
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x1004f233
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.1004f262
dec eax
loope 0x1004f265
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x6c4a8a49], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x1004f299
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x1004f2ae
jmp 0x1004f2b9
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x1004f1a7
Function at 0x10056321
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x100565f7
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x6c4956c1
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x6c48c687
push 0xffffffffffffffff
call fcn.1004d521
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x1005638b
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.100563a3
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x100565eb
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x100565bf
Function at 0x10065df1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x10065e13
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10065e13
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10065e13
ret
cmp word [ebx + 4], 0x14c
jne 0x10065e13
test word [ebx + 0x16], 2
je 0x10065e13
test word [ebx + 0x16], 0x100
je 0x10065e13
cmp word [ebx + 0x18], 0x10b
jne 0x10065e13
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10065e13
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10065e9f
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10065e33
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1004cd7e
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10065e13
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x10065e9f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x10065e13
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10065e13
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10065e13
ret
cmp word [ebx + 4], 0x14c
jne 0x10065e13
test word [ebx + 0x16], 2
je 0x10065e13
test word [ebx + 0x16], 0x100
je 0x10065e13
cmp word [ebx + 0x18], 0x10b
jne 0x10065e13
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10065e13
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10065e9f
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10065e33
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1004cd7e
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10065e13
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x10065f56
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x10065faf
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10065f56
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10065f65
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1046bc08
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x10065fb6
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1004ce2c
cmp eax, dword [ebp + 0xc]
pop eax
je 0x10066055
add edi, 4
add eax, 2
dec ecx
jne 0x10065f9b
call 0x10066002
loope 0x10065ff8
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x10066052
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x10066063
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x10066016
cmp eax, ecx
ja 0x10066016
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x100660a0
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x10066096
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1004d30b
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x10065f65
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x10065faf
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10065f56
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10065f65
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1046bc08
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x10065fb6
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1004ce2c
cmp eax, dword [ebp + 0xc]
pop eax
je 0x10066055
add edi, 4
add eax, 2
dec ecx
jne 0x10065f9b
call 0x10066002
loope 0x10065ff8
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x10066052
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x10066063
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x10066016
cmp eax, ecx
ja 0x10066016
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x100660a0
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x10066096
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1004d30b
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]

Function at 0x409ebd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x409ebd
lcall 0x5de5, 0x8b10c483
jmp fcn.0076d6b4
Function at 0x438c9e
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x438a14
mov edi, dword [esp]
add esp, 4
sub edx, 1
mov ebx, 0xdd39a62e
call fcn.00438cf6
mov edx, ebx
add ebx, 0xa71df61d
mov ebx, ebx
xor dword [eax], edi
add edx, 0x359a9c2
sub esp, 4
mov dword [esp], edx
pop ebx
inc eax
add ebx, 0x20f0d3dc
dec ebx
cmp eax, ecx
jne fcn.00438c9e
sub ebx, 0x19cf3984
dec ebx
add ebx, edx
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 [0x1001e018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push 0x100165ec
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 0x10001192
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012ee4
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 0x100011da
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 0x100011c0
cmp eax, 0x400
je 0x10001194
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.10012ee4
mov esp, ebp
pop ebp
ret 8
Function at 0x10001430
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x1001e018]
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 0x10001469
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012ee4
mov esp, ebp
pop ebp
ret
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x1001e164], eax
cmp eax, 0xffffffff
je 0x10001459
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [0x1001e168], eax
test eax, eax
je 0x10001459
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [0x1011e174], 0x10002240
mov al, 1
call fcn.10012ee4
mov esp, ebp
pop ebp
ret

Function at 0x100014b0
Capabilities:
Connect socket
Encode data using xor
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1001e018]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x1001e164], 0xffffffff
push esi
push edi
mov esi, ecx
jne 0x10001525
push 0x100
push 0
push 0x10d7b8e0
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
mov cl, byte [eax + 0x10016718]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10d7b8e0], cl
inc eax
cmp eax, 0x100
jb 0x100014e3
push 0x10d7b8e0
push 0
mov ecx, 0x1011e310
call fcn.10007010
add esp, 8
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10012ee4
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 0x1000156d
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x1000156d
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 [0x1001e164]
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 0x100015ce
call esi
cmp eax, 0x2733
je 0x100015ce
call esi
push eax
mov eax, 2
call fcn.1000fce0
push eax
push 0
mov ecx, 0x1011e310
call fcn.10007010
add esp, 0xc
mov esi, 0x1001e160
call fcn.10001670
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10012ee4
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x1001e168]
mov edx, dword [0x1001e164]
push 0x23
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x100015f3
call esi
push eax
mov eax, 3
jmp 0x1000159b
push 0x80000
push 0
push 0x1001e16c
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x80000
push 0
push 0x1009e170
mov dword [0x1009e16c], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x10d7b598
mov ecx, 0x1001e160
mov edi, 0x10001c10
mov dword [0x1011e170], 0
call fcn.1000ff90
mov ecx, dword [ebp - 8]
pop edi
mov dword [0x1011e194], eax
xor ecx, ebp
mov byte [0x1011e198], 1
mov al, 1
pop esi
call fcn.10012ee4
mov esp, ebp
pop ebp
ret 4
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 0x10001895
push 0x100
push 0
push 0x10d7b8e0
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x10016a18]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10d7b8e0], cl
inc eax
cmp eax, 0x100
jb 0x10001740
call edi
push eax
push 0x10d7b8e0
jmp 0x100018e0
add dword [esi + 0x8000c], eax
mov eax, dword [esi + 0x8000c]
cmp eax, 4
jl 0x10001895
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 0x100018cf
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 0x1000189e
cmp ebx, 0x80000
jg 0x1000189e
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 0x10001895
mov eax, dword [esi + 0x8000c]
test eax, eax
jle 0x10001895
mov ecx, 0x80000
sub ecx, edi
cmp eax, ecx
jg 0x10001895
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.1000fce0
push eax
push 0
mov ecx, 0x1011e310
call fcn.10007010
add esp, 0x14
call fcn.10001670
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.1000fce0
push eax
push 0
mov ecx, 0x1011e310
call fcn.10007010
add esp, 0xc
call fcn.10001670
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.100138e0
mov eax, dword [0x1001e018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1011e17c
mov esi, ecx
mov edi, edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1001e164], 0xffffffff
je 0x10001a25
cmp byte [0x1011e198], 0
je 0x10001a25
push esi
lea eax, [ebp - 0x80008]
push edi
push eax
call sub.MSVCR100.dll_memcpy
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 [0x1011e170]
test eax, eax
jle 0x10001a7e
lea ecx, [eax + esi]
cmp ecx, 0x80000
jle 0x10001a43
mov eax, 7
push ecx
call fcn.1000fce0
push eax
push 0
mov ecx, 0x1011e310
call fcn.10007010
add esp, 0xc
mov esi, 0x1001e160
call fcn.10001670
push 0x1011e17c
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.10012ee4
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 0x80008]
push ecx
lea edx, [eax + 0x1009e170]
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
add dword [0x1011e170], esi
push 0x1011e17c
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.10012ee4
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 [0x1001e164]
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 [0x1011e170]
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 + 0x1009e170]
push eax
jmp 0x10001a52
call ebx
push eax
mov eax, 9
jmp 0x10001a06