joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d9f80
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x18]
test eax, eax
jne 0x1400d9fc5
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
nop
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
jmp 0x1400da080
mov rax, qword [rsp + 0x50]
add rax, 0x10
mov rdx, rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc120u.dll_Ordinal_280]
nop
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc120u.dll_Ordinal_5576]
test eax, eax
je 0x1400da05d
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.mfc120u.dll_Ordinal_1636]
mov qword [rsp + 0x28], rax
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc120u.dll_Ordinal_4855]
mov rcx, qword [rsp + 0x28]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, 0xffffffff
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc120u.dll_Ordinal_12110]
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc120u.dll_Ordinal_1636]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.mfc120u.dll_Ordinal_1636]
xor r8d, r8d
mov rcx, qword [rsp + 0x30]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CopyFileW]
nop
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
nop
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
nop
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
add rsp, 0x48
ret
Function at 0x1400de080
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 0x30]
test eax, eax
je 0x1400de0ba
mov rax, qword [rsp + 0x60]
add rax, 0x28
mov rcx, rax
call qword [sym.imp.mfc120u.dll_Ordinal_1636]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x20], 0
je 0x1400de0d4
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x20]
call fcn.1400df930
mov rax, qword [rsp + 0x60]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x80], 0
je 0x1400de132
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x80]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400de129
mov edx, 1
mov rcx, qword [rsp + 0x20]
call fcn.1400df770
mov qword [rsp + 0x30], rax
jmp 0x1400de132
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x60]
mov qword [rax + 0x80], 0
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x78], 0
je 0x1400de167
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x78]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call sub.mfc120u.dll_Ordinal_1486
nop
mov rax, qword [rsp + 0x60]
add rax, 0x58
mov rcx, rax
call fcn.1400ddf60
nop
mov rax, qword [rsp + 0x60]
add rax, 0x38
mov rcx, rax
call fcn.140074e50
nop
mov rax, qword [rsp + 0x60]
add rax, 0x28
mov rcx, rax
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
nop
mov rax, qword [rsp + 0x60]
add rax, 0x18
mov rcx, rax
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
nop
mov rax, qword [rsp + 0x60]
add rax, 8
mov rcx, rax
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
nop
mov rax, qword [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
add rsp, 0x58
ret

Function at 0x1400dfd50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x20], 0
jne 0x1400dfd73
xor eax, eax
jmp 0x1400dfdef
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rax + 8]
sub rax, rcx
cmp qword [rsp + 0x40], rax
jbe 0x1400dfda9
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rax + 8]
sub rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x30]
mov r9, qword [rax + 0x20]
mov r8d, 1
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.MSVCR120.dll_fread]
imul rax, qword [rsp + 0x40]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x10]
add rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x40]
add rsp, 0x28
ret
Function at 0x1400e8660
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 8], rcx
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x10], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x10], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x67452301
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0xefcdab89
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x98badcfe
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x10325476
ret
Function at 0x1400ea380
Capabilities:
Encrypt data using blowfish

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x20], 0
jmp 0x1400ea3a7
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 4
jge 0x1400ea410
mov dword [rsp + 0x24], 0
jmp 0x1400ea3c2
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x100
jge 0x1400ea40e
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x400
lea rcx, [0x1401800c0]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x24]
movsxd rdx, dword [rsp + 0x20]
imul rdx, rdx, 0x400
mov r8, qword [rsp + 0x50]
lea rdx, [r8 + rdx + 0x48]
movsxd r8, dword [rsp + 0x24]
mov eax, dword [rax + rcx*4]
mov dword [rdx + r8*4], eax
jmp 0x1400ea3b8
jmp 0x1400ea39d
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 0
jmp 0x1400ea42c
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x12
jge 0x1400ea4ba
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x30], 0
jmp 0x1400ea453
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 4
jge 0x1400ea493
mov eax, dword [rsp + 0x34]
shl eax, 8
movsxd rcx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x58]
movzx ecx, byte [rdx + rcx]
or eax, ecx
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x24], eax
jl 0x1400ea491
mov dword [rsp + 0x24], 0
jmp 0x1400ea449
movsxd rax, dword [rsp + 0x20]
lea rcx, [0x140180070]
mov edx, dword [rsp + 0x34]
mov eax, dword [rcx + rax*4]
xor eax, edx
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x50]
mov dword [rdx + rcx*4], eax
jmp 0x1400ea422
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x2c], 0
mov dword [rsp + 0x20], 0
jmp 0x1400ea4df
mov eax, dword [rsp + 0x20]
add eax, 2
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x12
jge 0x1400ea521
lea r8, [rsp + 0x2c]
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
call fcn.1400ea5d0
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
mov edx, dword [rsp + 0x28]
mov dword [rcx + rax*4], edx
mov eax, dword [rsp + 0x20]
inc eax
cdqe
mov rcx, qword [rsp + 0x50]
mov edx, dword [rsp + 0x2c]
mov dword [rcx + rax*4], edx
jmp 0x1400ea4d4
mov dword [rsp + 0x20], 0
jmp 0x1400ea535
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 4
jge 0x1400ea5c2
mov dword [rsp + 0x24], 0
jmp 0x1400ea555
mov eax, dword [rsp + 0x24]
add eax, 2
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x100
jge 0x1400ea5bd
lea r8, [rsp + 0x2c]
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
call fcn.1400ea5d0
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x400
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax + 0x48]
movsxd rcx, dword [rsp + 0x24]
mov edx, dword [rsp + 0x28]
mov dword [rax + rcx*4], edx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x400
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax + 0x48]
mov ecx, dword [rsp + 0x24]
inc ecx
movsxd rcx, ecx
mov edx, dword [rsp + 0x2c]
mov dword [rax + rcx*4], edx
jmp 0x1400ea54a
jmp 0x1400ea52b
add rsp, 0x48
ret
Function at 0x1400eabf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp qword [rsp + 0x58], 0
jne 0x1400eac17
xor eax, eax
jmp 0x1400eacdc
mov eax, dword [rsp + 0x70]
add eax, 0x68
movzx eax, ax
lea r8, [0x14018130c]
mov edx, eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400eac49
xor eax, eax
jmp 0x1400eacdc
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1400eac6a
xor eax, eax
jmp 0x1400eacdc
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1400eac86
xor eax, eax
jmp 0x1400eacdc
cmp qword [rsp + 0x60], 0
je 0x1400eacc0
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, qword [rsp + 0x68]
cmp dword [rcx], eax
jb 0x1400eacc0
mov rax, qword [rsp + 0x68]
mov eax, dword [rax]
mov r8d, eax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
call sub.MSVCR120.dll_memcpy
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, qword [rsp + 0x68]
mov dword [rcx], eax
mov eax, 1
add rsp, 0x48
ret
Function at 0x1400ed0e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov byte [rsp + 0x40], 0
cmp qword [rsp + 0x80], 0x104
jbe 0x1400ed1df
call fcn.140015130
mov dword [rsp + 0x4c], eax
mov rax, qword [rsp + 0x70]
add rax, 8
mov rcx, rax
call fcn.140030730
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
je 0x1400ed1df
mov dword [rsp + 0x44], Ordinal_265
cmp qword [rsp + 0x78], 0
je 0x1400ed1d4
mov eax, dword [rsp + 0x44]
inc eax
mov eax, eax
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call sub.MSVCR120.dll_memset
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400ed1d4
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x44], eax
jne 0x1400ed1d4
mov eax, dword [rsp + 0x44]
mov r8d, eax
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.1400ed390
mov byte [rsp + 0x40], 1
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [rsp + 0x40]
add rsp, 0x68
ret
Function at 0x1400f65a0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400f65e6
xor eax, eax
jmp 0x1400f6723
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
je 0x1400f6613
xor eax, eax
jmp 0x1400f6723
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x20], 0
jmp 0x1400f667c
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x20], eax
jae 0x1400f671c
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCR120.dll__stricmp]
test eax, eax
jne 0x1400f6717
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax*4]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x1400f671c
jmp 0x1400f6672
jmp 0x1400f671e
mov rax, qword [rsp + 0x40]
add rsp, 0x88
ret

Function at 0x1400f7470
Capabilities:
Get hostname

Disassembly:
sub rsp, 0x38
cmp dword [0x1401f2fb4], 0x7af
jne 0x1400f74c1
mov dword [rsp + 0x20], 0x10
lea rdx, [rsp + 0x20]
lea rcx, [0x1401fac88]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x1400f74b7
lea r8, [0x140184830]
mov edx, 0x10
lea rcx, [0x1401fac88]
call qword [sym.imp.MSVCR120.dll_wcscpy_s]
mov dword [0x1401f2fb4], 0x7d2
lea rax, [0x1401fac88]
add rsp, 0x38
ret
Function at 0x1400f74e0
Capabilities:
Get disk information

Disassembly:
sub rsp, 0x488
mov rax, qword [0x1401f3f10]
xor rax, rsp
mov qword [rsp + Ordinal_1143], rax
cmp dword [0x1401f2fb8], 0x7af
jne 0x1400f755b
mov dword [rsp + 0x38], Ordinal_265
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [0x1401f2fb8]
mov r8d, Ordinal_265
lea rdx, [rsp + 0x260]
lea rcx, [0x140184838]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x1400f755b
mov dword [0x1401f2fb8], 0
mov eax, dword [0x1401f2fb8]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14010f170
add rsp, 0x488
ret

Function at 0x1400f7580
Capabilities:
Get session user name

Disassembly:
sub rsp, 0x38
cmp dword [0x1401f2fbc], 0x7af
jne 0x1400f75d1
mov dword [rsp + 0x20], 0x101
lea rdx, [rsp + 0x20]
lea rcx, [0x1401facb0]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x1400f75c7
lea r8, [0x140184840]
mov edx, 0x101
lea rcx, [0x1401facb0]
call qword [sym.imp.MSVCR120.dll_wcscpy_s]
mov dword [0x1401f2fbc], 0x7d2
lea rax, [0x1401facb0]
add rsp, 0x38
ret
Function at 0x10007510
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xa0
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x10015150], rbx
je 0x10007566
cmp rax, rbx
jne 0x10007559
mov edi, 1
jmp 0x10007566
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10007540
mov eax, dword [0x10015148]
cmp eax, 1
jne 0x1000757b
lea ecx, [rax + 0x1e]
call sub.MSVCR80.dll__amsg_exit
jmp 0x100075ba
mov eax, dword [0x10015148]
test eax, eax
jne 0x100075b0
mov dword [0x10015148], 1
lea rdx, [0x100014d0]
lea rcx, [0x100014b8]
call sub.MSVCR80.dll__initterm_e
test eax, eax
je 0x100075ba
mov eax, 0xff
jmp 0x10007714
mov dword [0x10014314], 1
mov eax, dword [0x10015148]
cmp eax, 1
jne 0x100075e2
lea rdx, [0x100014b0]
lea rcx, [0x10001470]
call sub.MSVCR80.dll__initterm
mov dword [0x10015148], 2
test edi, edi
jne 0x100075ef
xor eax, eax
xchg qword [0x10015150], rax
cmp qword [0x10015168], 0
je 0x10007618
lea rcx, [0x10015168]
call fcn.10007b90
test eax, eax
je 0x10007618
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x10015168]
mov rax, qword [sym.imp.MSVCR80.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
nop
nop
movzx ecx, byte [rbx]
cmp cl, 0x20
ja 0x100076aa
test cl, cl
je 0x10007640
test edi, edi
jne 0x100076aa
movzx eax, byte [rbx]
test al, al
je 0x10007656
cmp al, 0x20
ja 0x10007656
add rbx, 1
mov qword [rsp + 0x28], rbx
jmp 0x10007640
test byte [rsp + 0x6c], 1
je 0x10007665
movzx r9d, word [rsp + 0x70]
jmp 0x1000766b
mov r9d, 0xa
mov r8, rbx
xor edx, edx
lea rcx, [0x10000000]
call fcn.10005300
mov dword [0x10014310], eax
cmp dword [0x100142f4], 0
jne 0x10007693
mov ecx, eax
call qword [sym.imp.MSVCR80.dll_exit]
cmp dword [0x10014314], 0
jne 0x100076a8
call qword [sym.imp.MSVCR80.dll__cexit]
mov eax, dword [0x10014310]
jmp 0x1000770d
cmp cl, 0x22
jne 0x100076bc
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
movzx ecx, cl
call qword [sym.imp.MSVCR80.dll__ismbblead]
test eax, eax
je 0x100076d2
add rbx, 1
mov qword [rsp + 0x28], rbx
add rbx, 1
mov qword [rsp + 0x28], rbx
jmp 0x10007630
jmp 0x10007714
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rdi
ret
sub rsp, 0x28
call fcn.10157000
add rsp, 0x28
jmp 0x10007510
Function at 0x140007290
Capabilities:
Parse pe header

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

Function at 0x14000b520
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.140006850
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14000ee8c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14000b56f
mov rax, rbp
jmp 0x14000b677
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 + 0x25450]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14000e14c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x25450]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14000b673
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 0x14000b673
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14000e14c
test rax, rax
js 0x14000b673
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14000b673
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14000b665
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14000b665
cmp byte [rcx], 0xd
jne 0x14000b64b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14000b65a
cmp byte [rcx + 1], 0xa
jne 0x14000b65a
inc rcx
jmp 0x14000b65a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x24380]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14000b62d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14000b677
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400068b0
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 0x14000ca14
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000c810
Function at 0x14000eeb4
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, [0x140025450]
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 0x14000ef0b
cmp word [rdx], r13w
jne 0x14000ef0b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14000ef10
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14000f035
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14000f056
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14000ef49
mov rdx, r9
mov word [rbx], cx
jmp 0x14000ef70
cmp r9, r8
jae 0x14000ef80
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 0x14000ef2a
jmp 0x14000f035
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 0x14000f02a
cmp dword [rsp + 0x80], esi
je 0x14000f02a
lea r8, [0x140025450]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14000f002
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14000efd2
mov word [rbx], r13w
jmp 0x14000f032
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 0x14000efdf
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14000f032
cmp word [rsp + 0x70], r13w
jne 0x14000f00f
cmp rbx, r14
je 0x14000efcc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14000e154
cmp word [rsp + 0x70], r13w
je 0x14000f035
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, [0x140025450]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14000f02f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14000f035
Function at 0x140011aa4
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 0x140011ad4
xor eax, eax
jmp 0x140011b97
mov rbp, rbx
cmp word [rax], si
je 0x140011af9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140011ae0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140011adc
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.1400119c4
movsxd r14, eax
test eax, eax
jne 0x140011b37
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140011acd
mov rcx, r14
call fcn.14000fd38
mov rdi, rax
test rax, rax
jne 0x140011b50
xor ecx, ecx
call fcn.14000fa14
jmp 0x140011b2c
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.1400119c4
test eax, eax
jne 0x140011b81
mov rcx, rdi
call fcn.14000fa14
jmp 0x140011b8b
xor ecx, ecx
call fcn.14000fa14
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