joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e1ca0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x55de40
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b4a28]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x5c4030]
test eax, eax
jne 0x4e1cd4
xor esi, esi
jmp 0x4e1cdd
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x30], 0
test esi, esi
je 0x4e1d27
cmp dword [esi + 0x14], 0
jne 0x4e1d69
cmp dword [esi + 0x10], 0
jne 0x4e1d70
push 0x4dfae0
push 0x5c4028
call fcn.004e0b60
mov eax, dword [0x5c4030]
add esp, 8
test eax, eax
je 0x4e1e1d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x30], 0xffffffff
test esi, esi
je 0x4e1d55
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4e1d55
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
cmp dword [esi + 0x10], 0
je 0x4e1db0
nop
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x4e1d9e
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x4e1d70
cmp dword [esi + 0x14], 0
je 0x4e1cf9
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4e1dd5
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x4e1e06
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4e1e06
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4e1e06
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x4e1dba
jmp 0x4e1cf3
lea ecx, [esp + 0x18]
call fcn.004b388d
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], vtable.boost::thread_resource_error.0
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x34], 1
call fcn.0042b4fd
int3
Function at 0x4e1f10
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x55de98
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5b4a28]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x4e1e50
push 0
push 0
call fcn.004bd48a
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x4e1f7b
lea ecx, [esp + 0x10]
call fcn.004b388d
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], vtable.boost::thread_resource_error.0
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x2c], ebx
call fcn.0042b4fd
mov eax, dword [edi]
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov esi, dword [edi]
mov eax, dword [esi + 8]
test eax, eax
je 0x4e1f9e
cmp eax, 0xffffffff
je 0x4e1f9e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
mov edx, dword [edi]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x4e2350
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55dfd8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5b4a28]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.004e2110
mov esi, eax
push 0x4dfae0
push 0x5c4028
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
call fcn.004e0b60
mov eax, dword [0x5c4030]
add esp, 8
test eax, eax
je 0x4e23c1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x24]
call fcn.004b388d
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], vtable.boost::thread_resource_error.0
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 1
call fcn.0042b4fd
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004e0470
add esp, 4
push 0
push 0
call fcn.004b3841
int3
Function at 0x4e3e10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x55e338
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5b4a28]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0x24]
push edi
call fcn.004b3a2e
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
xor ebx, ebx
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push ebx
add edi, 0x14
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edi
mov dword [esp + 0x28], ebx
mov byte [ecx], bl
call fcn.00406020
mov dword [esi + 0x30], vtable.boost::exception.0
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], 0xffffffff
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.1.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x4e3ec0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x55e370
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5b4a28]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.004b3a2e
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push 0
lea edx, [edi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edx
mov dword [esp + 0x24], 0
mov byte [ecx], 0
call fcn.00406020
mov dword [esi + 0x30], vtable.boost::exception.0
mov ecx, dword [edi + 0x34]
mov dword [esp + 0x18], 1
mov dword [esi + 0x34], ecx
test ecx, ecx
je 0x4e3f4e
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov ecx, dword [edi + 0x3c]
mov dword [esi + 0x3c], ecx
mov edx, dword [edi + 0x40]
mov dword [esi + 0x40], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.1.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x4e4b20
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x9eb4
call fcn.004b2f70
mov eax, dword [0x5b4a28]
xor eax, esp
mov dword [esp + 0x9eb0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
movzx ecx, cx
push ecx
push eax
push str.udp:___s:_d
mov ebx, edx
push 0xffffffffffffffff
lea edx, [esp + 0x4f08]
push 0x100
push edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], eax
call fcn.004b8157
lea eax, [esp + 0x4f10]
push 0
push eax
mov byte [esp + 0x5017], 0
call fcn.00514cf0
mov edi, eax
add esp, 0x20
test edi, edi
js 0x4e4ce6
mov dword [esp + 0x48], 0x64
mov dword [esp + 0x4c], 0x18
mov dword [esp + 0x20], 0
lea eax, [esp + 0x38]
push eax
push edi
mov edx, 3
mov ecx, ebx
call fcn.004e46e0
add esp, 8
test eax, eax
js 0x4e4ccb
lea ecx, [esp + 0x30]
push ecx
push 0
lea esi, [ebx + 0x2c]
push 0
mov dword [esi], 0
push esi
lea edx, [edi + 1]
mov dword [ebx + 0x30], edi
inc dword [esi]
push edx
mov dword [esp + 0x44], 2
mov dword [esp + 0x48], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x4e4ccb
push esi
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4e4ccb
push 0
push 0x4ebc
lea eax, [esp + 0x5000]
push eax
push edi
call fcn.00514e60
mov esi, eax
add esp, 0x10
test esi, esi
jle 0x4e4ccb
mov eax, dword [ebx]
lea ecx, [esp + 0x4ff8]
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x38]
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], edx
push ecx
lea edx, [esp + 0x20]
mov dword [esp + 0x2c], eax
mov eax, dword [eax + 4]
push edx
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], 0x4ebc
call fcn.00521c10
add esp, 0x10
test eax, eax
js 0x4e4ce6
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x4ff8]
push eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], ecx
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x20], edx
lea edx, [esp + 0x20]
push edx
push ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], 0x4ebc
call fcn.00521c10
add esp, 0x10
test eax, eax
js 0x4e4ce6
mov edx, dword [ebx + 0x134]
cmp edx, dword [esp + 0x44]
jne 0x4e4ccb
mov eax, 4
cmp ax, word [esp + 0x3e]
je 0x4e4cfe
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, 3
jl 0x4e4ba8
push edi
call fcn.00514a10
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x9eb0]
xor ecx, esp
call fcn.004b2f5a
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
push ecx
lea ebx, [esp + 0x4c]
call fcn.004e4850
push edi
mov esi, eax
call fcn.00514a10
mov ecx, dword [esp + 0x9ec4]
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.004b2f5a
mov esp, ebp
pop ebp
ret
Function at 0x4e5d30
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, 0x9d7c
call fcn.004b2f70
mov eax, dword [0x5b4a28]
xor eax, esp
mov dword [esp + 0x9d78], eax
mov ecx, dword [ebx]
push 0
push 0x4ebc
lea eax, [esp + 0x4ec4]
push eax
push ecx
call fcn.00514e60
add esp, 0x10
test eax, eax
jg 0x4e5d7e
or eax, 0xffffffff
mov ecx, dword [esp + 0x9d78]
xor ecx, esp
call fcn.004b2f5a
add esp, 0x9d7c
ret
mov ecx, dword [esi]
lea edx, [esp]
push edx
push eax
lea eax, [esp + 0x4ec4]
push eax
push ecx
call fcn.004e4560
add esp, 0x10
test eax, eax
js 0x4e5d66
movzx eax, word [esp + 6]
sub eax, 2
je 0x4e5df0
sub eax, 2
jne 0x4e5e1e
push edi
push esi
lea edi, [esp + 8]
mov eax, ebx
call fcn.004e5c00
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [ebx + 4]
imul edx, edx, 0xeb4
add edx, dword [esi + 0x18]
push eax
push ecx
push edx
call fcn.004e4470
add esp, 0x14
pop edi
xor eax, eax
mov ecx, dword [esp + 0x9d78]
xor ecx, esp
call fcn.004b2f5a
add esp, 0x9d7c
ret
push ebx
lea edx, [esp + 4]
mov ecx, esi
call fcn.004e5b30
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [ebx + 4]
imul eax, eax, 0xeb4
add eax, dword [esi + 0x18]
push ecx
push edx
push eax
call fcn.004e4470
add esp, 0x14
mov ecx, dword [esp + 0x9d78]
xor ecx, esp
xor eax, eax
call fcn.004b2f5a
add esp, 0x9d7c
ret
Function at 0x4e6340
Capabilities:
Get socket status

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, eax
xor ebx, ebx
push edi
mov dword [esi + 0x138], ebx
mov dword [esi + 4], 8
cmp dword [esi + 0x10], ebx
jle 0x4e63b6
mov dword [esp + 0x10], ebx
xor ebp, ebp
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0x14]
add eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4e6391
test dl, dl
je 0x4e638d
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4e6391
add ecx, 2
add eax, 2
test dl, dl
jne 0x4e6371
xor eax, eax
jmp 0x4e6396
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
sete cl
add dword [esp + 0x10], 0xeb4
inc ebx
add ebp, 0x24
lea ecx, [ecx + ecx + 2]
mov dword [edi + ebp - 0x1c], ecx
cmp ebx, dword [esi + 0x10]
jl 0x4e6363
lea eax, [esi + 0x1c]
push 0
push eax
call fcn.00515db0
add esp, 8
mov ecx, esi
call fcn.004e50c0
test eax, eax
jne 0x4e64bb
lea edi, [esi + 0x2c]
push esi
call fcn.004e5870
push esi
call fcn.004e59f0
lea eax, [esi + 0x1c]
push 0
push eax
call fcn.00515db0
add esp, 0x10
cmp dword [esi + 0x10], 0
mov dword [edi], 0
mov dword [esp + 0x10], 0
jle 0x4e6449
xor edx, edx
mov ebp, dword [edi]
xor eax, eax
test ebp, ebp
je 0x4e6423
mov ecx, dword [esi + 0x14]
mov ebx, dword [edx + ecx]
lea ecx, [esi + 0x30]
cmp dword [ecx], ebx
je 0x4e6423
inc eax
add ecx, 4
cmp eax, ebp
jb 0x4e6417
cmp eax, ebp
jne 0x4e6438
cmp ebp, 0x40
jae 0x4e6438
mov ecx, dword [esi + 0x14]
mov ecx, dword [edx + ecx]
mov dword [esi + eax*4 + 0x30], ecx
inc dword [edi]
mov eax, dword [esp + 0x10]
inc eax
add edx, 0x24
mov dword [esp + 0x10], eax
cmp eax, dword [esi + 0x10]
jl 0x4e6406
mov eax, dword [esi + 0x130]
lea edx, [esp + 0x14]
push edx
xor ebp, ebp
push ebp
push ebp
push edi
inc eax
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], 0x2710
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x4e64ac
mov dword [esp + 0x10], ebp
cmp dword [esi + 0x10], ebp
jle 0x4e64ac
lea ebx, [ebx]
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx + ebp]
push edi
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4e649b
mov ebx, dword [esi + 0x14]
add ebx, ebp
call fcn.004e5d30
mov eax, dword [esp + 0x10]
inc eax
add ebp, 0x24
mov dword [esp + 0x10], eax
cmp eax, dword [esi + 0x10]
jl 0x4e6480
mov ecx, esi
call fcn.004e50c0
test eax, eax
je 0x4e63d6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x4e7b42
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e7ed
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x5b4a28]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x1e4], 0
push 0x103
push 0
lea eax, [ebp - 0x1e3]
push eax
call fcn.004b7da0
add esp, 0xc
lea eax, [ebp - 0x1e4]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov dword [ebp - 0x1e8], eax
cmp dword [ebp - 0x1e8], 0
jne 0x4e7c88
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x210], eax
push str.get_logical_driver_string_failed__error_code:_d
lea ecx, [ebp - 0xbc]
call fcn.0041d95f
mov dword [ebp - 0x284], eax
mov eax, dword [ebp - 0x284]
mov dword [ebp - 0x254], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x254]
call fcn.00456351
pop ecx
pop ecx
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x204]
push eax
mov ecx, dword [ebp - 0x258]
call fcn.0041daf1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xbc]
call fcn.0041a250
cmp dword [ebp - 0x1f0], 0x10
jb 0x4e7c33
mov eax, dword [ebp - 0x204]
mov dword [ebp - 0x288], eax
jmp 0x4e7c3f
lea eax, [ebp - 0x204]
mov dword [ebp - 0x288], eax
mov eax, dword [ebp - 0x288]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.004b3926
push 0x5a5b14
lea eax, [ebp - 0x21c]
push eax
call fcn.004b3841
mov dword [ebp - 4], 3
push 0
push 1
lea ecx, [ebp - 0x204]
call fcn.00405420
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1e4]
mov dword [ebp - 0x208], eax
jmp 0x4e7cb2
push dword [ebp - 0x208]
call fcn.004b2fa0
pop ecx
mov ecx, dword [ebp - 0x208]
lea eax, [ecx + eax + 1]
mov dword [ebp - 0x208], eax
mov eax, dword [ebp - 0x208]
movsx eax, byte [eax]
test eax, eax
je 0x4e7d2e
push dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x20c], eax
mov eax, dword [ebp - 0x20c]
mov dword [ebp - 0x28c], eax
cmp dword [ebp - 0x28c], 3
je 0x4e7ce8
jmp 0x4e7d29
push dword [ebp - 0x208]
lea ecx, [ebp - 0xd8]
call fcn.004045a0
mov dword [ebp - 4], 4
lea eax, [ebp - 0xd8]
push eax
mov ecx, dword [ebp + 8]
call fcn.00413350
mov dword [ebp - 4], 5
push 0
push 1
lea ecx, [ebp - 0xd8]
call fcn.00405420
or dword [ebp - 4], 0xffffffff
jmp 0x4e7c96
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b2f5a
leave
ret
Function at 0x4e9225
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ec32
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x5b4a28]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4e9266
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x16c], eax
jmp 0x4e926f
mov eax, dword [ebp + 8]
mov dword [ebp - 0x16c], eax
push 0
push dword [ebp - 0x16c]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xc0], 0
je 0x4e9377
push str.create_directory_ex_fail__error_code:_1___path:_2_
lea ecx, [ebp - 0xbc]
call fcn.0041d95f
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x120], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0xc0]
push eax
push dword [ebp - 0x120]
call fcn.0041f704
pop ecx
pop ecx
mov dword [ebp - 0x124], eax
push dword [ebp + 8]
push dword [ebp - 0x124]
call fcn.004ed4c0
pop ecx
pop ecx
mov dword [ebp - 0x158], eax
push dword [ebp - 0x158]
lea eax, [ebp - 0xdc]
push eax
call fcn.00456278
pop ecx
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xbc]
call fcn.0041a250
cmp dword [ebp - 0xc8], 0x10
jb 0x4e9322
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0x174], eax
jmp 0x4e932e
lea eax, [ebp - 0xdc]
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0xec], eax
lea eax, [ebp - 0xec]
push eax
lea ecx, [ebp - 0xe8]
call fcn.004b3926
push 0x5a5b14
lea eax, [ebp - 0xe8]
push eax
call fcn.004b3841
mov dword [ebp - 4], 3
push 0
push 1
lea ecx, [ebp - 0xdc]
call fcn.00405420
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b2f5a
leave
ret

