joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000d710
Capabilities:
Enumerate gui resources

Disassembly:
push rdi
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x80], rbx
mov rdi, rdx
mov ebx, ecx
xor eax, eax
mov qword [rdx], rax
mov qword [rdx + 8], rax
mov qword [rdx + 0x10], rax
mov qword [rdx + 0x18], rax
call fcn.18000d320
test eax, eax
cmove eax, ebx
mov dword [rdi + 8], eax
mov rdx, rdi
lea rcx, [0x18000aff0]
call qword [sym.imp.USER32.dll_EnumWindows]
xor ebx, ebx
cmp dword [rdi + 0x10], 0x1000000
jne 0x18000d7c1
lea rcx, [rsp + 0x30]
call fcn.18001da40
nop
lea rax, [rsp + 0x88]
mov qword [rsp + 0x90], rax
lea rdx, str.im_line_enable
lea rcx, [rsp + 0x88]
call fcn.1800cc1e0
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.18001de90
lea rcx, [rsp + 0x30]
call fcn.18001dc10
cmp eax, 1
je 0x18000d7b7
mov dword [rdi + 0x10], ebx
mov qword [rdi], rbx
lea rcx, [rsp + 0x30]
call fcn.18001dab0
cmp qword [rdi], 0
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x180012750
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rbp, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
mov rbx, rdx
repne scasb al, byte [rdi]
mov eax, 0x1f3
not rcx
dec rcx
sub eax, ecx
mov rdi, rcx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rcx, rax
mov qword [rsp + 0x28], rax
cmp rax, 0xffffffffffffffff
jne 0x1800127b2
lea eax, [rcx + 2]
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
movsxd rdi, edi
mov esi, 1
mov qword [rsp + 0x30], rdi
nop
test byte [rbx], 0x10
je 0x180012877
cmp byte [rbx + 0x2c], 0x2e
jne 0x1800127e9
movzx eax, byte [rbx + 0x2d]
cmp al, 0x2e
jne 0x1800127e1
cmp byte [rbx + 0x2e], 0
je 0x18001289f
test al, al
je 0x18001289f
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbx + 0x2c]
repne scasb al, byte [rdi]
mov eax, dword [rsp + 0x20]
not rcx
cmp rax, rcx
jb 0x180012895
mov rax, qword [rsp + 0x30]
or rcx, 0xffffffffffffffff
mov rdi, rbp
mov byte [rax + rbp - 1], 0
xor eax, eax
repne scasb al, byte [rdi]
xor ecx, ecx
nop dword [rax]
movzx eax, byte [rbx + rcx + 0x2c]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x180012820
mov r9, qword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
mov rdx, rbx
repne scasb al, byte [rdi]
movzx eax, word [0x18012eba4]
mov rcx, rbp
mov word [rdi - 1], ax
movzx eax, byte [0x18012eba6]
mov byte [rdi + 1], al
call fcn.180012750
mov rdi, qword [rsp + 0x30]
mov byte [rdi + rbp - 1], 0x2a
mov byte [rdi + rbp], 0
mov esi, eax
jmp 0x18001289a
mov r8, qword [rsp + 0x78]
lea rdx, [rbx + 0x2c]
mov rcx, rbp
mov byte [rdi + rbp - 1], 0
call qword [rsp + VarBstrFromDate]
mov byte [rdi + rbp - 1], 0x2a
mov esi, eax
jmp 0x18001289a
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
test esi, esi
je 0x1800128b9
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
mov rcx, qword [rsp + 0x28]
test eax, eax
jne 0x1800127c0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rsp + 0x60]
mov eax, esi
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800128e0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rbp, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
mov rbx, rdx
repne scasw ax, word [rdi]
mov eax, 0x1f3
not rcx
dec rcx
sub eax, ecx
mov rdi, rcx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
mov qword [rsp + 0x28], rax
cmp rax, 0xffffffffffffffff
jne 0x180012943
lea eax, [rcx + 2]
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
movsxd rdi, edi
mov esi, 1
xor r8d, r8d
mov qword [rsp + 0x30], rdi
test byte [rbx], 0x10
je 0x180012a22
cmp word [rbx + 0x2c], 0x2e
jne 0x180012981
movzx eax, word [rbx + 0x2e]
cmp ax, 0x2e
jne 0x180012978
cmp word [rbx + 0x30], 0
je 0x180012a50
test ax, ax
je 0x180012a50
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbx + 0x2c]
repne scasw ax, word [rdi]
mov eax, dword [rsp + 0x20]
not rcx
cmp rax, rcx
jb 0x180012a46
mov rax, qword [rsp + 0x30]
or rcx, 0xffffffffffffffff
mov rdi, rbp
mov word [rbp + rax*2 - 2], r8w
xor eax, eax
repne scasw ax, word [rdi]
xor ecx, ecx
nop word [rax + rax]
movzx eax, word [rbx + rcx + 0x2c]
add rcx, 2
mov word [rdi + rcx - 4], ax
test ax, ax
jne 0x1800129c0
mov r9, qword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
mov rdx, rbx
repne scasw ax, word [rdi]
mov eax, dword [0x18012eba8]
mov rcx, rbp
mov dword [rdi - 2], eax
movzx eax, word [0x18012ebac]
mov word [rdi + 2], ax
call fcn.1800128e0
mov rdi, qword [rsp + 0x30]
mov esi, eax
mov eax, 0x2a
mov word [rbp + rdi*2 - 2], ax
xor eax, eax
mov word [rbp + rdi*2], ax
jmp 0x180012a4b
mov word [rbp + rdi*2 - 2], r8w
mov r8, qword [rsp + 0x78]
lea rdx, [rbx + 0x2c]
mov rcx, rbp
call qword [rsp + VarBstrFromDate]
mov esi, eax
mov eax, 0x2a
mov word [rbp + rdi*2 - 2], ax
jmp 0x180012a4b
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
test esi, esi
je 0x180012a70
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov rcx, qword [rsp + 0x28]
mov r8d, 0
test eax, eax
jne 0x180012953
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rsp + 0x60]
mov eax, esi
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x180013430
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x6a0
mov rax, qword [0x1801903f8]
xor rax, rsp
mov qword [rsp + 0x690], rax
mov rbx, rcx
test rcx, rcx
je 0x180013664
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x180013664
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
je 0x180013664
test al, 1
je 0x18001349a
and edi, 0xfffffffe
mov rcx, rbx
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test dil, 0x10
je 0x180013659
mov qword [rsp + 0x6b8], rbp
lea rcx, [rsp + 0x272]
xor ebp, ebp
xor edx, edx
mov r8d, 0x206
mov qword [rsp + 0x6c0], rsi
mov word [rsp + 0x270], bp
call fcn.18007ead0
lea rcx, [rsp + 0x270]
sub rcx, rbx
mov rdx, rbx
movzx eax, word [rdx]
add rdx, 2
mov word [rcx + rdx - 2], ax
test ax, ax
jne 0x1800134e1
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x270]
repne scasw ax, word [rdi]
mov eax, dword [0x18012eba8]
lea rcx, [rsp + 0x24]
mov dword [rdi - 2], eax
movzx eax, word [0x18012ebac]
xor edx, edx
mov r8d, 0x24c
mov dword [rsp + 0x20], ebp
mov word [rdi + 2], ax
call fcn.18007ead0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18001363e
nop dword [rax]
lea rdx, [0x18012eeb4]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x18001361f
lea rdx, [0x18012eeb0]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x18001361f
lea rcx, [rsp + 0x482]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x480], bp
call fcn.18007ead0
lea rcx, [rsp + 0x480]
sub rcx, rbx
mov rdx, rbx
nop
movzx eax, word [rdx]
add rdx, 2
mov word [rcx + rdx - 2], ax
test ax, ax
jne 0x1800135b0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x270]
repne scasw ax, word [rdi]
mov eax, dword [0x18012b460]
or rcx, 0xffffffffffffffff
mov dword [rdi - 2], eax
xor eax, eax
lea rdi, [rsp + 0x270]
repne scasw ax, word [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x4c]
nop word [rax + rax]
movzx eax, word [rdx + rcx]
add rcx, 2
mov word [rdi + rcx - 4], ax
test ax, ax
jne 0x180013600
lea rcx, [rsp + 0x480]
call fcn.180013430
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180013550
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rsi, qword [rsp + 0x6c0]
mov rbp, qword [rsp + 0x6b8]
jmp 0x180013666
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x180013666
xor eax, eax
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.18007e1e0
mov rbx, qword [rsp + 0x6c8]
add rsp, 0x6a0
pop rdi
ret
Function at 0x180013830
Capabilities:
Get graphical window text

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x20
movsxd rsi, r8d
mov rdi, rdx
mov rbp, rcx
call fcn.1800d0940
test eax, eax
je 0x180013861
mov r8d, esi
mov rdx, rdi
mov rcx, rbp
add rsp, 0x20
pop rdi
pop rsi
pop rbp
jmp qword [sym.imp.USER32.dll_GetWindowTextW]
mov qword [rsp + 0x40], rbx
xor ebx, ebx
test rdi, rdi
je 0x1800138ec
test esi, esi
je 0x1800138ec
lea r8, [rsi + rsi]
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r13
call fcn.18007ead0
mov rcx, rsi
call fcn.180030824
mov r12, rax
test rax, rax
je 0x1800138e2
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.18007ead0
mov r8d, esi
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov ebx, eax
test eax, eax
je 0x1800138e2
mov r9d, esi
mov r8, rdi
or edx, 0xffffffff
mov rcx, r12
xor ebx, ebx
call fcn.18000fa70
test eax, eax
je 0x1800138e2
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasw ax, word [rdi]
not rcx
lea rbx, [rcx - 1]
mov r12, qword [rsp + 0x48]
mov r13, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret

Function at 0x1800142a0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
or rcx, 0xffffffffffffffff
xor eax, eax
lea rbx, [0x1801a9970]
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
jne 0x1800142dc
lea rcx, [0x18012ef88]
mov r8d, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180014e70
Capabilities:
Log keystrokes via application hook

Disassembly:
push rdi
sub rsp, 0x40
cmp qword [0x1801a9da8], 0
mov rdi, rcx
jne 0x180014f0b
call fcn.180014d10
test eax, eax
je 0x180014f0b
lea rdx, [rsp + 0x58]
mov rcx, rdi
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x58], 0
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [0x1801b0450], 0
mov ebx, eax
je 0x180014ee4
mov ecx, dword [rsp + 0x58]
mov dword [rsp + 0x30], eax
lea r9, str.HookLineBoard___x____x____x_
mov dword [rsp + 0x28], ecx
lea r8, str.LINE
lea rcx, [0x1801afb58]
or edx, 0xffffffff
mov qword [rsp + 0x20], rdi
call fcn.1800b3b40
test ebx, ebx
je 0x180014f06
xor r8d, r8d
lea rdx, [0x180014df0]
mov r9d, ebx
lea ecx, [r8 + 2]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x1801a9da8], rax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x180014f60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x180014f93
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x180014fd7
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x180014fd2
cmp rbx, r11
jae 0x180014fd7
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x180014fc0
cmp rbx, r11
jb 0x180014fdb
xor eax, eax
jmp 0x180014fe7
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800160e0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x190
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x1801903f8]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rdi, r9
mov ebx, r8d
mov r12, rdx
mov rsi, rcx
mov qword [rsp + 0x60], rcx
xor ebp, ebp
mov dword [rsp + 0x40], ebp
test rdx, rdx
je 0x180016337
test ebx, ebx
je 0x180016337
test r9, r9
je 0x180016337
mov byte [rsp + 0x70], bpl
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x71]
call fcn.18007ead0
xor edx, edx
mov rcx, r12
call fcn.1800c12e0
test eax, eax
je 0x18001631d
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rbp + 1]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x18001631d
lea eax, [rbx + 1]
mov r13d, eax
mov ecx, eax
call fcn.180030824
mov r12, rax
test rax, rax
je 0x18001631d
mov dword [rsp + 0x50], ebp
mov r8, r13
xor edx, edx
mov rcx, rax
call fcn.18007ead0
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x50]
mov r8d, ebx
mov rdx, r12
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x180016315
mov rdx, rdi
mov rcx, r12
call fcn.18007fd28
test rax, rax
je 0x18001625f
lea edx, [rbp + 0x3d]
mov rcx, rax
call fcn.18007fcec
mov rbx, rax
test rax, rax
je 0x180016315
inc rbx
lea rdx, [0x18012f538]
mov rcx, rbx
call fcn.18007fd28
test rax, rax
je 0x180016315
mov rcx, rax
sub rcx, rbx
cmp rcx, 0x104
jge 0x180016245
sub eax, ebx
jmp 0x18001624a
mov eax, 0x104
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.18007fb60
jmp 0x180016315
call fcn.180032e40
mov rcx, rax
test rax, rax
setne bpl
test ebp, ebp
jne 0x18001627d
mov ecx, 0x80004005
call fcn.180004010
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
test rdi, 0xffffffffffff0000
jne 0x1800162bb
movzx edi, di
mov ecx, edi
call fcn.180035ed8
test rax, rax
je 0x1800162cd
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1800155c0
mov rbx, qword [rsp + 0x48]
jmp 0x1800162cd
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.1800154f0
mov rbx, qword [rsp + 0x48]
cmp dword [0x1801b0450], 0
je 0x1800162f9
mov qword [rsp + 0x20], rbx
lea r9, str.GetConfigContent_Cannot_Found___s_
lea r8, str.LINE
or edx, 0xffffffff
lea rcx, [0x1801afb58]
call fcn.1800b3b40
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180016315
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov rcx, r12
call fcn.18003081c
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.180015a50
mov dword [rsp + 0x40], 1
mov rax, rsi
jmp 0x18001634f
lea rdx, [0x18012f4e8]
call fcn.180016020
nop
mov dword [rsp + 0x40], 1
mov rax, rsi
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.18007e1e0
add rsp, 0x190
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18001d750
Capabilities:
Read .ini file

