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

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14000717a
xor eax, eax
jmp 0x140007260
cmp qword [rcx + 0x68], 0
je 0x14000718b
call fcn.14000727c
jmp 0x140007260
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400071a2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400071a4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400071d6
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140008910
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14000725a
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14000720d
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140007236
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14000feac
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000725a
cmp rsi, rbx
ja 0x140007214
test rsi, rsi
je 0x14000725a
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14000feac
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140008750
Capabilities:
Parse pe header

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

Function at 0x140011f24
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140011d20
Function at 0x140018568
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.140008010
sub rsp, rax
mov rax, qword [0x140032038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140017148
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400185b7
mov rax, rbp
jmp 0x1400186bf
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 + 0x343d0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140019688
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x343d0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400186bb
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 0x1400186bb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140019688
test rax, rax
js 0x1400186bb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400186bb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400186ad
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400186ad
cmp byte [rcx], 0xd
jne 0x140018693
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400186a2
cmp byte [rcx + 1], 0xa
jne 0x1400186a2
inc rcx
jmp 0x1400186a2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x32440]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140018675
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400186bf
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140007af0
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 0x1400188e0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400188f6
mov al, 1
jmp 0x140018956
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140018907
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140018954
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001c590
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140018954
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140018954
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140018954
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140018956
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140018a28
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, [0x1400343d0]
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 0x140018a7f
cmp word [rdx], r13w
jne 0x140018a7f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140018a84
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140018ba9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140018bca
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140018abd
mov rdx, r9
mov word [rbx], cx
jmp 0x140018ae4
cmp r9, r8
jae 0x140018af4
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 0x140018a9e
jmp 0x140018ba9
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 0x140018b9e
cmp dword [rsp + 0x80], esi
je 0x140018b9e
lea r8, [0x1400343d0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140018b76
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140018b46
mov word [rbx], r13w
jmp 0x140018ba6
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 0x140018b53
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140018ba6
cmp word [rsp + 0x70], r13w
jne 0x140018b83
cmp rbx, r14
je 0x140018b40
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140019690
cmp word [rsp + 0x70], r13w
je 0x140018ba9
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, [0x1400343d0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140018ba3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140018ba9
Function at 0x14001bd28
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 0x14001bd58
xor eax, eax
jmp 0x14001be1b
mov rbp, rbx
cmp word [rax], si
je 0x14001bd7d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001bd64
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001bd60
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.14001a328
movsxd r14, eax
test eax, eax
jne 0x14001bdbb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001bd51
mov rcx, r14
call fcn.14001594c
mov rdi, rax
test rax, rax
jne 0x14001bdd4
xor ecx, ecx
call fcn.140014ec4
jmp 0x14001bdb0
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.14001a328
test eax, eax
jne 0x14001be05
mov rcx, rdi
call fcn.140014ec4
jmp 0x14001be0f
xor ecx, ecx
call fcn.140014ec4
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 0x14001eae4
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.140014b64
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 0x14001eb85
cmp ebx, dword [rsp + 0x30]
je 0x14001eb7e
test esi, esi
je 0x14001eb7e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14001eb59
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14001eb66
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14001eb43
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14001eb6a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14001eb87
mov eax, 1
jmp 0x14001eb87
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400202d4
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.140010b94
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002035e
cmp byte [rbp - 0x21], r15b
je 0x140020359
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140020394
call fcn.1400151c8
test eax, eax
jne 0x140020380
cmp byte [rbp - 0x21], r15b
je 0x140020378
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140020394
cmp byte [rbp - 0x21], r15b
je 0x140020391
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.140010d18
test eax, eax
jne 0x140020434
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140010b94
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400203d3
cmp byte [rbp - 0x21], r15b
je 0x140020408
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140020408
call fcn.1400151c8
test eax, eax
jne 0x1400203f4
cmp byte [rbp - 0x21], r15b
je 0x1400203ed
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140020408
cmp byte [rbp - 0x21], r15b
je 0x140020405
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.140010d18
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140020434
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140020437
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140020445
mov rcx, rdi
call fcn.140014ec4
cmp byte [rbp + 0x3f], r15b
je 0x140020454
mov rcx, qword [rbp + 0x27]
call fcn.140014ec4
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 0x40a430
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x0044e098], 0
je 0x40a4ce
cmp word [0x0044e3a8], 0xd7b2
jne 0x40a463
cmp dword [0x0044e3b0], 0
jbe 0x40a463
lea rcx, [0x0044e3a0]
call qword [0x0044e3c8]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x00448820]
mov r8d, 0x25
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rbx, rax
lea rcx, [0x0040a504]
call fcn.0040b240
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40a4f0
cmp byte [0x0044703a], 0
jne 0x40a4f0
xor rcx, rcx
lea rdx, [0x00448820]
lea r8, [0x00448730]
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40ccc0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x00452c80]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x00452ca8], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x00452c78], al
cmp byte [0x00452c78], 0
je 0x40cd5f
lea rcx, [0x0040cd64]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040cd7e]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00452c60], rax
lea rcx, [0x0040cd64]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040cd9c]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00452c68], rax
lea rcx, [0x0040cd64]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040cdba]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00452c70], rax
add rsp, 0x28
ret
Function at 0x40d030
Capabilities:
Get geographical location

