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

Disassembly:
pushal
mov esi, section.QNhjSkbP
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x50ce72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50ce79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50ce68
mov eax, 1
add ebx, ebx
jne 0x50ce8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50ce80
jne 0x50ce9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50ce80
xor ecx, ecx
sub eax, 3
jb 0x50ceb0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50cf22
mov ebp, eax
add ebx, ebx
jne 0x50cebb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x50cec8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x50ceec
inc ecx
add ebx, ebx
jne 0x50ced8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50cecd
jne 0x50cee9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50cecd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50cf0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50cefd
jmp 0x50ce6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50cf0c
add edi, ecx
jmp 0x50ce6e
pop esi
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x50cf6b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xeacc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xeb24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50cf29
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xeb2c]
or eax, eax
je 0x50cf65
mov dword [ebx], eax
add ebx, 4
jmp 0x50cf46
call dword [esi + 0xeb28]
mov ebp, dword [esi + 0xeb30]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x50cf9f
sub esp, 0xffffff80
jmp section.bUItIFMf

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x406200
Capabilities:
Encode data using xor

Disassembly:
add byte [ebx], bh
mov eax, 0x3094
jle 0x4061d9
dec esi
mov eax, 0x4c0030d3
sal dword [eax], cl
add byte [ebx + ecx*4 + 0x48], cl
test al, 0x5f
mov ecx, dword [eax - 0x58]
pop edi
inc ecx
pop esi
mov dword [eax + 0x1d], ecx
xchg edi, eax
sbb edx, dword [esi - 0x4d]
ret 8
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp - 0x7c]
push ebx
push esi
in al, dx
add edx, 4
add dword [ebp + ebp*8 - 0x7ffffe89], esp
mov ebx, dword [eax + 0xc]
mov eax, dword [ebp + 0x50]
xor ecx, ecx
mov ecx, ebx
add al, 0x8b
jnp 0x4061ca
test edx, edx
cmp bh, byte [ebp - 8]
pop es
pop edi
mov esi, dword [eax + 0x4400301c]
push 0xffffffffffffffc6
or al, 0x3b
push ds
je 0x40624e
inc ecx
sbb dword [edx], 0x14
aad 0x9e
jb 0x4061d5
pop edi
pop esi
invalid
out dx, al
fld dword [ecx + 0x59]
jb 0x4062b8
cmp ecx, edx
loopne 0x4062c8
add al, 0x73
dec edi
lea ebx, [ebx + ebx*4]
lea edi, [ecx + ecx*4]
shl ebx, 2
shl dword [ebx + 0x20d12b02], 0x7d
or bh, al
push ebp
cld
mov edi, ebx
sbb al, 0x30
add byte [eax], al
mov edx, dword [ebp + 0xc]
xchg edi, eax
push edx
push 0xffffffffffffff8d
xor al, 0xf
stosb byte es:[edi], al
push esi
or al, 0x75
add eax, 0xeb0f48ff
adc byte [eax + 0x5b90b3c], ch
add byte [eax], al
add bl, dh
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x38]
add ebx, 0x14
mov ecx, dword [ebp - 4]
xor esi, 0x14
dec ecx
sub eax, 0x989087d
cld
jne 0x40626f
mov edi, dword [ebp + 0x27]
mov edx, dword [eax + 0xc]
xor esi, dword [eax]
test ebp, eax
fsubr qword [esi]
lea esi, [eax + 0x10]
cmp al, 0x3e
je 0x4062c4
sbb eax, dword [ebx + 0x283b04c6]
cmpsd dword [esi], dword es:[edi]
hlt
dec edx
cmp eax, esp
jae 0x4062de
adc eax, 0x10885454
push esp
push esp
mov byte [eax], dl
mov esi, dword [edx + 0x54]
popal
mov dword [edi + 0x660c708b], esp
ret 0x4eae
inc esp
dec eax
or al, 0x8b
nop
adc byte [eax], dl
add byte [eax], al
xor ebx, eax
mov dl, dl
cdq
mov eax, ebx
aad 0x10
add byte [eax], al
dec esp
and byte ds:[edx], cl
inc ecx
push 0xca3b4ffa
jb 0x4062f3
jmp 0x406327
ljmp 0x3300:0x20140b
Function at 0x402357
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4418a6
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x46a034]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
mov eax, dword [0x46a034]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
lea ecx, [esp + 0xc]
call fcn.00410051
pop ecx
and dword [esp + 0x30], 0
cmp dword [esp + 0x1c], 0x10
lea eax, [esp + 8]
cmovae eax, dword [esp + 8]
push eax
mov ecx, esi
call fcn.0040269a
lea ecx, [esp + 8]
call fcn.00402286
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0043deea
mov esp, ebp
pop ebp
ret

Function at 0x406557
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x442c91
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x46a034]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x46a034]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edi, dword [ebp + 8]
and dword [esp + 0xc], 0
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call dword [eax + 0xb0]
and dword [esp + 0x38], 0
push eax
push edi
mov ecx, esi
call fcn.00429256
push 0
push 1
lea ecx, [esp + 0x18]
call fcn.0040253d
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0043deea
mov esp, ebp
pop ebp
ret 4

Function at 0x406666
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042bf48
Function at 0x407d80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x46a034]
xor eax, esp
mov dword [esp + 0x120], eax
push esi
mov esi, ecx
cmp byte [esi + 0x2d0], 0
je 0x407ded
push 0x110
lea eax, [esp + 0x10]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0xc], 5
jne 0x407ddd
mov ecx, esi
call fcn.00407a86
jmp 0x407def
cmp dword [esp + 0xc], 6
jb 0x407ded
mov ecx, esi
call fcn.004072c9
jmp 0x407def
xor eax, eax
mov ecx, dword [esp + 0x124]
pop esi
xor ecx, esp
call fcn.0043deea
mov esp, ebp
pop ebp
ret
Function at 0x40c2b1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x442d39
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x46a034]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x46a034]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
or esi, 0xffffffff
cmp ebx, esi
jne 0x40c2fb
xor eax, eax
jmp 0x40c459
mov eax, dword [edi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x40c324
mov edx, dword [edi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x40c324
dec dword [edx]
mov edx, dword [edi + 0x20]
mov eax, ebx
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x40c459
cmp dword [edi + 0x50], 0
je 0x40c457
mov ecx, edi
call fcn.0040d310
cmp dword [edi + 0x40], 0
jne 0x40c354
push dword [edi + 0x50]
movsx eax, bl
push eax
call dword [sym.imp.MSVCR110.dll_fputc]
pop ecx
cmp eax, esi
pop ecx
cmovne esi, ebx
jmp 0x40c457
push ecx
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x1b], bl
call fcn.0040cda7
and dword [esp + 0x48], 0
cmp dword [esp + 0x34], 0x10
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x24]
cmovae edx, dword [esp + 0x24]
lea ecx, [esp + 0x24]
cmovae ecx, dword [esp + 0x24]
add eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x40]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x27]
push eax
lea eax, [edi + 0x48]
push eax
call dword [sym.imp.MSVCP110.dll_public:_int___thiscall_std::codecvt_char__char__int_::out_int___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x40c44e
cmp eax, 1
jg 0x40c433
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
cmp ecx, 0x10
lea eax, [esp + 0x20]
cmovae eax, edx
sub ebx, eax
mov dword [esp + 0x14], ebx
mov ebx, dword [ebp + 8]
je 0x40c3fd
push dword [edi + 0x50]
cmp ecx, 0x10
push dword [esp + 0x18]
lea eax, [esp + 0x28]
cmovae eax, edx
push 1
push eax
call dword [sym.imp.MSVCR110.dll_fwrite]
mov ecx, dword [esp + 0x24]
add esp, 0x10
cmp ecx, eax
jne 0x40c44e
jmp 0x40c401
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x13]
mov byte [edi + 0x45], 1
cmp dword [esp + 0x1c], eax
jne 0x40c42f
test ecx, ecx
jne 0x40c368
cmp dword [esp + 0x30], 0x20
jae 0x40c44e
push ecx
push 8
lea ecx, [esp + 0x28]
call fcn.0040cdec
jmp 0x40c368
mov esi, ebx
jmp 0x40c44e
cmp eax, 3
jne 0x40c44e
movsx eax, byte [esp + 0x13]
push dword [edi + 0x50]
push eax
call dword [sym.imp.MSVCR110.dll_fputc]
pop ecx
cmp eax, esi
pop ecx
cmovne esi, ebx
lea ecx, [esp + 0x20]
call fcn.00402286
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0043deea
mov esp, ebp
pop ebp
ret 4
Function at 0x40d19a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x442862
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x46a034]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x46a034]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x40d2c3
cmp byte [esi + 0x45], bl
je 0x40d2c3
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x40d1fa
xor al, al
jmp 0x40d2c5
push ecx
push ecx
lea ecx, [esp + 0x20]
call fcn.0040cda7
mov dword [esp + 0x40], ebx
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x2c]
cmp edi, 0x10
lea edx, [esp + 0x1c]
cmovae edx, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
cmovae ecx, dword [esp + 0x1c]
add eax, edx
push eax
push ecx
mov ecx, dword [esi + 0x40]
lea eax, [esi + 0x48]
push eax
call dword [sym.imp.MSVCP110.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, ebx
je 0x40d24a
dec eax
je 0x40d24d
dec eax
dec eax
jne 0x40d2b6
inc eax
jmp 0x40d2b4
mov byte [esi + 0x45], bl
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
cmp edi, 0x10
lea eax, [esp + 0x18]
cmovae eax, ecx
sub edx, eax
mov dword [esp + 0x10], edx
je 0x40d291
push dword [esi + 0x50]
lea eax, [esp + 0x1c]
push edx
cmp edi, 0x10
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.MSVCR110.dll_fwrite]
mov edx, dword [esp + 0x20]
add esp, 0x10
cmp edx, eax
jne 0x40d2b2
mov edi, dword [esp + 0x2c]
cmp byte [esi + 0x45], 0
je 0x40d2b0
test edx, edx
jne 0x40d20d
push ebx
push 8
lea ecx, [esp + 0x20]
call fcn.0040cdec
jmp 0x40d209
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [esp + 0x18]
call fcn.00402286
mov al, bl
jmp 0x40d2c5
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0043deea
mov esp, ebp
pop ebp
ret

