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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x68a7a3f4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x68a7a3ec]
sub esp, 4
test ebx, ebx
je 0x68949c55
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 0x68949c4e
test esi, esi
je 0x68949c4e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x68949c30
mov dword [esp], 0x68a7a3f4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x68949f90
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x688c0000], 0x5a4d
jne 0x68949fb5
mov ecx, dword [0x688c003c]
cmp dword [ecx + 0x688c0000], 0x4550
lea edx, [ecx + 0x688c0000]
je 0x68949fc0
ret
cmp word [ecx + 0x688c0018], 0x10b
jne 0x68949fb5
push esi
movzx eax, word [ecx + 0x688c0014]
push ebx
movzx esi, word [ecx + 0x688c0006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x688c0000
test si, si
je 0x6894a008
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x68949ffe
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x6894a00a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x68949ff0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x6894fb50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push edi
push esi
push ebx
sub esp, 0x220
mov ebx, dword [esp + 0x230]
call sub.msvcrt.dll__errno
mov dword [eax], 0
test ebx, ebx
je 0x6894fcd0
cmp word [ebx], 0
je 0x6894fcb0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x6894fce0
test al, 0x10
je 0x6894fcb0
lea esi, [esp + 0x18]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0x104
mov dword [esp], esi
call sub.msvcrt.dll__wfullpath
mov dword [esp], esi
call sub.msvcrt.dll_wcslen
mov dword [esp], 0x68a1dba0
mov ebx, eax
call sub.msvcrt.dll_wcslen
mov dword [esp], 0x68a1dba4
add ebx, eax
call sub.msvcrt.dll_wcslen
lea eax, [ebx + eax + 0x21d]
add eax, eax
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov ebx, eax
test eax, eax
je 0x6894fcef
lea edi, [eax + 0x434]
mov dword [esp + 4], esi
mov dword [esp], edi
call sub.msvcrt.dll_wcscpy
cmp word [ebx + 0x434], 0
jne 0x6894fc68
mov dword [esp], edi
mov dword [esp + 4], 0x68a1dba4
call sub.msvcrt.dll_wcscat
lea edx, [ebx + 0x224]
xor eax, eax
mov ecx, 0x82
mov dword [ebx + 0x42c], 0xffffffff
mov edi, edx
mov dword [ebx + 0x430], 0
mov dword [ebx + 0x21c], 0
mov dword [ebx + 0x220], 0
rep stosd dword es:[edi], eax
add esp, 0x220
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov dword [esp], edi
call sub.msvcrt.dll_wcslen
cmp word [ebx + eax*2 + 0x432], 0x2f
je 0x6894fc0d
mov dword [esp], edi
call sub.msvcrt.dll_wcslen
cmp word [ebx + eax*2 + 0x432], 0x5c
je 0x6894fc0d
mov dword [esp + 4], 0x68a1dba0
mov dword [esp], edi
call sub.msvcrt.dll_wcscat
jmp 0x6894fc0d
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [eax], 0x14
add esp, 0x220
mov eax, ebx
pop ebx
pop esi
pop edi
ret
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [eax], 0xe
jmp 0x6894fcbd
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [eax], 2
jmp 0x6894fcbd
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [eax], 0xc
jmp 0x6894fcbd
Function at 0x68959fd0
Capabilities:
Resume thread

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push esi
push ebx
sub esp, 0x20
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x10], eax
lea eax, [ebp + 0x14]
mov dword [esp + 0xc], 4
mov dword [esp + 8], eax
mov eax, dword [esi + 0xa4]
add eax, 8
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [ebp + 0x10]
sub esp, 0x14
mov eax, dword [eax + 0x28]
add eax, dword [ebp + 0x14]
mov dword [esi + 0xb0], eax
mov dword [esp + 4], esi
mov eax, dword [ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push edx
push edx
mov eax, dword [ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov eax, dword [ebx + 4]
mov dword [esp], eax
call esi
push eax
mov eax, dword [ebx]
mov dword [esp], eax
call esi
push eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x6895a380
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], 0x40
mov dword [esp + 0xc], 0x3000
mov eax, dword [eax + 0x50]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
sub esp, 0x14
leave
ret

Function at 0x6895a420
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x2c
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
movzx eax, word [eax + 6]
cmp eax, ebx
jle 0x6895a47f
mov edx, dword [ebp + 0xc]
mov eax, dword [edi + 0x3c]
imul ecx, ebx, 0x28
inc ebx
lea eax, [edx + eax + 0xf8]
add eax, ecx
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0xc], ecx
mov ecx, dword [eax + 0x14]
add ecx, edx
mov dword [esp + 8], ecx
mov edx, dword [ebp + 0x18]
add edx, dword [eax + 0xc]
mov dword [esp + 4], edx
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
sub esp, 0x14
jmp 0x6895a431
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x6895a4f0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], edx
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
leave
setne al
ret
Function at 0x6895a5b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x3c]
add edx, ecx
cmp dword [edx], 0x4550
jne 0x6895a6a7
cmp word [ecx], 0x5a4d
jne 0x6895a6a7
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x3000
mov eax, dword [edx + 0x50]
mov dword [ebp - 0x1c], edx
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov ebx, eax
mov edi, eax
sub esp, 0x10
add eax, dword [edx + 0x54]
mov esi, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
sub eax, edi
test eax, eax
jle 0x6895a61e
movsb byte es:[edi], byte [esi]
jmp 0x6895a612
movzx eax, word [edx + 6]
lea esi, [edx + 0xf8]
mov dword [ebp - 0x1c], edx
mov dword [esp + 4], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp], ebx
call fcn.6895a1c4
mov edx, dword [ebp - 0x1c]
mov eax, ebx
add eax, dword [edx + 0x80]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.6895a154
mov edx, dword [ebp - 0x1c]
mov ecx, ebx
mov eax, dword [edx + 0xa0]
sub ecx, dword [edx + 0x34]
je 0x6895a67f
test eax, eax
je 0x6895a67f
add eax, ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.6895a2cc
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x54]
mov dword [esp + 0xc], eax
movzx eax, word [edx + 6]
mov dword [ebp - 0x1c], edx
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.6895a238
mov edx, dword [ebp - 0x1c]
mov eax, ebx
add eax, dword [edx + 0x28]
jmp 0x6895a6a9
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x6895ab84
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
lea esi, [ebp - 0x6c]
push ebx
sub esp, 0x9c
mov dword [esp], esi
call fcn.689b3cf0
mov dword [esp + 8], edi
lea ecx, [ebp - 0x7c]
mov byte [esp + 4], 0
mov dword [esp], esi
call fcn.689b8520
mov eax, dword [ebp - 0x7c]
sub esp, 0xc
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x6895abc8
lock inc dword [eax + 4]
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x74]
mov dword [esp], eax
call fcn.689c4170
lea ecx, [ebp - 0x30]
push ebx
call fcn.689d5880
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x6895abf3
lock inc dword [eax + 4]
lea ecx, [ebp - 0x30]
call fcn.689d5880
cmp dword [ebp - 0x70], 0
je 0x6895adae
lea ecx, [ebp - 0x74]
call fcn.6895fe50
mov word [ebp - 0x7e], 0x39
mov dword [ebp - 0x82], 0x7c66622b
mov ebx, eax
call sub.msvcrt.dll_rand
xor eax, eax
lea edx, [ebp - 0x82]
lea ecx, [eax + 5]
xor byte [eax + edx], cl
inc eax
cmp eax, 5
jne 0x6895ac2c
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], edx
lea edi, [ebp - 0x34]
mov dword [esp], eax
mov ecx, edi
call fcn.689bd220
push ecx
lea ecx, [ebp - 0x50]
mov dword [esp], ebx
call fcn.68962dd0
push eax
lea ecx, [ebp - 0x50]
mov dword [esp], edi
call fcn.68961cc0
lea ecx, [ebp - 0x50]
push edx
mov dword [ebp - 0x8c], eax
call fcn.689bd284
mov ecx, edi
call fcn.689bd284
mov eax, dword [ebp - 0x8c]
test eax, eax
jne 0x6895acc1
mov eax, dword [ebx + 4]
mov ecx, edi
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.689eea5c
push eax
push eax
imul ecx, dword [0x68a0a22c], 0x18
mov dword [esp], edi
add ecx, 0x68a090a0
call fcn.689eec30
mov ecx, edi
push eax
call fcn.689ea920
inc dword [0x68a0a22c]
mov dword [ebp - 0x82], 0x7c66622b
mov word [ebp - 0x7e], 0x68
call sub.msvcrt.dll_rand
xor eax, eax
lea edx, [ebp - 0x82]
lea ecx, [eax + 5]
xor byte [eax + edx], cl
inc eax
cmp eax, 5
jne 0x6895acde
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], edx
mov ecx, edi
mov dword [esp], eax
call fcn.689bd220
push eax
lea ecx, [ebp - 0x50]
mov dword [esp], ebx
call fcn.68962dd0
push ecx
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x50]
mov dword [esp], eax
call fcn.68961cc0
lea ecx, [ebp - 0x50]
push edi
mov edi, eax
call fcn.689bd284
lea ecx, [ebp - 0x34]
call fcn.689bd284
test edi, edi
jne 0x6895ad6f
mov eax, dword [ebx + 4]
lea ecx, [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.689eea5c
push eax
push eax
imul ecx, dword [0x68a0a230], 0x18
lea eax, [ebp - 0x34]
mov dword [esp], eax
add ecx, 0x68a08fa0
call fcn.689eec30
lea ecx, [ebp - 0x34]
push edx
call fcn.689ea920
inc dword [0x68a0a230]
lea ecx, [ebp - 0x74]
call fcn.689b8860
jmp 0x6895abfb
lea ecx, [ebp - 0x70]
call fcn.689d5880
lea ecx, [ebp - 0x78]
call fcn.689d5880
mov ecx, esi
call fcn.689bd284
lea esp, [ebp - 0xc]
mov al, 1
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x6895c170
Capabilities:
Create directory

Disassembly:
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x10
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__wmkdir]
test eax, eax
jne 0x6895c1a8
call fcn.689e18f0
mov dword [ebx], 0
mov dword [ebx + 4], eax
add esp, 0x10
mov eax, 1
pop ebx
pop esi
pop edi
ret
call dword [sym.imp.msvcrt.dll__errno]
mov edi, dword [eax]
cmp edi, 0x11
je 0x6895c1d0
call fcn.689e1900
mov dword [ebx], edi
mov dword [ebx + 4], eax
xor eax, eax
add esp, 0x10
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.689b78b0
cmp al, 2
jne 0x6895c1b5
xor eax, eax
jmp 0x6895c1c1
Function at 0x6895c940
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, 0x1a
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x80]
mov esi, 0x68a19fd5
push ebx
sub esp, 0x9c
mov eax, dword [0x68a19fd4]
mov dword [ebp - 0x81], eax
mov eax, dword [0x68a1a039]
mov dword [ebp - 0x1c], eax
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp + 8]
lea eax, [edx + 0x84]
and eax, 0xfffffff0
call fcn.6894a260
mov ecx, 0x1a
sub esp, eax
lea esi, [ebp - 0x81]
mov dword [ebp - 0x8c], edx
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov edi, ebx
lea eax, [ebx + 0x68]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x8c]
mov byte [ebx + edx + 0x68], 0
mov dword [esp], ebx
call fcn.689fd180
nop
nop
nop
nop
nop
nop
nop
push edi
push esi
push ebx
sub esp, 0x20
cmp byte [0x68a0a210], 0
jne 0x6895ca66
mov byte [0x68a0a210], 1
call fcn.689fb2e0
test eax, eax
je 0x6895ca34
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
sete al
mov dword [esp + 4], 0
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call fcn.689493e0
mov dword [esp], 2
mov esi, dword [fcn.68958ce0]
mov edi, eax
call esi
mov dword [esp + 8], 0x30
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
call sub.msvcrt.dll_fwrite
mov edx, dword [esp + 0x1c]
mov dword [esp], 2
test edx, edx
je 0x6895ca24
call esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x68a18d09
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x689fc3dc
jmp 0x689fc3d4
call esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
jmp 0x6895c9ea
mov dword [esp], 2
call dword [0x68a08e80]
mov dword [esp + 8], 0x2d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
call sub.msvcrt.dll_fwrite
jmp 0x689fc3cf
mov dword [esp], 2
call dword [0x68a08e80]
mov dword [esp + 8], 0x1d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x68a18cb8
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
push ebx
mov ebx, ecx
sub esp, 0x18
mov dword [ecx], 0x68a21c70
call fcn.689f5170
mov dword [esp], ebx
mov dword [esp + 4], 4
call fcn.689fb090
add esp, 0x18
pop ebx
ret
Function at 0x689b7660
Capabilities:
Delete directory
Delete file

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov dword [esp], esi
mov dword [esp + 4], ebx
call fcn.689b4590
test al, al
je 0x689b76bb
cmp al, 0xff
je 0x689b76c8
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.689b78b0
cmp al, 2
je 0x689b76e0
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub esp, 4
test eax, eax
jne 0x689b76f2
mov eax, dword [ebx]
test eax, eax
jne 0x689b76bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.689e18f0
mov dword [ebx], esi
mov dword [ebx + 4], eax
add esp, 0x14
xor eax, eax
pop ebx
pop esi
ret
call fcn.689e18f0
mov dword [ebx], 0
mov dword [ebx + 4], eax
jmp 0x689b76bb
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
sub esp, 4
test eax, eax
je 0x689b7691
call fcn.689e18f0
mov dword [ebx], 0
mov dword [ebx + 4], eax
add esp, 0x14
mov eax, 1
pop ebx
pop esi
ret

Function at 0x689b7760
Capabilities:
Move file

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.689b78b0
cmp al, 0xff
je 0x689b77c8
mov ecx, dword [ebx]
test ecx, ecx
jne 0x689b77be
test al, al
jne 0x689b77e0
mov dword [esp + 8], 3
mov eax, dword [esi]
mov dword [esp + 4], eax
mov eax, dword [edi]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
sub esp, 0xc
test eax, eax
je 0x689b7830
call fcn.689e18f0
mov dword [ebx], 0
mov dword [ebx + 4], eax
add esp, 0x20
pop ebx
pop esi
pop edi
ret
call fcn.689e18f0
mov dword [ebx], 0
mov dword [ebx + 4], eax
jmp 0x689b778c
mov dword [esp + 4], ebx
mov dword [esp], edi
mov dword [esp + 0x1c], eax
call fcn.689b78b0
mov edx, dword [ebx]
test edx, edx
jne 0x689b77be
mov ecx, dword [esp + 0x1c]
cmp cl, 2
je 0x689b7818
cmp al, 2
jne 0x689b778c
call fcn.689e1900
mov dword [ebx], 0x14
mov dword [ebx + 4], eax
jmp 0x689b77be
cmp al, 2
je 0x689b778c
call fcn.689e1900
mov dword [ebx], 0x15
mov dword [ebx + 4], eax
jmp 0x689b77be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.msvcrt.dll__errno]
cmp eax, 5
je 0x689b7860
call edi
mov dword [eax], 5
call fcn.689e1900
mov esi, eax
call edi
mov eax, dword [eax]
mov dword [ebx + 4], esi
mov dword [ebx], eax
add esp, 0x20
pop ebx
pop esi
pop edi
ret
call edi
mov dword [eax], 0xd
jmp 0x689b7849
Function at 0x689bebe0
Capabilities:
Get disk size

Disassembly:
push esi
push ebx
sub esp, 0x34
lea eax, [esp + 0x28]
mov dword [esp + 0x18], 0
mov ebx, dword [esp + 0x50]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x20]
mov dword [esp + 8], eax
lea eax, [esp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
sub esp, 0x10
test eax, eax
je 0x689beca8
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov eax, esi
or eax, ecx
je 0x689bec5c
mov eax, dword [esp + 0x44]
mov dword [eax], esi
mov dword [eax + 4], ecx
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov eax, esi
or eax, ecx
je 0x689bec73
mov eax, dword [esp + 0x48]
mov dword [eax], esi
mov dword [eax + 4], ecx
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, esi
or eax, ecx
jne 0x689bec98
call fcn.689e18f0
mov dword [ebx], 0
mov dword [ebx + 4], eax
add esp, 0x34
pop ebx
pop esi
ret
mov eax, dword [esp + 0x4c]
mov dword [eax], esi
mov dword [eax + 4], ecx
jmp 0x689bec81
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.689e18f0
mov dword [ebx], esi
mov dword [ebx + 4], eax
add esp, 0x34
pop ebx
pop esi
ret

Function at 0x689c36d0
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x1c
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov eax, dword [ebx]
mov dword [esp], eax
call sub.msvcrt.dll__fileno
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll__read
mov ebp, eax
cmp eax, 0xffffffff
je 0x689c3710
add esp, 0x1c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 8
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
je 0x689c36e1
add esp, 0x1c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x100011c0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x100011d5
xor eax, eax
jmp 0x1000124a
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
add edx, 0x10000
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x10001202
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x38d
jae 0x10001245
mov edx, dword [ebp - 4]
imul edx, edx, 0x48
mov eax, dword [ebp - 8]
cmp dword [eax + edx + 0x40], 0
je 0x10001243
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 0xc]
jb 0x1000123f
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 0x10]
jb 0x10001243
xor eax, eax
jmp 0x1000124a
jmp 0x100011f9
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x100012b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x102faea4]
mov dword [ebp - 4], eax
jmp 0x100012c9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x100012e6
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x100012c0
mov esp, ebp
pop ebp
ret
Function at 0x100012f0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x102faeb4], eax
je 0x1000130e
mov eax, 0x10dd
jmp 0x100013ef
mov eax, dword [0x102faec4]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000138c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1000136a
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1000136a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.100010a0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.100d52ab
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10001316
mov dword [0x102faec4], 0
call fcn.10001250
mov ecx, dword [0x102faec0]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x100013d9
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.100d52ab
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x100013a4
mov dword [0x102faec0], 0
mov dword [0x102faeb4], 0
xor eax, eax
mov esp, ebp
pop ebp
ret