joyce8/EMBER2024-capa huggingface dataset:
Function at 0x503095
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x53d2e0]
jne 0x50309f
repz ret
jmp fcn.005096c1

Function at 0x509fd8
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x53d5e0]
je 0x509ff3
inc edi
cmp edi, 0x17
jb 0x509fe4
cmp edi, 0x17
jae 0x50a173
push ebp
push 3
call fcn.00510494
cmp eax, 1
pop ecx
je 0x50a13f
push 3
call fcn.00510494
test eax, eax
pop ecx
jne 0x50a027
cmp dword [0x53d420], 1
je 0x50a13f
cmp ebx, 0xfc
je 0x50a172
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x54cfe0
push ebp
call fcn.00509e6c
add esp, 0xc
test eax, eax
je 0x50a05d
push esi
push esi
push esi
push esi
push esi
call fcn.005052bb
add esp, 0x14
push 0x104
mov esi, 0x54cff9
push esi
push 0
mov byte [0x54d0fd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x50a0a1
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00509e6c
add esp, 0xc
test eax, eax
je 0x50a0a1
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.005052bb
add esp, 0x14
push esi
call fcn.00504d90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x50a0e6
push esi
call fcn.00504d90
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x54d2f4
push 0x544190
sub ecx, eax
push ecx
push eax
call fcn.0050efe8
add esp, 0x14
test eax, eax
je 0x50a0e6
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.005052bb
add esp, 0x14
jmp 0x50a0e8
xor esi, esi
push 0x53ea58
push ebx
push ebp
call fcn.0050ef77
add esp, 0xc
test eax, eax
je 0x50a108
push esi
push esi
push esi
push esi
push esi
call fcn.005052bb
add esp, 0x14
push dword [edi*8 + 0x53d5e4]
push ebx
push ebp
call fcn.0050ef77
add esp, 0xc
test eax, eax
je 0x50a12a
push esi
push esi
push esi
push esi
push esi
call fcn.005052bb
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.005102d7
add esp, 0xc
jmp 0x50a172
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x50a172
cmp ebp, 0xffffffff
je 0x50a172
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x53d5e4]
push dword [esi]
call fcn.00504d90
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x5102d7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0050989f
xor ebx, ebx
cmp dword [0x54d6c0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x5103ad
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x51048d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5452b0
push edi
call esi
cmp eax, ebx
je 0x51048d
push eax
call fcn.00509831
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x54d6c0], eax
call esi
push eax
call fcn.00509831
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x54d6c4], eax
call esi
push eax
call fcn.00509831
mov dword [0x54d6c8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.005055f0
test eax, eax
pop ecx
pop ecx
je 0x51037b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.005052bb
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x5103ad
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00509831
cmp eax, ebx
pop ecx
mov dword [0x54d6d0], eax
je 0x5103ad
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00509831
pop ecx
mov dword [0x54d6cc], eax
mov eax, dword [0x54d6cc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x510432
cmp dword [0x54d6d0], ecx
je 0x510432
push eax
call fcn.005098a8
push dword [0x54d6d0]
mov esi, eax
call fcn.005098a8
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x510432
cmp edi, ebx
je 0x510432
call esi
cmp eax, ebx
je 0x5103ff
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x5103ff
test byte [ebp - 0x18], 1
jne 0x510432
lea eax, [ebp - 0x10]
push eax
call fcn.00505627
test eax, eax
pop ecx
je 0x51041a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.005052bb
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x510429
or dword [ebp + 0x10], 0x200000
jmp 0x51046d
or dword [ebp + 0x10], 0x40000
jmp 0x51046d
mov eax, dword [0x54d6c4]
cmp eax, dword [ebp - 8]
je 0x51046d
push eax
call fcn.005098a8
cmp eax, ebx
pop ecx
je 0x51046d
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x51046d
mov eax, dword [0x54d6c8]
cmp eax, dword [ebp - 8]
je 0x51046d
push eax
call fcn.005098a8
cmp eax, ebx
pop ecx
je 0x51046d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x54d6c0]
call fcn.005098a8
cmp eax, ebx
pop ecx
je 0x51048d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x51048f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10078488
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x10078497
pop dword [ebp - 0x44]
mov eax, 0xa9aa6712
add eax, 0x665d1d85
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x5c6ac
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x5254
mov esi, eax
mov edx, 0x100a0c00
add edx, dword [ebp - 0x44]
mov ebx, 0xe5a49723
xor dword [ebp - 0x1c], 0xaeaffda0
mov edi, dword [edx]
add edi, ebx
add dword [ebp - 4], edx
mov dword [esi], edi
add esi, 0x8dc878d8
add esi, 0x7237872c
add edx, 4
loop 0x100784df
add eax, 0x1bb862c2
sub eax, 0x1bb7269f
xor ebx, ebx
add ebx, eax
add eax, 0xf706d145
sub eax, 0xf706d140
mov ecx, 0x8f74087a
sub ecx, 0x7f74087a
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x403660
Capabilities:
Enumerate process modules

Disassembly:
push ecx
mov ecx, dword [0x49c02c]
lea eax, [esp]
push eax
push 0x9c40
push ecx
push edx
mov dword [esp + 0x10], 0
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x403690
mov eax, dword [esp]
cmp eax, 4
jb 0x403690
shr eax, 2
pop ecx
ret
xor eax, eax
pop ecx
ret
Function at 0x4043f0
Capabilities:
Enumerate services

Disassembly:
push 0xffffffffffffffff
push 0x427168
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
mov ebp, dword [esp + 0x44]
push esi
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov esi, 7
xor eax, eax
push edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], ax
push closesocket
push 0x485088
push ebx
mov dword [esp + 0x50], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
cmp edi, ebx
jne 0x40444d
mov dword [ebp + 0x18], esi
jmp 0x404526
push ebx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
push ebx
push 1
push 0x30
push ebx
push edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xea
jne 0x404518
jmp 0x404490
mov eax, dword [esp + 0x14]
push eax
call fcn.00416c66
add esp, 4
push ebx
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x1c]
mov esi, eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
push ecx
push esi
push 1
push 0x30
push ebx
push edi
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov ecx, dword [esp + 0x18]
test eax, eax
jne 0x404500
lea edx, [esp + 0x20]
push edx
push esi
push edi
call fcn.00404160
add esp, 0xc
push esi
call fcn.00416fed
add esp, 4
cmp dword [esp + 0x1c], ebx
je 0x404518
cmp dword [esp + 0x14], ebx
je 0x404518
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xea
je 0x404490
jmp 0x404518
lea eax, [esp + 0x20]
push eax
push esi
push edi
call fcn.00404160
add esp, 0xc
push esi
call fcn.00416fed
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp + 0x18], 7
xor ecx, ecx
mov dword [ebp + 0x14], ebx
push 0xffffffffffffffff
mov word [ebp + 4], cx
push ebx
lea eax, [esp + 0x28]
mov ecx, ebp
call fcn.00413bd0
cmp dword [esp + 0x38], 8
jb 0x404551
mov edx, dword [esp + 0x24]
push edx
call fcn.00416c71
add esp, 4
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
mov eax, ebp
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x38
ret
Function at 0x4048b0
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
push 0x4e20
call fcn.00416c66
mov esi, eax
push ebp
push str._s_tmp
mov edx, esi
mov dword [esp + 0x40], esi
call fcn.004138c0
add esp, 0xc
xor ebx, ebx
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
test eax, eax
je 0x4048ec
mov ebp, esi
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4048f1
sub eax, edx
sar eax, 1
lea edi, [eax + 4]
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00416c66
mov esi, eax
lea eax, [edi + edi]
push eax
push ebx
push esi
call fcn.00418830
mov edx, esi
add esp, 0x10
mov eax, ebp
sub edx, ebp
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x404931
lea edx, [esp + 0x10]
mov ecx, 0x614
push edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ebx
mov word [esp + 0x24], cx
mov dword [esp + 0x26], ebx
mov dword [esp + 0x2a], ebx
mov dword [esp + 0x2e], ebx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
push esi
mov edi, eax
call fcn.00416fed
mov eax, dword [esp + 0x38]
push eax
call fcn.00416fed
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret

Function at 0x4049e0
Capabilities:
Delete file

Disassembly:
sub esp, 0x14
push esi
call fcn.00408050
add esp, 4
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 1
push str.D:PAI_D_OICINP_CCDCLCSWRPWPDTLOCRSDRCWDWO___WD_
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
je 0x404a73
mov edx, dword [esp]
push 0
push 7
push 2
lea eax, [esp + 0x14]
push eax
push 3
push 0xc0000000
push esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], 0xc
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
je 0x404a59
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [esp]
push ecx
push 0xa0000004
push esi
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.DLL_LocalFree]
add esp, 0x14
ret
Function at 0x404a80
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x427168
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
push 0x4e20
call fcn.00416c66
add esp, 4
mov edi, eax
call fcn.00401030
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
jmp 0x404ac0
mov eax, dword [ebx + 0x495e70]
push 0x2710
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
test eax, eax
je 0x404b01
cmp word [edi], 0x25
je 0x404c0e
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404afa
test al, 0x10
je 0x404afa
push edi
call fcn.004048b0
add esp, 4
mov esi, edi
call fcn.004049e0
cmp dword [esp + 0x10], ebp
je 0x404c0e
mov ecx, dword [ebx + 0x495e70]
push 0x488878
push ecx
call fcn.0041771b
add esp, 8
test eax, eax
je 0x404c0e
mov eax, dword [ebx + 0x495e70]
xor edx, edx
mov ecx, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebp
mov word [esp + 0x18], dx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bp
jne 0x404b45
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x18]
call fcn.00413f30
mov eax, esi
push eax
mov dword [esp + 0x3c], ebp
call fcn.0040a800
mov eax, dword [esp + 0x1c]
mov esi, 8
add esp, 4
cmp dword [esp + 0x2c], esi
jae 0x404b80
lea eax, [esp + 0x18]
push 0x2710
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
test eax, eax
je 0x404be0
cmp word [edi], 0x25
jne 0x404bbb
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x2c], esi
jb 0x404bb2
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00416c71
add esp, 4
xor edx, edx
mov word [esp + 0x18], dx
jmp 0x404c02
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404bd4
test al, 0x10
je 0x404bd4
push edi
call fcn.004048b0
add esp, 4
mov esi, edi
call fcn.004049e0
mov esi, 8
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x2c], esi
jb 0x404bfb
mov eax, dword [esp + 0x18]
push eax
call fcn.00416c71
add esp, 4
xor ecx, ecx
mov word [esp + 0x18], cx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], 7
add ebx, 4
cmp ebx, 0xca4
jb 0x404ac0
push edi
call fcn.00416fed
mov ecx, dword [esp + 0x34]
add esp, 4
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2c
ret
Function at 0x407f70
Capabilities:
Create process on windows
Terminate process

Disassembly:
sub esp, 0x3c
push 0xf003f
push str.ServicesActive
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
jne 0x407ff3
push esi
push 0x800
call fcn.00416c66
add esp, 4
push 0x400
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push 0x3c
lea eax, [esp + 8]
push 0
push eax
call fcn.00418830
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0x800440
mov dword [esp + 0x14], str.runas
mov dword [esp + 0x18], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0x1388
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 0x3c
ret

Function at 0x408050
Capabilities:
Get user security identifier

Disassembly:
sub esp, 0x10
push ebp
mov ebp, dword [esp + 0x18]
push esi
lea eax, [esp + 0xc]
push eax
xor esi, esi
push esi
push esi
push 1
push ebp
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
mov eax, dword [esp + 0xc]
cmp eax, esi
je 0x408160
push edi
push eax
call fcn.0041712b
add esp, 4
mov edi, eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x4080a4
push edi
call fcn.00417667
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0x10
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0x4985a8
lea eax, [esp + 0x1c]
push eax
push esi
push 0x49a5a8
push esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], 0x1000
call ebx
mov eax, dword [esp + 0x10]
cmp eax, esi
jne 0x4080ed
push edi
call fcn.00417667
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x10
ret
push eax
call fcn.0041712b
add esp, 4
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0x4985a8
mov esi, eax
lea eax, [esp + 0x1c]
push eax
push esi
push 0x49a5a8
push 0
call ebx
test eax, eax
je 0x40815e
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorOwner]
test eax, eax
jne 0x40813f
push esi
call fcn.00417667
push edi
call fcn.00417667
add esp, 8
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x10
ret
push edi
push 1
push ebp
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
push esi
call fcn.00417667
push edi
call fcn.00417667
push ebp
call fcn.00408000
add esp, 0xc
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x10
ret
Function at 0x409830
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x42722b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [esp + 0x1c]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov edi, dword [eax + 4]
call fcn.0040af40
mov dword [ebp], eax
lea esi, [ebp + 4]
xor ebx, ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x1c], 2
mov byte [esi + 0x20], bl
xor eax, eax
mov dword [esi + 0x24], 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 ecx, 2
xor edx, edx
mov word [esi + 0x24], cx
mov word [esi + 0x26], dx
mov dword [esi + 0x28], ebx
mov dword [esp + 0x20], ebx
mov edi, dword [ebp]
lea eax, [esi + 8]
add edi, 0x14
mov dword [esi], 0xffffffff
mov byte [esi + 4], bl
call fcn.00412670
lea eax, [edi + 0x10]
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [edi + 0x28]
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ebx
mov eax, dword [edi + 0x28]
cmp eax, ebx
je 0x4098d6
mov dword [eax + 0x18], esi
mov ecx, dword [esp + 0x10]
push ecx
mov dword [edi + 0x28], esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov eax, ebp
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x14
ret 8

