joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408c13
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4c5114]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x408c97
cmp byte [esi + 0x3d], 0
je 0x408c97
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x408c69
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x408c6d
sub eax, 1
je 0x408c71
dec eax
sub eax, 1
je 0x408c97
xor al, al
jmp 0x408c99
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x408c8e
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00473ea3
add esp, 0x10
cmp edi, eax
jne 0x408c69
cmp byte [esi + 0x3d], 0
sete al
jmp 0x408c99
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0045112d
leave
ret

Function at 0x40bbd1
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, 0x270
cmp dword [esi], edi
jne 0x40bc19
lea edx, [esi + 8]
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x40bbe1
jmp 0x40bc26
cmp dword [esi], 0x4e0
jb 0x40bc26
call fcn.0040bc60
mov eax, dword [esi]
pop edi
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
pop esi
ret

Function at 0x40bc60
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, 0xe3
push edi
lea edi, [esi + 0x9c4]
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x40bc72
lea edi, [esi + 0xd50]
mov ebx, 0x18c
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd4c]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x40bcb7
mov ecx, dword [esi + 0x1380]
xor ecx, dword [esi + 4]
and ecx, 0x7fffffff
xor ecx, dword [esi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
and dword [esi], 0
pop esi
pop ebx
ret
Function at 0x40cced
Capabilities:
Get disk information

Disassembly:
push 0x124
mov eax, 0x493606
call fcn.004521d2
mov ebx, ecx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x11c], ebx
xor eax, eax
mov edi, ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x12c], eax
stosd dword es:[edi], eax
push ecx
push ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00414091
and dword [ebp - 4], 0
lea eax, [ebp - 0xe8]
xor edi, edi
push eax
inc edi
push 0x68
mov dword [ebp - 0x12c], edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x40ce05
cmp word [ebp - 0xe8], 0
lea esi, [ebp - 0xe8]
je 0x40ce05
push esi
lea ecx, [ebp - 0x100]
call fcn.00409baa
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x100]
cmp dword [ebp - 0xec], 8
mov eax, dword [ebp - 0xf0]
cmovae ecx, dword [ebp - 0x100]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x100]
cmovae ecx, dword [ebp - 0x100]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x118]
call fcn.0040a437
push esi
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
sub eax, 0
je 0x40cddd
sub eax, 1
je 0x40cddd
sub eax, 1
je 0x40cdcf
sub eax, 1
je 0x40cdcf
sub eax, 1
je 0x40cdcf
sub eax, 1
jmp 0x40cddd
lea eax, [ebp - 0x118]
mov ecx, ebx
push eax
call fcn.0041405b
lea ecx, [ebp - 0x118]
call fcn.004085da
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 0
call fcn.0040848e
add esi, 8
xor eax, eax
cmp word [esi], ax
jne 0x40cd5f
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
mov dword [ebp - 0x124], esi
cmp esi, edi
jae 0x40ce9d
lea eax, [esi + 0x18]
mov dword [ebp - 0x120], eax
mov edx, 0x4af88d
mov dword [ebp - 0x11c], edi
mov ecx, esi
call fcn.0040cb3e
test al, al
je 0x40ce81
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x11c], eax
cmp eax, edi
je 0x40ce70
mov dword [ebp - 0x128], esi
mov ebx, eax
sub esi, eax
push ebx
lea ecx, [esi + ebx]
call fcn.004140f5
add ebx, 0x18
cmp ebx, edi
jne 0x40ce51
mov ebx, dword [ebp - 0x130]
mov esi, dword [ebp - 0x124]
mov edi, dword [ebx + 4]
lea ecx, [edi - 0x18]
call fcn.004085da
add dword [ebx + 4], 0xffffffe8
mov eax, dword [ebx + 4]
jmp 0x40ce87
mov eax, dword [ebp - 0x11c]
add dword [ebp - 0x120], 0x18
add esi, 0x18
mov dword [ebp - 0x124], esi
mov edi, eax
cmp esi, eax
jb 0x40ce21
mov eax, ebx
call fcn.0045217c
ret
Function at 0x41172f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
sub esp, 0x14
cmp dword [edx + 0x14], 8
mov eax, dword [edx + 0x10]
push esi
lea esi, [eax*2 + 2]
jb 0x41174b
mov edx, dword [edx]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x411756
mov eax, dword [eax]
push esi
push edx
push 1
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x41176e
pop esi
leave
ret 8
push str.Cannot_write_string_value:_RegSetValueExW_failed.
push eax
lea ecx, [ebp - 0x14]
call fcn.0041184e
push 0x4c3afc
lea eax, [ebp - 0x14]
push eax
call fcn.004688b1
int3