Disassembly:
push rbp
sub rsp, 0x1d0
mov rbp, rsp
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x40], rdx
mov word [rbp + 0x4e], r8w
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
call fcn.0040a860
movzx rax, word [rbp + 0x4e]
cmp word [0x00448d20], ax
ja 0x40d118
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x00449120]
mov word [rbp + 0x4e], ax
ja 0x40d118
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x40d117
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x00448d20]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x40d0d1
mov ecx, eax
sub ecx, 1
jmp 0x40d112
lea rdx, [0x00448d20]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x40d0f3
mov r8d, eax
add r8d, 1
jmp 0x40d112
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x00448d28]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.0040ced0
jmp 0x40d117
cmp ecx, r8d
jae 0x40d0a0
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x40d1fa
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d1fa
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 0x59
lea r8, [rbp + 0x126]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 0x5a
lea r8, [rbp + 0x7c]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
lea rcx, [rbp + 0x68]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040b5d0
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.0040b5d0
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040b5d0
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x0040d254]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x0040d264]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.0040b990
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.0040a940
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret
Function at 0x40ef20
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.0040ef10
mov ebx, eax
test ebx, ebx
je 0x40ef6b
cmp dword [0x00449524], 0xffffffff
jne 0x40ef44
mov ecx, 0xe2
call fcn.0040a6d0
mov ecx, ebx
call fcn.0040eef0
test rax, rax
jne 0x40ef5d
mov ecx, 0xe2
call fcn.0040a6d0
jmp 0x40ef6b
mov ecx, dword [0x00449524]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x40ef80
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x00452d54], 0
je 0x40efbb
mov ecx, dword [0x00449524]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40efcf
call fcn.0040ef20
mov ecx, dword [0x00449524]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40efcf
mov rax, qword [0x00452d88]
jmp 0x40efcf
mov rax, qword gs:[0x58]
movsxd rcx, dword [0x00449524]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x420cb0
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
sub rsp, 0x38
mov rbp, rsp
mov ebx, r8d
lea r8, [rbp + 0x2c]
mov r9d, 2
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x420cd7
movzx rax, word [rbp + 0x2c]
jmp 0x420cd9
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret

Function at 0x422480
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x8e0
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x60]
mov r9d, 0x400
call fcn.00422220
mov ebx, eax
mov rax, qword [0x0044d600]
cmp byte [rax], 0
je 0x4225b8
mov rcx, qword [0x0044d310]
call fcn.00406120
call fcn.004055c0
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov esi, eax
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00422440]
mov r8d, 1
movsxd r9, esi
call fcn.0040c920
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
mov rdx, qword [rbp + 0x58]
mov r8d, esi
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
lea rdx, [0x00422658]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
jmp 0x4225fe
mov rcx, qword [0x00452d58]
call fcn.0040ca90
mov rcx, rax
mov rax, qword [0x0044d298]
mov edx, dword [rax + 8]
lea r8, [rbp + 0x860]
mov r9d, 0x40
call sub.user32.dll_LoadStringW_1
xor rcx, rcx
lea rdx, [rbp + 0x60]
lea r8, [rbp + 0x860]
mov r9d, 0x2010
call sub.user32.dll_MessageBoxW
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00422440]
call fcn.0040c960
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret
Function at 0x429090
Capabilities:
Query environment variable

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x28
call sub.kernel32.dll_GetEnvironmentStringsW
mov rbx, rax
xor rsi, rsi
test rbx, rbx
je 0x4290ea
mov rcx, rbx
call fcn.00429490
mov edi, eax
movsxd rcx, edi
call fcn.00405280
mov r13, rax
mov rcx, r13
movsxd rdx, edi
xor r8, r8
call fcn.004061d0
mov rsi, r13
test r13, r13
je 0x4290e2
mov rcx, rbx
mov rdx, r13
movsxd r8, edi
call fcn.00405650
mov rcx, rbx
call sub.kernel32.dll_FreeEnvironmentStringsW
mov rax, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r13
ret

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

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
xor rsi, rsi
mov rcx, rbx
lea rdx, [0x0045d5e8]
mov r8d, 0x2001
call sub.kernel32.dll_GetEnvironmentVariableW
test eax, eax
je 0x429182
lea rsi, [0x0045d5e8]
jmp 0x429325
mov rax, qword [0x0044d290]
cmp byte [rax], 0
je 0x429325
mov rcx, rbx
lea rdx, [0x00429330]
call fcn.0041d730
test eax, eax
jne 0x4291c0
lea rcx, [0x0045d5e8]
xor rdx, rdx
call fcn.0042b800
lea rsi, [0x0045d5e8]
jmp 0x429325
mov rcx, rbx
lea rdx, [0x00429336]
call fcn.0041d730
test eax, eax
jne 0x4291fb
mov rax, qword [0x0044d588]
mov ecx, dword [rax]
lea rdx, [0x0045d5e8]
mov r8d, 0xa
call sub.msvcrt.dll__ltow
lea rsi, [0x0045d5e8]
jmp 0x429325
mov rcx, rbx
lea rdx, [0x0042934c]
call fcn.0041d730
test eax, eax
jne 0x429233
mov ecx, 2
lea rdx, [0x0045d5e8]
mov r8d, 0xa
call sub.msvcrt.dll__ultow
lea rsi, [0x0045d5e8]
jmp 0x429325
mov rcx, rbx
lea rdx, [0x00429368]
call fcn.0041d730
test eax, eax
jne 0x429253
call sub.kernel32.dll_GetCommandLineW_1
mov rsi, rax
jmp 0x429325
mov rcx, rbx
lea rdx, [0x0042937e]
call fcn.0041d730
test eax, eax
jne 0x42929e
xor rcx, rcx
mov edx, 1
lea r8, [0x0045d5e8]
mov r9d, 0x2001
call fcn.00427ab0
lea rcx, [0x0045d5e8]
movsxd rax, eax
mov word [rcx + rax*2], 0
lea rsi, [0x0045d5e8]
jmp 0x429325
mov rcx, rbx
lea rdx, [0x00429388]
call fcn.0041d730
test eax, eax
jne 0x4292e6
xor rcx, rcx
mov edx, 1
lea r8, [0x0045d5e8]
mov r9d, 0x2001
call fcn.00428100
lea rcx, [0x0045d5e8]
movsxd rax, eax
mov word [rcx + rax*2], 0
lea rsi, [0x0045d5e8]
jmp 0x429325
mov rcx, rbx
lea rdx, [0x00429392]
call fcn.0041d730
test eax, eax
jne 0x429325
call fcn.00405970
mov ecx, 0x7fff
call fcn.004059a0
mov ecx, eax
lea rdx, [0x0045d5e8]
mov r8d, 0xa
call sub.msvcrt.dll__ultow
lea rsi, [0x0045d5e8]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x429460
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
call sub.kernel32.dll_SetEnvironmentStringsW
mov rcx, qword [0x0045d5c8]
call fcn.004052b0
call fcn.00429090
mov qword [0x0045d5c8], rax
add rsp, 0x28
ret
Function at 0x4294c0
Capabilities:
Set environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rsi, rdx
mov rax, qword [0x0044d458]
mov byte [rax], 0
mov rcx, rsi
call fcn.00426cd0
test eax, eax
jne 0x4294e5
xor rsi, rsi
mov rcx, rbx
mov rdx, rsi
call sub.kernel32.dll_SetEnvironmentVariableW
mov ebx, eax
mov rcx, qword [0x0045d5c8]
call fcn.004052b0
call fcn.00429090
mov qword [0x0045d5c8], rax
test ebx, ebx
sete al
movzx rax, al
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x42b0c0
Capabilities:
Enumerate files on windows

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov esi, r8d
mov rdi, r9
xor r13, r13
mov rcx, rdx
mov rdx, rdi
call sub.kernel32.dll_FindFirstFileW_1
mov rcx, qword [rsp + 0x70]
mov qword [rcx], rax
jmp 0x42b136
mov rcx, rdi
mov edx, esi
call rbx
test al, al
je 0x42b107
mov rax, qword [0x0044d5d0]
mov dword [rax], 0
mov r13b, 1
jmp 0x42b141
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
mov rdx, rdi
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x42b136
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call sub.kernel32.dll_FindClose_1
mov rax, qword [rsp + 0x70]
mov qword [rax], 0xffffffffffffffff
jmp 0x42b141
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0xffffffffffffffff
jne 0x42b0ea
nop
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0xffffffffffffffff
je 0x42b1a2
lea rcx, [0x004615f0]
mov rdx, qword [0x0042b060]
mov r8d, 1
mov r9d, dword [0x0044b844]
add r9d, 1
mov r9d, r9d
call fcn.0040c920
cmp qword [0x004615f0], 0
je 0x42b19f
mov rax, qword [0x004615f0]
mov ecx, dword [0x0044b844]
mov rdx, qword [rsp + 0x70]
mov rdx, qword [rdx]
mov qword [rax + rcx*8], rdx
add dword [0x0044b844], 1
mov r13b, 1
test r13b, r13b
jne 0x42b1b5
call sub.kernel32.dll_GetLastError_2
mov rcx, qword [0x0044d5d0]
mov dword [rcx], eax
mov eax, r13d
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r13
ret