joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434d30
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x457e65
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x893074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov edi, dword [ebp + 8]
cmp edi, dword [ebp + 0xc]
je 0x434f11
nop dword [eax]
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, ebx
push eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.00434c50
cmp dword [ebp - 0x1c], 0
jne 0x434f02
cmp dword [ebx + 8], 0x15555555
je 0x434f25
lea eax, [ebx + 4]
mov dword [ebp - 0x28], eax
push 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
call fcn.004481f5
mov ecx, dword [edi]
mov esi, eax
add esp, 4
mov dword [ebp - 0x24], esi
mov dword [esi + 8], ecx
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0x1c]
inc ecx
mov dword [ebp - 0x14], eax
movss xmm3, dword [ebx]
mov dword [ebp - 4], 1
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x45b440]
cvtpd2ps xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x45b440]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
seta al
test al, al
je 0x434ea5
divss xmm2, xmm3
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x30], xmm0
fld qword [ebp - 0x30]
fstp qword [esp]
call fcn.0044c3e0
fstp qword [ebp - 0x30]
movsd xmm0, qword [ebp - 0x30]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.00448a60
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebp - 0x14]
cmp eax, ecx
jae 0x434e7e
cmp eax, 0x200
jae 0x434e7c
shl eax, 3
cmp eax, ecx
jae 0x434e7e
mov eax, ecx
push eax
mov ecx, ebx
call fcn.0043bf60
push dword [ebp - 0x10]
lea eax, [esi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00434c50
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
jmp 0x434ea8
mov edx, dword [ebp - 0x20]
mov eax, dword [ebx + 8]
mov ecx, dword [edx + 4]
inc eax
mov edi, dword [ebp - 0x28]
mov dword [ebx + 8], eax
mov dword [esi], edx
mov dword [esi + 4], ecx
mov dword [ecx], esi
mov dword [edx + 4], esi
mov eax, dword [ebx + 0x18]
and eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x24], 0
mov ebx, dword [ecx + eax*8]
cmp ebx, dword [edi]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x18]
jne 0x434ee4
mov dword [ecx + eax*8], esi
jmp 0x434ef7
cmp dword [ecx + eax*8], edx
jne 0x434eee
mov dword [ecx + eax*8], esi
jmp 0x434efb
mov edx, dword [ebp - 0x14]
cmp dword [ecx + eax*8 + 4], edx
jne 0x434efb
mov dword [ecx + eax*8 + 4], esi
mov dword [ebp - 4], 0xffffffff
add edi, 4
mov dword [ebp + 8], edi
cmp edi, dword [ebp + 0xc]
jne 0x434d70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.004491a9
int3
Function at 0x43bf60
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 0xc], ebx
mov eax, edi
shl eax, cl
cmp edx, eax
ja 0x43c0b3
mov esi, dword [ebx + 4]
lea eax, [edx - 1]
or eax, edi
mov dword [ebp + 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.0043be60
mov ecx, dword [ebx + 4]
lea eax, [edi - 1]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], edi
mov ecx, dword [ecx]
mov edx, ecx
cmp ecx, esi
je 0x43c086
movzx eax, byte [ecx + 8]
mov edx, dword [edx]
xor eax, 0x811c9dc5
imul edi, eax, 0x1000193
movzx eax, byte [ecx + 9]
xor edi, eax
imul eax, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, eax
mov eax, dword [ebx + 0xc]
mov ebx, dword [eax + edi*8]
lea eax, [eax + edi*8]
mov dword [ebp - 4], eax
cmp ebx, esi
jne 0x43bffe
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x43c079
mov eax, dword [eax + 4]
movzx edi, word [ecx + 8]
cmp di, word [eax + 8]
jne 0x43c03a
mov eax, dword [eax]
mov dword [ebp - 8], eax
cmp eax, ecx
je 0x43c032
mov ebx, dword [ecx + 4]
mov esi, dword [ebp - 8]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ecx
jmp 0x43c079
mov edi, eax
cmp ebx, eax
je 0x43c056
mov eax, dword [eax + 4]
mov edi, eax
movzx esi, word [ecx + 8]
cmp si, word [eax + 8]
mov esi, dword [ebp + 8]
je 0x43c08f
cmp ebx, eax
jne 0x43c040
mov eax, dword [ecx + 4]
mov dword [ebp - 8], eax
mov dword [eax], edx
mov ebx, dword [edx + 4]
mov dword [ebx], edi
mov eax, dword [edi + 4]
mov dword [eax], ecx
mov dword [edi + 4], ebx
mov edi, dword [ebp - 8]
mov dword [edx + 4], edi
mov dword [ecx + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax], ecx
mov ebx, dword [ebp - 0xc]
mov ecx, edx
cmp edx, esi
jne 0x43bfc2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov esi, eax
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
jmp 0x43c079
push str.invalid_hash_bucket_count
call fcn.004491a9
int3
Function at 0x44edd3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45d69c
push 0x45d694
push str.FlsAlloc
push 0x1e
call fcn.0044ecb1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44ee07
push dword [ebp + 8]
mov ecx, esi
call dword [0x459308]
call esi
jmp 0x44ee0d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x44ee51
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45d6ac
push 0x45d6a4
push str.FlsGetValue
push 0x20
call fcn.0044ecb1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44ee88
push dword [ebp + 8]
mov ecx, esi
call dword [0x459308]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x45071b
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 0x4507b8
push ebx
push esi
call fcn.004506e4
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.0044ea84
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x450765
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4507b7
push edi
push eax
call fcn.0044e771
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x450785
call fcn.0044e737
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4507b6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0044ea84
add esp, 0x20
test eax, eax
jne 0x4507a4
push edi
call fcn.0044e737
jmp 0x4507ac
push ebx
call fcn.0044e737
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 0x4063ba
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4063de
xor eax, eax
test eax, eax
je 0x4063f1
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4063f1
xor ecx, ecx
jmp 0x4063f4
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4064db
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4318ec], 0
push esi
jne 0x406512
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4064ec
mov dword [ecx*4 + 0x4318e8], eax
inc ecx
cmp ecx, 0x100
jl 0x4064e7
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406543
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4318e8]
xor eax, esi
inc ecx
dec edx
jne 0x406525
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x4015a0
Capabilities:
Terminate process