Disassembly:
push rdi
sub rsp, 0xe70
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0xe80], rbx
mov rax, qword [0x1801903f8]
xor rax, rsp
mov qword [rsp + 0xe60], rax
cmp dword [0x1801aa0b4], 0
jne 0x18001d9de
mov dword [0x1801aa0b4], 1
mov byte [rsp + 0x260], 0
xor edx, edx
mov r8d, 0x3ff
lea rcx, [rsp + 0x261]
call fcn.18007ead0
xor edi, edi
mov dword [rsp + 0x30], edi
mov word [rsp + 0x660], di
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rsp + 0x662]
call fcn.18007ead0
mov word [rsp + 0x50], di
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x52]
call fcn.18007ead0
call fcn.180003330
mov r8, rax
lea r9, str.OAgent.ini
lea rdx, [0x18012b288]
lea rcx, [rsp + 0x50]
call fcn.18007ebbc
lea r11, [rsp + 0x50]
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x20], 0x400
lea r9, [rsp + 0x660]
lea r8, [0x18012f4e8]
lea rdx, [0x180130f60]
lea rcx, str.AgentConfig
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x18001d871
cmp word [rsp + 0xe5e], di
jne 0x18001d871
mov r8d, 0x400
lea rdx, [rsp + 0x260]
lea rcx, [rsp + 0x660]
call fcn.1800ada30
mov r11d, eax
mov dword [rsp + 0x30], eax
jmp 0x18001d876
mov r11d, dword [rsp + 0x30]
test r11d, r11d
jne 0x18001d9a0
lea rcx, [rsp + 0x38]
call fcn.1800b0230
nop
mov ebx, 0x20019
call fcn.1800d0840
mov ecx, 0x20219
test eax, eax
cmovne ebx, ecx
mov r9d, ebx
lea r8, str.SOFTWAREClassesCLSIDAFFAEF68_CDC5_4aad_9D3F_997C0D55927BProgID
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x38]
call fcn.1800affa0
test rax, rax
je 0x18001d908
lea r8, [rsp + 0x30]
lea rdx, [0x180130f68]
lea rcx, [rsp + 0x38]
call fcn.1800af500
mov rbx, rax
test rax, rax
je 0x18001d908
mov eax, dword [rsp + 0x30]
cmp eax, 0x400
jae 0x18001d8fc
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x260]
call fcn.18007e510
jmp 0x18001d900
mov dword [rsp + 0x30], edi
mov rcx, rbx
call fcn.18003081c
lea rcx, [rsp + 0x38]
call fcn.1800af3b0
nop
lea rcx, [rsp + 0x38]
call fcn.1800aff20
mov r11d, dword [rsp + 0x30]
test r11d, r11d
jne 0x18001d9a0
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x660]
call fcn.18007ead0
mov dword [rsp + 0x20], 0x400
lea r9, [rsp + 0x660]
lea r8, [0x18012f4e8]
lea rdx, [0x180130f68]
lea rcx, str.ED30_8AC4_11D5_8930_A730
call qword [sym.imp.KERNEL32.dll_GetProfileStringW]
test eax, eax
je 0x18001d996
cmp word [rsp + 0xe5e], 0
jne 0x18001d996
mov r8d, 0x400
lea rdx, [rsp + 0x260]
lea rcx, [rsp + 0x660]
call fcn.1800ada30
mov r11d, eax
jmp 0x18001d99b
mov r11d, dword [rsp + 0x30]
test r11d, r11d
je 0x18001d9de
cmp r11d, 4
jbe 0x18001d9de
cmp dword [rsp + 0x260], 1
je 0x18001d9de
movzx eax, word [rsp + 0x27c]
lea eax, [rax + rax + 0x22]
test eax, eax
je 0x18001d9de
mov edx, r11d
sub rdx, 4
mov ecx, dword [0x1801aa0b0]
cmp rax, rdx
cmovbe ecx, dword [rsp + 0x268]
mov dword [0x1801aa0b0], ecx
mov rcx, qword [rsp + 0xe60]
xor rcx, rsp
call fcn.18007e1e0
mov rbx, qword [rsp + 0xe80]
add rsp, 0xe70
pop rdi
ret
Function at 0x18001e3b0
Capabilities:
Inspect section memory permissions

Disassembly:
xor edx, edx
cmp ecx, 0x100
ja 0x18001e474
je 0x18001e46c
dec ecx
cmp ecx, 0x7f
ja case.0x18001e3ea.3
lea r8, [0x180000000]
movzx eax, byte [r8 + rcx + 0x1e5b0]
mov ecx, dword [r8 + rax*4 + 0x1e564]
add rcx, r8
jmp rcx
mov edx, 0x40000000
mov eax, edx
ret
mov edx, 0x20000000
mov eax, edx
ret
mov edx, 0x10000000
mov eax, edx
ret
mov edx, 0x8000000
mov eax, edx
ret
mov edx, 0x80000000
mov eax, edx
ret
mov edx, 0x80
mov eax, edx
ret
mov edx, 0x2000
mov eax, edx
ret
mov edx, 8
mov eax, edx
ret
mov edx, 0x100
mov eax, edx
ret
mov edx, 0x800
mov eax, edx
ret
mov edx, 0x400
mov eax, edx
ret
mov edx, SafeArrayAllocData
mov eax, edx
ret
mov edx, 4
mov eax, edx
ret
mov edx, 0x20000
mov eax, edx
ret
mov edx, 0x800000
mov eax, edx
ret
mov edx, 0x40
mov eax, edx
ret
mov edx, 2
mov eax, edx
ret
cmp ecx, 0x400000
ja 0x18001e4f9
je 0x18001e4f1
cmp ecx, 0x10000
ja 0x18001e4cc
je 0x18001e4c4
cmp ecx, 0x800
je case.0x18001e3ea.2
cmp ecx, 0x1000
je case.0x18001e3ea.1
cmp ecx, 0x4000
je 0x18001e4bc
cmp ecx, 0x8000
jne case.0x18001e3ea.3
mov edx, 0x200
mov eax, edx
ret
mov edx, 0x8000
mov eax, edx
ret
mov edx, 0x10000
mov eax, edx
ret
cmp ecx, 0x40000
je 0x18001e4e9
cmp ecx, 0x80000
je case.0x18001e3ea.2
cmp ecx, 0x100000
jne case.0x18001e3ea.3
mov edx, ecx
mov eax, ecx
ret
mov edx, 0x40000
mov eax, edx
ret
mov edx, 0x400000
mov eax, edx
ret
cmp ecx, 0x10000000
ja 0x18001e533
je case.0x18001e3ea.2
cmp ecx, 0x1000000
je case.0x18001e3ea.1
cmp ecx, 0x2000000
je 0x18001e523
cmp ecx, 0x8000000
jne case.0x18001e3ea.3
mov edx, 0x1000000
mov eax, edx
ret
mov edx, 0x4000
mov eax, edx
ret
mov edx, 1
mov eax, edx
ret
cmp ecx, 0x20000000
je case.0x18001e3ea.1
cmp ecx, 0x40000000
je 0x18001e553
cmp ecx, 0x80000000
jne case.0x18001e3ea.3
mov edx, 0x4000000
mov eax, edx
ret
mov edx, 0x2000000
mov eax, edx
ret
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov eax, edx
ret
Function at 0x18001f310
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x58], 0
mov rbx, rcx
je 0x18001f350
cmp dword [0x1801b0450], 0
je 0x18001f345
lea r9, str.deal_module_is_Loaded
lea r8, [0x18012b1a8]
lea rcx, [0x1801afb58]
or edx, 0xffffffff
call fcn.1800b3b40
mov eax, 1
add rsp, 0x30
pop rbx
ret
lea rcx, str.winimhcd64.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbx + 0x50], rax
test rax, rax
jne 0x18001f3a1
cmp dword [0x1801b0450], eax
je 0x18001f50a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.deal_module_load_failed__err__0x_08x_
lea r8, [0x18012b1a8]
lea rcx, [0x1801afb58]
or edx, 0xffffffff
mov dword [rsp + 0x20], eax
call fcn.1800b3b40
xor eax, eax
add rsp, 0x30
pop rbx
ret
lea rdx, str.StartDeal
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x50]
lea rdx, str.StopDeal
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x50]
lea rdx, str.GetDealDlgWnd
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x50]
lea rdx, str.SetAgentInfo
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x50]
lea rdx, str.SetNotRecordContentFlag
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x50]
lea rdx, str.SetUseCtrlAFlag
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x50]
lea rdx, str.GetIMCtrlDataFromCD
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x50]
lea rdx, str.SetNotRecordFlag
mov qword [rbx + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x50]
lea rdx, str.SetPhotoWarningInfo
mov qword [rbx + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [rbx + 8], 0
mov qword [rbx + 0x48], rax
je 0x18001f4d2
cmp qword [rbx + 0x10], 0
je 0x18001f4d2
cmp qword [rbx + 0x18], 0
je 0x18001f4d2
cmp qword [rbx + 0x20], 0
je 0x18001f4d2
cmp qword [rbx + 0x28], 0
je 0x18001f4d2
cmp qword [rbx + 0x30], 0
je 0x18001f4d2
cmp qword [rbx + 0x38], 0
je 0x18001f4d2
cmp qword [rbx + 0x40], 0
je 0x18001f4d2
test rax, rax
je 0x18001f4d2
cmp dword [0x1801b0450], 0
je 0x18001f4c0
lea r9, str.deal_module_load_successful
lea r8, [0x18012b1a8]
lea rcx, [0x1801afb58]
or edx, 0xffffffff
call fcn.1800b3b40
mov dword [rbx + 0x58], 1
mov eax, 1
add rsp, 0x30
pop rbx
ret
cmp dword [0x1801b0450], 0
je 0x18001f502
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.get_deal_function_failed__err__0x_08x_
lea r8, [0x18012b1a8]
lea rcx, [0x1801afb58]
or edx, 0xffffffff
mov dword [rsp + 0x20], eax
call fcn.1800b3b40
mov rcx, rbx
call fcn.18001ef50
xor eax, eax
add rsp, 0x30
pop rbx
ret