joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007e40
Capabilities:
Hide graphical window

Disassembly:
push rsi
sub rsp, 0x2b0
mov qword [rsp + 0x2a8], rcx
mov rax, qword [rsp + 0x2a8]
mov qword [0x14003c088], rax
lea rcx, [rsp + 0xa0]
xor edx, edx
mov r8d, 0x200
call sub.msvcrt.dll_memset
mov rax, qword [rsp + 0x2a8]
mov rax, qword [rax + 0x70]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x2a8]
mov rcx, qword [rax + 0x70]
call sub.msvcrt.dll_strlen
mov r8, qword [rsp + 0x60]
mov r9d, eax
lea rax, [rsp + 0xa0]
mov ecx, 0xfde9
xor edx, edx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0xff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea r8, [rsp + 0xa0]
mov rax, qword [0x1400367c0]
mov rax, qword [rax]
mov r11, qword [rax + 0xa0]
mov rax, qword [0x1400367c0]
mov rax, qword [rax]
mov r10, qword [rax]
mov rax, qword [rsp + 0x2a8]
xor ecx, ecx
lea rdx, str.ew::editWorkHours
mov r9d, 0x80000
xor esi, esi
mov dword [rsp + 0x20], 0x80000000
mov dword [rsp + 0x28], 0x80000000
mov dword [rsp + 0x30], 0xbe
mov dword [rsp + 0x38], 0x118
mov qword [rsp + 0x40], r11
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], r10
mov qword [rsp + 0x58], rax
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [rsp + 0x98], rax
mov rcx, qword [rsp + 0x98]
mov rax, qword [0x1400367c0]
mov rax, qword [rax]
mov edx, dword [rax + 8]
call qword [sym.imp.USER32.dll_ShowWindow]
lea rcx, [rsp + 0x68]
xor eax, eax
mov edx, eax
xor r9d, r9d
mov r8d, r9d
call qword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0
je 0x140007f99
lea rcx, [rsp + 0x68]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x68]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x140007f60
add rsp, 0x2b0
pop rsi
ret
Function at 0x14000c9c0
Capabilities:
Hide graphical window

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rax, qword [rsp + 0xe8]
mov eax, dword [rsp + 0xe0]
mov qword [rsp + 0x90], rcx
mov dword [rsp + 0x8c], edx
mov dword [rsp + 0x88], r8d
mov dword [rsp + 0x84], r9d
cmp qword [rsp + 0x90], 0
jne 0x14000ca18
mov qword [rsp + 0x98], 0
jmp 0x14000cbbc
mov rax, qword [rsp + 0x90]
cmp word [rax + 0x1e], 0
jne 0x14000cb2c
mov rax, qword [0x1400367c0]
mov rax, qword [rax]
mov rcx, qword [rax + 0x58]
call qword [sym.imp.USER32.dll_IsWindowVisible]
cmp eax, 0
jne 0x14000ca61
mov rax, qword [0x1400367c0]
mov rax, qword [rax]
mov rcx, qword [rax + 0x58]
mov edx, 6
call qword [sym.imp.USER32.dll_ShowWindow]
mov rax, qword [0x1400367c0]
mov rax, qword [rax]
mov rcx, qword [rax + 0x58]
mov edx, 1
call qword [sym.imp.USER32.dll_ShowWindow]
mov rax, qword [0x1400367c0]
mov rax, qword [rax]
mov rcx, qword [rax + 0x58]
lea rdx, [rsp + 0x74]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [rsp + 0x7c]
sub esi, dword [rsp + 0x74]
sub esi, 0x82
mov r11d, dword [rsp + 0x80]
sub r11d, dword [rsp + 0x78]
sub r11d, 0x7d
mov rax, qword [0x1400367c0]
mov rax, qword [rax]
mov r10, qword [rax + 0x58]
mov rax, qword [rsp + 0x90]
xor ecx, ecx
lea rdx, str.ew::orderView
xor r8d, r8d
mov r9d, 0x40800000
mov dword [rsp + 0x20], 0x82
mov dword [rsp + 0x28], 0x7d
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x38], r11d
mov qword [rsp + 0x40], r10
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], rax
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x98], rax
jmp 0x14000cbbc
lea rcx, str.Creating_completed_order_view__n
call fcn.14000cbd0
mov ebx, dword [rsp + 0x8c]
mov edi, dword [rsp + 0x88]
mov esi, dword [rsp + 0x84]
mov r11d, dword [rsp + 0xe0]
mov r10, qword [rsp + 0xe8]
mov rax, qword [rsp + 0x90]
xor ecx, ecx
lea rdx, str.ew::orderView
xor r8d, r8d
mov r9d, 0x50800000
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x38], r11d
mov qword [rsp + 0x40], r10
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], rax
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x14000f230
Capabilities:
Hide graphical window

