joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180019104
Capabilities:
Create thread
Terminate process

Disassembly:
sub rsp, 0x38
mov ecx, gethostname
call fcn.180018664
mov ecx, 0x27
cmp ax, 1
jne 0x18001913e
call fcn.180018664
cmp ax, 1
jne 0x180019135
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x180019128
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitThread]
call fcn.180018664
cmp ax, 1
jne 0x180019179
mov r8, qword [sym.imp.KERNEL32.dll_ExitProcess]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
add rsp, 0x38
jmp qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1800194f0
Capabilities:
Get token membership

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
lea rax, [rbp + 0x20]
lea rcx, [rbp + 0x18]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
and dword [rsp + 0x48], 0
and dword [rsp + 0x40], 0
and dword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r8d, 0x20
mov dl, 2
mov dword [rbp + 0x18], 0
mov word [rbp + 0x1c], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rbp + 0x10], eax
test eax, eax
je 0x180019570
mov rdx, qword [rbp + 0x20]
lea r8, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and dword [rbp + 0x10], ecx
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rbp + 0x10]
add rsp, 0x60
pop rbp
ret
Function at 0x180019578
Capabilities:
Impersonate user

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbp, r9
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
call fcn.18001932c
lea rax, [0x180043440]
mov qword [rsp + 0x28], rax
mov r9d, 9
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
mov dword [rsp + 0x20], 3
call qword [sym.imp.ADVAPI32.dll_LogonUserA]
test eax, eax
jne 0x1800195e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x18
mov edx, eax
call fcn.18000db60
jmp 0x1800196ce
mov rcx, qword [0x180043440]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x1800195ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x19
jmp 0x1800195d5
mov ecx, 0x800
call fcn.180013d24
mov edx, 0x200
mov rcx, rax
mov qword [0x180043460], rax
call fcn.180013e78
mov rcx, qword [0x180043460]
mov edx, 0x200
mov qword [0x180043448], rax
call fcn.180013e78
mov rcx, qword [0x180043460]
mov edx, 0x400
mov qword [0x180043450], rax
call fcn.180013e78
mov rdx, qword [0x180043450]
mov r8d, 0x100
mov rcx, rbx
mov qword [0x180043458], rax
call fcn.18000f03c
mov rdx, qword [0x180043448]
mov r8d, 0x100
mov rcx, rsi
call fcn.18000f03c
mov rdx, qword [0x180043458]
mov r8d, 0x200
mov rcx, rdi
call fcn.18000f03c
mov rcx, qword [0x180043440]
mov r8d, 0x400
mov rdx, rbx
mov dword [0x180043468], 1
call fcn.1800197c0
test eax, eax
je 0x1800196ce
or rdx, 0xffffffffffffffff
inc rdx
cmp byte [rbx + rdx], 0
jne 0x1800196ba
mov r8d, reloc.WS2_32.dll_ntohs
mov rcx, rbx
call rbp
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1800199f4
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov esi, r8d
mov rdi, rdx
mov rbp, rcx
test r8d, r8d
je 0x180019a4e
xor r9d, r9d
mov edx, ebx
mov rcx, rbp
lea r8d, [r9 + 1]
add rdx, rdi
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x180019a4e
add ebx, eax
cmp ebx, 2
jb 0x180019a4a
lea eax, [rbx - 1]
cmp byte [rax + rdi], 0xa
jne 0x180019a4a
lea eax, [rbx - 2]
cmp byte [rax + rdi], 0xd
je 0x180019a66
cmp ebx, esi
jb 0x180019a18
or eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
lea ecx, [rbx - 2]
mov eax, ebx
mov byte [rcx + rdi], 0
jmp 0x180019a51

Function at 0x18001af20
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.18001ad88

Function at 0x180022a10
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180022a26
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180022a28
xor eax, eax
test eax, eax
je 0x180022a38
mov ecx, eax
call fcn.18001c44c
or eax, 0xffffffff
jmp 0x180022a3a
xor eax, eax
add rsp, 0x28
ret
Function at 0x180022a40
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x180022a58
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180022a5a
xor eax, eax
test eax, eax
je 0x180022a6a
mov ecx, eax
call fcn.18001c44c
or eax, 0xffffffff
jmp 0x180022a6c
xor eax, eax
add rsp, 0x28
ret

Function at 0x180022a74
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x180022a8a
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180022a8c
xor eax, eax
test eax, eax
je 0x180022a9c
mov ecx, eax
call fcn.18001c44c
or eax, 0xffffffff
jmp 0x180022a9e
xor eax, eax
add rsp, 0x28
ret
Function at 0x100003240
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x100005100]
jne 0x10000325b
rol rcx, 0x10
test cx, 0xffff
jne 0x100003257
ret 0
ror rcx, 0x10
jmp 0x100003268
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rbx, rcx
lea rsi, [0x1000051c0]
mov rcx, rsi
call sub.ntdll.dll_RtlCaptureContext
mov rdi, qword [0x1000052b8]
lea rdx, [rsp + 0x70]
mov rcx, rdi
xor r8d, r8d
call sub.ntdll.dll_RtlLookupFunctionEntry
test rax, rax
je 0x1000032db
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x80]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov r8, rdi
mov qword [rsp + 0x20], rsi
call sub.ntdll.dll_RtlVirtualUnwind
mov r11, qword [0x1000052b8]
jmp 0x1000032f7
mov r11, qword [rsp + 0x68]
lea rax, [rsp + 0x68]
add rax, 8
mov qword [0x1000052b8], r11
mov qword [0x100005258], rax
mov rax, qword [0x100005100]
mov qword [0x100005240], rbx
mov qword [0x100005130], r11
mov dword [0x100005124], 1
mov ebx, 0xc0000409
lea rcx, [0x100001370]
mov dword [0x100005120], ebx
mov qword [rsp + 0x40], rax
mov rax, qword [0x100005108]
mov qword [rsp + 0x48], rax
call sub.ntdll.dll_RtlUnhandledExceptionFilter
mov edx, ebx
or rcx, 0xffffffffffffffff
call sub.ntdll.dll_NtTerminateProcess
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x100003268
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x100005100]
jne 0x10000325b
rol rcx, 0x10
test cx, 0xffff
jne 0x100003257
ret 0
ror rcx, 0x10
jmp 0x100003268
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rbx, rcx
lea rsi, [0x1000051c0]
mov rcx, rsi
call sub.ntdll.dll_RtlCaptureContext
mov rdi, qword [0x1000052b8]
lea rdx, [rsp + 0x70]
mov rcx, rdi
xor r8d, r8d
call sub.ntdll.dll_RtlLookupFunctionEntry
test rax, rax
je 0x1000032db
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x80]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov r8, rdi
mov qword [rsp + 0x20], rsi
call sub.ntdll.dll_RtlVirtualUnwind
mov r11, qword [0x1000052b8]
jmp 0x1000032f7
mov r11, qword [rsp + 0x68]
lea rax, [rsp + 0x68]
add rax, 8
mov qword [0x1000052b8], r11
mov qword [0x100005258], rax
mov rax, qword [0x100005100]
mov qword [0x100005240], rbx
mov qword [0x100005130], r11
mov dword [0x100005124], 1
mov ebx, 0xc0000409
lea rcx, [0x100001370]
mov dword [0x100005120], ebx
mov qword [rsp + 0x40], rax
mov rax, qword [0x100005108]
mov qword [rsp + 0x48], rax
call sub.ntdll.dll_RtlUnhandledExceptionFilter
mov edx, ebx
or rcx, 0xffffffffffffffff
call sub.ntdll.dll_NtTerminateProcess
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400151bc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14001523a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140015231
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140015231
mov rax, qword [rbp - 8]
jmp 0x14001524f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140015204
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x18001b360
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, 0x23
syscall
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
push rcx
mov rdx, qword gs:[rdx + 0x60]
push rsi
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
push r9
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov ecx, dword [rax + 0x18]
push rax
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040ca
dec rcx
xor r9, r9
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021

Function at 0x1000011c8
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x90
and dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RegisterApplicationRestart]
xor edx, edx
lea ecx, [rdx + 2]
call sub.MsCtfMonitor.DLL_DoMsCtfMonitor
mov eax, 1
add rsp, 0x90
pop rbx
ret
Function at 0x1400183a0
Capabilities:
Hash data using murmur3

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rdi, [rdx + 3]
test rdx, rdx
mov rbp, rcx
mov rsi, rdx
cmovns rdi, rdx
and rdi, 0xfffffffffffffffc
jle 0x14001855f
test rdx, rdx
jle 0x14001841b
mov r13, qword [0x140049120]
mov ebx, dword [rcx]
mov rcx, r13
call sym.__emutls_get_address
cmp byte [rax], 0
jne 0x140018438
xor r12d, r12d
mov ecx, 4
imul eax, ebx, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, r12d
rol eax, 0xd
lea r12d, [rax + rax*4 - 0x19ab949c]
cmp rcx, rdi
jge 0x140018440
cmp rsi, rcx
jle 0x14001841d
mov ebx, dword [rbp + rcx]
add rcx, 4
jmp 0x1400183ea
xor ecx, ecx
lea rdx, [rsi - 1]
call sym.raiseIndexError2
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor eax, eax
jmp 0x140018428
mov rax, rsi
and eax, 3
je 0x140018587
sub rax, 1
mov r8, rcx
xor edx, edx
add r8, rax
js 0x14001859f
cmp r8, rax
jb 0x14001859f
test rdx, rdx
jne 0x140018553
cmp r8, rsi
jge 0x140018540
test r8, r8
js 0x140018540
movzx edx, byte [rbp + r8]
test rax, rax
je 0x1400184e8
sub rax, 1
mov r9, rcx
xor r10d, r10d
add r9, rax
js 0x1400185a9
cmp r9, rax
jb 0x1400185a9
mov r8, r9
test r10, r10
jne 0x140018553
cmp rsi, r9
jle 0x140018540
test r9, r9
js 0x140018540
movzx r8d, byte [rbp + r9]
shl edx, 8
or edx, r8d
test rax, rax
je 0x1400184e8
test rcx, rcx
js 0x14001853d
cmp rsi, rcx
jle 0x14001853d
movzx eax, byte [rbp + rcx]
shl edx, 8
or edx, eax
imul ebx, edx, 0xcc9e2d51
mov r13, qword [0x140049120]
rol ebx, 0xf
mov rcx, r13
call sym.__emutls_get_address
cmp byte [rax], 0
jne 0x140018438
imul ebx, ebx, 0x1b873593
xor r12d, esi
xor r12d, ebx
mov eax, r12d
shr eax, 0x10
xor eax, r12d
imul eax, eax, 0x85ebca6b
mov edx, eax
shr edx, 0xd
xor edx, eax
imul edx, edx, 0xc2b2ae35
mov eax, edx
shr eax, 0x10
xor eax, edx
jmp 0x140018428
mov r8, rcx
lea rdx, [rsi - 1]
mov rcx, r8
call sym.raiseIndexError2
xor eax, eax
jmp 0x140018428
call sym.raiseOverflow
xor eax, eax
jmp 0x140018428
sar rdx, 0x3f
shr rdx, 0x3e
lea rax, [rsi + rdx]
and eax, 3
sub rax, rdx
test rax, rax
jle 0x14001858e
sub rax, 1
xor ecx, ecx
xor r12d, r12d
mov r8, rax
jmp 0x140018470
xor ebx, ebx
jmp 0x1400184f8
mov r13, qword [0x140049120]
xor r12d, r12d
xor ebx, ebx
jmp 0x1400184f8
mov edx, 1
jmp 0x140018467
mov r10d, 1
jmp 0x1400184a9

Function at 0x1400185c0
Capabilities:
Hash data using murmur3

Disassembly:
sub rsp, 0x28
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
test rdx, rdx
js 0x1400185e8
lea rcx, [rax + 8]
test rax, rax
cmove rcx, rax
add rsp, 0x28
jmp sym.murmurHash__pureZhashes_u192
lea r9, [rdx - 1]
mov r8, rdx
xor ecx, ecx
mov rdx, r9
call sym.raiseIndexError4
xor eax, eax
add rsp, 0x28
ret
Function at 0x140018930
Capabilities:
Link many functions at runtime

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r12, qword [rdx]
mov rsi, qword [rdx + 8]
mov rbp, qword [r8]
mov rdi, qword [r8 + 8]
mov r13, rcx
mov rcx, qword [0x140049120]
call sym.__emutls_get_address
mov rbx, rax
test r13, r13
je 0x140018a10
test r12, r12
lea rax, [0x1400460a0]
lea rdx, [rsi + 8]
mov rcx, r13
cmove rdx, rax
call sym.symAddr__pureZdynlib_u74
cmp byte [rbx], 0
jne 0x140018989
test rax, rax
je 0x1400189a0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
test rbp, rbp
jle 0x1400189bb
lea rdx, [rdi + 8]
mov rcx, r13
call sym.symAddr__pureZdynlib_u74
cmp byte [rbx], 0
jne 0x140018989
test rax, rax
jne 0x140018989
mov r13, qword [0x1400524f8]
test r13, r13
je 0x140018a38
test r12, r12
lea rax, [0x1400460a0]
lea rdx, [rsi + 8]
mov rcx, r13
cmove rdx, rax
call sym.symAddr__pureZdynlib_u74
cmp byte [rbx], 0
jne 0x140018989
test rax, rax
jne 0x140018989
test rbp, rbp
jle 0x140018a26
lea rdx, [rdi + 8]
mov rcx, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.symAddr__pureZdynlib_u74
mov r13, qword [0x1400524f8]
test r13, r13
je 0x140018a38
cmp byte [rbx], 1
je 0x140018a26
test r13, r13
jne 0x1400189c7
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call sym.loadLib__pureZdynlib_u6
cmp byte [rbx], 0
mov r13, rax
jne 0x140018a26
mov qword [0x1400524f8], rax
jmp 0x140018a1c
Function at 0x140025de0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rax, rcx
mov rcx, r8
test rax, rax
je 0x140025e08
mov r8, qword [rax]
cmp word [r8 + 0x12], 1
jle 0x140025e40
mov r8, qword [r8 + 0x18]
cmp dword [r8 + 8], 0x2444a200
jne 0x140025e40
test rcx, rcx
js 0x140025e20
mov r9, qword [rax + 0x58]
mov r8, rcx
mov rcx, r9
add rsp, 0x28
jmp sym.readBuffer__stdZsyncio_u165
movabs r8, 0x7fffffffffffffff
xor edx, edx
call sym.raiseRangeErrorI
xor eax, eax
add rsp, 0x28
ret
call sym.raiseObjectConversionError
xor eax, eax
add rsp, 0x28
ret

