joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b0d7
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
mov esi, 0x450eb0
push edi
push esi
push dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x10], edi
call ebx
push esi
push dword [ebp + 0x10]
call ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, edi
je 0x42b25f
push esi
call fcn.00433219
push esi
push edi
push eax
mov dword [ebp - 8], eax
call fcn.004334a0
add esp, 0x10
push dword [ebp - 8]
push esi
push edi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x42b256
lea eax, [ebp - 0x44]
push 0x34
mov dword [ebp + 8], eax
lea eax, [ebp - 0x44]
push edi
push eax
call fcn.004334a0
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp + 8]
push eax
push 0x44c2a4
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x42b199
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
shr ecx, 0x10
push edx
push ecx
movzx ecx, ax
shr eax, 0x10
push ecx
push eax
push 0x44d498
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0x34
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
call fcn.004334a0
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x44d47c
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x42b256
and byte [ebp - 0x144], 0
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x143]
mov esi, dword [ebp - 4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
xor edi, edi
shr esi, 2
test esi, esi
mov dword [ebp + 0xc], eax
jle 0x42b256
and dword [ebp - 0xc], 0
test edi, edi
jle 0x42b1fc
add dword [ebp + 0xc], 4
push 4
lea eax, [ebp - 0xc]
push dword [ebp + 0xc]
push eax
call fcn.00433590
movzx eax, word [ebp - 0xc]
add esp, 0xc
test edi, edi
push eax
jne 0x42b22d
lea eax, [ebp - 0x144]
push 0x44c818
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x42b245
push dword [ebp + 0x10]
lea eax, [ebp - 0x144]
push 0x44d474
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x144]
push eax
push dword [ebp + 0x10]
call ebx
inc edi
cmp edi, esi
jl 0x42b1f0
push dword [ebp - 8]
call fcn.00433130
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42b2a8
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push 0x44d4b8
mov dword [ebp - 4], ebx
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x42b3ab
push edi
push 0x44d4a4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x42b33a
push dword [ebp + 8]
lea eax, [ebp - 0x82c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x82c]
push eax
call fcn.0042b7be
test eax, eax
je 0x42b312
lea eax, [ebp - 0x82c]
push eax
call fcn.0042b5af
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x82c]
push eax
call edi
test eax, eax
je 0x42b3a1
cmp dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x1c]
je 0x42b398
mov eax, SysReAllocString
jmp 0x42b398
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp + 0xc], ebx
mov cl, byte [eax]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x42c], cl
mov cl, byte [eax + 1]
mov al, byte [eax + 2]
mov byte [ebp - 0x42b], cl
mov byte [ebp - 0x42a], al
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x42c]
push eax
mov byte [ebp - 0x429], bl
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x42b3a1
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp - 8]
imul eax, dword [ebp - 0xc]
shr eax, 0xa
mov dword [esi], eax
mov dword [ebp - 4], 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret

Function at 0x42b3ff
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push dword [0x44d40c]
lea eax, [ebp - 0x400]
push dword [ebp + 8]
push eax
call fcn.0042b708
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
lea eax, [ebp - 0x400]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x42b444
xor eax, eax
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
pop eax
leave
ret

Function at 0x42b45d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor eax, eax
mov byte [ebp + 0x11], 0x3a
mov byte [ebp + 0x12], 0x5c
mov byte [esi], al
mov byte [esi + 1], 0x3a
mov byte [esi + 2], 0x5c
mov byte [esi + 3], al
mov byte [ebp + 0x13], al
xor ebx, ebx
mov al, bl
add al, 0x41
mov byte [ebp + 0x10], al
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, dword [ebp + 8]
jne 0x42b4b6
push dword [ebp + 0xc]
mov al, byte [ebp + 0x10]
mov byte [esi], al
push esi
call fcn.0042b264
pop ecx
test eax, eax
pop ecx
je 0x42b4b6
push esi
call fcn.0042b3ff
test eax, eax
pop ecx
jne 0x42b4c3
inc ebx
cmp ebx, 0x1a
jl 0x42b481
or eax, 0xffffffff
pop esi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x42b4bf
Function at 0x42b6a4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
and byte [ebp - 0x104], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
push dword [ebp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.0042b67a
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
pop edi
je 0x42b702
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x42b6fd
cmp eax, 5
jne 0x42b702
push 1
pop eax
jmp 0x42b704
xor eax, eax
leave
ret 4

Function at 0x42b820
Capabilities:
Create directory

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0x14], 1
call edi
inc eax
inc eax
push eax
call fcn.00432c57
pop ecx
mov esi, eax
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x44c2a4
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
mov ebx, esi
call edi
mov edi, eax
xor ebp, ebp
test edi, edi
jbe 0x42b89a
cmp byte [ebx], 0x5c
jne 0x42b88d
and byte [ebx], 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x42b88a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x42b895
mov byte [ebx], 0x5c
inc ebx
inc ebp
cmp ebp, edi
jb 0x42b868
jmp 0x42b89a
and dword [esp + 0x10], 0
push esi
call fcn.00432291
mov eax, dword [esp + 0x14]
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x42b8ad
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42b8c5
test al, 0x10
jne 0x42b8c5
push 1
pop eax
jmp 0x42b8c7
xor eax, eax
ret 4

Function at 0x42b8ca
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42b8e2
test al, 0x10
je 0x42b8e2
push 1
pop eax
jmp 0x42b8e4
xor eax, eax
ret 4

Function at 0x42b8e7
Capabilities:
Delete directory

Disassembly:
push edi
xor edi, edi
push dword [esp + 8]
call fcn.0042b8ca
test eax, eax
je 0x42b91b
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x42b916
push 1
pop edi
push 0
call esi
pop esi
mov eax, edi
pop edi
ret 4

Function at 0x42b921
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.0042b8ad
test eax, eax
jne 0x42b935
push 1
pop eax
jmp 0x42b972
push ebx
push esi
xor ebx, ebx
call fcn.0042b976
test eax, eax
jne 0x42b96f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call edi
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x42b96a
push 1
pop ebx
push 0
call edi
pop edi
mov eax, ebx
pop ebx
pop esi
ret 4
Function at 0x42bac4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
push esi
push edi
xor esi, esi
push 0x10
lea eax, [ebp - 0x14]
push esi
push eax
mov dword [ebp - 4], esi
call fcn.004334a0
push 0x44
lea eax, [ebp - 0x74]
pop edi
push edi
push esi
push eax
call fcn.004334a0
add esp, 0x18
cmp dword [ebp + 0xc], esi
mov dword [ebp - 0x74], edi
mov word [ebp - 0x44], si
push 1
pop edi
mov dword [ebp - 0x48], edi
je 0x42bb07
mov word [ebp - 0x44], di
push dword [ebp + 8]
lea eax, [ebp - 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push esi
push 0x20
push esi
push esi
lea eax, [ebp - 0x474]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x42bb96
push 0xff
push 0xffffffffffffffff
lea eax, [ebp - 0x14]
push esi
push eax
push edi
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, esi
je 0x42bb73
cmp eax, edi
jne 0x42bb73
push esi
push esi
push esi
lea eax, [ebp - 0x30]
push esi
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
cmp dword [ebp - 0x2c], 0x11
je 0x42bb73
cmp dword [ebp - 0x2c], 0x10
je 0x42bb73
cmp dword [ebp - 0x2c], 0x12
jne 0x42bb38
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 4]
push dword [ebp - 0x14]
mov dword [0x453ec8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x42bb9b
mov eax, 0xcccccccc
pop edi
pop esi
leave
ret 8

Function at 0x42bba1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
push esi
push edi
xor esi, esi
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.004334a0
push 0x44
lea eax, [ebp - 0x54]
pop edi
push edi
push esi
push eax
call fcn.004334a0
add esp, 0x18
cmp dword [ebp + 0xc], esi
mov dword [ebp - 0x54], edi
mov word [ebp - 0x24], si
push 1
pop edi
mov dword [ebp - 0x28], edi
je 0x42bbe1
mov word [ebp - 0x24], di
push dword [ebp + 8]
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x20
push edi
push esi
lea eax, [ebp - 0x454]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
cmp edi, esi
je 0x42bc22
push 0x3e8
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, edi
pop edi
pop esi
leave
ret 8
Function at 0x42bc2a
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call fcn.0042bcd1
test eax, eax
je 0x42bc8f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 4]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42bc8f
lea eax, [ebp - 0xc]
push esi
push eax
xor esi, esi
push 0x44d4e8
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [ebp - 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x1c]
push esi
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
pop esi
push 0xffff
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
inc eax
leave
ret

Function at 0x42bcff
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
lea eax, [ebp - 8]
push edi
xor ebx, ebx
push eax
push ebx
push 8
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], bl
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42bd62
call esi
cmp eax, 0x3f0
jne 0x42bd59
lea eax, [ebp - 8]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
je 0x42bdd1
cmp eax, ebx
je 0x42bdd1
lea eax, [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push ebx
push ebx
push 2
push dword [ebp - 8]
call edi
test eax, eax
jne 0x42bdd1
call esi
cmp eax, 0x7a
jne 0x42bdd1
push dword [ebp - 4]
call fcn.00432c57
mov esi, eax
pop ecx
lea eax, [ebp - 4]
cmp esi, ebx
push eax
push dword [ebp - 4]
setne byte [ebp - 0x24]
push esi
push 2
push dword [ebp - 8]
call edi
test eax, eax
je 0x42bdc5
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea eax, [ebp - 0x1c]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x42bdd5
cmp byte [ebp - 0x24], bl
je 0x42bdd1
push esi
call fcn.00432291
pop ecx
xor eax, eax
jmp 0x42be20
xor edi, edi
cmp dword [esi], ebx
mov dword [ebp - 0x14], ebx
jbe 0x42be08
lea eax, [esi + 4]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x42be01
add dword [ebp - 0xc], 8
inc edi
cmp edi, dword [esi]
jb 0x42bde4
jmp 0x42be08
mov dword [ebp - 0x14], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp byte [ebp - 0x24], bl
je 0x42be1d
push esi
call fcn.00432291
pop ecx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42be25
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov ecx, dword [ebp + 8]
cmp dword [0x453ee0], ecx
jne 0x42be40
mov eax, dword [0x44d410]
cmp eax, 0xffffffff
jne 0x42be80
lea eax, [ebp - 0x14]
push 0x14
push eax
push 0x1004
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jle 0x42be7a
lea eax, [ebp - 0x14]
push eax
call fcn.00433fd1
pop ecx
lea ecx, [ebp - 0x34]
push 2
push ecx
push eax
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
test eax, eax
je 0x42be7a
movsx eax, word [ebp - 0x34]
mov dword [0x44d410], eax
mov ax, word [0x44d410]
leave
ret
Function at 0x42c683
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, 0x441a83
call fcn.00432c38
sub esp, 0x45c
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x33b]
mov byte [ebp - 0x33c], bl
mov esi, 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x33c]
push esi
push eax
push dword [0x453ed4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x33c]
lea ecx, [ebp - 0x468]
push eax
call fcn.0042a3b7
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x133]
mov byte [ebp - 0x134], bl
push dword [0x44c8b0]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x468]
mov dword [ebp - 4], ebx
push eax
call fcn.0042c83d
pop ecx
test eax, eax
pop ecx
je 0x42c767
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x237]
mov byte [ebp - 0x238], bl
mov byte [ebp - 0xd], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x238]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x134]
push eax
push ebx
lea eax, [ebp - 0x238]
push 0x44d528
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x134]
push ebx
push eax
lea ecx, [ebp - 0x468]
push dword [0x44c8b0]
call fcn.0042a619
jmp 0x42c7c0
mov eax, 0x452be8
mov ecx, eax
test ecx, ecx
je 0x42c78a
cmp byte [0x452be8], bl
je 0x42c78a
push eax
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x42c7bd
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x33c]
push eax
call fcn.0042b4c7
push dword [0x44c8b0]
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.0042b708
mov byte [ebp - 0xd], bl
lea ecx, [ebp - 0x30]
call fcn.004023bf
lea eax, [ebp - 0x134]
lea ecx, [ebp - 0x30]
push eax
mov byte [ebp - 4], 1
call fcn.00402407
push dword [ebp + 0x14]
lea ecx, [ebp - 0x30]
push dword [ebp + 0x10]
push 0x450eb0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00402606
cmp byte [ebp - 0xd], bl
je 0x42c806
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00402882
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.00403872
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x468]
call fcn.0042a4fc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x42c9dd
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x441a98
call fcn.00432c38
sub esp, 0x210
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
lea edi, [eax + 0x4030]
mov esi, 0x104
lea eax, [ebp - 0x118]
push esi
xor ebx, ebx
push eax
push ebx
mov ecx, edi
push dword [0x442ee8]
push dword [ebp + 8]
call fcn.004075db
lea eax, [ebp - 0x118]
push eax
call fcn.0043405c
cmp eax, 4
pop ecx
jne 0x42ca54
mov eax, dword [ebp + 0xc]
push 0x44cabc
add eax, 0xbc
push eax
call fcn.0042b9bb
pop ecx
test eax, eax
pop ecx
jl 0x42ca4b
mov esi, 0x300
jmp 0x42ca73
push esi
lea eax, [ebp - 0x21c]
jmp 0x42ca5b
push esi
lea eax, [ebp - 0x21c]
push eax
push ebx
push dword [0x442efc]
mov ecx, edi
push dword [ebp + 8]
call fcn.004075db
mov esi, eax
cmp esi, ebx
je 0x42cae1
mov dword [ebp + 8], ebx
push 0x20019
push 0x44d538
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.004109fd
test eax, eax
jne 0x42cad3
lea eax, [ebp - 0x14]
mov dword [ebp + 0xc], ebx
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x44d52c
mov dword [ebp - 0x10], ebx
push dword [ebp + 8]
mov dword [ebp - 0x14], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp + 0xc], esi
jae 0x42cad3
cmp dword [ebp + 8], ebx
je 0x42cacf
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x42cae4
cmp dword [ebp + 8], ebx
je 0x42cae1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x42d0f1
Capabilities:
Create directory

