joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413e50
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x61b000]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x641ee4], 0
je 0x413e76
mov eax, dword [0x641ee8]
jmp 0x413f57
mov dword [ebp - 4], 0
mov dword [ebp - 0x120], 0
push 0x110
push 0
lea eax, [ebp - 0x11c]
push eax
call fcn.00568440
add esp, 0xc
mov dword [ebp - 0x120], 0x114
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x413f48
mov byte [ebp - 0x12c], 0
mov byte [ebp - 0x12b], 0
mov byte [ebp - 0x12a], 0
mov byte [ebp - 0x129], 0
mov byte [ebp - 0x128], 0
mov byte [ebp - 0x127], 5
mov dword [ebp - 0x124], 0
lea edx, [ebp - 0x124]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [0x641ee8], eax
cmp dword [0x641ee8], 0
je 0x413f48
push 0x641ee8
mov ecx, dword [ebp - 0x124]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov edx, dword [ebp - 0x124]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [0x641ee4], 1
mov eax, dword [0x641ee8]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00560c61
mov esp, ebp
pop ebp
ret

Function at 0x4140e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1694
call fcn.0056b140
mov eax, dword [0x61b000]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x23c], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0
jne 0x414120
xor eax, eax
jmp 0x41421f
mov dword [ebp - 0x238], 0x22c
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x240]
push ecx
call sub.KERNEL32.dll_Process32FirstW
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x214]
push eax
call fcn.00492060
add esp, 8
test eax, eax
jne 0x4141e8
mov ecx, dword [ebp - 0x230]
mov dword [ebp - 0x23c], ecx
cmp dword [ebp + 0xc], 0
je 0x4141e6
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4141e6
xor eax, eax
mov word [ebp - 0x1690], ax
push 0x144e
push 0
lea ecx, [ebp - 0x168e]
push ecx
call fcn.00568440
add esp, 0xc
push 0x1450
lea edx, [ebp - 0x1690]
push edx
mov eax, dword [ebp - 0x23c]
push eax
call fcn.00413f80
add esp, 0xc
mov dword [ebp - 0x1694], eax
cmp dword [ebp - 0x1694], 0
je 0x4141da
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x1690]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
je 0x4141da
jmp 0x414203
mov dword [ebp - 0x23c], 0
jmp 0x4141e8
jmp 0x414203
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x240]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41413d
cmp dword [ebp - 0x240], 0
je 0x414219
mov edx, dword [ebp - 0x240]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00560c61
mov esp, ebp
pop ebp
ret
Function at 0x414230
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
jmp 0x414256
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xa
jge 0x4142ae
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x414282
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
jmp 0x414297
push 0x5fc290
push 0x5fc294
call fcn.004140e0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4142a1
jmp 0x4142ae
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41424d
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x414350
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
push 1
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41438c
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x414382
mov eax, 1
jmp 0x41438e
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x415860
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b7e0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x61b000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x1c], 0x400
lea eax, [ebp - 0x18]
push eax
push 1
push 0
lea ecx, [ebp + 0xc]
call fcn.00406190
push eax
call fcn.00415790
add esp, 4
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x41596f
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0x44]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0
lea ecx, [ebp + 0x28]
call fcn.00406190
push eax
call fcn.00415790
add esp, 4
push eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x41593f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 0x44]
mov ecx, dword [eax]
push ecx
sub esp, 0x1c
mov ecx, 7
lea esi, [ebp + 0x28]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
sub esp, 0x1c
mov ecx, 7
lea esi, [ebp + 0xc]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
push str.GetReg_:_s__s_error__value:_i__error_code:_i_n
push 0x5fe7a4
call fcn.0040c230
add esp, 0x48
jmp 0x41596d
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x21], 1
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004060d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x28]
call fcn.004060d0
mov al, byte [ebp - 0x21]
jmp 0x4159bc
jmp 0x415990
sub esp, 0x1c
mov ecx, 7
lea esi, [ebp + 0xc]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
push str.open_reg_error_:_s_n
push str.GetDwordReg
call fcn.0040c230
add esp, 0x24
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x22], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004060d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x28]
call fcn.004060d0
mov al, byte [ebp - 0x22]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x415f10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x61b000]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00402270
mov dword [ebp - 0x6c], eax
push 0x44
push 0
lea eax, [ebp - 0x68]
push eax
call fcn.00568440
add esp, 0xc
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x3c], 1
xor ecx, ecx
mov word [ebp - 0x38], cx
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edx
lea ecx, [ebp + 8]
call fcn.00406190
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
jne 0x415f77
mov dword [ebp - 0x7c], 0
jmp 0x415fca
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x3fffffff
jle 0x415f99
mov dword [ebp - 0x80], 0
jmp 0x415fc4
mov eax, dword [ebp - 0x18]
shl eax, 1
call fcn.00570840
mov dword [ebp - 0x84], esp
mov ecx, dword [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0x84]
push ecx
call fcn.00402280
mov dword [ebp - 0x80], eax
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x7c], edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x68]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x7c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
je 0x41601b
movzx eax, byte [ebp + 0x24]
test eax, eax
je 0x41601b
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x78], ecx
lea ecx, [ebp + 8]
call fcn.004060d0
mov eax, dword [ebp - 0x78]
lea esp, [ebp - 0x84]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00560c61
mov esp, ebp
pop ebp
ret
Function at 0x416350
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x589771
mov eax, dword fs:[0]
push eax
sub esp, 0x30c
mov eax, dword [0x61b000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x310], 0
lea ecx, [ebp - 0x25c]
call fcn.00419110
mov dword [ebp - 4], 0
mov dword [ebp - 0x244], 0x22c
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x260], eax
cmp dword [ebp - 0x260], 0xffffffff
jne 0x4163f1
lea eax, [ebp - 0x25c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00419180
mov ecx, dword [ebp - 0x310]
or ecx, 1
mov dword [ebp - 0x310], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x25c]
call fcn.004062b0
mov eax, dword [ebp + 8]
jmp 0x416509
lea edx, [ebp - 0x244]
push edx
mov eax, dword [ebp - 0x260]
push eax
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 0x264], eax
cmp dword [ebp - 0x264], 0
je 0x4164c9
lea ecx, [ebp - 0x2ec]
call fcn.00420cd0
mov byte [ebp - 4], 1
call fcn.00402270
mov dword [ebp - 0x270], eax
mov ecx, dword [ebp - 0x23c]
mov dword [ebp - 0x27c], ecx
mov edx, dword [ebp - 0x23c]
push edx
lea eax, [ebp - 0x30c]
push eax
call fcn.00416040
add esp, 8
mov dword [ebp - 0x314], eax
mov ecx, dword [ebp - 0x314]
mov dword [ebp - 0x318], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x318]
push edx
lea ecx, [ebp - 0x2d0]
call fcn.004060f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30c]
call fcn.004060d0
lea eax, [ebp - 0x2ec]
push eax
lea ecx, [ebp - 0x25c]
call fcn.00419280
lea ecx, [ebp - 0x244]
push ecx
mov edx, dword [ebp - 0x260]
push edx
call sub.KERNEL32.dll_Process32NextW
mov dword [ebp - 0x264], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2ec]
call fcn.00408870
jmp 0x41640a
mov eax, dword [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x25c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00419180
mov edx, dword [ebp - 0x310]
or edx, 1
mov dword [ebp - 0x310], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x25c]
call fcn.004062b0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00560c61
mov esp, ebp
pop ebp
ret

Function at 0x418210
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push eax
push 0x20219
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x418241
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x418287
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 0x800
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
je 0x418282
xor eax, eax
jmp 0x418287
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x418290
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4182cf
xor eax, eax
jmp 0x418318
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
mov edx, dword [ebp + 0x14]
push edx
push 1
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x418309
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x418318
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4184c0
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x61b000]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x120], 0
push 0xff
push 0
lea eax, [ebp - 0x11f]
push eax
call fcn.00568440
add esp, 0xc
movsx ecx, byte [ebp + 8]
push ecx
push str.._c:
push 0xff
lea edx, [ebp - 0x120]
push edx
call fcn.005618f5
add esp, 0x10
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x418555
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFile___Error:__ld_n
call fcn.0056350e
add eax, 0x40
push eax
call fcn.00563ae5
add esp, 0xc
or eax, 0xffffffff
jmp 0x4185b6
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0xc
lea edx, [ebp - 0x10]
push edx
push 0
push 0
push 0x2d1080
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4185a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.IOCTL_STORAGE_GET_DEVICE_NUMBER_Error:__ld_n
call fcn.0056350e
add eax, 0x40
push eax
call fcn.00563ae5
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x4185b6
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00560c61
mov esp, ebp
pop ebp
ret
Function at 0x418740
Capabilities:
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x589448
mov eax, dword fs:[0]
push eax
mov eax, 0x2884
call fcn.0056b140
mov eax, dword [0x61b000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
push 0x59aef6
mov ecx, dword [ebp + 0x24]
call fcn.00406110
xor eax, eax
mov dword [ebp - 0x2838], eax
mov dword [ebp - 0x2834], eax
mov dword [ebp - 0x2830], eax
mov dword [ebp - 0x2830], 1
push 0
lea ecx, [ebp - 0x2838]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x4187e0
mov dword [ebp - 0x2888], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00406270
mov eax, dword [ebp - 0x2888]
jmp 0x41893c
push 0x44
push 0
lea ecx, [ebp - 0x2884]
push ecx
call fcn.00568440
add esp, 0xc
mov dword [ebp - 0x2884], 0x44
lea edx, [ebp - 0x2884]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [ebp - 0x2858]
or eax, 0x100
mov dword [ebp - 0x2858], eax
xor ecx, ecx
mov word [ebp - 0x2854], cx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x2848], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2844], eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x2884]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [ebp + 8]
call fcn.00406290
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x41889a
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x288c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00406270
mov eax, dword [ebp - 0x288c]
jmp 0x41893c
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x282c], 0
push 0x27ff
push 0
lea eax, [ebp - 0x282b]
push eax
call fcn.00568440
add esp, 0xc
mov dword [ebp - 0x283c], 0
push 0
lea ecx, [ebp - 0x283c]
push ecx
push 0x2800
lea edx, [ebp - 0x282c]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4188ff
lea ecx, [ebp - 0x282c]
push ecx
mov ecx, dword [ebp + 0x24]
call fcn.00408050
jmp 0x4188cb
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2890], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00406270
mov eax, dword [ebp - 0x2890]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00560c61
mov esp, ebp
pop ebp
ret
Function at 0x42bf30
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0xffffffff
jne 0x42bf5a
push str.Err:_socket_handler_invalid__out__n
push 0x5f83bc
call fcn.0040c230
add esp, 8
xor eax, eax
jmp 0x42c05a
cmp dword [ebp + 8], 0
je 0x42bf66
cmp dword [ebp + 0xc], 0
ja 0x42bf7f
push str.Err:_Recv_buffer_invalid__out__n
push 0x5f8434
call fcn.0040c230
add esp, 8
xor eax, eax
jmp 0x42c05a
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x42c02c
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
je 0x42bfae
push str.Err:_Stop_work_flag_set__need_break__n
push 0x5f84b8
call fcn.0040c230
add esp, 8
jmp 0x42c02c
push 0
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x42bffd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274c
jne 0x42bfe2
jmp 0x42bf86
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Err:_socket_recv_err_d__break__n
push 0x5f8530
call fcn.0040c230
add esp, 0xc
jmp 0x42c02c
cmp dword [ebp - 8], 0
jne 0x42c01e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Err:_socket_may_closed__recv_ret_0__err_d__break__n
push 0x5f85cc
call fcn.0040c230
add esp, 0xc
jmp 0x42c02c
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
jmp 0x42bf86
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0xc]
je 0x42c055
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
push str.Err:_socket_recv_data_not_completely__out__n
push str.CSafeLogging::CTcpCommunicator::RecvNetCmdData
call fcn.0040c230
add esp, 8
xor eax, eax
jmp 0x42c05a
mov eax, 1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42c060
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
push 0
push 1
mov eax, dword [ebp - 0x10]
add eax, 0x58
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x42c097
push str.Tcp_connection_is_fixing__can_not_execute_send._n
push 0x5f86f4
call fcn.0040c230
add esp, 8
xor eax, eax
jmp 0x42c198
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
cmp dword [ecx], 0xffffffff
jne 0x42c0bd
push str.WAR:_socket_handler_invalid__break__n
push 0x5f8774
call fcn.0040c230
add esp, 8
jmp 0x42c186
cmp dword [ebp + 8], 0
je 0x42c0c9
cmp dword [ebp + 0xc], 0
ja 0x42c0e0
push str.Err:_Data_params_invalid__break__n
push 0x5f87f0
call fcn.0040c230
add esp, 8
jmp 0x42c186
mov dword [ebp - 8], 0
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0xc]
jae 0x42c15b
push 0
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x42c12f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WAR:_socket_send_err_d__break__n
push 0x5f8864
call fcn.0040c230
add esp, 0xc
jmp 0x42c15b
cmp dword [ebp - 0xc], 0
jne 0x42c150
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WAR:_socket_send_return_0__err_d__break__n
push 0x5f88f0
call fcn.0040c230
add esp, 0xc
jmp 0x42c15b
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
jmp 0x42c0e7
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0xc]
je 0x42c177
push str.WAR:_socket_send_data_not_completely__break__n
push str.CSafeLogging::CTcpCommunicator::SendReportData
call fcn.0040c230
add esp, 8
jmp 0x42c186
mov dword [ebp - 4], 1
xor eax, eax
jne 0x42c09e
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x58
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x42c450
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x30], ecx
cmp dword [ebp + 8], 0xffffffff
je 0x42c46b
cmp dword [ebp + 0xc], 0
je 0x42c46b
cmp dword [ebp + 0x10], 0
jne 0x42c484
push str.Err:_Socket_handle_or_params_invalid_out_
push 0x5f8c68
call fcn.0040c230
add esp, 8
xor eax, eax
jmp 0x42c563
mov dword [ebp - 0x14], 1
push 4
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x42c4cb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Err:_setsockopt_SO_KEEPALIVE__fail_code_d__out_
push 0x5f8d08
call fcn.0040c230
add esp, 0xc
xor eax, eax
jmp 0x42c563
mov dword [ebp - 0xc], 0
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], 0xc
mov dword [ebp - 0x2c], 0xc
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 1
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 8], edx
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0x98000004
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x42c55e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Err:_WSAIoctl_SIO_KEEPALIVE_VALS__fail_code_d__out_
push str.CSafeLogging::CTcpCommunicator::SetSocketTcpAlive
call fcn.0040c230
add esp, 0xc
xor eax, eax
jmp 0x42c563
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42cd00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58cb6d
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x61b000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x10], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.00406020
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00406020
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x4c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x50], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x54], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0x58
call fcn.0042e680
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x90
call fcn.0042ea30
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0xc8
call fcn.0042bc90
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x58
call fcn.0042e9c0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret