joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440500
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
cmp dword [eax - 0xc], 0
jne 0x440516
mov eax, dword [esi + 0x24]
cmp dword [eax - 0xc], 0
je 0x44057a
cmp byte [esi + 0x50], 0
jne 0x44057a
mov eax, dword [esi + 4]
lea ecx, [esi + 4]
mov edx, dword [eax + 0x1c]
lea eax, [esp + 4]
push eax
lea eax, [esi + 0x58]
push eax
push 5
call edx
test al, al
je 0x44053d
cmp dword [esp + 4], 0
je 0x44057a
call fcn.00420680
test al, al
je 0x440551
mov ecx, esi
pop esi
add esp, 4
jmp fcn.00441ce0
push edi
push 0
push 0
push esi
push 0x442ec0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, dword [esi + 0x64]
je 0x440579
mov edx, dword [esi + 0x60]
lea ecx, [esi + 0x60]
call dword [edx + 4]
mov dword [esi + 0x64], edi
pop edi
pop esi
pop ecx
ret

Function at 0x4415c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c83fe
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x507074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
xor ebx, ebx
mov dword [ebp - 0x10], 0
xor edi, edi
movzx eax, word [ebp + 0xc]
mov esi, dword [0x508e2c]
push 0xa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x441638
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x441638
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x441638
push dword [ebp + 0xc]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
call fcn.004043d0
test eax, eax
je 0x44172e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call fcn.004043d0
mov ecx, eax
test ecx, ecx
je 0x44172e
test ebx, ebx
jne 0x44167d
test edi, edi
jne 0x44173d
mov eax, dword [ecx]
push 1
push edi
call dword [eax]
test eax, eax
je 0x441738
lea esi, [eax + 0x10]
mov dword [ebp + 0xc], esi
test edi, edi
js 0x44173d
cmp edi, dword [esi - 8]
jg 0x44173d
mov dword [esi - 0xc], edi
mov byte [esi + edi], 0
test edi, edi
je 0x4416de
test esi, esi
je 0x4416ce
push edi
test ebx, ebx
je 0x4416c3
push ebx
push esi
call fcn.00498090
add esp, 0xc
jmp 0x4416de
push 0
push esi
call fcn.00498610
add esp, 0xc
call fcn.0049ba6d
mov dword [eax], 0x16
call fcn.0049b96f
mov dword [ebp - 4], 3
mov ecx, esi
mov ebx, dword [ebp + 8]
mov edx, ebx
push 0xfde9
call fcn.0040d740
add esp, 4
mov dword [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x441718
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00402570
call fcn.00402590
push 0x80070057
call fcn.00402570
int3
Function at 0x4450e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c90f6
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x507074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea eax, [edi + 8]
mov dword [edi + 4], 0
mov dword [ebp - 0x14], eax
mov dword [eax + 0xc], 0
mov dword [ebp - 4], 1
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [ebp - 4], 4
lea esi, [edi + 0x30]
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x20], 0x4e1618
mov dword [edi + 0x24], 0x4e5178
mov dword [edi], 0x4e51ac
mov dword [edi + 0x20], 0x4e5180
mov dword [edi + 0x24], 0x4e517c
mov dword [edi + 0x2c], 0
mov dword [ebp - 0x18], esi
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.004025a0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
mov dword [edi + 0x34], eax
mov eax, dword [ebp + 0x10]
mov byte [edi + 0x38], 0
mov dword [edi + 0x40], eax
mov al, byte [ebp + 0x14]
mov dword [edi + 0x44], 2
mov byte [edi + 0x48], al
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x446ce0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c97bd
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x507074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x18], 0x4df930
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
cmp edi, 0xffffffff
jne 0x446d44
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x446d66
push 0
lea eax, [ebp - 0x10]
push eax
push 4
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x446d64
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x446d66
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], 0x4df930
test edi, edi
je 0x446d86
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x446da0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9805
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x507074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
call fcn.004043d0
mov ecx, eax
test ecx, ecx
je 0x446ee3
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 1
mov ebx, 0x100
push 0x200
call fcn.00496a03
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
mov eax, dword [ebp + 0xc]
push ebx
push edi
push esi
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, 0xff
jne 0x446e7e
add ebx, ebx
mov byte [ebp - 4], 1
push edi
call fcn.004969fe
xor ecx, ecx
mov dword [ebp - 0x10], 0
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00496a03
mov edi, eax
add esp, 8
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
mov eax, dword [ebp + 0xc]
push ebx
push edi
push esi
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebx - 1]
cmp eax, ecx
je 0x446e27
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x446e83
mov ecx, dword [ebp + 0x10]
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.004035e0
mov byte [ebp - 4], 1
push edi
call fcn.004969fe
add esp, 4
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x446ecf
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00402570
int3
Function at 0x450460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb065
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x507074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
movzx eax, word [ebp + 0xc]
xor edi, edi
mov esi, dword [0x508e2c]
push 0xa
push eax
push esi
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4504ce
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4504ce
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4504ce
push ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
test edi, edi
je 0x4505ee
mov esi, dword [sym.imp.USER32.dll_GetDC]
push 0
call esi
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 0
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x5a
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
test eax, eax
jle 0x45055d
imul eax, eax, 0x64
cmp eax, 0x25e0
jl 0x45055d
cmp eax, 0x38a0
jge 0x450518
mov esi, 0x20
jmp 0x450562
push 0
call esi
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 1
push 0x5a
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x60
je 0x45055d
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x4e8318]
divsd xmm0, qword [0x4e8320]
addsd xmm0, qword [0x4e8300]
cvttsd2si esi, xmm0
jmp 0x450562
mov esi, 0x18
push 0
push esi
push esi
push 1
push edi
call dword [sym.imp.USER32.dll_LookupIconIdFromDirectoryEx]
test eax, eax
je 0x4505ee
push 0
push esi
push esi
push 0x30000
push 1
push dword [ebp - 0x10]
add eax, edi
push eax
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov edi, eax
test edi, edi
je 0x4505ee
mov eax, dword [ebp - 0x14]
push dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push 1
mov esi, eax
push 0xf7
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
call fcn.0040a060
mov dword [ebp - 4], 2
push dword [ebp + 0xc]
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4505ee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x450b60
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esp + 0x18], 0
push ebx
push ebp
push esi
push edi
mov esi, ecx
jne 0x450d5d
mov ebx, dword [esp + 0x18]
cmp ebx, 0x110
jne 0x450c14
sub esp, 8
mov dword [esi + 0x104], 1
call fcn.00451850
mov ebx, dword [esp + 0x24]
mov dword [ebx], eax
cmp dword [esi + 0x104], 0
jne 0x450d4b
cmp byte [esi + 0x75], 0
lea edi, [esi + 0x70]
mov ebp, dword [edi]
mov dword [edi], 1
je 0x450bc7
push 1
push str.IsExterior
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetPropW]
cmp byte [esi + 0x74], 0
je 0x450be9
push 0xffffffffffffffec
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0x2000000
push eax
push 0xffffffffffffffec
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
sub esp, 0xc
lea ecx, [esi + 0x50]
call fcn.004526b0
mov dword [edi], 0
mov dword [ebx], 0
cmp dword [edi], 0
jne 0x450d49
mov dword [edi], ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 0x18
mov eax, dword [esi + 0x70]
lea edi, [esi + 0x70]
mov dword [esp + 0x28], eax
cmp ebx, 2
jne 0x450c5f
push str.IsExterior
push dword [esi + 4]
mov dword [edi], 1
call dword [sym.imp.USER32.dll_RemovePropW]
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
mov dword [edi], 0
mov dword [eax], 0
cmp dword [edi], 0
jne 0x450d49
mov dword [edi], ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 0x18
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
cmp ebx, 0x4e
jne 0x450cbf
cmp dword [ebp + 8], 0xffffff38
jne 0x450c92
mov eax, dword [esi + 4]
mov dword [ebp + 0xc], eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetParent]
push ebp
push dword [esp + 0x20]
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 1
push eax
push ebp
sub esp, 8
mov ecx, esi
call fcn.00452520
cmp dword [esp + 0x18], 0
mov ecx, dword [esp + 0x24]
mov dword [ecx], eax
jne 0x450d45
mov edx, dword [esp + 0x1c]
lea ecx, [esi + 0x50]
cmp ebx, 5
jne 0x450d1e
xor eax, eax
test ecx, ecx
cmove esi, eax
cmp byte [ecx + 0x1c], al
je 0x450d04
push 0xe801
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edx, dword [esp + 0x1c]
cmp edx, 2
jne 0x450cf5
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x450d09
test edx, edx
jne 0x450d04
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x450d09
cmp edx, 1
je 0x450d3b
mov eax, ebp
lea ecx, [esi + 0x50]
shr eax, 0x10
cwde
push eax
movsx eax, bp
push eax
call fcn.0044ead0
jmp 0x450d3b
cmp ebx, 0x24
jne 0x450d57
cmp dword [ecx + 0x14], 0xffffffff
je 0x450d3b
cmp dword [ecx + 0x18], 0xffffffff
je 0x450d3b
mov eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x18]
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], ecx
mov eax, dword [esp + 0x24]
mov dword [eax], 0
mov ebp, dword [esp + 0x28]
mov dword [edi], ebp
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0x18
mov ebp, dword [esp + 0x28]
mov dword [edi], ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x18
Function at 0x456660
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cc086
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x507074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea edi, [esi + 0xc]
mov byte [esi], 1
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 0x14], edi
call fcn.004043d0
test eax, eax
je 0x456734
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 1
lea edi, [esi + 0x18]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [ebp - 0x14], edi
call fcn.004043d0
test eax, eax
je 0x456734
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 3
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402570
int3

