joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a570
Capabilities:
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ea720
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov byte [esi + 0xc74], 1
mov edi, dword [esi + 0xb8]
cmp edi, ebx
je 0x40a5b1
lea eax, [edi + 8]
push 1
push eax
call fcn.004cd1df
mov edi, dword [edi]
cmp edi, ebx
jne 0x40a5a0
mov ecx, dword [esi + 0xc8]
mov dword [esi + 0xc0], ebx
mov dword [esi + 0xc4], ebx
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xb8], ebx
call fcn.004ce58f
lea ecx, [esp + 0xc]
push 1
push ecx
mov ecx, esi
mov dword [esi + 0xc8], ebx
call fcn.0040a780
mov edx, dword [esp + 0xc]
push 0x75e2e8
push edx
mov dword [esp + 0x24], ebx
call fcn.004435ac
add esp, 8
test eax, eax
je 0x40a74f
push 0x5c
lea ecx, [esp + 0x10]
call fcn.004ccdf6
inc eax
lea ecx, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.004ccd7e
push eax
lea ecx, [esi + 0x9bc]
mov byte [esp + 0x20], 1
call fcn.004d3899
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], bl
call fcn.004d3760
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x40a681
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
cmp byte [ecx + eax - 1], 0x5c
je 0x40a66a
push 0x548600
lea ecx, [esp + 0x10]
call fcn.004d3b3c
push ebx
lea ecx, [esp + 0x10]
call fcn.004d3b90
push eax
mov ecx, esi
call fcn.0040a340
jmp 0x40a720
mov eax, dword [esi + 0xc4]
push ebp
mov ebp, dword [esi + 0xbc]
cmp eax, ebx
jne 0x40a6ce
mov edx, dword [esi + 0xcc]
push 0xc
lea eax, [esi + 0xc8]
push edx
push eax
call fcn.004ce56f
mov ecx, dword [esi + 0xcc]
lea edx, [ecx + ecx*2]
dec ecx
cmp ecx, ebx
lea eax, [eax + edx*4 - 8]
jl 0x40a6ce
inc ecx
mov edx, dword [esi + 0xc4]
mov dword [eax], edx
mov dword [esi + 0xc4], eax
sub eax, 0xc
dec ecx
jne 0x40a6ba
mov edi, dword [esi + 0xc4]
push 1
mov eax, dword [edi]
mov dword [esi + 0xc4], eax
mov dword [edi + 4], ebp
mov dword [edi], ebx
mov edx, dword [esi + 0xc0]
lea ebp, [edi + 8]
inc edx
push ebp
mov dword [esi + 0xc0], edx
call fcn.004cd1b1
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.004d3899
mov eax, dword [esi + 0xbc]
pop ebp
cmp eax, ebx
je 0x40a714
mov dword [eax], edi
jmp 0x40a71a
mov dword [esi + 0xb8], edi
mov dword [esi + 0xbc], edi
cmp dword [esi + 0xc0], ebx
jne 0x40a740
mov edx, dword [esi + 0x1c]
push 0x30
push 0x548690
push 0x548684
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40a74f
push ebx
mov ecx, esi
call fcn.0040a540
mov ecx, esi
call fcn.0040ac30
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004d3760
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x40a780
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ea755
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push esi
push edi
lea eax, [esp + 0x30]
push 0x104
push eax
mov esi, ecx
push 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0xc]
call fcn.004d37ce
mov edx, dword [esi + 0x1c]
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x10], edx
lea ecx, [esp + 8]
mov dword [esp + 0x13c], 1
mov eax, dword [eax - 8]
push eax
call fcn.004d3b90
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x148]
test eax, eax
je 0x40a818
mov dword [esp + 0x1c], 0x5486ac
mov dword [esp + 0x20], 0x4040
jmp 0x40a828
mov dword [esp + 0x1c], 0x548698
mov dword [esp + 0x20], 0x41
push 0x75e2e8
lea ecx, [esp + 0xc]
call fcn.004d38e9
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
test eax, eax
je 0x40a868
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [esp + 0x30]
lea ecx, [esp + 8]
push eax
push 0x548364
push ecx
call fcn.004cd19e
add esp, 0xc
mov esi, dword [esp + 0x144]
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.004d34d5
mov dword [esp + 0xc], 1
lea ecx, [esp + 8]
mov byte [esp + 0x13c], 0
call fcn.004d3760
mov ecx, dword [esp + 0x134]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x138
ret 8
Function at 0x40b4b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 9
mov ecx, dword [esi + 0x9a8]
mov dword [esp + 0x18], 0
add ecx, 0x24
call fcn.00414f20
mov ecx, dword [esi + 0x9a8]
push 1
add ecx, 0x24
mov ebx, eax
call fcn.00414f20
mov ecx, dword [eax]
xor ebp, ebp
mov dword [esp + 0x10], ecx
mov edi, dword [eax + 4]
xor eax, eax
mov edx, ecx
or eax, edi
or edx, ebp
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], edx
mov eax, dword [esi + 0x94]
mov edx, dword [esi + 0x90]
test eax, eax
jg 0x40b544
jl 0x40b518
test edx, edx
jae 0x40b544
mov eax, dword [0x75e3b8]
mov dword [esi + 0x90], eax
mov ecx, dword [0x75e3bc]
mov dword [esi + 0x94], ecx
mov edx, dword [0x75e3c0]
mov edi, dword [0x75e3c4]
mov dword [esp + 0x10], edx
jmp 0x40b61d
mov dword [0x75e3b8], edx
mov dword [0x75e3bc], eax
mov dword [0x75e3c0], ecx
mov dword [0x75e3c4], edi
mov ecx, dword [esi + 0x9a8]
add ecx, 0x24
call fcn.00414d60
mov ecx, dword [esi + 0x7c]
mov ebp, eax
lea eax, [esp + 0x10]
push 0
push eax
push edi
push ecx
sub ebp, 9
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor edi, edi
mov eax, dword [esi + 0x7c]
lea edx, [esp + 0x14]
push 0
push edx
push ebp
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40b59f
inc edi
cmp edi, 0xf
jl 0x40b582
cmp edi, 0xf
jne 0x40b5d8
test eax, eax
jne 0x40b5d8
lea ecx, [esi + 0x68]
push 0x54870c
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.004d39f5
mov eax, dword [eax]
mov ecx, dword [esi + 0x1c]
push 0x30
push 0x548690
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x18]
call fcn.004d3760
mov eax, dword [esi + 0x7c]
lea edx, [esp + 0x10]
push 1
push edx
push 0
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x90]
add edx, ecx
mov edi, eax
mov dword [esi + 0x90], edx
mov eax, dword [esi + 0x94]
adc eax, 0
mov ecx, esi
mov dword [esi + 0x94], eax
call fcn.0040ba20
mov al, byte [esi + 0x66]
test al, al
je 0x40b635
push 1
mov ecx, esi
call fcn.0040b9d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov ecx, dword [esi + 0x9a8]
mov edx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x20]
push 9
push eax
push ecx
mov ecx, dword [esi + 0x9ac]
mov byte [esp + 0x2c], 7
mov dword [esp + 0x2d], edx
mov dword [esp + 0x31], edi
call fcn.00415950
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x40c080
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, ecx
push 1
mov ecx, dword [esi + 0x9a8]
add ecx, 0x24
call fcn.00414f20
mov ecx, dword [eax]
xor edx, edx
mov dword [esp + 8], ecx
mov ebx, dword [eax + 4]
mov eax, dword [eax]
xor ecx, ecx
or edx, ebx
or eax, ecx
mov dword [esi + 0x90], edx
mov ecx, esi
mov dword [esi + 0x94], eax
call fcn.0040ba20
mov edx, dword [esi + 0x90]
mov eax, dword [esi + 0x88]
cmp edx, eax
jne 0x40c0e1
mov eax, dword [esi + 0x94]
mov ecx, dword [esi + 0x8c]
cmp eax, ecx
je 0x40c188
cmp dword [esp + 8], 0xffffffff
jne 0x40c0f1
cmp ebx, 0xffffffff
je 0x40c188
mov al, byte [esi + 0x66]
test al, al
jne 0x40c188
mov edx, dword [esi + 0x78]
push edi
lea ecx, [esp + 0xc]
push 0
push ecx
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 0x78]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0xfa000
push 0x40
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
lea edx, [esp + 0x10]
push 0
push edx
mov byte [edi], 5
mov ecx, dword [esp + 0x14]
mov dword [edi + 1], ecx
mov dword [edi + 5], ebx
mov ecx, dword [esi + 0x78]
lea eax, [edi + 9]
push 0xf9ff7
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x40c17a
mov edx, dword [esi + 0x9a8]
mov ecx, dword [esi + 0x9ac]
add eax, 9
push 0
push eax
push edi
push edx
call fcn.00415950
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebx
add esp, 8
ret
mov ecx, esi
call fcn.0040b790
pop esi
pop ebx
add esp, 8
ret
Function at 0x40cd60
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510758
push 0x443860
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call fcn.00443370
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x40ceba
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x40ce0b
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x40ce0b
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x40cde6
cmp al, 0x5c
je 0x40cde6
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x40cdce
cmp byte [esi], 0
je 0x40cdef
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x40ce04
cmp al, 0x5c
je 0x40ce04
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x40cdec
cmp byte [esi], 0
je 0x40ce2a
jmp 0x40ce26
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x40ce2a
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x40ce2a
cmp al, 0x5c
jne 0x40ce2a
inc esi
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov al, byte [esi]
test al, al
je 0x40ce80
cmp al, 0x5c
jne 0x40ce72
mov byte [esi], 0
push edi
call ebx
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x40ce65
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40ce6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40ce6f
push edi
jmp 0x40ceb2
and eax, 0x10
cmp al, 0x10
je 0x40ce6f
push edi
jmp 0x40ceb2
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x40ce30
mov dword [ebp - 4], 0xffffffff
push edi
call fcn.00443287
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00443287
add esp, 4
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40efc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4eae2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb0
mov al, byte [esp + 3]
push esi
xor esi, esi
lea ecx, [esp + 0x10]
push esi
mov dword [esp + 0x10], esi
mov byte [esp + 0x14], al
call fcn.00411210
lea ecx, [esp + 0x80]
mov dword [esp + 0xbc], 1
mov dword [esp + 0x20], 0x510bb0
mov dword [esp + 0x28], 0x510ba8
call fcn.0040f2d0
mov dword [esp + 0x80], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [esp + 0xc], 2
lea ecx, [esp + 0x2c]
push esi
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0xc4], 2
call fcn.00411650
push esi
lea ecx, [esp + 0x30]
mov dword [esp + 0xc0], 3
call fcn.00411380
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 4]
mov dword [esp + eax + 0x20], 0x510ba4
mov eax, dword [esp + 0x7c]
mov byte [esp + 0xbc], 4
cmp eax, esi
jne 0x40f0ac
mov ecx, dword [esp + 0xc8]
push 3
push ecx
call fcn.004bba86
add esp, 8
cmp eax, esi
je 0x40f0ac
push 1
push eax
lea ecx, [esp + 0x34]
call fcn.00411a50
lea ecx, [esp + 0x2c]
call fcn.00411b80
lea edx, [esp + 0x2c]
test edx, edx
jne 0x40f0bf
mov eax, dword [esp + 0x20]
push esi
push 2
mov ecx, dword [eax + 4]
lea ecx, [esp + ecx + 0x28]
call fcn.00410030
push edi
mov edi, dword [esp + 0xd0]
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 4]
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + eax + 0x28]
call fcn.0040f290
push 1
push 0
push eax
mov byte [esp + 0xcc], 5
call fcn.004120d0
add esp, 0xc
lea ecx, [esp + 0xc]
mov byte [esp + 0xc0], 4
call fcn.0040f230
lea eax, [esp + 0x14]
push 0xa
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.00412440
add esp, 0xc
test eax, eax
jne 0x40f11e
xor ecx, ecx
jmp 0x40f125
mov edx, dword [eax]
mov ecx, dword [edx + 4]
add ecx, eax
mov eax, dword [ecx + 4]
and al, 6
neg al
sbb eax, eax
not eax
test ecx, eax
je 0x40f13e
lea ecx, [edi - 1]
cmp esi, ecx
jge 0x40f13e
inc esi
jmp 0x40f0c7
mov eax, dword [esp + 0x80]
pop edi
test eax, eax
je 0x40f16b
push eax
call fcn.00443a39
add esp, 4
test eax, eax
jne 0x40f16b
push 2
push eax
lea ecx, [esp + 0x34]
call fcn.00411a50
lea edx, [esp + 0x2c]
test edx, edx
jne 0x40f17f
mov eax, dword [esp + 0x20]
push 0
push 2
mov ecx, dword [eax + 4]
lea ecx, [esp + ecx + 0x28]
call fcn.00410030
mov esi, dword [esp + 0xc4]
mov dl, byte [esp + 0x10]
push 0
mov ecx, esi
mov byte [esi], dl
call fcn.00411210
mov eax, dword [0x510ba0]
lea ecx, [esp + 0x10]
push eax
push 0
push ecx
mov ecx, esi
call fcn.00411010
mov dword [esp + 0xc], 3
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x80]
mov dword [esp + 8], edx
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x20], 0x510ba4
lea ecx, [esp + 0x2c]
mov byte [esp + 0xbc], 6
call fcn.004103e0
lea ecx, [esp + 0x2c]
mov byte [esp + 0xbc], 1
call fcn.00410e80
lea ecx, [esp + 0x80]
mov dword [esp + 0x80], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
call fcn.004bb94c
push 1
lea ecx, [esp + 0x14]
mov byte [esp + 0xc0], 0
call fcn.00411210
mov ecx, dword [esp + 0xb4]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0xbc
ret
Function at 0x414640
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xd8
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x9ce4]
test eax, eax
je 0x414808
mov ecx, dword [esi + 0x9cdc]
push 0
add ecx, 0x24
call fcn.00414f20
mov ebx, eax
xor eax, eax
mov al, byte [ebx]
mov edi, dword [ebx + 1]
sub eax, 0x8a
je 0x414776
dec eax
je 0x4146db
dec eax
jne 0x414808
mov ecx, dword [esi + 0x9cdc]
add ecx, 0x24
call fcn.00414d60
mov ecx, dword [esi + 0x9ce4]
sub eax, 5
push eax
mov eax, dword [esi + edi*4 + 0x98]
add ebx, 5
push ebx
push eax
call fcn.00414950
mov ecx, dword [esi + 0x9cdc]
add ecx, 0x24
call fcn.00414d60
sub eax, 5
lea ecx, [esp + 0x1c]
push eax
push edi
push 0x548cd4
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x4147fc
push edi
lea eax, [esp + 0x20]
push str._d_TOKEN_PROXY_CLOSE_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00414840
mov eax, dword [esi + edi*4 + 0x98]
mov ecx, dword [eax]
test ecx, ecx
je 0x414808
cmp ecx, 0xffffffff
je 0x414808
lea edx, [esp + 0x18]
push 4
push edx
push 0x80
mov eax, ecx
mov ebx, 1
push 0xffff
push eax
mov word [esp + 0x2c], bx
mov word [esp + 0x2e], bx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [esi + edi*4 + 0x98]
push ebx
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [esi + edi*4 + 0x98]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [esi + edi*4 + 0x98]
pop edi
pop esi
pop ebx
mov dword [edx], 0
add esp, 0xd8
ret
mov al, byte [ebx + 9]
mov byte [esp + 0xc], 5
test al, al
jne 0x41478d
mov al, byte [ebx + 0xa]
test al, al
jne 0x41478d
mov al, 5
jmp 0x41478f
xor al, al
add ebx, 5
mov byte [esp + 0xd], al
test al, al
mov ecx, dword [ebx]
mov byte [esp + 0xe], 0
mov byte [esp + 0xf], 1
mov dword [esp + 0x10], ecx
mov dx, word [ebx + 4]
mov word [esp + 0x14], dx
jne 0x4147ce
mov eax, dword [esi + edi*4 + 0x98]
push edi
lea ecx, [esp + 0x20]
push 0x548cac
mov byte [eax + 0xfa0b4], 2
push ecx
jmp 0x4147d9
push edi
lea edx, [esp + 0x20]
push 0x548c9c
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esi + edi*4 + 0x98]
add esp, 0xc
lea eax, [esp + 0xc]
push 0xa
push eax
push ecx
mov ecx, dword [esi + 0x9ce4]
call fcn.00414950
lea edx, [esp + 0x1c]
mov ecx, esi
push edx
call fcn.00414840
pop edi
pop esi
pop ebx
add esp, 0xd8
ret
Function at 0x414647
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xd8
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x9ce4]
test eax, eax
je 0x414808
mov ecx, dword [esi + 0x9cdc]
push 0
add ecx, 0x24
call fcn.00414f20
mov ebx, eax
xor eax, eax
mov al, byte [ebx]
mov edi, dword [ebx + 1]
sub eax, 0x8a
je 0x414776
dec eax
je 0x4146db
dec eax
jne 0x414808
mov ecx, dword [esi + 0x9cdc]
add ecx, 0x24
call fcn.00414d60
mov ecx, dword [esi + 0x9ce4]
sub eax, 5
push eax
mov eax, dword [esi + edi*4 + 0x98]
add ebx, 5
push ebx
push eax
call fcn.00414950
mov ecx, dword [esi + 0x9cdc]
add ecx, 0x24
call fcn.00414d60
sub eax, 5
lea ecx, [esp + 0x1c]
push eax
push edi
push 0x548cd4
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x4147fc
push edi
lea eax, [esp + 0x20]
push str._d_TOKEN_PROXY_CLOSE_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00414840
mov eax, dword [esi + edi*4 + 0x98]
mov ecx, dword [eax]
test ecx, ecx
je 0x414808
cmp ecx, 0xffffffff
je 0x414808
lea edx, [esp + 0x18]
push 4
push edx
push 0x80
mov eax, ecx
mov ebx, 1
push 0xffff
push eax
mov word [esp + 0x2c], bx
mov word [esp + 0x2e], bx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [esi + edi*4 + 0x98]
push ebx
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [esi + edi*4 + 0x98]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [esi + edi*4 + 0x98]
pop edi
pop esi
pop ebx
mov dword [edx], 0
add esp, 0xd8
ret
mov al, byte [ebx + 9]
mov byte [esp + 0xc], 5
test al, al
jne 0x41478d
mov al, byte [ebx + 0xa]
test al, al
jne 0x41478d
mov al, 5
jmp 0x41478f
xor al, al
add ebx, 5
mov byte [esp + 0xd], al
test al, al
mov ecx, dword [ebx]
mov byte [esp + 0xe], 0
mov byte [esp + 0xf], 1
mov dword [esp + 0x10], ecx
mov dx, word [ebx + 4]
mov word [esp + 0x14], dx
jne 0x4147ce
mov eax, dword [esi + edi*4 + 0x98]
push edi
lea ecx, [esp + 0x20]
push 0x548cac
mov byte [eax + 0xfa0b4], 2
push ecx
jmp 0x4147d9
push edi
lea edx, [esp + 0x20]
push 0x548c9c
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esi + edi*4 + 0x98]
add esp, 0xc
lea eax, [esp + 0xc]
push 0xa
push eax
push ecx
mov ecx, dword [esi + 0x9ce4]
call fcn.00414950
lea edx, [esp + 0x1c]
mov ecx, esi
push edx
call fcn.00414840
pop edi
pop esi
pop ebx
add esp, 0xd8
ret
Function at 0x414fa0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x4eb52c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x194
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov ecx, 0x510f5c
mov eax, 0xa
mov dword [esi + 0x44], ecx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], ecx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], eax
lea eax, [esp + 0xc]
mov dword [esi], 0x510f54
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea ecx, [esi + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x84], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov byte [esp + 8], 0x74
mov byte [esp + 9], 0x78
mov cx, word [esp + 8]
lea edx, [esi + 0x3e]
mov dword [esi + 0x80], eax
mov al, 0x20
mov word [edx], cx
mov ecx, dword [esp + 0x19c]
mov dword [esi + 0x34], ebx
mov byte [esi + 0x8c], bl
mov byte [edx + 2], al
mov byte [esi + 0x3d], bl
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x88], ebx
mov byte [esi + 0x3c], bl
mov dword [esi + 8], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0x30], 0x2710
mov dword [esi + 0x90], 0x3a98
mov dword [esi + 0x94], 0xbb8
mov dword [esi + 0xc], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1a0
ret
Function at 0x415190
Capabilities:
Create tcp socket
Create thread
Create udp socket

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push esi
push 1
push 0
mov esi, ecx
mov ecx, dword [esp + 0x24]
push 0
push 0
push 1
push 2
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0x30], edx
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
mov dword [esi + 0x34], eax
je 0x4152a5
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
test eax, eax
mov dword [esi + 0x7c], eax
jne 0x4151e9
mov eax, dword [esi + 0x34]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop esi
add esp, 0x10
ret 0x10
mov ecx, dword [esi + 0x34]
push 8
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x41529b
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 0x34]
lea ecx, [esp + 4]
push 0x10
push ecx
push edx
mov word [esp + 0x12], ax
mov word [esp + 0x10], 2
mov dword [esp + 0x14], 0
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x415247
mov eax, dword [esi + 0x34]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop esi
add esp, 0x10
ret 0x10
mov ecx, dword [esi + 0x34]
push SysReAllocString
push ecx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x41529b
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 0
push esi
push 0x415350
push 0
push 0
call fcn.00444620
add esp, 0x18
cmp eax, 0xffffffff
mov dword [esi + 0x84], eax
je 0x4152a5
mov ecx, esi
call fcn.004155f0
mov byte [esi + 0x3c], 1
mov al, 1
pop esi
add esp, 0x10
ret 0x10
mov edx, dword [esi + 0x34]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop esi
add esp, 0x10
ret 0x10