joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001ef5e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x224]
mov edx, dword [ecx + 0x138]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov byte [ebp - 0x24], 0
mov byte [ebp - 0xc], 0
mov ecx, dword [ebp - 0xc]
and ecx, 0xff
test ecx, ecx
jne 0x1001f129
push 0x1f4
lea edx, [ebp - 0x218]
push edx
mov ecx, dword [ebp - 0x224]
add ecx, 0x7c
call fcn.1001f950
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x1001f003
mov eax, dword [ebp - 0x224]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x224]
call dword [edx + 0x84]
jmp 0x1001f129
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x220]
push edx
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x224]
mov edx, dword [ecx + 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1001f0f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1001f0e7
push 0xffffffffffffffff
push 0
lea eax, [ebp - 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
je 0x1001f06f
cmp dword [ebp - 0x228], 1
je 0x1001f08b
jmp 0x1001f0e5
mov byte [ebp - 0xc], 1
mov byte [ebp - 0x24], 1
push 1
mov ecx, dword [ebp - 0x224]
mov edx, dword [ecx + 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_PurgeComm]
jmp 0x1001f0e5
push 0
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x224]
mov eax, dword [edx + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1001f0ba
mov ecx, dword [ebp - 0x21c]
cmp ecx, dword [ebp - 0x220]
je 0x1001f0e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1001f0d6
push 0
mov ecx, dword [ebp - 0x224]
call fcn.1001e65b
jmp 0x1001f0e1
mov ecx, dword [ebp - 0x224]
call fcn.1001ead3
mov byte [ebp - 0xc], 1
jmp 0x1001f0f6
mov ecx, dword [ebp - 0x224]
call fcn.1001ead3
mov byte [ebp - 0xc], 1
jmp 0x1001f124
push str._output_worker
push 3
call fcn.10003bc2
add esp, 8
mov edx, dword [ebp - 0x21c]
cmp edx, dword [ebp - 0x220]
je 0x1001f124
mov ecx, dword [ebp - 0x224]
call fcn.1001ead3
mov byte [ebp - 0xc], 1
jmp 0x1001efb0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x24]
mov esp, ebp
pop ebp
ret
Function at 0x1001f3b9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x138]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov byte [ebp - 0x10], 0
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1001f4b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1001f4a8
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 8]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x1001f451
cmp dword [ebp - 0x2c], 1
je 0x1001f462
jmp 0x1001f4a6
push 1
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_PurgeComm]
jmp 0x1001f4a6
push 0
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1001f485
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
je 0x1001f4a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1001f49e
push 0
mov ecx, dword [ebp - 0x28]
call fcn.1001e65b
jmp 0x1001f4a6
mov ecx, dword [ebp - 0x28]
call fcn.1001ead3
jmp 0x1001f4b0
mov ecx, dword [ebp - 0x28]
call fcn.1001ead3
mov byte [ebp - 0x10], 1
jmp 0x1001f4ca
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x1001f4c6
mov ecx, dword [ebp - 0x28]
call fcn.1001ead3
mov byte [ebp - 0x10], 1
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x10]
mov esp, ebp
pop ebp
ret 8