Disassembly:
sub rsp, 0x98
mov rax, qword [0x1400367c0]
mov rax, qword [rax]
mov r10, qword [rax + 0x58]
mov rax, qword [0x1400367c0]
mov rax, qword [rax]
mov rax, qword [rax]
xor ecx, ecx
lea rdx, str.ew::requestDelivery
lea r8, [0x140034266]
mov r9d, 0x80000
xor r11d, r11d
mov dword [rsp + 0x20], 0x80000000
mov dword [rsp + 0x28], 0x80000000
mov dword [rsp + 0x30], 0x14b
mov dword [rsp + 0x38], 0x8b
mov qword [rsp + 0x40], r10
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [rsp + 0x90], rax
mov rax, qword [0x1400367c0]
mov rax, qword [rax]
mov rcx, qword [rax + 0x58]
xor edx, edx
call qword [sym.imp.USER32.dll_EnableWindow]
mov rcx, qword [rsp + 0x90]
mov rax, qword [0x1400367c0]
mov rax, qword [rax]
mov edx, dword [rax + 8]
call qword [sym.imp.USER32.dll_ShowWindow]
lea rcx, [rsp + 0x60]
xor eax, eax
mov edx, eax
xor r9d, r9d
mov r8d, r9d
call qword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0
je 0x14000f31f
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x14000f2e6
mov rax, qword [0x1400367c0]
mov rax, qword [rax]
mov rcx, qword [rax + 0x58]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
nop
add rsp, 0x98
ret
Function at 0x140018a60
Capabilities:
Connect socket
Initialize winsock library

Disassembly:
sub rsp, 0x1f8
mov qword [rsp + 0x1e8], rcx
mov dword [rsp + 0x1e4], edx
cmp qword [rsp + 0x1e8], 0
je 0x140018a93
cmp dword [rsp + 0x1e4], 0
jne 0x140018aa3
mov dword [rsp + 0x1f4], 0xffffffff
jmp 0x140018b91
cmp dword [0x14003c1e0], 0
jne 0x140018ae3
mov ecx, 0x202
lea rdx, [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0
je 0x140018ad9
mov dword [rsp + 0x1f4], 0xffffffff
jmp 0x140018b91
mov dword [0x14003c1e0], 1
mov ecx, 2
mov edx, 1
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x140018b17
mov dword [rsp + 0x1f4], 0xffffffff
jmp 0x140018b91
mov word [rsp + 0x30], 2
mov rcx, qword [rsp + 0x1e8]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x1e4]
mov cx, ax
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x32], ax
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov r8d, 0x10
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0xffffffff
jne 0x140018b85
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_closesocket]
mov dword [rsp + 0x1f4], 0xffffffff
jmp 0x140018b91
mov rax, qword [rsp + 0x40]
mov dword [rsp + 0x1f4], eax
mov eax, dword [rsp + 0x1f4]
add rsp, 0x1f8
ret

Function at 0x140018ba0
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x38
mov dword [rsp + 0x34], ecx
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x24], r8d
movsxd rcx, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x28]
mov r8d, dword [rsp + 0x24]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
nop
add rsp, 0x38
ret
Function at 0x140018c00
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x158
mov dword [rsp + 0x14c], ecx
lea rcx, [rsp + 0x142]
xor edx, edx
mov r8d, 0xa
call sub.msvcrt.dll_memset
movsxd rcx, dword [rsp + 0x14c]
lea rdx, [rsp + 0x142]
mov r8d, 9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x13c], eax
cmp dword [rsp + 0x13c], 0
jg 0x140018c68
mov qword [rsp + 0x150], 0
jmp 0x140018ebb
movsx eax, byte [rsp + 0x142]
cmp eax, 0x45
je 0x140018c8a
mov qword [rsp + 0x150], 0
jmp 0x140018ebb
mov dword [rsp + 0x138], 1
cmp dword [rsp + 0x138], 9
jge 0x140018cec
movsxd rax, dword [rsp + 0x138]
movsx eax, byte [rsp + rax + 0x142]
cmp eax, 0x20
jne 0x140018cd1
movsxd rax, dword [rsp + 0x138]
mov byte [rsp + rax + 0x142], 0
jmp 0x140018cec
jmp 0x140018cd6
mov eax, dword [rsp + 0x138]
add eax, 1
mov dword [rsp + 0x138], eax
jmp 0x140018c95
lea rcx, [rsp + 0x142]
add rcx, 1
call sub.msvcrt.dll_atoi
mov dword [rsp + 0x134], eax
cmp dword [rsp + 0x134], 0
jg 0x140018d23
mov qword [rsp + 0x150], 0
jmp 0x140018ebb
mov eax, dword [rsp + 0x134]
add eax, 1
movsxd rcx, eax
mov edx, 1
call sub.msvcrt.dll_calloc
mov qword [rsp + 0x128], rax
mov dword [rsp + 0x124], 0
cmp dword [rsp + 0x138], 9
jge 0x140018dc2
mov eax, dword [rsp + 0x138]
add eax, 1
cdqe
lea rcx, [rsp + 0x142]
add rcx, rax
call sub.msvcrt.dll_strlen
cmp rax, 0
jbe 0x140018dbd
mov rcx, qword [rsp + 0x128]
mov eax, dword [rsp + 0x138]
add eax, 1
cdqe
lea rdx, [rsp + 0x142]
add rdx, rax
call sub.msvcrt.dll_strcpy
mov ecx, dword [rsp + 0x138]
add ecx, 1
mov eax, 9
sub eax, ecx
mov dword [rsp + 0x124], eax
jmp 0x140018dc2
jmp 0x140018dc7
mov eax, dword [rsp + 0x134]
sub eax, dword [rsp + 0x124]
cmp eax, 0
jle 0x140018e46
movsxd rcx, dword [rsp + 0x14c]
mov rdx, qword [rsp + 0x128]
movsxd rax, dword [rsp + 0x124]
add rdx, rax
mov r8d, dword [rsp + 0x134]
sub r8d, dword [rsp + 0x124]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x13c], eax
cmp dword [rsp + 0x13c], 0
jg 0x140018e2c
jmp 0x140018e46
mov eax, dword [rsp + 0x13c]
add eax, dword [rsp + 0x124]
mov dword [rsp + 0x124], eax
jmp 0x140018dc7
mov rcx, qword [rsp + 0x128]
xor eax, eax
mov edx, eax
lea r8, [rsp + 0x28]
call fcn.14001c340
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140018e87
cmp qword [rsp + 0x20], 0
je 0x140018e87
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0
je 0x140018eae
cmp qword [rsp + 0x20], 0
je 0x140018e9d
mov rcx, qword [rsp + 0x20]
call fcn.140018ed0
mov qword [rsp + 0x150], 0
jmp 0x140018ebb
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x150]
add rsp, 0x158
ret
Function at 0x140018f40
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x68
mov dword [rsp + 0x5c], ecx
mov qword [rsp + 0x50], rdx
lea rcx, [rsp + 0x46]
xor edx, edx
mov r8d, 0xa
call sub.msvcrt.dll_memset
movsxd rcx, dword [rsp + 0x5c]
lea rdx, [rsp + 0x46]
mov r8d, 9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x140018f95
mov qword [rsp + 0x60], 0
jmp 0x140019119
movsx eax, byte [rsp + 0x46]
cmp eax, 0x45
je 0x140018fb1
mov qword [rsp + 0x60], 0
jmp 0x140019119
mov dword [rsp + 0x3c], 1
cmp dword [rsp + 0x3c], 9
jge 0x140018ffb
movsxd rax, dword [rsp + 0x3c]
movsx eax, byte [rsp + rax + 0x46]
cmp eax, 0x20
jne 0x140018fe6
movsxd rax, dword [rsp + 0x3c]
mov byte [rsp + rax + 0x46], 0
jmp 0x140018ffb
jmp 0x140018feb
mov eax, dword [rsp + 0x3c]
add eax, 1
mov dword [rsp + 0x3c], eax
jmp 0x140018fb9
lea rcx, [rsp + 0x46]
add rcx, 1
call sub.msvcrt.dll_atoi
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jg 0x140019026
mov qword [rsp + 0x60], 0
jmp 0x140019119
mov eax, dword [rsp + 0x38]
add eax, 1
movsxd rcx, eax
mov edx, 1
call sub.msvcrt.dll_calloc
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
cmp dword [rsp + 0x3c], 9
jge 0x1400190a4
mov eax, dword [rsp + 0x3c]
add eax, 1
cdqe
lea rcx, [rsp + 0x46]
add rcx, rax
call sub.msvcrt.dll_strlen
cmp rax, 0
jbe 0x14001909f
mov rcx, qword [rsp + 0x30]
mov eax, dword [rsp + 0x3c]
add eax, 1
cdqe
lea rdx, [rsp + 0x46]
add rdx, rax
call sub.msvcrt.dll_strcpy
mov ecx, dword [rsp + 0x3c]
add ecx, 1
mov eax, 9
sub eax, ecx
mov dword [rsp + 0x2c], eax
jmp 0x1400190a4
jmp 0x1400190a9
mov eax, dword [rsp + 0x38]
sub eax, dword [rsp + 0x2c]
cmp eax, 0
jle 0x140019104
movsxd rcx, dword [rsp + 0x5c]
mov rdx, qword [rsp + 0x30]
movsxd rax, dword [rsp + 0x2c]
add rdx, rax
mov r8d, dword [rsp + 0x38]
sub r8d, dword [rsp + 0x2c]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jg 0x1400190f3
jmp 0x140019104
mov eax, dword [rsp + 0x40]
add eax, dword [rsp + 0x2c]
mov dword [rsp + 0x2c], eax
jmp 0x1400190a9
mov ecx, dword [rsp + 0x2c]
mov rax, qword [rsp + 0x50]
mov dword [rax], ecx
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x140019130
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x58
mov dword [rsp + 0x50], ecx
mov qword [rsp + 0x48], rdx
cmp qword [rsp + 0x48], 0
jne 0x140019156
mov dword [rsp + 0x54], 0xffffffff
jmp 0x140019271
mov rcx, qword [rsp + 0x48]
mov edx, 0x1820
call fcn.14001a120
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140019183
mov dword [rsp + 0x54], 0xffffffff
jmp 0x140019271
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_strlen
mov dword [rsp + 0x3c], eax
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0xa
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x32]
mov r8d, dword [rsp + 0x3c]
lea rdx, str.E_d
call fcn.140019280
lea rcx, [rsp + 0x32]
call sub.msvcrt.dll_strlen
mov dword [rsp + 0x2c], eax
movsxd rcx, dword [rsp + 0x50]
lea rdx, [rsp + 0x32]
mov r8d, dword [rsp + 0x2c]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0xffffffff
je 0x1400191fc
mov eax, dword [rsp + 0x28]
cmp eax, dword [rsp + 0x2c]
jge 0x140019213
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
mov dword [rsp + 0x54], 0xffffffff
jmp 0x140019271
movsxd rcx, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x40]
mov r8d, dword [rsp + 0x3c]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0xffffffff
je 0x140019248
mov eax, dword [rsp + 0x28]
cmp eax, dword [rsp + 0x3c]
jge 0x14001925f
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
mov dword [rsp + 0x54], 0xffffffff
jmp 0x140019271
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
mov dword [rsp + 0x54], 0
mov eax, dword [rsp + 0x54]
add rsp, 0x58
ret
Function at 0x14001a290
Capabilities:
Encode data using xor

Disassembly:
lea r11d, [r8 + rdx - 0x21524111]
mov r9, rdx
mov r8d, r11d
mov edx, r11d
cmp r9, 0xc
jbe 0x14001a390
nop dword [rax + rax]
movzx r10d, byte [rcx + 5]
movzx eax, byte [rcx + 6]
shl r10d, 8
shl eax, 0x10
add r10d, eax
movzx eax, byte [rcx + 4]
add r10d, eax
movzx eax, byte [rcx + 7]
shl eax, 0x18
add r10d, eax
movzx eax, byte [rcx + 9]
add r10d, edx
movzx edx, byte [rcx + 0xa]
shl eax, 8
shl edx, 0x10
add eax, edx
movzx edx, byte [rcx + 8]
add eax, edx
movzx edx, byte [rcx + 0xb]
shl edx, 0x18
add eax, edx
movzx edx, byte [rcx + 1]
add eax, r11d
movzx r11d, byte [rcx + 2]
shl edx, 8
shl r11d, 0x10
add edx, r11d
movzx r11d, byte [rcx]
add edx, r11d
movzx r11d, byte [rcx + 3]
shl r11d, 0x18
add edx, r11d
sub edx, eax
add edx, r8d
mov r8d, eax
add eax, r10d
rol r8d, 4
xor r8d, edx
mov edx, r8d
sub r10d, r8d
add r8d, eax
rol edx, 6
xor edx, r10d
sub eax, edx
mov r10d, eax
mov eax, edx
rol eax, 8
xor eax, r10d
add edx, r8d
sub r9, 0xc
add rcx, 0xc
mov r10d, eax
sub r8d, eax
add eax, edx
rol r10d, 0x10
xor r8d, r10d
mov r10d, r8d
sub edx, r8d
add r8d, eax
ror r10d, 0xd
xor edx, r10d
mov r11d, edx
sub eax, edx
add edx, r8d
rol r11d, 4
xor r11d, eax
cmp r9, 0xc
ja 0x14001a2b0
lea r10, [0x140035400]
movsxd rax, dword [r10 + r9*4]
add rax, r10
jmp rax
movzx eax, byte [rcx + 0xb]
shl eax, 0x18
add r11d, eax
movzx eax, byte [rcx + 0xa]
shl eax, 0x10
add r11d, eax
movzx eax, byte [rcx + 9]
shl eax, 8
add r11d, eax
movzx eax, byte [rcx + 8]
add r11d, eax
movzx eax, byte [rcx + 7]
shl eax, 0x18
add edx, eax
movzx eax, byte [rcx + 6]
shl eax, 0x10
add edx, eax
movzx eax, byte [rcx + 5]
shl eax, 8
add edx, eax
movzx eax, byte [rcx + 4]
add edx, eax
movzx eax, byte [rcx + 3]
shl eax, 0x18
add r8d, eax
movzx eax, byte [rcx + 2]
shl eax, 0x10
add r8d, eax
movzx eax, byte [rcx + 1]
shl eax, 8
add r8d, eax
movzx eax, byte [rcx]
mov ecx, edx
xor r11d, edx
rol ecx, 0xe
sub r11d, ecx
add eax, r8d
mov ecx, r11d
xor eax, r11d
rol ecx, 0xb
sub eax, ecx
mov ecx, eax
xor edx, eax
ror ecx, 7
sub edx, ecx
mov ecx, edx
xor r11d, edx
rol ecx, 0x10
sub r11d, ecx
mov ecx, r11d
xor eax, r11d
rol ecx, 4
sub eax, ecx
xor edx, eax
rol eax, 0xe
sub edx, eax
xor r11d, edx
ror edx, 8
sub r11d, edx
mov eax, r11d
ret

Function at 0x14001fa70
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14002b630
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14002b630
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x14001fae0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14003c264]
mov rbx, rcx
test esi, esi
jle 0x14001fc10
mov rax, qword [0x14003c268]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001fb2b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14001fbb5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14001fb10
mov rcx, rbx
call fcn.140020550
mov rdi, rax
test rax, rax
je 0x14001fc32
mov rax, qword [0x14003c268]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140020690
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14003c268]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14001fc17
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14001fbae
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14001fbc0
add dword [0x14003c264], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14003c268]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001fbae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14001fa70
nop dword [rax]
xor esi, esi
jmp 0x14001fb38
mov rax, qword [0x14003c268]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14001fa70
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14001fa70
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400201c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14003c2c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14003c2a0]
test rbx, rbx
je 0x14002021c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140020213
test eax, eax
jne 0x140020213
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400201f8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140020550
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400365e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140020570
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140020578
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140020570
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400205cd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400205c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140020570
add rax, 0x28
cmp rax, r9
jne 0x1400205b0
xor eax, eax
ret

Function at 0x1400205d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400365e0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400205ef
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400205f8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400205ef
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140020690
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400365e0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400206af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400206b8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x14002c680
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x1400366f0]
mov rdx, qword [rax]
mov qword [rsp + 0x98], rdx
xor edx, edx
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x7b], 0
mov qword [rsp + 0x83], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x14002c79a
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14002c772
add rax, 1
cmp rax, 0x6b
je 0x14002c78f
cmp byte [rcx + rax], 0
jne 0x14002c768
lea edx, [rax + 1]
cmp eax, 0x6a
je 0x14002c78f
cdqe
mov byte [rsp + rax + 0x20], 0xa
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov edx, 0x28
mov eax, 0x27
lea rcx, [rsp + 0x20]
jmp 0x14002c780