joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_TerminateThread]
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020640]
call fcn.1400123b8
lea rcx, [0x140021210]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
sub dword [rsi + 0x28c00e2e], ecx
xor bh, byte [rbx - 0x284ed341]
push rdx
movabs al, byte [0xe774c3889958374d]
sub eax, 0x67ba500d
fxch st(1)
sbb ah, bh
mov esp, 0xcb7a4c6a
sbb ah, dh
xchg ebx, eax
invalid
ja 0x14003f65f
invalid
mov esi, 0x4eebfb6
push qword [rsi]
push rax
xor dword [rsi + 8], edi
push 0xd
lodsb al, byte [rsi]
fld qword [rdi + 0x554baa74]
push r13
or eax, 0xf3a80467
add al, 0xa8
jmp 0x18029da6f
add al, 0xa8
jmp 0x18029da6f
push rdx
ja 0x14003f70b
shr dword [rdx], 1
sbb ebp, dword [rsi - 3]
xor eax, 0xc0455958
shl dword [rax + 0x54], 1
movsb byte [rdi], byte [rsi]
inc dword [rdi - 0x4f]
push 0xffffffffc38836ea
ret
out dx, al
nop
insd dword [rdi], dx
invalid
ret
xor r8, 0x2f8ea7bc
call 0xcea6a05b
invalid
invalid
mov esp, 0xe82f8ea7
test eax, 0x80858ea2
movabs byte [0xad1040bcf380858e], al
invalid
test dword [rax + 0x1040bcf3], eax
lodsd eax, dword [rsi]
xor bh, byte [rbx + 0x111f00e8]
mov ebx, 0x111f00e8
adc eax, 0x9dc0b431
jge case.0x140007272.2
pop rbp
or byte [rsp + rcx*4 + 0x1c], ch
adc ebp, esp
sub al, 0x87
jb 0x14003f71c
out dx, eax
or rax, 0x168779e8
mov edi, 0xffd26db9
add dword [rsi - 0x55], edx
xchg rbx, rax
push rsi
xor ecx, esp
insd dword [rdi], dx
outsd dx, dword ss:[rsi]
mov cl, 0x39
mov dword [rbx + riz*2 - 0x7c894d2], ebx
invalid
imul esi, dword cs:[rdi], 0xfffffff8
invalid
Function at 0x14000727c
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x18]
mov r9, rdx
mov r8, rcx
mov qword [r11 - 0x10], rax
xor edi, edi
mov edx, 0x1000
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.DLL_CreateThread]
mov rbp, rax
test rax, rax
je 0x140007342
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007306
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x140007303
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x140020640]
mov rdx, rsi
call fcn.1400123b8
jmp 0x140007306
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400072d3
mov rdx, qword [0x14001f118]
lea rcx, [0x140020640]
mov rdi, rdx
inc rdx
mov qword [0x14001f118], rdx
lea edx, [rbx + 0x20]
call fcn.140012400
lea rcx, [0x140021210]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov rax, rdi
add rsp, 0x30
pop rdi
ret

