joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6dc12e00
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x6ddae8b8]
test esi, esi
jle 0x6dc12f10
mov edi, dword [0x6ddae8bc]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x6dc12e34
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x6dc12eb5
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x6dc12e20
mov dword [esp], eax
mov ebx, eax
call fcn.6dc13550
test eax, eax
mov edi, eax
je 0x6dc12f37
mov eax, dword [0x6ddae8bc]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.6dc13650
add eax, dword [edi + 0xc]
mov edx, dword [0x6ddae8bc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6dc12f17
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x6dc12eae
sub eax, 4
and eax, 0xfffffffb
jne 0x6dc12ec0
add dword [0x6ddae8b8], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x6ddae8bc]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x6dc12eae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6dc13b18
lea esi, [esi]
xor esi, esi
jmp 0x6dc12e3e
mov eax, dword [0x6ddae8bc]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.6dc13b18
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6dc13b18
mov esi, esi
lea edi, [edi]

Function at 0x6dc131d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6ddae8c8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6ddae8c0]
sub esp, 4
test ebx, ebx
je 0x6dc13225
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6dc1321e
test esi, esi
je 0x6dc1321e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6dc13200
mov dword [esp], 0x6ddae8c8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x6dc13b18
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.6dc13af0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.6dc13af0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp fcn.6dac13e0
Function at 0x401d19
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor ecx, ecx
push 8
mov edx, ecx
pop esi
mov eax, edx
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jne 0x401d21
mov dword [ecx*4 + 0x4777c0], edx
inc ecx
cmp ecx, 0x100
jb 0x401d1c
mov edx, 0x400
mov ecx, dword [edx + 0x4773c0]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x4777c0]
mov dword [edx + 0x4777c0], ecx
add edx, 4
cmp edx, 0x2000
jb 0x401d4b
mov dword [0x4777bc], 0x401d8e
call fcn.00405b11
test eax, eax
jne 0x401d8c
mov dword [0x4777bc], 0x401e23
pop esi
ret

Function at 0x401f8e
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov ebx, edx
mov ebp, ecx
mov esi, dword [edi]
and dword [edi], 0
test esi, esi
jne 0x401faa
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov ecx, 0x400000
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push 0
push eax
cmp esi, ecx
mov eax, esi
cmova eax, ecx
push eax
push ebx
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x401fea
test ecx, ecx
je 0x401fa3
mov ecx, 0x400000
test esi, esi
jne 0x401faf
jmp 0x401fa3
pop edi
pop esi
pop ebp
pop ebx
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x402093
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x84
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x9c]
push ebx
push esi
mov esi, dword [esp + 0x98]
xor ebx, ebx
push edi
mov edi, dword [esp + 0xa0]
push eax
push edx
mov edx, ecx
mov dword [esp + 0x24], esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x38], ebx
call fcn.00408083
pop ecx
pop ecx
test eax, eax
jne 0x4021f8
push ebp
mov ebp, dword [esp + 0xa8]
mov dword [esp + 0x3c], edi
mov edi, dword [esp + 0x98]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov ebx, dword [esp + 0x9c]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x70], 0x114
and dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x40000
test ebx, ebx
ja 0x40213d
jb 0x402139
cmp edi, 0x40000
jae 0x40213d
mov dword [esp + 0x10], edi
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [esi]
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4021e7
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], eax
mov edx, ebp
mov eax, dword [esp + 0x44]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x20]
call fcn.00407b51
mov ecx, dword [esp + 0x28]
add esp, 0x10
sub dword [esp + 0x10], ecx
mov esi, eax
sub edi, ecx
sbb ebx, 0
test esi, esi
jne 0x4021e7
cmp dword [esp + 0x1c], 1
je 0x4021da
cmp ebp, dword [esp + 0x44]
jne 0x4021b2
mov eax, edi
or eax, ebx
jne 0x4021b2
cmp dword [esp + 0x1c], 4
je 0x4021e7
test ecx, ecx
jne 0x4021c0
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x44]
je 0x4021e4
mov eax, dword [esp + 0x20]
push ecx
push eax
call dword [eax + 4]
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4021e7
mov esi, dword [esp + 0x20]
jmp 0x40211e
cmp ebp, dword [esp + 0x44]
jne 0x4021e4
or edi, ebx
je 0x4021e7
xor esi, esi
inc esi
push dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
push eax
call dword [eax + 4]
pop ecx
pop ecx
mov eax, esi
pop ebp
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00410199
add esp, 0x84
ret
Function at 0x405172
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x14], edx
mov edx, ebx
shl edx, 2
push edi
mov eax, dword [esi + 0x78]
xor edi, edi
mov dword [esp + 0x20], edx
mov ebp, dword [edx + eax]
mov eax, dword [esp + 0x30]
mov dword [eax], edi
mov eax, dword [esp + 0x34]
mov dword [eax], edi
cmp ebp, 0xffffffff
jne 0x4051ca
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
push dword [esi]
push eax
call dword [eax + 4]
mov eax, dword [esp + 0x2c]
pop ecx
pop ecx
mov dword [esi], edi
or dword [eax], ebp
mov eax, dword [esp + 0x2c]
mov dword [eax], edi
xor eax, eax
jmp 0x4052f1
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4051e4
mov eax, dword [esp + 0x24]
cmp dword [eax], ebp
je 0x40527a
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
movzx edx, byte [eax + ebp]
add edx, dword [ecx + ebp*4]
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + edx*8]
mov dword [esp + 0x20], ecx
cmp edi, dword [eax + edx*8 + 4]
jne 0x4052ee
mov eax, dword [esp + 0x24]
push dword [esp + 0x14]
mov dword [eax], ebp
mov eax, dword [esp + 0x3c]
push eax
call dword [eax + 4]
mov eax, dword [esp + 0x30]
pop ecx
pop ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax], edi
mov eax, dword [esp + 0x20]
mov dword [ecx], eax
test eax, eax
je 0x40524f
push eax
mov eax, dword [esp + 0x3c]
push eax
call dword [eax]
mov edi, eax
mov eax, dword [esp + 0x30]
pop ecx
pop ecx
mov dword [eax], edi
test edi, edi
jne 0x40524b
push 2
pop edi
jmp 0x4052ea
mov eax, dword [esp + 0x20]
push dword [esp + 0x3c]
mov edx, ebp
mov ecx, esi
push eax
push edi
push dword [esi + 0x44]
push dword [esi + 0x40]
push dword [esp + 0x2c]
call fcn.00402adb
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x4052ea
mov eax, ebx
shl eax, 2
mov dword [esp + 0x20], eax
mov ecx, dword [esi + 0x4c]
mov eax, dword [esi + 0x74]
mov eax, dword [eax + ebp*4]
mov ebp, dword [ecx + ebx*8]
sub ebp, dword [ecx + eax*8]
mov eax, dword [esp + 0x30]
mov dword [eax], ebp
mov eax, dword [ecx + ebx*8 + 8]
sub eax, dword [ecx + ebx*8]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x30], eax
mov dword [ecx], eax
add eax, ebp
mov ecx, dword [esp + 0x2c]
cmp eax, dword [ecx]
jbe 0x4052ae
push 0xb
jmp 0x4052f0
mov edx, dword [esi + 0x54]
test edx, edx
je 0x4052ea
mov ecx, ebx
mov eax, 0x80
and ecx, 7
shr ebx, 3
sar eax, cl
test byte [ebx + edx], al
je 0x4052ea
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov ecx, dword [eax]
add ecx, ebp
call fcn.00401d05
mov ecx, dword [esi + 0x58]
mov edx, dword [esp + 0x20]
push 3
pop esi
cmp eax, dword [edx + ecx]
cmovne edi, esi
mov eax, edi
jmp 0x4052f1
push 2
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x405736
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push ebp
push esi
and edx, 0xfffffffe
push edi
mov edi, ecx
add edx, 0xfffffffc
mov esi, edi
add edx, edi
mov ebx, esi
cmp esi, edx
ja 0x4057ab
movzx ecx, byte [esi + 1]
movzx eax, byte [esi + 3]
xor ecx, 8
add esi, 2
and eax, ecx
mov ebp, esi
cmp eax, 0xf8
jb 0x405746
movzx eax, byte [ebx]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 1]
and eax, 7
lea ecx, [eax + ecx*8]
movzx eax, byte [esi]
shl ecx, 8
add esi, 2
add ecx, eax
mov eax, esi
sub eax, edi
shr eax, 1
sub ecx, eax
mov eax, ecx
mov byte [ebp], cl
shr eax, 0xb
mov byte [ebx], al
mov eax, ecx
shr eax, 0x13
and al, 7
shr ecx, 8
or al, 0xf0
or cl, 0xf8
mov byte [esi - 3], al
mov byte [esi - 1], cl
jmp 0x405746
sub esi, edi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x405861
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ebp, ecx
xor ebx, ebx
mov dword [esp + 0xc], ebp
mov esi, dword [esi]
and esi, 7
cmp edx, 5
jae 0x405883
xor eax, eax
jmp 0x40598e
sub edx, 4
add edx, ebp
mov dword [esp + 0x10], edx
push edi
lea edi, [ebx + ebp]
jmp 0x40589b
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x40589f
inc edi
cmp edi, edx
jb 0x405892
mov ecx, edi
sub ecx, ebx
mov ebx, edi
sub ecx, ebp
sub ebx, ebp
cmp edi, edx
jae 0x40597b
cmp ecx, 2
jbe 0x40593b
xor esi, esi
movzx ebp, byte [edi + 4]
lea eax, [ebp + 1]
test al, 0xfe
jne 0x40596c
movzx eax, byte [edi + 3]
add ebx, 5
shl ebp, 8
or ebp, eax
movzx eax, byte [edi + 2]
shl ebp, 8
or ebp, eax
movzx eax, byte [edi + 1]
shl ebp, 8
or ebp, eax
sub ebp, ebx
mov edx, ebp
test esi, esi
je 0x405910
and esi, 6
mov eax, ebp
shl esi, 2
mov ecx, esi
shr eax, cl
inc eax
test al, 0xfe
jne 0x40590e
mov edx, 0x100
shl edx, cl
dec edx
xor edx, ebp
sub edx, ebx
xor esi, esi
mov ebp, dword [esp + 0x10]
mov eax, edx
shr eax, 8
mov byte [edi + 1], dl
mov byte [edi + 2], al
mov eax, edx
shr edx, 0x18
and dl, 1
shr eax, 0x10
neg dl
mov byte [edi + 3], al
mov byte [edi + 4], dl
mov edx, dword [esp + 0x14]
jmp 0x40588d
shr esi, cl
test esi, esi
je 0x4058bc
cmp esi, 4
ja 0x405961
cmp esi, 3
je 0x405961
mov eax, esi
shr eax, 1
movzx eax, byte [eax + edi + 1]
inc eax
test al, 0xfe
jne 0x4058bc
or esi, 8
shr esi, 1
inc ebx
jmp 0x40588d
mov ebp, dword [esp + 0x10]
or esi, 8
shr esi, 1
inc ebx
jmp 0x40588d
xor eax, eax
shr esi, cl
cmp ecx, 2
pop edi
cmova esi, eax
mov eax, dword [esp + 0x1c]
mov dword [eax], esi
mov eax, ebx
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x409716
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3004
call fcn.0042b760
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ecx
push ecx
mov edx, 0x1000
lea ecx, [ebp - 0x1004]
call fcn.00408ae8
pop ecx
pop ecx
lea ecx, [ebp - 0x1004]
call fcn.0040a42a
cmp dword [0x44bac0], 0
push ecx
lea ecx, [ebp - 0x1004]
jne 0x409777
lea edx, [ebp - 0x2004]
call fcn.00409e40
pop ecx
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x409790
lea edx, [ebp - 0x3004]
call fcn.00409d78
pop ecx
lea eax, [ebp - 0x3004]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x409799
or eax, eax
jmp 0x40979f
shr eax, 4
and eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410199
leave
ret
Function at 0x409ae8
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push edi
mov esi, str.kernel32.dll
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x409b3b
mov ecx, esi
call fcn.0040d227
mov edi, eax
test edi, edi
jne 0x409b3b
push str.module
push str.expr__s_:_assert_failed_n
push str.pl_kernel32_instance_init
push 0xa
push str.srcliblibpaloswindowsinterkernel32.c
push 0x432f04
push 3
push eax
call fcn.0040f171
add esp, 0x20
call fcn.00408ece
xor al, al
jmp 0x409cc9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlCaptureStackBackTrace
push edi
call esi
push 0x433798
push edi
mov dword [0x4775d8], eax
call esi
push str.GetQueuedCompletionStatusEx
push edi
mov dword [0x4775dc], eax
call esi
push str.InterlockedCompareExchange64
push edi
mov dword [0x4775e0], eax
call esi
push str.GetEnvironmentVariableW
push edi
mov dword [0x4775e4], eax
call esi
push 0x4337fc
push edi
mov dword [0x4775e8], eax
call esi
push str.SetDllDirectoryW
push edi
mov dword [0x4775ec], eax
call esi
push str.CreateProcessW
push edi
mov dword [0x4775f0], eax
call esi
push 0x433838
push edi
mov dword [0x4775f4], eax
call esi
push str.WaitForMultipleObjects
push edi
mov dword [0x4775f8], eax
call esi
push str.GetExitCodeProcess
push edi
mov dword [0x4775fc], eax
call esi
push 0x433878
push edi
mov dword [0x477600], eax
call esi
push str.SuspendThread
push edi
mov dword [0x477604], eax
call esi
push str.ResumeThread
push edi
mov dword [0x477608], eax
call esi
push 0x4338ac
push edi
mov dword [0x47760c], eax
call esi
push 0x4338c4
push edi
mov dword [0x477610], eax
call esi
push str.SetHandleInformation
push edi
mov dword [0x477614], eax
call esi
push str.SetFileCompletionNotificationModes
push edi
mov dword [0x477618], eax
call esi
push str.CreateSymbolicLinkW
push edi
mov dword [0x47761c], eax
call esi
push str.CreateJobObjectW
push edi
mov dword [0x477620], eax
call esi
mov dword [0x477624], eax
push str.TerminateJobObject
push edi
call esi
push str.AssignProcessToJobObject
push edi
mov dword [0x477628], eax
call esi
push str.SetInformationJobObject
push edi
mov dword [0x47762c], eax
call esi
push str.GetActiveProcessorCount
push edi
mov dword [0x477630], eax
call esi
push str.GetLogicalProcessorInformationEx
push edi
mov dword [0x477634], eax
call esi
push str.GetTickCount64
push edi
mov dword [0x477638], eax
call esi
push str.SetFileValidData
push edi
mov dword [0x47763c], eax
call esi
push 0x4339e8
push edi
mov dword [0x477640], eax
call esi
push 0x4339fc
push edi
mov dword [0x477644], eax
call esi
push 0x433a18
push edi
mov dword [0x477648], eax
call esi
mov dword [0x47764c], eax
mov al, 1
pop edi
pop esi
ret
Function at 0x40a8d2
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push edi
mov esi, str.ws2_32.dll
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x40a925
mov ecx, esi
call fcn.0040d227
mov edi, eax
test edi, edi
jne 0x40a925
push str.module
push str.expr__s_:_assert_failed_n
push str.pl_ws2_32_instance_init
push 0x10
push str.srcliblibpaloswindowsinterws2_32.c
push 0x432f04
push 3
push eax
call fcn.0040f171
add esp, 0x20
call fcn.00408ece
xor al, al
jmp 0x40aada
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSAStartup
push edi
call esi
push str.WSACleanup
push edi
mov dword [0x477698], eax
call esi
push str.WSASocketA
push edi
mov dword [0x47769c], eax
call esi
push str.WSAIoctl
push edi
mov dword [0x4776a0], eax
call esi
push str.WSAGetLastError
push edi
mov dword [0x4776a4], eax
call esi
push str.WSAEnumProtocolsW
push edi
mov dword [0x4776a8], eax
call esi
push str.WSASend
push edi
mov dword [0x4776ac], eax
call esi
push str.WSARecv
push edi
mov dword [0x4776b0], eax
call esi
push str.WSASendTo
push edi
mov dword [0x4776b4], eax
call esi
push str.WSARecvFrom
push edi
mov dword [0x4776b8], eax
call esi
push str.bind
push edi
mov dword [0x4776bc], eax
call esi
push str.send
push edi
mov dword [0x4776c0], eax
call esi
push str.recv
push edi
mov dword [0x4776c4], eax
call esi
push str.sendto
push edi
mov dword [0x4776c8], eax
call esi
push str.recvfrom
push edi
mov dword [0x4776cc], eax
call esi
push str.accept
push edi
mov dword [0x4776d0], eax
call esi
push str.listen
push edi
mov dword [0x4776d4], eax
call esi
push str.select
push edi
mov dword [0x4776d8], eax
call esi
push str.connect
push edi
mov dword [0x4776dc], eax
call esi
push str.shutdown
push edi
mov dword [0x4776e0], eax
call esi
mov dword [0x4776e4], eax
push str.getsockname
push edi
call esi
push str.getpeername
push edi
mov dword [0x4776e8], eax
call esi
push str.getsockopt
push edi
mov dword [0x4776ec], eax
call esi
push str.setsockopt
push edi
mov dword [0x4776f0], eax
call esi
push str.ioctlsocket
push edi
mov dword [0x4776f4], eax
call esi
push str.closesocket
push edi
mov dword [0x4776f8], eax
call esi
push str.gethostname
push edi
mov dword [0x4776fc], eax
call esi
push str.getaddrinfo
push edi
mov dword [0x477700], eax
call esi
push str.freeaddrinfo
push edi
mov dword [0x477704], eax
call esi
push str.getnameinfo
push edi
mov dword [0x477708], eax
call esi
push str.gethostbyname
push edi
mov dword [0x47770c], eax
call esi
push str.gethostbyaddr
push edi
mov dword [0x477710], eax
call esi
push str.__WSAFDIsSet
push edi
mov dword [0x477714], eax
call esi
mov dword [0x477718], eax
mov al, 1
pop edi
pop esi
ret
Function at 0x40b274
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x1010
call fcn.0042b760
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x100c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x101c]
mov ebx, edx
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], ebx
cmp byte [0x44e51e], 0
mov esi, ecx
jne 0x40b2b6
call fcn.004097ab
mov byte [0x44e51e], 1
push 0x4332b8
push esi
call fcn.00414c40
pop ecx
pop ecx
test eax, eax
jne 0x40b2cf
push 9
pop edi
jmp 0x40b40e
cmp byte [esi], 0x5c
jne 0x40b319
mov al, byte [esi + 1]
test al, al
je 0x40b319
cmp byte [esi + 2], 0
jne 0x40b319
movsx eax, al
xor edi, edi
push eax
push 0x434064
push 0x1000
push ebp
inc edi
call fcn.00408bf1
movsx eax, byte [esi + 1]
push eax
push str.._c:
lea eax, [esp + 0x30]
push 0x1000
push eax
call fcn.00408bf1
add esp, 0x20
jmp 0x40b40e
push 4
push str.._
push esi
call fcn.004119e0
add esp, 0xc
test eax, eax
jne 0x40b37c
mov al, byte [esi + 4]
test al, al
je 0x40b368
cmp byte [esi + 5], 0x3a
jne 0x40b368
mov bl, byte [esi + 6]
movsx eax, al
push eax
push 0x434064
push 0x1000
push ebp
call fcn.00408bf1
add esp, 0x10
xor edi, edi
inc edi
test bl, bl
mov ebx, dword [esp + 0x14]
push 8
pop eax
cmovne edi, eax
jmp 0x40b3fc
push 0x11
push str..PhysicalDrive
push esi
call fcn.004119e0
add esp, 0xc
push 2
jmp 0x40b3f6
mov al, byte [esi]
test al, al
je 0x40b3d2
cmp byte [esi + 1], 0x3a
jne 0x40b3d2
cmp byte [esi + 2], 0
movsx eax, al
push eax
push 0x434064
push 0x1000
push ebp
jne 0x40b3af
xor edi, edi
inc edi
call fcn.00408bf1
movsx esi, byte [esi]
mov eax, str.._c:
jmp 0x40b3b9
call fcn.00408bf1
mov eax, str.__s
add esp, 0x10
push esi
push eax
lea eax, [esp + 0x20]
push 0x1000
push eax
call fcn.00408bf1
add esp, 0x10
jmp 0x40b40e
mov ecx, esi
call fcn.00408f34
test al, al
je 0x40b3fc
push 0x5c
push str..GLOBALROOTDeviceHarddiskVolumeShadowCopy
call fcn.004176c0
pop ecx
add eax, esi
push eax
call fcn.004115d0
pop ecx
pop ecx
push 3
test eax, eax
pop ecx
cmove edi, ecx
push ecx
push esi
mov edx, 0x1000
lea ecx, [esp + 0x20]
call fcn.00408ae8
pop ecx
pop ecx
push 0x2000
mov edx, ebx
lea ecx, [esp + 0x1c]
call fcn.004081dc
pop ecx
test edi, edi
jne 0x40b459
cmp dword [0x44bac0], edi
jne 0x40b445
push 0x1000
mov edx, ebp
lea ecx, [esp + 0x1c]
call fcn.0040855a
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x40b44c
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b459
test al, 0x10
push 8
pop eax
cmovne edi, eax
mov ecx, dword [esp + 0x101c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00410199
add esp, 0x1010
ret
Function at 0x40bd45
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ecx
and dword [esp + 4], 0
or dword [esp], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x40becb
cmp dword [ebp + 0xc], 0
je 0x40becb
mov eax, dword [ebp + 0x14]
lea ebx, [esi + 0x1c]
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0x18]
push ebx
mov dword [esi + 0x28], eax
lea eax, [esp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40bec5
cmp byte [esi + 0x4c], al
jne 0x40befa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40bec1
push dword [esi + 0x30]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40be1f
push eax
lea eax, [esp + 0xc]
push eax
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x40bddd
mov eax, dword [esp + 8]
jmp 0x40befd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x40bec1
push dword [ebp + 0x10]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push str.GetOverlappedResult_off_lld_size_u_error:
push str.os_local_file_pread
push 0x253
push str.e:work_netbar_smcli_srcliblibpaloswindows_os_file2.h
push 0x432f04
push 0x108
push 0
call fcn.0040f171
add esp, 0x28
jmp 0x40be8e
cmp eax, 0x102
jne 0x40be4e
push 0x45d
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.WaitForSingleObject_retWAIT_TIMEOUT_n
push str.os_local_file_pread
push 0x259
push str.e:work_netbar_smcli_srcliblibpaloswindows_os_file2.h
push 0x432f04
push 8
jmp 0x40be84
cmp eax, 0x80
jne 0x40be66
push str.WaitForSingleObject_retWAIT_ABANDONED_n
push str.os_local_file_pread
push 0x25d
jmp 0x40be40
push str.WaitForSingleObject_error:
push str.os_local_file_pread
push 0x261
push str.e:work_netbar_smcli_srcliblibpaloswindows_os_file2.h
push 0x432f04
push 0x108
push 0
call fcn.0040f171
add esp, 0x1c
push dword [ebp + 0x10]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push str.ReadFile_offset_lld_size_d_error:
push str.os_local_file_pread
push 0x268
push str.e:work_netbar_smcli_srcliblibpaloswindows_os_file2.h
push 0x432f04
push 0x108
push 0
call fcn.0040f171
add esp, 0x28
jmp 0x40befa
xor eax, eax
jmp 0x40befd
mov eax, dword [esp + 0xc]
jmp 0x40befd
push str.file__data
push str.expr__s_:_assert_failed_n
push str.os_local_file_pread
push 0x244
push str.e:work_netbar_smcli_srcliblibpaloswindows_os_file2.h
push 0x432f04
push 3
push 0
call fcn.0040f171
add esp, 0x20
call fcn.00408ece
or eax, 0xffffffff
pop esi
pop ebx
mov esp, ebp
pop ebp
ret