joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017b50
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push r14
sub rsp, 0x28
mov r14, rcx
call fcn.1400137e0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
movzx eax, word [rax]
test ax, ax
je 0x140017b84
cmp ax, 0x20
ja 0x140017b84
movzx eax, word [rdx + 2]
add rdx, 2
test ax, ax
jne 0x140017b71
movzx r9d, word [rdx]
movzx eax, r9w
cmp r9w, 0x22
jne 0x140017b97
movzx eax, word [rdx + 2]
mov ecx, 0x20
mov r8d, 0x22
cmovne r8w, cx
lea rcx, [rdx + 2]
cmovne rcx, rdx
cmp ax, r8w
je 0x140017bd1
movzx edx, ax
movzx eax, dx
test dx, dx
je 0x140017bd1
movzx eax, word [rcx + 2]
add rcx, 2
movzx edx, ax
cmp ax, r8w
jne 0x140017bb8
test ax, ax
lea rdx, [rcx + 2]
cmove rdx, rcx
mov rsi, rdx
cmp r9w, 0x22
jne 0x140017bf0
cmp word [rdx], 0x20
jne 0x140017bf0
lea rsi, [rdx + 2]
movzx eax, word [rsi]
test ax, ax
je 0x140017d7e
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x20], r15
xor r15d, r15d
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
cmp ax, 0x22
jne 0x140017cc2
movzx eax, word [rsi + 2]
add rsi, 2
mov rdi, rsi
test ax, ax
je 0x140017c43
nop dword [rax]
cmp ax, 0x22
je 0x140017c43
movzx eax, word [rdi + 2]
add rdi, 2
test ax, ax
jne 0x140017c30
mov rbx, rdi
sub rbx, rsi
sar rbx, 1
test rbx, rbx
jle 0x140017c78
mov rax, qword [r14]
add rbx, rbx
mov rcx, r14
lea rdx, [rbx + 2]
call qword [rax]
mov r8, rbx
mov rdx, rsi
mov rcx, rax
mov rbp, rax
call fcn.140025530
mov word [rbx + rbp], r15w
jmp 0x140017c7b
mov rbp, r15
mov rbx, qword [r14 + 0x30]
lea rcx, [r14 + 8]
mov rax, qword [rcx + 0x20]
sub rax, rbx
cmp rax, 8
jl 0x140017c9f
mov rax, qword [rcx + 0x18]
mov qword [rbx + rax], rbp
add qword [rcx + 0x28], 8
jmp 0x140017cac
lea rdx, [rbx + 8]
call fcn.140018bb0
mov qword [rax + rbx], rbp
mov rsi, rdi
cmp word [rdi], r15w
je 0x140017d5e
lea rsi, [rdi + 2]
jmp 0x140017d5e
cmp ax, 0x20
jbe 0x140017d5a
mov rdi, rsi
nop
cmp ax, 0x22
je 0x140017ce9
cmp ax, 0x20
jbe 0x140017ce9
movzx eax, word [rdi + 2]
add rdi, 2
test ax, ax
jne 0x140017cd0
mov rbx, rdi
sub rbx, rsi
sar rbx, 1
test rbx, rbx
jle 0x140017d1e
mov rax, qword [r14]
add rbx, rbx
mov rcx, r14
lea rdx, [rbx + 2]
call qword [rax]
mov r8, rbx
mov rdx, rsi
mov rcx, rax
mov rbp, rax
call fcn.140025530
mov word [rbx + rbp], r15w
jmp 0x140017d21
mov rbp, r15
mov rbx, qword [r14 + 0x30]
lea rcx, [r14 + 8]
mov rax, qword [rcx + 0x20]
sub rax, rbx
cmp rax, 8
jl 0x140017d48
mov rax, qword [rcx + 0x18]
mov rsi, rdi
mov qword [rbx + rax], rbp
add qword [rcx + 0x28], 8
jmp 0x140017d5e
lea rdx, [rbx + 8]
call fcn.140018bb0
mov rsi, rdi
mov qword [rax + rbx], rbp
jmp 0x140017d5e
add rsi, 2
movzx eax, word [rsi]
test ax, ax
jne 0x140017c13
mov r15, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rax, qword [r14 + 0x30]
shr rax, 3
add rsp, 0x28
pop r14
pop rsi
ret
Function at 0x140018460
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
movzx edi, cl
lea rax, [rdi - 0x60]
cmp rax, 9
ja 0x1400184e5
sub rdi, 0x30
mov rbx, rdi
test rdi, rdi
je 0x1400184d7
cmp rdi, 0x11
je 0x1400184a1
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1400184a1
mov rbx, rdi
bts rbx, 0xd
cmp rbx, 0x10
je 0x1400184bc
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1400184bc
bts rbx, 0xf
cmp rbx, 0x12
je 0x1400184d7
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1400184d7
bts rbx, 0xe
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp rdi, 0x6d
jne 0x1400184f4
mov edi, 0xbd
mov ebx, edi
jmp 0x140018489
cmp rdi, 0x6e
jne 0x140018503
mov edi, 0xbe
mov ebx, edi
jmp 0x140018489
cmp rdi, 0x6f
jne 0x140018515
mov edi, 0xbf
mov ebx, edi
jmp 0x140018489
lea rax, [0x1400450c0]
mov rax, qword [rax + rdi*8]
cmp word [rax], 0
jne 0x14001847b
mov rbx, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x14001aa70
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x14001ab25
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x14001aaf1
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x14001ab09
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x14001ab09
mov rdx, qword [rdi]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rdi + 8], 0
je case.default.0x14001ab09
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp byte [0x140057460], 0
jne 0x14001ab70
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001ab60
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140057458], rax
mov byte [0x140057460], 1
jmp 0x14001ab77
mov rax, qword [0x140057458]
mov byte [0x140057460], 1
jmp 0x14001ab77
mov rax, qword [0x140057458]
mov rcx, qword [rbx]
mov rdx, rsi
test rax, rax
je 0x14001aafa
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp rax
xor eax, 0x5430e03b
or dh, bh
adc eax, 0xe14ab3c0
xor byte [rbx + 0x5cb2aaa0], dh
and dword [rdx], ebp
mov eax, 0x1d35e35c
movabs al, byte [0xd63ec58584fe2a2e]
invalid
Function at 0x14001b430
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x140054010]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x60], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14001b4b5
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14001b4b5
call fcn.14001a890
mov ebx, eax
jmp 0x14001b5d7
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14001b4d6
call fcn.14001a890
jmp 0x14001b5c6
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x14001b4f9
call fcn.14001a890
jmp 0x14001b5c6
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x14001b51b
mov ebx, 0x8007000e
jmp 0x14001b5c8
mov ecx, eax
test eax, eax
je 0x14001b550
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x14001b60f
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x14001b550
lea rcx, [rsp + 0x60]
call fcn.14001e760
jmp 0x14001b55a
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
jmp 0x14001b56d
mov rax, qword [rsp + 0x60]
test rax, rax
jne 0x14001b57e
mov ebx, 0x8007000e
jmp 0x14001b5c8
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x14001b5a3
call fcn.14001a890
jmp 0x14001b5c6
mov ecx, eax
mov rax, qword [rsp + 0x60]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.14001c520
mov ebx, eax
test rdi, rdi
je 0x14001b5d7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x14001b5ee
lea rcx, [rsp + 0x60]
call fcn.14001e750
nop
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140023490
add rsp, 0x480
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.140001260
int3
Function at 0x140021a60
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rsi, rcx
cmp qword [rcx + 8], 0
je 0x140021bb3
xor edi, edi
cmp qword [rcx + 0xe0], rdi
je 0x140021b87
cmp qword [rcx + 0xe8], rdi
je 0x140021aa2
mov edi, 0xc80000
jmp 0x140021b62
call fcn.1400013b0
mov rcx, rax
test rax, rax
je 0x140021bc6
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebp, [rax + 1]
test ebp, ebp
js 0x140021bd1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, ebp
or eax, ecx
jge 0x140021af9
mov edx, ebp
lea rcx, [rsp + 0x40]
call fcn.140021ee0
mov rbx, qword [rsp + 0x40]
mov r8d, ebp
mov rdx, rbx
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, 0xffffffff
jne 0x140021b1a
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.14002e0bc
test eax, eax
js 0x140021bd1
cmp eax, dword [rbx - 0xc]
jg 0x140021bd1
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], di
cmp dword [rbx - 0x10], 0
je 0x140021b46
mov eax, 0xc00000
cmp word [rbx], 0
cmovne edi, eax
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140021b62
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, 0x410000
mov ecx, 0x400000
cmp qword [rsi + 0xf0], 0
cmove eax, ecx
or edi, eax
cmp qword [rsi + 0xf8], 0
je 0x140021b87
bts edi, 0x11
mov edx, 0xfffffff0
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xcb0000
cmp eax, edi
je 0x140021bb3
mov r9d, 0x37
mov r8d, edi
mov edx, eax
lea rcx, [rsi + 8]
call fcn.140012c20
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
mov ecx, 0x80004005
call fcn.140001260
nop
mov ecx, 0x80070057
call fcn.140001260
int3

Function at 0x1400240b0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400240fa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400240fa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400240fa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400240fa
cmp dword [rcx + 0x84], 0xe
jbe 0x1400240fa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400240fc
xor al, al
add rsp, 0x28
ret
Function at 0x140029f88
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140029df3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140029df3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140029df3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140029df3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140029df3
cmp dword [rcx + 0x84], 0xe
jbe 0x140029df3
cmp dword [rcx + 0xf8], 0
je 0x140029df3
mov ecx, ebx
call fcn.140029ea4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140029c80
nop
cmp dword [rbp + 0x20], 0
je 0x140029e41
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140029e4c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140029d84
Function at 0x140033e38
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140033ebf
mov rsi, rbx
cmp word [rax], bp
je 0x140033e7e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140033e68
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140033e64
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14003168c
mov rdi, rax
test rax, rax
je 0x140033eac
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140025530
mov rbp, rdi
xor ecx, ecx
call fcn.14002f3f4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
push rcx
push rsi
mov rdx, qword [rdx + 0x20]
movzx rcx, word [rdx + 0x4a]
xor r9, r9
mov rsi, qword [rdx + 0x50]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
push r9
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov r8d, dword [rax + 0x20]
push rax
mov ecx, dword [rax + 0x18]
add r8, rdx
jrcxz 0x1400040ca
dec rcx
xor r9, r9
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00404530]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x00404540]
mov dword [rax], 1
mov rax, qword [0x00404550]
mov dword [rax], 1
mov rax, qword [0x00404520]
mov dword [rax], 1
mov rax, qword [0x00404410]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x00404510]
mov dword [0x0040700c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x4010b0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x004044d0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x004043c0]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067

Function at 0x401b70
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 0x4025b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00407900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004078e0]
test rbx, rbx
je 0x402604
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x4025fb
test r12, r12
je 0x4025fb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4025e0
lea rcx, [0x00407900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x402830
Capabilities:
Parse pe header

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

Function at 0x402850
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 0x402895
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x40288c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402897
add rax, 0x28
cmp rax, r9
jne 0x402878
xor eax, eax
ret

Function at 0x402940
Capabilities:
Enumerate pe sections

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

Function at 0x402aa0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x00404410]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x402b0f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402b0f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x402b0d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x402b04
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402b18
add rax, 0x28
cmp rax, r9
jne 0x402af0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x402b30
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00404410]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x402ba8
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402ba8
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x402ba8
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402ba8
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x402b9c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x402bb0
add rdx, 0x28
cmp rdx, r10
jne 0x402b88
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x402bc0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x402bce
mov edx, dword [rax + 0xc]
test edx, edx
je 0x402ba5
test r8d, r8d
jg 0x402bb8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x1400120b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, qword [rdx + 0x28]
test rbx, rbx
jne 0x1400120c3
xor edx, edx
jmp 0x1400120c7
mov rdx, qword [rdx + 0x18]
mov rcx, qword [rcx + 0x18]
mov rcx, qword [rcx + 0x28]
test rcx, rcx
je 0x140012102
mov dword [rsp + 0x40], 0
test rbx, rbx
je 0x14001210a
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, ebx
call qword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x140012102
cmp dword [rsp + 0x40], ebx
je 0x14001210a
xor eax, eax
add rsp, 0x30
pop rbx
ret
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x1400205f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.140020430
mov r8, qword [rbx]
mov rcx, rbx
mov rsi, rax
call qword [r8 + 0x28]
cmp rsi, rax
je 0x14002064b
mov ecx, dword [rsi + 0x18]
cmp dword [rax + 0x18], ecx
jne 0x140020759
mov r8, qword [rsi + 0x10]
cmp qword [rax + 0x10], r8
jne 0x140020759
mov rdx, qword [rsi + 8]
mov rcx, qword [rax + 8]
call fcn.14003b3a0
test eax, eax
jne 0x140020759
movzx eax, byte [rbx + 8]
xor al, byte [rdi + 8]
test al, 1
jne 0x140020759
mov rax, qword [rbx + 0x10]
cmp qword [rdi + 0x10], rax
jne 0x140020759
mov rax, qword [rbx + 0x18]
cmp qword [rdi + 0x18], rax
jne 0x140020759
mov r8, qword [rbx + 0x38]
test r8, r8
jne 0x140020690
cmp qword [rbx + 0x68], r8
lea r8, [0x14005d198]
je 0x140020690
mov r8, qword [rbx + 0x58]
mov rax, qword [rdi + 0x38]
test rax, rax
jne 0x1400206aa
cmp qword [rdi + 0x68], rax
lea rax, [0x14005d198]
je 0x1400206aa
mov rax, qword [rdi + 0x58]
sub r8, rax
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x1400206c4
add rax, 2
test ecx, ecx
jne 0x1400206b0
test edx, edx
jne 0x140020759
mov r8, qword [rbx + 0x90]
test r8, r8
jne 0x1400206ef
cmp qword [rbx + 0xc0], r8
lea r8, [0x14005d198]
je 0x1400206ef
mov r8, qword [rbx + 0xb0]
mov rax, qword [rdi + 0x90]
test rax, rax
jne 0x140020712
cmp qword [rdi + 0xc0], rax
lea rax, [0x14005d198]
je 0x140020712
mov rax, qword [rdi + 0xb0]
sub r8, rax
nop word [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140020734
add rax, 2
test ecx, ecx
jne 0x140020720
test edx, edx
jne 0x140020759
mov eax, dword [rbx + 0xd0]
cmp dword [rdi + 0xd0], eax
jne 0x140020759
lea eax, [rdx + 1]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret