joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409f8b
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 0x40a028
push ebx
push esi
call fcn.00409f54
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.00409ee8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x409fd5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40a027
push edi
push eax
call fcn.00408967
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x409ff5
call fcn.004089b5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40a026
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00409ee8
add esp, 0x20
test eax, eax
jne 0x40a014
push edi
call fcn.004089b5
jmp 0x40a01c
push ebx
call fcn.004089b5
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 0x40afe6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4132a8
push 0x4132a0
push str.FlsAlloc
push 0x1f
call fcn.0040af02
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b01a
push dword [ebp + 8]
mov ecx, esi
call dword [0x411150]
call esi
jmp 0x40b020
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40b064
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4132b8
push 0x4132b0
push str.FlsGetValue
push 0x21
call fcn.0040af02
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b09b
push dword [ebp + 8]
mov ecx, esi
call dword [0x411150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40b0a3
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4132c0
push 0x4132b8
push str.FlsSetValue
push 0x22
call fcn.0040af02
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b0dd
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x411150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40fe80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40fead
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40fead
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4150d1
Capabilities:
Read file on windows

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

Function at 0x4154cb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407b40
mov eax, dword [0x475700]
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.00412ee6
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41550d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x415669
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041c820
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 + 0x477310]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004164c2
mov ecx, dword [esi*4 + 0x477310]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x415662
cmp eax, dword [edi + ecx + 0x24]
jne 0x415662
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x415662
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004164c2
add esp, 0x14
test edx, edx
jl 0x415662
jg 0x4155d8
test eax, eax
jb 0x415662
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x415662
jl 0x4155f2
cmp dword [ebp - 0x1008], eax
ja 0x415662
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x415610
test ebx, ebx
je 0x415649
cmp ecx, edi
jae 0x415649
mov al, byte [ecx]
cmp al, 0xd
jne 0x41562a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x415636
cmp byte [ecx + 1], 0xa
jne 0x415636
inc ecx
jmp 0x415636
movzx eax, al
movsx eax, byte [eax + 0x4759d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x415610
cmp edx, ebx
jne 0x415610
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x415667
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406da7
leave
ret
Function at 0x415960
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x477310]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4159a0
cmp byte [ebx], 0xa
jne 0x4159a0
or byte [eax + edi + 0x28], 4
jmp 0x4159a5
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x415aa3
mov al, byte [edx]
cmp al, 0x1a
je 0x415a85
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4159d4
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4159f9
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x415a03
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4159b6
jmp 0x415aa3
push 0
lea eax, [ebp - 0xc]
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 0x415a80
cmp dword [ebp - 0xc], 0
je 0x415a80
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x477310]
test byte [eax + edi + 0x28], 0x48
je 0x415a5a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x415a45
mov byte [esi], dl
jmp 0x415a56
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x477310]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x415aa3
cmp byte [ebp - 1], 0xa
jne 0x415a69
cmp esi, ebx
jne 0x415a69
mov byte [esi], 0xa
jmp 0x415aa2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004164e0
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x415aa3
mov byte [esi], 0xd
jmp 0x415aa2
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x477310]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x415a9f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x415aa3
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x415aac
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x477310]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x415aef
cmp word [esi], dx
jne 0x415aef
or byte [edi + eax + 0x28], 4
jmp 0x415af4
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x415c47
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x415c27
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x415b36
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x415b6c
cmp eax, edx
jae 0x415b78
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x415b0e
jmp 0x415c47
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x415c23
cmp dword [ebp - 0x14], 0
je 0x415c23
mov eax, dword [ebx*4 + 0x477310]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x415bfb
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x415bc4
mov word [esi], cx
jmp 0x415bf7
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x477310]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x477310]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x477310]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x415c47
pop ebx
cmp word [ebp - 4], bx
jne 0x415c0c
cmp esi, dword [ebp + 0xc]
jne 0x415c0c
mov word [esi], bx
jmp 0x415c44
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004164e0
add esp, 0x10
cmp word [ebp - 4], bx
je 0x415c47
push 0xd
jmp 0x415c40
mov ecx, dword [ebx*4 + 0x477310]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x415c3e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x415c47
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x416d3e
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x475700]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x416d89
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00416edd
test al, al
jne 0x416d83
sub edx, 2
cmp edx, edi
jne 0x416d69
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x416dab
lea eax, [edi + 2]
cmp edx, eax
je 0x416dab
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00416c8a
add esp, 0x10
jmp 0x416ea5
push esi
lea ecx, [ebp - 0x255]
call fcn.00416edd
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x416dee
push dword [ebp - 0x25c]
jmp 0x416d9b
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x416e2b
cmp word [ebp - 0x226], 0
je 0x416e4c
cmp word [ebp - 0x226], ax
jne 0x416e2b
cmp word [ebp - 0x224], 0
je 0x416e4c
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00416c8a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x416e98
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x416e05
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x416e80
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x416ea5
push 0x416aba
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0041a970
add esp, 0x10
jmp 0x416e75
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406da7
leave
ret

Function at 0x41c7e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41c80d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41c80d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4032f0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f8e8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x441288]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x26c]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 0xffffffff
jne 0x4033fd
push dword [esi + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x18]
xor eax, eax
mov word [ebp - 0x14], ax
mov dword [ebp - 0x10], eax
call fcn.004036c0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
push dword [esi + 0x10]
call fcn.00403450
lea edi, [esi + 0x1c]
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi + 0x26c], eax
lea ecx, [ebp - 0x14]
cmp eax, 0xffffffff
jne 0x40339a
mov eax, dword [ebp - 0x18]
cmp eax, ecx
je 0x403386
push eax
call fcn.0041eba9
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
cmp eax, ecx
je 0x4033b7
push eax
call fcn.0041eba9
lea eax, [ebp - 0x14]
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax]
call eax
test al, al
jne 0x4033e9
lea ebx, [ebx]
push edi
push dword [esi + 0x26c]
call ebx
test eax, eax
je 0x403408
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax]
call eax
test al, al
je 0x4033d0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edi, [esi + 0x1c]
push edi
push eax
call ebx
test eax, eax
jne 0x4033be
mov eax, dword [esi + 0x26c]
cmp eax, 0xffffffff
je 0x403434
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x250
push 0
push edi
mov dword [esi + 0x26c], 0xffffffff
call fcn.00429040
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4042e0
Capabilities:
Create mailslot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
push 1
lea eax, [ebp - 0x20]
mov edi, edx
push eax
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x20]
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
push 0x80
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateMailslotA]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x404361
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Failed_to_create_mailslot___s_._Error__d
push 0x99
push str.....common_fileio.cpp
push str.ERROR
call fcn.00416980
add esp, 0x18
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404c40
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x441288]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x404d53
mov ecx, dword [0x4424dc]
cmp ecx, 0xffffffff
je 0x404c8d
cmp byte [0x4424e0], 0
push ecx
je 0x404c85
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x404c8d
call fcn.0041ef4d
add esp, 4
xorps xmm0, xmm0
mov dword [0x4424dc], esi
movdqu xmmword [ebp - 0x18], xmm0
mov eax, 2
mov word [ebp - 0x18], ax
mov eax, dword [ebp + 8]
push 0x30b
mov dword [ebp - 0x14], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x18]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x404d0b
mov ecx, esi
call fcn.00404ee0
test al, al
jne 0x404cf8
call fcn.0041e289
push dword [eax]
push str.INTERNAL_ERROR___d_._Please__contact_WTware_tech_support.
push 0x1d0
push str.....common_fstream.cpp
push str.ERROR
call fcn.00416980
add esp, 0x14
mov al, 1
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041e246
mov esp, ebp
pop ebp
ret 0xc
call fcn.0041e289
lea ecx, [ebp - 0x28]
push dword [eax]
lea eax, [ebp + 8]
push 0x30b
push eax
call fcn.004013b0
push eax
push str.Connection_with__s:_d_failed__errno__d.
push 0x1e9
push str.....common_fstream.cpp
push str.ERROR
call fcn.00416980
add esp, 0x1c
xor al, al
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041e246
mov esp, ebp
pop ebp
ret 0xc
call fcn.0041e289
push dword [eax]
push str.INTERNAL_ERROR___d_._Please__contact_WTware_tech_support.
push 0x1c1
push str.....common_fstream.cpp
push str.ERROR
call fcn.00416980
mov ecx, dword [ebp - 8]
add esp, 0x14
xor ecx, ebp
xor al, al
pop esi
call fcn.0041e246
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404d90
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x441288]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4424e4]
push ebx
push esi
push edi
mov ebx, dword [eax]
mov edi, dword [ebp + 8]
cmp ebx, 0xffffffff
je 0x404ebc
mov esi, dword [ebp + 0xc]
test esi, esi
jle 0x404e3a
push 0
push esi
push edi
push ebx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x404e32
call fcn.0041e289
cmp dword [eax], 0xb
jne 0x404e5d
lea eax, [ebp - 0x118]
mov dword [ebp - 0x10c], ebx
push eax
push 0
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], 1
push eax
push 0
lea eax, [ebx + 1]
mov dword [ebp - 0x118], 1
push eax
mov dword [ebp - 0x114], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x404e4f
jne 0x404e36
push str.Close_stalled_TCP_connection.
call fcn.004168e0
add esp, 4
jmp 0x404e71
add edi, eax
sub esi, eax
test esi, esi
jg 0x404dc0
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e246
mov esp, ebp
pop ebp
ret 8
call fcn.0041e289
push dword [eax]
push str.Close_TCP_connection_while_sending_data._select___failed__errno__d.
jmp 0x404e69
call fcn.0041e289
push dword [eax]
push str.Close_TCP_connection_while_sending_data__errno__d.
call fcn.004168e0
add esp, 8
mov eax, dword [0x4424dc]
cmp eax, 0xffffffff
je 0x404ebc
cmp byte [0x4424e0], 0
push eax
je 0x404eaa
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [0x4424dc], 0xffffffff
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e246
mov esp, ebp
pop ebp
ret 8
call fcn.0041ef4d
add esp, 4
mov dword [0x4424dc], 0xffffffff
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e246
mov esp, ebp
pop ebp
ret 8

Function at 0x404ee0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp ecx, 0xffffffff
je 0x404f30
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push 1
push 6
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x404f0d
mov al, 1
mov esp, ebp
pop ebp
ret
call fcn.0041e289
push dword [eax]
push str.INTERNAL_ERROR___d_._Please__contact_WTware_tech_support.
push 0x471
push str.....common_fstream.cpp
push str.ERROR
call fcn.00416980
add esp, 0x14
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x405310
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42fa48
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x441288]
xor eax, esp
mov dword [esp + 0x58], eax
push esi
mov eax, dword [0x441288]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0xffffffff
mov byte [esp + 0x10], 0
mov dword [esp + 0x14], eax
push 0x40
lea eax, [esp + 0x20]
mov dword [esp + 0x74], 0
push 0
push eax
call fcn.00429040
add esp, 0xc
push 0
push esi
call fcn.0041eaf5
add esp, 8
cmp eax, 0xffffffff
jne 0x4053b3
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x405496
cmp byte [esp + 0x10], 0
push eax
je 0x4053a6
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x405496
call fcn.0041ef4d
add esp, 4
jmp 0x405496
sub esp, 8
lea ecx, [esp + 0x14]
push esi
call fcn.00404b00
test al, al
je 0x405386
cmp dword [esp + 0xc], 0xffffffff
je 0x40548d
push 0x3f
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
push dword [eax]
call fcn.0041f0c2
add esp, 0xc
test eax, eax
jle 0x40548d
cmp eax, 0x40
jae 0x4054b5
mov byte [esp + eax + 0x1c], 0
xor eax, eax
lea esp, [esp]
cmp byte [esp + eax + 0x1c], 0
je 0x405431
cmp byte [esp + eax + 0x1d], 0
je 0x405430
cmp byte [esp + eax + 0x1e], 0
je 0x40542b
cmp byte [esp + eax + 0x1f], 0
je 0x405426
add eax, 4
cmp eax, 0x40
jb 0x405400
jmp 0x405431
add eax, 3
jmp 0x405431
add eax, 2
jmp 0x405431
inc eax
test eax, eax
jle 0x4054e5
cmp byte [esp + eax + 0x1b], 0xa
jne 0x40544b
dec eax
cmp eax, 0x40
jae 0x4054b5
mov byte [esp + eax + 0x1c], 0
push 0
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.00401750
add esp, 4
cmp eax, 2
je 0x4054ba
call fcn.0041e289
push dword [eax]
push str.INTERNAL_ERROR___d_._Please__contact_WTware_tech_support.
push 0x28a
push str.....commonmisc3.cpp
push str.ERROR
call fcn.00416980
add esp, 0x14
lea ecx, [esp + 0xc]
call fcn.00405a20
or eax, 0xffffffff
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0041e246
mov esp, ebp
pop ebp
ret
call fcn.0041ece6
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x4054df
cmp byte [esp + 0x10], 0
push eax
je 0x4054d7
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esp + 0x18]
jmp 0x405499
call fcn.0041ef4d
add esp, 4
mov eax, dword [esp + 0x18]
jmp 0x405499
call fcn.0041e289
push dword [eax]
push str.INTERNAL_ERROR___d_._Please__contact_WTware_tech_support.
push 0x284
jmp 0x40547b
Function at 0x405900
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fa78
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x441288]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
push 0
push edi
call fcn.0041eaf5
add esp, 8
cmp eax, 0xffffffff
jne 0x405950
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0xffffffff
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x10], eax
sub esp, 8
mov dword [ebp - 4], 0
mov ecx, eax
push edi
call fcn.00404b00
test al, al
je 0x4059cc
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
je 0x4059cf
mov eax, dword [ebp - 0x10]
push 0x3f
push esi
push dword [eax]
call fcn.0041f0c2
mov edx, eax
add esp, 0xc
test edx, edx
jle 0x4059cc
xor ecx, ecx
test edx, edx
jle 0x4059c1
jmp 0x4059a0
mov al, byte [ecx + esi]
cmp al, 0xa
je 0x4059bf
cmp al, 7
je 0x4059bf
cmp al, 0xd
je 0x4059bf
inc ecx
cmp ecx, edx
jl 0x4059a0
mov eax, dword [ebp - 0x18]
mov bl, 1
mov byte [edx + esi], 0
jmp 0x4059d1
mov edx, ecx
mov eax, dword [ebp - 0x18]
mov bl, 1
mov byte [edx + esi], 0
jmp 0x4059d1
mov eax, dword [ebp - 0x18]
xor bl, bl
cmp eax, 0xffffffff
je 0x4059ff
cmp byte [ebp - 0x14], 0
push eax
je 0x4059f7
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0041ef4d
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret