joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400178a4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14002ac70]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400178fb
cmp word [rdx], r13w
jne 0x1400178fb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140017900
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140017a25
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140017a46
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140017939
mov rdx, r9
mov word [rbx], cx
jmp 0x140017960
cmp r9, r8
jae 0x140017970
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14001791a
jmp 0x140017a25
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140017a1a
cmp dword [rsp + 0x80], esi
je 0x140017a1a
lea r8, [0x14002ac70]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400179f2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400179c2
mov word [rbx], r13w
jmp 0x140017a22
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400179cf
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140017a22
cmp word [rsp + 0x70], r13w
jne 0x1400179ff
cmp rbx, r14
je 0x1400179bc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140019418
cmp word [rsp + 0x70], r13w
je 0x140017a25
mov ecx, reloc.WS2_32.dll_listen
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14002ac70]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140017a1f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140017a25
Function at 0x140019554
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140019418
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140019418
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400196a4
cmp rax, 0xffffffffffffffff
je 0x1400196a4
xor edi, edi
test rbp, rbp
jle 0x14001964f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14000dd10
mov rbx, rax
test rax, rax
jne 0x1400195dc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140019645
mov edx, 0x8000
mov ecx, r14d
call fcn.14000c840
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140015904
cmp eax, 0xffffffff
je 0x140019625
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400195ec
mov edx, r15d
mov ecx, r14d
call fcn.14000c840
jmp 0x140019645
cmp byte [rsi + 0x38], dil
je 0x14001963c
cmp dword [rsi + 0x34], 5
jne 0x14001963c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x140019645
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14000dd88
jmp 0x1400196b8
jns 0x1400196b8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140019418
cmp rax, 0xffffffffffffffff
jne 0x140019670
cmp byte [rsi + 0x30], dil
je 0x1400196b8
mov edi, dword [rsi + 0x2c]
jmp 0x1400196b8
mov ecx, r14d
call fcn.140012bbc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400196b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1400196b8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400196b1
mov eax, dword [rsi + 0x2c]
jmp 0x1400196b6
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140019418
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14001b190
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001b1b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001b1b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180615058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1806151df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x180615089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18061506f
add dl, dl
jne 0x180615096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806150f6
xor eax, eax
add dl, dl
jne 0x1806150a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806151ad
add dl, dl
jne 0x1806150b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806150c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806150d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806150dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1806150ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18061507e
mov eax, 1
add dl, dl
jne 0x180615106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180615113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1806150fb
sub eax, ebx
mov ebx, 1
jne 0x18061514c
mov ecx, 1
add dl, dl
jne 0x18061512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18061513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180615123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18061507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180615168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180615175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18061515d
cmp eax, 0x7d00
jae 0x18061519b
cmp eax, 0x500
jb 0x180615196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18061507e
cmp eax, 0x7f
ja 0x18061519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18061507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1806151d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x18061507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x2fc4c5520
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4c5f22
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4e8108]
test eax, eax
je 0x2fc4c5fba
lea rax, [0x2fc4e80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4e8110]
mov qword [rbp - 8], rax
jmp 0x2fc4c5f9e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4c5f92
cmp qword [rbp - 0x10], 0
je 0x2fc4c5f92
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4c5f58
lea rax, [0x2fc4e80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4c5fbb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4c60c0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4c60e8
mov eax, 0
jmp 0x2fc4c6136
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4c6111
mov eax, 0
jmp 0x2fc4c6136
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4c6131
mov eax, 0
jmp 0x2fc4c6136
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4c613c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4c61ba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4c61b1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4c61b1
mov rax, qword [rbp - 8]
jmp 0x2fc4c61cf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4c6184
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400111e0
Capabilities:
Terminate process

Disassembly:
jmp 0x140012f10
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140011258
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x1400117a0
push rbp
push rdi
sub rsp, 0x268
lea rbp, [rsp + 0x60]
lea rdi, [rsp + 0x60]
mov ecx, 0x52
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x1f8], rax
lea rcx, [0x1400210a3]
call fcn.140011357
mov qword [rbp + 8], 0
mov qword [rbp + 0x28], 0x1000
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rbp + 0x48], rax
lea rdx, str.NtAllocateVirtualMemory
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x68], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x68]
movzx eax, byte [rcx + rax + 4]
mov dword [0x14001c900], eax
mov rax, qword [rbp + 0x68]
add rax, 0x12
mov qword [0x14001c8f8], rax
lea rdx, str.NtWriteVirtualMemory
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x88], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x88]
movzx eax, byte [rcx + rax + 4]
mov dword [0x14001c8f0], eax
mov rax, qword [rbp + 0x88]
add rax, 0x12
mov qword [0x14001c8e8], rax
lea rdx, str.NtCreateThreadEx
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0xa8], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0xa8]
movzx eax, byte [rcx + rax + 4]
mov dword [0x14001c8e0], eax
mov rax, qword [rbp + 0xa8]
add rax, 0x12
mov qword [0x14001c8d8], rax
lea rdx, str.NtWaitForSingleObject
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0xc8], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0xc8]
movzx eax, byte [rcx + rax + 4]
mov dword [0x14001c8d4], eax
mov rax, qword [rbp + 0xc8]
add rax, 0x12
mov qword [0x14001c8b8], rax
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x3000
lea r9, [rbp + 0x28]
xor r8d, r8d
lea rdx, [rbp + 8]
mov rcx, 0xffffffffffffffff
call fcn.1400113a2
mov eax, dword [0x140019e2c]
mov dword [rbp + 0xe4], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rcx, [rbp + 0x104]
mov qword [rsp + 0x20], rcx
mov r9d, 4
lea r8, [rbp + 0xe4]
mov rdx, qword [rbp + 8]
mov rcx, rax
call fcn.1400113a7
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rcx, qword [rbp + 8]
mov qword [rsp + 0x20], rcx
mov r9, rax
xor r8d, r8d
mov edx, 0x20000000
lea rcx, [rbp + 0x128]
call fcn.1400111cc
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x128]
call fcn.140011389
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x60]
lea rdx, [0x140019d40]
call fcn.1400112f3
mov eax, edi
mov rcx, qword [rbp + 0x1f8]
xor rcx, rbp
call fcn.14001119a
lea rsp, [rbp + 0x208]
pop rdi
pop rbp
ret
Function at 0x140011262
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014260
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014280
xor al, al
jmp 0x140014301
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014293
xor al, al
jmp 0x140014301
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400142bd
xor al, al
jmp 0x140014301
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400142d1
xor al, al
jmp 0x140014301
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400142e3
xor al, al
jmp 0x140014301
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400142ff
xor al, al
jmp 0x140014301
mov al, 1
add rsp, 0x38
ret
Function at 0x140011203
Capabilities:
Terminate process

Disassembly:
jmp 0x140013430
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x14001128f
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014780
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400147a0
xor al, al
jmp 0x140014821
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400147b3
xor al, al
jmp 0x140014821
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400147dd
xor al, al
jmp 0x140014821
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400147f1
xor al, al
jmp 0x140014821
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014803
xor al, al
jmp 0x140014821
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001481f
xor al, al
jmp 0x140014821
mov al, 1
add rsp, 0x38
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000caf0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000cb00]
mov dword [rax], 1
mov rax, qword [0x14000cb10]
mov dword [rax], 1
mov rax, qword [0x14000cae0]
mov dword [rax], 1
mov rax, qword [0x14000c9a0]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x14000cad0]
mov dword [0x14001000c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010c0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14000ca90]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000ca70]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000c950]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067
Function at 0x140001663
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response
Set http header

Disassembly:
push rbp
push rdi
mov eax, 0x1938
call fcn.140002ad0
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x18d0], rcx
mov qword [rbp + 0x18d8], rdx
mov qword [rbp + 0x18e0], r8
mov rdx, qword [rbp + 0x18e0]
lea rax, [rbp + 0xe70]
mov r9, rdx
lea r8, str.Content_Length:__zu_r_nContent_Type:_application_x_www_form_urlencoded_r_n
mov edx, 0x514
mov rcx, rax
call sym.swprintf
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
lea rcx, str.WinHTTP_Client_1.0
call sym.WinHttpOpen
mov qword [rbp + 0x18a8], rax
mov qword [rbp + 0xc60], 0
mov qword [rbp + 0xc68], 0
lea rdx, [rbp + 0xc70]
mov eax, 0
mov ecx, 0x3f
mov rdi, rdx
rep stosq qword [rdi], rax
mov qword [rbp + 0x440], 0
mov qword [rbp + 0x448], 0
lea rdx, [rbp + 0x450]
mov eax, 0
mov ecx, 0x102
mov rdi, rdx
rep stosq qword [rdi], rax
lea rax, [rbp + 0x3d0]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp + 0x3d0], 0x68
lea rax, [rbp + 0xc60]
mov qword [rbp + 0x3e8], rax
mov dword [rbp + 0x3f0], 0x104
lea rax, [rbp + 0x440]
mov qword [rbp + 0x418], rax
mov dword [rbp + 0x420], 0x514
mov dword [rbp + 0x3e0], 1
mov rcx, qword [rbp + 0x18d0]
call sym.wcslen
mov edx, eax
lea rax, [rbp + 0x3d0]
mov r9, rax
mov r8d, 0
mov rcx, qword [rbp + 0x18d0]
call sym.WinHttpCrackUrl
movzx eax, word [rbp + 0x3f4]
movzx ecx, ax
mov rdx, qword [rbp + 0x3e8]
mov rax, qword [rbp + 0x18a8]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
call sym.WinHttpConnect
mov qword [rbp + 0x18a0], rax
mov rdx, qword [rbp + 0x418]
mov rax, qword [rbp + 0x18a0]
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rdx
lea rdx, str.POST
mov rcx, rax
call sym.WinHttpOpenRequest
mov qword [rbp + 0x1898], rax
lea rax, [rbp + 0xe70]
mov rcx, rax
call sym.wcslen
mov ecx, eax
lea rdx, [rbp + 0xe70]
mov rax, qword [rbp + 0x1898]
mov r9d, 0x1000000
mov r8d, ecx
mov rcx, rax
call sym.WinHttpAddRequestHeaders
mov rax, qword [rbp + 0x18e0]
mov r8d, eax
mov rax, qword [rbp + 0x18e0]
mov ecx, eax
mov rdx, qword [rbp + 0x18d8]
mov rax, qword [rbp + 0x1898]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], r8d
mov dword [rsp + 0x20], ecx
mov r9, rdx
mov r8d, 0
mov edx, 0
mov rcx, rax
call sym.WinHttpSendRequest
mov rax, qword [rbp + 0x1898]
mov edx, 0
mov rcx, rax
call sym.WinHttpReceiveResponse
mov dword [rbp + 0x3cc], 0
jmp 0x1400018ed
mov eax, dword [rbp + 0x3cc]
lea rdx, [rbp - 0x40]
mov r8, rdx
mov edx, eax
lea rcx, [0x14000c0c0]
call sym.printf
lea rcx, [rbp + 0x3cc]
lea rdx, [rbp - 0x40]
mov rax, qword [rbp + 0x1898]
mov r9, rcx
mov r8d, 0x400
mov rcx, rax
call sym.WinHttpReadData
test eax, eax
je 0x14000191e
mov eax, dword [rbp + 0x3cc]
test eax, eax
jne 0x1400018d2
mov rax, qword [rbp + 0x1898]
mov rcx, rax
call sym.WinHttpCloseHandle
mov rax, qword [rbp + 0x18a0]
mov rcx, rax
call sym.WinHttpCloseHandle
mov rax, qword [rbp + 0x18a8]
mov rcx, rax
call sym.WinHttpCloseHandle
mov eax, 1
add rsp, 0x1938
pop rdi
pop rbp
ret
Function at 0x140001d00
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140001d70
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1400100a4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140001f20
mov rax, qword [0x1400100a8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140001dbc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001e47
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140001da0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x140001f7d
mov rax, qword [0x1400100a8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400100a8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001f62
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001e40
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001ed0
add dword [0x1400100a4], 1
cmp ebx, 8
jae 0x140001e78
test bl, 4
jne 0x140001f30
test ebx, ebx
je 0x140001e69
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140001f50
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140001e69
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x140001eaa
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x1400100a8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001e40
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x140001dc7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140001e69
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140001e69
mov rax, qword [0x1400100a8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]