Function at 0x41178b
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x24
mov eax, 0x494499
call fcn.004521d2
mov ebx, ecx
mov esi, dword [ebp + 0xc]
xor edx, edx
mov edi, dword [ebp + 8]
mov eax, esi
mov dword [ebp - 4], edx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edx
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x14], edx
jb 0x4117b7
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push edx
push edx
push 2
push eax
push edx
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x411831
mov eax, dword [ebp - 0x14]
mov ecx, edi
push 0x20
shr eax, 1
push eax
call fcn.00405a35
xor edx, edx
mov eax, edi
mov dword [ebp - 4], edx
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x18], 1
jb 0x4117f2
mov eax, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x4117fa
mov esi, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push eax
push edx
push 2
push esi
push edx
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x411817
push str.Cannot_get_string_value:_RegGetValueW_failed.
jmp 0x411836
mov ecx, dword [ebp - 0x14]
shr ecx, 1
dec ecx
push 0
push ecx
mov ecx, edi
call fcn.004140d2
mov eax, edi
call fcn.0045217c
ret 8
push str.Cannot_get_size_of_string_value:_RegGetValueW_failed.
push eax
lea ecx, [ebp - 0x30]
call fcn.0041184e
push 0x4c3afc
lea eax, [ebp - 0x30]
push eax
call fcn.004688b1
int3
Function at 0x43ba10
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497938
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4c5114]
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 esi, ecx
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push 0xf0000000
push 1
push 0
push 0
push esi
mov dword [esi], 0
call edi
test eax, eax
jne 0x43ba86
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 8
push 1
push 0
push str.Crypto_RNG
push esi
mov ebx, eax
call edi
test eax, eax
jne 0x43ba86
push 0x28
push 1
push eax
push str.Crypto_RNG
push esi
call edi
test eax, eax
je 0x43baa4
mov eax, esi
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.0045112d
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CryptAcquireContext
lea ecx, [ebp - 0x28]
call fcn.00405bd5
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x50]
call fcn.0043bb70
push 0x4c0588
lea eax, [ebp - 0x50]
push eax
call fcn.004688b1
int3
Function at 0x43f8a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
xor dl, dl
mov ecx, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 8], eax
push ebp
push esi
push edi
test bl, 3
jne 0x43f9d1
test al, 3
jne 0x43f9d1
mov edi, ecx
mov dword [esp + 0x10], 0
shr edi, 2
xor esi, esi
test edi, edi
je 0x43f98c
cmp edi, 8
jb 0x43f955
mov ebp, dword [esp + 0x20]
mov edx, edi
mov dword [esp + 0x14], ebx
and edx, 0xfffffff8
add eax, 0x10
xorps xmm3, xmm3
sub dword [esp + 0x14], ebp
xorps xmm2, xmm2
mov ebp, dword [esp + 0x14]
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x20]
movups xmm1, xmmword [ebx + esi*4]
add esi, 8
pxor xmm1, xmm0
por xmm3, xmm1
movups xmm1, xmmword [eax + ebp - 0x20]
movups xmm0, xmmword [eax - 0x20]
pxor xmm1, xmm0
por xmm2, xmm1
cmp esi, edx
jb 0x43f904
mov eax, dword [esp + 0x20]
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movd dword [esp + 0x10], xmm2
cmp esi, edi
jae 0x43f990
mov ebp, ebx
lea edx, [eax + esi*4]
sub ebp, eax
mov dword [esp + 0x14], ebp
mov ebp, edi
mov ebx, dword [esp + 0x14]
sub ebp, esi
mov esi, edi
mov edi, dword [esp + 0x10]
mov eax, dword [edx + ebx]
lea edx, [edx + 4]
xor eax, dword [edx - 4]
or edi, eax
sub ebp, 1
jne 0x43f972
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x10], edi
jmp 0x43f994
xor edi, edi
jmp 0x43f994
mov edi, dword [esp + 0x10]
shl esi, 2
sub ecx, esi
jne 0x43f9a8
test edi, edi
pop edi
pop esi
pop ebp
sete al
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
add ebx, esi
mov ebp, dword [esp + 0x20]
mov edx, eax
shr eax, 0x10
add ebp, esi
shr edx, 0x18
or dl, al
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x10]
shr eax, 8
or dl, al
mov eax, ebp
or dl, byte [esp + 0x10]
xor edi, edi
test ecx, ecx
je 0x43fa90
cmp ecx, 0x20
jb 0x43fa6a
mov esi, ecx
xorps xmm3, xmm3
and esi, 0xffffffe0
xorps xmm2, xmm2
mov dword [esp + 0x1c], esi
mov esi, ebx
sub esi, dword [esp + 0x14]
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x10]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [eax + ebp - 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x10]
por xmm3, xmm1
movups xmm1, xmmword [ebx + edi + 0x10]
add edi, 0x20
pxor xmm1, xmm0
por xmm2, xmm1
cmp edi, esi
jb 0x43fa05
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 2
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 1
por xmm2, xmm0
movd eax, xmm2
or dl, al
mov ebp, dword [esp + 0x14]
cmp edi, ecx
jae 0x43fa90
sub ebx, ebp
lea esi, [edi + ebp]
sub ecx, edi
nop dword [eax]
mov al, byte [ebx + esi]
lea esi, [esi + 1]
xor al, byte [esi - 1]
or dl, al
sub ecx, 1
jne 0x43fa80
pop edi
pop esi
test dl, dl
pop ebp
sete al
pop ebx
add esp, 8
ret
Function at 0x442f40
Capabilities:
Hash data using murmur3
Resolve function by parsing pe exports