Function at 0x40a6a0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x427168
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x30]
push ebx
xor ebx, ebx
xor ecx, ecx
mov word [esp + 0xc], cx
mov ecx, eax
push esi
mov dword [esp + 8], ebx
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], ebx
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x40a6e0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x10]
call fcn.00413f30
mov edx, dword [esp + 0x3c]
push ebx
push edx
or eax, 0xffffffff
mov dword [esp + 0x38], ebx
call fcn.00413910
xor ecx, ecx
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
push 0xffffffffffffffff
mov word [edi + 4], cx
push ebx
mov ecx, edi
call fcn.00413bd0
cmp dword [esp + 0x24], 8
pop esi
pop ebx
jb 0x40a73b
mov edx, dword [esp + 8]
push edx
call fcn.00416c71
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, edi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x40d040
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x427168
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x44]
xor eax, eax
push edx
mov edx, dword [esp + 0x50]
mov word [esp + 0xc], ax
mov eax, dword [esp + 0x4c]
push eax
push ecx
push edx
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
call fcn.0040d0e0
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
push edx
push eax
push ecx
lea edx, [esp + 0x10]
push edx
push esi
call fcn.0040c160
cmp dword [esp + 0x18], 8
jb 0x40d0cd
mov eax, dword [esp + 4]
push eax
call fcn.00416c71
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, esi
mov dword fs:[0], ecx
add esp, 0x28
ret 0x24

Function at 0x40e480
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42739c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebp
push esi
mov esi, ecx
xor ebp, ebp
mov dword [esi], vtable.boost::detail::thread_data_base.0
mov dword [esi + 4], ebp
push edi
mov dword [esp + 0x1c], esi
mov dword [esi + 8], ebp
lea eax, [esp + 0x1b]
push eax
lea edx, [esp + 0x1f]
mov dword [esp + 0x2c], ebp
lea ecx, [esi + 0x14]
push edx
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
call fcn.0040dbc0
push 4
mov byte [esp + 0x2c], 1
lea edi, [esi + 0x34]
call fcn.00416da8
add esp, 4
cmp eax, ebp
je 0x40e4e5
mov dword [eax], edi
jmp 0x40e4e7
xor eax, eax
mov dword [edi], eax
mov dword [edi + 0xc], ebp
mov dword [edi + 0x10], ebp
mov dword [edi + 0x14], ebp
push 4
mov byte [esp + 0x2c], 3
lea edi, [esi + 0x4c]
call fcn.00416da8
add esp, 4
cmp eax, ebp
je 0x40e50c
mov dword [eax], edi
jmp 0x40e50e
xor eax, eax
mov dword [edi], eax
mov dword [edi + 0xc], ebp
mov dword [edi + 0x10], ebp
mov dword [edi + 0x14], ebp
push ebp
push 1
mov byte [esp + 0x30], 5
call fcn.0040e3f0
mov ecx, dword [esp + 0x28]
add esp, 8
mov dword [esi + 0x64], eax
pop edi
mov byte [esi + 0x68], 1
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x20
ret

Function at 0x40ebc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
push ebx
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edx, dword [esp + 0x1c]
push 0
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call fcn.00420c80
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], edi
cmp eax, 0x40
jne 0x40ec20
mov edi, 0x2746
jmp 0x40ec2c
cmp eax, 0x4d2
jne 0x40ec36
mov edi, 0x274d
call fcn.00420c80
mov dword [esi + 4], eax
mov dword [esi], edi
test ebx, ebx
je 0x40ec43
or eax, 0xffffffff
pop edi
pop ebx
add esp, 8
ret
xor edi, edi
call fcn.00420c80
mov dword [esi], edi
pop edi
mov dword [esi + 4], eax
mov eax, dword [esp + 4]
pop ebx
add esp, 8
ret
Function at 0x40ec60
Capabilities:
Get socket status

Disassembly:
sub esp, 0x114
push ebx
push edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x40ec8a
mov edi, 0x2719
call fcn.00420c80
mov dword [esi + 4], eax
mov dword [esi], edi
or eax, 0xffffffff
pop edi
pop ebx
add esp, 0x114
ret
push 0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
inc edi
push edi
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call fcn.00420c80
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], edi
test ebx, ebx
je 0x40ecdb
jle 0x40ece7
xor edi, edi
call fcn.00420c80
mov dword [esi + 4], eax
mov dword [esi], edi
pop edi
mov eax, ebx
pop ebx
add esp, 0x114
ret

Function at 0x40edd0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x114
push ebx
push edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x40edfa
mov edi, 0x2719
call fcn.00420c80
mov dword [esi + 4], eax
mov dword [esi], edi
or eax, 0xffffffff
pop edi
pop ebx
add esp, 0x114
ret
push 0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
lea eax, [esp + 0x1c]
push eax
push 0
inc edi
push edi
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call fcn.00420c80
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], edi
test ebx, ebx
je 0x40ee4b
jle 0x40ee57
xor edi, edi
call fcn.00420c80
mov dword [esi + 4], eax
mov dword [esi], edi
pop edi
mov eax, ebx
pop ebx
add esp, 0x114
ret

Function at 0x40fc60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x426d18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00411c60
mov dword [esi], vtable.boost::gregorian::bad_day_of_month.0
mov dword [esp + 0x14], 0
test edi, edi
je 0x40fc9f
add edi, 0x28
jmp 0x40fca1
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
mov dword [esi + 0x2c], ecx
test ecx, ecx
je 0x40fcb9
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_day_of_month_.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_day_of_month_.0
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4