joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100256f0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x100258bd
pushal
mov esi, section.er
lea edi, [esi - 0x19000]
push edi
jmp 0x1002571a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10025721
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10025710
mov eax, 1
add ebx, ebx
jne 0x10025733
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10025728
jne 0x10025744
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10025728
xor ecx, ecx
sub eax, 3
jb 0x10025758
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x100257ca
mov ebp, eax
add ebx, ebx
jne 0x10025763
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10025770
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10025794
inc ecx
add ebx, ebx
jne 0x10025780
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10025775
jne 0x10025791
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10025775
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x100257b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x100257a5
jmp 0x10025716
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x100257b4
add edi, ecx
jmp 0x10025716
pop esi
mov edi, esi
mov ecx, 0x470
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x100257d2
cmp byte [edi], 1
jne 0x100257d2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x100257d7
lea edi, [esi + 0x22000]
mov eax, dword [edi]
or eax, eax
je 0x1002584f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x25588]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x255ec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10025804
mov ecx, edi
jns 0x10025833
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x255f0]
or eax, eax
je 0x10025849
mov dword [ebx], eax
add ebx, 4
jmp 0x10025821
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10025880
cmp al, 0xef
ja 0x10025873
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10025855
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10025862
mov ebp, dword [esi + 0x255f4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x100258b4
sub esp, 0xffffff80
jmp 0x100121cc
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x459008], 0x8088405
inc edx
mov dword [ebx + 0x459008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d330
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d361
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d349
add dl, dl
jne 0x41d36c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d3bd
xor eax, eax
add dl, dl
jne 0x41d379
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d45a
add dl, dl
jne 0x41d388
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d393
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d39e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d3a9
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d3b3
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d358
mov eax, 1
add dl, dl
jne 0x41d3cb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d3d6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3c2
sub eax, ebx
mov ebx, 1
jne 0x41d409
mov ecx, 1
add dl, dl
jne 0x41d3ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3e6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d358
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d420
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d42b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d417
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d358
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d47b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41d358
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f5a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x43ca8e
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f5ef
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f60e
mov ecx, edx
add ecx, ebx
jmp 0x41f60e
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f60e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f680
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f669
test esi, esi
jbe 0x41f680
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f65b
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f680
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f638
jmp 0x41f680
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f680
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ca95
ret
Function at 0x4207ec
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x43de07
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x420827
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x420840
lea eax, [ebp - 0x10]
mov edx, dword [0x45b77c]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x420853
lea eax, [ebp - 0x10]
mov edx, dword [0x45b77c]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42085f
adc edx, 0
mov edx, dword [edx*4 + 0x45a568]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x4209d9
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4209cc
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4209cc
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4209cc
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4209cc
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x42096a
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x42096a
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x42096a
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x42096a
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4209cc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4209cc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4209cc
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4209cc
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4209cc
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x4209f1
inc ebx
cmp ebx, 0x19
jne 0x420819
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43de0e
lea eax, [ebp - 0x10]
call fcn.00404cd0
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, 8
push 0x10012554
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 0x10001172
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 0x100011a0
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 0x10001203
push ebx
lea ebx, [ebx]
mov ecx, eax
mov edx, edi
test eax, eax
je 0x100011e9
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 0x100011c8
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 0x100011c0
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 0x10001230
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x10012558
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 0x10001262
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 0x10001290
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 0x100012f3
push ebx
lea ebx, [ebx]
mov ecx, eax
mov edx, edi
test eax, eax
je 0x100012d9
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 0x100012b8
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 0x100012b0
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 0x10001320
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x10019018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [eax]
or esi, 0xffffffff
mov dword [ebp - 0x408], edi
push edi
push 0x400
lea eax, [ebp - 0x404]
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
mov ecx, eax
lea edx, [ebp - 0x404]
test eax, eax
je 0x10001390
jmp 0x10001370
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 0x10001370
mov edi, dword [ebp - 0x408]
cmp eax, 0x400
je 0x10001344
push edi
call dword [sym.imp.MSVCR100.dll_fclose]
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
mov eax, esi
pop esi
xor ecx, ebp
not eax
pop ebx
call fcn.1000f292
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x10019018]
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 0x10001439
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f292
mov esp, ebp
pop ebp
ret
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x10019054], eax
cmp eax, 0xffffffff
je 0x10001429
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [0x10019058], eax
test eax, eax
je 0x10001429
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [0x10119064], 0x10002410
mov al, 1
call fcn.1000f292
mov esp, ebp
pop ebp
ret
Function at 0x10001480
Capabilities:
Connect socket
Create thread
Encode data using xor
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10019018]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x10019054], 0xffffffff
push esi
mov esi, ecx
jne 0x100014f3
push 0x100
push 0
push 0x10124638
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
mov cl, byte [eax + 0x10012680]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10124638], cl
inc eax
cmp eax, 0x100
jb 0x100014b2
push 0x10124638
push 0
mov ecx, 0x10119200
call fcn.10005510
add esp, 8
xor al, al
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000f292
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 0x1000153b
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x1000153b
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 [0x10019054]
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 0x1000159b
call esi
cmp eax, 0x2733
je 0x1000159b
call esi
push eax
mov eax, 2
call fcn.1000c610
push eax
push 0
mov ecx, 0x10119200
call fcn.10005510
add esp, 0xc
mov esi, 0x10019050
call fcn.10001640
xor al, al
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000f292
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x10019058]
mov edx, dword [0x10019054]
push 0x23
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x100015c0
call esi
push eax
mov eax, 3
jmp 0x10001569
push 0x80000
push 0
push 0x1001905c
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x80000
push 0
push 0x10099060
mov dword [0x1009905c], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x101242ec
push 0
push 0x10019050
push 0x10001bd0
push 0
push 0
mov dword [0x10119060], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 8]
mov dword [0x10119084], eax
xor ecx, ebp
mov byte [0x10119088], 1
mov al, 1
pop esi
call fcn.1000f292
mov esp, ebp
pop ebp
ret 4

Function at 0x10001640
Capabilities:
Terminate thread

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esi + 0x100034], ebx
je 0x10001676
mov dword [0x101242ec], 0xffffffff
mov eax, dword [esi + 0x100034]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x100034]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x100034], ebx
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x1000168c
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1000169d
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 8], ebx
mov byte [esi + 0x100038], bl
pop ebx
ret
Function at 0x100016d0
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 0x10001757
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x10001885
push 0x100
push 0
push 0x10124638
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x10012980]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10124638], cl
inc eax
cmp eax, 0x100
jb 0x10001730
call edi
push eax
push 0x10124638
jmp 0x100018d0
add dword [esi + 0x8000c], eax
mov eax, dword [esi + 0x8000c]
cmp eax, 4
jl 0x10001885
lea esp, [esp]
mov al, byte [esi + edi + 0xc]
lea edx, [esi + 0xc]
cmp al, 0xc1
jne 0x10001786
movzx ebx, byte [edi + esi + 0xd]
mov cl, byte [edi + esi + 0xf]
jmp 0x100017a5
cmp al, 0xc2
jne 0x100018bf
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 0x1000188e
cmp ebx, 0x80000
jg 0x1000188e
cmp ebx, dword [esi + 0x8000c]
jg 0x1000185c
cmp al, 0xc1
jne 0x100017f8
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 0x10001824
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 0x100017de
jmp 0x10001824
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 0x10001824
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 0x1000180c
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 0x10001770
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jle 0x10001885
mov eax, dword [esi + 0x8000c]
test eax, eax
jle 0x10001885
mov ecx, 0x80000
sub ecx, edi
cmp eax, ecx
jg 0x10001885
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.1000c610
push eax
push 0
mov ecx, 0x10119200
call fcn.10005510
add esp, 0x14
call fcn.10001640
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.1000c610
push eax
push 0
mov ecx, 0x10119200
call fcn.10005510
add esp, 0xc
call fcn.10001640
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret