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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 8]
mov dword [0x1018f690], 0xacb
mov dword [ebp - 0x10], eax
call fcn.100075b0
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x100066c6
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov dword [0x1018f694], 0x6ce
mov esi, dword [edx + eax + 0x24]
mov dword [0x1018f690], 0xfffffca0
mov edi, dword [edx + eax + 0x18]
cmp edi, 0
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
je 0x10006787
jmp 0x10006799
mov eax, dword [ebp - 0x38]
add eax, 2
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov edx, dword [ebp - 0x30]
cmp ecx, edx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
jb 0x100067a9
jmp 0x10006792
mov eax, dword [ebp - 0x48]
movzx eax, word [eax]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
add ecx, dword [ecx + edx + 0x1c]
mov esi, dword [ebp - 0x1c]
add esi, dword [ecx + eax*4]
mov dword [0x1018f690], 0x1919
mov dword [ebp - 0x34], esi
jmp 0x10006787
mov al, byte [ebp - 0x49]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x50]
add edx, 1
mov ah, byte [ebp - 0x51]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov cl, byte [ebp - 0x51]
mov dword [ebp - 0x58], edx
mov byte [ebp - 0x59], cl
jne 0x100067cd
jmp 0x100067ff
mov eax, dword [ebp - 0x34]
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x34], eax
jmp 0x10006787
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
add ecx, edx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + ecx*4]
mov dword [0x1018f690], 0xacb
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x58]
mov ecx, eax
mov edx, dword [ebp - 0x60]
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 bl, cl
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x49], bh
mov byte [ebp - 0x51], cl
mov byte [ebp - 0x59], bl
jne 0x10006756
mov al, byte [ebp - 0x59]
test al, 1
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x48], ecx
jne 0x10006731
jmp 0x10006711
Function at 0x10007290
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [0x1018f694], 0x1a0e
mov dword [ebp - 4], 0
mov dword [0x1018f690], 0x7d0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [0x1018f690]
add edx, 0xfffffa13
mov dword [0x1018f690], edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x1018f694], 0x19a
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x1000737a
mov eax, 1
mov dword [0x1018f690], 0x26a1
mov dword [ebp - 0x14], eax
jmp 0x10007432
mov eax, dword [ebp - 0x18]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], eax
jl 0x1000737a
mov eax, dword [ebp - 0x1c]
mov ecx, 0xffffec88
mov dword [0x1018f690], 0x2b1
mov edx, dword [ebp - 0xc]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
je 0x10007395
jmp 0x10007368
mov eax, 0xfffff83a
mov dword [0x1018f690], 0xe63
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0x12], 0x64
mov dword [ebp - 0x24], eax
je 0x100073ed
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov dword [0x1018f694], eax
mov dword [ebp - 0x14], ecx
jmp 0x10007432
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
je 0x1000731d
jmp 0x10007306
mov eax, 0xffffec88
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0x18], 0x6f
mov dword [ebp - 0x24], eax
jne 0x10007368
mov eax, 0x1137
mov dword [0x1018f690], 0x2760
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x24], eax
jne 0x10007368
mov eax, 0x1137
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x24], eax
je 0x10007343
jmp 0x10007368
mov eax, 0xffffee12
mov dword [0x1018f690], 0x43b
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x24], eax
jne 0x10007368
mov eax, 0xffffee12
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x24], eax
je 0x100072ef
jmp 0x10007368
mov eax, dword [ebp - 0x14]
add esp, 0x24
pop ebp
ret
Function at 0x100078e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x1018f698], 0
mov dword [0x1018f69c], 0
mov dword [0x1018f6a8], 0
mov dword [0x1018f690], 0x1541
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
je 0x10007949
mov eax, 0x1541
xor ecx, ecx
mov edx, ecx
mov esi, ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], ecx
jmp 0x1000797b
mov dword [0x1018f694], 0xaeb
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x1018f690]
mov ecx, dword [0x1018f69c]
mov edx, dword [0x1018f698]
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
mov edi, 0x100
add esi, 0xffffe50f
mov ebx, eax
add ebx, 1
add ecx, 1
mov dword [0x1018f690], esi
mov dword [ebp - 0x34], eax
mov eax, ecx
mov dword [ebp - 0x38], edx
cdq
idiv edi
mov dword [0x1018f698], edx
mov dword [0x1018f694], 0x1c5a
mov ecx, dword [ebp - 0x1c]
movzx esi, byte [ecx + edx]
mov ecx, dword [ebp - 0x38]
add esi, ecx
mov eax, esi
mov dword [ebp - 0x3c], edx
cdq
idiv edi
mov dword [0x1018f69c], edx
mov dword [0x1018f690], 0xe53
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x3c]
mov cl, byte [ecx + esi]
mov byte [0x1018f6a0], cl
mov dword [0x1018f694], 0x1303
mov edi, dword [ebp - 0x1c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x1018f6a0]
mov edx, dword [0x1018f69c]
mov byte [edi + edx], cl
mov edx, dword [0x1018f690]
mov ecx, edx
add ecx, 0x1414
mov dword [0x1018f690], ecx
mov ecx, dword [0x1018f698]
movzx ecx, byte [edi + ecx]
mov esi, dword [0x1018f69c]
movzx esi, byte [edi + esi]
add esi, ecx
mov ecx, edx
add ecx, 0xfffff366
mov dword [0x1018f690], ecx
and esi, 0xff
mov dword [0x1018f6a8], esi
mov cl, byte [edi + esi]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x34]
mov ch, byte [esi + edi]
add edx, 0xffffe34d
mov dword [0x1018f690], edx
xor ch, cl
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], ch
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x30], ebx
jne 0x1000795b
jmp 0x10007949
Function at 0x10007a90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xa0
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
mov edx, dword [0x1018f690]
mov esi, edx
add esi, 0xffffe262
mov dword [0x1018f690], esi
add edx, 0xffffd598
mov dword [0x1018f694], edx
mov dword [esp], eax
mov dword [esp + 0x24], ecx
call fcn.10006820
lea ecx, [0x100060a0]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x94], edx
mov dword [esp + 0x70], 0x152800
mov edx, dword [0x1018f67c]
mov dword [esp + 0x40], edx
mov edx, dword [0x1018f680]
mov dword [esp + 0x74], edx
mov edx, dword [0x1018f684]
mov dword [esp + 0x68], edx
mov edx, dword [0x1018f688]
mov dword [esp + 0x48], edx
mov edx, dword [0x1018f68c]
mov dword [esp + 0x4c], edx
mov dword [0x1018f690], 0x2013
mov dword [0x1018f694], 0x1060
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
jmp 0x10007b70
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10006340
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [0x1018f690], 0x1cda
mov dword [esp + 0x18], eax
jmp 0x10007be2
mov eax, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0x14], eax
jne 0x10007b97
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
je 0x10007bab
mov eax, dword [esp + 0x14]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x1c], eax
jmp 0x10007b70
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x80], ecx
mov dword [0x1018f694], 0x258d
mov eax, dword [ecx + eax + 0x50]
mov dword [esp + 0x64], eax
call fcn.10007290
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x18], ecx
je 0x10007b3a
mov eax, dword [esp + 0x18]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x100010f0
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0x44]
mov dword [esi], 0x10016488
test al, al
je 0x1000114c
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.WINMM.dll_waveInStop]
mov ecx, dword [esi + 0x18]
push ecx
call dword [sym.imp.WINMM.dll_waveInReset]
mov ebp, dword [sym.imp.WINMM.dll_waveInUnprepareHeader]
lea edi, [esi + 0x30]
mov ebx, 2
mov edx, dword [edi]
mov eax, dword [esi + 0x18]
push 0x20
push edx
push eax
call ebp
add edi, 4
dec ebx
jne 0x10001125
mov ecx, dword [esi + 0x18]
push ecx
call dword [sym.imp.WINMM.dll_waveInClose]
mov edx, dword [esi + 0x2c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov al, byte [esi + 0x45]
test al, al
je 0x10001186
mov eax, dword [esi + 0x40]
push eax
call dword [sym.imp.WINMM.dll_waveOutReset]
mov ebp, dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
lea edi, [esi + 0x30]
mov ebx, 2
mov ecx, dword [edi]
mov edx, dword [esi + 0x40]
push 0x20
push ecx
push edx
call ebp
add edi, 4
dec ebx
jne 0x1000116b
mov eax, dword [esi + 0x40]
push eax
call dword [sym.imp.WINMM.dll_waveOutClose]
lea edi, [esi + 0x30]
mov ebx, 2
mov ecx, dword [edi - 0x28]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov edx, dword [edi]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [edi - 0x20]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ecx, dword [edi + 8]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
add edi, 4
dec ebx
jne 0x1000118e
mov edx, dword [esi + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esi + 0x28]
push eax
call edi
mov ecx, dword [esi + 0x2c]
push ecx
call edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10001db0
Capabilities:
Enumerate devices by category

Disassembly:
push 0xffffffffffffffff
push 0x10014e9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x828
lea eax, [esp + 0x14]
mov dword [esp + 8], 0
push eax
push 0x1001733c
push 1
push 0
push 0x100173cc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
je 0x10001e0a
or eax, 0xffffffff
mov ecx, dword [esp + 0x828]
mov dword fs:[0], ecx
add esp, 0x834
ret 4
mov dword [esp], 0
mov eax, dword [esp + 0x14]
lea edx, [esp]
push 0
push edx
mov ecx, dword [eax]
push 0x100173bc
push eax
mov dword [esp + 0x840], 0
call dword [ecx + 0xc]
test eax, eax
je 0x10001e6a
mov eax, dword [esp]
mov dword [esp + 0x830], 0xffffffff
test eax, eax
je 0x10001e50
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or eax, 0xffffffff
mov ecx, dword [esp + 0x828]
mov dword fs:[0], ecx
add esp, 0x834
ret 4
mov eax, dword [esp]
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [esp]
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 8]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x10001f73
push ebx
mov ebx, dword [esp + 0x83c]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push edi
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push 0x100165ac
mov ecx, dword [eax]
push 0
push 0
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x10001f47
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x28]
push 0
mov word [esp + 0x2c], 8
mov ecx, dword [eax]
push edx
push str.FriendlyName
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x10001f3d
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
inc eax
push 0
mov dword [esp + 0x1c], eax
push 0
lea eax, [esp + 0x40]
push 0x800
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call ebp
mov edx, ebx
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
add ebx, 0x200
lea esi, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, edx
mov edx, ecx
mov eax, dword [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x18]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x10001ea3
pop edi
pop esi
pop ebp
pop ebx
mov eax, dword [esp]
mov dword [esp + 0x830], 0xffffffff
test eax, eax
je 0x10001f8c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x828]
mov eax, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x834
ret 4
Function at 0x10002260
Capabilities:
Enumerate devices by category

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10014ee0
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push edi
mov edi, dword [esp + 0x34]
xor ebx, ebx
cmp edi, ebx
jge 0x10002299
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
mov dword [esp + 8], ebx
lea eax, [esp + 8]
mov dword [esp + 0x2c], ebx
push eax
push 0x1001733c
push 1
push ebx
push 0x100173cc
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
je 0x100022e8
mov eax, dword [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
cmp eax, ebx
je 0x10002332
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 8]
lea ecx, [esp + 0x34]
push ebx
push ecx
mov edx, dword [eax]
push 0x100173bc
push eax
mov byte [esp + 0x3c], 1
call dword [edx + 0xc]
cmp eax, ebx
je 0x10002347
mov eax, dword [esp + 0x34]
mov byte [esp + 0x2c], bl
cmp eax, ebx
je 0x1000231c
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
cmp eax, ebx
je 0x10002332
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
mov eax, dword [esp + 0x34]
push esi
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x14]
mov ecx, dword [eax]
push edx
push 1
push eax
xor esi, esi
call dword [ecx + 0xc]
cmp edi, ebx
jl 0x10002406
push ebp
mov ebp, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x40]
push edx
push 0x100165ac
mov ecx, dword [eax]
push ebx
push ebx
push eax
call dword [ecx + 0x24]
cmp eax, ebx
jl 0x100023dc
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x1c]
push ebx
mov word [esp + 0x20], 8
mov ecx, dword [eax]
push edx
push str.FriendlyName
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jne 0x100023d2
cmp esi, edi
jne 0x100023c7
mov eax, dword [esp + 0x14]
push ebp
push 0x1001732c
push ebx
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x20]
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x40]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x18]
mov ecx, dword [eax]
push edx
push 1
push eax
inc esi
call dword [ecx + 0xc]
cmp esi, edi
jle 0x10002377
pop ebp
mov eax, dword [esp + 0x38]
mov byte [esp + 0x30], bl
cmp eax, ebx
pop esi
je 0x10002419
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
cmp eax, ebx
je 0x1000242f
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0x24]
pop edi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 8
Function at 0x10002680
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x10014f1a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 4]
call fcn.100017b0
lea ecx, [esi + 0x2c]
mov dword [esp + 0x1a4], 0
call fcn.100017b0
lea ecx, [esi + 0x54]
mov byte [esp + 0x1a4], 1
call fcn.100017b0
lea ecx, [esi + 0x7c]
mov byte [esp + 0x1a4], 2
call fcn.100017b0
lea eax, [esp + 0xc]
mov dword [esi], 0x100164b8
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov byte [esp + 4], 0x50
mov byte [esp + 5], 0x43
mov byte [esp + 6], 0x52
mov byte [esp + 7], 0x61
mov edx, dword [esp + 4]
lea ecx, [esi + 0xb0]
mov dword [esi + 0xac], eax
mov al, 0x74
mov dword [ecx], edx
mov byte [esi + 0xb5], 0
mov dword [esi + 0xa8], 0xffffffff
mov byte [ecx + 4], al
mov ecx, dword [esp + 0x19c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1a4
ret

Function at 0x10002840
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x20
push esi
push edi
mov esi, ecx
call fcn.10002cb0
mov eax, dword [esi + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 6
push 1
push 2
mov byte [esi + 0xb5], 0
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0xa8], eax
jne 0x10002881
pop edi
xor al, al
pop esi
add esp, 0x20
ret 8
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
jne 0x1000289c
pop edi
xor al, al
pop esi
add esp, 0x20
ret 8
mov edx, dword [esp + 0x30]
mov word [esp + 0x18], 2
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x1a], ax
mov eax, dword [edi + 0xc]
push 0x10
mov ecx, dword [eax]
lea eax, [esp + 0x1c]
push eax
mov edx, dword [ecx]
mov ecx, dword [esi + 0xa8]
push ecx
mov dword [esp + 0x28], edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x100028e1
pop edi
xor al, al
pop esi
add esp, 0x20
ret 8
mov eax, dword [esi + 0xa8]
lea edx, [esp + 0xb]
push 1
push edx
push 8
push 0xffff
push eax
mov byte [esp + 0x1f], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1000293f
push eax
lea ecx, [esp + 0xf]
push eax
push ecx
push eax
push eax
mov eax, dword [esi + 0xa8]
lea edx, [esp + 0x20]
push 0xc
push edx
push 0x98000004
push eax
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], 0x2bf20
mov dword [esp + 0x38], 0x1388
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 1
push 0
push 0
push esi
push 0x10002970
push 0
push 0
mov byte [esi + 0xb5], 1
call fcn.1000e920
add esp, 0x1c
mov dword [esi + 0xa4], eax
mov al, 1
pop edi
pop esi
add esp, 0x20
ret 8
Function at 0x10002eb0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
cmp ebx, esi
mov ebp, ecx
mov dword [esp + 0x14], 0
jb 0x10002f1a
mov dword [esp + 0x1c], 0
mov eax, dword [ebp + 0xa8]
push 0
push esi
push edi
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x10002ef9
mov ecx, dword [esp + 0x1c]
inc ecx
cmp ecx, 0xf
mov dword [esp + 0x1c], ecx
jl 0x10002ed6
cmp dword [esp + 0x1c], 0xf
je 0x10002f50
mov ecx, dword [esp + 0x14]
push 0xa
add ecx, eax
add edi, esi
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
sub ebx, esi
cmp ebx, esi
jae 0x10002ece
test ebx, ebx
jle 0x10002f44
xor esi, esi
mov ecx, dword [ebp + 0xa8]
push 0
push ebx
push edi
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x10002f3b
inc esi
cmp esi, 0xf
jl 0x10002f20
cmp esi, 0xf
je 0x10002f50
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
je 0x10002f53
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x10002f70
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x10014f93
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x10], esi
call fcn.10007800
mov cl, byte [esp + 0x20]
push 0x18
mov dword [esp + 0x1c], 0
mov byte [esi + 0x60], cl
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [eax], eax
mov dword [eax + 4], eax
add esp, 4
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], 0
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.RegisterServiceCtrlHandlerA
push str.ADVAPI32.dll
mov byte [esp + 0x20], 1
mov dword [esi], 0x100164d0
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.SetServiceStatus
push str.ADVAPI32.dll
mov dword [esi + 0x18], eax
call edi
push eax
call ebx
push str.OpenEventLogA
push str.ADVAPI32.dll
mov dword [esi + 0x1c], eax
call edi
push eax
call ebx
push str.CloseServiceHandle
push str.ADVAPI32.dll
mov dword [esi + 0x20], eax
call edi
push eax
call ebx
push str.RegSetValueExA
push str.ADVAPI32.dll
mov dword [esi + 0x24], eax
call edi
push eax
call ebx
push str.RegCloseKey
push str.ADVAPI32.dll
mov dword [esi + 0x28], eax
call edi
push eax
call ebx
mov dword [esi + 0x44], eax
mov ecx, esi
mov dword [esi + 0x6c], 0
call fcn.10003670
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4