joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405190
Capabilities:
Enumerate processes

Disassembly:
sub rsp, 0xa78
mov rax, qword [0x0042baf8]
mov qword [rsp + 0xa60], rax
xor edx, edx
mov qword [rsp + 0xa90], rbx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
mov rbx, rax
jne 0x405210
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x260]
mov ecx, eax
call sym.JkDefragCmd64.exe_SystemErrorStr
lea r9, [rsp + 0x260]
lea r8, str.Cannot_get_process_snapshot:__s
lea rcx, [rsp + 0x660]
mov edx, 0x200
call fcn.0040f7a0
lea r8, [rsp + 0x660]
xor edx, edx
xor ecx, ecx
call fcn.00404620
lea eax, [rbx + 2]
jmp 0x40535e
mov qword [rsp + 0xa98], rdi
mov dword [rsp + 0x20], 0x130
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov byte [rsp + 0x150], 0
mov edi, eax
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x405271
cmp edi, dword [rsp + 0x28]
je 0x40525a
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x405241
jmp 0x405271
lea r8, [rsp + 0x4c]
lea rcx, [rsp + 0x150]
mov edx, 0x104
call fcn.0040f700
cmp byte [rsp + 0x150], 0
jne 0x40528f
lea r9, [rsp + 0x150]
lea r8, str.Cannot_find_my_own_name_in_the_process_list:__s
jmp 0x40532e
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32First
nop
cmp edi, dword [rsp + 0x28]
je 0x4052fb
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x4c]
call fcn.00410220
test eax, eax
je 0x405319
lea rdx, str.jkdefrag.exe
lea rcx, [rsp + 0x4c]
call fcn.00410220
test eax, eax
je 0x405319
lea rdx, str.jkdefragscreensaver.exe
lea rcx, [rsp + 0x4c]
call fcn.00410220
test eax, eax
je 0x405319
lea rdx, str.jkdefragcmd.exe
lea rcx, [rsp + 0x4c]
call fcn.00410220
test eax, eax
je 0x405319
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4052a0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x405356
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r9, [rsp + 0x4c]
lea r8, str.I_am_already_running:__s
lea rcx, [rsp + 0x260]
mov edx, 0x200
call fcn.0040f7a0
lea r8, [rsp + 0x260]
xor edx, edx
xor ecx, ecx
call fcn.00404620
mov eax, 1
mov rdi, qword [rsp + 0xa98]
mov rbx, qword [rsp + 0xa90]
mov rcx, qword [rsp + 0xa60]
call fcn.0041e010
add rsp, 0xa78
ret
Function at 0x40f8a0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
lea rsi, [0x0042d280]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [0x0042d378]
lea rdx, [rsp + 0x70]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x40f921
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov r8, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov r11, qword [0x0042d378]
jmp 0x40f93d
mov r11, qword [rsp + 0x68]
lea rax, [rsp + 0x68]
add rax, 8
mov qword [0x0042d378], r11
mov qword [0x0042d318], rax
mov rax, qword [0x0042baf8]
mov qword [0x0042d1f0], r11
mov qword [0x0042d300], rdi
mov dword [0x0042d1e0], 0xc0000409
mov dword [0x0042d1e4], 1
mov qword [rsp + 0x50], rax
mov rax, qword [0x0042baf0]
xor ecx, ecx
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x00423338]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x68
ret
cmp rcx, qword [0x0042baf8]
jne 0x41e029
rol rcx, 0x10
test cx, 0xffff
jne 0x41e025
ret
ror rcx, 0x10
jmp 0x40f8a0

Function at 0x410590
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4105b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4105b9
mov ecx, eax
call fcn.004145c0
mov eax, 0xffffffff
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
Function at 0x4110b0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rdi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
mov r8d, 0x94
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x4110e7
mov eax, 0xff
jmp 0x411318
mov dword [rax], 0x94
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x411118
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 0xff
jmp 0x411318
mov eax, dword [rbx + 0x10]
mov dword [0x0042d9c4], eax
mov eax, dword [rbx + 4]
mov dword [0x0042d9d0], eax
mov eax, dword [rbx + 8]
mov dword [0x0042d9d4], eax
mov eax, dword [rbx + 0xc]
and eax, 0x7fff
mov dword [0x0042d9c8], eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x0042d9c4], 2
je 0x411166
bts dword [0x0042d9c8], 0xf
mov eax, dword [0x0042d9d0]
shl eax, 8
add eax, dword [0x0042d9d4]
mov dword [0x0042d9cc], eax
cmp word [0x00400000], 0x5a4d
je 0x41118e
xor ebx, ebx
mov dword [rsp + 0x40], ebx
jmp 0x41120a
movsxd rax, dword [0x0040003c]
lea rcx, [0x00400000]
add rax, rcx
cmp dword [rax], 0x4550
je 0x4111af
xor ebx, ebx
mov dword [rsp + 0x40], ebx
jmp 0x41120a
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x4111ed
cmp ecx, 0x20b
je 0x4111cb
xor ebx, ebx
mov dword [rsp + 0x40], ebx
jmp 0x41120a
cmp dword [rax + 0x84], 0xe
ja 0x4111dc
xor ebx, ebx
mov dword [rsp + 0x40], ebx
jmp 0x41120a
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x40], ebx
jmp 0x41120a
cmp dword [rax + 0x74], 0xe
ja 0x4111fb
xor ebx, ebx
mov dword [rsp + 0x40], ebx
jmp 0x41120a
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0x40], ebx
mov ecx, 1
call fcn.00414f70
test eax, eax
jne 0x41123a
cmp dword [0x0042d778], 2
je 0x411226
call fcn.004168c0
mov ecx, 0x1c
call fcn.00416690
mov ecx, 0xff
call fcn.00413260
call fcn.00413a90
test eax, eax
jne 0x411266
cmp dword [0x0042d778], 2
je 0x411251
call fcn.004168c0
mov ecx, 0x10
call fcn.00416690
mov ecx, 0xff
call fcn.00413260
nop
call fcn.00412cd0
test eax, eax
jns 0x411279
mov ecx, 0x1b
call fcn.00411080
call fcn.004172d0
mov qword [0x0042e5e0], rax
call fcn.004170b0
mov qword [0x0042d770], rax
call fcn.00416e60
test eax, eax
jns 0x4112a4
mov ecx, 8
call fcn.00411080
call fcn.00416b30
test eax, eax
jns 0x4112b7
mov ecx, 9
call fcn.00411080
call fcn.004132f0
test eax, eax
je 0x4112c7
mov ecx, eax
call fcn.00411080
mov r8, qword [0x0042da00]
mov qword [0x0042da08], r8
mov rdx, qword [0x0042d9e8]
mov ecx, dword [0x0042d9d8]
call fcn.00405380
mov edi, eax
mov dword [rsp + 0x20], eax
test ebx, ebx
jne 0x4112f8
mov ecx, eax
call fcn.00413490
call fcn.004134b0
jmp 0x411316
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x38
ret
Function at 0x4116d0
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
sub rsp, 0x498
mov rax, qword [0x0042baf8]
mov qword [rsp + 0x450], rax
mov qword [r11 - 8], rbp
mov qword [r11 - 0x10], rsi
mov qword [r11 - 0x20], r12
mov qword [r11 - 0x28], r13
xor esi, esi
xor r13d, r13d
test r8d, r8d
mov r12d, r8d
mov rbp, rdx
jne 0x411710
xor eax, eax
jmp 0x411912
movsxd rax, ecx
mov qword [rsp + 0x460], r15
lea r9, [0x0042e3e0]
mov r15b, al
mov rdx, rax
sar rdx, 5
and r15d, 0x1f
mov rax, qword [r9 + rdx*8]
mov qword [rsp + 0x38], rdx
imul r15, r15, 0x38
test byte [r15 + rax + 8], 0x20
je 0x41175c
xor edx, edx
lea r8d, [rdx + 2]
call fcn.00417a00
mov rdx, qword [rsp + 0x38]
lea r9, [0x0042e3e0]
mov rcx, qword [r9 + rdx*8]
mov qword [rsp + 0x480], rdi
mov qword [rsp + 0x468], r14
test byte [r15 + rcx + 8], 0x80
je 0x411873
xor r14d, r14d
test r12d, r12d
mov rdi, rbp
je 0x4118c1
mov qword [rsp + 0x4b8], rbx
nop
nop
nop
nop
lea rbx, [rsp + 0x40]
xor ecx, ecx
mov eax, edi
sub eax, ebp
cmp eax, r12d
jae 0x4117d6
movzx eax, byte [rdi]
inc rdi
cmp al, 0xa
jne 0x4117c5
mov byte [rbx], 0xd
inc rbx
inc esi
inc rcx
inc rcx
mov byte [rbx], al
inc rbx
cmp rcx, 0x400
jl 0x4117a7
mov rcx, qword [r9 + rdx*8]
lea rax, [rsp + 0x40]
mov r8d, ebx
mov rcx, qword [r15 + rcx]
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
sub r8d, eax
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x411868
movsxd rax, dword [rsp + 0x30]
lea rcx, [rsp + 0x40]
sub rbx, rcx
add r13d, eax
cmp rax, rbx
jl 0x411830
mov rdx, qword [rsp + 0x38]
mov eax, edi
lea r9, [0x0042e3e0]
sub eax, ebp
cmp eax, r12d
jb 0x4117a0
mov rbx, qword [rsp + 0x4b8]
test r13d, r13d
jne 0x4118f4
test r14d, r14d
je 0x4118b5
cmp r14d, 5
jne 0x4118a6
call fcn.00414560
mov dword [rax], 9
call fcn.00414590
mov dword [rax], r14d
lea eax, [r14 - 6]
jmp 0x4118fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
jmp 0x411830
mov rcx, qword [r15 + rcx]
lea r9, [rsp + 0x30]
mov r8d, r12d
mov rdx, rbp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41189b
mov r13d, dword [rsp + 0x30]
xor r14d, r14d
jmp 0x411838
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
jmp 0x411841
mov ecx, r14d
call fcn.004145c0
mov eax, 0xffffffff
jmp 0x4118fa
mov rdx, qword [rsp + 0x38]
lea r9, [0x0042e3e0]
mov rax, qword [r9 + rdx*8]
test byte [r15 + rax + 8], 0x40
je 0x4118d7
cmp byte [rbp], 0x1a
jne 0x4118d7
xor eax, eax
jmp 0x4118fa
call fcn.00414560
mov dword [rax], 0x1c
call fcn.00414590
mov dword [rax], 0
mov eax, 0xffffffff
jmp 0x4118fa
sub r13d, esi
mov eax, r13d
mov rdi, qword [rsp + 0x480]
mov r14, qword [rsp + 0x468]
mov r15, qword [rsp + 0x460]
mov r13, qword [rsp + 0x470]
mov r12, qword [rsp + 0x478]
mov rsi, qword [rsp + 0x488]
mov rbp, qword [rsp + 0x490]
mov rcx, qword [rsp + 0x450]
call fcn.0041e010
add rsp, 0x498
ret
Function at 0x414740
Capabilities:
Get system information on windows

Disassembly:
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x20]
mov qword [rbp + 0xa0], rbx
mov qword [rbp + 0xa8], rsi
mov qword [rbp + 0xb0], rdi
mov qword [rbp + 0xb8], r12
mov qword [rbp + 0x88], r13
mov qword [rbp + 0x80], r14
mov qword [rbp + 0x78], r15
mov rax, qword [0x0042baf8]
mov qword [rbp + 0x68], rax
mov eax, dword [rsp]
sub rsp, 0x10
lea rdx, [rbp + 8]
mov eax, dword [rsp + 0x20]
lea r12, [rsp + 0x20]
mov r8d, 0x30
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x41489e
mov r14, qword [rbp + 0x10]
lea rcx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [0x0042d9c4]
mov edi, dword [rbp + 0x3c]
xor ebx, ebx
cmp ecx, 2
jne 0x414814
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x41480e
lea rdx, str.SetThreadStackGuarantee
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x41480e
lea rcx, [rbp]
mov dword [rbp], ebx
call rax
cmp eax, 1
jne 0x41480e
mov eax, dword [rbp]
test eax, eax
cmovne ebx, eax
mov ecx, dword [0x0042d9c4]
mov r15d, 1
lea r8d, [rdi - 1]
lea edx, [rbx + rdi - 1]
cmp ecx, r15d
mov eax, r8d
mov esi, 0x104
not eax
cmove esi, r15d
and edx, eax
je 0x414839
add edx, edi
lea eax, [rdi + rdi*2]
mov ebx, r8d
cmp edx, eax
not rbx
cmovb edx, eax
and rbx, r12
mov eax, 0x11
mov r13d, edx
sub rbx, r13
cmp ecx, r15d
cmove edi, eax
mov eax, edi
add rax, r14
cmp rbx, rax
jb 0x41489e
mov r9d, 4
mov r8d, 0x1000
mov rdx, r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x41489e
lea r9, [rbp + 4]
mov r8d, esi
mov rdx, r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x41489e
mov eax, r15d
jmp 0x4148a0
xor eax, eax
mov rcx, qword [rbp + 0x68]
call fcn.0041e010
mov rbx, qword [rbp + 0xa0]
mov rsi, qword [rbp + 0xa8]
mov rdi, qword [rbp + 0xb0]
mov r12, qword [rbp + 0xb8]
mov r13, qword [rbp + 0x88]
mov r14, qword [rbp + 0x80]
mov r15, qword [rbp + 0x78]
lea rsp, [rbp + 0x90]
pop rbp
ret
Function at 0x416690
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x40], r12
lea r12, [0x0042c750]
mov rax, r12
xor ebx, ebx
nop
nop
cmp ecx, dword [rax]
je 0x4166bf
inc ebx
add rax, 0x10
cmp ebx, 0x13
jb 0x4166b0
cmp ebx, 0x13
je 0x4168a9
mov eax, dword [0x0042d778]
mov qword [rsp + 0x68], rdi
cmp eax, 1
je 0x41685e
test eax, eax
jne 0x4166ed
cmp dword [0x0042bef0], 1
je 0x41685e
cmp ecx, 0xfc
je 0x4168a4
mov qword [rsp + 0x58], rbp
lea rbp, [0x0042db30]
mov qword [rsp + 0x60], rsi
lea rsi, [0x00400000]
lea rdx, [0x0042db4a]
mov r8d, 0x104
mov rax, qword [rsi + 0x23d48]
xor ecx, ecx
mov qword [rbp], rax
mov rax, qword [rsi + 0x23d50]
mov qword [rbp + 8], rax
mov rax, qword [rsi + 0x23d58]
mov qword [rbp + 0x10], rax
movzx eax, word [rsi + 0x23d60]
mov word [rbp + 0x18], ax
mov byte [0x0042dc4e], 0
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4167a0
mov rax, qword [rsi + 0x23d30]
mov qword [rsi + 0x2db4a], rax
mov rax, qword [rsi + 0x23d38]
mov qword [rsi + 0x2db52], rax
mov eax, dword [rsi + 0x23d40]
mov dword [rsi + 0x2db5a], eax
movzx eax, word [rsi + 0x23d44]
mov word [rsi + 0x2db5e], ax
movzx eax, byte [rsi + 0x23d46]
mov byte [rsi + 0x2db60], al
mov rsi, qword [rsp + 0x60]
xor eax, eax
lea rdi, [0x0042db4a]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x4167d5
lea rcx, [rcx + rbp - 0x22]
lea r8d, [rax + 3]
lea rdx, [0x00423d2c]
call fcn.004186c0
xor eax, eax
mov rdi, rbp
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
movzx eax, word [0x00423d28]
movsxd rdx, ebx
mov word [rdi - 1], ax
movzx eax, byte [0x00423d2a]
add rdx, rdx
mov r8, qword [r12 + rdx*8 + 8]
mov byte [rdi + 1], al
xor eax, eax
mov rdi, rbp
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
xor edx, edx
nop
nop
nop
nop
movzx eax, byte [r8 + rdx]
inc rdx
test al, al
mov byte [rdi + rdx - 2], al
jne 0x416820
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.0041b530
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
mov r12, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x48
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x4168a4
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x30]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [r12 + rcx*8 + 8]
mov rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdi, qword [rsp + 0x68]
mov r12, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x48
ret
Function at 0x41b530
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
xor esi, esi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x50], r12
cmp qword [0x0042e120], rsi
mov ebx, r8d
mov rbp, rdx
mov r12, rcx
jne 0x41b616
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rdi, rax
je 0x41b606
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x0042e120], rax
je 0x41b606
lea rdx, str.GetActiveWindow
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetLastActivePopup
mov rcx, rdi
mov qword [0x0042e128], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x0042d9c4], 2
mov qword [0x0042e130], rax
jne 0x41b60d
lea rdx, str.GetUserObjectInformationA
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x0042e140], rax
je 0x41b60d
lea rdx, str.GetProcessWindowStation
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x0042e138], rax
jmp 0x41b61d
xor eax, eax
jmp 0x41b6a7
mov rax, qword [0x0042e138]
jmp 0x41b61d
mov rax, qword [0x0042e138]
test rax, rax
je 0x41b66b
call rax
test rax, rax
je 0x41b656
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call qword [0x0042e140]
test eax, eax
je 0x41b656
test byte [rsp + 0x40], 1
jne 0x41b66b
cmp dword [0x0042d9d0], 4
jb 0x41b665
bts ebx, 0x15
jmp 0x41b695
bts ebx, 0x12
jmp 0x41b695
mov rax, qword [0x0042e128]
test rax, rax
je 0x41b695
call rax
test rax, rax
mov rsi, rax
je 0x41b695
mov rdx, qword [0x0042e130]
test rdx, rdx
je 0x41b695
mov rcx, rax
call rdx
mov rsi, rax
mov r9d, ebx
mov r8, rbp
mov rdx, r12
mov rcx, rsi
call qword [0x0042e120]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
add rsp, 0x58
ret

Function at 0x41b880
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x0042baf8]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x41b8c3
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
call fcn.0041e010
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.0041b050
mov rcx, qword [rsp + 0x28]
call fcn.0041e010
add rsp, 0x38
ret
Function at 0x41caf0
Capabilities:
Clear file content

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rdi
mov ebp, edx
xor edi, edi
xor edx, edx
lea r8d, [rdi + 1]
mov qword [rsp + 0x28], r13
mov esi, ecx
call fcn.0041b200
cmp eax, 0xffffffff
mov r13d, eax
je 0x41cc63
lea r8d, [rdi + 2]
xor edx, edx
mov ecx, esi
call fcn.0041b200
cmp eax, 0xffffffff
je 0x41cc63
mov qword [rsp + 0x40], rbx
mov ebx, ebp
mov qword [rsp + 0x20], r14
sub ebx, eax
test ebx, ebx
jle 0x41cc00
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r14d, 0x1000
lea edx, [rdi + 8]
mov rcx, rax
mov r8, r14
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbp, rax
jne 0x41cb87
call fcn.00414560
lea edi, [rbp - 1]
mov dword [rax], 0xc
jmp 0x41cc48
mov edx, 0x8000
mov ecx, esi
mov qword [rsp + 0x30], r12
call fcn.0041d4b0
mov r12d, eax
nop
nop
mov r8d, ebx
cmp ebx, r14d
mov rdx, rbp
cmovge r8d, r14d
mov ecx, esi
call fcn.004116d0
cmp eax, 0xffffffff
je 0x41cbc1
sub ebx, eax
test ebx, ebx
jg 0x41cba0
jmp 0x41cbdb
call fcn.00414590
cmp dword [rax], 5
jne 0x41cbd6
call fcn.00414560
mov dword [rax], 0xd
mov edi, 0xffffffff
mov edx, r12d
mov ecx, esi
call fcn.0041d4b0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rsp + 0x30]
jmp 0x41cc48
test ebx, ebx
jns 0x41cc48
xor r8d, r8d
mov edx, ebp
mov ecx, esi
call fcn.0041b200
mov ecx, esi
call fcn.00417600
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb edi, edi
neg edi
dec edi
cmp edi, 0xffffffff
jne 0x41cc48
call fcn.00414560
mov dword [rax], 0xd
call fcn.00414590
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
xor r8d, r8d
mov edx, r13d
mov ecx, esi
call fcn.0041b200
mov r14, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x40]
mov eax, edi
jmp 0x41cc68
mov eax, 0xffffffff
mov r13, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x41dbf0
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x30], r14
xor r12d, r12d
test rcx, rcx
mov qword [rsp + 0x28], r15
mov r15d, edx
mov rsi, rcx
je 0x41de6a
lea edx, [r12 + 0x3d]
call fcn.0041def0
test rax, rax
mov r14, rax
je 0x41de6a
cmp rsi, rax
je 0x41de6a
cmp byte [rax + 1], r12b
mov rbx, qword [0x0042d9f0]
mov qword [rsp + 0x38], r13
mov r13d, r12d
sete r13b
cmp rbx, qword [0x0042d9f8]
jne 0x41dc70
mov rcx, rbx
call fcn.0041db40
mov rbx, rax
mov qword [0x0042d9f0], rax
test rbx, rbx
jne 0x41dced
test r15d, r15d
je 0x41dc96
cmp qword [0x0042da00], r12
je 0x41dc96
call fcn.0041cfd0
test eax, eax
je 0x41dce6
mov eax, 0xffffffff
jmp 0x41dd9f
test r13d, r13d
je 0x41dca2
xor eax, eax
jmp 0x41dd9f
mov ecx, 8
call fcn.00412fe0
test rax, rax
mov qword [0x0042d9f0], rax
je 0x41dc8c
mov qword [rax], r12
cmp qword [0x0042da00], r12
jne 0x41dce6
mov ecx, 8
call fcn.00412fe0
test rax, rax
mov qword [0x0042da00], rax
je 0x41dc8c
mov qword [rax], r12
mov rbx, qword [0x0042d9f0]
jmp 0x41dced
mov rbx, qword [0x0042d9f0]
mov edx, r14d
mov rcx, rsi
mov qword [rsp + 0x58], rbp
sub edx, esi
mov qword [rsp + 0x68], rdi
call fcn.0041daa0
test eax, eax
movsxd rdi, eax
js 0x41dd68
cmp qword [rbx], r12
je 0x41dd68
mov rcx, qword [rbx + rdi*8]
call fcn.004109b0
test r13d, r13d
je 0x41dd62
cmp qword [rbx + rdi*8], r12
je 0x41dd45
lea rdx, [rbx + rdi*8]
mov rcx, rdx
nop
nop
mov rax, qword [rdx + 8]
add rcx, 8
inc edi
mov qword [rdx], rax
cmp qword [rcx], r12
mov rdx, rcx
jne 0x41dd30
movsxd rdx, edi
mov rcx, rbx
shl rdx, 3
call fcn.004130e0
test rax, rax
je 0x41ddd5
mov qword [0x0042d9f0], rax
jmp 0x41ddd5
mov qword [rbx + rdi*8], rsi
jmp 0x41ddd5
test r13d, r13d
jne 0x41de5b
test eax, eax
jns 0x41dd77
neg edi
lea eax, [rdi + 2]
mov rcx, rbx
movsxd rdx, eax
shl rdx, 3
call fcn.004130e0
test rax, rax
mov r11, rax
jne 0x41ddc2
lea eax, [r11 - 1]
mov rdi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x58]
mov r13, qword [rsp + 0x38]
mov r15, qword [rsp + 0x28]
mov r14, qword [rsp + 0x30]
mov r12, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
add rsp, 0x48
ret
movsxd rax, edi
mov qword [r11 + rax*8], rsi
mov qword [r11 + rax*8 + 8], r12
mov qword [0x0042d9f0], r11
test r15d, r15d
je 0x41de46
xor eax, eax
mov rbx, 0xffffffffffffffff
mov rdi, rsi
mov rcx, rbx
repne scasb al, byte [rdi]
not rcx
inc rcx
call fcn.00412fe0
test rax, rax
mov rdi, rax
je 0x41de46
mov rdx, rsi
sub rax, rsi
nop
nop
nop
movzx ecx, byte [rdx]
inc rdx
test cl, cl
mov byte [rax + rdx - 1], cl
jne 0x41de10
lea rdx, [rax + r14]
mov rcx, rdi
mov byte [rdx], r12b
inc rdx
test r13d, r13d
cmovne rdx, r12
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov rcx, rdi
test eax, eax
cmove r12d, ebx
call fcn.004109b0
test r13d, r13d
je 0x41de53
mov rcx, rsi
call fcn.004109b0
mov eax, r12d
jmp 0x41dd95
mov rcx, rsi
call fcn.004109b0
xor eax, eax
jmp 0x41dd95
mov eax, 0xffffffff
jmp 0x41dda4