joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400050c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x14009c688]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x20], 0
mov byte [rsp + 0x38], Ordinal_79
mov byte [rsp + 0x39], 0x45
mov byte [rsp + 0x3a], 0x52
mov byte [rsp + 0x3b], Ordinal_79
mov byte [rsp + 0x3c], 0x45
mov byte [rsp + 0x3d], Ordinal_79
mov byte [rsp + 0x3e], 0x33
mov byte [rsp + 0x3f], reloc.WLDAP32.dll_Ordinal_50
mov byte [rsp + 0x40], reloc.WLDAP32.dll_Ordinal_46
mov byte [rsp + 0x41], 0x64
mov byte [rsp + 0x42], WSASetLastError
mov byte [rsp + 0x43], WSASetLastError
mov byte [rsp + 0x44], 0
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
mov byte [rsp + 0x48], 0x47
mov byte [rsp + 0x49], 0x65
mov byte [rsp + 0x4a], reloc.WS2_32.dll_WSACleanup
mov byte [rsp + 0x4b], 0x43
mov byte [rsp + 0x4c], reloc.WS2_32.dll_WSAGetLastError
mov byte [rsp + 0x4d], WSASetLastError
mov byte [rsp + 0x4e], reloc.WS2_32.dll_WSASetLastError
mov byte [rsp + 0x4f], 0x75
mov byte [rsp + 0x50], reloc.WS2_32.dll_WSACleanup
mov byte [rsp + 0x51], 0x65
mov byte [rsp + 0x52], WSACleanup
mov byte [rsp + 0x53], Ordinal_79
mov byte [rsp + 0x54], 0x61
mov byte [rsp + 0x55], WSASetLastError
mov byte [rsp + 0x56], 0x65
mov byte [rsp + 0x57], 0x41
mov byte [rsp + 0x58], 0
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call qword [rsp + Ordinal_41]
test eax, eax
je 0x1400051da
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x90]
call fcn.140009890
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x90]
jmp 0x140005201
lea rdx, [0x14008e5db]
mov rcx, qword [rsp + 0x90]
call fcn.140009890
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14007c450
add rsp, 0x88
ret
Function at 0x1400055a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub rsp, 0x168
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x14009c688]
xor rax, rsp
mov qword [rsp + 0x158], rax
lea rcx, [rsp + 0x80]
call fcn.140005520
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x80]
call fcn.140009550
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x80]
call fcn.1400094e0
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x80]
call fcn.140009550
mov rcx, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x48]
mov r9, qword [rcx]
mov rcx, qword [rsp + 0x50]
mov r8, qword [rcx]
mov rdx, qword [rax]
lea rcx, [rsp + 0x78]
call fcn.14000be40
mov byte [rsp + 0x148], 0x63
mov byte [rsp + 0x149], Ordinal_60
mov byte [rsp + 0x14a], 0x5c
mov byte [rsp + 0x14b], 0x75
mov byte [rsp + 0x14c], reloc.WS2_32.dll_WSAStartup
mov byte [rsp + 0x14d], 0x65
mov byte [rsp + 0x14e], WSACleanup
mov byte [rsp + 0x14f], reloc.WS2_32.dll_WSAStartup
mov byte [rsp + 0x150], 0x5c
mov byte [rsp + 0x151], reloc.WLDAP32.dll_Ordinal_60
mov byte [rsp + 0x152], 0x75
mov byte [rsp + 0x153], reloc.WS2_32.dll_WSAStartup
mov byte [rsp + 0x154], 0x65
mov byte [rsp + 0x155], WSACleanup
mov byte [rsp + 0x156], 0x3e
mov byte [rsp + 0x157], 0
xor r8d, r8d
lea rdx, [rsp + 0x148]
lea rcx, [rsp + 0x80]
call fcn.140009380
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
je 0x1400056fc
mov dword [rsp + 0x30], 0
lea rcx, [rsp + 0x80]
call fcn.140001780
mov eax, dword [rsp + 0x30]
jmp 0x140005857
mov byte [rsp + 0x140], 0x63
mov byte [rsp + 0x141], Ordinal_60
mov byte [rsp + 0x142], 0x5c
mov byte [rsp + 0x143], reloc.WS2_32.dll_WSACleanup
mov byte [rsp + 0x144], WSACleanup
mov byte [rsp + 0x145], reloc.WS2_32.dll_WSASetLastError
mov byte [rsp + 0x146], 0
xor r8d, r8d
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x80]
call fcn.140009380
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
je 0x140005777
mov dword [rsp + 0x34], 0
lea rcx, [rsp + 0x80]
call fcn.140001780
mov eax, dword [rsp + 0x34]
jmp 0x140005857
mov edx, Ordinal_41
lea rcx, [rsp + 0xa0]
call fcn.1400043b0
mov r8d, 1
lea rdx, str._c_d_:w7_.1__..exe_
lea rcx, [rsp + 0xa0]
call fcn.140008c80
nop
mov edx, reloc.WS2_32.dll_WSASetLastError
lea rcx, [rsp + 0xd0]
call fcn.1400043b0
lea rcx, [rsp + 0xd0]
call fcn.140008bc0
nop
xor r9d, r9d
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x80]
call fcn.14000bdb0
movzx eax, al
test eax, eax
je 0x140005822
mov dword [rsp + 0x38], 0
lea rcx, [rsp + 0xd0]
call fcn.1400043d0
nop
lea rcx, [rsp + 0xa0]
call fcn.140008c40
nop
lea rcx, [rsp + 0x80]
call fcn.140001780
mov eax, dword [rsp + 0x38]
jmp 0x140005857
mov dword [rsp + 0x3c], 1
lea rcx, [rsp + 0xd0]
call fcn.1400043d0
nop
lea rcx, [rsp + 0xa0]
call fcn.140008c40
nop
lea rcx, [rsp + 0x80]
call fcn.140001780
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.14007c450
add rsp, 0x168
ret
Function at 0x140006150
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x108
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x14009c688]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x38]
call fcn.140001880
nop
mov dword [rsp + 0x24], 0x80
lea rdx, [rsp + 0x70]
mov ecx, dword [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x38]
call fcn.140009780
mov byte [rsp + 0x58], 0x5f
mov byte [rsp + 0x59], 0x43
mov byte [rsp + 0x5a], Ordinal_79
mov byte [rsp + 0x5b], 0x5f
mov byte [rsp + 0x5c], 0x63
mov byte [rsp + 0x5d], 0x64
mov byte [rsp + 0x5e], 0x64
mov byte [rsp + 0x5f], 0x62
mov byte [rsp + 0x60], gethostname
mov byte [rsp + 0x61], 0x61
mov byte [rsp + 0x62], gethostname
mov byte [rsp + 0x63], gethostname
mov byte [rsp + 0x64], 0x69
mov byte [rsp + 0x65], WSASetLastError
mov byte [rsp + 0x66], reloc.WS2_32.dll_WSAStartup
mov byte [rsp + 0x67], 0x65
mov byte [rsp + 0x68], reloc.WLDAP32.dll_Ordinal_46
mov byte [rsp + 0x69], reloc.WS2_32.dll_WSACleanup
mov byte [rsp + 0x6a], WSASetLastError
mov byte [rsp + 0x6b], reloc.WS2_32.dll_WSASetLastError
mov byte [rsp + 0x6c], 0
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x38]
call fcn.140009720
lea rcx, [rsp + 0x38]
call fcn.1400094b0
mov rcx, rax
call fcn.140022270
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 1
jne 0x140006276
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x110]
call fcn.1400017b0
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x38]
call fcn.140001780
mov rax, qword [rsp + 0x110]
jmp 0x1400062a7
lea rdx, [0x14008e5df]
mov rcx, qword [rsp + 0x110]
call fcn.140009890
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x38]
call fcn.140001780
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.14007c450
add rsp, 0x108
ret
Function at 0x1400065b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x14009c688]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x70]
call fcn.140005520
nop
lea rcx, [rsp + 0x50]
call fcn.140001880
nop
mov byte [rsp + 0x90], 0x50
mov byte [rsp + 0x91], WSACleanup
mov byte [rsp + 0x92], reloc.WS2_32.dll_WSAGetLastError
mov byte [rsp + 0x93], 0x64
mov byte [rsp + 0x94], 0x75
mov byte [rsp + 0x95], 0x63
mov byte [rsp + 0x96], reloc.WS2_32.dll_WSACleanup
mov byte [rsp + 0x97], Ordinal_79
mov byte [rsp + 0x98], 0x61
mov byte [rsp + 0x99], WSACleanup
mov byte [rsp + 0x9a], 0x65
mov byte [rsp + 0x9b], 0
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x30]
call fcn.140009890
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.1400062c0
nop
lea rcx, [rsp + 0x30]
call fcn.140001780
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0xc0]
call fcn.1400017b0
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x50]
call fcn.140001780
nop
lea rcx, [rsp + 0x70]
call fcn.140001780
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14007c450
add rsp, 0xb8
ret
Function at 0x140006fc0
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov rax, qword [0x14009c688]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0x80
lea rdx, [rsp + 0x24]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0xd0]
call fcn.140009890
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14007c450
add rsp, 0xc8
ret

Function at 0x140007040
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x158
mov rax, qword [0x14009c688]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0x101
lea rdx, [rsp + 0x24]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x160]
call fcn.140009890
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14007c450
add rsp, 0x158
ret
Function at 0x140008b30
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r9d, 0x6c078965
mov r8d, 0xffffffff
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call fcn.140009dc0
mov rax, qword [rsp + 0x30]
add rsp, 0x28
ret

Function at 0x14000fd90
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x270
jne 0x14000fdb2
mov rcx, qword [rsp + 0x40]
call fcn.140010170
jmp 0x14000fdc9
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4e0
jb 0x14000fdc9
mov rcx, qword [rsp + 0x40]
call fcn.140010230
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4 + 4]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0x40]
mov dword [rcx], eax
mov eax, dword [rsp + 0x20]
shr eax, 0xb
mov rcx, qword [rsp + 0x40]
and eax, dword [rcx + 0x1384]
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0x12
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x140010170
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov dword [rsp], 0x270
jmp 0x14001018a
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 0x4e0
jge 0x14001021c
mov eax, dword [rsp]
sub eax, 0x270
cdqe
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax*4 + 4]
and eax, 0x80000000
mov ecx, dword [rsp]
sub ecx, 0x26f
movsxd rcx, ecx
mov rdx, qword [rsp + 0x20]
mov ecx, dword [rdx + rcx*4 + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
and eax, 1
test eax, eax
je 0x1400101e3
mov dword [rsp + 8], 0x9908b0df
jmp 0x1400101eb
mov dword [rsp + 8], 0
mov eax, dword [rsp + 4]
shr eax, 1
xor eax, dword [rsp + 8]
mov ecx, dword [rsp]
sub ecx, 0xe3
movsxd rcx, ecx
mov rdx, qword [rsp + 0x20]
xor eax, dword [rdx + rcx*4 + 4]
movsxd rcx, dword [rsp]
mov rdx, qword [rsp + 0x20]
mov dword [rdx + rcx*4 + 4], eax
jmp 0x140010182
add rsp, 0x18
ret
Function at 0x140010230
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov dword [rsp], 0
jmp 0x14001024a
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 0xe3
jge 0x1400102dc
mov eax, dword [rsp]
add eax, 0x270
cdqe
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax*4 + 4]
and eax, 0x80000000
mov ecx, dword [rsp]
add ecx, 0x271
movsxd rcx, ecx
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx*4 + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
and eax, 1
test eax, eax
je 0x1400102a3
mov dword [rsp + 8], 0x9908b0df
jmp 0x1400102ab
mov dword [rsp + 8], 0
mov eax, dword [rsp + 4]
shr eax, 1
xor eax, dword [rsp + 8]
mov ecx, dword [rsp]
add ecx, 0x3fd
movsxd rcx, ecx
mov rdx, qword [rsp + 0x30]
xor eax, dword [rdx + rcx*4 + 4]
movsxd rcx, dword [rsp]
mov rdx, qword [rsp + 0x30]
mov dword [rdx + rcx*4 + 4], eax
jmp 0x140010242
jmp 0x1400102e6
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 0x26f
jge 0x140010378
mov eax, dword [rsp]
add eax, 0x270
cdqe
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax*4 + 4]
and eax, 0x80000000
mov ecx, dword [rsp]
add ecx, 0x271
movsxd rcx, ecx
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx*4 + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0xc]
and eax, 1
test eax, eax
je 0x14001033f
mov dword [rsp + 0x10], 0x9908b0df
jmp 0x140010347
mov dword [rsp + 0x10], 0
mov eax, dword [rsp + 0xc]
shr eax, 1
xor eax, dword [rsp + 0x10]
mov ecx, dword [rsp]
sub ecx, 0xe3
movsxd rcx, ecx
mov rdx, qword [rsp + 0x30]
xor eax, dword [rdx + rcx*4 + 4]
movsxd rcx, dword [rsp]
mov rdx, qword [rsp + 0x30]
mov dword [rdx + rcx*4 + 4], eax
jmp 0x1400102de
mov eax, dword [rsp]
add eax, 0x270
cdqe
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax*4 + 4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x14], eax
mov eax, dword [rsp + 0x14]
and eax, 1
test eax, eax
je 0x1400103c1
mov dword [rsp + 0x18], 0x9908b0df
jmp 0x1400103c9
mov dword [rsp + 0x18], 0
mov eax, dword [rsp + 0x14]
shr eax, 1
xor eax, dword [rsp + 0x18]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rsp + 0x30]
xor eax, dword [rdx + rcx + 4]
movsxd rcx, dword [rsp]
mov rdx, qword [rsp + 0x30]
mov dword [rdx + rcx*4 + 4], eax
mov rax, qword [rsp + 0x30]
mov dword [rax], 0
add rsp, 0x28
ret
Function at 0x14001efc0
Capabilities:
Reference http user-agent string

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x38], 0
lea rdx, str.User_Agent:_Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_116.0.0.0_Safari_537.36
mov rcx, qword [rsp + 0x38]
call fcn.140023720
mov qword [rsp + 0x38], rax
lea rdx, str.Accept:__
mov rcx, qword [rsp + 0x38]
call fcn.140023720
mov qword [rsp + 0x38], rax
lea rdx, str.Accept_Language:_zh_CN_zh_q0.9
mov rcx, qword [rsp + 0x38]
call fcn.140023720
mov qword [rsp + 0x38], rax
mov ecx, 3
call fcn.1400235c0
call fcn.140023360
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14001f0ee
xor r8d, r8d
mov edx, 0x40
mov rcx, qword [rsp + 0x30]
call fcn.140026370
xor r8d, r8d
mov edx, 0x51
mov rcx, qword [rsp + 0x30]
call fcn.140026370
mov r8, qword [rsp + 0x38]
mov edx, 0x2727
mov rcx, qword [rsp + 0x30]
call fcn.140026370
mov rcx, qword [rsp + 0x50]
call fcn.1400094b0
mov r8, rax
mov edx, 0x2712
mov rcx, qword [rsp + 0x30]
call fcn.140026370
mov rcx, qword [rsp + 0x58]
call fcn.1400094b0
mov r8, rax
mov edx, 0x271f
mov rcx, qword [rsp + 0x30]
call fcn.140026370
mov r8d, 1
mov edx, Ordinal_50
mov rcx, qword [rsp + 0x30]
call fcn.140026370
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x30]
call fcn.1400233d0
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x14001f0ee
mov dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x30]
call fcn.140023330
call fcn.140023560
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x28], eax
mov rcx, qword [rsp + 0x50]
call fcn.140001780
mov rcx, qword [rsp + 0x58]
call fcn.140001780
mov eax, dword [rsp + 0x28]
add rsp, 0x48
ret
Function at 0x140021240
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x178
mov rax, qword [0x14009c688]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140021292
xor eax, eax
jmp 0x1400213f1
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4550
je 0x1400212bf
xor eax, eax
jmp 0x1400213f1
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
mov rdi, rax
lea rsi, [rcx + 0x18]
mov ecx, 0xf0
rep movsb byte [rdi], byte [rsi]
mov eax, 8
imul rax, rax, 0
mov eax, dword [rsp + rax + 0xe0]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x20], 0
jmp 0x140021353
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x20], eax
jae 0x1400213f1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x1400213d1
inc rax
test dl, dl
jne 0x1400213be
xor eax, eax
jmp 0x1400213d6
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1400213ec
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [rsp + 0x68]
jmp 0x1400213f1
jmp 0x140021349
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14007c450
add rsp, 0x178
pop rdi
pop rsi
ret
Function at 0x140021410
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword gs:[0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400214a2
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x48]
test eax, eax
je 0x140021491
mov rdx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x50]
call fcn.1400210a0
test eax, eax
je 0x14002148f
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx + rax + 0x20]
jmp 0x1400214a4
jmp 0x140021493
jmp 0x1400214a2
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
jmp 0x14002144e
xor eax, eax
add rsp, 0x48
ret
Function at 0x140038650
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0xab7], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x140038710
cmp qword [rcx + 0x268], 0
je 0x1400386ce
mov qword [rsp + 0x40], rbx
call fcn.1400269b0
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.140026d10
mov rcx, qword [rdi + 0x1e0]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x268]
movzx edx, bl
mov rcx, rdi
call fcn.140026d10
mov rbx, qword [rsp + 0x40]
jmp 0x140038710
cmp esi, 2
ja 0x140038710
mov r9, qword [rdi + 0x1d8]
lea rax, [0x140081340]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x1d8]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140038730
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x160
mov rax, qword [0x14009c688]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp byte [rcx + 0xab7], 0
mov rdi, rcx
jne 0x140038773
cmp qword [rcx + 0x1e8], 0
je 0x140038861
mov r8, rdx
mov qword [rsp + 0x150], rsi
mov edx, 0x100
lea r9, [rsp + 0x180]
lea rcx, [rsp + 0x30]
call fcn.1400490b0
mov rdx, qword [rdi + 0x1e8]
movsxd r9, eax
test rdx, rdx
je 0x1400387d9
cmp byte [rdi + 0x135f], 0
jne 0x1400387d9
lea r8, [rsp + 0x30]
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r8]
lea r8, [r8 + 1]
mov byte [rdx], cl
lea rdx, [rdx + 1]
test cl, cl
jne 0x1400387c0
mov byte [rdi + 0x135f], 1
mov byte [rsp + r9 + 0x30], 0xa
inc r9d
movsxd rsi, r9d
cmp rsi, 0x102
jae 0x1400388b4
cmp byte [rdi + 0xab7], 0
mov byte [rsp + rsi + 0x30], 0
je 0x140038859
cmp qword [rdi + 0x268], 0
je 0x14003887a
mov rcx, rdi
mov qword [rsp + 0x158], rbx
call fcn.1400269b0
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.140026d10
mov rdx, qword [rdi + 0x1e0]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rdx
mov r9, rsi
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x268]
movzx edx, bl
mov rcx, rdi
call fcn.140026d10
mov rbx, qword [rsp + 0x158]
mov rsi, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14007c450
add rsp, 0x160
pop rdi
ret
mov r9, qword [rdi + 0x1d8]
lea rcx, [0x140081340]
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x1d8]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x140038859
call fcn.14007c5fc
int3

Function at 0x14003a5a0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
cdqe
add rsp, 0x28
ret