joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00407690]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x004076a0]
mov dword [rax], 1
mov rax, qword [0x004076b0]
mov dword [rax], 1
mov rax, qword [0x00407680]
mov dword [rax], 1
mov rax, qword [0x00407570]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x00407670]
mov dword [0x0040a00c], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x00407630]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x00407520]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058
Function at 0x403b10
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0040a624]
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
test esi, esi
jle 0x403cc4
mov rax, qword [0x0040a628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x403b5c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x403be9
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x403b40
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x403cf9
mov rax, qword [0x0040a628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0040a628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x403cdc
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x403be2
sub eax, 0x40
and eax, 0xffffffbf
jne 0x403c64
add dword [0x0040a624], 1
cmp edi, 8
jae 0x403c20
test dil, 4
jne 0x403cb0
test edi, edi
je 0x403c0c
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x403ccb
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rbp]
mov qword [rbx], rax
mov eax, edi
mov rdx, qword [rbp + rax - 8]
mov qword [rbx + rax - 8], rdx
lea rax, [rbx + 8]
and rax, 0xfffffffffffffff8
sub rbx, rax
sub rbp, rbx
add ebx, edi
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x403c0c
and ebx, 0xfffffff8
xor edx, edx
mov ecx, edx
add edx, 8
mov r8, qword [rbp + rcx]
cmp edx, ebx
mov qword [rax + rcx], r8
jb 0x403c50
jmp 0x403c0c
add rsi, qword [0x0040a628]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x403be2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax + rax]
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x403c0c
xor esi, esi
jmp 0x403b67
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x403c0c
mov rax, qword [0x0040a628]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rsi + 0x18]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call dbg.__report_error
nop
nop dword [rax]
Function at 0x404450
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0040a900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0040a8e0]
test rbx, rbx
je 0x4044a4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40449b
test rsi, rsi
je 0x40449b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x404480
lea rcx, [0x0040a900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x4046e0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x4046f0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x404700
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x404741
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x404738
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x404743
add rax, 0x28
cmp rax, r9
jne 0x404724
xor eax, eax
ret

Function at 0x4047e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00407570]
mov rdx, rcx
cmp word [r8], 0x5a4d
jne 0x40484d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40484d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40484d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x404844
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40484f
add rax, 0x28
cmp rax, r9
jne 0x404830
xor eax, eax
add rsp, 0x28
ret

Function at 0x404950
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00407570]
xor eax, eax
mov rdx, rcx
cmp word [r8], 0x5a4d
je 0x404970
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x404968
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4049cd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4049c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4049d4
add rax, 0x28
cmp rax, r9
jne 0x4049b0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x4049f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00407570]
mov r9d, ecx
cmp word [r11], 0x5a4d
jne 0x404a5e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x404a5e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x404a5e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x404a5e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x404a55
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x404a65
add rcx, 0x28
cmp rcx, rax
jne 0x404a40
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x404a78
jmp 0x404a5e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x404a86
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x404a5e
test r9d, r9d
jg 0x404a70
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret

Function at 0x405d80
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
mov r8d, 0x1b
mov edx, 1
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140002a24
Capabilities:
Connect socket
Convert ip address from string
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x1f8
mov rcx, qword [rsp + 0x200]
call fcn.14001ecd4
lea rdx, [rsp + 0x50]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, qword [rsp + 0x200]
mov qword [rcx + 0x220], rax
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.1401dbce0
mov eax, 2
mov word [rsp + 0x38], ax
lea r8, [rsp + 0x3c]
mov rdx, qword [str.127.0.0.1]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
mov cx, 0x2328
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x3a], ax
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, [rsp + 0x38]
mov rax, qword [rsp + 0x200]
mov rcx, qword [rax + 0x220]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
jne 0x140002aec
xor r8d, r8d
xor edx, edx
lea rcx, str.connect
call fcn.14001f1b0
xor r8d, r8d
xor edx, edx
lea rcx, [0x14023fb88]
call fcn.14001f1b0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x200]
lea rcx, [0x140002900]
call fcn.140022624
mov eax, 1
add rsp, 0x1f8
ret

Function at 0x1400062bc
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x1f8
mov rcx, qword [rsp + 0x200]
call fcn.14001ecd4
lea rdx, [rsp + 0x50]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, qword [rsp + 0x200]
mov qword [rcx + 0x4e0], rax
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.1401dbce0
mov eax, 2
mov word [rsp + 0x38], ax
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x3c], eax
mov cx, 0x2328
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x3a], ax
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, [rsp + 0x38]
mov rax, qword [rsp + 0x200]
mov rcx, qword [rax + 0x4e0]
call qword [sym.imp.WS2_32.dll_bind]
mov dword [rsp + 0x30], eax
mov edx, 0x7fffffff
mov rax, qword [rsp + 0x200]
mov rcx, qword [rax + 0x4e0]
call qword [sym.imp.WS2_32.dll_listen]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x200]
lea rcx, [0x1400060fc]
call fcn.140022624
mov eax, 1
add rsp, 0x1f8
ret
Function at 0x140009a90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub rsp, 0x68
mov byte [rsp + 0x28], 0x53
mov byte [rsp + 0x29], WSASetLastError
mov byte [rsp + 0x2a], 0x66
mov byte [rsp + 0x2b], reloc.WS2_32.dll_WSACleanup
mov byte [rsp + 0x2c], 0x77
mov byte [rsp + 0x2d], 0x61
mov byte [rsp + 0x2e], reloc.OLEAUT32.dll_VarBstrFromDisp
mov byte [rsp + 0x2f], 0x65
mov byte [rsp + 0x30], 0x5c
mov byte [rsp + 0x31], 0x54
mov byte [rsp + 0x32], 0x65
mov byte [rsp + 0x33], WSASetLastError
mov byte [rsp + 0x34], 0x63
mov byte [rsp + 0x35], 0x65
mov byte [rsp + 0x36], WSASetLastError
mov byte [rsp + 0x37], reloc.WS2_32.dll_WSACleanup
mov byte [rsp + 0x38], 0x5c
mov byte [rsp + 0x39], 0x62
mov byte [rsp + 0x3a], 0x75
mov byte [rsp + 0x3b], 0x67
mov byte [rsp + 0x3c], 0x52
mov byte [rsp + 0x3d], 0x65
mov byte [rsp + 0x3e], reloc.WS2_32.dll_WSASetLastError
mov byte [rsp + 0x3f], WSASetLastError
mov byte [rsp + 0x40], reloc.OLEAUT32.dll_VarBstrFromDisp
mov byte [rsp + 0x41], reloc.WS2_32.dll_WSACleanup
mov byte [rsp + 0x42], 0x5c
mov byte [rsp + 0x43], 0x57
mov byte [rsp + 0x44], 0x65
mov byte [rsp + 0x45], 0x63
mov byte [rsp + 0x46], 0x68
mov byte [rsp + 0x47], 0x61
mov byte [rsp + 0x48], reloc.WS2_32.dll_WSACleanup
mov byte [rsp + 0x49], 0x57
mov byte [rsp + 0x4a], 0x69
mov byte [rsp + 0x4b], WSASetLastError
mov byte [rsp + 0x4c], 0x64
mov byte [rsp + 0x4d], WSASetLastError
mov byte [rsp + 0x4e], 0x77
mov byte [rsp + 0x4f], reloc.WS2_32.dll_WSAStartup
mov byte [rsp + 0x50], 0
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x140009b85
mov eax, 1
jmp 0x140009b87
xor eax, eax
add rsp, 0x68
ret
Function at 0x140009b8c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub rsp, 0x88
mov byte [rsp + 0x28], 0x5c
mov byte [rsp + 0x29], 0x41
mov byte [rsp + 0x2a], reloc.WS2_32.dll_WSASetLastError
mov byte [rsp + 0x2b], reloc.WS2_32.dll_WSASetLastError
mov byte [rsp + 0x2c], WSASetLastError
mov byte [rsp + 0x2d], 0x69
mov byte [rsp + 0x2e], 0x63
mov byte [rsp + 0x2f], 0x61
mov byte [rsp + 0x30], reloc.WS2_32.dll_WSACleanup
mov byte [rsp + 0x31], 0x69
mov byte [rsp + 0x32], WSASetLastError
mov byte [rsp + 0x33], WSASetLastError
mov byte [rsp + 0x34], reloc.WS2_32.dll_WSAStartup
mov byte [rsp + 0x35], 0x5c
mov byte [rsp + 0x36], 0x56
mov byte [rsp + 0x37], 0x4d
mov byte [rsp + 0x38], 0x77
mov byte [rsp + 0x39], 0x61
mov byte [rsp + 0x3a], reloc.OLEAUT32.dll_VarBstrFromDisp
mov byte [rsp + 0x3b], 0x65
mov byte [rsp + 0x3c], 0x48
mov byte [rsp + 0x3d], WSASetLastError
mov byte [rsp + 0x3e], reloc.WS2_32.dll_WSAStartup
mov byte [rsp + 0x3f], reloc.WS2_32.dll_WSACleanup
mov byte [rsp + 0x40], 0x4f
mov byte [rsp + 0x41], reloc.WS2_32.dll_WSASetLastError
mov byte [rsp + 0x42], 0x65
mov byte [rsp + 0x43], WSASetLastError
mov byte [rsp + 0x44], 0x2e
mov byte [rsp + 0x45], 0x65
mov byte [rsp + 0x46], 0x78
mov byte [rsp + 0x47], 0x65
mov byte [rsp + 0x48], 0
mov byte [rsp + 0x50], 0x53
mov byte [rsp + 0x51], 0x4f
mov byte [rsp + 0x52], 0x46
mov byte [rsp + 0x53], 0x54
mov byte [rsp + 0x54], 0x57
mov byte [rsp + 0x55], 0x41
mov byte [rsp + 0x56], 0x52
mov byte [rsp + 0x57], 0x45
mov byte [rsp + 0x58], 0x5c
mov byte [rsp + 0x59], 0x4f
mov byte [rsp + 0x5a], reloc.OLEAUT32.dll_VarBstrFromDisp
mov byte [rsp + 0x5b], 0x61
mov byte [rsp + 0x5c], 0x63
mov byte [rsp + 0x5d], WSASetLastError
mov byte [rsp + 0x5e], 0x65
mov byte [rsp + 0x5f], 0x5c
mov byte [rsp + 0x60], 0x56
mov byte [rsp + 0x61], 0x69
mov byte [rsp + 0x62], reloc.OLEAUT32.dll_VarBstrFromDisp
mov byte [rsp + 0x63], reloc.WS2_32.dll_WSACleanup
mov byte [rsp + 0x64], 0x75
mov byte [rsp + 0x65], 0x61
mov byte [rsp + 0x66], WSASetLastError
mov byte [rsp + 0x67], 0x42
mov byte [rsp + 0x68], WSASetLastError
mov byte [rsp + 0x69], 0x78
mov byte [rsp + 0x6a], 0x20
mov byte [rsp + 0x6b], 0x47
mov byte [rsp + 0x6c], 0x75
mov byte [rsp + 0x6d], 0x65
mov byte [rsp + 0x6e], reloc.WS2_32.dll_WSAStartup
mov byte [rsp + 0x6f], reloc.WS2_32.dll_WSACleanup
mov byte [rsp + 0x70], 0x20
mov byte [rsp + 0x71], 0x41
mov byte [rsp + 0x72], 0x64
mov byte [rsp + 0x73], 0x64
mov byte [rsp + 0x74], 0x69
mov byte [rsp + 0x75], reloc.WS2_32.dll_WSACleanup
mov byte [rsp + 0x76], 0x69
mov byte [rsp + 0x77], WSASetLastError
mov byte [rsp + 0x78], WSASetLastError
mov byte [rsp + 0x79], reloc.WS2_32.dll_WSAStartup
mov byte [rsp + 0x7a], 0
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x140009d30
xor eax, eax
jmp 0x140009d56
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x140009d51
xor eax, eax
jmp 0x140009d56
mov eax, 1
add rsp, 0x88
ret
Function at 0x140009d8c
Capabilities:
Create thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x48
cmp dword [rsp + 0x50], 0
je 0x140009dc9
call fcn.14000978c
test eax, eax
je 0x140009dbf
call fcn.14000970c
test eax, eax
je 0x140009dbf
call fcn.140009b8c
test eax, eax
jne 0x140009dc9
mov ecx, 1
call fcn.1401bbc84
cmp dword [rsp + 0x60], 0
je 0x140009de3
call fcn.140009a90
test eax, eax
jne 0x140009de3
mov ecx, 1
call fcn.1401bbc84
cmp dword [rsp + 0x58], 0
je 0x140009e1f
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140009d60]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x48
ret
Function at 0x14000ad38
Capabilities:
Enumerate pe sections

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
cmp dword [rsp + 0x28], 0
jne 0x14000ad58
mov rax, 0xffffffffffffffff
jmp 0x14000ae00
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x20]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 6]
dec eax
mov dword [rsp], eax
jmp 0x14000ad88
mov eax, dword [rsp]
dec eax
mov dword [rsp], eax
cmp dword [rsp], 0
jl 0x14000adf9
movsxd rax, dword [rsp]
imul rax, rax, 0x28
mov rcx, qword [rsp + 8]
mov edx, dword [rsp + 0x28]
cmp dword [rcx + rax + 0xc], edx
ja 0x14000adf7
movsxd rax, dword [rsp]
imul rax, rax, 0x28
movsxd rcx, dword [rsp]
imul rcx, rcx, 0x28
mov rdx, qword [rsp + 8]
mov eax, dword [rdx + rax + 0xc]
mov rdx, qword [rsp + 8]
add eax, dword [rdx + rcx + 0x10]
cmp dword [rsp + 0x28], eax
ja 0x14000adf7
movsxd rax, dword [rsp]
imul rax, rax, 0x28
mov rcx, qword [rsp + 8]
mov eax, dword [rcx + rax + 0x14]
add eax, dword [rsp + 0x28]
movsxd rcx, dword [rsp]
imul rcx, rcx, 0x28
mov rdx, qword [rsp + 8]
sub eax, dword [rdx + rcx + 0xc]
mov eax, eax
jmp 0x14000ae00
jmp 0x14000ad80
mov rax, 0xffffffffffffffff
add rsp, 0x18
ret
Function at 0x14000ae08
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
cmp qword [rsp + 0x80], 0
je 0x14000ae2c
cmp qword [rsp + 0x88], 0
jne 0x14000ae33
xor eax, eax
jmp 0x14000b01e
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
add rax, 0x88
mov qword [rsp + 0x48], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x14000ae8f
xor eax, eax
jmp 0x14000b01e
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call fcn.14000ad38
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x14000aeaf
xor eax, eax
jmp 0x14000b01e
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x14000aee0
xor eax, eax
jmp 0x14000b01e
mov rax, qword [rsp + 0x38]
mov edx, dword [rax + 0x20]
mov rcx, qword [rsp + 0x28]
call fcn.14000ad38
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x14000af04
xor eax, eax
jmp 0x14000b01e
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x38]
mov edx, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x28]
call fcn.14000ad38
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x14000af3f
xor eax, eax
jmp 0x14000b01e
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x38]
mov edx, dword [rax + 0x24]
mov rcx, qword [rsp + 0x28]
call fcn.14000ad38
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x14000af7a
xor eax, eax
jmp 0x14000b01e
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x24]
dec eax
mov eax, eax
mov rcx, qword [rsp + 0x50]
mov edx, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x28]
call fcn.14000ad38
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x58]
call fcn.1401bb810
test eax, eax
jne 0x14000b007
mov eax, dword [rsp + 0x24]
dec eax
mov eax, eax
mov rcx, qword [rsp + 0x60]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x68]
mov edx, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x28]
call fcn.14000ad38
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
jmp 0x14000b01e
mov eax, dword [rsp + 0x24]
dec eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x14000af91
xor eax, eax
add rsp, 0x78
ret
Function at 0x1400160ec
Capabilities:
Extract resource via kernel32 functions

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 rdi, rdx
mov rsi, rcx
test rdx, rdx
je 0x14001614a
call fcn.14003af3c
mov r8d, 0xf0
mov rdx, rdi
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14001614a
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140016155
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
mov rdx, rbx
mov rcx, rsi
call fcn.140022270
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400162f4
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, r8
lea rcx, [0x1401e98b8]
mov esi, edx
call fcn.1401b99cc
mov r8d, eax
lea rdx, [0x1401e98b8]
mov rcx, rbx
call fcn.140005768
xor ebp, ebp
mov edx, esi
cmp qword [rdi + 0xc8], rbp
jne 0x1400163d6
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rsi, rax
test rax, rax
je 0x1400163ee
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd rdi, eax
test eax, eax
js 0x140016409
mov rcx, qword [rbx]
lea r8d, [rbp + 1]
mov edx, dword [rcx - 0xc]
sub r8d, dword [rcx - 8]
sub edx, edi
or r8d, edx
jge 0x140016388
mov edx, edi
mov rcx, rbx
call fcn.1400052b8
mov rdx, qword [rbx]
cmp edi, dword [rdx - 0xc]
jg 0x140016409
mov dword [rdx - 0x10], edi
lea r8d, [rdi + 1]
mov rax, qword [rbx]
mov rcx, rsi
mov word [rax + rdi*2], bp
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1400163b3
mov eax, ebp
jmp 0x1400163c0
movsxd rdx, dword [rcx - 0xc]
call fcn.1401b9af8
test eax, eax
js 0x140016409
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x140016409
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
jmp 0x1400163ee
mov rcx, rdi
call fcn.14001c950
test rax, rax
je 0x1400163ee
mov rdx, rbx
mov rcx, rax
call fcn.1400168b8
mov rax, qword [rbx]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, dword [rax - 0x10]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80070057
call fcn.1400056c4
int3