Disassembly:
call fcn.00401940
jmp fcn.004012d0

Function at 0x4015b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403008]
jne 0x4015ba
repz ret
jmp fcn.004019f0
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x80d008]
jne 0x401010
repz ret
jmp fcn.0040181d

Function at 0x4077ae
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040458e
and dword [ebp - 4], 0
cmp dword [0x80f790], 0
mov ebx, eax
jne 0x40785f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407910
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407910
push eax
call fcn.0040451c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x80f790], eax
call esi
push eax
call fcn.0040451c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x80f794], eax
call esi
push eax
call fcn.0040451c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x80f798], eax
call esi
push eax
call fcn.0040451c
pop ecx
mov dword [0x80f7a0], eax
test eax, eax
je 0x40785f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040451c
pop ecx
mov dword [0x80f79c], eax
mov eax, dword [0x80f79c]
cmp eax, ebx
je 0x4078b7
cmp dword [0x80f7a0], ebx
je 0x4078b7
push eax
call fcn.00404597
push dword [0x80f7a0]
mov esi, eax
call fcn.00404597
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4078b7
test edi, edi
je 0x4078b7
call esi
test eax, eax
je 0x4078ae
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4078ae
test byte [ebp - 0xc], 1
jne 0x4078b7
or dword [ebp + 0x10], 0x200000
jmp 0x4078f0
mov eax, dword [0x80f794]
cmp eax, ebx
je 0x4078f0
push eax
call fcn.00404597
pop ecx
test eax, eax
je 0x4078f0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4078f0
mov eax, dword [0x80f798]
cmp eax, ebx
je 0x4078f0
push eax
call fcn.00404597
pop ecx
test eax, eax
je 0x4078f0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x80f790]
call fcn.00404597
pop ecx
test eax, eax
je 0x407910
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407912
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40a920
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x2ec81c4], 0x930
jne 0x40a93d
push str.hevevutodorayeyehuxupiw
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [0x2ec81c4], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x2ec7ee0], eax
jne 0x40a963
call dword [sym.imp.KERNEL32.dll_SetFileApisToANSI]
lea ecx, [ebp - 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
mov esp, ebp
pop ebp
ret
Function at 0x40146b
Capabilities:
Capture microphone audio
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
call dword [sym.imp.WINMM.dll_waveInGetNumDevs]
test eax, eax
jne 0x401485
xor al, al
jmp 0x40159e
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 4
mov ecx, dword [ebp - 0x10]
push ecx
push 0x4016b4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x2c], eax
push 0x20000
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x46
push ecx
push 0xffff
mov edx, dword [ebp - 0x10]
add edx, 0x18
push edx
call dword [sym.imp.WINMM.dll_waveInOpen]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4014df
xor al, al
jmp 0x40159e
mov dword [ebp - 0xc], 0
jmp 0x4014f1
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 2
jge 0x40155e
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx*4 + 0x30]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + ecx*4 + 8]
mov dword [eax], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + edx*4 + 0x30]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx*4 + 0x30]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx*4 + 0x30]
mov dword [eax + 0x14], 0
push 0x20
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx*4 + 0x30]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
jmp 0x4014e8
push 0x20
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx*4 + 0x30]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x18]
push eax
call dword [sym.imp.WINMM.dll_waveInStart]
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x44], 1
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x401c79
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
mov dword [eax], 0x4407c4
mov byte [ebp - 0x20], 0x4b
mov byte [ebp - 0x1f], 0x45
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x4e
mov byte [ebp - 0x1c], 0x45
mov byte [ebp - 0x1b], 0x4c
mov byte [ebp - 0x1a], 0x33
mov byte [ebp - 0x19], 0x32
mov byte [ebp - 0x18], 0x2e
mov byte [ebp - 0x17], 0x64
mov byte [ebp - 0x16], 0x6c
mov byte [ebp - 0x15], 0x6c
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x10], 0x56
mov byte [ebp - 0xf], 0x69
mov byte [ebp - 0xe], 0x72
mov byte [ebp - 0xd], 0x74
mov byte [ebp - 0xc], 0x75
mov byte [ebp - 0xb], 0x61
mov byte [ebp - 0xa], 0x6c
mov byte [ebp - 9], 0x46
mov byte [ebp - 8], 0x72
mov byte [ebp - 7], 0x65
mov byte [ebp - 6], 0x65
mov byte [ebp - 5], 0
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
cmp dword [eax + 4], 0
je 0x401d21
push 0x8000
push 0
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 4]
push edx
call dword [ebp - 4]
mov eax, dword [ebp - 0x24]
add eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov esp, ebp
pop ebp
ret
Function at 0x402600
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ecee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x194
mov dword [ebp - 0x1a0], ecx
mov ecx, dword [ebp - 0x1a0]
add ecx, 4
call fcn.00401b60
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1a0]
add ecx, 0x2c
call fcn.00401b60
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1a0]
add ecx, 0x54
call fcn.00401b60
mov eax, dword [ebp - 0x1a0]
mov dword [eax], 0x4407d0
lea ecx, [ebp - 0x19c]
push ecx
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 edx, dword [ebp - 0x1a0]
mov dword [edx + 0x84], eax
mov eax, dword [ebp - 0x1a0]
mov byte [eax + 0x88], 0
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x1a0]
mov dword [ecx + 0x80], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x402a1f
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x28]
call fcn.00402def
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [ebp - 0x28]
mov byte [edx + 0x88], 0
cmp dword [0x452f84], 0
je 0x402a6c
cmp dword [0x452f84], 4
je 0x402a6c
cmp dword [0x452f84], 5
je 0x402a6c
xor al, al
jmp 0x402bbd
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x80], eax
mov edx, dword [ebp - 0x28]
cmp dword [edx + 0x80], 0xffffffff
jne 0x402a94
xor al, al
jmp 0x402bbd
mov dword [ebp - 0x18], 0
cmp dword [0x452f84], 0
je 0x402ab4
push 0x452f88
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x18], eax
jmp 0x402ac1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x402ace
xor al, al
jmp 0x402bbd
mov word [ebp - 0x10], 2
cmp dword [0x452f84], 0
je 0x402af1
mov cx, word [0x44c0dc]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
jmp 0x402b00
mov dx, word [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [ebp - 0xc], eax
push 0x10
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x80]
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x402b2f
xor al, al
jmp 0x402bbd
mov byte [ebp - 0x14], 1
push 1
lea ecx, [ebp - 0x14]
push ecx
push 8
push 0xffff
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x80]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x402b90
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 0x2bf20
mov dword [ebp - 0x1c], 0x1388
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push 0xc
lea edx, [ebp - 0x24]
push edx
push 0x98000004
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x80]
push ecx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov edx, dword [ebp - 0x28]
mov byte [edx + 0x88], 1
push 1
push 0
push 0
mov eax, dword [ebp - 0x28]
push eax
push 0x4026f1
push 0
push 0
call fcn.00415170
add esp, 0x1c
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x7c], eax
mov al, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x402def
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov word [ebp - 4], 1
mov word [ebp - 2], 0
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 4
lea eax, [ebp - 4]
push eax
push 0x80
push 0xffff
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x80]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_CancelIo]
push 0
mov edx, dword [ebp - 8]
add edx, 0x88
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x80]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x80], 0xffffffff
mov esp, ebp
pop ebp
ret