joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000fb54
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
mov edx, 0x1a
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x1000fb5b
call fcn.1001c490
mov edx, dword [esp + 0x74]
lea ecx, [esp]
call fcn.10016000
mov edx, dword [esp + 0x78]
lea ecx, [esp + 4]
call fcn.10016000
mov edx, dword [esp + 0x80]
lea ecx, [esp + 8]
call fcn.10016000
mov dword [esp + 0x60], 0x4000200
lea ebp, [esp + 0xc]
mov dword [ebp], 0x44
mov edx, dword [esp]
xor ecx, ecx
call fcn.10016130
jne 0x1000fc2a
push edx
call fcn.1001c2f0
pop edx
push eax
lea edx, [0x1001f226]
push edx
call fcn.1001c330
mov edx, dword [esp + 4]
push edx
call fcn.1001c330
lea edx, [0x1001f226]
push edx
call fcn.1001c330
lea eax, [esp + 0x68]
push eax
call fcn.1001c390
mov edx, dword [esp + 4]
xor ecx, ecx
call fcn.10016130
jne 0x1000fc28
mov edx, dword [esp + 0x64]
push edx
call fcn.1001c2f0
pop edx
push eax
push edx
call fcn.1001c330
lea edx, [0x1001f21e]
push edx
call fcn.1001c330
mov edx, dword [esp + 8]
push edx
call fcn.1001c330
lea eax, [esp + 0x68]
push eax
call fcn.1001c390
jmp 0x1000fc46
mov edx, dword [esp + 4]
push edx
call fcn.1001c2f0
pop edx
push eax
push edx
call fcn.1001c330
lea eax, [esp + 0x68]
push eax
call fcn.1001c390
mov ebx, dword [esp + 0x7c]
and ebx, 2
and ebx, ebx
je 0x1000fc62
lea ebp, [esp + 0xc]
mov dword [ebp + 0x2c], 1
mov word [ebp + 0x30], 0
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push dword [esp + 0x70]
push 0
push 0
push 0
mov eax, dword [esp + 0x84]
push eax
push 0
call sub.KERNEL32.dll_CreateProcessW
and eax, eax
je 0x1000fcd3
mov ebx, dword [esp + 0x7c]
and ebx, 1
and ebx, ebx
je 0x1000fcbb
push 0xffffffff
lea ebp, [esp + 0x54]
push dword [ebp]
call sub.KERNEL32.dll_WaitForSingleObject
lea ebp, [esp + 0x50]
push dword [ebp]
call sub.KERNEL32.dll_CloseHandle
lea ebp, [esp + 0x50]
push dword [ebp + 4]
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
push dword [esp + 0x64]
call fcn.1001c4f0
push dword [esp + 8]
call fcn.1001c4f0
push dword [esp]
call fcn.1001c4f0
push dword [esp + 4]
call fcn.1001c4f0
add esp, 0x68
pop ebx
pop ebp
ret 0x10

Function at 0x10011bd6
Capabilities:
Print debug messages

Disassembly:
xor eax, eax
push eax
call fcn.1001c490
mov edx, dword [esp + 8]
lea ecx, [esp]
call fcn.10016000
push edx
call fcn.1001c2f0
pop edx
push eax
push edx
call fcn.1001c2f0
pop edx
push eax
lea edx, str.PORT:
push edx
call fcn.1001c330
mov edx, dword [esp + 8]
push edx
call fcn.1001c330
call fcn.10016182
add dword [esp], edx
call sub.KERNEL32.dll_OutputDebugStringW
call fcn.100161a0
xor eax, eax
push dword [esp]
call fcn.1001c4f0
add esp, 4
ret 4
Function at 0x10013712
Capabilities:
Get common file path