Disassembly:
cmp byte [0x4cd444], 0
jne 0x442f4e
call fcn.0044b5b0
cmp byte [0x4cd44d], 0
je 0x442f6c
push 0
push 0x40
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.0044cfd0
add esp, 0x10
ret
jmp fcn.00441280
Function at 0x454331
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x482960
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00482623

Function at 0x48296b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004827a4

Function at 0x489aca
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048978a
Function at 0x66e56930
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x66e56af4
pushal
mov esi, 0x66e53015
lea edi, [esi - 0x12015]
push edi
or ebp, 0xffffffff
jmp 0x66e5695a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x66e56961
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x66e56950
mov eax, 1
add ebx, ebx
jne 0x66e56973
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x66e56968
jne 0x66e56984
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x66e56968
xor ecx, ecx
sub eax, 3
jb 0x66e56998
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x66e56a0a
mov ebp, eax
add ebx, ebx
jne 0x66e569a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x66e569b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x66e569d4
inc ecx
add ebx, ebx
jne 0x66e569c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x66e569b5
jne 0x66e569d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x66e569b5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x66e569f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x66e569e5
jmp 0x66e56956
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x66e569f4
add edi, ecx
jmp 0x66e56956
pop esi
mov edi, esi
mov ecx, 0x3d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x66e56a12
cmp byte [edi], 0
jne 0x66e56a12
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 0x66e56a17
lea edi, [esi + 0x14000]
mov eax, dword [edi]
or eax, eax
je 0x66e56a86
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x16000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x16050]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x66e56a44
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x16054]
or eax, eax
je 0x66e56a80
mov dword [ebx], eax
add ebx, 4
jmp 0x66e56a61
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 0x66e56ab7
cmp al, 0xef
ja 0x66e56aaa
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x66e56a8c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x66e56a99
mov ebp, dword [esi + 0x16058]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x66e56aeb
sub esp, 0xffffff80
jmp 0x66e41980
Function at 0x10002ab0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [eax + 0x70], 0
mov dword [eax + 0x4c], ecx
jne 0x10002ac3
mov dword [eax + 0x70], 1
mov dword [eax + 0x54], ecx
mov edx, ecx
sub edx, dword [eax + 0x54]
cmp edx, 0x2710
jge 0x10002ad8
cmp edx, 0xffffd8f0
jge 0x10002add
mov dword [eax + 0x54], ecx
jmp 0x10002ae1
test edx, edx
js 0x10002afc
mov edx, dword [eax + 0x50]
add dword [eax + 0x54], edx
push esi
push edi
mov edi, ecx
sub edi, dword [eax + 0x54]
pop edi
pop esi
js 0x10002af7
add edx, ecx
mov dword [eax + 0x54], edx
jmp fcn.100024c0
ret