Function at 0x4e93e9
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5b4a28]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], 2
push dword [ebp + 8]
call fcn.004b7e5f
pop ecx
cmp eax, 2
jae 0x4e941b
xor al, al
jmp 0x4e94a0
mov eax, dword [0x57e7f8]
mov dword [ebp - 0x210], eax
mov eax, dword [0x57e7fc]
mov dword [ebp - 0x20c], eax
push 0x200
push 0
lea eax, [ebp - 0x208]
push eax
call fcn.004b7da0
add esp, 0xc
push 2
push dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.004d9390
add esp, 0x10
and dword [ebp - 0x214], 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 3
je 0x4e949e
cmp dword [ebp - 0x214], 4
je 0x4e949e
push str._Sys_wrapper_path_is_not_fixed_remote
push 0
call fcn.00417342
pop ecx
pop ecx
xor al, al
jmp 0x4e94a0
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b2f5a
leave
ret
Function at 0x4e978a
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ed26
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5b4a28]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 0x50], 0
lea eax, [ebp - 0x59]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x78], eax
and dword [ebp - 4], 0
push 0
push 0
lea ecx, [ebp - 0x48]
call fcn.00405420
mov dword [ebp - 4], 1
cmp dword [ebp + 0xc], 0
je 0x4e981a
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0042ab1a
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x50]
or eax, 1
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0043c2c3
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x4e981a
mov dword [ebp - 0x7c], 1
jmp 0x4e981e
and dword [ebp - 0x7c], 0
mov al, byte [ebp - 0x7c]
mov byte [ebp - 0x49], al
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x50]
and eax, 1
je 0x4e984b
and dword [ebp - 0x50], 0xfffffffe
mov byte [ebp - 4], 3
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0041bda0
mov byte [ebp - 4], 1
movzx eax, byte [ebp - 0x49]
test eax, eax
je 0x4e9884
push dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [ebp - 0x48]
push eax
call fcn.004e9515
add esp, 0xc
mov byte [ebp - 0x4a], al
mov dword [ebp - 4], 4
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00405420
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x4a]
jmp 0x4e98a2
mov byte [ebp - 0x4b], 0
mov dword [ebp - 4], 5
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00405420
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x4b]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b2f5a
leave
ret
Function at 0x4f9d3a
Capabilities:
Enumerate process modules
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56158b
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x5b4a28]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x14]
call fcn.004fa2d7
and dword [ebp - 4], 0
push 0
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x4f9ec4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x260], eax
cmp dword [ebp - 0x260], 0
je 0x4f9ec4
and dword [ebp - 0x244], 0
push 0x220
push 0
lea eax, [ebp - 0x240]
push eax
call fcn.004b7da0
add esp, 0xc
mov dword [ebp - 0x244], 0x224
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0x18]
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x4f9e17
and dword [ebp - 0x248], 0
push str.TenioDllFreeMap
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0
je 0x4f9e04
call dword [ebp - 0x248]
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0x18]
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x4f9dd7
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp - 0x26c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x26c]
call dword [eax + 0x2c]
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x270], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x270], eax
push 1
mov eax, dword [ebp - 0x270]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x270]
call dword [eax + 8]
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0x18]
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x4f9ebb
and dword [ebp - 0x24c], 0
push str.TenioSetDllSafe
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
je 0x4f9ea8
push 0
call dword [ebp - 0x24c]
pop ecx
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0x18]
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x4f9e78
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Tenio_Uninitialize_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004fa374
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004b2f5a
leave
ret

Function at 0x4fa9ac
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x5b4a28]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x408], 0
push 0x3ff
push 0
lea eax, [ebp - 0x407]
push eax
call fcn.004b7da0
add esp, 0xc
and dword [ebp - 0x40c], 0
lea eax, [ebp + 0x10]
mov dword [ebp - 0x40c], eax
push dword [ebp - 0x40c]
push dword [ebp + 0xc]
push 0x3ff
push 0x400
lea eax, [ebp - 0x408]
push eax
call fcn.004ba4a7
add esp, 0x14
and dword [ebp - 0x40c], 0
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b2f5a
leave
ret