joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140d77058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140d771df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140d77089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d7706f
add dl, dl
jne 0x140d77096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d770f6
xor eax, eax
add dl, dl
jne 0x140d770a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d771ad
add dl, dl
jne 0x140d770b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d770c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d770d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d770dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140d770ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140d7707e
mov eax, 1
add dl, dl
jne 0x140d77106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d77113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d770fb
sub eax, ebx
mov ebx, 1
jne 0x140d7714c
mov ecx, 1
add dl, dl
jne 0x140d7712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d7713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d77123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d7707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140d77168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d77175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d7715d
cmp eax, 0x7d00
jae 0x140d7719b
cmp eax, 0x500
jb 0x140d77196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d7707e
cmp eax, 0x7f
ja 0x140d7719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d7707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140d771d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140d7707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14004b140]
mov dword [rax], 1
mov rax, qword [0x14004b150]
mov dword [rax], 1
mov rax, qword [0x14004b160]
mov dword [rax], 1
mov rax, qword [0x14004b0f0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400176e0
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x10078
push rbx
call fcn.14002e2d0
sub rsp, rax
xor eax, eax
mov rdx, rcx
lea rbx, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], cx
lea rsi, [rsp + 0x70]
mov rcx, rbx
call fcn.1400253c0
mov rdx, rsi
mov r8d, 0x10000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140017739
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop rbx
pop rsi
ret
Function at 0x14002cfb0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14003e730
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14003e730
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14002dc82
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400533c8]
test eax, eax
je 0x14002dd1a
lea rax, [0x1400533a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400533d0]
mov qword [rbp - 8], rax
jmp 0x14002dcfe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14002dcf2
cmp qword [rbp - 0x10], 0
je 0x14002dcf2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14002dcb8
lea rax, [0x1400533a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14002dd1b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14002de20
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14002de48
mov eax, 0
jmp 0x14002de96
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14002de71
mov eax, 0
jmp 0x14002de96
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14002de91
mov eax, 0
jmp 0x14002de96
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14002de9c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14002df1a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14002df11
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14002df11
mov rax, qword [rbp - 8]
jmp 0x14002df2f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14002dee4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14007e2c0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x14009f780], rbx
je 0x14007e327
cmp rax, rbx
jne 0x14007e31a
mov ebx, 1
mov esi, ebx
jmp 0x14007e32c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14007e2ff
mov ebx, 1
mov eax, dword [0x14009f788]
cmp eax, ebx
jne 0x14007e344
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14007e3b0
mov eax, dword [0x14009f788]
test eax, eax
jne 0x14007e3a5
mov dword [0x14009f788], ebx
lea r15, [0x1400878c0]
lea rdi, [0x1400878a8]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14007e397
test eax, eax
jne 0x14007e39b
cmp qword [rdi], r14
je 0x14007e38c
mov rax, qword [rdi]
mov rcx, qword [0x140087880]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14007e36e
test eax, eax
je 0x14007e3ab
mov eax, 0xff
jmp 0x14007e506
mov dword [0x14009ea14], ebx
mov edi, 0x1f
mov eax, dword [0x14009f788]
cmp eax, ebx
jne 0x14007e3d7
lea rdx, [0x1400878a0]
lea rcx, [0x140087888]
call sub.msvcrt.dll__initterm
mov dword [0x14009f788], 2
test esi, esi
jne 0x14007e3e5
mov rax, r14
xchg qword [0x14009f780], rax
cmp qword [0x14009f790], r14
je 0x14007e418
lea rcx, [0x14009f790]
call fcn.14007ee10
test eax, eax
je 0x14007e418
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14009f790]
mov r9, qword [0x140087880]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14007e431
mov eax, 0xff
jmp 0x14007e506
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14007e4b7
test ax, ax
je 0x14007e44c
test edx, edx
jne 0x14007e4b7
sub ax, bx
cmp ax, di
ja 0x14007e462
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14007e44c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140022e4c
mov dword [0x14009ea10], eax
cmp dword [0x14009ea30], r14d
jne 0x14007e4a0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14009ea14], r14d
jne 0x14007e4b5
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14009ea10]
jmp 0x14007e506
cmp ax, 0x22
jne 0x14007e4cb
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14007e43a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call 0x140133000
add rsp, 0x28
jmp 0x14007e2c0
Function at 0x403cb0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
cmp byte [0x00433070], 0
je 0x403d68
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rdi, rax
mov rcx, rsi
call fcn.0040a150
mov rcx, rdi
mov rdx, rsi
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rsi, rax
mov rcx, qword [0x0042f0a8]
call fcn.0040a150
mov rcx, rsi
mov rdx, qword [0x0042f0a8]
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rsi, rax
mov rcx, rbx
call fcn.0040a150
mov rcx, rsi
mov rdx, rbx
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x403d7b
xor ecx, ecx
mov rdx, rbx
mov r8, rsi
mov r9d, 0x2010
call sub.user32.dll_MessageBoxA
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x406fd0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x48
mov rbp, rsp
mov rbx, rcx
movzx rax, word [rbx + 8]
cmp ax, 0xd7b2
je 0x406fef
cmp ax, 0xd7b3
jne 0x40702e
mov rcx, qword [rbx]
mov r8d, dword [rbx + 0xc]
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
test eax, eax
jne 0x40701a
call sub.kernel32.dll_GetLastError
mov ecx, eax
call fcn.00404fb0
jmp 0x407038
mov eax, dword [rbx + 0xc]
cmp eax, dword [rbp + 0x3c]
je 0x407038
mov ecx, 0x65
call fcn.00404fb0
jmp 0x407038
mov ecx, 5
call fcn.00404fb0
mov rax, rbx
lea rsp, [rbp + 0x48]
pop rbx
pop rbp
ret
Function at 0x408010
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbp
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov ebx, edx
mov rax, qword [rbp + 0x28]
mov r13d, dword [rax + 0x18]
mov rcx, qword [rbp + 0x28]
call fcn.004082d0
mov esi, eax
test sil, sil
jne 0x4081c5
test ebx, ebx
je 0x4081c5
xor edi, edi
test r13d, r13d
jle 0x4080f1
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov dword [rbp + 0x3c], 0
test r13d, r13d
jle 0x4080d5
cmp ebx, 0xffffffff
je 0x408083
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x408083
xor esi, esi
jmp 0x4081c5
mov rax, qword [rbp + 0x28]
cmp dword [rax], 1
jg 0x4080d5
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0
jne 0x4080c3
xor eax, eax
mov ecx, 1
mov rdx, qword [rbp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x4080c3
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x4081c5
lea rcx, [rbp + 0x3c]
call fcn.00407ee0
sub r13d, 1
test r13d, r13d
jg 0x40806a
nop
cmp ebx, 0xffffffff
je 0x4080f1
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x4080ef
xor esi, esi
jmp 0x4081c5
sub ebx, eax
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x40802d
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x4080f1
nop
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov rcx, qword [rbp + 0x28]
call fcn.00408240
xor ecx, ecx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x00433968]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x408154
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jae 0x408152
sub ebx, eax
jmp 0x408154
xor ebx, ebx
test sil, sil
je 0x408186
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x408183
mov edx, ecx
sub edx, 2
or edx, 1
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x408159
mov dil, 1
nop
jmp 0x4081a3
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov edx, ecx
sub edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x408186
mov dil, 1
test dil, dil
je 0x408114
nop
test sil, sil
je 0x4081c5
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov eax, esi
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop r13
pop r14
pop rbp
ret
Function at 0x409630
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x00433070], 0
je 0x4096ca
cmp word [0x00433380], 0xd7b2
jne 0x409663
cmp dword [0x00433388], 0
jbe 0x409663
lea rcx, [0x00433378]
call qword [0x004333a0]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x00430588]
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, [0x00409700]
call fcn.0040aaa0
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x4096eb
cmp byte [0x0042f032], 0
jne 0x4096eb
xor ecx, ecx
lea rdx, [0x00430588]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40cb50
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x00437eb8]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x00437ee0], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x00437eb0], al
cmp byte [0x00437eb0], 0
je 0x40cbef
lea rcx, [0x0040cbf4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040cc0e]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00437e98], rax
lea rcx, [0x0040cbf4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040cc2c]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00437ea0], rax
lea rcx, [0x0040cbf4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040cc4a]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00437ea8], rax
add rsp, 0x28
ret

Function at 0x40e1f0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x40e210
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call sub.kernel32.dll_GetVersion
mov ecx, eax
and ecx, 0xff
and eax, 0xff00
shr eax, 8
cmp ecx, 5
jne 0x40e234
cmp eax, 1
jae 0x40e239
cmp ecx, 5
jbe 0x40e245
mov dword [0x004339f8], 0x7f
jmp 0x40e24f
mov dword [0x004339f8], 0x409
add rsp, 0x28
ret

Function at 0x40e4f0
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.0040e4e0
mov ebx, eax
test ebx, ebx
je 0x40e539
cmp dword [0x00430f78], 0xffffffff
jne 0x40e513
mov ecx, 0xe2
call fcn.004098c0
mov ecx, ebx
call fcn.0040e4c0
test rax, rax
jne 0x40e52b
mov ecx, 0xe2
call fcn.004098c0
jmp 0x40e539
mov ecx, dword [0x00430f78]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x40e580
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
lea rax, [0x214]
test rax, rax
je 0x40e5bf
cmp dword [0x00430f78], 0xffffffff
je 0x40e5bf
mov ecx, dword [0x00430f78]
call sub.kernel32.dll_TlsGetValue
test rax, rax
je 0x40e5bf
mov rcx, rax
call sub.kernel32.dll_LocalFree
mov ecx, dword [0x00430f78]
xor edx, edx
call sub.kernel32.dll_TlsSetValue
add rsp, 0x28
ret
Function at 0x40e600
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x004391d0], 0
je 0x40e63b
mov ecx, dword [0x00430f78]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40e64e
call fcn.0040e4f0
mov ecx, dword [0x00430f78]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40e64e
mov rax, qword [0x004391c8]
jmp 0x40e64e
mov rax, qword gs:[0x58]
mov ecx, dword [0x00430f78]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret
Function at 0x411820
Capabilities:
Delete file

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x58], rdx
mov rcx, qword [rbp + 0x50]
call fcn.00409bc0
mov rcx, qword [rbp + 0x58]
call fcn.00409bc0
nop
mov rcx, rbp
mov rdx, qword [rbp + 0x50]
mov r8, qword [rbp + 0x58]
call fcn.00410fb0
mov dword [rbp + 0x2c], eax
mov rcx, qword [rbp + 0x38]
mov rax, qword [0x00432f50]
call qword [rax]
mov rcx, qword [rbp + 0x30]
call sub.kernel32.dll_CloseHandle
cmp dword [rbp + 0x2c], 0
jne 0x411883
mov rcx, qword [rbp + 0x58]
call fcn.0040ae00
mov rcx, rax
call sub.kernel32.dll_DeleteFileW
nop
lea rcx, [rbp + 0x50]
mov edx, 2
call fcn.00409ad0
mov eax, dword [rbp + 0x2c]
lea rsp, [rbp + 0x40]
pop rbp
ret
Function at 0x413d90
Capabilities:
Get common file path

Disassembly:
push rbp
sub rsp, 0x810
mov rbp, rsp
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x20], 0
mov qword [rbp + 0x820], rcx
nop
mov ecx, 0x3e9
lea rdx, [rbp + 0x3e]
call sub.kernel32.dll_GetTempPathW
lea rcx, [rbp + 0x20]
lea rdx, [rbp + 0x3e]
call fcn.0040ae90
mov rcx, rbp
lea rdx, [rbp + 0x28]
mov r8, qword [rbp + 0x20]
call fcn.00413d50
mov rcx, qword [rbp + 0x820]
mov rdx, qword [rbp + 0x28]
call fcn.00409f40
nop
lea rcx, [rbp + 0x20]
mov edx, 2
call fcn.00409ad0
mov rax, qword [rbp + 0x820]
lea rsp, [rbp + 0x810]
pop rbp
ret
Function at 0x416cd0
Capabilities:
Compute adler32 checksum

Disassembly:
movzx r9d, cx
mov r11d, r8d
shr ecx, 0x10
mov r10, rdx
test rdx, rdx
jne 0x416ce6
lea eax, [rdx + 1]
ret
test r8d, r8d
je 0x416e23
nop
mov edx, 0x15b0
cmp r11d, edx
cmovb edx, r11d
sub r11d, edx
cmp edx, 0x10
jl 0x416ddd
mov r8d, edx
shr r8, 4
mov eax, r8d
neg eax
shl eax, 4
add edx, eax
nop dword [rax]
movzx eax, byte [r10]
add r9d, eax
movzx eax, byte [r10 + 1]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 2]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 3]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 4]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 5]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 6]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 7]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 8]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 9]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xa]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xb]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xc]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xd]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xe]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xf]
add ecx, r9d
add r10, 0x10
add r9d, eax
add ecx, r9d
sub r8, 1
jne 0x416d20
test edx, edx
je 0x416df4
movzx eax, byte [r10]
dec edx
add r9d, eax
inc r10
add ecx, r9d
test edx, edx
jg 0x416de1
mov eax, 0x80078071
mul r9d
shr edx, 0xf
imul eax, edx, 0xffff000f
add r9d, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
test r11d, r11d
jne 0x416cf0
shl ecx, 0x10
or ecx, r9d
mov eax, ecx
ret
Function at 0x418810
Capabilities:
Decompress data using ucl

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
xor eax, eax
xor r10d, r10d
mov r14, r9
mov rdi, r8
mov ebp, edx
mov r11, rcx
xor ebx, ebx
lea esi, [rax + 1]
nop dword [rax + rax]
test r10b, 0x7f
je 0x41884b
add r10d, r10d
jmp 0x41885a
movzx edx, byte [rax + r11]
inc eax
lea r10d, [rdx*2 + 1]
bt r10d, 8
jae 0x41886f
movzx ecx, byte [rax + r11]
mov byte [rbx + rdi], cl
inc ebx
inc eax
jmp 0x418840
mov r8d, 1
test r10b, 0x7f
je 0x418880
add r10d, r10d
jmp 0x41888f
movzx edx, byte [rax + r11]
inc eax
lea r10d, [rdx*2 + 1]
mov ecx, r10d
shr ecx, 8
and ecx, 1
lea r8d, [rcx + r8*2]
test r10b, 0x7f
je 0x4188a7
add r10d, r10d
jmp 0x4188b6
movzx edx, byte [rax + r11]
inc eax
lea r10d, [rdx*2 + 1]
bt r10d, 8
jb 0x4188e9
test r10b, 0x7f
je 0x4188c8
add r10d, r10d
jmp 0x4188d7
movzx edx, byte [rax + r11]
inc eax
lea r10d, [rdx*2 + 1]
mov ecx, r10d
shr ecx, 8
and ecx, 1
dec r8d
lea r8d, [rcx + r8*2]
jmp 0x418875
cmp r8d, 2
jne 0x41891a
mov r9d, esi
test r10b, 0x7f
je 0x418903
add r10d, r10d
mov ecx, r10d
shr ecx, 8
jmp 0x418947
movzx edx, byte [rax + r11]
inc eax
lea r10d, [rdx*2 + 1]
mov ecx, r10d
shr ecx, 8
jmp 0x418947
movzx edx, byte [rax + r11]
inc eax
shl r8d, 8
lea r9d, [r8 - 0x300]
add r9d, edx
cmp r9d, 0xffffffff
je 0x418a78
mov ecx, r9d
shr r9d, 1
inc r9d
not ecx
mov esi, r9d
mov edx, r10d
and edx, 0x7f
test cl, 1
je 0x41898e
test edx, edx
je 0x41896c
add r10d, r10d
mov r8d, r10d
shr r8d, 8
and r8d, 1
inc r8d
jmp 0x418a31
movzx edx, byte [rax + r11]
inc eax
lea r10d, [rdx*2 + 1]
mov r8d, r10d
shr r8d, 8
and r8d, 1
inc r8d
jmp 0x418a31
test edx, edx
je 0x418997
add r10d, r10d
jmp 0x4189a6
movzx edx, byte [rax + r11]
inc eax
lea r10d, [rdx*2 + 1]
bt r10d, 8
jae 0x4189df
test r10b, 0x7f
je 0x4189c3
add r10d, r10d
mov r8d, r10d
shr r8d, 8
and r8d, 1
jmp 0x418a2d
movzx edx, byte [rax + r11]
inc eax
lea r10d, [rdx*2 + 1]
mov r8d, r10d
shr r8d, 8
and r8d, 1
jmp 0x418a2d
mov r8d, 1
test r10b, 0x7f
je 0x4189f0
add r10d, r10d
jmp 0x4189ff
movzx edx, byte [rax + r11]
inc eax
lea r10d, [rdx*2 + 1]
mov ecx, r10d
shr ecx, 8
and ecx, 1
lea r8d, [rcx + r8*2]
test r10b, 0x7f
je 0x418a17
add r10d, r10d
jmp 0x418a26
movzx edx, byte [rax + r11]
inc eax
lea r10d, [rdx*2 + 1]
bt r10d, 8
jae 0x4189e5
add r8d, 3
xor ecx, ecx
cmp r9d, 0x500
seta cl
add r8d, ecx
mov ecx, r9d
mov r9d, ebx
sub r9, rcx
add r9, rdi
movzx ecx, byte [r9]
mov byte [rbx + rdi], cl
inc ebx
inc r9
nop dword [rax + rax]
movzx ecx, byte [r9]
lea r9, [r9 + 1]
mov byte [rbx + rdi], cl
inc ebx
add r8d, 0xffffffff
jne 0x418a60
jmp 0x418840
mov dword [r14], ebx
cmp eax, ebp
jne 0x418a83
xor eax, eax
jmp 0x418a90
mov eax, 0xffffff37
mov edx, 0xffffff33
cmovb eax, edx
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
pop r14
ret