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

Disassembly:
push 0xffffffffffffffff
push 0x55df40
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 0x4e1db4
xor esi, esi
jmp 0x4e1dbd
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 0x4e1e07
cmp dword [esi + 0x14], 0
jne 0x4e1e49
cmp dword [esi + 0x10], 0
jne 0x4e1e50
push 0x4dfbc0
push 0x5c4028
call fcn.004e0c40
mov eax, dword [0x5c4030]
add esp, 8
test eax, eax
je 0x4e1efd
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x30], 0xffffffff
test esi, esi
je 0x4e1e35
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4e1e35
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 0x4e1e90
nop
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x4e1e7e
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 0x4e1e50
cmp dword [esi + 0x14], 0
je 0x4e1dd9
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4e1eb5
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 0x4e1ee6
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4e1ee6
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 0x4e1ee6
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 0x4e1e9a
jmp 0x4e1dd3
lea ecx, [esp + 0x18]
call fcn.004b396d
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.0042b508
int3
Function at 0x4e1ff0
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x55df98
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 0x4e1f30
push 0
push 0
call fcn.004bd56a
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x4e205b
lea ecx, [esp + 0x10]
call fcn.004b396d
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.0042b508
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 0x4e207e
cmp eax, 0xffffffff
je 0x4e207e
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 0x4e2430
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e0d8
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.004e21f0
mov esi, eax
push 0x4dfbc0
push 0x5c4028
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
call fcn.004e0c40
mov eax, dword [0x5c4030]
add esp, 8
test eax, eax
je 0x4e24a1
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.004b396d
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.0042b508
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004e0550
add esp, 4
push 0
push 0
call fcn.004b3921
int3
Function at 0x4e3ef0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x55e438
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.004b3b0e
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 0x4e3fa0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x55e470
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.004b3b0e
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 0x4e402e
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 0x4e4c00
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x9eb4
call fcn.004b3050
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.004b8237
lea eax, [esp + 0x4f10]
push 0
push eax
mov byte [esp + 0x5017], 0
call fcn.00514df0
mov edi, eax
add esp, 0x20
test edi, edi
js 0x4e4dc6
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.004e47c0
add esp, 8
test eax, eax
js 0x4e4dab
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 0x4e4dab
push esi
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4e4dab
push 0
push 0x4ebc
lea eax, [esp + 0x5000]
push eax
push edi
call fcn.00514f60
mov esi, eax
add esp, 0x10
test esi, esi
jle 0x4e4dab
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.00521d10
add esp, 0x10
test eax, eax
js 0x4e4dc6
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.00521d10
add esp, 0x10
test eax, eax
js 0x4e4dc6
mov edx, dword [ebx + 0x134]
cmp edx, dword [esp + 0x44]
jne 0x4e4dab
mov eax, 4
cmp ax, word [esp + 0x3e]
je 0x4e4dde
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, 3
jl 0x4e4c88
push edi
call fcn.00514b10
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x9eb0]
xor ecx, esp
call fcn.004b303a
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
push ecx
lea ebx, [esp + 0x4c]
call fcn.004e4930
push edi
mov esi, eax
call fcn.00514b10
mov ecx, dword [esp + 0x9ec4]
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.004b303a
mov esp, ebp
pop ebp
ret
Function at 0x4e5e10
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, 0x9d7c
call fcn.004b3050
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.00514f60
add esp, 0x10
test eax, eax
jg 0x4e5e5e
or eax, 0xffffffff
mov ecx, dword [esp + 0x9d78]
xor ecx, esp
call fcn.004b303a
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.004e4640
add esp, 0x10
test eax, eax
js 0x4e5e46
movzx eax, word [esp + 6]
sub eax, 2
je 0x4e5ed0
sub eax, 2
jne 0x4e5efe
push edi
push esi
lea edi, [esp + 8]
mov eax, ebx
call fcn.004e5ce0
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.004e4550
add esp, 0x14
pop edi
xor eax, eax
mov ecx, dword [esp + 0x9d78]
xor ecx, esp
call fcn.004b303a
add esp, 0x9d7c
ret
push ebx
lea edx, [esp + 4]
mov ecx, esi
call fcn.004e5c10
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.004e4550
add esp, 0x14
mov ecx, dword [esp + 0x9d78]
xor ecx, esp
xor eax, eax
call fcn.004b303a
add esp, 0x9d7c
ret
Function at 0x4e6420
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 0x4e6496
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 0x4e6471
test dl, dl
je 0x4e646d
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4e6471
add ecx, 2
add eax, 2
test dl, dl
jne 0x4e6451
xor eax, eax
jmp 0x4e6476
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 0x4e6443
lea eax, [esi + 0x1c]
push 0
push eax
call fcn.00515eb0
add esp, 8
mov ecx, esi
call fcn.004e51a0
test eax, eax
jne 0x4e659b
lea edi, [esi + 0x2c]
push esi
call fcn.004e5950
push esi
call fcn.004e5ad0
lea eax, [esi + 0x1c]
push 0
push eax
call fcn.00515eb0
add esp, 0x10
cmp dword [esi + 0x10], 0
mov dword [edi], 0
mov dword [esp + 0x10], 0
jle 0x4e6529
xor edx, edx
mov ebp, dword [edi]
xor eax, eax
test ebp, ebp
je 0x4e6503
mov ecx, dword [esi + 0x14]
mov ebx, dword [edx + ecx]
lea ecx, [esi + 0x30]
cmp dword [ecx], ebx
je 0x4e6503
inc eax
add ecx, 4
cmp eax, ebp
jb 0x4e64f7
cmp eax, ebp
jne 0x4e6518
cmp ebp, 0x40
jae 0x4e6518
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 0x4e64e6
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 0x4e658c
mov dword [esp + 0x10], ebp
cmp dword [esi + 0x10], ebp
jle 0x4e658c
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 0x4e657b
mov ebx, dword [esi + 0x14]
add ebx, ebp
call fcn.004e5e10
mov eax, dword [esp + 0x10]
inc eax
add ebp, 0x24
mov dword [esp + 0x10], eax
cmp eax, dword [esi + 0x10]
jl 0x4e6560
mov ecx, esi
call fcn.004e51a0
test eax, eax
je 0x4e64b6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x4e7c22
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e8ed
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.004b7e80
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 0x4e7d68
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.004563b6
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 0x4e7d13
mov eax, dword [ebp - 0x204]
mov dword [ebp - 0x288], eax
jmp 0x4e7d1f
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.004b3a06
push 0x5a5b80
lea eax, [ebp - 0x21c]
push eax
call fcn.004b3921
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 0x4e7d92
push dword [ebp - 0x208]
call fcn.004b3080
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 0x4e7e0e
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 0x4e7dc8
jmp 0x4e7e09
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 0x4e7d76
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b303a
leave
ret
Function at 0x4e9305
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ed32
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 0x4e9346
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x16c], eax
jmp 0x4e934f
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 0x4e9457
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.004ed5c4
pop ecx
pop ecx
mov dword [ebp - 0x158], eax
push dword [ebp - 0x158]
lea eax, [ebp - 0xdc]
push eax
call fcn.004562dd
pop ecx
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xbc]
call fcn.0041a250
cmp dword [ebp - 0xc8], 0x10
jb 0x4e9402
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0x174], eax
jmp 0x4e940e
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.004b3a06
push 0x5a5b80
lea eax, [ebp - 0xe8]
push eax
call fcn.004b3921
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.004b303a
leave
ret

Function at 0x4e94c9
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.004b7f3f
pop ecx
cmp eax, 2
jae 0x4e94fb
xor al, al
jmp 0x4e9580
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.004b7e80
add esp, 0xc
push 2
push dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.004d9470
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 0x4e957e
cmp dword [ebp - 0x214], 4
je 0x4e957e
push str._Sys_wrapper_path_is_not_fixed_remote
push 0
call fcn.00417342
pop ecx
pop ecx
xor al, al
jmp 0x4e9580
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b303a
leave
ret
Function at 0x4e988e
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ee26
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 0x4e991e
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0042ab25
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.0043c2fb
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x4e991e
mov dword [ebp - 0x7c], 1
jmp 0x4e9922
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 0x4e994f
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 0x4e9988
push dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [ebp - 0x48]
push eax
call fcn.004e95f5
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 0x4e99a6
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.004b303a
leave
ret
Function at 0x4f9e3e
Capabilities:
Enumerate process modules
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56168b
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.004fa3db
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 0x4f9fc8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x260], eax
cmp dword [ebp - 0x260], 0
je 0x4f9fc8
and dword [ebp - 0x244], 0
push 0x220
push 0
lea eax, [ebp - 0x240]
push eax
call fcn.004b7e80
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 0x4f9f1b
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 0x4f9f08
call dword [ebp - 0x248]
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0x18]
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x4f9edb
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 0x4f9fbf
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 0x4f9fac
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 0x4f9f7c
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.004fa478
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004b303a
leave
ret

Function at 0x4faab0
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.004b7e80
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.004ba587
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.004b303a
leave
ret