Function at 0x10026430
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10026450
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10026eb7
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x10026473
test byte [esp + 8], 2
je 0x10026473
call fcn.10026f2a
mov dword [eax], 0xd
call fcn.10026f33
mov dword [eax], 5
jmp 0x1002644c
xor eax, eax
ret
Function at 0x1002c1a3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x10049390
cmp edx, dword [eax]
je 0x1002c1c5
add eax, 8
inc ecx
cmp eax, 0x10049420
jl 0x1002c1b6
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x10049390]
jne 0x1002c2f3
mov eax, dword [0x1004d818]
cmp eax, 1
je 0x1002c2cd
test eax, eax
jne 0x1002c1f6
cmp dword [0x1004d81c], 1
je 0x1002c2cd
cmp edx, 0xfc
je 0x1002c2f3
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1002c22d
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10026340
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10026170
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1002c270
lea eax, [ebp - 0x1a4]
push eax
call fcn.10026170
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1003e734
push edi
call fcn.1002daf0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10026340
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10026350
lea eax, [ebp - 0xa0]
push 0x1003e714
push eax
call fcn.10026350
push dword [esi + 0x10049394]
lea eax, [ebp - 0xa0]
push eax
call fcn.10026350
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1002f597
add esp, 0x2c
pop edi
jmp 0x1002c2f3
lea eax, [ebp + 8]
lea esi, [esi + 0x10049394]
push 0
push eax
push dword [esi]
call fcn.10026170
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x402c20
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x44
push 0x40
lea eax, [esp + 8]
mov dword [esp + 4], 0x44
push 0
push eax
call fcn.0048bfd0
add esp, 0xc
lea eax, [esp]
push dword [esp + 0x50]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x6c]
push dword [esp + 0x6c]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
add esp, 0x44
ret 0xc
Function at 0x404b50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x3c
mov eax, dword [0x4f7600]
xor eax, esp
mov dword [esp + 0x38], eax
push edi
lea eax, [esp + 0x48]
xor edi, edi
push eax
lea ecx, [esp + 0x28]
call fcn.0040e2c0
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x38], edx
push esi
nop dword [eax + eax]
mov cl, byte [esp + 0x38]
cmp edx, dword [esp + 0x78]
jne 0x404bcb
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x64]
jne 0x404bcb
cmp cl, byte [esp + 0x74]
jne 0x404bcb
lea eax, [esp + 0x2c]
mov dword [esp + 8], eax
lea eax, [esp + 0x68]
mov dword [esp + 0xc], eax
movzx eax, cl
lea ecx, [esp + 8]
push ecx
push eax
call fcn.00405680
add esp, 8
test al, al
jne 0x404c5a
mov edx, dword [esp + 0x3c]
mov cl, byte [esp + 0x38]
mov eax, dword [esp + 0x28]
cmp eax, dword [edx + 0xc]
jne 0x404c34
add edx, 0x10
cmp cl, byte [edx + 0xc]
jne 0x404c34
lea eax, [esp + 0x2c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
movzx eax, cl
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.00405680
add esp, 8
test al, al
je 0x404c34
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x28]
mov esi, dword [eax + 0x20]
lea eax, [esp + 0x20]
push eax
call fcn.00412a60
lea ecx, [esp + 0x28]
mov eax, dword [eax + 4]
cmp esi, eax
cmovae esi, eax
sub eax, esi
mov dword [esp + 0x1c], eax
add edi, eax
call fcn.00413100
mov edx, dword [esp + 0x3c]
jmp 0x404b80
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
call fcn.00412a60
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
add edi, eax
call fcn.00413100
mov edx, dword [esp + 0x3c]
jmp 0x404b80
movzx eax, byte [esp + 0x38]
pop esi
jmp dword [eax*4 + 0x404cec]
Function at 0x407610
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x4c
mov eax, dword [0x4f7600]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x54]
push esi
mov dword [esp + 0x18], eax
mov esi, ecx
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x60]
push edi
push eax
mov byte [esp + 0x34], 0
call fcn.00417eb0
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x78]
jne case.default.0x407685
cmp ecx, dword [esp + 0x94]
jne case.default.0x407685
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x80]
jne case.default.0x407685
mov al, byte [esp + 0x30]
cmp al, byte [esp + 0x90]
jne case.default.0x407685
movzx eax, al
jmp dword [eax*4 + 0x4077b0]
lea ecx, [esp + 0x24]
mov eax, dword [ecx]
lea edx, [esp + 0x84]
cmp eax, dword [edx]
jne case.default.0x4076a8
mov al, byte [ecx + 8]
cmp al, byte [edx + 8]
jne case.default.0x4076a8
movzx eax, al
jmp dword [eax*4 + 0x4077d0]
mov eax, dword [ecx + 4]
cmp eax, dword [edx + 4]
sete al
test al, al
je case.default.0x4076a8
mov al, 1
jmp 0x4076d6
xor al, al
jmp 0x4076d6
test al, al
jne case.0x407685.0
cmp dword [esi + 0x200], 0x40
jae case.0x407685.0
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x24]
call fcn.00412c80
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0xc]
mov edi, dword [esp + 8]
cmp ecx, edx
jae 0x40770d
mov edx, ecx
jmp 0x40770f
mov ecx, edx
mov eax, dword [esi + 0x200]
mov byte [esp + 0x48], 0
mov dword [esi + eax*8], ecx
lea ecx, [esp + 0x3c]
mov dword [esi + eax*8 + 4], edi
mov eax, dword [esp + 0x20]
add dword [esi + 0x204], edx
mov dword [esp + 0x38], eax
lea eax, [esp + 0x24]
push eax
call fcn.00417eb0
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x20]
mov dword [esp + 0x4c], eax
call fcn.00412fd0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x3c]
call fcn.00412c80
lea ecx, [esp + 0x3c]
call fcn.004181e0
mov eax, dword [esp + 0x14]
sub dword [esp + 0x1c], eax
inc dword [esi + 0x200]
mov ecx, dword [esp + 0x34]
jmp 0x407655
lea ecx, [esp + 0x24]
call fcn.004181e0
lea ecx, [esp + 0x64]
call fcn.004181e0
lea ecx, [esp + 0x84]
call fcn.004181e0
mov ecx, dword [esp + 0x50]
pop edi
pop esi
xor ecx, esp
call fcn.00489fe1
add esp, 0x4c
ret 0x40
Function at 0x4077f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
mov eax, dword [0x4f7600]
xor eax, esp
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x58]
push esi
mov dword [esp + 0x1c], eax
mov esi, ecx
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x64]
push edi
push eax
mov byte [esp + 0x38], 0
call fcn.00417de0
mov edx, dword [esp + 0x78]
mov dword [esp + 0x38], edx
nop word [eax + eax]
mov eax, dword [esp + 0x1c]
mov cl, byte [esp + 0x34]
cmp eax, dword [esp + 0x7c]
jne case.default.0x407870
cmp edx, dword [esp + 0x98]
jne case.default.0x407870
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x84]
jne case.default.0x407870
cmp cl, byte [esp + 0x94]
jne case.default.0x407870
movzx eax, cl
jmp dword [eax*4 + 0x4079f4]
lea edx, [esp + 0x28]
mov eax, dword [edx]
lea edi, [esp + 0x88]
cmp eax, dword [edi]
jne case.default.0x407893
mov al, byte [edx + 8]
cmp al, byte [edi + 8]
jne case.default.0x407893
movzx eax, al
jmp dword [eax*4 + 0x407a20]
mov eax, dword [edx + 4]
cmp eax, dword [edi + 4]
sete al
test al, al
je case.default.0x407893
mov al, 1
jmp 0x4078c1
xor al, al
jmp 0x4078c1
test al, al
jne case.0x407870.0
cmp dword [esi + 0x200], 0x40
jae case.0x407870.0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x28]
call fcn.00412d10
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
cmp ecx, edx
jae 0x4078f8
mov edx, ecx
jmp 0x4078fa
mov ecx, edx
mov eax, dword [esi + 0x200]
mov byte [esp + 0x4c], 0
mov dword [esi + eax*8], ecx
lea ecx, [esp + 0x40]
mov dword [esi + eax*8 + 4], edi
mov eax, dword [esp + 0x24]
add dword [esi + 0x204], edx
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x28]
push eax
call fcn.00417de0
mov eax, dword [esp + 0x38]
lea ecx, [esp + 8]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x24]
mov dword [esp + 8], eax
movzx eax, byte [esp + 0x34]
push ecx
push eax
call fcn.00405700
add esp, 8
lea eax, [esp + 0x14]
lea ecx, [esp + 0x3c]
push eax
call fcn.00412d10
movzx eax, byte [esp + 0x4c]
movzx eax, byte [eax + 0x407a44]
jmp dword [eax*4 + 0x407a3c]
lea ecx, [esp + 0x40]
movzx eax, byte [ecx + 8]
movzx eax, byte [eax + 0x407a54]
jmp dword [eax*4 + 0x407a50]
mov eax, dword [esp + 0x18]
sub dword [esp + 0x20], eax
inc dword [esi + 0x200]
mov edx, dword [esp + 0x38]
jmp 0x407840
movzx eax, cl
movzx eax, byte [eax + 0x407a64]
jmp dword [eax*4 + 0x407a5c]
lea ecx, [esp + 0x28]
movzx eax, byte [ecx + 8]
movzx eax, byte [eax + 0x407a74]
jmp dword [eax*4 + 0x407a70]
lea ecx, [esp + 0x5c]
mov byte [esp + 0x34], 0
call fcn.00412030
lea ecx, [esp + 0x7c]
call fcn.00412030
mov ecx, dword [esp + 0x54]
pop edi
pop esi
xor ecx, esp
call fcn.00489fe1
add esp, 0x50
ret 0x40
and al, 0x40
Function at 0x407a80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x54
mov eax, dword [0x4f7600]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x58]
push esi
mov dword [esp + 0x1c], eax
mov esi, ecx
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x64]
push edi
push eax
call fcn.0040e2c0
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x3c], ecx
nop dword [eax + eax]
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x80]
jne 0x407b1c
cmp ecx, dword [esp + 0x9c]
jne 0x407b1c
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x88]
jne 0x407b1c
mov al, byte [esp + 0x38]
cmp al, byte [esp + 0x98]
jne 0x407b20
lea ecx, [esp + 0x2c]
movzx eax, al
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x8c]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.00405680
add esp, 8
test al, al
jne 0x407bce
mov al, byte [esp + 0x38]
cmp dword [esi + 0x200], 0x40
jae 0x407bd2
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x2c]
call fcn.00412da0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0xc]
mov edi, dword [esp + 8]
cmp ecx, edx
jae 0x407b4f
mov edx, ecx
jmp 0x407b51
mov ecx, edx
mov eax, dword [esi + 0x200]
mov dword [esi + eax*8], ecx
lea ecx, [esp + 0x40]
and al, 0x40
mov dword [esi + eax*8 + 4], edi
lea eax, [esp + 0x28]
add dword [esi + 0x204], edx
push eax
call fcn.0040e2c0
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x28]
mov dword [esp + 0x54], eax
call fcn.00413100
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x44]
call fcn.00412da0
movzx eax, byte [esp + 0x50]
jmp dword [eax*4 + 0x407c68]
lea ecx, [esp + 0x44]
movzx eax, byte [ecx + 8]
movzx eax, byte [eax + 0x407c7c]
jmp dword [eax*4 + 0x407c78]
mov byte [ecx + 8], 0
mov eax, dword [esp + 0x1c]
sub dword [esp + 0x24], eax
inc dword [esi + 0x200]
mov ecx, dword [esp + 0x3c]
jmp 0x407ac0
mov al, byte [esp + 0x38]
movzx eax, al
jmp dword [eax*4 + 0x407c84]
lea ecx, [esp + 0x2c]
movzx eax, byte [ecx + 8]
movzx eax, byte [eax + 0x407c98]
jmp dword [eax*4 + 0x407c94]
mov byte [ecx + 8], 0
movzx eax, byte [esp + 0x78]
mov byte [esp + 0x38], 0
jmp dword [eax*4 + 0x407ca0]
Function at 0x40d2a0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x1b0
mov eax, dword [0x4f7600]
xor eax, esp
mov dword [esp + 0x1ac], eax
push esi
push edi
mov esi, ecx
mov eax, 1
lock xadd dword [0x4fabc8], eax
inc eax
mov edi, 0x4fabcc
cmp eax, 1
jne 0x40d2e2
lea eax, [esp + 0x24]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [edi], eax
cmp byte [esp + 0x1bc], 0
je 0x40d33e
xor eax, eax
lock xadd dword [edi], eax
test eax, eax
je 0x40d33e
push 0x4f7028
push eax
lea ecx, [esp + 0x10]
call fcn.0040e4a0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], str.E:_repoyjscloudclinkClientOfCSP_agent_boost_1.85.0libs_asioinclude_boost_asio_detail_impl_winsock_init.ipp
mov dword [esp + 0x18], str.void___cdecl_boost::asio::detail::winsock_init_base::throw_on_error_struct_boost::asio::detail::winsock_init_base::data__
mov dword [esp + 0x1c], 0x48
mov dword [esp + 0x20], 0x1a
test al, 1
je 0x40d33e
cmp eax, 1
jne 0x40d359
cmp dword [esp + 8], 0
setne al
test al, al
jne 0x40d359
mov ecx, dword [esp + 0x1b4]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.00489fe1
add esp, 0x1b0
ret 4
lea eax, [esp + 0x14]
push eax
push str.winsock
lea eax, [esp + 0x10]
push eax
call fcn.004191b0
int3
Function at 0x410f20
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ae5ee
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4f7600]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 8]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [edi], vtable.boost::asio::detail::win_iocp_io_context.0
mov dword [ebp - 4], 0
mov dword [edi + 0x14], 0
lea esi, [edi + 0x18]
mov dword [edi + 0x1c], 0
mov dword [esi], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0xffffffff
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
lea ecx, [edi + 0x38]
mov byte [ebp - 4], 3
mov dword [edi + 0x34], 0
call fcn.00411100
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov ecx, dword [ebp + 0xc]
mov dword [edi + 0x5c], ecx
mov dword [edi + 0x60], 0
or eax, 0xffffffff
mov byte [ebp - 4], 6
test ecx, ecx
cmovns eax, ecx
push eax
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [edi + 0x14], eax
test eax, eax
jne 0x411053
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x4f7028
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040e4a0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], str.E:_repoyjscloudclinkClientOfCSP_agent_boost_1.85.0libs_asioinclude_boost_asio_detail_impl_win_iocp_io_context.ipp
mov dword [ebp - 0x28], str.__thiscall_boost::asio::detail::win_iocp_io_context::win_iocp_io_context_class_boost::asio::execution_context__int_bool_
mov dword [ebp - 0x24], 0x66
mov dword [ebp - 0x20], 0x1a
test al, 1
je 0x411053
cmp eax, 1
jne 0x4110ea
cmp dword [ebp - 0x1c], 0
setne al
test al, al
jne 0x4110ea
cmp byte [ebp + 0x10], 0
je 0x4110d4
lock inc dword [esi]
push 0xc
call fcn.00489c69
mov esi, eax
add esp, 4
mov dword [ebp + 0x10], esi
mov byte [ebp - 4], 7
test esi, esi
je 0x4110b4
push 0x10
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.00489c69
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
je 0x4110a7
push 0
push eax
mov ecx, esi
mov dword [eax], vtable.boost::asio::detail::win_thread::func_struct_boost::asio::detail::win_iocp_io_context::thread_function_.0
mov dword [eax + 0xc], edi
call fcn.00422890
jmp 0x4110b6
xor eax, eax
mov ecx, esi
push eax
push eax
call fcn.00422890
jmp 0x4110b6
xor esi, esi
mov ebx, dword [edi + 0x60]
test ebx, ebx
je 0x4110d1
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc
push ebx
call fcn.00489c99
add esp, 8
mov dword [edi + 0x60], esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x2c]
push eax
push str.iocp
lea eax, [ebp - 0x1c]
push eax
call fcn.004191b0
int3
Function at 0x416a90
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
cmp esi, 0xffffffff
je 0x416c73
cmp byte [esp + 0x1c], 0
push ebp
mov ebp, dword [esp + 0x1c]
je 0x416aed
mov al, byte [ebp]
test al, 8
je 0x416aed
or al, 8
xor ecx, ecx
push 4
mov byte [ebp], al
lea eax, [esp + 0x1c]
push eax
push 0x80
push 0xffff
push esi
mov dword [esp + 0x2c], ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
setne al
movzx eax, al
push eax
lea eax, [esp + 0xc]
push eax
call fcn.0041a760
add esp, 8
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x416b10
mov ecx, dword [esp + 0x24]
xorps xmm0, xmm0
pop ebp
pop esi
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
add esp, 0xc
ret
push ebx
push edi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x4f7028
push eax
lea ecx, [esp + 0x18]
call fcn.0040e4a0
mov ecx, dword [esp + 0x2c]
movq xmm0, qword [eax]
movq qword [ecx], xmm0
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
mov ebx, dword [0x4f7030]
mov edi, dword [0x4f7034]
cmp ebx, 0x257edfd1
jne 0x416b55
cmp edi, 0xb2ab117a
je 0x416b65
cmp ebx, 0x257edfd0
jne 0x416b69
cmp edi, 0xb2ab117a
jne 0x416b69
mov al, 1
jmp 0x416b8d
mov eax, dword [0x4f7028]
mov ecx, 0x4f7028
push 0x2733
mov eax, dword [eax + 0x18]
call eax
mov edi, dword [0x4f7034]
mov ebx, dword [0x4f7030]
mov ecx, dword [esp + 0x2c]
movzx eax, al
add eax, 2
mov dword [esp + 0x10], 0x2733
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x1c], 0x4f7028
call fcn.00412810
add esp, 8
test al, al
jne 0x416c2d
cmp ebx, 0x257edfd1
jne 0x416bc9
cmp edi, 0xb2ab117a
je 0x416bd9
cmp ebx, 0x257edfd0
jne 0x416bdd
cmp edi, 0xb2ab117a
jne 0x416bdd
mov al, 1
jmp 0x416bf1
mov eax, dword [0x4f7028]
mov ecx, 0x4f7028
push 0x4d5
mov eax, dword [eax + 0x18]
call eax
mov edi, dword [esp + 0x2c]
movzx eax, al
add eax, 2
mov dword [esp + 0x10], 0x4d5
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
push eax
push edi
mov dword [esp + 0x1c], 0x4f7028
call fcn.00412810
add esp, 8
test al, al
jne 0x416c31
mov eax, dword [esp + 0x20]
pop edi
pop ebx
pop ebp
pop esi
add esp, 0xc
ret
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [ebp], 0xfc
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
test esi, esi
setne cl
movzx ecx, cl
push ecx
push edi
call fcn.0041a760
add esp, 8
mov eax, esi
pop edi
pop ebx
pop ebp
pop esi
add esp, 0xc
ret
xor eax, eax
pop esi
add esp, 0xc
ret
Function at 0x416d20
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
cmp eax, 0xffffffff
jne 0x416d8e
mov ecx, dword [0x4f7030]
mov eax, dword [0x4f7034]
cmp ecx, 0x257edfd1
jne 0x416d46
cmp eax, 0xb2ab117a
je 0x416d55
cmp ecx, 0x257edfd0
jne 0x416d59
cmp eax, 0xb2ab117a
jne 0x416d59
mov al, 1
jmp 0x416d6d
mov eax, dword [0x4f7028]
mov ecx, 0x4f7028
push 0x2719
mov eax, dword [eax + 0x18]
call eax
mov ecx, dword [esp + 0x1c]
movzx eax, al
add eax, 2
mov dword [ecx], 0x2719
mov dword [ecx + 4], 0x4f7028
mov dword [ecx + 8], eax
or eax, 0xffffffff
add esp, 0xc
ret
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov esi, eax
test esi, esi
jne 0x416db7
mov ecx, dword [esp + 0x20]
xorps xmm0, xmm0
pop esi
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
add esp, 0xc
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x4f7028
push eax
lea ecx, [esp + 0xc]
call fcn.0040e4a0
mov ecx, dword [esp + 0x20]
movq xmm0, qword [eax]
movq qword [ecx], xmm0
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
mov eax, esi
pop esi
add esp, 0xc
ret