Function at 0x456890
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [esi + 0x14]
add eax, 4
push eax
push 0
push esi
push 0x456ea0
push 0
push 0
call edi
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x20], eax
mov ecx, dword [ecx + 4]
mov dword [esi + 0x24], ecx
test eax, eax
je 0x4568ec
nop
mov esi, dword [esi + 4]
test esi, esi
je 0x4568f4
mov eax, dword [esi + 0x14]
add eax, 4
push eax
push 0
push esi
push 0x456ea0
push 0
push 0
call edi
mov dword [esi + 0x20], eax
mov ecx, dword [esi + 0x14]
mov ecx, dword [ecx + 4]
mov dword [esi + 0x24], ecx
test eax, eax
jne 0x4568c0
pop edi
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
xor eax, eax
pop esi
ret
Function at 0x459490
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ccdcd
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x507074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebp - 0x14]
mov byte [ebp - 0xd], 0
push eax
call fcn.00459e70
mov dword [ebp - 4], 0
push dword [ebp - 0x14]
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebx + 0x1c], eax
test eax, eax
jne 0x459514
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45950f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea esi, [ebx + 0x20]
jmp 0x45955a
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebx + 0x20], eax
lea esi, [ebx + 0x20]
test eax, eax
jne 0x459562
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45955a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x18], 0
jne 0x4595c2
jmp 0x459586
mov dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x459586
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
push ecx
add eax, 4
push eax
lea eax, [ebx + 8]
push eax
call fcn.0045a160
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x4595ab
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x1c], 0
mov eax, dword [esi]
test eax, eax
je 0x4595be
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi], 0
mov byte [ebp - 0xd], 1
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.00459f10
mov dword [ebp - 4], 4
push dword [ebp - 0x20]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
mov dword [ebp - 0x1c], 0x4df930
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 5
test esi, esi
je 0x4595fc
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov byte [ebp - 4], 4
mov dword [ebp - 0x1c], 0x4df930
test esi, esi
je 0x459619
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x459638
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45cc40
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd92d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
mov eax, dword [0x507074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
push SysReAllocString
call fcn.00408720
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
push 0
push 0
push 0
push 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x14]
mov dword [ebp + 8], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x45ccc6
cmp dword [ebp + 8], eax
jne 0x45ccc2
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
sete bl
jmp 0x45ccc8
mov bl, 1
jmp 0x45ccc8
xor bl, bl
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x45ccdd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x45cd0c
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x45f270
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce29d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x507074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0x160]
sub ecx, 0x10
call fcn.004025a0
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
push 5
push str..part
call fcn.00402420
lea ecx, [ebp - 0x10]
call fcn.0040e940
test al, al
je 0x45f38c
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], 0x4df930
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
cmp esi, 0xffffffff
jne 0x45f31a
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x18], 0x4df930
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x45f33b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 0x4df930
test esi, esi
je 0x45f342
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
cmp ebx, dword [edi + 0x80]
jb 0x45f351
mov ecx, edi
call fcn.004632c0
mov esi, 1
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x45f378
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0x160]
call fcn.0040e940
test al, al
je 0x45f351
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [edi + 0x160]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], 0x4df930
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 3
cmp esi, 0xffffffff
jne 0x45f3e4
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x18], 0x4df930
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x45f405
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 0x4df930
test esi, esi
je 0x45f40c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
cmp ebx, dword [edi + 0x80]
jne 0x45f34a
mov esi, 2
jmp 0x45f356
Function at 0x4632c0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ced1d
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x507074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea esi, [ecx + 0x160]
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.004025a0
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
push 5
push str..part
call fcn.00402420
lea ecx, [ebp - 0x10]
call fcn.0040e940
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test al, al
je 0x46332a
push dword [ebp - 0x10]
call edi
mov ecx, esi
call fcn.0040e940
test al, al
je 0x463339
push dword [esi]
call edi
push 0x5c
push dword [esi]
call fcn.00497c33
add esp, 8
or edi, 0xffffffff
test eax, eax
je 0x46338b
sub eax, dword [esi]
sar eax, 1
cmp eax, edi
je 0x46338b
push eax
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.0040a8d0
mov byte [ebp - 4], 2
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46338b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4633aa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret