joyce8/EMBER2024-capa huggingface dataset:
Function at 0x560bf5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [ebp + 8]
mov dword [0x65cee8], 0x115f
mov dword [ebp - 0x10], eax
call fcn.00562103
xor ecx, ecx
mov edx, eax
mov dword [0x65ceec], 0x25db
mov esi, dword [eax + 0x3c]
mov dword [0x65cee8], 0x6a9
mov dword [0x65ceec], 0x500
mov esi, dword [eax + esi + 0x78]
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov dword [0x65ceec], 0xfffff998
mov ebx, dword [eax + esi + 0x24]
mov dword [0x65cee8], 0xffffffc8
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ecx
je 0x560d75
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
xor edx, edx
mov esi, dword [ebp - 0x24]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
mov ecx, eax
mov edx, dword [ebp - 0x3c]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x45], bh
mov byte [ebp - 0x46], cl
je 0x560cf6
mov eax, dword [ebp - 0x44]
add eax, 1
mov cl, byte [ebp - 0x45]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x46]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x40], eax
jne 0x560ca5
mov al, byte [ebp - 0x46]
test al, 1
jne 0x560d33
jmp 0x560cff
xor eax, eax
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov dword [0x65cee8], 0xfcc
mov edx, dword [ebp - 0x38]
add edx, 2
mov esi, dword [ebp - 0x18]
cmp ecx, esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], eax
jb 0x560c8b
jmp 0x560d75
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x20]
add edx, 0x1c
mov esi, dword [ebp - 0x1c]
add esi, edx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], esi
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x50]
add eax, dword [ecx]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x4c]
add edx, dword [eax + esi*4]
mov dword [0x65cee8], 0x203
mov dword [0x65ceec], 0x1ed
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x560d80
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x38
mov dword [0x65cee8], 0x149c
mov dword [ebp - 8], 0
mov dword [0x65ceec], 0xd70
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
xor ecx, ecx
mov dword [0x65cee8], 0x1029
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov esi, dword [0x65ceec]
add esi, 0xffffef39
mov dword [0x65ceec], esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
cmp word [edx + eax*2], 0
mov esi, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], esi
je 0x560e30
mov dword [0x65ceec], 0x1e90
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x28], eax
mov eax, 0x1e90
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x104
mov edx, eax
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esi
jl 0x560dde
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov dword [0x65cee8], 0x2389
mov edx, dword [ebp - 0x14]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
jne 0x560efd
mov eax, dword [ebp - 0x30]
add eax, 0xffffea0e
mov dword [0x65cee8], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x560efd
mov dword [0x65cee8], 0xb97
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x560efd
mov dword [0x65cee8], 0x6fe
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x560efd
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x560efd
mov dword [0x65cee8], 0x1582
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x560efd
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff9
shl eax, 1
mov ecx, dword [ebp - 0x14]
add ecx, eax
mov dword [ebp - 0x34], ecx
mov eax, 1
mov ecx, 0x423
mov edx, dword [ebp - 0x34]
cmp word [edx], 0x6c
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ecx
je 0x560f0c
xor eax, eax
mov ecx, 0x250b
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ecx
jmp 0x560f0c
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
mov dword [0x65cee8], eax
mov eax, ecx
add esp, 0x38
pop esi
pop ebp
ret
Function at 0x56149f
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x65cef4], 0
mov byte [0x65cef8], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
xor eax, eax
mov dword [0x65cee8], 0x154f
mov dword [0x65ceec], 0x2f
mov dword [0x65cef0], 0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x65cee8], 0x198
mov eax, dword [0x65cef0]
add eax, 1
mov dword [0x65cef0], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x5614ee
xor eax, eax
mov dword [0x65ceec], 0x2124
mov dword [0x65cef0], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x65cefc], 0
mov edi, dword [0x65cef4]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x65cefc], esi
mov dword [0x65ceec], 0xfa3
mov eax, esi
cdq
idiv ecx
mov dword [0x65cef4], edx
mov dword [0x65cee8], 0x1fab
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x65cef8], cl
mov dword [0x65cee8], 0x291
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov cl, byte [0x65cef8]
mov esi, dword [0x65cef4]
mov byte [ebx + esi], cl
mov dword [0x65cee8], 0x2472
mov esi, dword [0x65cef0]
add esi, 1
mov dword [0x65cef0], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x561537
mov dword [0x65cee8], 0xdd5
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x56174b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x65cee8], 0x8fa
mov dword [0x65ceec], 0xd98
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov cl, byte [eax + 0x60fc14]
mov dl, byte [eax + 0x60fbe5]
sub dl, cl
mov byte [ebp + eax - 0x20], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x2c], eax
jne 0x561776
lea eax, [ebp - 0x20]
mov dword [0x65ceec], 0x238
mov dword [0x65cee8], 0xfffffc53
mov dword [ebp - 0x30], eax
call fcn.005618e1
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
call fcn.005619b4
xor ecx, ecx
mov dword [0x65cee8], 0x269b
mov dword [0x65ceec], 0x189f
cmp eax, 0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
je 0x5618a7
mov eax, dword [ebp - 0x34]
mov dword [0x65ceec], 0x4f9
mov dword [0x65cee8], 0xecb
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [0x65cee8], 0x23d8
mov dword [esp], eax
mov ecx, dword [ebp - 0x24]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.00561370
xor eax, eax
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [0x65ceec], 0xfffffa52
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x1c], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 0x40], ecx
mov dword [0x65cee8], 0x3483
cmp ecx, 0
mov dword [ebp - 0x38], eax
je 0x5618a7
mov eax, dword [ebp - 0x3c]
add eax, 0x1d09
mov dword [0x65cee8], 0x36b
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
add esp, 0x4c
pop ebp
ret
Function at 0x56204f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
mov ecx, dword [0x65cee8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
add eax, 0x23ec
mov dword [0x65ceec], eax
mov eax, dword [ebp - 4]
cmp eax, 0
jne 0x5620d8
mov dword [0x65cee8], 0xe8e
lea eax, [0x5616e2]
mov dword [0x65ceec], 0xfffff37e
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x5a4d
mov dword [ebp - 0x10], eax
jne 0x5620b4
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
je 0x5620c6
mov eax, dword [ebp - 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [ebp - 0xc], eax
jmp 0x562098
mov dword [0x65cee8], 0xe4a
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
jmp 0x5620fb
xor eax, eax
mov ecx, dword [ebp - 4]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [ebp - 0x18], eax
call fcn.0056112c
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
jmp 0x5620fb
mov eax, dword [ebp - 0x14]
add esp, 0x24
pop ebp
ret
Function at 0x562292
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, 0x25f6
xor ebx, ebx
mov dword [0x65cef0], 0
mov dword [0x65cef4], 0
mov dword [0x65cf00], 0
mov dword [0x65ceec], 0x25f6
mov dword [0x65cee8], 0x1ee4
cmp eax, 0
mov dword [ebp - 0x10], eax
mov eax, ebx
mov dword [ebp - 0x14], eax
mov eax, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
jne 0x562315
mov dword [0x65ceec], 0x559
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x28]
mov edi, 0x100
add ecx, 1
mov dword [ebp - 0x30], eax
mov eax, ecx
mov dword [ebp - 0x34], edx
cdq
idiv edi
mov dword [0x65cef0], edx
mov dword [0x65cee8], 0x3b
mov ecx, dword [ebp - 0x24]
movzx ebx, byte [ecx + edx]
mov ecx, dword [ebp - 0x34]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x38], edx
cdq
idiv edi
mov dword [0x65cef4], edx
add esi, 0xfffff363
mov dword [0x65ceec], esi
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x65cef8], cl
mov edi, dword [ebp - 0x24]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov edx, dword [0x65cee8]
add edx, 0xffffdf8e
mov dword [0x65cee8], edx
mov cl, byte [0x65cef8]
mov edx, dword [0x65cef4]
mov byte [edi + edx], cl
mov edx, dword [0x65cef0]
movzx edx, byte [edi + edx]
mov ebx, dword [0x65cef4]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x65cf00], ebx
mov dword [0x65cee8], 0x1954
mov dword [0x65ceec], 0xfffff92f
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x30]
mov ch, byte [edx + ebx]
mov byte [0x65cf05], ch
mov byte [0x65cf06], cl
xor ch, cl
mov byte [0x65cf04], ch
mov dword [0x65cee8], 0xffffeeab
mov edx, dword [ebp - 0x20]
mov byte [edx + ebx], ch
mov edx, dword [0x65cee8]
add edx, 0xffffff5b
mov dword [0x65ceec], edx
add ebx, 1
mov esi, dword [ebp - 0x10]
cmp ebx, esi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], edx
je 0x562303
mov eax, dword [0x65cef0]
mov ecx, dword [0x65cef4]
mov edx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c], esi
jmp 0x562315
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 [0x10026018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push 0x1001d644
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.10019826
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.10019826
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 [0x10026018]
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.10019826
mov esp, ebp
pop ebp
ret
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x10026384], eax
cmp eax, 0xffffffff
je 0x10001489
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [0x10026388], eax
test eax, eax
je 0x10001489
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [0x10126394], 0x10001ff0
mov al, 1
call fcn.10019826
mov esp, ebp
pop ebp
ret
Function at 0x100014e0
Capabilities:
Connect socket
Encode data using xor
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword [0x10026018]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, ecx
cmp dword [esi + 4], 0xffffffff
push edi
mov edi, dword [ebp + 8]
jne 0x10001563
push 0x100
push 0
push 0x111840f8
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x10001520
mov cl, byte [eax + 0x1001d770]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x111840f8], cl
inc eax
cmp eax, 0x100
jb 0x10001520
push 0x111840f8
push 0
mov ecx, 0x10126530
call fcn.1000b4f0
add esp, 8
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10019826
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
mov edx, 2
push eax
mov word [esp + 0x10], dx
call dword [sym.imp.WS2_32.dll_htons]
push edi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x100015af
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x100015af
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [esp + 0x18]
push ecx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov eax, dword [esi + 4]
push 0x10
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
jne 0x1000160b
call edi
cmp eax, 0x2733
je 0x1000160b
call edi
push eax
mov eax, 2
call fcn.100162f0
push eax
push 0
mov ecx, 0x10126530
call fcn.1000b4f0
add esp, 0xc
call fcn.100016f0
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10019826
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push 0x23
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x10001684
call edi
push eax
mov eax, 3
call fcn.100162f0
push eax
push 0
mov ecx, 0x10126530
call fcn.1000b4f0
mov eax, dword [esi + 4]
add esp, 0xc
cmp eax, 0xffffffff
je 0x10001653
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
test eax, eax
je 0x10001668
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 8], 0
mov byte [esi + 0x100038], 0
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10019826
mov esp, ebp
pop ebp
ret 8
push 0x80000
xor edi, edi
lea eax, [esi + 0xc]
push edi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x80000
lea ecx, [esi + 0x80010]
push edi
push ecx
mov dword [esi + 0x8000c], edi
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [esi + 0x100010], edi
push edi
mov ecx, esi
mov edi, 0x10001ca0
call fcn.10016590
mov ecx, dword [esp + 0x1c]
pop edi
mov byte [esi + 0x100038], 1
pop esi
xor ecx, esp
mov al, 1
call fcn.10019826
mov esp, ebp
pop ebp
ret 8
Function at 0x100019b0
Capabilities:
Encode data using xor
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8000c
call fcn.1001a230
mov eax, dword [0x10026018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1012639c
mov esi, ecx
mov edi, edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x10026384], 0xffffffff
je 0x10001ab5
cmp byte [0x101263b8], 0
je 0x10001ab5
push 0x80000
lea eax, [ebp - 0x80008]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push esi
lea ecx, [ebp - 0x80008]
push edi
push ecx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
xor eax, eax
cmp byte [ebp - 0x80008], 0xc1
jne 0x10001a4c
mov cl, byte [ebp - 0x80006]
lea edi, [esi - 3]
test edi, edi
jle 0x10001a78
mov dl, byte [ebp + eax - 0x80005]
xor dl, 0xa0
sub dl, cl
mov byte [ebp + eax - 0x80005], dl
inc eax
cmp eax, edi
jl 0x10001a32
jmp 0x10001a78
mov cl, byte [ebp - 0x80005]
lea edi, [esi - 4]
test edi, edi
jle 0x10001a78
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 0x10001a60
mov ecx, dword [0x10126390]
test ecx, ecx
jle 0x10001b0e
lea eax, [ecx + esi]
cmp eax, 0x80000
jle 0x10001ad3
push eax
mov eax, 7
call fcn.100162f0
push eax
push 0
mov ecx, 0x10126530
call fcn.1000b4f0
add esp, 0xc
mov esi, 0x10026380
call fcn.100016f0
push 0x1012639c
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.10019826
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x80008]
push eax
lea ecx, [ecx + 0x100a6390]
push ecx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
add dword [0x10126390], esi
push 0x1012639c
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.10019826
mov esp, ebp
pop ebp
ret
xor edi, edi
test esi, esi
jle 0x10001af0
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov eax, dword [0x10026384]
push 0
push esi
lea edx, [ebp + edi - 0x80008]
push edx
push eax
call ebx
cmp eax, 0xffffffff
je 0x10001b3c
sub esi, eax
add edi, eax
test esi, esi
jg 0x10001b1a
jmp 0x10001af0
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
cmp eax, 0x2733
jne 0x10001b7b
mov ecx, dword [0x10126390]
lea eax, [ecx + esi]
cmp eax, 0x80000
jle 0x10001b66
push eax
mov eax, 8
jmp 0x10001a96
push esi
lea edx, [ebp + edi - 0x80008]
push edx
lea eax, [ecx + 0x100a6390]
push eax
jmp 0x10001ae2
call ebx
push eax
mov eax, 9
jmp 0x10001a96
Function at 0x10001b90
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
lea ebx, [esi + 0x10001c]
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
cmp dword [esi + 0x100010], edi
jle 0x10001be8
lea ebx, [esi + 0x80010]
mov eax, dword [esi + 0x100010]
mov edx, dword [esi + 4]
push 0
push eax
lea ecx, [ebx + edi]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10001bf7
sub dword [esi + 0x100010], eax
add edi, eax
cmp dword [esi + 0x100010], 0
jg 0x10001bb8
mov ebx, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10001c2f
mov eax, dword [esi + 0x100010]
push eax
lea ecx, [edi + esi + 0x80010]
push ecx
push ebx
call dword [sym.imp.MSVCR100.dll_memmove]
mov edx, dword [ebp - 4]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, 0xa
call fcn.100162f0
push eax
push 0
mov ecx, 0x10126530
call fcn.1000b4f0
mov eax, dword [esi + 4]
add esp, 0xc
cmp eax, 0xffffffff
je 0x10001c66
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
test eax, eax
je 0x10001c7b
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 8], 0
mov eax, dword [ebp - 4]
push eax
mov byte [esi + 0x100038], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002530
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x100
push 0
push 0x111840f8
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
nop
mov cl, byte [eax + str.r_jc]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x111840f8], cl
inc eax
cmp eax, 0x100
jb 0x10002550
mov esi, dword [ebp + 8]
movzx edx, word [esi + 6]
movzx eax, byte [esi + 8]
push edx
push eax
push 0x111840f8
push 0
mov ecx, 0x10126530
call fcn.1000b4f0
movzx ecx, word [esi + 6]
add esp, 0x10
cmp byte [esi + 8], 0
mov dword [0x11183b94], ecx
mov dword [ebp - 4], 0
jbe 0x10002648
mov edi, dword [0x101264e8]
lea ebx, [esi + 0xa]
nop
cmp ebx, edi
jae 0x100025fb
mov eax, dword [0x101264e4]
cmp eax, ebx
ja 0x100025fb
mov ecx, ebx
sub ecx, eax
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp edi, dword [0x101264ec]
jne 0x100025ea
mov ecx, 0x101264e4
call fcn.10003060
mov edi, dword [0x101264e8]
mov eax, dword [0x101264e4]
lea edx, [esi + esi*8]
lea esi, [eax + edx*8]
test edi, edi
je 0x10002626
jmp 0x10002619
cmp edi, dword [0x101264ec]
jne 0x10002613
mov ecx, 0x101264e4
call fcn.10003060
mov edi, dword [0x101264e8]
test edi, edi
je 0x10002629
mov esi, ebx
mov ecx, 0x12
rep movsd dword es:[edi], dword [esi]
mov edi, dword [0x101264e8]
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
add edi, 0x48
mov dword [0x101264e8], edi
movzx ecx, byte [esi + 8]
inc eax
add ebx, 0x48
mov dword [ebp - 4], eax
cmp eax, ecx
jl 0x100025b0
pop edi
pop esi
mov dword [0x11183b84], 1
pop ebx
mov esp, ebp
pop ebp
ret