joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431f30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
push 0x432070
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp + 4]
sub eax, 4
push eax
call fcn.004207e0
mov edi, eax
mov dword [ebp - 8], 0
lea eax, [ebp - 4]
mov dword [ebp - 0xc], edi
push 0x104
push eax
or ebx, 0xffffffff
call fcn.00422290
add esp, 0x14
cmp dword [ebp + 0x10], 0
je 0x431fb6
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
push eax
call sub.WTSAPI32.dll_WTSQueryUserToken
push eax
call fcn.0053b370
add esp, 4
test eax, eax
jne 0x431fb6
push str.failed_get_token_for_active_user__m
push edi
call fcn.004218a0
push dword [edi]
push 0x550003
call fcn.00424200
add esp, 0x10
jmp 0x432047
push dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
push 0
push dword [ebp - 8]
push ebx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x431fee
push ebx
push str.failed_get_path_for_cid__d
push edi
call fcn.00421930
push dword [edi]
push 0x550003
call fcn.00424200
add esp, 0x14
or ebx, 0xffffffff
jmp 0x432047
push esi
push dword [ebp - 4]
mov esi, dword [ebp + 8]
push esi
call fcn.00421a00
mov edx, dword [esi]
add esp, 8
test edx, edx
je 0x432028
cmp byte [edx], 0
je 0x432028
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x432010
sub ecx, esi
cmp byte [edx + ecx - 1], 0x5c
jne 0x432024
mov byte [edx + ecx - 1], al
xor ebx, ebx
jmp 0x432046
push ebx
push str.got_empty_path_for__d
push edi
call fcn.00421930
push dword [edi]
push 0x550003
call fcn.00424200
add esp, 0x14
or ebx, 0xffffffff
pop esi
cmp dword [ebp + 0x10], 0
je 0x432059
lea eax, [ebp - 8]
push eax
call fcn.00443880
add esp, 4
lea eax, [ebp - 4]
push eax
call fcn.00422200
add esp, 4
mov eax, ebx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4334a0
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x3d
push edi
call fcn.0053f150
mov ecx, dword [ebp + 0xc]
add ecx, edi
test eax, eax
mov dword [ebp + 0xc], ecx
cmove eax, ecx
sub eax, 3
mov si, word [eax]
mov bl, byte [eax + 2]
sub eax, edi
push eax
lea eax, [edi + 3]
push edi
push eax
call fcn.0053f960
mov eax, dword [ebp + 0x14]
add esp, 0x14
mov ecx, dword [ebp + 0x10]
add eax, ecx
mov word [edi], si
mov byte [edi + 2], bl
mov ebx, ecx
cmp byte [edi], 0
mov dword [ebp - 4], eax
je 0x4335b7
lea eax, [ecx + 3]
mov dword [ebp + 8], eax
nop word [eax + eax]
cmp edi, dword [ebp + 0xc]
jae 0x4335b4
mov al, byte [edi]
cmp al, 0x3d
je 0x43351f
movzx eax, al
cmp byte [eax + 0x5edad8], 0xff
je 0x4335b4
mov edx, edi
xor esi, esi
xor eax, eax
lea ecx, [edx + 1]
mov dword [ebp + 0x14], ecx
nop dword [eax + eax]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x433530
sub edx, dword [ebp + 0x14]
cmp edx, 4
jb 0x4335c5
xor edx, edx
mov cl, byte [edx + edi]
shl eax, 6
cmp cl, 0x3d
jne 0x433553
inc esi
jmp 0x433563
test esi, esi
jne 0x4335c5
movzx ecx, cl
movsx ecx, byte [ecx + 0x5edad8]
add eax, ecx
inc edx
cmp edx, 4
jl 0x433545
cmp esi, 2
ja 0x4335c5
cmp eax, 0xffffffff
je 0x4335c5
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add ecx, esi
cmp edx, ecx
ja 0x4335c5
mov ecx, eax
inc edx
shr ecx, 0x10
mov byte [ebx], cl
inc ebx
mov dword [ebp + 8], edx
cmp esi, 2
jae 0x43359c
mov ecx, eax
shr ecx, 8
mov byte [ebx], cl
inc ebx
inc edx
mov dword [ebp + 8], edx
cmp esi, 1
jae 0x4335a8
mov byte [ebx], al
inc ebx
inc edx
mov dword [ebp + 8], edx
add edi, 4
cmp byte [edi], 0
jne 0x433500
mov ecx, dword [ebp + 0x10]
mov byte [ebx], 0
sub ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4335d0
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4335e1
mov ebx, dword [ebp + 8]
sub esi, ecx
mov eax, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
lea eax, [eax + eax*2]
push eax
push ebx
mov dword [ebp + 0xc], eax
call fcn.00421a50
mov eax, dword [ebx]
push 0x3d
push edi
mov dword [ebp - 4], eax
call fcn.0053f150
add esp, 0x10
test eax, eax
jne 0x433621
lea eax, [esi + edi]
mov dword [ebp - 8], eax
jmp 0x433627
lea ecx, [esi + edi]
mov dword [ebp - 8], ecx
mov si, word [eax - 3]
sub eax, 3
mov bl, byte [eax + 2]
sub eax, edi
push eax
lea eax, [edi + 3]
push edi
push eax
call fcn.0053f960
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov ecx, dword [ebp - 4]
add eax, ecx
mov word [edi], si
mov byte [edi + 2], bl
mov ebx, ecx
cmp byte [edi], 0
mov dword [ebp - 0x10], eax
je 0x433713
lea eax, [ecx + 3]
mov dword [ebp + 0xc], eax
cmp edi, dword [ebp - 8]
jae 0x433710
mov al, byte [edi]
cmp al, 0x3d
je 0x433682
movzx eax, al
cmp byte [eax + 0x5edad8], 0xff
je 0x433710
mov edx, edi
xor esi, esi
xor eax, eax
lea ecx, [edx + 1]
mov dword [ebp - 0xc], ecx
nop
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x433690
sub edx, dword [ebp - 0xc]
cmp edx, 4
jb 0x43371d
xor edx, edx
mov cl, byte [edx + edi]
shl eax, 6
cmp cl, 0x3d
jne 0x4336af
inc esi
jmp 0x4336bf
test esi, esi
jne 0x43371d
movzx ecx, cl
movsx ecx, byte [ecx + 0x5edad8]
add eax, ecx
inc edx
cmp edx, 4
jl 0x4336a1
cmp esi, 2
ja 0x43371d
cmp eax, 0xffffffff
je 0x43371d
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
add ecx, esi
cmp edx, ecx
ja 0x43371d
mov ecx, eax
inc edx
shr ecx, 0x10
mov byte [ebx], cl
inc ebx
mov dword [ebp + 0xc], edx
cmp esi, 2
jae 0x4336f8
mov ecx, eax
shr ecx, 8
mov byte [ebx], cl
inc ebx
inc edx
mov dword [ebp + 0xc], edx
cmp esi, 1
jae 0x433704
mov byte [ebx], al
inc ebx
inc edx
mov dword [ebp + 0xc], edx
add edi, 4
cmp byte [edi], 0
jne 0x433663
mov ecx, dword [ebp - 4]
mov byte [ebx], 0
sub ebx, ecx
cmp ebx, 0xffffffff
jne 0x43373e
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx]
test ecx, ecx
je 0x433735
push ecx
call fcn.005414d0
add esp, 4
mov dword [ebx], 0
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433770
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
add edi, esi
cmp esi, edi
jae 0x433850
mov ecx, dword [ebp + 0x14]
mov edx, eax
add edx, 0xfffffffc
add ecx, edx
lea edx, [esi + 1]
mov dword [ebp - 4], ecx
lea ecx, [esi + 2]
mov dword [ebp + 0xc], ecx
mov dword [ebp + 8], edx
cmp edx, edi
jb 0x4337ad
xor bh, bh
jmp 0x4337af
mov bh, byte [edx]
cmp ecx, edi
jb 0x4337b7
xor bl, bl
jmp 0x4337b9
mov bl, byte [ecx]
cmp eax, dword [ebp - 4]
jae 0x43386d
movzx ecx, byte [esi]
shr ecx, 2
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
movsx edx, byte [esi]
inc esi
and edx, 3
movzx ecx, bh
shr ecx, 4
shl edx, 4
or edx, ecx
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 1], cl
lea ecx, [eax + 3]
mov dword [ebp - 8], ecx
mov byte [ecx], 0x3d
mov byte [eax + 2], 0x3d
mov byte [eax + 4], 0
cmp esi, edi
je 0x43385d
movsx edx, byte [esi]
inc esi
and edx, 0xf
movzx ecx, bl
shl edx, 2
shr ecx, 6
or edx, ecx
mov cl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, dword [ebp - 8]
mov byte [eax + 2], cl
lea eax, [edx + 1]
cmp esi, edi
je 0x433850
movsx ecx, byte [esi]
inc esi
and ecx, 0x3f
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], cl
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
add edx, 3
add ecx, 3
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], ecx
cmp esi, edi
jb 0x4337a5
pop edi
pop esi
mov byte [eax], 0
sub eax, dword [ebp + 0x10]
pop ebx
mov esp, ebp
pop ebp
ret
add eax, 4
pop edi
pop esi
pop ebx
mov byte [eax], 0
sub eax, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4340b0
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x4391b0
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 4]
sub eax, 4
push eax
call fcn.004207e0
add esp, 0xc
mov dword [ebp - 4], eax
push dword [0x5fde54]
call fcn.0053b950
push eax
push str..pipehola__d__d
push dword [ebp - 4]
call fcn.00421930
inc dword [0x5fde54]
mov ecx, 7
mov edi, dword [ebp + 0x10]
mov eax, 1
push 0
push 0xffffffffffffffff
push 0x1000
push 0x1000
test edi, edi
push 0xff
cmovne eax, ecx
push eax
mov eax, dword [ebp - 4]
push 0x40000003
push dword [eax]
call fcn.00443900
mov ebx, eax
add esp, 0x30
test ebx, ebx
je 0x4341db
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
cmp dword [ebp + 0xc], 1
mov ecx, 0xc0000000
push 0
push 0x40000000
push 3
push 0
mov eax, 0x40000000
cmove eax, ecx
push 0
push eax
mov eax, dword [ebp - 4]
push dword [eax]
call fcn.004438b0
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x4341ea
mov eax, edi
neg eax
push 0
sbb eax, eax
and eax, 2
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
push eax
call fcn.0053b370
add esp, 4
test eax, eax
je 0x4341f9
cmp dword [ebp + 0x10], 0
mov eax, 0x44
mov edi, 0x24
cmovne edi, eax
lea eax, [ebp + 0x10]
push eax
push edi
push 0
push 0
push esi
call fcn.004338c0
mov esi, dword [ebp + 8]
mov dword [esi + 4], eax
lea eax, [ebp + 0x10]
push eax
push edi
push 0
push 0
push ebx
call fcn.004338c0
add esp, 0x28
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.CreateNamedPipe_failed:__m
push 0x360000
call fcn.00424760
push str.CreateFile_failed:__m
push 0x360000
call fcn.00424760
push str.SetNamedPipeHandleState_failed:__m
push 0x360000
call fcn.00424760
int3
Function at 0x434210
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x601894], 0
push ebx
mov ebx, dword fs:[0x2c]
push esi
push edi
mov edi, dword [ebp + 8]
je 0x434277
mov eax, dword [ebx]
cmp dword [eax + 0x21d0], 0
jne 0x434277
push 0x601860
call fcn.004291c0
mov eax, dword [0x60188c]
push 0x601860
mov esi, dword [eax + edi*4]
call fcn.004291d0
add esp, 8
test dword [esi + 0x58], 0x10000000
jne 0x434277
push 0
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00434390
add esp, 0x18
pop edi
pop esi
pop ebx
pop ebp
ret
push 0x601860
call fcn.004291c0
mov eax, dword [0x60188c]
push 0x601860
mov esi, dword [eax + edi*4]
call fcn.004291d0
mov eax, dword [esi + 0x58]
add esp, 8
test al, 0x40
je 0x434372
cmp dword [esi + 0x3c], 0
je 0x4342d1
cmp dword [esi + 0xc], 2
jne 0x4342d1
cmp word [esi + 0x5c], 0
je 0x4342d1
push 0
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0043a3b0
add esp, 0x18
mov esi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
test eax, reloc.WS2_32.dll_connect
je 0x4342f3
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0043a1b0
add esp, 0x14
mov esi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
test al, 1
je 0x43434c
push dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
push dword [esi + 0x60]
call dword [sym.imp.WS2_32.dll_recv]
push eax
call fcn.0053b370
mov esi, eax
add esp, 4
test esi, esi
jns 0x43436b
mov eax, dword [ebx]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x43432a
call fcn.005414b2
cmp dword [eax], 0x2738
jne 0x43436b
push edi
push str.buf_to_small___d__for_packet_recv
push 0x360003
call fcn.00424200
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
push eax
push str.invalid_type:__d
push 0x75c
push str.vsock_recv
push 0x360202
call fcn.00424570
add esp, 0x14
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
push str.recv_from_non_packet_socket
push 0x360000
call fcn.00424760
int3
Function at 0x436600
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
fld qword [edx - 0x3a]
inc ebp
fimul word [ecx - 0x3a]
inc ebp
fistp word [ecx - 0x3a]
inc ebp
loopne 0x436659
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.004361ce
push eax
push esi
push dword [ebp + 8]
call fcn.00436183
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.004361be
mov ecx, 0x889158ec
popfd
jl 0x436643
invalid
invalid
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.004361be
or eax, 0x8d19bd10
test dword [edi + edi*8 - 1], edi
call dword [eax - 0x18]
sbb al, 0xfb
invalid

Function at 0x4370e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
clc
das
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
xchg ebp, eax
cld
invalid
inc dword [eax]
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.004361ce
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00436183
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.004361be
xchg edi, eax
jb 0x4371fd
shr byte [eax + 4], 1
add dword [eax], eax
add byte [ebp - 0x12b7b], cl
call dword [eax - 1]
xchg ebp, eax
sub al, 0xfc
invalid
inc ebp
jmp 0xea893892
Function at 0x438470
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 0x601860
call fcn.004291c0
mov eax, dword [0x60188c]
mov ebx, dword [ebp + 8]
push 0x601860
mov esi, dword [eax + ebx*4]
call fcn.004291d0
add esp, 8
test byte [esi + 0x58], 1
je 0x4385c3
mov eax, dword [0x601878]
test eax, eax
je 0x4384bf
push 4
lea ecx, [ebp + 0xc]
push ecx
push 1
push 6
push ebx
call eax
add esp, 0x14
jmp 0x43857c
cmp dword [0x601894], 0
push edi
mov edi, dword fs:[0x2c]
je 0x43850a
mov eax, dword [edi]
cmp dword [eax + 0x21d0], 0
jne 0x43850a
push 0x601860
call fcn.004291c0
mov eax, dword [0x60188c]
push 0x601860
mov esi, dword [eax + ebx*4]
call fcn.004291d0
add esp, 8
test dword [esi + 0x58], 0x10000000
jne 0x43850a
mov esi, 1
jmp 0x43850c
xor esi, esi
push 0x601860
call fcn.004291c0
mov eax, dword [0x60188c]
add esp, 4
test esi, esi
mov esi, dword [eax + ebx*4]
push 0x601860
call fcn.004291d0
add esp, 4
cmp dword [esi + 0x3c], 0
je 0x43855f
cmp dword [esi + 0xc], 2
jne 0x43855f
cmp word [esi + 0x5c], 0
je 0x43855f
mov eax, dword [edi]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x438554
call fcn.005414b2
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x43857b
push 4
lea eax, [ebp + 0xc]
push eax
push 1
push 6
push dword [esi + 0x60]
call dword [sym.imp.WS2_32.dll_setsockopt]
push eax
call fcn.0053b370
add esp, 4
pop edi
test eax, eax
je 0x4385c3
mov eax, dword [0x601894]
xor ecx, ecx
test eax, eax
setne cl
lea ecx, [ecx*4 + 3]
test eax, eax
jne 0x4385bc
cmp ecx, 5
jbe 0x4385a4
cmp dword [0x601c18], ecx
jl 0x4385bc
or ecx, 0x360000
push str.failed_setsockopt_TCP_NODELAY_:__m
push ecx
call fcn.00424200
add esp, 8
pop esi
pop ebx
pop ebp
ret
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x4385d0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x601860
mov dword [ebp + 0xc], edi
call fcn.004291c0
mov eax, dword [ebp + 8]
push 0x601860
lea esi, [eax*4]
mov eax, dword [0x60188c]
mov ebx, dword [esi + eax]
call fcn.004291d0
mov eax, dword [ebx + 0x58]
add esp, 8
test al, 1
je 0x43869c
test edi, edi
jne 0x438647
test al, al
jns 0x438647
push edi
push edi
push dword [ebx + 0x60]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push eax
call fcn.0053b370
add esp, 4
test eax, eax
je 0x438647
push str.WSAEventSelect:__m
push 0x360003
call fcn.00424200
add esp, 8
pop edi
pop esi
pop ebx
pop ebp
ret
push 0x601860
call fcn.004291c0
mov eax, dword [0x60188c]
push 0x601860
mov esi, dword [esi + eax]
call fcn.004291d0
add esp, 8
lea eax, [ebp + 0xc]
push eax
push 0x8004667e
push dword [esi + 0x60]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push eax
call fcn.0053b370
add esp, 4
test eax, eax
je 0x43869c
push str.failed_ioctl_FIOBIO_:__m
push 0x360003
call fcn.00424200
add esp, 8
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [ebx + 0x58]
neg edi
sbb edi, edi
and eax, 0xffffff7f
and edi, 0x80
or edi, eax
xor eax, eax
mov dword [ebx + 0x58], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x439a40
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
push eax
call fcn.0053b370
add esp, 4
test eax, eax
je 0x439a72
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov ax, word [ebp - 0x12]
mov word [ecx + 0x78], ax
mov eax, dword [ebp - 0x10]
mov dword [ecx + 0x7c], eax
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x43a1b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
or ebx, 0xffffffff
mov eax, dword [esi + 0x58]
test eax, 0x4000000
je 0x43a1ee
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x43a1df
call fcn.005414b2
pop esi
mov dword [eax], 0x2746
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
cmp word [esi + 0x5c], 0
push edi
je 0x43a293
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [esi + 0x6c]
call fcn.00447ef0
mov ecx, dword [ebp + 8]
add esp, 0x10
cmp dword [ebp + 0x10], ecx
cmovb ecx, dword [ebp + 0x10]
push dword [ebp + 0x14]
push ecx
push dword [ebp - 4]
push dword [esi + 0x60]
call dword [sym.imp.WS2_32.dll_recv]
push eax
call fcn.0053b370
mov edi, eax
add esp, 4
test edi, edi
jns 0x43a39e
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x43a255
call fcn.005414b2
cmp dword [eax], 0x2738
jne 0x43a39e
push edi
push dword [esi + 0x6c]
call fcn.00447f30
add esp, 8
cmp dword [ebp + 0x18], 0
jne 0x43a28a
push edi
push dword [ebp + 0xc]
push dword [esi + 0x6c]
call fcn.00436b10
push dword [esi + 0x6c]
call fcn.00447f90
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, 0x4080
jne 0x43a2f5
test eax, 0x400
jne 0x43a2d5
push esi
call fcn.00436dc0
add esp, 4
test eax, eax
je 0x43a2d5
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x43a2c5
call fcn.005414b2
pop edi
pop esi
mov dword [eax], 0x2746
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x58]
test eax, 0x400
je 0x43a2f5
mov edi, dword [sym.imp.KERNEL32.dll_SleepEx]
push 1
push 0xffffffffffffffff
call edi
mov eax, dword [esi + 0x58]
test eax, 0x400
jne 0x43a2e5
test eax, 0x4000
je 0x43a364
push dword [esi + 0x6c]
call fcn.00448130
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x43a33f
cmp dword [ebp + 0x18], 0
mov ebx, ecx
jne 0x43a33f
mov eax, dword [ebp + 0x10]
cmp ecx, eax
cmovb eax, ecx
push eax
push dword [ebp + 0xc]
push dword [esi + 0x6c]
call fcn.00436b10
add esp, 0xc
mov ebx, eax
test byte [esi + 0x58], 0x20
jne 0x43a345
push dword [esi + 0x6c]
call fcn.00447f90
add esp, 4
test byte [esi + 0x58], 0x20
je 0x43a354
push dword [esi + 0x6c]
call fcn.00448130
add esp, 4
test eax, eax
jne 0x43a35b
and dword [esi + 0x58], 0xffffbfff
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
test al, al
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
jns 0x43a38f
test eax, eax
jne 0x43a37f
call fcn.005414b2
pop edi
pop esi
mov dword [eax], 0x2733
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x43a398
call fcn.005414b2
mov dword [eax], 0x2714
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43a780
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00447e70
mov ecx, dword [ebp + 0x18]
mov edi, eax
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0x10
mov eax, dword [ecx + 4]
mov dword [ebp + 0x18], eax
movzx eax, word [ecx + 2]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x80]
mov dword [ebp + 8], eax
movzx eax, word [esi + 0x78]
test ax, ax
je 0x43a7c3
mov ebx, eax
jmp 0x43a84d
mov ebx, dword [esi + 0x74]
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
mov eax, 2
mov dword [ebp - 8], 0x10
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x20]
push 0x10
push eax
push ebx
mov dword [ebp - 0x1c], 0
call dword [sym.imp.WS2_32.dll_bind]
push eax
call fcn.0053b370
add esp, 4
test eax, eax
je 0x43a814
push str.bind_failed__m
push 0x360003
call fcn.00424200
add esp, 8
xor eax, eax
jmp 0x43a84a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_getsockname]
push eax
call fcn.0053b370
add esp, 4
test eax, eax
je 0x43a846
push str.getsockname_failed__m
push 0x360003
call fcn.00424200
add esp, 8
xor eax, eax
jmp 0x43a84a
movzx eax, word [ebp - 0x1e]
movzx ebx, ax
push dword [ebp + 0x10]
mov word [esi + 0x78], bx
push dword [ebp + 0xc]
push edi
call fcn.00447d80
push dword [ebp + 0x18]
push dword [ebp + 8]
push dword [ebp - 0xc]
push ebx
push edi
call fcn.00448880
push 0x11
push dword [ebp + 0x18]
push dword [ebp + 8]
push edi
call fcn.004487d0
add esp, 0x30
cmp word [esi + 0x5c], 0
je 0x43a8a1
mov eax, dword [esi + 0x58]
and eax, 0x200000
shl eax, 4
push eax
push edi
call fcn.00447e10
add esp, 8
mov ebx, 0x20
jmp 0x43a8a6
mov ebx, 0x1c
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.00447eb0
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp - 0x10]
push esi
call fcn.0043a470
mov esi, eax
add esp, 0x1c
test esi, esi
jle 0x43a8ce
sub esi, ebx
push edi
call fcn.00447d50
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret