joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408e84
nop
mov ecx, 0x3d215a65
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x67fe4778
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
nop
sub eax, reloc.kernel32.dll_GetExitCodeProcess
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x1000124e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x10001258
repz ret
jmp fcn.1000154d

Function at 0x100056cb
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1000199c
xor ebx, ebx
cmp dword [0x1000b628], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x100057a0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x1000570b
xor eax, eax
jmp 0x10005864
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x10005704
push eax
call fcn.10001939
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1000b628], eax
call esi
push eax
call fcn.10001939
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1000b62c], eax
call esi
push eax
call fcn.10001939
mov dword [0x1000b630], eax
lea eax, [ebp - 8]
push eax
call fcn.100016fa
test eax, eax
pop ecx
pop ecx
je 0x1000576e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000303c
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x100057a0
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10001939
cmp eax, ebx
pop ecx
mov dword [0x1000b638], eax
je 0x100057a0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10001939
pop ecx
mov dword [0x1000b634], eax
mov eax, dword [0x1000b634]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x10005819
cmp dword [0x1000b638], esi
je 0x10005819
push eax
call fcn.100019a5
pop ecx
call eax
cmp eax, ebx
je 0x100057e6
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x1000b638]
call fcn.100019a5
pop ecx
call eax
test eax, eax
je 0x100057e6
test byte [ebp - 0x18], 1
jne 0x10005819
lea eax, [ebp - 0xc]
push eax
call fcn.10001731
test eax, eax
pop ecx
je 0x10005801
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000303c
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x10005810
or dword [ebp + 0x10], 0x200000
jmp 0x1000584a
or dword [ebp + 0x10], 0x40000
jmp 0x1000584a
mov eax, dword [0x1000b62c]
cmp eax, esi
je 0x1000584a
push eax
call fcn.100019a5
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1000584a
mov eax, dword [0x1000b630]
cmp eax, esi
je 0x1000584a
push dword [ebp - 4]
push eax
call fcn.100019a5
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x1000b628]
call fcn.100019a5
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x115473c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1154746
pushal
call 0x115474c
pop ebp
sub ebp, 0x10
sub ebp, 0xd5473c
jmp 0x1154762
mov eax, 0xd5473c
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c1
mov edx, 0x1b97f233
xor byte [eax], dl
inc eax
dec ecx
jne 0x1154779
jmp 0x115478c
mov eax, 0xfbab8fe
xor esi, dword [ebx]
xor esi, dword [edx + 0x3333cbf2]
xor esi, dword [eax]
dec byte [ebx + 0x33333334]
mov dword [ebx], ebx
xor esi, dword [ebx]
xor eax, esp
sal dword [eax], 1
sti
mov eax, 0x33333fb2
xor esi, dword [eax]
mul byte [ebx - 0x42]
push edi
pop ss
iretd
Function at 0x5eabc6
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.005eac45
jae 0x5eabd2
xor ecx, ecx
call fcn.005eac45
jae 0x5eabfc
xor eax, eax
call fcn.005eac45
jae 0x5eac0d
mov al, 0x10
call fcn.005eac45
adc al, al
jae 0x5eabee
jne 0x5eac3a
stosb byte es:[edi], al
jmp 0x5eabd3
call fcn.005eac51
dec ecx
loop 0x5eac19
mov eax, ebp
call fcn.005eac4f
jmp 0x5eac3b
lodsb al, byte [esi]
shr eax, 1
je 0x5eac61
adc ecx, 2
mov ebp, eax
jmp 0x5eac3b
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.005eac4f
cmp eax, 0x7d00
jae 0x5eac39
cmp eax, 0x500
jae 0x5eac3a
cmp eax, 0x7f
ja 0x5eac3b
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5eabd3
pop ebp
ret 8
Function at 0xe4a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00e4a1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xe4a07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xe4a06a
add dl, dl
jne 0xe4a089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xe4a0dc
xor eax, eax
add dl, dl
jne 0xe4a096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xe4a17d
add dl, dl
jne 0xe4a0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe4a0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe4a0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe4a0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xe4a0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xe4a075
mov eax, 1
add dl, dl
jne 0xe4a0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe4a0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xe4a0e1
sub eax, ebx
mov ebx, 1
jne 0xe4a128
mov ecx, 1
add dl, dl
jne 0xe4a10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xe4a119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xe4a105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xe4a075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xe4a13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xe4a14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xe4a136
cmp eax, 0x7d00
jae 0xe4a16d
cmp eax, 0x500
jb 0xe4a168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xe4a075
cmp eax, 0x7f
ja 0xe4a170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xe4a075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xe4a19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xe4a075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x404d5c
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0xc]
mov ebx, dword [esi]
cmp ebx, esi
je 0x404dbb
test edi, edi
jne 0x404d9c
mov dword [esp], ebx
call fcn.00402879
test eax, eax
je 0x404d9c
mov ebx, dword [ebx + 0x18]
mov dword [ebp - 0x10], ebx
jmp 0x404dbb
cmp edi, 1
jne 0x404db5
mov dword [esp], ebx
call fcn.00402957
test eax, eax
je 0x404db5
mov ebx, dword [ebx + 0x18]
mov dword [ebp - 0x10], ebx
jmp 0x404dbb
mov ebx, dword [ebx]
cmp ebx, esi
jne 0x404d84
mov eax, dword [ebp - 0x10]
add esp, 0xc
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x180084a7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
call fcn.18006f7b
push eax
lea ecx, [ebp - 8]
call fcn.1800768f
mov edi, dword [ebp - 8]
xor ecx, ecx
inc ecx
mov edx, 0x104
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, edx
or ecx, eax
jge 0x180084f2
push edx
lea ecx, [ebp - 8]
call fcn.1800771c
mov edi, dword [ebp - 8]
and dword [ebp - 0xc], 0
call fcn.18006f7b
push eax
lea ecx, [ebp - 0xc]
call fcn.1800768f
call fcn.1801705c
test al, al
jne 0x18008524
call fcn.18014dfa
test al, al
jne 0x18008524
mov dword [ebp - 0x10], 0x1c
mov esi, 0x181a0510
jmp 0x18008530
mov dword [ebp - 0x10], 0x23
mov esi, str.MicrosoftEdgeUpdateLog
push esi
call fcn.18136fa0
pop ecx
push eax
push esi
lea ecx, [ebp - 0xc]
call fcn.180075cd
push edi
xor eax, eax
push eax
push eax
push dword [ebp - 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x1800857d
push 0x18172bcc
mov ecx, ebx
call fcn.180074da
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18006f52
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.18009eb8
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
jmp 0x180085c2
mov esi, dword [ebp - 0xc]
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
jne 0x1800859a
push 0x18172bcc
mov ecx, ebx
call fcn.180074da
jmp 0x180085aa
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.1800a0ba
add eax, 0x10
mov dword [ebx], eax
lea ecx, [esi - 0x10]
call fcn.18006f52
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.18009eb8
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e2a8
leave
ret 4

Function at 0x18008691
Capabilities:
Print debug messages

Disassembly:
push edi
mov edi, ecx
cmp dword [edi + 0xe0], 0
jne 0x180086dc
push esi
push 0x40
call fcn.1811eb58
push 0x40
mov esi, eax
push 0
push esi
call fcn.18132f50
add esp, 0xc
mov ecx, esi
call fcn.180117b0
mov dword [edi + 0xe0], eax
pop esi
test eax, eax
jne 0x180086dc
push dword [edi + 0x54]
push str.LOG_SYSTEM:___s_:_ERROR___Cannot_create_ETW_log_writer
call fcn.180115b2
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [edi + 0xe0]
test eax, eax
je 0x180086ee
push eax
mov ecx, edi
call fcn.18009098
pop edi
ret
Function at 0x18008d1a
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x18], ecx
test eax, eax
je 0x18008e79
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x18008d54
cmp dword [ebp + 0x10], 2
jg 0x18008e79
cmp dword [edi + 0xf8], 3
jg 0x18008e79
and dword [ebp - 0xc], 0
call fcn.18006f7b
push eax
lea ecx, [ebp - 0xc]
call fcn.1800768f
and dword [ebp - 8], 0
call fcn.18006f7b
push eax
lea ecx, [ebp - 8]
call fcn.1800768f
xor eax, eax
inc eax
mov dword [ebp - 0x10], eax
lea eax, [edi + 0x58]
mov eax, dword [eax]
add dword [edi + 0xe8], 1
push 0
adc dword [edi + 0xec], 0
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x181623e8]
lea ecx, [edi + 0x58]
call esi
test al, al
jne 0x18008ddb
add dword [edi + 0xf0], 1
push 0x32
adc dword [edi + 0xf4], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, 0x14
lea eax, [edi + 0x58]
jle 0x18008d8e
jmp 0x18008e10
push dword [ebp - 0x18]
lea eax, [ebp - 8]
mov ecx, edi
push dword [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.18008c2d
mov eax, dword [edi + 0x58]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x181623e8]
lea ecx, [edi + 0x58]
call esi
cmp dword [ebp - 0x10], 0x14
jle 0x18008e5c
push str.LOG_SYSTEM:_Couldnt_acquire_lock__
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x181a07e0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
inc dword [edi + 0xf8]
cmp dword [edi + 0xf8], 3
jle 0x18008e63
push dword [ebp - 0x18]
lea eax, [ebp - 8]
mov ecx, edi
push str.LOG_SYSTEM:_Couldnt_acquire_lock_after_max_retries__this_process_will_no_longer_log_
push eax
lea eax, [ebp - 0xc]
push eax
push 0xfffffffffffffffe
push 0
push ebx
call fcn.18008c2d
jmp 0x18008e63
and dword [edi + 0xf8], 0
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e2a8
leave
ret 0x14
Function at 0x18009643
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov edi, ecx
lea ebx, [edi + 0x14]
mov ecx, dword [ebx]
call fcn.180110a7
mov eax, dword [ebp - 8]
cmp eax, dword [edi + 4]
jbe 0x18009678
mov ecx, edi
call fcn.180097c3
xor eax, eax
cmp byte [edi + 0xa], al
setne al
xor esi, esi
push esi
push 0x80
lea eax, [eax*2 + 2]
push eax
push esi
push 3
push 0x40000000
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x18], eax
cmp eax, 0xffffffff
jne 0x180096b2
mov dword [edi + 0x18], esi
xor al, al
jmp 0x18009746
mov edx, ebx
mov dword [ebp - 8], esi
lea ecx, [ebp - 8]
call fcn.18016536
mov esi, dword [ebp - 8]
lea edx, [ebp - 9]
xor ebx, ebx
mov ecx, esi
inc ebx
mov byte [ebp - 9], bl
call fcn.18010892
cmp byte [ebp - 9], 0
jne 0x18009713
mov ecx, dword [edi + 0x18]
call fcn.18007d98
test al, al
jne 0x18009713
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1800973c
cmp byte [edi + 0xb], 0
je 0x1800973c
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push 0
push eax
push 2
push 0x18174048
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1800973c
push dword [edi + 0x14]
push dword [edi + 0x1c]
push str.LOG_SYSTEM:___s_:_ERROR___Log_path__s_has_a_reparse_point
call fcn.180115b2
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi + 0x18], 0
xor bl, bl
lea ecx, [esi - 0x10]
call fcn.18006f52
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e2a8
leave
ret

Function at 0x18009755
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 0x80
push 5
push ebx
push 3
push 0x40000000
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [esi + 0x18], 0xffffffff
mov edi, eax
jne 0x18009790
xor al, al
jmp 0x180097b4
cmp byte [esi + 0xb], bl
je 0x180097ab
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push 2
push 0x18174048
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e2a8
leave
ret
Function at 0x1800984b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x18
mov dword [ebp - 0x7c], ecx
lea edi, [ebp - 0x68]
pop ecx
mov esi, str.SYSTEMCurrentControlSetControlSession_Manager
lea eax, [ebp - 0x78]
rep movsd dword es:[edi], dword [esi]
push eax
push 0x20019
xor ebx, ebx
lea eax, [ebp - 0x68]
push ebx
push eax
push 0x80000002
movsw word es:[edi], word [esi]
mov dword [ebp - 0x78], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1800997b
push 7
pop esi
lea eax, [ebp - 0x74]
mov dword [ebp - 0x74], ebx
push eax
push ebx
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], esi
push eax
push ebx
mov edi, str.PendingFileRenameOperations
push edi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800997b
cmp dword [ebp - 0x6c], esi
jne 0x1800997b
push dword [ebp - 0x74]
call fcn.1811eb88
push dword [ebp - 0x74]
mov esi, eax
push ebx
push esi
mov dword [ebp - 0x80], esi
call fcn.18132f50
add esp, 0x10
lea eax, [ebp - 0x74]
push eax
push esi
push ebx
push ebx
push edi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18009970
mov edi, dword [ebp - 0x74]
shr edi, 1
lea eax, [edi - 2]
cmp eax, 0xffffd
ja 0x18009970
cmp word [esi + edi*2 - 4], bx
jne 0x18009970
cmp word [esi + edi*2 - 2], bx
jne 0x18009970
mov eax, dword [ebp - 0x7c]
lea ecx, [ebp - 0x70]
add eax, 0x14
mov dword [ebp - 0x70], ebx
push eax
mov edx, 0x181a0c64
call fcn.18009c32
mov esi, dword [ebp - 0x70]
pop ecx
test edi, edi
je 0x1800995c
mov eax, dword [ebp - 0x80]
push esi
lea eax, [eax + ebx*2]
push eax
mov dword [ebp - 0x7c], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1800995f
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc ebx
add ebx, eax
cmp ebx, edi
jb 0x18009937
or ebx, 0xffffffff
cmp ebx, 0xffffffff
lea ecx, [esi - 0x10]
setne bl
call fcn.18006f52
mov esi, dword [ebp - 0x80]
push esi
call fcn.1811eb53
pop ecx
mov al, bl
jmp 0x1800997d
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e2a8
leave
ret

Function at 0x18009b3e
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x18009b4b
xor al, al
pop esi
ret
push 0x1f4
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x18009b84
cmp eax, 0x80
je 0x18009b84
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.180115b2
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [esi + 9], 0
jmp 0x18009b47
mov al, 1
pop esi
ret