joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400147d0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x1400227c0], 0
jne 0x1400135ff
mov dword [0x1400227c0], 1
lea rcx, [0x1400135a0]
jmp 0x140013fe0
ret
mov rax, qword [0x140026940]
cmp qword [0x14001d060], rax
ja 0x140013ff5
jmp 0x1400147d0
lea rdx, [rax + 1]
mov qword [0x140026940], rdx
lea rdx, [0x1400266c0]
mov qword [rdx + rax*8], rcx
ret
sub rsp, 0x28
mov ecx, 6
call fcn.140014820
mov ecx, 1
jmp 0x14000f320

Function at 0x1400147f0
Capabilities:
Delete file

Disassembly:
jmp 0x1400147f0
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x140014810
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400146f0
or eax, 0xffffffff
jmp 0x140014812
xor eax, eax
add rsp, 0x28
ret

Function at 0x140014820
Capabilities:
Terminate process

Disassembly:
push rbx
push rsi
sub rsp, 0x38
mov ebx, ecx
mov edx, 1
call fcn.140010170
mov rsi, rax
cmp rsi, 0xffffffffffffffff
je 0x14001485a
cmp rsi, 1
je 0x140014853
test rsi, rsi
je 0x140014862
mov ecx, ebx
xor edx, edx
call fcn.140010170
mov ecx, ebx
call rsi
xor eax, eax
jmp 0x14001495b
or eax, 0xffffffff
jmp 0x14001495b
mov eax, ebx
lea edx, [eax - 2]
cmp edx, 0xd
ja 0x1400148bd
lea rdx, [0x14001c3e0]
movsxd rax, eax
jmp qword [rdx + rax*8 - 0x10]
lea rcx, [rsp + 0x37]
mov byte [rcx], 0
nop
nop word [rax + rax]
sub rcx, 1
mov eax, 0x66666667
imul ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*4]
add edx, edx
neg edx
add edx, ebx
add edx, 0x30
mov byte [rcx], dl
mov ebx, eax
test eax, eax
jne 0x1400148d0
sub rcx, 1
mov byte [rcx], 0x23
sub rcx, 1
mov byte [rcx], 0x20
sub rcx, 1
mov byte [rcx], 0x6c
sub rcx, 1
mov byte [rcx], 0x61
sub rcx, 1
mov byte [rcx], 0x6e
sub rcx, 1
mov byte [rcx], 0x67
sub rcx, 1
mov byte [rcx], 0x69
sub rcx, 1
mov byte [rcx], 0x73
lea rdx, [0x14001d190]
call fcn.1400100e0
lea rcx, str.____terminating_n
lea rdx, [0x14001d190]
call fcn.1400100e0
mov ecx, 1
jmp 0x14000f320
add rsp, 0x38
pop rsi
pop rbx
ret

Function at 0x140014d00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
mov esi, edx
mov edi, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov qword [rsp + 0x30], 0
xor edx, edx
cmp eax, 0xffffffff
cmove eax, edx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edi
mov rcx, rbx
mov edx, esi
mov r8d, 1
xor r9, r9
call qword [sym.imp.KERNEL32.dll_CreateFileW]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x140014e00
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x38
mov rbx, rcx
mov rsi, rdx
lea rcx, [0x14001ef20]
lea rdx, [0x14001a45c]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
test rsi, rsi
je 0x140014e6d
mov rcx, rsi
xor edx, edx
mov r8d, 1
call fcn.140014d00
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
lea rdx, [0x14001ef20]
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov esi, eax
test esi, esi
je 0x140015035
cmp esi, 0x400
jg 0x140015035
mov rcx, rbx
lea rdx, [0x14001f720]
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov esi, eax
test esi, esi
je 0x140015035
cmp esi, 0x400
jg 0x140015035
lea rcx, [0x14001ff20]
lea rdx, str._s_s_r_n
lea r8, [0x14001ef20]
lea r9, [0x14001f720]
call qword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
lea rcx, str._WIN_
lea rdx, [0x14001f720]
mov r8d, 0x800
call qword [sym.imp.pbcore64.dll_EvalVarBuf]
lea rcx, [0x14001f720]
mov edx, 0xc0000000
mov r8d, 4
call fcn.140014d00
mov rsi, rax
cmp rsi, 0xffffffffffffffff
je 0x140015035
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r12, rax
test r12, r12
je 0x140015012
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, r12
mov r8d, edi
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140015012
cmp edi, dword [rsp + 0x2c]
jne 0x140015012
mov rcx, r12
lea rdx, str._Rename__r_n
call fcn.140014d50
test rax, rax
je 0x14001501d
lea rcx, [rax + 0xa]
lea rdx, [0x14001a444]
call fcn.140014d50
test rax, rax
je 0x140014fc0
mov edx, edi
lea rcx, [r12 + rdx]
add rdx, r12
movsxd r8, ebx
add rdx, r8
cmp rcx, rax
jbe 0x140014fb5
nop
nop word [rax + rax]
sub rdx, 1
sub rcx, 1
mov r8b, byte [rcx + 1]
mov byte [rdx + 1], r8b
cmp rcx, rax
ja 0x140014fa0
sub rax, r12
add rax, 1
mov edx, eax
jmp 0x140014fc2
mov edx, edi
mov eax, edx
mov eax, eax
lea rcx, [r12 + rax]
lea rdx, [0x14001ff20]
mov r8d, ebx
call fcn.140014dd0
mov rcx, rsi
xor edx, edx
xor r8, r8
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], 0
lea r8d, [edi + ebx]
mov rcx, rsi
mov rdx, r12
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140015035
mov eax, edi
lea rcx, [r12 + rax]
lea rdx, str._Rename__r_n
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x140014fc0
add rsp, 0x38
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140015390
Capabilities:
Query environment variable

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
sub rsp, 0x20
mov rbx, rcx
mov rsi, rdx
mov ecx, 0x2000
call fcn.14000d540
mov rdi, rax
test rdi, rdi
je 0x140015414
mov rcx, rbx
mov rdx, rdi
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r12d, eax
test r12d, r12d
je 0x140015418
cmp r12d, 0x1000
ja 0x140015431
mov r14d, 1
jmp 0x1400153e1
xor r14d, r14d
test r14d, r14d
je 0x1400153f4
mov rcx, rsi
mov rdx, rdi
call qword [sym.imp.pbcore64.dll_SetVar]
jmp 0x140015404
mov rcx, rsi
lea rdx, [0x14001a424]
call qword [sym.imp.pbcore64.dll_SetVar]
mov rcx, rdi
call fcn.14000d940
test r14d, r14d
setne al
jmp 0x140015469
xor al, al
jmp 0x140015469
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x1400153de
mov rcx, rdi
call fcn.14000d940
xor al, al
jmp 0x140015469
mov eax, r12d
lea rdx, [rax + rax]
mov rcx, rdi
call fcn.14000dda0
mov rdi, rax
test rdi, rdi
je 0x140015414
mov rcx, rbx
mov rdx, rdi
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x1400153d6
mov rcx, rdi
call fcn.14000d940
xor al, al
add rsp, 0x20
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140015d50
Capabilities:
Create directory
Get common file path

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140015f29
cmp eax, 0x104
ja 0x140015f29
mov rcx, rbx
lea rdx, [0x14001a38a]
call fcn.14000e040
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
shl esi, 0xc
shl edi, 0xe
xor esi, edi
xor esi, eax
xor edi, edi
or rax, 0xffffffffffffffff
add rax, 1
cmp word [rbx + rax*2], 0
jne 0x140015db0
lea rax, [rbx + rax*2]
mov edx, esi
mov ecx, edx
and ecx, 0xf
shr edx, 4
lea r8d, [ecx + 0x30]
lea r9d, [ecx + 0x37]
cmp ecx, 0xa
cmovae r8d, r9d
mov r8b, r8b
movsx r8w, r8b
mov word [rax + 0xe], r8w
mov ecx, edx
and ecx, 0xf
shr edx, 4
lea r8d, [ecx + 0x30]
lea r9d, [ecx + 0x37]
cmp ecx, 0xa
cmovae r8d, r9d
mov r8b, r8b
movsx r8w, r8b
mov word [rax + 0xc], r8w
mov ecx, edx
and ecx, 0xf
shr edx, 4
lea r8d, [ecx + 0x30]
lea r9d, [ecx + 0x37]
cmp ecx, 0xa
cmovae r8d, r9d
mov r8b, r8b
movsx r8w, r8b
mov word [rax + 0xa], r8w
mov ecx, edx
and ecx, 0xf
shr edx, 4
lea r8d, [ecx + 0x30]
lea r9d, [ecx + 0x37]
cmp ecx, 0xa
cmovae r8d, r9d
mov r8b, r8b
movsx r8w, r8b
mov word [rax + 8], r8w
mov ecx, edx
and ecx, 0xf
shr edx, 4
lea r8d, [ecx + 0x30]
lea r9d, [ecx + 0x37]
cmp ecx, 0xa
cmovae r8d, r9d
mov r8b, r8b
movsx r8w, r8b
mov word [rax + 6], r8w
mov ecx, edx
and ecx, 0xf
shr edx, 4
lea r8d, [ecx + 0x30]
lea r9d, [ecx + 0x37]
cmp ecx, 0xa
cmovae r8d, r9d
mov r8b, r8b
movsx r8w, r8b
mov word [rax + 4], r8w
mov ecx, edx
and ecx, 0xf
shr edx, 4
lea r8d, [ecx + 0x30]
lea r9d, [ecx + 0x37]
cmp ecx, 0xa
cmovae r8d, r9d
mov cl, r8b
movsx cx, cl
mov word [rax + 2], cx
and edx, 0xf
lea ecx, [edx + 0x30]
lea r8d, [edx + 0x37]
cmp edx, 0xa
cmovae ecx, r8d
mov dl, cl
movsx dx, dl
mov word [rax], dx
mov word [rax + 0x10], 0
mov rcx, rbx
call fcn.140016820
test eax, eax
jne 0x140015f13
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140015f2d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140015f29
add edi, 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, esi
mov esi, eax
cmp edi, 0x64
jl 0x140015dac
xor al, al
jmp 0x140015f2f
mov al, 1
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
Function at 0x140016710
Capabilities:
Create directory

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x430
mov r8, rcx
lea rdi, [rsp + 0x228]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rdi, [rsp + 0x20]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rcx, [rsp + 0x20]
mov edx, 0x104
call fcn.14000c730
lea rcx, [rsp + 0x20]
call fcn.140016570
lea rax, [rsp + 0x20]
mov rbx, rax
nop dword [rax]
cmp word [rbx], 0x5c
je 0x140016772
cmp word [rbx], 0
lea rbx, [rbx + 2]
jne 0x140016760
xor ebx, ebx
xor esi, esi
jmp 0x140016802
lea rax, [rsp + 0x20]
neg rax
add rax, rbx
sar rax, 1
lea r9, [rax + 1]
lea rcx, [rsp + 0x228]
mov edx, 0x104
lea r8, [rsp + 0x20]
call fcn.14000e0d0
lea rcx, [rsp + 0x228]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400167e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
add rbx, 2
mov rax, rbx
nop
nop word [rax + rax]
cmp word [rbx], 0x5c
je 0x1400167e2
cmp word [rbx], 0
lea rbx, [rbx + 2]
jne 0x1400167d0
xor ebx, ebx
jmp 0x140016802
cmp byte [0x140022b40], 0
je 0x1400167be
mov ecx, 1
lea rdx, [rsp + 0x228]
call qword [sym.imp.pbcore64.dll_AddUninstLog]
jmp 0x1400167be
test rbx, rbx
jne 0x140016779
mov eax, esi
add rsp, 0x430
pop rdi
pop rsi
pop rbx
ret

Function at 0x140016820
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001683d
test eax, 0x10
je 0x14001683d
mov eax, 1
jmp 0x14001683f
xor eax, eax
add rsp, 0x28
ret
Function at 0x140009784
Capabilities:
Create http request
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0xc3550
call fcn.140010e30
sub rsp, rax
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.Mozilla_5.0__Macintosh__Intel_Mac_OS_X_10_7_4__AppleWebKit_537.13__KHTML__like_Gecko__Chrome_24.0.1290.1_Safari_537.13
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140009856
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xc3560]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140009856
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0xc3500
rep stosb byte [rdi], al
lea r9, [rsp + 0x40]
mov r8d, 0xc3500
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140009856
mov r8d, 0xc3500
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0xc3568]
call fcn.140021a20
xor eax, eax
jmp 0x14000985b
mov rax, qword [rsp + 0x48]
add rsp, 0xc3550
pop rdi
ret
Function at 0x14000ac48
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x220
mov dword [rsp + 4], 0
mov dword [rsp + 8], 0
lea rax, [rsp + 0x120]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
lea rax, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
mov byte [rsp], 0
mov dword [rsp + 4], 0
jmp 0x14000acb0
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
cmp dword [rsp + 4], 0x100
jge 0x14000acf1
movsxd rax, dword [rsp + 4]
mov cl, byte [rsp + 4]
mov byte [rsp + rax + 0x20], cl
xor edx, edx
mov eax, dword [rsp + 4]
div dword [rsp + 0x248]
mov eax, edx
mov eax, eax
movsxd rcx, dword [rsp + 4]
mov rdx, qword [rsp + 0x240]
mov al, byte [rdx + rax]
mov byte [rsp + rcx + 0x120], al
jmp 0x14000aca6
mov dword [rsp + 4], 0
jmp 0x14000ad05
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
cmp dword [rsp + 4], 0x100
jge 0x14000ad70
movsxd rax, dword [rsp + 4]
movzx eax, byte [rsp + rax + 0x20]
mov ecx, dword [rsp + 8]
add ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 4]
movzx ecx, byte [rsp + rcx + 0x120]
add eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 8], eax
movsxd rax, dword [rsp + 4]
mov al, byte [rsp + rax + 0x20]
mov byte [rsp], al
movsxd rax, dword [rsp + 8]
movsxd rcx, dword [rsp + 4]
mov al, byte [rsp + rax + 0x20]
mov byte [rsp + rcx + 0x20], al
movsxd rax, dword [rsp + 8]
mov cl, byte [rsp]
mov byte [rsp + rax + 0x20], cl
jmp 0x14000acfb
mov dword [rsp + 0x10], 0
mov dword [rsp + 4], 0
mov dword [rsp + 8], 0
mov byte [rsp], 0
mov dword [rsp + 0xc], 0
mov dword [rsp + 0xc], 0
jmp 0x14000ada8
mov eax, dword [rsp + 0xc]
inc eax
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0x238]
cmp dword [rsp + 0xc], eax
jae 0x14000ae7f
mov eax, dword [rsp + 4]
inc eax
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 4], eax
movsxd rax, dword [rsp + 4]
movzx eax, byte [rsp + rax + 0x20]
mov ecx, dword [rsp + 8]
add ecx, eax
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 8], eax
movsxd rax, dword [rsp + 4]
mov al, byte [rsp + rax + 0x20]
mov byte [rsp], al
movsxd rax, dword [rsp + 8]
movsxd rcx, dword [rsp + 4]
mov al, byte [rsp + rax + 0x20]
mov byte [rsp + rcx + 0x20], al
movsxd rax, dword [rsp + 8]
mov cl, byte [rsp]
mov byte [rsp + rax + 0x20], cl
movsxd rax, dword [rsp + 4]
movzx eax, byte [rsp + rax + 0x20]
movsxd rcx, dword [rsp + 8]
movzx ecx, byte [rsp + rcx + 0x20]
add eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 0x10], eax
movsxd rax, dword [rsp + 0x10]
movzx eax, byte [rsp + rax + 0x20]
mov ecx, dword [rsp + 0xc]
mov rdx, qword [rsp + 0x230]
movzx ecx, byte [rdx + rcx]
xor ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0xc]
mov rdx, qword [rsp + 0x230]
mov byte [rdx + rcx], al
jmp 0x14000ad9e
add rsp, 0x220
pop rdi
ret
Function at 0x14000ae88
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
cmp qword [rsp + 0x80], 0
je 0x14000aeac
cmp qword [rsp + 0x88], 0
jne 0x14000aeb3
xor eax, eax
jmp 0x14000b09e
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
add rax, 0x88
mov qword [rsp + 0x48], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x14000af0f
xor eax, eax
jmp 0x14000b09e
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call fcn.14000f40c
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x14000af2f
xor eax, eax
jmp 0x14000b09e
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x14000af60
xor eax, eax
jmp 0x14000b09e
mov rax, qword [rsp + 0x38]
mov edx, dword [rax + 0x20]
mov rcx, qword [rsp + 0x28]
call fcn.14000f40c
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x14000af84
xor eax, eax
jmp 0x14000b09e
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x38]
mov edx, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x28]
call fcn.14000f40c
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x14000afbf
xor eax, eax
jmp 0x14000b09e
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x38]
mov edx, dword [rax + 0x24]
mov rcx, qword [rsp + 0x28]
call fcn.14000f40c
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x14000affa
xor eax, eax
jmp 0x14000b09e
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x24]
dec eax
mov eax, eax
mov rcx, qword [rsp + 0x50]
mov edx, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x28]
call fcn.14000f40c
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x58]
call fcn.140017b10
test eax, eax
jne 0x14000b087
mov eax, dword [rsp + 0x24]
dec eax
mov eax, eax
mov rcx, qword [rsp + 0x60]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x68]
mov edx, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x28]
call fcn.14000f40c
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
jmp 0x14000b09e
mov eax, dword [rsp + 0x24]
dec eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x14000b011
xor eax, eax
add rsp, 0x78
ret
Function at 0x14000f40c
Capabilities:
Enumerate pe sections

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
cmp dword [rsp + 0x28], 0
jne 0x14000f42c
mov rax, 0xffffffffffffffff
jmp 0x14000f4d4
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x20]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 6]
dec eax
mov dword [rsp], eax
jmp 0x14000f45c
mov eax, dword [rsp]
dec eax
mov dword [rsp], eax
cmp dword [rsp], 0
jl 0x14000f4cd
movsxd rax, dword [rsp]
imul rax, rax, 0x28
mov rcx, qword [rsp + 8]
mov edx, dword [rsp + 0x28]
cmp dword [rcx + rax + 0xc], edx
ja 0x14000f4cb
movsxd rax, dword [rsp]
imul rax, rax, 0x28
movsxd rcx, dword [rsp]
imul rcx, rcx, 0x28
mov rdx, qword [rsp + 8]
mov eax, dword [rdx + rax + 0xc]
mov rdx, qword [rsp + 8]
add eax, dword [rdx + rcx + 0x10]
cmp dword [rsp + 0x28], eax
ja 0x14000f4cb
movsxd rax, dword [rsp]
imul rax, rax, 0x28
mov rcx, qword [rsp + 8]
mov eax, dword [rcx + rax + 0x14]
add eax, dword [rsp + 0x28]
movsxd rcx, dword [rsp]
imul rcx, rcx, 0x28
mov rdx, qword [rsp + 8]
sub eax, dword [rdx + rcx + 0xc]
mov eax, eax
jmp 0x14000f4d4
jmp 0x14000f454
mov rax, 0xffffffffffffffff
add rsp, 0x18
ret
Function at 0x14001022c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140010266
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14001026b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400102b4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140028450]
cmp byte [rcx + rax], 0
je 0x1400102b4
dec r8
sub rdx, 1
jne 0x14001029a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140011574
Capabilities:
Parse pe header

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

Function at 0x140017e80
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 0x140017ceb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140017ceb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140017ceb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140017ceb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140017ceb
cmp dword [rcx + 0x84], 0xe
jbe 0x140017ceb
cmp dword [rcx + 0xf8], 0
je 0x140017ceb
mov ecx, ebx
call fcn.140017d9c
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.140017b78
nop
cmp dword [rbp + 0x20], 0
je 0x140017d39
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140017d44
int3
xor r8d, r8d
xor edx, edx
jmp 0x140017c7c
Function at 0x14001d098
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 0x14001d0c8
xor eax, eax
jmp 0x14001d18b
mov rbp, rbx
cmp word [rax], si
je 0x14001d0ed
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001d0d4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001d0d0
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.14001cfb8
movsxd r14, eax
test eax, eax
jne 0x14001d12b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001d0c1
mov rcx, r14
call fcn.14001b580
mov rdi, rax
test rax, rax
jne 0x14001d144
xor ecx, ecx
call fcn.14001a74c
jmp 0x14001d120
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.14001cfb8
test eax, eax
jne 0x14001d175
mov rcx, rdi
call fcn.14001a74c
jmp 0x14001d17f
xor ecx, ecx
call fcn.14001a74c
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 0x14001d1a8
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 0x14001d22f
mov rsi, rbx
cmp word [rax], bp
je 0x14001d1ee
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14001d1d8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14001d1d4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001b580
mov rdi, rax
test rax, rax
je 0x14001d21c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140021a20
mov rbp, rdi
xor ecx, ecx
call fcn.14001a74c
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