joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42cc5f
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, 0xffffffff
jne 0x42ccb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
push str.ChecksumFileByMem_CreateFile_error:_d__path:_ws
push 0x6c88e0
call fcn.0048e513
add esp, 0x10
jmp 0x42cd78
mov eax, dword [ebp - 4]
push edi
push dword [eax + 4]
push edi
push 2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x10], eax
test esi, esi
jne 0x42cce9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push ebx
call esi
push eax
push str.ChecksumFileByMem_CreateFileMapping_error:_d__path:_ws
push 0x6c88e0
call fcn.0048e513
add esp, 0x10
jmp 0x42cd63
mov esi, dword [ebp - 4]
push dword [esi + 4]
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x42cd14
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push ebx
call esi
push eax
push str.ChecksumFileByMem_MapViewOfFile_error:_d__path:_ws
jmp 0x42ccda
mov edx, eax
mov dword [ebp + 8], eax
mov eax, dword [esi + 8]
mov esi, dword [eax]
cmp esi, eax
je 0x42cd57
mov ecx, dword [esi + 8]
mov dword [ebp - 8], ecx
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
push eax
push dword [ecx]
push edx
call fcn.005e1fba
add esp, 0xc
test eax, eax
jne 0x42cd83
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov esi, dword [esi]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
add edx, eax
mov eax, dword [ebp - 4]
mov dword [ebp + 8], edx
cmp esi, dword [eax + 8]
jne 0x42cd22
xor edi, edi
inc edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x42cd73
push eax
call esi
push dword [ebp - 0x14]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
push str.ChecksumFileByMem_memcmp_return_not_same__path:_ws
push 0x6c88e0
call fcn.0048e513
add esp, 0xc
jmp 0x42cd5a
Function at 0x42cdc6
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x60d0c5
call fcn.0060c3a8
push ecx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x10]
push edi
call fcn.00406173
xor esi, esi
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42ce3c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42ce3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x42ce3c
lea ecx, [ebp - 0x10]
call fcn.0040b418
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], esi
je 0x42ce3f
mov ecx, eax
call fcn.0042cdc6
test eax, eax
je 0x42ce3f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42ce3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x42ce3f
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00404ea9
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x42cf07
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword fs:[0x2c]
and dword [ebp - 8], 0
push esi
mov esi, ecx
mov edx, dword [eax]
mov eax, dword [0x6c8c60]
push edi
mov dword [ebp - 4], esi
mov edi, 0x6c8c64
cmp eax, dword [edx + 4]
jle 0x42cf6b
push ebx
mov ebx, 0x6c8c60
push ebx
call fcn.0049a15e
cmp dword [0x6c8c60], 0xffffffff
pop ecx
jne 0x42cf6a
call fcn.00404f47
push eax
mov ecx, edi
call fcn.004065d8
push 0x613871
call fcn.0049a4b5
push ebx
call fcn.0049a11f
pop ecx
pop ecx
pop ebx
mov eax, dword [0x6c8c64]
cmp dword [eax - 0xc], 0
jne 0x42cfb2
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x42cfad
lea eax, [ebp - 0x210]
mov ecx, edi
push eax
call fcn.004060f8
mov ecx, edi
call fcn.0042cd98
push str.drivers_
mov ecx, edi
call fcn.004062d3
mov eax, dword [0x6c8c64]
add eax, 0xfffffff0
push eax
call fcn.004067cf
add eax, 0x10
pop ecx
mov dword [esi], eax
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42e405
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x60f88f
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x30]
mov dword [esi], vtable.CFilterCoder.10.0
mov dword [esi + 4], vtable.CFilterCoder.9.0
mov dword [esi + 8], vtable.CFilterCoder.8.0
mov dword [esi + 0xc], vtable.CFilterCoder.7.0
mov dword [esi + 0x10], vtable.CFilterCoder.6.0
mov dword [esi + 0x14], vtable.CFilterCoder.5.0
mov dword [esi + 0x18], vtable.CFilterCoder.4.0
mov dword [esi + 0x1c], vtable.CFilterCoder.3.0
mov dword [esi + 0x20], vtable.CFilterCoder.2.0
mov dword [esi + 0x24], vtable.CFilterCoder.1.0
mov dword [esi + 0x28], vtable.CFilterCoder.0
call fcn.00432267
and dword [ebp - 4], 0
mov ecx, dword [esi + 0x74]
test ecx, ecx
je 0x42e485
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 1
mov ecx, dword [esi + 0x70]
test ecx, ecx
je 0x42e499
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 2
mov ecx, dword [esi + 0x6c]
test ecx, ecx
je 0x42e4ad
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 3
mov ecx, dword [esi + 0x68]
test ecx, ecx
je 0x42e4c1
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 4
mov ecx, dword [esi + 0x64]
test ecx, ecx
je 0x42e4d5
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 5
mov ecx, dword [esi + 0x60]
test ecx, ecx
je 0x42e4e9
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 6
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x42e4fd
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 7
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x42e511
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42fb5b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 4], ebx
jne 0x42fb76
lea ecx, [esi + 4]
call fcn.004383d8
test eax, eax
jne 0x42fbde
push edi
lea edi, [esi + 8]
cmp dword [edi], ebx
jne 0x42fb89
mov ecx, edi
call fcn.004383d8
test eax, eax
jne 0x42fbdd
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x42fb9b
call fcn.00438368
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x42fbac
call fcn.00438368
mov byte [esi + 0x10], bl
cmp dword [esi + 0xc], ebx
je 0x42fbb8
xor eax, eax
jmp 0x42fbdd
lea eax, [ebp - 4]
push eax
push ebx
push esi
push 0x42fb1b
push ebx
push ebx
call fcn.005f3fd0
add esp, 0x18
mov dword [esi + 0xc], eax
test eax, eax
jne 0x42fbdb
call fcn.00438368
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x431e14
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, ecx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x431e28
xor al, al
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
pop esi
setne al
ret
Function at 0x433388
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, edx
cmp dword [esi], ebx
jne 0x433435
lea ecx, [esi + 0x30]
call fcn.0043843f
test eax, eax
je 0x4333b1
push 0xc
pop eax
jmp 0x433437
lea ecx, [esi + 0x14]
mov dword [esi + 0x28], 1
call fcn.004383d8
test eax, eax
jne 0x4333a9
lea ecx, [esi + 0x18]
call fcn.004383d8
test eax, eax
jne 0x4333a9
lea ecx, [esi + 0x1c]
call fcn.004383d8
test eax, eax
jne 0x4333a9
push dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
lea ecx, [esi + 0x20]
call fcn.004383fa
pop ecx
test eax, eax
jne 0x4333a9
push dword [ebp + 0xc]
lea ecx, [esi + 0x24]
xor edx, edx
call fcn.004383fa
pop ecx
test eax, eax
jne 0x4333a9
lea eax, [ebp - 4]
mov dword [esi + 4], 1
push eax
push ebx
push dword [ebp + 8]
push edi
push ebx
push ebx
call fcn.005f3fd0
add esp, 0x18
mov dword [esi + 0x10], eax
test eax, eax
jne 0x43342f
call fcn.00438368
test eax, eax
jne 0x4333a9
mov dword [esi], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x435ab4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, edx
xor edi, edi
mov ebx, ecx
or esi, 0x100
mov ecx, esi
mov eax, esi
shr ecx, 7
add esi, esi
shr eax, 8
and ecx, 1
neg ecx
sar ecx, 4
and ecx, 0x7f
movzx edx, word [ebx + eax*2]
mov eax, dword [ebp + 8]
shr edx, 4
xor edx, ecx
add edi, dword [eax + edx*4]
cmp esi, 0x10000
jb 0x435ac6
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x435afb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, 0x100
mov dword [ebp - 4], ecx
xor edi, edi
or edx, esi
add ebx, ebx
mov ecx, esi
and ecx, ebx
mov eax, edx
add ecx, esi
shr eax, 8
add eax, ecx
mov ecx, dword [ebp - 4]
movzx ecx, word [ecx + eax*2]
mov eax, edx
shr eax, 7
add edx, edx
and eax, 1
shr ecx, 4
neg eax
sar eax, 4
and eax, 0x7f
xor ecx, eax
mov eax, dword [ebp + 0xc]
add edi, dword [eax + ecx*4]
mov ecx, edx
xor ecx, ebx
not ecx
and esi, ecx
cmp edx, 0x10000
jb 0x435b11
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x435be9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
bts esi, edx
mov ebx, ecx
cmp esi, 1
je 0x435c24
push edi
mov edi, dword [ebp + 0xc]
mov edx, esi
and esi, 1
shr edx, 1
neg esi
sar esi, 4
and esi, 0x7f
movzx ecx, word [ebx + edx*2]
shr ecx, 4
xor ecx, esi
mov esi, edx
add eax, dword [edi + ecx*4]
cmp esi, 1
jne 0x435c01
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x435c28
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor esi, esi
inc edi
test ebx, ebx
je 0x435c6f
mov eax, dword [ebp + 8]
mov edx, eax
movzx ecx, word [ecx + edi*2]
and edx, 1
shr eax, 1
add edi, edi
mov dword [ebp + 8], eax
or edi, edx
mov eax, edx
shr ecx, 4
neg eax
sar eax, 4
and eax, 0x7f
xor ecx, eax
mov eax, dword [ebp + 0xc]
add esi, dword [eax + ecx*4]
mov ecx, dword [ebp - 4]
sub ebx, 1
jne 0x435c3d
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4376bc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
xor eax, eax
mov esi, ecx
push edi
push 8
mov ebx, eax
lea ecx, [esi + 0x19c]
mov dword [esi + 0x3bcd4], eax
mov dword [esi + 0x3bcd0], eax
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x4c], eax
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x58], eax
lea eax, [ecx + 0x70]
pop edi
mov dword [ecx + 0x2c], 0x20
mov dword [ecx + 0x54], 1
mov dword [ecx + 0x48], 4
mov dword [ebp - 4], eax
mov dword [ebp - 8], edi
mov edx, ebx
mov ecx, edi
mov eax, edx
shr edx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor edx, eax
sub ecx, 1
jne 0x43770e
mov eax, dword [ebp - 4]
inc ebx
mov dword [eax], edx
add eax, 4
mov dword [ebp - 4], eax
cmp ebx, 0x100
jb 0x43770a
xor ebx, ebx
lea ecx, [esi + 0x19c]
mov dword [esi + 0x118], ebx
mov dword [esi + 0x148], ebx
mov dword [esi + 0x170], ebx
mov dword [esi + 0x174], ebx
mov dword [esi + 0x158], ebx
mov dword [esi + 0x15c], ebx
mov dword [esi + 0x160], ebx
mov dword [esi + 0x164], ebx
mov dword [esi + 0x168], ebx
mov dword [esi + 0x16c], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x198], ecx
lea ecx, [ebp - 0x38]
call fcn.004356fd
mov edx, ecx
mov ecx, esi
call fcn.004357fa
push 2
pop edi
mov word [esi + 0x306a0], 0x100
mov ebx, edi
mov ecx, ebx
xor edx, edx
sar ecx, 1
inc edx
dec ecx
shl edx, cl
mov dword [ebp - 4], edx
test edx, edx
je 0x4377e3
push edx
lea eax, [esi + 0x306a0]
add eax, edi
push ebx
push eax
call fcn.005e1e60
add esp, 0xc
add edi, dword [ebp - 4]
inc ebx
cmp ebx, 0x16
jl 0x4377bc
mov edi, dword [ebp - 8]
push 4
mov ecx, edi
xor edx, edx
pop ebx
imul ecx, ecx
mov eax, 0x10000
add edx, edx
jmp 0x437802
shr ecx, 1
inc edx
cmp ecx, eax
jae 0x4377ff
sub ebx, 1
jne 0x4377f3
mov eax, edi
mov ecx, 0xa1
shr eax, 4
sub ecx, edx
add edi, 0x10
mov dword [esi + eax*4 + 0x30ea0], ecx
cmp edi, 0x800
jb 0x4377ec
and dword [esi + 0x325ac], ebx
and dword [esi + 0x3bd14], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43b11c
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x60fc44
call fcn.0060c3a8
push ecx
push ecx
and dword [ebp - 0x10], 0
mov eax, 0x20e2
push ebx
mov ebx, ecx
push esi
push edi
push 8
mov word [ebx + 0x30], ax
lea ecx, [ebx + 4]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.00416b09
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.00416e75
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.00416e75
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.00416c9b
call fcn.00404f47
push eax
lea ecx, [ebp + 0xc]
call fcn.004065d8
push dword [ebp + 0x18]
and dword [ebp - 4], 0
lea eax, [ebp + 0xc]
push 0x6950ec
push eax
call fcn.00406cc8
mov esi, dword [ebp + 0xc]
add esp, 0xc
mov ecx, ebx
push esi
call fcn.00416e75
push 1
lea eax, [ebp + 8]
mov byte [ebp + 8], 0x64
push eax
lea ecx, [ebx + 4]
call fcn.00416b09
push dword [ebp + 0x1c]
mov ecx, ebx
call fcn.00416c9b
push dword [ebp + 0x20]
mov ecx, ebx
call fcn.00416cb0
mov ecx, ebx
call fcn.00416e4b
lea ecx, [esi - 0x10]
call fcn.00404ea9
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x43b9f7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
cmp dword [ebp + 8], 0
push edi
mov edi, ecx
je 0x43baea
cmp dword [ebp + 0xc], 0
je 0x43baea
push esi
lea eax, [ebp + 0xc]
xor esi, esi
push eax
push dword [ebp + 0x10]
mov dword [ebp + 0xc], esi
push esi
push dword [edi + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43bad6
push 0x20a
lea eax, [ebp - 0x210]
mov dword [ebp + 8], esi
push esi
push eax
call fcn.005e1e60
add esp, 0xc
mov dword [ebp - 4], 0x104
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp + 8]
push eax
push esi
push dword [edi + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43bad6
mov eax, dword [edi + 0x18]
cmp eax, dword [ebp + 8]
jne 0x43bad6
cmp eax, 1
je 0x43ba8a
cmp eax, 2
jne 0x43bab0
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp + 0x10]
call fcn.00406173
mov eax, dword [ebp + 0x10]
lea ecx, [eax - 0x10]
cmp dword [eax - 0xc], esi
jne 0x43baab
call fcn.00404ea9
jmp 0x43bad6
call fcn.00404ea9
cmp dword [edi + 0x18], 4
jne 0x43bad3
push 4
lea eax, [ebp - 0x210]
mov dword [ebp + 0x10], esi
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.005e0960
add esp, 0xc
cmp dword [ebp + 0x10], esi
jbe 0x43bad6
xor esi, esi
inc esi
cmp dword [ebp + 0xc], 0
je 0x43bae5
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
jmp 0x43baec
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43bba6
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
mov eax, 0x60fcac
call fcn.0060c3a8
sub esp, 0x218
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
jne 0x43bbc6
xor eax, eax
jmp 0x43bcc6
call fcn.0043bb7d
test eax, eax
je 0x43bbbf
push ebx
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x10], ebx
push ebx
push dword [esi + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43bcb4
push edi
mov edi, dword [esi + 0x10]
cmp dword [edi - 0xc], ebx
jne 0x43bc00
inc ebx
jmp 0x43bcb3
push 0x208
lea eax, [ebp - 0x224]
push ebx
push eax
call fcn.005e1e60
add esp, 0xc
mov dword [ebp - 0x14], 0x208
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43bcb3
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp + 8]
call fcn.00406173
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.0046f884
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.00470738
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00406123
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
lea eax, [esi + 0x14]
push eax
lea edx, [ebp + 8]
lea ecx, [ebp + 0xc]
call fcn.0040b545
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
test eax, eax
je 0x43bca3
xor ebx, ebx
inc ebx
call fcn.00404ea9
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
pop edi
cmp dword [ebp - 0x10], 0
je 0x43bcc3
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x43be76
Capabilities:
Query environment variable

Disassembly:
push 0x10
push 0x6afaf0
call fcn.0060c3d0
xor esi, esi
mov dword [ebp - 0x1c], esi
cmp dword [ebp + 8], esi
je 0x43bf1e
cmp dword [ebp + 0xc], esi
je 0x43bf1e
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
cmp edi, 1
jb 0x43bf1e
cmp edi, 0x103
ja 0x43bf1e
mov dword [ebp - 4], esi
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00499fd3
pop ecx
mov ecx, eax
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x43bf1a
lea eax, [edi + edi]
push eax
push esi
push ecx
call fcn.005e1e60
add esp, 0xc
push edi
mov edi, dword [ebp - 0x1c]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x43bf1a
mov ecx, 0x103
cmp eax, ecx
ja 0x43bf1a
push eax
push edi
push ecx
push dword [ebp + 0xc]
call fcn.005f424d
add esp, 0x10
inc esi
jmp 0x43bf17
mov dword [ebp - 0x20], esi
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 0
je 0x43bf2d
push dword [ebp - 0x1c]
call fcn.00499fce
pop ecx
mov eax, esi
call fcn.0060c40c
ret 0xc
Function at 0x43bf45
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x60fd54
call fcn.0060c3a8
sub esp, 0x18
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
push dword [esi + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43c08a
push edi
lea edi, [esi + 0xc]
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
jne 0x43bf6f
inc ebx
jmp 0x43c089
mov eax, dword [esi + 8]
sub eax, 0x10
push eax
call fcn.004067cf
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
push 1
lea eax, [ebp - 0x24]
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp - 0x14]
call fcn.00405d7f
mov byte [ebp - 4], 1
mov ecx, eax
push 0x693b58
mov dword [ebp - 0x18], 1
call fcn.004068fd
test eax, eax
je 0x43bfdd
push 1
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
call fcn.00405d7f
mov dword [ebp - 4], 2
mov ecx, eax
push 0x6953b0
mov dword [ebp - 0x18], 3
call fcn.004068fd
mov byte [ebp - 0xd], bl
test eax, eax
jne 0x43bfe1
mov byte [ebp - 0xd], 1
test byte [ebp - 0x18], 2
je 0x43bff2
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
cmp byte [ebp - 0xd], 0
je 0x43c035
mov eax, dword [esi - 0xc]
lea ecx, [ebp - 0x14]
dec eax
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00405d36
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00406123
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov esi, dword [ebp - 0x14]
push 0x693b58
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x24]
call fcn.0040aec1
push edi
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.0040b545
pop ecx
pop ecx
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
push dword [ebp - 0x1c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x1c]
test eax, eax
jne 0x43c076
lea ecx, [ecx - 0x10]
jmp 0x43c07c
xor ebx, ebx
inc ebx
add ecx, 0xfffffff0
call fcn.00404ea9
lea ecx, [esi - 0x10]
call fcn.00404ea9
pop edi
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x43ea2a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 0x10]
xor eax, eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov dword [ebp - 0xc], eax
push 1
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
sub edx, dword [edi + 0x14]
sub esi, dword [edi + 0x10]
mov eax, dword [edi]
push edx
push esi
mov dword [ebp + 0xc], esi
mov dword [ebp + 0x10], edx
call dword [eax + 0x8c]
mov ebx, dword [edi + 0x174]
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x43eb46
mov ecx, ebx
call fcn.0046b859
mov esi, eax
test esi, esi
je 0x43ead3
mov eax, dword [esi + 0xc]
push 2
push 0
push esi
mov dword [ebp - 0xc], eax
call fcn.0043e676
movzx ecx, word [ebp + 0x10]
movzx eax, word [ebp + 0xc]
shl ecx, 0x10
or ecx, eax
push ecx
push dword [ebp + 8]
mov ecx, esi
push 0x202
call fcn.0046b8a2
mov eax, dword [ebp - 0x10]
cmp dword [edi + 0x174], eax
jne 0x43eaf5
mov eax, dword [esi + 0x3c]
xor ecx, ecx
test eax, eax
je 0x43eae8
cmp word [eax], cx
je 0x43eae8
push 1
push ecx
push ecx
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 4]
mov ecx, eax
xor edx, edx
mov dword [edi + 0x174], edx
test eax, eax
je 0x43eb25
push 0x67
jmp 0x43eb3e
cmp dword [esi + 0xc], ecx
je 0x43ead3
mov ecx, dword [ebp - 8]
xor eax, eax
inc eax
jmp 0x43ead8
push 1
xor eax, eax
push eax
push esi
call fcn.0043e676
movzx ecx, word [ebp + 0x10]
movzx eax, word [ebp + 0xc]
shl ecx, 0x10
or ecx, eax
push ecx
push dword [ebp + 8]
mov ecx, esi
push 0x2a3
call fcn.0046b8a2
mov eax, dword [ebp - 4]
xor ecx, ecx
inc ecx
jmp 0x43ead8
test ecx, ecx
je 0x43eb46
cmp dword [ebp - 0xc], edx
je 0x43eb46
cmp ebx, dword [edi + 0x170]
jne 0x43eb3c
mov dword [edi + 0x170], edx
push 0x6a
push esi
mov ecx, edi
call fcn.0043e6a5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x44078c
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x60d26f
call fcn.0060c3a8
sub esp, 0x10
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00406173
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push str.__02d__02d__02d__03d__n
push eax
call fcn.004090e5
add esp, 0x18
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4