Function at 0x1400074d0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r12
push r13
push r15
sub rsp, 0x28
xor r15d, r15d
mov r13d, r9d
mov r12d, edx
mov ebp, r15d
cmp edx, 1
jl 0x140007634
mov qword [rsp + 0x50], rbx
test rcx, rcx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x20], r14
lea r14, [0x1400196a0]
mov rbx, r14
mov edi, r15d
cmovne rbx, rcx
test r8, r8
cmovne r14, r8
mov rsi, rbx
movzx ecx, word [r14]
test cx, cx
je 0x140007600
cmp word [r14 + 2], di
je 0x140007600
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [r14 + rax*2], di
jne 0x140007540
movsxd r15, eax
nop dword [rax]
mov r8, r15
mov rdx, r14
mov rcx, rbx
call sub.msvcrt.dll_wcsncmp
test eax, eax
je 0x14000756d
cmp word [rbx], bp
je 0x14000756d
add rbx, 2
jmp 0x140007550
inc edi
cmp edi, r12d
je 0x140007582
cmp word [rbx], bp
je 0x14000758b
lea rbx, [rbx + r15*2]
mov rsi, rbx
jmp 0x140007550
mov rbp, rbx
sub rbp, rsi
sar rbp, 1
xor r15d, r15d
mov rcx, rbx
call fcn.140012da0
mov r14, qword [rsp + 0x20]
mov edi, eax
test eax, eax
je 0x1400075ba
mov ecx, r13d
call fcn.140012e10
movsxd r8, ebp
mov rdx, rsi
mov rcx, rax
add r8, r8
call sub.msvcrt.dll_memmove
mov edx, r13d
mov ecx, ebp
call fcn.140012e40
test edi, edi
mov rdi, qword [rsp + 0x60]
mov rbx, rax
jne 0x1400075de
movsxd r8, ebp
mov rdx, rsi
mov rcx, rax
call sub.msvcrt.dll_wcsncpy
mov rsi, qword [rsp + 0x58]
movsxd rcx, ebp
mov word [rbx + rcx*2], r15w
mov rbx, qword [rsp + 0x50]
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
ret
movzx eax, word [rbx]
cmp ax, cx
je 0x14000760d
test ax, ax
jne 0x140007620
inc edi
cmp edi, edx
je 0x140007626
test ax, ax
je 0x14000758e
lea rsi, [rbx + 2]
add rbx, 2
jmp 0x140007600
mov rbp, rbx
sub rbp, rsi
sar rbp, 1
jmp 0x14000758e
mov ecx, r9d
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
jmp fcn.140012f80
Function at 0x14000bf34
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x14000bfab
movsxd rdx, ecx
lea rcx, [0x14000be90]
call qword [sym.imp.USER32.DLL_EnumWindows]
mov rbx, qword [0x140020688]
test rbx, rbx
je 0x14000c01e
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14000bfa1
cmp byte [rbx + 0x20], 0
je 0x14000bfa1
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
xor r8d, r8d
call qword [sym.imp.USER32.DLL_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x14000bf67
jmp 0x14000c01e
mov rbx, qword [0x140020688]
test rbx, rbx
je 0x14000c01e
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14000c016
cmp byte [rbx + 0x21], 0
je 0x14000bfda
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x14000c006
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
call qword [sym.imp.USER32.DLL_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020688]
call fcn.1400123b8
mov rbx, rdi
test rdi, rdi
jne 0x14000bfb7
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x14000c178
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [0x140021270]
call fcn.140011794
xor ebp, ebp
or esi, 0xffffffff
mov r14, rax
mov ebx, ebp
call qword [sym.imp.KERNEL32.DLL_GetCommandLineW]
movzx edx, word [rax]
test dx, dx
je 0x14000c275
mov rcx, qword [rsp + 0x40]
mov r9w, 0x22
cmp dx, 0x20
jne 0x14000c1cf
add rax, 2
cmp word [rax], 0x20
je 0x14000c1c5
movzx edx, word [rax]
mov r8d, 1
cmp dx, r9w
jne 0x14000c20d
add rax, 2
mov rbx, rax
movzx ecx, word [rax]
test cx, cx
je 0x14000c24d
cmp cx, r9w
je 0x14000c1ff
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x14000c1ed
cmp word [rax], bp
je 0x14000c24d
mov rcx, rax
add rax, 2
jmp 0x14000c255
test dx, dx
je 0x14000c252
mov rbx, rax
cmp dx, 0x20
je 0x14000c1ff
add rax, 2
cmp word [rax], r9w
jne 0x14000c243
add rax, 2
movzx ecx, word [rax]
test cx, cx
je 0x14000c24d
cmp cx, r9w
je 0x14000c243
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x14000c231
movzx edx, word [rax]
test dx, dx
jne 0x14000c215
jmp 0x14000c1ff
mov rcx, rax
jmp 0x14000c255
mov r8d, ebp
cmp dword [r14], esi
jne 0x14000c25f
test rdi, rdi
jne 0x14000c27f
test r8d, r8d
je 0x14000c266
inc esi
movzx edx, word [rax]
mov rbx, rbp
test dx, dx
jne 0x14000c1bf
test rdi, rdi
jne 0x14000c294
movsxd rax, esi
jmp 0x14000c296
test rbx, rbx
je 0x14000c294
sub rcx, rbx
mov rax, rbx
sar rcx, 1
mov dword [rdi], ecx
inc dword [r14]
jmp 0x14000c296
mov dword [rdi], ebp
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x14000c2ac
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x140021270]
call fcn.140011794
xor ecx, ecx
add rsp, 0x28
jmp fcn.14000c178

