joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800289d0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x18043fad0]
mov rbx, rcx
xor ecx, ecx
mov dword [rax + 0x5bb4], ecx
test rbx, rbx
je 0x180028a3f
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rdi
call fcn.180028a50
lea rdx, [0x1800c4220]
mov rcx, rbx
mov rdi, rax
call fcn.18001d760
mov rbx, rax
test rax, rax
je 0x180028a3a
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret

Function at 0x18002ca90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x20
mov rbx, qword [0x18043fad0]
cmp byte [rbx + 0x5bb1], 0
jne 0x18002cbea
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x18002cbe3
lea rdx, [0x1800c421c]
mov qword [rsp + 0x40], rdi
call fcn.18001d760
mov rdi, rax
test rax, rax
je 0x18002cbde
mov qword [rsp + 0x30], rbp
mov rcx, rax
mov qword [rsp + 0x38], rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x18002cbcb
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18002cbcb
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x18002cbcb
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18002cbcb
cmp rsi, 0xffffffffffffffff
je 0x18002cbcb
mov rax, qword [0x18043fad0]
test rax, rax
je 0x18002cb55
inc dword [rax + 0xf4]
mov rdx, qword [0x18043fae0]
mov rcx, rsi
call qword [0x18043e948]
mov rbp, rax
test rax, rax
je 0x18002cbcb
mov r9, rdi
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rdi
cmp rax, rsi
je 0x18002cb91
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x18002cba7
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x18002cba7
mov rdx, rsi
mov rcx, rbp
call fcn.18001f930
mov rax, qword [0x18043fad0]
test rax, rax
je 0x18002cbb9
dec dword [rax + 0xf4]
mov rdx, qword [0x18043fae0]
mov rcx, rbp
call qword [0x18043e950]
jmp 0x18002cbd4
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov byte [rbx + 0x5bb1], 1
movss xmm0, dword [rbx + 0x5bb4]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x18002cc2d
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5bb4], xmm0
jb 0x18002cc2d
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x18002cc1c
call fcn.1800289d0
jmp 0x18002cc23
mov byte [rbx + 0xdc], 1
mov dword [rbx + 0x5bb4], 0
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x180045be0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x18043fad0]
mov rcx, qword [rax + 0x4b18]
mov r10, qword [rax + 0x3ed0]
movsxd rax, dword [rcx + 0x7c]
movups xmm0, xmmword [rcx + 0x170]
movss xmm4, dword [rcx + 0x170]
movss xmm3, dword [rcx + 0x174]
movss xmm2, dword [rcx + 0x178]
movss xmm1, dword [rcx + 0x17c]
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x68
mov rax, qword [r10 + 0x290]
add r9, qword [rcx + 0x18]
movups xmmword [r10 + 0x230], xmm0
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x290]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, byte [r9 + 0x57]
mov rdx, qword [r10 + 0x290]
mov rcx, qword [rcx + 0x1a0]
add rsp, 0x38
jmp 0x18003b080

Function at 0x180045cb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x18043fad0]
mov rcx, qword [rax + 0x4b18]
mov r9, qword [rax + 0x3ed0]
movups xmm0, xmmword [r9 + 0x230]
movups xmmword [rcx + 0x170], xmm0
mov rax, qword [r9 + 0x290]
movups xmm0, xmmword [rcx + 0x150]
movss xmm4, dword [rcx + 0x150]
movss xmm3, dword [rcx + 0x154]
movss xmm2, dword [rcx + 0x158]
movss xmm1, dword [rcx + 0x15c]
movups xmmword [r9 + 0x230], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x290]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, byte [rcx + 0x20f]
mov rcx, qword [rcx + 0x1a0]
mov rdx, qword [r9 + 0x290]
add rsp, 0x38
jmp 0x18003b080
Function at 0x18005e37c
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 0x18005e3b6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x18005e3bb
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 0x18005e404
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1800c8c50]
cmp byte [rcx + rax], 0
je 0x18005e404
dec r8
sub rdx, 1
jne 0x18005e3ea
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x180005900
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x24], eax
xor eax, eax
cmp eax, 1
je 0x18000597a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0x24]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x20], eax
jb 0x180005938
jmp 0x18000597a
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x40]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
mov dword [rsp + 0x28], 0x64
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x2c]
call fcn.180083730
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [rsp + 0x48]
add rax, 0x18
mov rcx, rax
call fcn.180004e20
jmp 0x180005917
add rsp, 0x38
ret

Function at 0x180005980
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov dword [rsp + 0x20], r9d
mov byte [rsp + 0x18], r8b
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x3c], eax
xor eax, eax
cmp eax, 1
je 0x180005aca
mov dword [rsp + 0x40], 0x3e8
lea rdx, [rsp + 0x3c]
lea rcx, [rsp + 0x40]
call fcn.180083730
mov eax, dword [rax]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x78], 0
je 0x180005a0d
movzx eax, byte [rsp + 0x70]
mov ecx, dword [rsp + 0x78]
mov dword [rsp + 0x20], ecx
mov r9d, dword [rsp + 0x34]
mov r8d, eax
mov rdx, qword [rsp + 0x60]
mov ecx, dword [rsp + 0x68]
mov rax, qword [rsp + 0x88]
call qword [rax + 0x440]
mov dword [rsp + 0x30], eax
jmp 0x180005a56
cmp dword [rsp + 0x68], 0
je 0x180005a36
movzx eax, byte [rsp + 0x70]
mov r9d, dword [rsp + 0x34]
mov r8d, eax
mov rdx, qword [rsp + 0x60]
mov ecx, dword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [rsp + 0x30], eax
jmp 0x180005a56
mov eax, 8
imul rax, rax, 0
mov edx, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + rax]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0x102
je 0x180005a6a
jmp 0x180005a6c
jmp 0x180005a72
mov eax, dword [rsp + 0x30]
jmp 0x180005aca
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0x48]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x38], eax
jb 0x180005a94
mov eax, 0x102
jmp 0x180005aca
cmp dword [rsp + 0x80], 0xffffffff
je 0x180005ab1
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x80]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x88]
add rax, 0x18
mov rcx, rax
call fcn.180004e20
jmp 0x1800059ac
add rsp, 0x58
ret
Function at 0x180007520
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rdx, qword [rsp + 0xd0]
lea rcx, [rsp + 0x80]
call fcn.180003440
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call fcn.180074060
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x80]
call fcn.180073fc0
cmp dword [rsp + 0x28], 0xffffffff
jne 0x18000769d
mov r8, qword [0x180323d38]
lea rdx, [0x1803dbc48]
mov rcx, qword [rsp + 0xd0]
call fcn.180073a00
mov qword [rsp + 0x30], rax
mov rax, qword [0x180323d38]
cmp qword [rsp + 0x30], rax
je 0x180007628
mov r9, qword [rsp + 0x30]
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0xd0]
call fcn.180073ad0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x40]
call fcn.180007520
movzx eax, al
test eax, eax
jne 0x1800075fd
mov dword [rsp + 0x24], 1
jmp 0x180007605
mov dword [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
mov byte [rsp + 0x20], al
lea rcx, [rsp + 0x60]
call fcn.180073360
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x180007628
xor al, al
jmp 0x1800076c6
mov rdx, qword [rsp + 0xd0]
lea rcx, [rsp + 0xa0]
call fcn.180003440
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.180074060
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x180007665
mov dword [rsp + 0x2c], 1
jmp 0x18000766d
mov dword [rsp + 0x2c], 0
movzx eax, byte [rsp + 0x2c]
mov byte [rsp + 0x21], al
lea rcx, [rsp + 0xa0]
call fcn.180073fc0
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x180007690
xor al, al
jmp 0x1800076c6
mov rax, qword [rsp + 0xd8]
mov byte [rax], 0
jmp 0x1800076c4
mov eax, dword [rsp + 0x28]
and eax, 0x410
test eax, eax
jne 0x1800076b9
mov ecx, 0x52
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x1800076c6
mov rax, qword [rsp + 0xd8]
mov byte [rax], 1
mov al, 1
add rsp, 0xc8
ret
Function at 0x1800eca80
Capabilities:
Allocate thread local storage
Check os version
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
cmp dword [rsp + 0x68], 1
jne 0x1800ecb23
movzx eax, byte [0x1803ba886]
test eax, eax
je 0x1800ecab3
mov eax, 1
jmp 0x1800ecca6
mov byte [0x1803ba886], 1
lea rax, [0x1803bac50]
mov rdi, rax
xor eax, eax
mov ecx, 0x114
rep stosb byte [rdi], al
mov dword [0x1803bac50], 0x114
lea rcx, [0x1803bac50]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [0x1803bac54], 6
jne 0x1800ecaf6
cmp dword [0x1803bac58], 2
jae 0x1800ecaff
cmp dword [0x1803bac54], 6
jbe 0x1800ecb06
mov byte [0x1803ba885], 1
lea rcx, [0x180326518]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.1801e4ea0
nop
mov byte [rsp + 0x20], 0
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x1800ecbe4
cmp dword [rsp + 0x24], 1
je 0x1800ecb5d
cmp dword [rsp + 0x24], 2
je 0x1800ecc04
cmp dword [rsp + 0x24], 3
je 0x1800ecc3f
jmp 0x1800ecc8f
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1803bac44], eax
cmp dword [0x1803bac44], 0
je 0x1800ecb91
mov edx, 0x14
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdx, rax
mov ecx, dword [0x1803bac44]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
call fcn.1800ec2f0
movzx eax, al
test eax, eax
jne 0x1800ecbd3
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x1800ecbcc
cmp dword [0x1803bac54], 6
jne 0x1800ecbcc
cmp dword [0x1803bac58], 0
jne 0x1800ecbcc
mov eax, 1
jmp 0x1800ecca6
xor eax, eax
jmp 0x1800ecca6
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1803babc4], eax
jmp 0x1800ecc8f
xor eax, eax
test eax, eax
jne 0x1800ecbe4
call fcn.180294d74
mov rcx, qword [rsp + 0x60]
call fcn.1800ec450
xor eax, eax
test eax, eax
jne 0x1800ecbf9
jmp 0x1800ecc8f
cmp dword [0x1803bac44], 0
je 0x1800ecc3d
mov ecx, dword [0x1803bac44]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x1800ecc3d
mov edx, 0x14
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdx, rax
mov ecx, dword [0x1803bac44]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x1800ecc8f
cmp dword [0x1803bac44], 0
je 0x1800ecc5b
mov ecx, dword [0x1803bac44]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x30], rax
jmp 0x1800ecc64
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x1800ecc8f
xor edx, edx
mov ecx, dword [0x1803bac44]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1800ecca1
mov eax, 1
add rsp, 0x50
pop rdi
ret

Function at 0x1800fa5d0
Capabilities:
Terminate process

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
call fcn.1800ec270
call fcn.1800fa5c0
jmp 0x1800fa601
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x18012dc50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x38
cmp dword [0x1803bac44], 0
jne 0x18012dc61
xor eax, eax
jmp 0x18012dca5
mov ecx, dword [0x1803bac44]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x18012dca0
mov edx, 0x14
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x20], rax
mov rdx, qword [rsp + 0x20]
mov ecx, dword [0x1803bac44]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rax, qword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x180146b20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov dword [rsp + 0x40], 0
lea rcx, [rsp + 0x78]
call fcn.180073040
nop
movzx eax, word [rsp + 0xd8]
movzx ecx, word [rsp + 0xd0]
mov r8d, eax
mov edx, ecx
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x180146bbe
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.180073130
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x78]
call fcn.180073360
mov rax, qword [rsp + 0xc0]
jmp 0x180146d98
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x180146c12
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.180073130
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x78]
call fcn.180073360
mov rax, qword [rsp + 0xc0]
jmp 0x180146d98
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x180146c5e
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.180073130
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x78]
call fcn.180073360
mov rax, qword [rsp + 0xc0]
jmp 0x180146d98
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x180146d69
mov eax, dword [rsp + 0x44]
xor r8d, r8d
mov edx, eax
lea rcx, [rsp + 0x78]
call fcn.18009a520
mov eax, dword [rsp + 0x44]
mov qword [rsp + 0x98], rax
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.1800737e0
mov rcx, qword [rsp + 0x98]
mov r8, rcx
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call fcn.18017c210
mov edx, dword [rsp + 0xd8]
mov rcx, qword [rsp + 0xc8]
call fcn.180145fcc
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x180146d69
mov eax, dword [rsp + 0xc8]
mov ecx, dword [rsp + 0x50]
sub ecx, eax
mov eax, ecx
imul eax, eax, 0xccddeeaa
mov dword [rsp + 0x60], eax
mov ecx, dword [rsp + 0xc8]
mov edx, dword [rsp + 0x50]
sub edx, ecx
mov ecx, edx
imul ecx, ecx, 0xbaadf00d
mov dword [rsp + 0x5c], ecx
mov edx, dword [rsp + 0x48]
xor edx, 0xdeadbeef
mov dword [rsp + 0x58], edx
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.1800737e0
mov rcx, qword [rsp + 0xc8]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0xffffffff
mov ecx, dword [rsp + 0x60]
mov dword [rsp + 0x20], ecx
mov ecx, dword [rsp + 0x5c]
mov r9d, ecx
mov ecx, dword [rsp + 0x58]
mov r8d, ecx
mov edx, dword [rsp + 0x44]
mov rcx, rax
call fcn.180146a10
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.180073130
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x78]
call fcn.180073360
mov rax, qword [rsp + 0xc0]
add rsp, 0xb8
ret
Function at 0x1801470e8
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
movzx eax, word [rax + 0x14]
mov ecx, dword [rsp + 0x10]
lea eax, [rcx + rax + 0x18]
mov eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp], 0
mov dword [rsp + 4], 0
mov qword [rsp + 8], 0
jmp 0x18014715c
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x10]
movzx eax, word [rax + 6]
cmp qword [rsp + 8], rax
jae 0x1801471ab
mov rax, qword [rsp + 8]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
mov eax, dword [rax + 0x14]
cmp dword [rsp], eax
jae 0x1801471a9
mov rax, qword [rsp + 0x18]
mov eax, dword [rax + 0x14]
mov dword [rsp], eax
mov rax, qword [rsp + 0x18]
mov eax, dword [rax + 0x10]
mov dword [rsp + 4], eax
jmp 0x18014714f
mov eax, dword [rsp + 4]
mov ecx, dword [rsp]
add ecx, eax
mov eax, ecx
jmp 0x1801471ba
add rsp, 0x48
ret
Function at 0x180155250
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov r9, qword [rsp + 0x40]
mov r8d, 0x40
xor edx, edx
mov rcx, rax
call qword [rsp + 0x38]
test eax, eax
jne 0x18015528a
mov eax, 1
jmp 0x1801553df
jmp 0x180155296
mov rax, qword [rsp + 0x30]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x1801552b0
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x3c], 0
jne 0x1801552ba
mov eax, 2
jmp 0x1801553df
mov rax, qword [rsp + 0x30]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x30]
add rcx, 0x40
mov r9, qword [rsp + 0x40]
mov r8d, 0x108
mov rdx, rax
call qword [rsp + 0x38]
test eax, eax
jne 0x1801552ec
mov eax, 1
jmp 0x1801553df
jmp 0x1801552f8
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x40], 0x4550
jne 0x180155323
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x58]
cmp eax, 0x20b
jne 0x180155323
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x46]
test eax, eax
jne 0x18015532d
mov eax, 2
jmp 0x1801553df
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x46]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x158], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x158]
call fcn.18017fa60
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x148], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x148], 0
jne 0x180155379
mov eax, 3
jmp 0x1801553df
mov rax, qword [rsp + 0x30]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x30]
movzx ecx, word [rcx + 0x54]
lea rax, [rax + rcx + 0x18]
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x150], rax
mov r9, qword [rsp + 0x40]
mov rax, qword [rsp + 0x30]
mov r8, qword [rax + 0x158]
mov rax, qword [rsp + 0x30]
mov rdx, qword [rax + 0x150]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x148]
call qword [rsp + 0x38]
test eax, eax
jne 0x1801553d4
mov eax, 1
jmp 0x1801553df
jmp 0x1801553dd
xor eax, eax
add rsp, 0x28
ret
Function at 0x1801553f0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov eax, dword [rsp + 0x58]
and eax, 2
test eax, eax
je 0x180155412
mov dword [rsp + 0x2c], 0xffffffff
jmp 0x18015541a
mov dword [rsp + 0x2c], 0
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x148]
mov qword [rsp + 0x30], rax
jmp 0x18015545d
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x30]
add rax, 0x28
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x46]
cmp dword [rsp + 0x28], eax
jae 0x1801554bf
mov rax, qword [rsp + 0x30]
cmp dword [rax + 8], 0
jne 0x180155479
jmp 0x180155445
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x20]
cmp dword [rax + 0xc], ecx
jae 0x180155493
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0xc]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x30]
add eax, dword [rcx + 8]
cmp eax, dword [rsp + 0x24]
jbe 0x1801554bd
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x30]
add eax, dword [rcx + 8]
mov dword [rsp + 0x24], eax
jmp 0x180155445
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x24]
sub ecx, eax
mov eax, ecx
mov eax, eax
mov ecx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x50]
add rcx, qword [rdx + 0x70]
mov r9d, 0x40
mov r8d, 0x3000
mov edx, eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x168], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x70]
mov qword [rax + 0x160], rcx
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x168], 0
jne 0x180155587
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x56]
and eax, 1
test eax, eax
je 0x180155535
mov eax, 4
jmp 0x18015559f
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x24]
sub ecx, eax
mov eax, ecx
mov eax, eax
mov r9d, 0x40
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x168], rax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x168]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x160], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x168], 0
jne 0x18015559d
mov eax, 3
jmp 0x18015559f
xor eax, eax
add rsp, 0x48
ret