Disassembly:
mov eax, 0x441bd8
call fcn.00432c38
sub esp, 0x60
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x6c]
push ebx
push ebx
push eax
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.00402af7
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00401d5d
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], bl
call fcn.00401ce3
lea eax, [ebp - 0x6c]
lea ecx, [ebp + 8]
push eax
call fcn.00404be9
lea ecx, [ebp - 0x6c]
call fcn.00401ce3
lea ecx, [ebp + 8]
mov dword [0x453f14], ebx
call fcn.00404060
mov byte [ebp - 0xd], al
lea eax, [ebp - 0xe]
mov edi, 0x4424d4
push ebx
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], 0x4424dc
mov dword [ebp - 0x24], edi
call fcn.004028be
mov byte [ebp - 4], 2
xor esi, esi
mov dword [ebp - 0x14], 1
push 1
lea eax, [ebp - 0x1c]
push esi
push eax
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x1c], 0x5c
call fcn.00403d79
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
je 0x42d23a
sub eax, esi
lea ecx, [ebp + 8]
inc eax
push eax
lea eax, [ebp - 0x6c]
push esi
push eax
call fcn.00402ac3
lea esi, [ebp - 0x6c]
lea eax, [ebp - 0x68]
neg esi
sbb esi, esi
push 0x44c1c8
and esi, eax
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.0042d5d0
test eax, eax
je 0x42d1db
lea eax, [ebp - 0x6c]
lea ecx, [ebp - 0x44]
push eax
call fcn.0042d371
jmp 0x42d1eb
push dword [0x4424e4]
lea ecx, [ebp - 0x40]
push ebx
push esi
call fcn.0041c421
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 1
lea esi, [eax + 1]
jle 0x42d22e
cmp dword [ebp - 0x14], 4
jg 0x42d202
cmp byte [ebp - 0xd], bl
jne 0x42d22e
push ebx
lea ecx, [ebp - 0x44]
call fcn.00402df0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x42d22e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov dword [0x453f14], eax
jne 0x42d26f
mov dword [0x453f14], ebx
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.00401ce3
inc dword [ebp - 0x14]
cmp dword [ebp - 0x18], 0xffffffff
jne 0x42d17a
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.00401ce3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401ce3
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
sub esp, 0x28
lea eax, [ebp - 0x44]
mov dword [ebp - 0x18], esp
mov ecx, esp
push ebx
push eax
mov dword [ecx], 0x4424dc
mov dword [ecx + 0x20], edi
call fcn.00403bbb
call fcn.0042ccab
add esp, 0x28
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.00401ce3
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.00401ce3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401ce3
xor al, al
jmp 0x42d260
Function at 0x42dd42
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
push ebx
push edi
mov edi, ecx
mov dword [ebp - 0x10], 1
call fcn.0042def7
xor ebx, ebx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x42ddfb
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 0x44d9e8
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x42dde8
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
push 0x44d9dc
mov dword [ebp - 8], 4
push dword [ebp - 4]
call esi
test eax, eax
je 0x42ddac
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x824
push eax
lea eax, [ebp - 0x838]
push eax
push ebx
push ebx
push 0x44d9cc
push dword [ebp - 4]
call esi
test eax, eax
pop esi
je 0x42ddd5
mov byte [ebp - 0x838], bl
cmp dword [ebp - 0xc], ebx
jne 0x42dde2
cmp byte [ebp - 0x838], bl
je 0x42dde8
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], ebx
je 0x42ddfb
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x42ddfb
push dword [ebp - 4]
call eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.0042d9b6
add esp, 0x14
cmp dword [ebp + 0xc], ebx
mov dword [edi + 4], eax
je 0x42de20
cmp dword [ebp + 0xc], 4
jne 0x42de60
cmp dword [ebp - 0x14], ebx
jne 0x42de60
mov ax, word [edi + 0x14]
cmp ax, 3
jne 0x42de38
mov ecx, edi
call fcn.0042e367
jmp 0x42de60
cmp ax, 4
jne 0x42de47
mov ecx, edi
call fcn.0042e54d
jmp 0x42de60
cmp ax, 8
jae 0x42de54
push 0x44d9c4
jmp 0x42de59
push 0x44d9b8
mov ecx, edi
call fcn.0042e920
xor eax, eax
cmp dword [edi + 4], ebx
pop edi
pop ebx
setne al
leave
ret 0x14