Function at 0x10002ca0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x1002c2b8]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi], vtable.CTcpSocket.0
mov dword [esi + 0x38], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov eax, vtable.CBuffer.0
mov dword [esi + 0x2c], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x48], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x4c], eax
lea eax, [ebp - 0x198]
push eax
push 0x202
mov dword [esi + 0x58], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
lea ecx, [esi + 0x18]
push ecx
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x14], edi
xor ecx, ebp
mov dword [esi + 0x64], 0xffffffff
mov eax, esi
pop edi
call fcn.10012873
mov esp, ebp
pop ebp
ret
Function at 0x10003270
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, eax
mov dword [ebp - 4], 0
cmp ebx, 0x40000
jl 0x100032cd
jmp 0x10003290
xor edi, edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x64]
push 0
push 0x40000
push esi
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x100032b1
inc edi
cmp edi, 0xf
jl 0x10003292
cmp edi, 0xf
je 0x100032fe
add dword [ebp - 4], eax
sub ebx, 0x40000
add esi, 0x40000
cmp ebx, 0x40000
jge 0x10003290
test ebx, ebx
jle 0x100032f6
xor edi, edi
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x64]
push 0
push ebx
push esi
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x100032ee
inc edi
cmp edi, 0xf
jl 0x100032d3
cmp edi, 0xf
je 0x100032fe
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
je 0x10003301
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10003520
Capabilities:
Create thread
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 0x198]
xor ebx, ebx
cmp eax, ebx
jne 0x10003542
mov dword [esi + 0x1b8], 0x598
jmp 0x10003559
cmp eax, 0x598
jbe 0x10003553
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 0x1b8], eax
push edi
mov dword [esi + 0x64], ebx
call fcn.10003680
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, 1
push 0x10032d88
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], 5
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], eax
mov dword [ebp - 8], ebx
call edi
mov dword [esi + 0x48], eax
cmp eax, ebx
jne 0x10003598
push 0x10032d88
call edi
mov dword [esi + 0x48], eax
mov ecx, dword [esi + 0x40]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
mov ebx, 0x40000
push ecx
mov dword [ebp - 4], ebx
call edi
mov eax, dword [esi + 0x40]
push 4
lea edx, [ebp - 4]
push edx
push 0x1002
push 0xffff
push eax
mov dword [ebp - 4], ebx
call edi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ecx
push edx
call fcn.10003710
test eax, eax
je 0x1000362d
lea eax, [esi + 0x58]
push eax
push 0
push esi
push 0x10003890
push 0
push 0
call fcn.100132b9
add esp, 0x18
mov dword [esi + 0x54], eax
test eax, eax
je 0x1000361f
mov ecx, dword [esi + 0x2c]
push ecx
mov edi, 1
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 0x5c], 8
push 0x65f
jmp 0x1000363b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x5c], 0xb
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
call ebx
xor eax, eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], 5
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, esi
call fcn.10003f80
push edi
call ebx
mov edi, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10003710
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1002c2b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
push 0x11
push 2
xor edi, edi
push 2
mov dword [ebp - 0x18], edi
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x40], eax
cmp eax, 0xffffffff
jne 0x10003752
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012873
mov esp, ebp
pop ebp
ret 8
push edi
push edi
lea ecx, [ebp - 0x24]
push ecx
push edi
push edi
push 4
lea edx, [ebp - 0x1c]
push edx
push 0x9800000c
push eax
mov dword [ebp - 0x1c], edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov ecx, dword [esi + 0x40]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 0x1c]
push eax
push 0xfffffffffffffffb
push 0xffff
push ecx
call edi
mov eax, dword [esi + 0x40]
push 4
lea edx, [ebp - 0x1c]
push edx
push 4
push 0xffff
push eax
call edi
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
push 0
push 0
push 0
push 0
push ebx
mov dword [esi + 0x44], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x20], eax
inc eax
push eax
call fcn.10011f29
mov ecx, dword [ebp - 0x20]
add esp, 4
push 0
push 0
push ecx
mov edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [ebp - 0x20]
push edi
mov byte [edi + edx], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
push edi
mov ebx, eax
call fcn.10012868
add esp, 4
test ebx, ebx
je 0x1000373e
mov ecx, dword [ebp + 0xc]
mov eax, 2
push ecx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
mov edx, dword [ebx + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x40]
push 0x30
push edx
push eax
mov dword [ebp - 0x10], ecx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x10003877
mov edx, dword [esi + 0x40]
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x10003870
cmp eax, 0xffffffff
jne 0x10003867
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x10003870
mov dword [ebp - 0x18], 0
jmp 0x10003877
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
pop edi
xor ecx, ebp
pop ebx
call fcn.10012873
mov esp, ebp
pop ebp
ret 8