joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418130
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef1b8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5564b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x34], ecx
cmp ecx, ebx
je 0x418294
cmp dword [eax + 0x10], ebx
setne cl
test cl, cl
jne 0x4181a9
push 0xf
xor eax, eax
push str.Incorrect_state
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.0040a420
push 0x8c
mov ecx, 0x5186c4
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.0041f6a0
cmp dword [eax + 0x14], 8
jb 0x4181b1
mov eax, dword [eax]
push ebx
push 0x80
push 4
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41821c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
je 0x4181f6
push ebx
cmp edi, 0x200000
jb 0x418202
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x418294
push edi
push ebx
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x30], eax
cmp eax, ebx
jne 0x418224
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x418296
push edi
push ebx
push ebx
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0x418250
mov ecx, dword [ebp - 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
push esi
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x418296
mov eax, dword [ebp - 0x34]
lea ecx, [eax + ebx]
cmp edi, eax
jbe 0x4182b2
sub edi, eax
test edi, edi
je 0x41826b
push edi
push ecx
push ebx
call fcn.0049b0e0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [ebp - 0x30]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebx
push 0
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call ebx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049ab39
mov esp, ebp
pop ebp
ret
xor edi, edi
jmp 0x41826b
Function at 0x4182c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4efa16
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x5564b0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [0x567c94]
xor ebx, ebx
mov edi, ecx
cmp eax, ebx
je 0x4184a2
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x1c]
jg 0x4184a2
cmp byte [eax + 0x20], bl
je 0x4184a2
lea esi, [ebp - 0x50]
mov edx, eax
mov dword [ebp - 4], ebx
call fcn.00417d70
mov byte [ebp - 4], 1
cmp dword [ebp - 0x40], ebx
setne al
cmp al, bl
jne 0x418367
push 0xf
xor edx, edx
push str.Incorrect_state
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x34], dx
call fcn.0040a420
push 0xf1
mov ecx, 0x5186c4
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.0041f6a0
mov eax, dword [ebp - 0x50]
mov esi, 8
cmp dword [ebp - 0x3c], esi
jae 0x418377
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x418479
mov eax, dword [ebp - 0x50]
cmp dword [ebp - 0x3c], esi
jae 0x418392
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x74]
push ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x4183aa
mov dword [ebp - 0x110], ebx
jmp 0x4183bf
mov eax, dword [ebp - 0x54]
xor ecx, ecx
xor esi, esi
add eax, ecx
adc esi, dword [ebp - 0x58]
mov dword [ebp - 0x110], esi
lea esi, [ecx + 8]
mov ecx, dword [edi + 0x10]
lea eax, [eax + ecx + 0x18]
cmp eax, 0x100000
jbe 0x418479
lea edx, [ebp - 0x50]
lea ecx, [eax - 0x100000]
push edx
call fcn.00418130
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x418474
lea eax, [ebp - 0x1ac]
push eax
call fcn.00409d60
lea ecx, [ebp - 0x1ac]
push 0x5186f8
push ecx
mov byte [ebp - 4], 3
call fcn.0040da40
add esp, 8
push esi
lea edx, [ebp - 0x1ac]
push edx
call fcn.00413980
lea esi, [ebp - 0x34]
lea eax, [ebp - 0x1ac]
call fcn.00408e20
mov eax, esi
push eax
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 4
call fcn.004169e0
mov ecx, esi
call fcn.004cc710
lea ecx, [ebp - 0x1ac]
mov byte [ebp - 4], 7
call fcn.00408480
push 1
lea ecx, [ebp - 0x6c]
push ecx
lea edx, [ebp - 0x104]
push edx
call fcn.00462768
push 0x532154
lea eax, [ebp - 0x104]
push eax
call fcn.004a1366
mov esi, 8
cmp dword [edi + 0x14], esi
jb 0x418482
mov eax, dword [edi]
jmp 0x418484
mov eax, edi
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.00463991
add esp, 8
cmp dword [ebp - 0x3c], esi
jb 0x4184a2
mov edx, dword [ebp - 0x50]
push edx
call fcn.0049acb7
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0049ab39
mov esp, ebp
pop ebp
ret
Function at 0x418760
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e9cdb
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x5564b0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x41879a
mov eax, dword [esi]
jmp 0x41879c
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4188e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4188e0
cmp byte [ebp + 8], 0
je 0x4188b4
mov edi, dword [esi + 0x10]
mov dword [ebp - 0x228], edi
inc edi
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
push 0x566838
neg ecx
or ecx, eax
push ecx
call fcn.0049ba7b
add esp, 8
mov byte [ebp - 0x22c], 0
mov ecx, dword [ebp - 0x22c]
push ecx
push eax
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x224], eax
call fcn.004198d0
mov ebx, dword [ebp - 0x224]
test ebx, ebx
je 0x4188a2
push edi
push 0
push ebx
call fcn.0049e880
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x418830
mov esi, dword [esi]
mov edx, dword [ebp - 0x228]
push edx
push esi
push edi
push ebx
call fcn.0049bb5b
add esp, 0x10
test eax, eax
jne 0x4188a2
push ebx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418852
sub eax, edx
sar eax, 1
cmp eax, 0xf6
ja 0x4188a2
lea eax, [ebp - 0x21c]
push eax
push 0
push 0x518798
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4188a2
push 4
lea ecx, [ebp - 0x21c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4188b8
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 0xffffffff
call fcn.00421e30
xor al, al
jmp 0x4188e2
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
lea eax, [ebp - 0x224]
setne bl
mov dword [ebp - 4], 0xffffffff
call fcn.00421e30
mov al, bl
jmp 0x4188e2
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049ab39
mov esp, ebp
pop ebp
ret
Function at 0x418900
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ee826
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x5564b0]
xor eax, esp
mov dword [esp + 0x170], eax
push ebx
push esi
push edi
mov eax, dword [0x5564b0]
xor eax, esp
push eax
lea eax, [esp + 0x188]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
push 0
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov edi, eax
test edi, edi
je 0x418b35
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push 0
push esi
push 0
push eax
push 0
push 0
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x418a5b
cmp byte [ebp + 0x14], 0
je 0x418a5b
call ebx
lea edx, [esp + 0xac]
push edx
mov esi, eax
call fcn.00409d60
lea eax, [esp + 0xac]
push str.ReportEvent___function_error_with_error_code:
push eax
mov dword [esp + 0x198], 0
call fcn.0040da40
add esp, 8
push esi
lea ecx, [esp + 0xb0]
push ecx
call fcn.00413980
lea esi, [esp + 0x164]
lea eax, [esp + 0xac]
call fcn.00408e20
mov byte [esp + 0x190], 1
mov eax, dword [esp + 0x164]
mov esi, 8
cmp dword [esp + 0x178], esi
jae 0x418a00
lea eax, [esp + 0x164]
push eax
push 2
call fcn.00463991
add esp, 8
cmp dword [esp + 0x178], esi
jb 0x418a24
mov edx, dword [esp + 0x164]
push edx
call fcn.0049acb7
add esp, 4
xor eax, eax
lea ecx, [esp + 0xac]
mov dword [esp + 0x178], 7
mov dword [esp + 0x174], 0
mov word [esp + 0x164], ax
mov dword [esp + 0x190], 0xffffffff
call fcn.00408480
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
test eax, eax
jne 0x418b35
cmp byte [ebp + 0x14], al
je 0x418b35
call ebx
lea ecx, [esp + 0x14]
push ecx
mov esi, eax
call fcn.00409d60
lea edx, [esp + 0x14]
push str.DeregisterEventSource___function_error_with_error_code:
push edx
mov dword [esp + 0x198], 2
call fcn.0040da40
add esp, 8
push esi
lea eax, [esp + 0x18]
push eax
call fcn.00413980
lea esi, [esp + 0x148]
lea eax, [esp + 0x14]
call fcn.00408e20
mov byte [esp + 0x190], 3
mov eax, dword [esp + 0x148]
mov esi, 8
cmp dword [esp + 0x15c], esi
jae 0x418add
lea eax, [esp + 0x148]
push eax
push 2
call fcn.00463991
add esp, 8
cmp dword [esp + 0x15c], esi
jb 0x418b01
mov ecx, dword [esp + 0x148]
push ecx
call fcn.0049acb7
add esp, 4
xor edx, edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x15c], 7
mov dword [esp + 0x158], 0
mov word [esp + 0x148], dx
mov dword [esp + 0x190], 0xffffffff
call fcn.00408480
mov ecx, dword [esp + 0x188]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x170]
xor ecx, esp
call fcn.0049ab39
mov esp, ebp
pop ebp
ret
Function at 0x41aba0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x56833c]
push ebx
mov ebx, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41abdc
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x41abdc
mov eax, dword [ecx]
test eax, eax
je 0x41abdc
mov dword [ecx], 0
mov cl, byte [eax]
movzx edx, cl
cmp edx, ebx
jae 0x41abfb
push eax
call fcn.0049acb7
add esp, 4
lea eax, [ebx + 1]
push eax
call fcn.0049ad6c
add esp, 4
cmp ebx, 0xff
ja 0x41abf9
movzx ecx, bl
mov byte [eax + ebx], cl
pop ebx
pop ebp
ret
xor ecx, ecx
mov byte [eax + ebx], cl
pop ebx
pop ebp
ret

Function at 0x41afa0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push ebx
push edi
mov edi, eax
xor ebx, ebx
cmp edi, 0xffffffff
je 0x41b0a0
cmp byte [ebp + 0xc], bl
je 0x41b009
mov ebx, dword [ebp + 8]
test byte [ebx], 8
je 0x41b009
xor eax, eax
mov dword [esp + 0xc], eax
call fcn.004b8d00
or byte [ebx], 8
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea edx, [esp + 0x10]
push edx
push 0x80
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
call fcn.004b8d00
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x41b009
call fcn.004b8d00
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.004b8d00
mov dword [esp + 0xc], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
test ebx, ebx
je 0x41b0a0
call fcn.004b8d00
cmp dword [esi + 4], eax
jne 0x41b048
cmp dword [esi], 0x2733
je 0x41b05a
call fcn.004b8d00
cmp dword [esi + 4], eax
jne 0x41b09c
cmp dword [esi], 0x4d5
jne 0x41b09c
lea ecx, [esp + 0xc]
push ecx
push 0x8004667e
push edi
mov dword [esp + 0x18], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp + 8]
and byte [eax], 0xfc
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.004b8d00
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], edi
test ebx, ebx
jne 0x41b0ac
xor edi, edi
call fcn.004b8d00
mov dword [esi], edi
mov dword [esi + 4], eax
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41b140
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ecb28
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5564b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
xor bl, bl
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
add esi, 0x38
lea edi, [eax + 4]
mov edi, edi
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.0041c780
test al, al
jne 0x41b19a
test bl, bl
je 0x41b19c
mov bl, 1
add esi, 0x24
dec edi
jne 0x41b180
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x14]
lea edx, [ebp - 0x18]
push edx
call fcn.00407030
test bl, bl
je 0x41b21a
lea ecx, [ebp + 0x13]
mov byte [ebp + 0x13], 0
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], 1
call fcn.004b8d00
mov edx, dword [ebp + 8]
mov esi, dword [edx + 0x34]
xor ebx, ebx
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
push ebx
push ebx
lea eax, [ebp + 8]
push eax
push 1
lea ecx, [ebp - 0x20]
push ecx
push esi
mov dword [ebp + 8], ebx
call dword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call fcn.004b8d00
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x41b20a
cmp eax, 0x4d2
jne 0x41b20f
call fcn.004b8d00
cmp esi, ebx
jne 0x41b21c
call fcn.004b8d00
jmp 0x41b21c
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x18]
mov edi, esi
cmp esi, ebx
je 0x41b253
lea eax, [esi + 0x14]
mov esi, dword [eax]
mov dword [eax], ebx
mov dword [ebp - 0x20], ebx
call fcn.004b8d00
push ebx
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x18]
push edi
push ebx
call eax
add esp, 0x10
mov edi, esi
cmp esi, ebx
jne 0x41b22c
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

Function at 0x41b5c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, eax
mov eax, dword [ebx + 4]
push edi
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp byte [ebp + 0x1c], 0
push 0
je 0x41b5f3
mov eax, dword [ebx + 4]
push 0
call fcn.0041af00
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
cmp eax, 0xffffffff
jne 0x41b612
mov eax, dword [ebx + 4]
push 0x2719
call fcn.0041af00
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
mov edx, dword [ebp + 0x18]
push esi
push edx
mov edx, dword [ebp + 0x14]
lea ecx, [ebp + 0x1c]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
push ecx
push eax
mov dword [ebp + 0x1c], 0
call dword [sym.imp.WS2_32.dll_WSASend]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
jne 0x41b645
mov eax, 0x274d
test edi, edi
je 0x41b665
cmp eax, 0x3e5
je 0x41b665
mov edx, dword [ebp + 0x1c]
push edx
push eax
mov eax, dword [ebx + 4]
call fcn.0041af00
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
mov eax, dword [ebx + 4]
mov edi, esi
call fcn.0041ae90
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
Function at 0x41b680
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, eax
mov eax, dword [ebx + 4]
push edi
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp byte [ebp + 0x18], 0
je 0x41b6b1
mov eax, dword [ebx + 4]
push 0
push 0
call fcn.0041af00
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
cmp eax, 0xffffffff
jne 0x41b6d1
mov eax, dword [ebx + 4]
push 0
push 0x2719
call fcn.0041af00
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
xor ecx, ecx
push ecx
push esi
mov dword [ebp + 0x18], ecx
mov dword [ebp + 8], ecx
lea edx, [ebp + 8]
push edx
mov edx, dword [ebp + 0x14]
lea ecx, [ebp + 0x18]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
push ecx
push eax
call dword [sym.imp.WS2_32.dll_WSARecv]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x41b706
mov eax, 0x2746
jmp 0x41b712
cmp eax, 0x4d2
jne 0x41b712
mov eax, 0x274d
test edi, edi
je 0x41b731
cmp eax, 0x3e5
je 0x41b731
mov edx, dword [ebp + 0x18]
push edx
push eax
mov eax, dword [ebx + 4]
call fcn.0041af00
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
mov eax, dword [ebx + 4]
mov edi, esi
call fcn.0041ae90
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x41b9e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef9a8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5564b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 4]
lea esi, [ebx + 8]
mov dword [ebp - 0x10], esi
call fcn.0041dc50
mov dword [esi], eax
add esi, 4
xor edi, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x1c], 2
mov byte [esi + 0x20], 0
xor eax, eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x24], 2
mov dword [esi + 0x28], edi
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
add eax, 0x14
push eax
call fcn.0041b3d0
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebx + 0x4c], ecx
mov eax, dword [eax + 4]
mov dword [ebx + 0x50], eax
cmp eax, edi
je 0x41ba87
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov dword [ebx + 0x1054], ecx
mov eax, dword [eax + 4]
mov dword [ebx + 0x1058], eax
cmp eax, edi
je 0x41baab
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
push 1
mov byte [ebp - 4], 4
call fcn.0049ad6c
add esp, 4
cmp eax, edi
je 0x41bac2
mov byte [eax], 0
mov edi, eax
lea eax, [ebx + 0x105c]
push eax
call fcn.0041cb20
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41bc90
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f3d18
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5564b0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
sub esp, 8
mov esi, esp
mov ebx, 0x41be70
mov dword [esp + 0x1c], esp
call fcn.0041c840
mov edx, dword [0x5660c0]
xor eax, eax
push eax
mov eax, dword [0x5660c4]
movzx ecx, byte [eax]
movzx eax, byte [edx]
push ebx
push ecx
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.0041cc60
add esp, 0x1c
mov dword [esp + 0x38], 0
lea ecx, [edi + 0x54]
mov edx, 0x1000
push eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
mov ecx, dword [edi + 8]
lea edx, [esp + 0x18]
push edx
add edi, 0xc
push edi
push ecx
call fcn.0041d990
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41bd5c
mov esi, eax
add eax, 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x41bd5c
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x41bd5c
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41f810
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push 0xffffffffffffffff
push 0
lea edx, [ebp - 8]
push edx
push 2
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x56800c
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
test eax, eax
je 0x41f85d
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 4]
push edx
push method.boost::serialization::typeid_system::extended_type_info_typeid_arg.virtual_16
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov eax, dword [esi + 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esp, ebp
pop ebp
ret
Function at 0x41f880
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
push 0
push 0
push 1
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov dword [esi + 4], edi
test edi, edi
jne 0x41f8d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov dword [esp + 0x10], ebx
call fcn.004b8d00
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x41f8d7
lea eax, [esp + 0x10]
push eax
mov ecx, str.thread.entry_event
call fcn.00406e60
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, dword [ebp + 8]
mov dword [ebx + 8], eax
mov dword [esi + 8], eax
cmp dword [ebx + 8], 0
jne 0x41f929
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
mov ebx, eax
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov dword [esp + 0x10], ebx
call fcn.004b8d00
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x41f926
lea ecx, [esp + 0x10]
push ecx
mov ecx, str.thread.exit_event
call fcn.00406e60
mov ebx, dword [ebp + 8]
lea edx, [esp + 0xc]
push edx
push 0
push esi
push 0x41f9c0
push 0
push 0
mov dword [esp + 0x24], 0
call fcn.0049bced
add esp, 0x18
mov dword [ebx + 4], eax
test eax, eax
jne 0x41f9a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
test edi, edi
je 0x41f970
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x41f97e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x10], esi
call fcn.004b8d00
mov dword [esp + 0x14], eax
test esi, esi
je 0x41f9a2
lea eax, [esp + 0x10]
push eax
mov ecx, str.thread
call fcn.00406e60
test edi, edi
je 0x41f9b6
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4