Function at 0x40ee44
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x40ee56
push 0xd
pop eax
jmp 0x40ee88
push ebx
mov ecx, edx
push edi
lea edi, [ecx + 2]
xor ebx, ebx
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40ee5f
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x40ff2f
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, ecx
call fcn.00438b15
push 1
push dword [edi + 0x64]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push dword [edi + 0x68]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push dword [edi + 0x58]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
ret

Function at 0x4113c5
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x46a034]
xor eax, esp
mov dword [esp + 0x194], eax
push 0x472d14
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x411407
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x472d18
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0043deea
mov esp, ebp
pop ebp
ret

Function at 0x4115b9
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
push 0xffffffffffffffff
mov dword [ebp - 4], eax
xor edi, edi
push edi
lea eax, [ebp - 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0x472c8c
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push edi
push dword [esi + 4]
test eax, eax
je 0x411604
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x41161a
push fcn.00403297
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
leave
ret
Function at 0x41161e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
xor eax, eax
push eax
push eax
push 1
mov esi, ecx
push eax
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, dword [ebp + 8]
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
jne 0x411678
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
push 1
mov ecx, ebx
mov esi, eax
call dword [edx]
mov dword [esp + 0x18], esi
call fcn.0043f8a0
mov edx, str.thread.entry_event
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.004112dd
mov esi, dword [esp + 0x10]
xor eax, eax
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
xor ecx, ecx
mov dword [ebx + 8], eax
cmp dword [esi + 8], ecx
jne 0x4116c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
push 1
mov ecx, ebx
mov esi, eax
call dword [edx]
mov dword [esp + 0x18], esi
call fcn.0043f8a0
mov edx, str.thread.exit_event
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.004112dd
mov esi, dword [esp + 0x10]
xor ecx, ecx
lea eax, [esp + 0x14]
push eax
push ecx
push ebx
push 0x41174b
push ecx
push ecx
mov dword [esp + 0x2c], ecx
call dword [sym.imp.MSVCR110.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x411732
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
push 1
mov ecx, ebx
mov dword [esp + 0x1c], eax
call dword [edx]
test edi, edi
je 0x411704
push edi
call esi
mov eax, dword [esp + 0x10]
cmp dword [eax + 8], 0
je 0x411713
push dword [eax + 8]
call esi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.0043f8a0
mov edx, str.thread
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.004112dd
test edi, edi
je 0x411742
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x412044
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, ecx
mov eax, edx
xor edi, edi
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
je 0x412109
cmp byte [ebp + 8], 0
je 0x41208f
test byte [eax], 8
je 0x41208f
xor eax, eax
mov dword [ebp - 4], eax
call fcn.0043f8a0
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
push ecx
lea eax, [ebp - 4]
push eax
push ecx
push ecx
mov ecx, ebx
call fcn.004124c4
add esp, 0x14
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, esi
mov ecx, eax
call fcn.00417792
mov edi, eax
test edi, edi
je 0x412109
call fcn.0043f8a0
cmp dword [esi + 4], eax
jne 0x4120bf
cmp dword [esi], 0x2733
je 0x4120d1
call fcn.0043f8a0
cmp dword [esi + 4], eax
jne 0x412105
cmp dword [esi], 0x4d5
jne 0x412105
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp - 8]
push 0
and byte [eax], 0xfc
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, esi
mov ecx, eax
call fcn.00417792
mov edi, eax
test edi, edi
jne 0x412114
call fcn.0043f8a0
and dword [esi], 0
mov dword [esi + 4], eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41211b
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
mov esi, edx
cmp edi, 0xffffffff
jne 0x41213c
call fcn.0043f8a0
mov esi, dword [ebp + 0xc]
mov dword [esi], 0x2719
jmp 0x412167
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.WS2_32.dll_connect]
mov esi, dword [ebp + 0xc]
mov edx, esi
mov ecx, eax
call fcn.00417792
test eax, eax
jne 0x41216a
call fcn.0043f8a0
and dword [esi], 0
mov dword [esi + 4], eax
call fcn.0043f8a0
lea edx, [ebp - 0xc]
mov ecx, esi
mov dword [ebp - 0xc], 0x2734
mov dword [ebp - 8], eax
call fcn.004112a0
test al, al
je 0x4121a4
call fcn.0043f8a0
lea edx, [ebp - 0xc]
mov ecx, esi
mov dword [ebp - 0xc], 0x2733
mov dword [ebp - 8], eax
call fcn.004112a0
test al, al
jne 0x4121e3
mov edx, esi
mov ecx, edi
call fcn.004126c7
test eax, eax
js 0x4121e3
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ecx
push ecx
mov ecx, edi
mov dword [ebp - 8], 4
call fcn.00412528
add esp, 0x14
cmp eax, 0xffffffff
je 0x4121e3
call fcn.0043f8a0
mov ecx, dword [ebp - 4]
mov dword [esi], ecx
mov dword [esi + 4], eax
pop edi
pop esi
leave
ret
Function at 0x4121e7
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
mov bl, dl
cmp edi, 0xffffffff
jne 0x41220f
call fcn.0043f8a0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 0x2719
mov dword [ecx + 4], eax
jmp 0x41230c
cmp byte [ebp + 0x14], 0
je 0x412227
test bl, 0x10
je 0x412227
call fcn.0043f8a0
mov ecx, dword [ebp + 0x18]
and dword [ecx], 0
jmp 0x412207
mov esi, dword [ebp + 0x18]
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
push eax
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [sym.imp.WS2_32.dll_WSARecv]
mov edx, esi
mov ecx, eax
call fcn.00417792
cmp dword [esi], 0x40
mov dword [ebp - 8], eax
jne 0x41226f
call fcn.0043f8a0
mov dword [esi], 0x2746
jmp 0x412282
cmp dword [esi], 0x4d2
jne 0x412288
call fcn.0043f8a0
mov dword [esi], 0x274d
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x412291
or eax, 0xffffffff
jmp 0x4122a3
call fcn.0043f8a0
and dword [esi], 0
mov dword [esi + 4], eax
mov eax, dword [ebp - 0xc]
test eax, eax
jg 0x41230e
test bl, 0x10
je 0x4122ac
test eax, eax
je 0x4122fe
test bl, 1
jne 0x41230c
call fcn.0043f8a0
lea edx, [ebp - 0x18]
mov ecx, esi
mov dword [ebp - 0x18], 0x2733
mov dword [ebp - 0x14], eax
call fcn.004112a0
test al, al
je 0x4122eb
call fcn.0043f8a0
lea edx, [ebp - 0x20]
mov ecx, esi
mov dword [ebp - 0x20], 0x4d5
mov dword [ebp - 0x1c], eax
call fcn.004112a0
test al, al
jne 0x41230c
push esi
mov ecx, edi
call fcn.00412599
pop ecx
test eax, eax
jns 0x41222a
jmp 0x41230c
call fcn.00411363
mov dword [esi], 2
mov dword [esi + 4], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x412599
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x46a034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp edi, 0xffffffff
jne 0x4125cb
call fcn.0043f8a0
mov dword [esi + 4], eax
mov dword [esi], 0x2719
or eax, edi
jmp 0x412621
xor ebx, ebx
push ebx
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x110], 1
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x114], ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x110]
push eax
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edx, esi
mov ecx, eax
call fcn.00417792
mov edi, eax
test edi, edi
je 0x412615
jle 0x41261f
call fcn.0043f8a0
mov dword [esi + 4], eax
mov dword [esi], ebx
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043deea
leave
ret
Function at 0x412630
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x46a034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp edi, 0xffffffff
jne 0x412662
call fcn.0043f8a0
mov dword [esi + 4], eax
mov dword [esi], 0x2719
or eax, edi
jmp 0x4126b8
xor ebx, ebx
push ebx
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x110], 1
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x114], ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
push ebx
lea eax, [ebp - 0x110]
push eax
push ebx
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edx, esi
mov ecx, eax
call fcn.00417792
mov edi, eax
test edi, edi
je 0x4126ac
jle 0x4126b6
call fcn.0043f8a0
mov dword [esi + 4], eax
mov dword [esi], ebx
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043deea
leave
ret

Function at 0x4126c7
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x46a034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov esi, edx
cmp edi, 0xffffffff
jne 0x4126f7
call fcn.0043f8a0
mov dword [esi + 4], eax
mov dword [esi], 0x2719
or eax, edi
jmp 0x412752
push ebx
xor eax, eax
inc eax
xor ebx, ebx
push ebx
mov dword [ebp - 0x208], edi
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x104], edi
mov dword [ebp - 0x108], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edx, esi
mov ecx, eax
call fcn.00417792
mov edi, eax
test edi, edi
js 0x41274f
call fcn.0043f8a0
mov dword [esi], ebx
mov dword [esi + 4], eax
mov eax, edi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043deea
leave
ret