Disassembly:
xor eax, eax
push eax
call fcn.1001c490
mov eax, dword [0x10023d5c]
mov dword [0x10023ef4], eax
cmp dword [section..share], 0
jne 0x10013733
inc dword [0x10023f10]
inc dword [section..share]
push dword [0x10023ef4]
call sub.KERNEL32.dll_DisableThreadLibraryCalls
push edx
call fcn.1001c2f0
pop edx
push eax
push edx
call fcn.1001c2f0
pop edx
push eax
push 0x7fff
call fcn.100185c0
lea eax, [esp + 4]
push eax
call fcn.1001c390
push 0x7fff
mov eax, dword [esp + 4]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameW
push edx
call fcn.1001c2f0
pop edx
push eax
push edx
call fcn.1001c2f0
pop edx
push eax
mov eax, dword [esp + 8]
push eax
call fcn.1001bc70
push 0x10023f9c
call fcn.1001c390
push edx
call fcn.1001c2f0
pop edx
push eax
push edx
call fcn.1001c2f0
pop edx
push eax
push 1
push dword [0x10023f9c]
call fcn.1001a0a3
push 0x10024070
call fcn.1001c390
push 0x7fff
mov eax, dword [esp + 4]
push eax
push dword [0x10023ef4]
call sub.KERNEL32.dll_GetModuleFileNameW
push edx
call fcn.1001c2f0
pop edx
push eax
push edx
call fcn.1001c2f0
pop edx
push eax
mov eax, dword [esp + 8]
push eax
call fcn.1001bc70
push 0x10023d74
call fcn.1001c390
push edx
call fcn.1001c2f0
pop edx
push eax
push edx
call fcn.1001c2f0
pop edx
push eax
push 1
push dword [0x10023d74]
call fcn.1001a0a3
push 0x10023e20
call fcn.1001c390
push edx
call fcn.1001c2f0
pop edx
push eax
push edx
call fcn.1001c2f0
pop edx
push eax
push dword [0x10023d74]
call fcn.1001a160
push 0x10024090
call fcn.1001c390
push edx
call fcn.1001c2f0
pop edx
push eax
push edx
call fcn.1001c2f0
pop edx
push eax
lea eax, [0x1001f5d6]
push eax
push dword [0x10024090]
call fcn.10018cf0
push 0x10023e84
call fcn.1001c390
push 0x7fff
mov eax, dword [esp + 4]
push eax
call sub.KERNEL32.dll_GetWindowsDirectoryW
push edx
call fcn.1001c2f0
pop edx
push eax
push edx
call fcn.1001c2f0
pop edx
push eax
lea eax, [0x1001f5d6]
push eax
push dword [esp + 0xc]
call fcn.10018cf0
push 0x10023f50
call fcn.1001c390
push 0x7fff
mov eax, dword [esp + 4]
push eax
call sub.KERNEL32.dll_GetSystemDirectoryW
push edx
call fcn.1001c2f0
pop edx
push eax
push edx
call fcn.1001c2f0
pop edx
push eax
lea eax, [0x1001f5d6]
push eax
push dword [esp + 0xc]
call fcn.10018cf0
push 0x10023e6c
call fcn.1001c390
mov eax, dword [esp]
push eax
push 0x7fff
call sub.KERNEL32.dll_GetTempPathW
push edx
call fcn.1001c2f0
pop edx
push eax
push edx
call fcn.1001c2f0
pop edx
push eax
lea eax, [0x1001f5d6]
push eax
push dword [esp + 0xc]
call fcn.10018cf0
push 0x10023f44
call fcn.1001c390
xor eax, eax
push dword [esp]
call fcn.1001c4f0
add esp, 4
ret
Function at 0x100164c4
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
sub esp, 8
cmp eax, 0xffffffff
je 0x10016662
mov esi, eax
mov dword [esp + 0x24], 0x1c
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.KERNEL32.dll_Thread32First
sub esp, 8
test eax, eax
je 0x100166aa
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
jmp 0x1001659d
mov dword [ebx + 4], pe_nt_image_headers32
mov dword [esp + 8], 0x200
mov dword [esp + 4], 0
mov eax, dword [0x10024410]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
sub esp, 0xc
mov dword [ebx], eax
test eax, eax
je 0x10016681
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
lea ecx, [eax + 1]
mov dword [ebx + 8], ecx
mov ecx, dword [esp + 0x2c]
mov dword [edx + eax*4], ecx
mov dword [esp + 0x24], 0x1c
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.KERNEL32.dll_Thread32Next
sub esp, 8
test eax, eax
je 0x10016676
cmp dword [esp + 0x24], 0xf
jbe 0x1001657a
mov edi, dword [esp + 0x30]
call ebp
cmp edi, eax
jne 0x1001657a
mov edi, dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
je 0x1001657a
mov edx, dword [ebx]
test edx, edx
je 0x10016536
mov eax, dword [ebx + 4]
cmp dword [ebx + 8], eax
jb 0x10016568
lea ecx, [eax + eax]
mov dword [ebx + 4], ecx
shl eax, 3
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [0x10024410]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
sub esp, 0x10
test eax, eax
je 0x10016681
mov dword [ebx], eax
jmp 0x10016568
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
sub esp, 4
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, edi
call fcn.1001633a
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
add esi, 1
cmp dword [ebx + 8], esi
jbe 0x1001665b
mov eax, dword [ebx]
mov eax, dword [eax + esi*4]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x5a
call ebp
sub esp, 0xc
mov edi, eax
test eax, eax
jne 0x10016607
jmp 0x1001662e
mov eax, 0
jmp 0x10016667
mov eax, 9
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0
jmp 0x10016667
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x100166bd
mov eax, dword [ebx]
test eax, eax
je 0x100166aa
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [0x10024410]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
sub esp, 0xc
mov dword [ebx], 0
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, 9
jmp 0x10016667
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
cmp dword [ebx], 0
je 0x100166e4
cmp dword [ebx + 8], 0
je 0x1001666f
mov esi, 0
mov ebp, dword [sym.imp.KERNEL32.dll_OpenThread]
jmp 0x10016636
mov eax, 0
jmp 0x10016667
Function at 0x100166ee
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, edx
imul eax, eax, 0x2c
add eax, dword [0x1002447c]
mov ebx, eax
mov esi, dword [eax]
mov ebp, 5
test byte [eax + 0x14], 1
je 0x10016717
sub esi, 5
mov ebp, 7
lea eax, [esp + 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x40
mov dword [esp + 4], ebp
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
mov edx, 0xa
test eax, eax
je 0x100167b7
test edi, edi
je 0x100167c1
mov byte [esi], 0xe9
lea eax, [esi + 5]
mov ecx, dword [ebx + 4]
sub ecx, eax
mov dword [esi + 1], ecx
test byte [ebx + 0x14], 1
je 0x10016761
mov eax, dword [ebx]
mov byte [eax], 0xeb
mov byte [eax + 1], 0xf9
lea eax, [esp + 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 8], ebp
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
sub esp, 0xc
and edi, 1
lea edx, [edi + edi]
movzx eax, byte [ebx + 0x14]
and eax, 0xfffffff9
shl edi, 2
or eax, edx
or eax, edi
mov byte [ebx + 0x14], al
mov edx, 0
mov eax, edx
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [ebx + 0x14], 1
je 0x100167dd
mov edx, dword [ebx + 0xc]
mov dword [esi], edx
movzx edx, word [ebx + 0x10]
mov word [esi + 4], dx
movzx eax, byte [ebx + 0x12]
mov byte [esi + 6], al
jmp 0x10016761
mov eax, dword [ebx + 0xc]
mov dword [esi], eax
movzx eax, byte [ebx + 0x10]
mov byte [esi + 4], al
jmp 0x10016761

Function at 0x100167ee
Capabilities:
Resume thread

Disassembly:
cmp dword [eax], 0
je 0x1001687f
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, eax
cmp dword [eax + 8], 0
je 0x10016858
mov ebx, 0
mov ebp, dword [sym.imp.KERNEL32.dll_OpenThread]
jmp 0x10016833
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
sub esp, 4
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
add ebx, 1
cmp dword [edi + 8], ebx
jbe 0x10016858
mov eax, dword [edi]
mov eax, dword [eax + ebx*4]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x5a
call ebp
sub esp, 0xc
mov esi, eax
test eax, eax
jne 0x10016813
jmp 0x1001682b
mov eax, dword [edi]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [0x10024410]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
sub esp, 0xc
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
ret
Function at 0x10016ae8
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
sub esp, 0x44
call fcn.1001623c
mov ebx, 2
cmp dword [0x10024410], 0
je 0x10016b15
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call fcn.10017264
mov ebx, 7
test eax, eax
jne 0x10016b24
call fcn.10016292
mov eax, ebx
add esp, 0x44
pop ebx
pop esi
ret 0xc
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call fcn.10017264
test eax, eax
je 0x10016b15
mov eax, dword [esp + 0x50]
call fcn.100161f4
mov ebx, 3
cmp eax, 0xffffffff
jne 0x10016b15
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call fcn.1001713a
mov esi, eax
mov ebx, 9
test eax, eax
je 0x10016b15
mov eax, dword [esp + 0x50]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], esi
lea eax, [esp + 0x1c]
mov dword [esp], eax
call fcn.10017309
test eax, eax
je 0x10016ce9
mov edx, dword [0x1002447c]
test edx, edx
je 0x10016c5d
mov eax, dword [0x10024480]
cmp dword [0x10024484], eax
jae 0x10016c9c
mov eax, dword [0x10024484]
lea edx, [eax + 1]
mov dword [0x10024484], edx
imul eax, eax, 0x2c
add eax, dword [0x1002447c]
je 0x10016cfb
mov edx, dword [esp + 0x1c]
mov dword [eax], edx
mov edx, dword [esp + 0x20]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x24]
mov dword [eax + 8], edx
mov esi, dword [esp + 0x28]
mov ebx, esi
and ebx, 1
movzx ecx, byte [eax + 0x14]
and ecx, 0xfffffff8
or ecx, ebx
mov byte [eax + 0x14], cl
movzx ebx, byte [esp + 0x2c]
and ebx, 0xf
movzx ecx, byte [eax + 0x18]
and ecx, 0xfffffff0
or ecx, ebx
mov byte [eax + 0x18], cl
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ebx
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ebx
test esi, esi
je 0x10016cd4
lea ecx, [eax + 0xc]
mov esi, dword [esp + 0x50]
lea ebx, [esi - 5]
mov esi, dword [esi - 5]
mov dword [eax + 0xc], esi
movzx eax, word [ebx + 4]
mov word [ecx + 4], ax
movzx eax, byte [ebx + 6]
mov byte [ecx + 6], al
mov ebx, 0
cmp dword [esp + 0x58], 0
je 0x10016b15
mov eax, dword [esp + 0x58]
mov dword [eax], edx
jmp 0x10016b15
mov dword [0x10024480], 0x20
mov dword [esp + 8], 0x580
mov dword [esp + 4], 0
mov eax, dword [0x10024410]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
sub esp, 0xc
mov dword [0x1002447c], eax
test eax, eax
jne 0x10016ba5
mov ebx, 9
jmp 0x10016cee
imul eax, eax, 0x58
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [0x10024410]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
sub esp, 0x10
test eax, eax
je 0x10016c95
shl dword [0x10024480], 1
mov dword [0x1002447c], eax
jmp 0x10016ba5
mov esi, dword [esp + 0x50]
mov ecx, dword [esi]
mov dword [eax + 0xc], ecx
movzx ecx, byte [esi + 4]
mov byte [eax + 0x10], cl
jmp 0x10016c42
mov ebx, 8
mov dword [esp], esi
call fcn.100171de
jmp 0x10016b15
mov ebx, 9
jmp 0x10016cee
Function at 0x1001713a
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [0x10024488]
test edx, edx
je 0x10017163
cmp dword [edx + 4], 0
jne 0x10017156
mov edx, dword [edx]
test edx, edx
je 0x10017163
cmp dword [edx + 4], 0
je 0x1001714a
mov eax, dword [edx + 4]
mov ecx, dword [eax]
mov dword [edx + 4], ecx
add dword [edx + 8], 1
ret
push ebx
sub esp, 0x18
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x3000
mov dword [esp + 4], 0x1000
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
sub esp, 0x10
mov edx, eax
mov eax, 0
test edx, edx
je 0x100171d9
lea eax, [edx + 0x20]
mov dword [edx + 4], 0
mov dword [edx + 8], 0
lea ebx, [edx + 0x1000]
mov ecx, dword [edx + 4]
mov dword [eax], ecx
mov dword [edx + 4], eax
add eax, 0x20
cmp eax, ebx
jne 0x100171b1
mov eax, dword [0x10024488]
mov dword [edx], eax
mov dword [0x10024488], edx
mov eax, dword [edx + 4]
mov ecx, dword [eax]
mov dword [edx + 4], ecx
add dword [edx + 8], 1
add esp, 0x18
pop ebx
ret

Function at 0x100172a8
Capabilities:
Check for software breakpoints

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
mov edi, edx
movzx eax, byte [eax]
test al, al
setne cl
mov esi, ecx
cmp al, 0x90
setne cl
mov edx, esi
test dl, cl
je 0x100172cd
mov ecx, 0
cmp al, 0xcc
jne 0x100172f5
cmp edi, 1
jbe 0x100172fb
cmp al, byte [ebx + 1]
jne 0x10017302
lea ecx, [ebx + 2]
lea edx, [edi + ebx]
cmp ecx, edx
je 0x100172f0
add ecx, 1
cmp byte [ecx - 1], al
je 0x100172dd
mov ecx, 0
jmp 0x100172f5
mov ecx, 1
mov eax, ecx
pop ebx
pop esi
pop edi
ret
mov ecx, 1
jmp 0x100172f5
mov ecx, 0
jmp 0x100172f5
Function at 0x10018073
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x100241d0], 0
push ebx
push esi
mov esi, 0x100241d8
jne 0x1001809f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x100241f0], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x100241d0], 1
push dword [0x100241f0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x1001813c
push 0x14
push 8
push dword [0x10023d58]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x10018166
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x100241d4]
test eax, eax
je 0x100180e1
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x100241d4], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x1001816b
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x100241f0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x10023d58]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x10018166
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8
Function at 0x100197c8
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x10024468]
call fcn.1001b4a8
mov edi, dword [eax + 0x24]
test edi, edi
je 0x10019886
cmp dword [edi + 8], 1
je 0x10019886
mov edi, dword [edi + 0xc]
test edi, edi
je 0x10019886
mov al, byte [edi]
cmp al, 0x20
je 0x10019801
cmp al, 9
jne 0x10019804
inc edi
jmp 0x100197f7
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push edi
push eax
push 0xfde9
call esi
push dword [esp + 0x14]
mov ebx, eax
lea ecx, [ebx - 1]
push ecx
call fcn.1001c6e0
push ebx
mov ebp, eax
push ebp
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call esi
test ebx, ebx
jle 0x10019855
push 9
pop edx
lea eax, [ebp - 2]
lea eax, [eax + ebx*2]
movzx ecx, word [eax]
push 0x20
pop esi
cmp cx, si
je 0x10019871
cmp cx, dx
je 0x10019871
pop edi
pop esi
pop ebp
pop ebx
ret 4
movzx ecx, word [eax]
cmp cx, si
je 0x10019869
cmp cx, dx
jne 0x10019875
xor ecx, ecx
mov word [eax], cx
sub eax, 2
cmp eax, ebp
jae 0x1001985c
push ebp
call sub.MSVCRT.dll_wcslen
pop ecx
sub ebx, eax
push ebx
call fcn.1001c7c0
jmp 0x10019855
pop edi
pop esi
pop ebp
pop ebx
jmp fcn.1001c8c0
Function at 0x10019ecc
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x10019f44
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x10019f25
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x10019f22
cmp ecx, 0x5c
je 0x10019f22
cmp ecx, 0x2f
jne 0x10019f2f
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x10019f0f
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x10019f46
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x10019f4c
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x1001a094
xor ecx, ecx
cmp word [eax], cx
je 0x1001a094
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x10019fa5
cmp eax, 3
jne 0x10019fdf
cmp word [esp + 0xa], 0x3a
jne 0x10019fdf
cmp eax, 2
jne 0x10019fc3
lea eax, [esp + 8]
push 0x1001e050
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1001a094
push 0xfffffffffffffffe
pop edi
jmp 0x1001a094
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x10019ff4
cmp ax, bx
jne 0x10019ffe
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x10019fe7
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x1001a03d
test byte [esp + 0x21c], 0x10
je 0x1001a024
push 0xfffffffffffffffe
pop edi
jmp 0x1001a034
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1001a092
cmp word [esp + 0x10], bp
jne 0x1001a04b
cmp word [esp + 0x12], bp
je 0x1001a06a
cmp word [esp + 0x10], bx
jne 0x1001a059
cmp word [esp + 0x12], bx
je 0x1001a06a
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x1001a092
cmp word [esp + 0x12], ax
jne 0x1001a092
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x1001a07f
test al, 0x10
je 0x1001a092
jmp 0x1001a08f
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1001a092
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4
Function at 0x1001a2b0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x1001a2ec
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x1001a550
Capabilities:
Write file on windows

Disassembly:
push dword [esp + 4]
push dword [0x10024470]
call fcn.1001b619
test eax, eax
je case.0x1001a57e.3
mov ecx, dword [esp + 8]
add ecx, 0xfffffffe
cmp ecx, 0x17
ja case.0x1001a57e.3
movzx ecx, byte [ecx + 0x1001a688]
jmp dword [ecx*4 + 0x1001a670]
cmp dword [eax + 4], 0
je 0x1001a59b
push 2
push 0x1001e054
push eax
call fcn.1001aa00
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 2
push 0x1001e054
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x1001a5ca
push 3
push 0x1001e030
push eax
call fcn.1001aa00
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 3
push 0x1001e030
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x1001a5f9
push 2
push 0x1001e058
push eax
call fcn.1001aa00
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 2
push 0x1001e058
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x1001a628
push 4
push 0x1001e05c
push eax
call fcn.1001aa00
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 4
push 0x1001e05c
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x1001a657
push 4
push 0x1001e064
push eax
call fcn.1001aa00
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 4
push 0x1001e064
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8