Function at 0x140025e90
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov r9, qword [r8]
mov rax, rcx
mov rcx, qword [r8 + 8]
test rax, rax
je 0x140025ebc
mov r8, qword [rax]
cmp word [r8 + 0x12], 1
jle 0x140025f10
mov r8, qword [r8 + 0x18]
cmp dword [r8 + 8], 0x2444a200
jne 0x140025f10
mov r8, qword [rdx]
test r9, r9
js 0x140025ef8
cmp r8, r9
jle 0x140025ef8
add rcx, 1
jo 0x140025f1c
sub rcx, r9
jo 0x140025f1c
test rcx, rcx
js 0x140025f30
mov rdx, qword [rdx + 8]
mov r8, rcx
lea rdx, [rdx + r9 + 8]
mov r9, qword [rax + 0x58]
mov rcx, r9
add rsp, 0x28
jmp sym.readBuffer__stdZsyncio_u165
lea rdx, [r8 - 1]
mov rcx, r9
call sym.raiseIndexError2
xor eax, eax
add rsp, 0x28
ret
call sym.raiseObjectConversionError
xor eax, eax
add rsp, 0x28
ret
call sym.raiseOverflow
xor eax, eax
add rsp, 0x28
ret
movabs r8, 0x7fffffffffffffff
xor edx, edx
call sym.raiseRangeErrorI
jmp 0x140025f04
Function at 0x140030320
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140030f52
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140052688]
test eax, eax
je 0x140030fea
lea rax, [0x140052660]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140052690]
mov qword [rbp - 8], rax
jmp 0x140030fce
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140030fc2
cmp qword [rbp - 0x10], 0
je 0x140030fc2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140030f88
lea rax, [0x140052660]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140030feb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400310f0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140031118
mov eax, 0
jmp 0x140031166
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140031141
mov eax, 0
jmp 0x140031166
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140031161
mov eax, 0
jmp 0x140031166
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14003116c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400311ea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400311e1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400311e1
mov rax, qword [rbp - 8]
jmp 0x1400311ff
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400311b4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140038c94
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x10], 0
je 0x140038dde
mov rcx, qword [rbp + 0x10]
call sym.pthread_spin_destroy
cmp eax, 1
jne 0x140038dd1
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
movabs rax, 0x6b5f6e6970732070
movabs rdx, 0x20726f6620737965
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
movabs rax, 0x20646165726874
mov edx, 0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0
mov word [rbp - 8], 0
mov byte [rbp - 6], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov ecx, eax
lea rax, [rbp - 0x70]
add rax, 0x27
mov r8d, 0xa
mov rdx, rax
mov rax, qword [sym.imp.msvcrt.dll__ultoa]
call rax
mov dword [rbp - 4], 0x27
jmp 0x140038d87
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x140038d9d
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x140038d83
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x140038dbc
mov eax, dword [rbp - 4]
cdqe
mov byte [rbp + rax - 0x70], 0xa
mov eax, dword [rbp - 4]
add eax, 1
cdqe
mov byte [rbp + rax - 0x70], 0
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
call sym.abort
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax], rdx
jmp 0x140038ddf
nop
add rsp, 0x90
pop rbp
ret
Function at 0x140039dfb
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [sym.imp.KERNEL32.dll_TlsAlloc]
call rax
mov dword [0x140044980], eax
mov eax, dword [0x140044980]
cmp eax, 0xffffffff
jne 0x140039e22
call sym.abort
nop
add rsp, 0x20
pop rbp
ret

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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xffffffffffffffff
lea rax, [sym.pthread_tls_init]
mov rdx, rax
lea rax, [0x140053110]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x140044980]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x14003a028
mov rax, qword [rbp - 0x10]
jmp 0x14003a188
call sym.pop_pthread_mem
mov qword [rbp - 0x10], rax
mov rax, qword [sym.__dyn_tls_pthread]
test rax, rax
je 0x14003a044
cmp qword [rbp - 0x10], 0
jne 0x14003a04e
mov eax, 0
jmp 0x14003a188
mov rax, qword [rbp - 0x10]
mov dword [rax + 0x44], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0x70], eax
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 0x10]
lea rcx, [rax + 0x68]
mov rax, qword [rbp - 8]
mov rdx, rax
call sym.replace_spin_keys
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xb8], 0
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
lea rdi, [rax + 0x28]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rsi, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
test eax, eax
jne 0x14003a129
call sym.abort
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadPriority]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0xc0], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 0
mov rax, qword [rbp - 0x10]
movzx edx, byte [rax + 0x40]
and edx, 0xffffffcf
or edx, 0x10
mov byte [rax + 0x40], dl
mov eax, dword [0x140044980]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x14003a184
call sym.abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret