joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451422
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
push edi
jne 0x451454
mov ax, word [esi]
mov word [ebp - 0xc], ax
mov ax, word [esi + 2]
mov word [ebp - 0xa], ax
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x5c
mov word [ebp - 6], bx
mov dword [ebp + 0x10], eax
push 0x209
lea ecx, [ebp - 4]
call fcn.004441bf
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
push 8
push edi
push str.Device_
mov word [eax], bx
call fcn.0043f11b
add esp, 0xc
test al, al
jne 0x4514ad
push 0xc
push edi
push str.DosDevices_
call fcn.0043f11b
add esp, 0xc
test al, al
jne 0x4514ad
cmp word [edi], bx
je 0x4514b1
cmp word [edi + 2], bx
je 0x4514b1
push 0x3a
lea eax, [edi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x4514b1
or dword [ebp + 0x14], 1
push 0xb
push edi
push 0x4c56b4
call fcn.0043f11b
mov ebx, dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
add esp, 0xc
test al, al
je 0x4514d5
and dword [ebp + 0x14], 0xfffffffe
cmp byte [ebp + 0x18], 0
jne 0x4514fc
cmp byte [ebp + 0x18], 0
je 0x4514e7
xor eax, eax
mov ax, word [esi]
push eax
call fcn.00441443
pop ecx
push edi
push esi
push dword [ebp + 0x14]
call ebx
mov esi, eax
test esi, esi
jne 0x45150d
cmp byte [ebp + 0x18], al
jl 0x451559
mov byte [ebp + 0x18], al
push 0x208
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x451535
cmp byte [ebp + 0x18], 0
jle 0x451559
push 0x208
push dword [ebp - 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x451559
mov eax, dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
or eax, 0xe
push eax
call ebx
push dword [ebp - 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
cmp byte [ebp + 0x18], 0
mov esi, eax
jl 0x451559
test esi, esi
jne 0x451559
mov esi, dword [ebp + 0xc]
mov byte [ebp + 0x18], 0xff
jmp 0x4514d5
lea ecx, [ebp - 4]
call fcn.0043dd41
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x452467
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0
mov esi, 0x200
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004aa1b0
and dword [ebp - 0xc], 0
push esi
push dword [ebp + 8]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
call fcn.00441575
cmp eax, esi
pop ecx
pop ecx
jl 0x4524a3
mov esi, eax
mov dword [ebp - 8], esi
jmp 0x4524a6
mov dword [ebp - 8], esi
lea eax, [esi + esi + 0x200]
push eax
lea ecx, [ebp - 4]
call fcn.0044404a
mov edi, dword [ebp - 4]
push 0
push dword [ebp + 0x10]
add edi, 0x200
push dword [ebp + 0xc]
and edi, 0xfffffe00
push dword [ebp + 8]
lea ebx, [edi + esi]
call fcn.0043f027
add esp, 0x10
cmp eax, dword [ebp + 0xc]
jne 0x452581
cmp edx, dword [ebp + 0x10]
jne 0x452581
push 0
lea eax, [ebp - 0xc]
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x452581
push esi
push ebx
push edi
call fcn.00413fe3
mov esi, dword [ebp + 0x18]
add esp, 0xc
cmp esi, 1
jne 0x452529
push 0x10
push dword [ebp + 0x14]
lea eax, [ebx + 0x1ce]
push eax
call fcn.00413fe3
add esp, 0xc
dec esi
push 0
push dword [ebp + 0x10]
neg esi
push dword [ebp + 0xc]
sbb esi, esi
push dword [ebp + 8]
and esi, 0xffff55ab
add esi, 0xaa55
mov word [ebx + 0x1fe], si
call fcn.0043f027
add esp, 0x10
cmp eax, dword [ebp + 0xc]
jne 0x452581
cmp edx, dword [ebp + 0x10]
jne 0x452581
push dword [ebp - 8]
push ebx
push edi
call fcn.00444473
add esp, 0xc
test eax, eax
jne 0x452581
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 4]
call fcn.0043dd41
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x452a85
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x134
mov ecx, edi
call fcn.004441e6
push 0xca
lea ecx, [ebp - 0x10]
call fcn.004441bf
mov eax, dword [ebp + 0x18]
movzx esi, byte [ebp + 0x18]
and eax, 0x100
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, dword [edi]
test esi, esi
sete bl
neg esi
sbb esi, esi
and esi, 0x19
cmp dword [ebp + 0x14], 0
mov dword [ebp - 4], eax
mov byte [ebp + 0x1b], 0
lea ebx, [ebx + ebx - 1]
mov edx, esi
je 0x452b5a
cmp dword [ebp + 0x14], 1
not dword [ebp - 4]
jle 0x452b5a
and dword [ebp - 4], 0xfffffffc
jmp 0x452b5a
test edx, edx
jl 0x452b5f
xor eax, eax
mov ecx, edx
inc eax
shl eax, cl
movsx esi, bl
mov cl, dl
add edx, esi
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
add cl, 0x41
test edx, eax
mov byte [ebp + 0x17], cl
je 0x452b57
cmp dword [ebp - 8], 0
je 0x452b29
movsx ax, cl
push eax
call fcn.004a96ad
test eax, eax
pop ecx
je 0x452b57
mov cl, byte [ebp + 0x17]
cmp byte [ebp + 0x1b], 0
je 0x452b3d
mov ax, word [ebp + 0xc]
test ax, ax
je 0x452b3d
mov word [edi], ax
inc edi
inc edi
movsx ax, cl
mov word [edi], ax
inc edi
inc edi
cmp dword [ebp + 0x10], 0
mov byte [ebp + 0x1b], 1
je 0x452b57
mov word [edi], 0x3a
inc edi
inc edi
mov edx, dword [ebp - 0xc]
cmp edx, 0x1a
jl 0x452aef
mov eax, dword [ebp + 8]
and word [edi], 0
mov esi, dword [eax]
lea ecx, [ebp - 0x10]
call fcn.0043dd41
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x452d74
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
mov edi, dword [esp + 8]
mov eax, dword [edi]
and word [eax], 0
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x452db7
push esi
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x452db0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.0044cf95
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov eax, edi
pop edi
ret
Function at 0x453754
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
movzx esi, word [ebp + 0x1c]
lea eax, [esi - 1]
cdq
push edi
not eax
not edx
push 0xa0000
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
call fcn.0044404a
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
add edi, 0x20000
xor ebx, ebx
and edi, 0xfffe0000
cmp dword [ebp + 0x1c], ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
jne 0x4537cf
mov dword [ebp + 0x18], ebx
mov dword [ebp - 8], ebx
cmp dword [ebp + 0x14], ebx
jl 0x4538c2
jle 0x4538b9
cmp dword [ebp + 0x18], ebx
jne 0x4537f5
mov eax, dword [ebp - 8]
cdq
cmp dword [ebp + 0x14], edx
jl 0x4537f5
jg 0x4537cb
cmp dword [ebp + 0x10], eax
jbe 0x4537f5
xor cl, cl
jmp 0x4537f7
mov eax, dword [ebp + 0x18]
cdq
add eax, ecx
adc edx, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edx
mov eax, esi
cdq
push edx
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.004ac450
mov dword [ebp - 8], eax
jmp 0x4537a7
mov cl, 1
cmp dword [ebp + 0x14], ebx
jl 0x45380e
jg 0x453807
cmp dword [ebp + 0x10], 0x10000000
jbe 0x45380e
mov esi, 0x10000000
jmp 0x453811
mov esi, dword [ebp + 0x10]
cmp cl, bl
mov edx, dword [ebp + 0xc]
mov eax, esi
je 0x453885
movzx esi, word [ebp + 0x1c]
sub esi, dword [ebp + 0x18]
cmp ebx, dword [ebp + 0x14]
jl 0x453830
jg 0x45382d
cmp esi, dword [ebp + 0x10]
jbe 0x453830
mov esi, dword [ebp + 0x10]
push 1
push ebx
push ebx
push dword [ebp + 8]
call fcn.0043f027
add esp, 0x10
push ebx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 4]
push eax
movzx eax, word [ebp + 0x1c]
push eax
push edi
push dword [ebp + 8]
mov dword [ebp - 0x14], edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 0x18]
push esi
push dword [ebp + 0xc]
add eax, edi
push eax
mov dword [ebp - 0x10], edi
call fcn.00413fe3
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.0043f027
movzx eax, word [ebp + 0x1c]
add esp, 0x1c
mov edx, edi
jmp 0x45388f
cmp dword [ebp + 0x1c], ebx
je 0x45388f
and esi, dword [ebp - 0x28]
mov eax, esi
push ebx
lea ecx, [ebp - 4]
push ecx
push eax
push edx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub dword [ebp + 0x10], esi
mov dword [ebp + 0x18], ebx
sbb dword [ebp + 0x14], ebx
add dword [ebp + 0xc], esi
cmp dword [ebp + 0x14], ebx
jg 0x4537b6
jl 0x4538c2
cmp dword [ebp + 0x10], ebx
ja 0x4537b6
lea ecx, [ebp - 0xc]
call fcn.0043dd41
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x454cef
Capabilities:
Parse credit card information
Query environment variable

Disassembly:
push ebp
mov ebp, esp
cmp byte [ecx + 0x92], 0
jne 0x454d07
test byte [ecx + 9], 0xf
jne 0x454d07
pop ebp
jmp fcn.00454bf7
pop ebp
jmp fcn.004538d5

Function at 0x454d0d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor edi, edi
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x454dd0
cmp esi, edi
je 0x454d33
mov dword [ebp - 4], esi
jmp 0x454d39
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp word [eax], di
mov esi, eax
je 0x454dc9
push ebx
mov ebx, esi
jmp 0x454d4f
cmp ax, 0x3d
je 0x454d59
inc esi
inc esi
mov ax, word [esi]
cmp ax, di
jne 0x454d49
cmp dword [ebp + 0xc], edi
je 0x454d76
mov ecx, dword [ebp + 8]
mov eax, esi
sub eax, ebx
push 0xffffffffffffffff
sar eax, 1
push eax
lea eax, [esi + 2]
push eax
push ebx
call fcn.00414be3
jmp 0x454db9
mov edi, esi
sub edi, ebx
sar edi, 1
push edi
push ebx
lea ecx, [ebp - 8]
call fcn.0044cf4a
mov ecx, dword [ebp - 4]
push 0
push 0xffffffffffffffff
push 0
push dword [ebp - 8]
call fcn.004108b2
test eax, eax
jne 0x454dab
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push edi
lea eax, [esi + 2]
push eax
push ebx
call fcn.00414be3
lea ecx, [ebp - 8]
call fcn.0043dd41
xor edi, edi
jmp 0x454db9
inc esi
inc esi
cmp word [esi], di
jne 0x454db7
inc esi
inc esi
cmp word [esi], di
jne 0x454d45
mov eax, dword [ebp - 0xc]
pop ebx
push eax
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop edi
pop esi
leave
ret

Function at 0x455006
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.0044c96d
cmp dword [ebp + 8], 0
pop ecx
mov ebx, eax
jge 0x455080
and word [ebp - 0xc], 0
and word [ebp - 2], 0
lea eax, [ebp - 8]
push eax
mov word [ebp - 0x18], 0x20
mov word [ebp - 0x16], 0x2a
mov word [ebp - 0x14], 0x20
mov word [ebp - 0x12], si
mov word [ebp - 0x10], 0x3a
mov word [ebp - 0xe], 0x2c
mov word [ebp - 8], si
mov word [ebp - 6], 0x3a
mov word [ebp - 4], 0x5c
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
je 0x455070
cmp ebx, 2
je 0x455080
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x4d80e0
call fcn.00451568
pop ebx
leave
ret
Function at 0x455c09
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
xor edi, edi
cmp ebx, esi
mov dword [ebp - 4], esi
jne 0x455cb6
cmp dword [ebp + 0xc], esi
jne 0x455c33
mov eax, 0x80070057
jmp 0x455dc1
cmp dword [0x4d84c4], esi
jle 0x455dbf
push esi
push 0x8000080
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 0xc]
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x455c74
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jne 0x455dc1
jmp 0x455df2
push esi
lea eax, [ebp + 8]
push eax
push dword [0x4d84c4]
push dword [0x4d8cf0]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4d8cf0]
cmp eax, esi
mov dword [0x4d84c4], esi
je 0x455dbf
call fcn.0043dc66
mov dword [0x4d8cf0], esi
jmp 0x455dbf
cmp dword [ebp + 0x10], esi
je 0x455ddd
push esi
push dword [ebp + 0x10]
call fcn.0041553d
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp - 4], eax
je 0x455df2
mov edi, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
sub edi, dword [ebx]
sub eax, dword [ebx + 4]
cmp edi, esi
mov dword [ebp - 0x10], eax
jle 0x455dc6
cmp eax, esi
jle 0x455dc6
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call dword [0x4d7ef4]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [0x4d7ef8]
cmp edi, dword [ebp - 8]
jne 0x455d24
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
je 0x455dc6
push dword [ebp + 0x14]
lea eax, [ebp - 0x18]
push eax
push ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.0044391d
mov ebx, eax
add esp, 0xc
cmp ebx, esi
je 0x455df2
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x18]
mov dword [ebp + 8], esi
call dword [0x4d7f00]
push 2
push dword [ebp + 8]
call dword [0x4d7f08]
push dword [ebp - 0x10]
push edi
push esi
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [0x4d7ebc]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [ebp + 8], esi
je 0x455d94
push dword [ebp + 8]
call dword [0x4d7f04]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.004558c4
add esp, 0x10
cmp ebx, esi
mov edi, eax
je 0x455db1
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp - 4], esi
je 0x455dbf
push dword [ebp - 4]
call dword [0x4d7eb8]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp + 0x14]
push 1
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.004558c4
add esp, 0x10
mov edi, eax
jmp 0x455db1
push str.DISPLAY
push esi
push ebx
call fcn.0044391d
mov ebx, eax
add esp, 0xc
cmp ebx, esi
jne 0x455d94
xor eax, eax
inc eax
jmp 0x455dc1
Function at 0x455df7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
xor edi, edi
cmp dword [0x4d7f14], edi
mov ebx, ecx
mov dword [ebp - 0xc], ebx
jne 0x455e23
push edi
push edi
call fcn.0041553d
test eax, eax
pop ecx
pop ecx
jne 0x455e23
or eax, 0xffffffff
jmp 0x455faf
mov eax, dword [ebp + 0xc]
cmp eax, edi
mov dword [ebx + 0x10], edi
mov dword [ebx + 0xc], edi
je 0x455e34
mov ecx, dword [eax]
jmp 0x455e36
xor ecx, ecx
mov eax, dword [ebp + 8]
cmp eax, edi
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], edi
mov dword [ebx + 0x24], edi
jne 0x455e4c
push 0x64
pop eax
cmp eax, 0x10000
push esi
jge 0x455e95
mov esi, dword [0x4d7f98]
movzx eax, ax
push str.IMAGE
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
mov dword [ebp + 8], eax
jne 0x455e79
or eax, 0xffffffff
jmp 0x455fae
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 8
mov dword [ebp + 0xc], eax
jb 0x455e71
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
jmp 0x455e9e
cmp ecx, edi
je 0x455eb9
mov eax, dword [eax]
mov dword [ebp + 0xc], ecx
cmp eax, edi
je 0x455e71
lea ecx, [ebx + 0x2c]
push ecx
push dword [ebp + 0xc]
lea esi, [ebx + 0x28]
push eax
call fcn.00442e3d
add esp, 0xc
mov dword [esi], eax
jmp 0x455ec4
lea esi, [ebx + 0x28]
push esi
push eax
call dword [0x4d7ec0]
mov eax, dword [esi]
cmp eax, edi
jne 0x455ed2
push 0xfffffffffffffffe
pop eax
jmp 0x455fae
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 8], edi
call dword [0x4d7ed4]
mov eax, dword [ebp - 8]
shl eax, 4
push eax
lea ecx, [ebp + 8]
call fcn.0044404a
push dword [ebp - 8]
push dword [ebp + 8]
push dword [esi]
call dword [0x4d7ec4]
lea eax, [ebx + 0xc]
push eax
push dword [ebp + 8]
push dword [esi]
call dword [0x4d7ed8]
cmp dword [ebx + 0xc], 1
ja 0x455f1a
or edi, 0xffffffff
jmp 0x455fa4
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
mov edi, 0x5100
push edi
push dword [esi]
call dword [0x4d7edc]
push dword [ebp - 4]
lea ecx, [ebp + 0xc]
call fcn.0044404a
push dword [ebp + 0xc]
push dword [ebp - 4]
push edi
push dword [esi]
call dword [0x4d7ee0]
mov edi, dword [ebp - 4]
push dword [ebx + 0xc]
add edi, 0xfffffff0
mov ecx, ebx
shr edi, 2
call fcn.0040f50b
xor esi, esi
xor ebx, ebx
test edi, edi
jbe 0x455f82
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + ebx*4]
mov ecx, dword [ebp - 0xc]
lea esi, [eax + eax*4]
push ebx
shl esi, 1
call fcn.0040f50b
inc ebx
cmp ebx, edi
mov dword [eax], esi
jb 0x455f64
mov edi, dword [ebp - 0xc]
add edi, 0xc
jmp 0x455f96
mov ecx, dword [ebp - 0xc]
push ebx
call fcn.0040f50b
mov dword [eax], esi
inc ebx
cmp ebx, dword [edi]
jb 0x455f8a
mov edi, dword [edi]
lea ecx, [ebp + 0xc]
call fcn.0043dd41
lea ecx, [ebp + 8]
call fcn.0043dd41
mov eax, edi
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x468e71
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push ecx
lea ecx, [ebp - 0x20]
call fcn.0044646b
lea eax, [ebp + 8]
push eax
call fcn.0043dcd9
pop ecx
push 5
lea ecx, [ebp - 0xc]
call fcn.004441bf
push 0x14
lea ecx, [ebp - 8]
call fcn.004441bf
push 2
lea eax, [ebp + 8]
push eax
xor edi, edi
push 0x4c6870
mov dword [ebp - 4], edi
call fcn.004460ea
add esp, 0xc
push 1
push 0x2c
pop esi
movzx ebx, al
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
call fcn.0045708a
push edi
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.00446f11
mov eax, dword [ebp + 8]
add esp, 0xc
cmp word [eax], si
jne 0x468f08
add dword [ebp + 8], 2
push 1
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0045708a
push edi
lea ecx, [ebp - 8]
push ecx
push eax
call fcn.00446f11
add esp, 0xc
mov eax, dword [ebp + 8]
cmp word [eax], si
jne 0x468f31
add dword [ebp + 8], 2
push esi
lea eax, [ebp - 4]
push eax
push 1
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0045708a
push eax
call fcn.0044715e
add esp, 0xc
mov eax, dword [ebp - 0xc]
cmp word [eax], di
jne 0x468f43
mov esi, 0x80070057
jmp 0x469052
cmp dword [ebp - 4], edi
mov eax, dword [ebp - 8]
jne 0x468f54
cmp ebx, edi
jne 0x468f54
cmp word [eax], di
je 0x468f39
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call ebx
mov esi, eax
lea eax, [esi + 0x214]
push eax
lea ecx, [ebp - 8]
call fcn.004441e6
mov eax, dword [ebp - 8]
push eax
lea esi, [eax + esi*2 + 8]
mov dword [ebp - 0x14], edi
call fcn.00412ce4
push dword [ebp - 0xc]
mov dword [ebp + 8], eax
call fcn.00412ce4
pop ecx
pop ecx
mov edi, eax
xor ecx, ecx
cmp word [edi], cx
je 0x468f39
cmp dword [ebp - 0x10], ecx
jne 0x468fab
cmp dword [ebp - 4], ecx
jne 0x468fab
push ecx
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
jmp 0x468ffb
cmp dword [ebp - 4], 2
je 0x469003
cmp dword [ebp - 0x10], ecx
jne 0x469003
xor esi, esi
test byte [ebp - 4], 0x10
je 0x468fbf
inc esi
push edi
call ebx
lea eax, [edi + eax*2 - 2]
cmp word [eax], 0x5c
jne 0x468fd3
xor esi, esi
inc esi
and word [eax], 0
test esi, esi
jne 0x468fee
cmp dword [ebp - 4], 3
jne 0x468fee
push dword [ebp + 8]
call fcn.004a96f0
mov esi, eax
neg esi
sbb esi, esi
pop ecx
neg esi
push esi
push dword [ebp + 8]
push edi
call fcn.00441ed4
add esp, 0xc
test eax, eax
je 0x46904a
xor eax, eax
jmp 0x469050
mov eax, dword [ebp + 8]
cmp word [eax], cx
jne 0x469014
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x468ffb
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [esi + 8]
push ecx
push 0x208
push eax
call fcn.00444989
push esi
push edi
mov word [esi], 0x5c
mov word [esi + 2], 0x3f
mov word [esi + 4], 0x3f
mov word [esi + 6], 0x5c
call fcn.00441dd0
add esp, 0x18
jmp 0x468ffb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 8]
call fcn.0043dd41
lea ecx, [ebp - 0xc]
call fcn.0043dd41
lea ecx, [ebp - 0x20]
call fcn.0043dd41
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x469073
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor esi, esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, eax
cmp ebx, esi
jne 0x46919c
mov eax, dword [ebp - 0x10]
lea eax, [eax*4 + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.004441bf
cmp dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
jle 0x469194
push edi
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
push esi
push esi
push esi
shl eax, 2
push esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 0xc]
mov dword [ebp - 8], esi
push dword [ebp + 8]
mov word [edi], si
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
cmp ebx, esi
jne 0x469184
cmp word [edi], si
je 0x469184
mov eax, dword [ebp + 0x10]
push dword [eax]
lea ecx, [ebp - 4]
call fcn.0044cf2d
push 0x4bd738
lea ecx, [ebp - 4]
call fcn.0044420d
push edi
lea ecx, [ebp - 4]
call fcn.0044420d
push esi
push dword [ebp + 0xc]
push esi
push esi
push 4
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
lea eax, [ebp - 8]
push eax
movzx eax, word [0x4d7c14]
or eax, 0xf003f
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 8], esi
mov ebx, eax
je 0x46917c
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.00469073
add esp, 0xc
cmp dword [ebp - 8], esi
mov ebx, eax
je 0x46917c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 4]
call fcn.0043dd41
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jl 0x4690ca
pop edi
lea ecx, [ebp - 0x18]
call fcn.0043dd41
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x475928
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
mov eax, dword [ebp + 0x24]
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov ebx, eax
and eax, 2
and ebx, 1
mov dword [ebp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov eax, 0xb4
cmp esi, eax
jle 0x475958
mov esi, eax
xor eax, eax
xor edx, edx
cmp dword [ebp + 0x24], edx
mov ecx, 0xcc
lea edi, [ebp - 0x340]
mov dword [ebp - 0x344], edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x268], eax
mov eax, dword [ebp + 8]
mov byte [ebp - 0x290], 0x40
mov byte [ebp - 0x24], dl
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xd4], edx
je 0x4759af
mov dword [ebp - 0xd4], 0x40000000
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x32c], eax
lea eax, [esi + esi]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x264]
push eax
call fcn.00413fe3
and word [ebp + esi*2 - 0x264], 0
add esp, 0xc
mov esi, 0x4d88c4
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x4d7c18
push 0x10000
lea eax, [ebp - 0x344]
push eax
push 0x474ea6
push 0x20000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [ebp + 0x1c], eax
je 0x475a3f
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp + 0x24], 0x270f
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 0x268], eax
jne 0x475a3f
push 0
call edi
dec dword [ebp + 0x24]
jns 0x475a1a
jmp 0x475a34
push 1
call edi
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 0x268], eax
je 0x475a30
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp + 0x1c]
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
je 0x475a75
cmp esi, edi
je 0x475a80
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp + 0x14]
mov ecx, 0x4d80e0
call fcn.00415bb5
cmp esi, edi
je 0x475a80
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [ebp - 0xd4]
pop edi
pop esi
pop ebx
leave
ret