Function at 0x14000c340
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rcx, qword [0x140021270]
xor ebp, ebp
mov esi, edx
mov dword [rax + 8], ebp
call fcn.140011794
test ebx, ebx
js 0x14000c36f
mov dword [rax], ebx
lea rcx, [rsp + 0x30]
call fcn.14000c178
mov edi, dword [rsp + 0x30]
mov edx, esi
mov ecx, edi
mov rbx, rax
call fcn.140012e40
mov ecx, ebp
jmp 0x14000c3ab
test edi, edi
je 0x14000c3b0
movzx edx, word [rbx]
cmp dx, 0x22
jne 0x14000c39e
inc ecx
jmp 0x14000c3a5
mov word [rax], dx
add rax, 2
add rbx, 2
dec edi
cmp word [rbx], bp
jne 0x14000c38d
mov word [rax], bp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp fcn.140013070

Function at 0x14000c584
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x28
mov rax, rdx
test rcx, rcx
je 0x14000c5a4
test rax, rax
lea rdx, [0x1400196a0]
cmovne rdx, rax
call qword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
add rsp, 0x28
ret
Function at 0x14000e064
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x230
xor ebx, ebx
test rcx, rcx
je 0x14000e0ee
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.msvcrt.dll_wcsncpy
lea rcx, [rsp + 0x20]
mov word [rsp + 0x228], bx
call sub.msvcrt.dll_wcslen
lea rcx, [rsp + 0x20]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x20]
cmp rcx, rax
jbe 0x14000e0da
lea rdx, [rcx - 2]
movzx eax, word [rdx]
sub ax, 0x20
cmp ax, 0x3c
ja 0x14000e0da
movabs r8, 0x1000000000008001
bt r8, rax
jae 0x14000e0da
lea rax, [rsp + 0x20]
mov rcx, rdx
cmp rdx, rax
ja 0x14000e0ac
mov word [rcx], bx
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
cdqe
jmp 0x14000e0f0
xor eax, eax
add rsp, 0x230
pop rbx
ret

Function at 0x14000e0fc
Capabilities:
Set file attributes

Disassembly:
sub rsp, 0x28
xor eax, eax
test rcx, rcx
je 0x14000e10d
call qword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
cdqe
add rsp, 0x28
ret

Function at 0x14000e114
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov edx, ecx
mov ebx, 0x104
mov ecx, ebx
call fcn.140012e40
mov ecx, ebx
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.DLL_GetTempPathW]
lea rcx, str.Kernel32.DLL
mov esi, eax
call qword [sym.imp.KERNEL32.DLL_LoadLibraryW]
xor r14d, r14d
mov rbp, rax
test rax, rax
je 0x14000e18e
lea rdx, str.GetLongPathNameW
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
test rax, rax
je 0x14000e185
mov r8d, ebx
mov rdx, rdi
mov rcx, rdi
call rax
mov esi, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_FreeLibrary]
sub ebx, esi
mov ecx, ebx
call fcn.140013070
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
movsxd rax, esi
mov rsi, qword [rsp + 0x40]
mov word [rdi + rax*2], r14w
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14000e1bc
Capabilities:
Delete file

Disassembly:
xor edx, edx
jmp 0x14000e1c4
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14000e1ef
test dl, 2
je 0x14000e1e2
mov edx, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_DeleteFileW]
cdqe
jmp 0x14000e1f1
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x14000e1c4
Capabilities:
Delete file
Set file attributes

Disassembly:
xor edx, edx
jmp 0x14000e1c4
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14000e1ef
test dl, 2
je 0x14000e1e2
mov edx, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_DeleteFileW]
cdqe
jmp 0x14000e1f1
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14000e1f8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov esi, 0x104
mov ecx, esi
call fcn.140012e40
mov ecx, esi
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
xor ebp, ebp
movsxd rbx, eax
test eax, eax
je 0x14000e241
lea ecx, [rbp + 0x5c]
cmp word [rdi + rbx*2 - 2], cx
je 0x14000e241
mov word [rdi + rbx*2], cx
inc ebx
sub esi, ebx
mov ecx, esi
call fcn.140013070
mov rsi, qword [rsp + 0x40]
movsxd rax, ebx
mov rbx, qword [rsp + 0x30]
mov word [rdi + rax*2], bp
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000e3d8
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x14000e3eb
call qword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
cdqe
jmp 0x14000e3ed
xor eax, eax
add rsp, 0x28
ret

Function at 0x14000e3f4
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x10]
mov rdi, rdx
mov edx, ecx
xor esi, esi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [r11 - 0x18], rax
mov ebx, esi
call qword [sym.imp.SHELL32.DLL_SHGetFolderLocation]
test eax, eax
jne 0x14000e465
mov rcx, qword [rsp + 0x48]
mov rdx, rdi
call qword [sym.imp.SHELL32.DLL_SHGetPathFromIDListW]
test eax, eax
je 0x14000e45a
mov rcx, rdi
call sub.msvcrt.dll_wcslen
mov rbx, rax
test eax, eax
je 0x14000e45a
lea ecx, [rsi + 0x5c]
cdqe
cmp word [rdi + rax*2 - 2], cx
je 0x14000e45a
mov word [rdi + rax*2], cx
inc ebx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.OLE32.DLL_CoTaskMemFree]
movsxd rax, ebx
mov word [rdi + rax*2], si
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14000e510
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
mov dword [rsp + 0x40], eax
cmp dword [rcx + 0x1c], eax
jne 0x14000e554
mov r8d, dword [rcx + 0x10]
mov rdx, qword [rcx + 8]
lea r9, [rsp + 0x40]
sub r8d, dword [rcx + 0x14]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
movsxd rax, dword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
cdqe
add rsp, 0x30
pop rbx
ret
Function at 0x14000eb40
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov dword [rsp + 0x48], 0
test rdx, rdx
je 0x14000ec43
cmp word [rdx], 0
je 0x14000ec43
cmp r8d, 0x19
jne 0x14000ebd3
or rax, 0xffffffffffffffff
cmp qword [rcx + 8], 0
je 0x14000eba1
nop word [rax + rax]
cmp word [rdx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14000eb80
lea r8d, [rax + rax]
call fcn.14000ed70
mov dword [rsp + 0x48], eax
cdqe
add rsp, 0x30
pop rbx
ret
cmp word [rdx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14000eba1
mov rcx, qword [rcx]
lea r8d, [rax + rax]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.DLL_WriteFile]
movsxd rax, dword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret
xor ecx, ecx
cmp r8d, 2
mov eax, 0xfde9
lea r8, [rsp + 0x58]
cmove ecx, eax
mov qword [rsp + 0x40], rdi
call fcn.14000eec0
mov rdi, rax
test rax, rax
je 0x14000ec3e
cmp qword [rbx + 8], 0
mov r8d, dword [rsp + 0x58]
mov rdx, rax
je 0x14000ec15
mov rcx, rbx
call fcn.14000ed70
mov dword [rsp + 0x48], eax
jmp 0x14000ec2c
mov rcx, qword [rbx]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.DLL_WriteFile]
mov rcx, qword [0x1400204cc]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_HeapFree]
mov rdi, qword [rsp + 0x40]
movsxd rax, dword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret
push rbx
sub rsp, 0x20
mov rbx, rdx
mov rdx, rcx
mov rcx, qword [0x1400213a0]
call fcn.140011998
test rax, rax
je 0x14000ec81
mov r8d, dword [rax + 0x20]
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp 0x14000eb40
add rsp, 0x20
pop rbx
ret

Function at 0x14000ec50
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov dword [rsp + 0x48], 0
test rdx, rdx
je 0x14000ec43
cmp word [rdx], 0
je 0x14000ec43
cmp r8d, 0x19
jne 0x14000ebd3
or rax, 0xffffffffffffffff
cmp qword [rcx + 8], 0
je 0x14000eba1
nop word [rax + rax]
cmp word [rdx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14000eb80
lea r8d, [rax + rax]
call fcn.14000ed70
mov dword [rsp + 0x48], eax
cdqe
add rsp, 0x30
pop rbx
ret
cmp word [rdx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14000eba1
mov rcx, qword [rcx]
lea r8d, [rax + rax]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.DLL_WriteFile]
movsxd rax, dword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret
xor ecx, ecx
cmp r8d, 2
mov eax, 0xfde9
lea r8, [rsp + 0x58]
cmove ecx, eax
mov qword [rsp + 0x40], rdi
call fcn.14000eec0
mov rdi, rax
test rax, rax
je 0x14000ec3e
cmp qword [rbx + 8], 0
mov r8d, dword [rsp + 0x58]
mov rdx, rax
je 0x14000ec15
mov rcx, rbx
call fcn.14000ed70
mov dword [rsp + 0x48], eax
jmp 0x14000ec2c
mov rcx, qword [rbx]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.DLL_WriteFile]
mov rcx, qword [0x1400204cc]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_HeapFree]
mov rdi, qword [rsp + 0x40]
movsxd rax, dword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret
push rbx
sub rsp, 0x20
mov rbx, rdx
mov rdx, rcx
mov rcx, qword [0x1400213a0]
call fcn.140011998
test rax, rax
je 0x14000ec81
mov r8d, dword [rax + 0x20]
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp 0x14000eb40
add rsp, 0x20
pop rbx
ret
Function at 0x14000ece0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov dword [rsp + 0x48], ebx
test rdx, rdx
je 0x14000ed58
test r8d, r8d
je 0x14000ed58
mov rdx, rcx
mov rcx, qword [0x1400213a0]
call fcn.140011998
test rax, rax
je 0x14000ed54
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x14000ed41
mov rcx, rax
call fcn.14000ed70
mov ebx, eax
cdqe
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.DLL_WriteFile]
mov ebx, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14000ed70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
movsxd rdi, r8d
mov rsi, rdx
mov rbx, rcx
mov dword [rsp + 0x50], ebp
cmp dword [rcx + 0x24], ebp
jne 0x14000eeae
cmp dword [rcx + 0x1c], 1
jne 0x14000edc3
mov eax, dword [rcx + 0x14]
mov rcx, qword [rcx]
lea r9d, [rbp + 1]
neg eax
lea r8, [rsp + 0x6c]
cdqe
mov edx, eax
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x1c], ebp
mov dword [rbx + 0x14], eax
mov ecx, dword [rbx + 0x14]
cmp ecx, edi
jle 0x14000ee4f
mov eax, dword [rbx + 0x10]
mov edx, edi
sub eax, ecx
movsxd rcx, eax
add rcx, qword [rbx + 8]
dec edx
je 0x14000ee37
dec edx
je 0x14000ee1e
cmp edx, 2
je 0x14000ee07
mov r8, rdi
mov rdx, rsi
call sub.msvcrt.dll_memcpy
sub dword [rbx + 0x14], edi
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov eax, dword [rsi]
mov dword [rcx], eax
sub dword [rbx + 0x14], edi
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
movzx eax, word [rsi]
mov word [rcx], ax
sub dword [rbx + 0x14], edi
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
movzx eax, byte [rsi]
mov byte [rcx], al
sub dword [rbx + 0x14], edi
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov rcx, rbx
call fcn.14000e510
mov eax, dword [rbx + 0x10]
mov rdx, rsi
cmp edi, eax
jl 0x14000ee89
mov rcx, qword [rbx]
lea r9, [rsp + 0x50]
mov r8d, edi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.DLL_WriteFile]
movsxd rax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
sub eax, dword [rbx + 0x14]
mov r8, rdi
movsxd rcx, eax
add rcx, qword [rbx + 8]
call sub.msvcrt.dll_memcpy
sub dword [rbx + 0x14], edi
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
movsxd rax, ebp
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000f168
Capabilities:
Hash data using sha1

Disassembly:
and dword [rcx + 0x18], 0
and dword [rcx + 0x14], 0
mov dword [rcx], 0x67452301
mov dword [rcx + 4], 0xefcdab89
mov dword [rcx + 8], 0x98badcfe
mov dword [rcx + 0xc], 0x10325476
mov dword [rcx + 0x10], 0xc3d2e1f0
mov dword [rcx + 0x5c], edx
ret
Function at 0x140011794
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x1400210f0]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x140011815
mov r8, qword [0x1400210e8]
mov rcx, qword [0x1400204cc]
lea edx, [rax + 8]
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ecx, dword [0x1400210f0]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov rbx, qword [0x1400210e0]
jmp 0x140011801
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x1400117fe
mov rcx, qword [rbx + 0x10]
add rcx, rdi
call rdx
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400117ec
lea rcx, [0x1400116f8]
mov rdx, rdi
call fcn.140017724
mov rbx, qword [rsp + 0x30]
lea rax, [rdi + rsi]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rbp, r8
mov rdi, rdx
and ecx, 7
je 0x140011856
mov eax, 8
sub eax, ecx
add ebx, eax
mov rcx, qword [0x1400210e8]
test rcx, rcx
jne 0x140011899
call qword [sym.imp.KERNEL32.DLL_TlsAlloc]
mov rcx, qword [0x1400204cc]
movsxd r8, ebx
mov edx, 8
mov dword [0x1400210f0], eax
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ecx, dword [0x1400210f0]
mov rdx, rax
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov rcx, qword [0x1400210e8]
mov rsi, rcx
movsxd rax, ebx
add rcx, rax
mov qword [0x1400210e8], rcx
mov ecx, dword [0x1400210f0]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov r9, qword [0x1400210e8]
mov rcx, qword [0x1400204cc]
mov r8, rax
mov edx, 8
call qword [sym.imp.KERNEL32.DLL_HeapReAlloc]
mov ecx, dword [0x1400210f0]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
test rdi, rdi
jne 0x1400118ed
test rbp, rbp
je 0x140011914
lea rcx, [0x1400210e0]
mov edx, 0x28
call fcn.140012400
mov qword [rax], rsi
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rbp
test rdi, rdi
je 0x140011914
lea rcx, [rbx + rsi]
call rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400127d0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r8d, r8d
mov edx, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_HeapCreate]
mov qword [0x1400213b0], rax
call qword [sym.imp.KERNEL32.DLL_TlsAlloc]
mov dword [0x14001f190], eax
call fcn.1400133c0
add rsp, 0x28
ret

Function at 0x140012930
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsp + 0x20], eax
mov ecx, dword [0x14001f190]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret