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

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1403ceac0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1402414ed
xor eax, eax
jmp 0x140241633
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140241527
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140241527
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140241633
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140241626
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14024156a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140241579
movzx ecx, dil
jmp 0x1402415cd
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + reloc.WS2_32.dll_getservbyport]
test eax, eax
js 0x140241626
cmp eax, 1
jle 0x1402415e7
cmp eax, 3
jne 0x140241626
movzx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.14023dc60
test al, al
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14024162b
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140241614
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.1402cc658
cmp rsi, rax
jne 0x140241626
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x14024162b
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140296f70
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140242560
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140242582
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x1402425fc
mov rdi, r14
mov rcx, rbx
call fcn.14002ae00
test rax, rax
jle 0x1402425d4
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.1402b53e0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1402425ec
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_getservbyport]
cmp eax, 0xffffffff
je 0x1402425f4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140242596
sub r14, rdi
jmp 0x1402426e9
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140242613
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140242615
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14024264a
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1402b53e0
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1402426e6
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x140242685
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x1402426c1
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1402d41fc
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x1402426ff
cmp rbp, rax
ja 0x140242691
mov r8, rdi
test rdi, rdi
je 0x1402426e6
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1402d41fc
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x1402426e9
Function at 0x140244fe0
Capabilities:
Receive http response

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1403ceac0]
xor rax, rsp
mov qword [rbp - 8], rax
mov r15, rdx
mov r14, rcx
xor r12d, r12d
mov dword [rbp - 0x50], r12d
lea rdx, [rbp - 0x50]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x14024519c
mov eax, dword [rbp - 0x50]
test eax, eax
je 0x14024519c
mov edi, eax
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], setsockopt
mov byte [rbp - 0x48], r12b
cmp rax, 0xf
ja 0x14024506e
mov qword [rbp - 0x38], rax
mov r8d, eax
xor edx, edx
lea rcx, [rbp - 0x48]
call fcn.1402b60e0
mov byte [rbp + rdi - 0x48], r12b
mov rbx, qword [rbp - 0x48]
jmp 0x1402450df
mov rsi, rdi
or rsi, 0xf
mov eax, reloc.WS2_32.dll_shutdown
cmp rsi, rax
cmovb rsi, rax
lea rcx, [rsi + 1]
cmp rcx, 0x1000
jb 0x1402450ba
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1402451c9
mov rcx, rax
call fcn.140296fc8
test rax, rax
je 0x1402451c3
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x1402450c2
call fcn.140296fc8
mov rbx, rax
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x30], rsi
mov r8, rdi
xor edx, edx
mov rcx, rbx
call fcn.1402b60e0
mov byte [rbx + rdi], r12b
mov qword [rbp - 0x48], rbx
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 0x10
cmovae rdx, rbx
mov dword [rbp - 0x4c], r12d
lea r9, [rbp - 0x4c]
mov r8d, dword [rbp - 0x50]
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x14024510a
xor bl, bl
jmp 0x140245160
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x28]
call fcn.14012c7d0
mov rdx, rax
mov rcx, r15
call fcn.140040a70
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x14024515e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140245159
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1402451cf
call fcn.140296f94
mov bl, 1
mov rdx, qword [rbp - 0x30]
cmp rdx, 0x10
jb 0x140245197
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140245192
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1402451c3
call fcn.140296f94
movzx eax, bl
jmp 0x14024519e
xor al, al
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140296f70
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.1402ba3ec
int3
call fcn.14002c9b0
nop
call fcn.1402ba3ec
nop
int3
Function at 0x1402451e0
Capabilities:
Read http header

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov qword [rax + 0x10], rdx
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
xor esi, esi
mov dword [rax - 0x18], esi
mov dword [rax + 8], esi
mov qword [rdx], rsi
mov qword [rdx + 0x10], rsi
mov qword [rdx + 0x18], 7
mov word [rdx], si
mov dword [rax - 0x18], 1
mov qword [rax - 0x20], rsi
lea rax, [rax + 8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 0x16]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1402452a5
mov edx, dword [rsp + 0x50]
mov rax, qword [rbx + 0x10]
cmp rdx, rax
ja 0x14024526a
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x140245260
mov rax, qword [rbx]
mov qword [rbx + 0x10], rdx
mov word [rax + rdx*2], si
jmp 0x140245278
xor r8d, r8d
sub rdx, rax
mov rcx, rbx
call fcn.14002c110
mov r9, rbx
cmp qword [rbx + 0x18], 8
jb 0x140245285
mov r9, qword [rbx]
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [r8 + 0x16]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140246160
Capabilities:
Read http header

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x40]
xor eax, eax
mov dword [rsp + 0x48], 4
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov dword [rsp + 0x40], eax
mov edx, 0x20000013
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov ecx, dword [rsp + 0x40]
mov edx, 0xffffffff
test eax, eax
cmove ecx, edx
mov eax, ecx
add rsp, 0x38
ret
Function at 0x14025a9b0
Capabilities:
Initialize winhttp library

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1403ceac0]
xor rax, rsp
mov qword [rsp + 0x68], rax
movzx ebp, r8w
mov rsi, rdx
mov rbx, rcx
mov qword [rsp + 0x58], rcx
xor eax, eax
mov qword [rcx], rax
lea rdi, [rcx + 8]
mov qword [rdi], rax
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 4]
lea rcx, str.Simple_HttpFetcher_1.1
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
lea rcx, [rsp + 0x30]
cmp rbx, rcx
je 0x14025aa17
mov rcx, qword [rbx]
mov qword [rbx], rax
test rcx, rcx
je 0x14025aa25
jmp 0x14025aa1f
test rax, rax
je 0x14025aa25
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rbx]
test rcx, rcx
je 0x14025aafd
mov dword [rsp + 0x60], 0xaa0
mov r9d, 4
lea r8, [rsp + 0x60]
lea edx, [r9 + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x14025ab3b
cmp qword [rsi + 0x18], 8
jb 0x14025aa60
mov rsi, qword [rsi]
xor r9d, r9d
movzx r8d, bp
mov rdx, rsi
mov rcx, qword [rbx]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
lea rcx, [rsp + 0x30]
cmp rdi, rcx
je 0x14025aa8a
mov rcx, qword [rdi]
mov qword [rdi], rax
test rcx, rcx
je 0x14025aa98
jmp 0x14025aa92
test rax, rax
je 0x14025aa98
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp qword [rdi], 0
je 0x14025aabe
mov rax, rbx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140296f70
mov rbx, qword [rsp + 0xa8]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, eax
call fcn.140240a60
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.WinHttp:_Failed_to_connect_to_host
mov r8, rbx
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.1400cbc30
lea rdx, [0x1403c6b08]
lea rcx, [rsp + 0x38]
call fcn.1402b5304
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140240a60
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.WinHttp:_Failed_to_create_session
mov r8, rbx
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.1400cbc30
lea rdx, [0x1403c6b08]
lea rcx, [rsp + 0x38]
call fcn.1402b5304
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140240a60
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.WinHttp:_Failed_to_set_secure_protocols
mov r8, rbx
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.1400cbc30
lea rdx, [0x1403c6b08]
lea rcx, [rsp + 0x38]
call fcn.1402b5304
int3
Function at 0x14025ac10
Capabilities:
Read http header

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1403ceac0]
xor rax, rsp
mov qword [rbp - 8], rax
mov r15d, r8d
mov r14, rdx
mov rbx, rcx
mov qword [rbp - 0x30], rcx
xor r12d, r12d
mov dword [rbp - 0x30], r12d
mov qword [rsp + 0x28], r12
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x14025ade7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
jne 0x14025acad
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 7
mov word [rbx], r12w
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140296f70
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14025ae08
mov esi, dword [rbp - 0x30]
shr rsi, 1
dec rsi
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r12w
cmp rsi, 7
ja 0x14025acff
mov qword [rbp - 0x18], rsi
test rsi, rsi
je 0x14025acf3
movzx eax, r12w
lea rdi, [rbp - 0x28]
mov rcx, rsi
rep stosw word [rdi], ax
mov word [rbp + rsi*2 - 0x28], r12w
mov rdx, qword [rbp - 0x28]
jmp 0x14025ad69
movabs rdi, 0x7ffffffffffffffe
cmp rsi, rdi
ja 0x14025ae44
mov rax, rsi
or rax, 7
cmp rax, rdi
ja 0x14025ad2d
mov rdi, rax
mov ecx, 0xa
cmp rax, rcx
cmovb rdi, rcx
mov rdx, rdi
add rdx, 1
mov rax, 0xffffffffffffffff
cmovb rdx, rax
lea rcx, [rbp - 0x28]
call fcn.14002bf30
mov rdx, rax
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], rdi
movzx eax, r12w
mov rdi, rdx
mov rcx, rsi
rep stosw word [rdi], ax
mov word [rdx + rsi*2], r12w
mov qword [rbp - 0x28], rdx
lea r9, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae r9, rdx
mov qword [rsp + 0x28], r12
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, r15d
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x14025adab
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp - 0x18]
movups xmmword [rbx + 0x10], xmm1
jmp 0x14025ac8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140240a60
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.WinHttp:_Failed_to_query_header_value
mov r8, rdi
mov edx, eax
lea rcx, [rbp - 0x50]
call fcn.1400cbc30
lea rdx, [0x1403c6b08]
lea rcx, [rbp - 0x50]
call fcn.1402b5304
nop
lea rdx, str.WinHttp:_WinHttpQueryHeader_unexpectedly_returned_true
lea rcx, [rbp - 0x50]
call fcn.140091510
lea rdx, [0x1403c6868]
lea rcx, [rbp - 0x50]
call fcn.1402b5304
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140240a60
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.WinHttp:_Failed_to_query_header_length
mov r8, rdi
mov edx, eax
lea rcx, [rbp - 0x50]
call fcn.1400cbc30
lea rdx, [0x1403c6b08]
lea rcx, [rbp - 0x50]
call fcn.1402b5304
int3
call fcn.14002c880
int3
Function at 0x14029a958
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14029a96b
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.14029af6c
lea rdx, [0x1403c5ea0]
lea rcx, [rsp + 0x20]
call fcn.1402b5304
int3

Function at 0x1402a50e8
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1403e1e38]
xor edx, edx
jmp fcn.14029a958

Function at 0x1402a5a54
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1403e1e38]
jmp fcn.14029a958

Function at 0x1402b0ebc
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x1402b0f78]
mov r9, qword [r9 + 8]
jmp fcn.1402a2b00

Function at 0x1402b0f50
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x1402b0f88]
mov r9, qword [r9 + 8]
jmp fcn.1402a2b00
Function at 0x1402dfcd4
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x1402df9fa
call fcn.1402be600
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1402ba3cc
jmp 0x1402dfb45
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1402dfb45
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1402dfb45
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1402dfa29
lock or dword [rcx + 0x14], 0x10
jmp 0x1402dfb45
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1402dfa3d
call fcn.1402e00fc
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x1402dfa4d
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x1402dfa50
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.1402db528
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.1402cd54c
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x1402dfb33
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x1402dfae1
mov rcx, rbx
call fcn.1402db528
cmp eax, 0xffffffff
je 0x1402dfacc
mov rcx, rbx
call fcn.1402db528
cmp eax, 0xfffffffe
je 0x1402dfacc
mov rcx, rbx
call fcn.1402db528
movsxd rdi, eax
lea r14, [0x1403e27d0]
mov rcx, rbx
sar rdi, 6
call fcn.1402db528
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x1402dfad3
lea rdx, [0x1403ceea0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1402dfae1
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x1402dfb05
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x1402dfb05
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x1402dfb05
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x1402dfb23
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x1402dfb2e
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x1402dfb4a
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x1402df9c4
Function at 0x1402ea874
Capabilities:
Delete directory
Delete file

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
lea rdi, [0x1402ea1fc]
mov r9, rdi
lea r8, str.SetFileInformationByHandle
lea rdx, [0x14035cb50]
lea rcx, [0x1403e2ed8]
call fcn.1402ea19c
mov rsi, rax
cmp rax, rdi
jne 0x1402ea91c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor edi, edi
test eax, eax
je 0x1402ea8ca
mov byte [rsp + 0x68], 1
mov dword [rsp + 0x6c], edi
mov rax, qword [rsp + 0x68]
jmp 0x1402ea914
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x10b
jne 0x1402ea8ea
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1402ea8ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsp + 0x78], dil
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 2]
cmp ecx, 1
jbe 0x1402ea90b
cmp eax, 0x35
je 0x1402ea90b
cmp eax, 0x7b
mov dword [rsp + 0x7c], eax
jne 0x1402ea90f
mov dword [rsp + 0x7c], edi
mov rax, qword [rsp + 0x78]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov r9d, 0x2200000
mov r8d, 0x10000
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1402ea81c
xor edi, edi
test eax, eax
je 0x1402ea975
mov byte [rsp + 0x78], dil
lea ecx, [rax - 2]
cmp ecx, 1
jbe 0x1402ea956
cmp eax, 0x35
je 0x1402ea956
cmp eax, 0x7b
mov dword [rsp + 0x7c], eax
jne 0x1402ea95a
mov dword [rsp + 0x7c], edi
mov rcx, qword [rsp + 0x30]
cmp rcx, 0xffffffffffffffff
je 0x1402ea90f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1402eaa0f
jmp 0x1402ea90f
mov dword [rsp + 0x70], 3
mov r9d, 4
lea r8, [rsp + 0x70]
lea edx, [r9 + 0x11]
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
mov rax, rsi
call qword [case.0x1400dc821.0]
test eax, eax
je 0x1402ea9ac
mov byte [rsp + 0x78], 1
mov dword [rsp + 0x7c], edi
jmp 0x1402ea9fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
sub ecx, 1
je 0x1402ea9ca
sub ecx, 0x31
je 0x1402ea9ca
cmp ecx, 0x25
je 0x1402ea9ca
mov byte [rsp + 0x78], dil
jmp 0x1402ea9f9
mov byte [rsp + 0x68], 1
mov r9d, 1
lea r8, [rsp + 0x68]
lea edx, [r9 + 3]
mov rcx, rbx
mov rax, rsi
call qword [case.0x1400dc821.0]
test eax, eax
jne 0x1402ea9a1
mov byte [rsp + 0x78], dil
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x7c], eax
cmp rbx, 0xffffffffffffffff
je 0x1402ea90f
mov rcx, rbx
jmp 0x1402ea965
call fcn.1402c9dc0
int3
Function at 0x1400237d0
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x2030
call fcn.140024700
sub rsp, rax
mov rax, qword [0x140035078]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r15d, r8d
mov r14, rdx
mov esi, ecx
mov ebx, 0x1000
xor r12d, r12d
lea rcx, [rsp + 0x20]
mov r8d, ebx
xor edx, edx
mov edi, r12d
call sub.msvcrt.dll_memset
lea r9, str..Lang.ini
mov r8d, ebx
lea rdx, [rsp + 0x20]
lea rcx, str.Available_UI_Languages
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
nop dword [rax + rax]
cmp eax, 0xffe
jne 0x140023862
lea ecx, [r12 + 0x6f]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
jmp 0x140023961
mov edx, r12d
lea rbx, [rsp + 0x20]
mov eax, edx
cmp word [rsp + rax*2 + 0x20], r12w
jne 0x140023883
lea eax, [rdx + 1]
cmp word [rsp + rax*2 + 0x20], r12w
je 0x140023961
cmp edx, 0xfff
jae 0x140023961
movzx eax, word [rbx]
test ax, ax
jne 0x1400238a0
add rbx, 2
inc edx
movzx eax, word [rbx]
mov rbp, rbx
mov rcx, rbx
test ax, ax
je 0x1400238b7
add rbx, 2
inc edx
cmp word [rbx], r12w
jne 0x1400238ab
test r14, r14
je 0x1400238c0
cmp edi, esi
je 0x1400238cd
lea eax, [rdi + 1]
cmp rcx, rbx
cmove eax, edi
mov edi, eax
jmp 0x14002386a
mov edx, 0x3d
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x1400238e9
mov rbx, rax
sub rbx, rbp
sar rbx, 1
cmp ebx, r15d
jb 0x1400238fb
mov ecx, 0x7a
jmp 0x140023952
mov ebx, ebx
mov rdx, r15
mov r9d, ebx
mov r8, rbp
mov rcx, r14
call fcn.140003a3c
mov edx, 2
mov word [r14 + rbx*2], r12w
mov rcx, r14
call fcn.14001a040
movzx eax, ax
test eax, eax
je 0x140023949
cmp eax, 0x7f
je 0x140023949
test rsi, rsi
je 0x140023961
lea rcx, [rsi + 2]
call qword [sym.imp.msvcrt.dll__wtoi]
nop dword [rax + rax]
mov edi, eax
bts edi, 0x1c
jmp 0x140023961
mov word [r14], r12w
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov edi, r12d
mov eax, edi
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.140023d70
lea r11, [rsp + 0x2030]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x140023ebc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140023f08
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140023f00
cmp dword [rcx + 0x3c], edx
jl 0x140023f00
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140023f00
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140023f08
mov rax, rdx
add rsp, 0x18
ret