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

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x41a3a0]
test esi, esi
jle 0x40e9e0
mov edi, dword [0x41a3a4]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x40e904
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x40e985
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x40e8f0
mov dword [esp], eax
mov ebx, eax
call fcn.0040f1c0
test eax, eax
mov edi, eax
je 0x40ea07
mov eax, dword [0x41a3a4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0040f2c0
add eax, dword [edi + 0xc]
mov edx, dword [0x41a3a4]
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 0x40e9e7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x40e97e
sub eax, 4
and eax, 0xfffffffb
jne 0x40e990
add dword [0x41a3a0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x41a3a4]
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 0x40e97e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004137f4
lea esi, [esi]
xor esi, esi
jmp 0x40e90e
mov eax, dword [0x41a3a4]
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.004137f4
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004137f4
mov esi, esi
lea edi, [edi]

Function at 0x40ee40
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x41a3b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x41a3b0]
sub esp, 4
test ebx, ebx
je 0x40ee95
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 0x40ee8e
test esi, esi
je 0x40ee8e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40ee70
mov dword [esp], 0x41a3b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40f860
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
push edi
mov edi, 1
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x3c
mov eax, dword [edx]
mov dword [esp + 0x2c], ecx
test eax, eax
jne 0x40f8d0
jmp 0x40f8f0
mov edx, dword [esp + 0x28]
mov ecx, 2
xor ebp, ebp
test edx, edx
je 0x40f8c5
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], edx
mov dword [esp + 4], ecx
mov dword [esp], 1
call eax
cmp eax, 7
je 0x40f900
cmp eax, 8
jne 0x40f8f0
test ebp, ebp
jne 0x40f90e
mov eax, dword [ebx]
mov eax, dword [eax]
add edi, 1
mov dword [ebx], eax
test eax, eax
je 0x40f8f0
mov edx, dword [eax + 0x18]
mov dword [esp + 0x28], edx
cmp eax, dword [esi + 0x10]
jne 0x40f880
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x40f90e
mov ecx, 6
mov ebp, 4
jmp 0x40f88f
add esp, 0x3c
mov eax, 2
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [esp + 0x2c]
mov dword [edx], edi
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.00410670
lea esi, [esi]
lea edi, [edi]

Function at 0x40f920
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x40f954
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [0x41a3d4], eax
call fcn.00410710
test eax, eax
sete al
movzx eax, al
mov dword [0x414050], eax
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40f943
Function at 0x40fa80
Capabilities:
Set thread local storage value

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, 1
push ebx
mov ebx, eax
sub esp, 0x3c
mov eax, dword [eax + 0xc]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x24], eax
mov eax, dword [edx]
test eax, eax
jne 0x40fac7
jmp 0x40fb90
mov dword [0x41a3d8], ecx
mov eax, dword [edi]
add esi, 1
mov eax, dword [eax]
mov dword [edi], eax
test eax, eax
je 0x40fb90
mov ebp, dword [eax + 0x18]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], edi
mov edx, dword [ebx + 4]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], eax
mov eax, dword [ebx]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], 0xa
mov dword [esp], 1
call eax
test eax, eax
jne 0x40fbc6
test ebp, ebp
je 0x40fb40
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0xa
mov dword [esp], 1
call ebp
cmp eax, 7
je 0x40fbf5
cmp eax, 8
jne 0x40fbc6
mov eax, dword [edi]
mov ecx, dword [eax]
mov eax, dword [0x414050]
test eax, eax
js 0x40fbd3
test eax, eax
je 0x40fab0
mov eax, dword [0x41a3d4]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40fab6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [edi]
add esi, 1
mov eax, dword [eax]
mov dword [edi], eax
test eax, eax
jne 0x40fac7
lea esi, [esi]
mov eax, dword [esp + 0x24]
mov edx, dword [ebx + 4]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], eax
mov eax, dword [ebx]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], 0x1a
mov dword [esp], 1
call eax
test eax, eax
je 0x40fbf0
add esp, 0x3c
mov eax, 2
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x28], ecx
call fcn.0040f960
mov eax, dword [0x414050]
mov ecx, dword [esp + 0x28]
jmp 0x40fb51
mov eax, 5
mov ecx, dword [esp + 0x2c]
mov dword [ecx], esi
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40fc10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x414050]
mov ebx, dword [esp + 0x30]
test eax, eax
js 0x40fc90
test eax, eax
jne 0x40fc40
mov eax, dword [0x41a3d8]
mov dword [0x41a3d8], ebx
mov dword [ebx], eax
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [0x41a3d4]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebp, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov edi, eax
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [0x41a3d4]
mov dword [ebx], edi
sub esp, 4
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40fc35
add esp, 0x1c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
jmp eax
call fcn.0040f960
mov eax, dword [0x414050]
jmp 0x40fc24
Function at 0x40fca0
Capabilities:
Set thread local storage value

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [esp + 0x20]
mov ebx, dword [eax]
mov eax, dword [0x414050]
test eax, eax
js 0x40fce5
test eax, eax
jne 0x40fcc2
mov dword [0x41a3d8], ebx
add esp, 0x18
pop ebx
ret
mov eax, dword [0x41a3d4]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40fcbd
add esp, 0x18
pop ebx
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.0040f960
mov eax, dword [0x414050]
jmp 0x40fcb3

Function at 0x40fde0
Capabilities:
Get thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov eax, dword [0x414050]
mov ebx, dword [esp + 0x40]
test eax, eax
js 0x40fe60
mov esi, dword [0x41a3d8]
test eax, eax
jne 0x40fe74
mov dword [esp + 0x28], esi
test esi, esi
je 0x40fe54
mov eax, esi
lea edi, [esp + 0x28]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x40fe46
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp], 1
call ecx
cmp eax, 6
je 0x40fea1
cmp eax, 8
jne 0x40fed0
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x40fe0b
mov eax, 5
add esp, 0x30
pop ebx
pop esi
pop edi
ret
call fcn.0040f960
mov eax, dword [0x414050]
mov esi, dword [0x41a3d8]
test eax, eax
je 0x40fdfd
mov esi, dword [0x41a3d4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x40fdfd
mov eax, dword [esp + 0x28]
mov dword [ebx + 0xc], 0
lea ecx, [esp + 0x2c]
mov edx, edi
mov dword [esp + 0x28], esi
mov dword [ebx + 0x10], eax
mov eax, ebx
call fcn.0040f860
cmp eax, 7
jne 0x40fe59
mov eax, edi
call fcn.0040fa00
lea esi, [esi]
mov eax, 3
jmp 0x40fe59

Function at 0x40ff80
Capabilities:
Get thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov edx, dword [0x414050]
mov ebx, dword [esp + 0x30]
test edx, edx
js 0x40ffcd
mov esi, dword [0x41a3d8]
test edx, edx
jne 0x40ffda
mov eax, ebx
mov ebx, dword [ebx + 0xc]
mov dword [esp + 0x18], esi
lea esi, [esp + 0x18]
lea ecx, [esp + 0x1c]
mov edx, esi
test ebx, ebx
jne 0x40ffc6
call fcn.0040f860
cmp eax, 7
jne 0x410000
mov eax, esi
call fcn.0040fa00
call fcn.0040fa80
jmp 0x40ffba
call fcn.0040f960
mov edx, dword [0x414050]
jmp 0x40ff94
mov esi, dword [0x41a3d4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
jmp 0x40ff9e
call fcn.00410670
lea esi, [esi]
lea edi, [edi]
Function at 0x410010
Capabilities:
Get thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x410060
mov edx, dword [0x414050]
test edx, edx
js 0x410070
mov esi, dword [0x41a3d8]
test edx, edx
jne 0x410085
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
mov eax, ebx
mov dword [esp + 0x18], esi
call fcn.0040fa80
cmp eax, 7
jne 0x4100af
lea eax, [esp + 0x18]
call fcn.0040fa00
lea esi, [esi]
lea edi, [edi]
mov dword [esp], ebx
call fcn.0040fde0
add esp, 0x20
pop ebx
pop esi
pop edi
ret
call fcn.0040f960
mov edx, dword [0x414050]
mov esi, dword [0x41a3d8]
test edx, edx
je 0x410035
mov esi, dword [0x41a3d4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x410035
call fcn.00410670
lea esi, [esi]
lea edi, [edi]

Function at 0x4101e0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x1c
mov esi, dword [eax + 4]
mov ebp, dword [eax]
cmp esi, 4
ja 0x410230
lea eax, [ebp + 4]
mov dword [esp], eax
call fcn.00410620
test eax, eax
je 0x410270
mov dword [eax], eax
lea ebx, [eax + 4]
mov eax, dword [edi + 0xc]
mov dword [esp + 8], ebp
test eax, eax
je 0x410256
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00410618
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esi + ebp + 3]
mov dword [esp], eax
call fcn.00410620
test eax, eax
je 0x410270
lea ebx, [eax + esi + 3]
neg esi
and ebx, esi
mov dword [ebx - 4], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 8], ebp
test eax, eax
jne 0x410212
mov dword [esp], ebx
mov dword [esp + 4], 0
call fcn.00410610
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.00410670
lea esi, [esi]
lea edi, [edi]

Function at 0x410280
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov dword [0x41a3e4], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffff
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
sub esp, 0x10
mov dword [0x41a3e8], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x4102e2
mov dword [esp + 4], 0x4101a0
mov dword [esp], eax
mov dword [0x41a3e0], eax
call fcn.00410710
test eax, eax
jne 0x4102ec
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4102de
call fcn.00410670
jmp fcn.00410300
Function at 0x10001450
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x100211ee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov eax, dword [esp + 0x54]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x14], esi
call fcn.10010000
mov dword [esp + 0x5c], 0
mov dword [esi + 0x24], 0x10019b5c
mov dword [esp + 0x14], 0x7f8a
mov dword [esp + 0x18], 0x7f00
mov dword [esp + 0x1c], 0x7f03
mov dword [esp + 0x20], 0x7f89
mov dword [esp + 0x24], 0x7f8b
mov dword [esp + 0x28], 0x7f01
mov dword [esp + 0x2c], 0x7f81
mov dword [esp + 0x30], 0x7f88
mov dword [esp + 0x34], 0x7f80
mov dword [esp + 0x38], 0x7f86
mov dword [esp + 0x3c], 0x7f83
mov dword [esp + 0x40], 0x7f85
mov dword [esp + 0x44], 0x7f82
mov dword [esp + 0x48], 0x7f84
mov dword [esp + 0x4c], 0x7f04
mov dword [esp + 0x50], 0x7f02
lea ebp, [esp + 0x14]
lea edi, [esi + 0x68]
mov ebx, 0x10
mov eax, dword [ebp]
push eax
push 0
mov dword [edi - 0x40], eax
call dword [fcn.10019a74]
mov dword [edi], eax
add ebp, 4
add edi, 4
dec ebx
jne 0x10001517
mov ebx, 1
push 0x110
mov byte [esp + 0x60], bl
mov dword [esi], 0x10019b54
mov byte [esi + 0x13], bl
mov dword [esi + 0x18], 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x64], eax
test eax, eax
mov byte [esp + 0x5c], 2
je 0x10001573
push 0x64
push 0
push 8
mov ecx, eax
call fcn.10012000
jmp 0x10001575
xor eax, eax
push ebx
push 0
push 0
push esi
push 0x10001b70
push 0
push 0
mov byte [esp + 0x78], bl
mov dword [esi + 0xa8], eax
mov byte [esi + 0x10], bl
mov byte [esi + 0x12], 0
mov byte [esi + 0x11], 0
mov byte [esi + 0x14], 0
call fcn.10012d00
push ebx
push 0
push 0
push esi
push 0x10001be0
push 0
push 0
mov dword [esi + 0x1c], eax
call fcn.10012d00
mov ecx, dword [esp + 0x8c]
add esp, 0x38
mov dword [esi + 0x20], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret 4
Function at 0x10003000
Capabilities:
Contain obfuscated stackstrings
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10020fd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ecx, [esi + 4]
call fcn.10001000
lea ecx, [esi + 0x2c]
mov dword [esp + 0x1d0], 0
call fcn.10001000
lea ecx, [esi + 0x54]
mov byte [esp + 0x1d0], 1
call fcn.10001000
lea ecx, [esi + 0x7c]
mov byte [esp + 0x1d0], 2
call fcn.10001000
mov al, 0x6c
mov cl, 0x6e
mov byte [esp + 0x2d], al
mov byte [esp + 0x32], al
mov byte [esp + 0x33], al
mov al, 0x74
mov byte [esp + 0x1c], al
mov byte [esp + 0x22], al
mov byte [esp + 0x2b], cl
mov byte [esp + 0x21], cl
lea eax, [esp + 0x18]
lea ecx, [esp + 0x28]
mov bl, 0x65
mov dl, 0x72
push eax
push ecx
mov byte [esp + 0x1d8], 3
mov dword [esi], 0x10019b00
mov byte [esp + 0x30], 0x6b
mov byte [esp + 0x31], bl
mov byte [esp + 0x32], dl
mov byte [esp + 0x34], bl
mov byte [esp + 0x36], 0x33
mov byte [esp + 0x37], 0x32
mov byte [esp + 0x38], 0x2e
mov byte [esp + 0x39], 0x64
mov byte [esp + 0x3c], 0
mov byte [esp + 0x20], 0x43
mov byte [esp + 0x21], dl
mov byte [esp + 0x22], bl
mov byte [esp + 0x23], 0x61
mov byte [esp + 0x25], bl
mov byte [esp + 0x26], 0x45
mov byte [esp + 0x27], 0x76
mov byte [esp + 0x28], bl
mov byte [esp + 0x2b], 0x41
mov byte [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [esp + 0x38]
mov edi, eax
push edx
push 0x202
call dword [fcn.10019adc]
mov ebp, dword [sym.imp.MSVCRT.dll_putchar]
push 0x30
call ebp
add esp, 4
push 0
push 0
push 1
push 0
call edi
push 0x30
mov dword [esi + 0xac], eax
call ebp
add esp, 4
mov byte [esi + 0xb5], 0
mov dword [esi + 0xa8], 0xffffffff
mov byte [esp + 0x10], 0x45
mov byte [esp + 0x11], 0x79
mov byte [esp + 0x12], bl
mov byte [esp + 0x13], 0x73
mov edx, dword [esp + 0x10]
lea ecx, [esi + 0xb0]
mov al, 0x31
pop edi
mov dword [ecx], edx
mov byte [ecx + 4], al
mov ecx, dword [esp + 0x1c4]
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c4
ret
Function at 0x100052d0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10019b20
push 0x10020a0e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 0x30
call dword [sym.imp.MSVCRT.dll_putchar]
add esp, 4
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x10005447
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x10005387
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x10005387
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10005362
cmp al, 0x5c
je 0x10005362
push esi
call dword [0x10019a80]
mov esi, eax
jmp 0x1000534a
cmp byte [esi], 0
je 0x1000536b
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10005380
cmp al, 0x5c
je 0x10005380
push esi
call dword [0x10019a80]
mov esi, eax
jmp 0x10005368
cmp byte [esi], 0
je 0x100053a6
jmp 0x100053a2
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x100053a6
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x100053a6
cmp al, 0x5c
jne 0x100053a6
inc esi
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov al, byte [esi]
test al, al
je 0x1000540b
cmp al, 0x5c
jne 0x100053fd
mov byte [esi], 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x100053f0
push 0
call ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x100053fa
push eax
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100053fa
push 0
call ebx
push edi
jmp 0x1000543e
and eax, 0x10
cmp al, 0x10
je 0x100053fa
push edi
jmp 0x1000543e
mov byte [esi], 0x5c
push esi
call dword [0x10019a80]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x100053ac
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100054d0
Capabilities:
Get disk information
Get disk size

Disassembly:
sub esp, 0x78c
push ebx
push ebp
push esi
lea eax, [esp + 0x138]
push edi
push eax
mov dword [esp + 0x2c], ecx
push 0x100
mov byte [esp + 0x3a4], 0x67
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
xor esi, esi
push 0x100172b4
lea ebp, [esp + 0x140]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push 0x100172c0
push edi
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x34], eax
mov al, byte [esp + 0x13c]
test al, al
mov ebx, 1
je 0x1000568e
jmp 0x1000554b
xor esi, esi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x38]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x3c]
push ecx
push esi
push esi
push esi
push esi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0x410
lea edx, [esp + 0x240]
push 0x160
push edx
push 0x80
push ebp
call dword [esp + 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + 0x34c]
push eax
call esi
mov edi, eax
lea ecx, [esp + 0x38]
inc edi
push ecx
mov dword [esp + 0x30], edi
call esi
inc eax
mov dword [esp + 0x10], eax
mov al, byte [ebp]
cmp al, 0x41
je 0x100055fb
cmp al, 0x42
je 0x100055fb
lea edx, [esp + 0x20]
push 0
lea eax, [esp + 0x1c]
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x100055fb
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ecx, 0x14
call fcn.10020a20
mov edx, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esp + 0x18]
mov ecx, 0x14
call fcn.10020a20
mov dword [esp + 0x14], eax
jmp 0x10005601
xor esi, esi
mov dword [esp + 0x14], esi
mov cl, byte [ebp]
push ebp
mov byte [esp + ebx + 0x3a0], cl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edx, dword [esp + 0x14]
mov ecx, edi
mov byte [esp + ebx + 0x39d], al
mov eax, ecx
mov dword [esp + ebx + 0x39e], esi
lea esi, [esp + 0x34c]
lea edi, [esp + ebx + 0x3a6]
mov dword [esp + ebx + 0x3a2], edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x2c]
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
lea edx, [eax + ebx]
lea esi, [esp + 0x3c]
lea edi, [esp + edx + 0x3aa]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
add ecx, eax
lea ebx, [ebx + ecx + 0xa]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [eax + ebp + 1]
cmp byte [ebp], 0
jne 0x10005549
mov edi, dword [esp + 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x39c]
push ebx
push edx
call fcn.10010120
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78c
ret