joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c9ed
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
cmp dword [esi + 0x88], ebx
jle 0x40ca05
xor eax, eax
jmp 0x40cb24
mov ecx, dword [esi + 0x80]
add ecx, dword [esi + 8]
mov eax, dword [esi + 0x6c]
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40ca28
push 2
pop eax
jmp 0x40cb24
cmp dword [esi + 4], ebx
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
jbe 0x40cb18
mov eax, dword [esi + 0x6c]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea ecx, [ebp - 8]
push ecx
push 8
lea ecx, [ebp - 0x14]
push ecx
push eax
call edi
test eax, eax
je 0x40cb15
cmp dword [ebp - 8], ebx
je 0x40cb15
mov eax, dword [0x42a5a0]
mov ecx, 0x42a5a0
call dword [eax + 0xc]
add eax, 0x10
cmp dword [ebp - 4], ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
je 0x40ca90
push dword [ebp - 4]
call fcn.00423832
pop ecx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
inc eax
push eax
lea eax, [ebp - 4]
push eax
call fcn.00403d8b
test al, al
je 0x40cafb
mov eax, dword [esi + 0x6c]
push ebx
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 0x10]
push dword [ebp - 4]
push eax
call edi
test eax, eax
je 0x40cb0a
cmp dword [ebp - 8], ebx
je 0x40cb0a
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
push eax
mov byte [ecx + eax], bl
lea eax, [ebp - 0x1c]
push eax
call fcn.00401d22
lea ebx, [esi + 0x84]
lea edi, [ebp - 0x1c]
call fcn.0040d14e
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040175b
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
xor ebx, ebx
cmp eax, dword [esi + 4]
jb 0x40ca3e
jmp 0x40cb18
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040175b
push 3
jmp 0x40cb17
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040175b
push 2
pop ebx
push dword [ebp - 4]
call fcn.00423832
pop ecx
mov eax, ebx
pop edi
pop ebx
leave
ret

Function at 0x40d360
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x42a060]
xor eax, ebp
push esi
mov dword [ebp + 0x84], eax
lea eax, [ebp - 0x80]
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x40d398
call fcn.00401cde
jmp 0x40d3b6
cmp byte [ebp + eax - 0x81], 0x5c
je 0x40d3a8
mov byte [ebp + eax - 0x80], 0x5c
inc eax
mov byte [ebp + eax - 0x80], 0
lea eax, [ebp - 0x80]
push eax
call fcn.00401cf3
mov ecx, dword [ebp + 0x84]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00423ac2
add ebp, 0x88
leave
ret
Function at 0x40d67d
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x154
mov eax, dword [0x42a060]
xor eax, ebp
push esi
mov esi, dword [ebp + 0x7c]
mov dword [ebp + 0x70], eax
mov eax, dword [esi]
push edi
sub eax, 0x10
mov dword [ebp - 0xe0], esi
call fcn.00401773
add eax, 0x10
mov dword [ebp - 0xd4], eax
lea eax, [ebp - 0xd4]
call fcn.0040d33b
mov edi, 0x425d74
mov ecx, edi
call fcn.00401d3c
push eax
push edi
lea eax, [ebp - 0xd4]
push eax
call fcn.00401c90
and dword [ebp - 0xd0], 0
push 0x4f
pop ecx
xor eax, eax
lea edi, [ebp - 0xcc]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xd0]
push eax
push dword [ebp - 0xd4]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0xdc], eax
je 0x40d833
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp byte [ebp - 0xa4], 0x2e
jne 0x40d74c
cmp byte [ebp - 0xa3], 0
je 0x40d736
cmp byte [ebp - 0xa3], 0x2e
jne 0x40d74c
cmp byte [ebp - 0xa2], 0
jne 0x40d74c
lea eax, [ebp - 0xd0]
push eax
push dword [ebp - 0xdc]
call ebx
mov edi, eax
jmp 0x40d82a
test byte [ebp - 0xd0], 0x10
je 0x40d7d2
mov eax, dword [esi]
sub eax, 0x10
call fcn.00401773
add eax, 0x10
mov dword [ebp - 0xd8], eax
lea eax, [ebp - 0xd8]
call fcn.0040d33b
lea ecx, [ebp - 0xa4]
call fcn.00401d3c
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xd8]
push eax
call fcn.00401c90
lea eax, [ebp - 0xd0]
push eax
push dword [ebp - 0xdc]
call ebx
mov edi, eax
lea eax, [ebp - 0xd8]
push eax
call fcn.0040d67d
pop ecx
lea esi, [ebp - 0xd8]
call fcn.00403d1d
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, dword [ebp - 0xd8]
add eax, 0xfffffff0
call fcn.0040175b
jmp 0x40d824
mov eax, esi
lea edi, [ebp - 0xd4]
call fcn.0040158b
mov eax, edi
call fcn.0040d33b
lea ecx, [ebp - 0xa4]
call fcn.00401d3c
push eax
lea eax, [ebp - 0xa4]
push eax
mov eax, edi
push eax
call fcn.00401c90
lea eax, [ebp - 0xd0]
push eax
push dword [ebp - 0xdc]
call ebx
lea esi, [ebp - 0xd4]
mov edi, eax
call fcn.00403d1d
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [ebp - 0xe0]
test edi, edi
jne 0x40d712
pop ebx
push dword [ebp - 0xdc]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0xd4]
add eax, 0xfffffff0
call fcn.0040175b
mov ecx, dword [ebp + 0x70]
pop edi
xor ecx, ebp
pop esi
call fcn.00423ac2
add ebp, 0x74
leave
ret
Function at 0x40d8d4
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x42a5a0]
push esi
push edi
mov ecx, 0x42a5a0
call dword [eax + 0xc]
mov edi, dword [ebp + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
lea esi, [eax - 1]
call fcn.00403fd6
cmp al, 0x5c
jne 0x40d928
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
lea ecx, [ebp + 0xc]
dec eax
push ecx
mov esi, edi
call fcn.004014a5
lea edi, [ebp - 4]
call fcn.0040158b
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040175b
jmp 0x40d932
mov eax, edi
lea edi, [ebp - 4]
call fcn.0040158b
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [esi]
mov edx, dword [eax - 0xc]
cmp edx, dword [ecx - 0xc]
jge 0x40d980
push 0x5c
call fcn.0040143c
lea ecx, [ebp - 8]
push ecx
call fcn.004014a5
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], 0
je 0x40d972
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0040d8d4
pop ecx
pop ecx
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040175b
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040175b
pop edi
pop esi
leave
ret

Function at 0x40d98c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x42a060]
and dword [ebp - 0x80], 0
and dword [ebp - 0x7c], 0
and dword [ebp - 0x78], 0
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x68]
push eax
push 0x64
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov dword [ebp - 0x6c], eax
xor edi, edi
lea esi, [ebp + edi - 0x68]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x40d9fd
push esi
lea esi, [ebp - 0x74]
call fcn.00401cf3
mov eax, esi
push eax
lea esi, [ebp - 0x80]
call fcn.00405e35
mov eax, dword [ebp - 0x74]
add eax, 0xfffffff0
call fcn.0040175b
jmp 0x40d9fd
cmp byte [ebp + edi - 0x68], 0
je 0x40da02
inc edi
cmp edi, dword [ebp - 0x6c]
jb 0x40d9f5
inc edi
cmp edi, dword [ebp - 0x6c]
jb 0x40d9c4
mov eax, dword [ebp - 0x70]
lea edi, [ebp - 0x80]
call fcn.0040dfca
lea edi, [ebp - 0x80]
call fcn.00403f0e
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x70]
pop edi
xor ecx, ebp
pop esi
call fcn.00423ac2
leave
ret
Function at 0x40dd10
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, dword [ebp + 8]
call fcn.0040da2c
test al, al
je 0x40dd26
xor eax, eax
leave
ret
push esi
lea eax, [ebp - 0x18]
push edi
xor esi, esi
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call fcn.0040db8c
mov edi, dword [ebp - 0x14]
cmp edi, esi
pop ecx
jg 0x40dd56
push esi
push esi
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
sub eax, 0x10
call fcn.00401773
mov esi, eax
add esi, 0x10
dec edi
cmp byte [ebp + 0xc], 0
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], edi
je 0x40dd79
inc edi
mov dword [ebp - 0xc], edi
push ebx
xor ebx, ebx
inc ebx
cmp edi, ebx
jle 0x40de51
lea eax, [esi - 0x10]
call fcn.00401773
push dword [0x42a18c]
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.00403f43
mov eax, ebx
lea ecx, [ebp - 0x18]
call fcn.0040e038
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00401c90
mov edi, dword [ebp - 4]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40de04
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov dword [ebp - 4], eax
je 0x40de14
cmp ebx, 1
jle 0x40dde7
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea eax, [edi - 0x10]
call fcn.0040175b
lea eax, [esi - 0x10]
call fcn.0040175b
lea edi, [ebp - 0x18]
call fcn.00403f0e
mov eax, dword [ebp - 4]
jmp 0x40de63
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40de14
lea eax, [ebp - 4]
push eax
call fcn.00405e35
push dword [0x42a18c]
lea eax, [ebp - 8]
push eax
call fcn.00403f43
mov eax, ebx
lea ecx, [ebp - 0x18]
call fcn.0040e038
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00401c90
lea eax, [edi - 0x10]
call fcn.0040175b
mov esi, dword [ebp - 8]
inc ebx
cmp ebx, dword [ebp - 0xc]
jl 0x40dd85
lea eax, [esi - 0x10]
call fcn.0040175b
lea edi, [ebp - 0x18]
call fcn.00403f0e
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret
Function at 0x40f21b
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x42a060]
xor eax, ebp
push ebx
push esi
mov dword [ebp + 0x88], eax
call fcn.00404928
test al, al
jne 0x40f2cf
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push str.ProgramFilesFolder
push eax
call esi
test eax, eax
mov ebx, str.AppDataFolder
je 0x40f276
mov eax, dword [edi]
push 0x425eb4
push eax
call esi
test eax, eax
je 0x40f276
mov eax, dword [edi]
push ebx
push eax
call esi
test eax, eax
jne 0x40f2cf
mov eax, dword [edi]
push ebx
push eax
call esi
neg eax
sbb al, al
inc al
push 0
pop ebx
mov byte [ebp - 0x7d], al
mov byte [ebp - 0x7c], bl
mov eax, str.APPDATA
jne 0x40f297
mov eax, str.PROGRAMFILES
push 0x104
lea ecx, [ebp - 0x7c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, ebx
jbe 0x40f2b3
mov byte [ebp + esi - 0x7c], 0x5c
inc esi
mov byte [ebp + esi - 0x7c], bl
cmp byte [ebp - 0x7c], bl
je 0x40f2c6
lea eax, [ebp - 0x7c]
push eax
push edi
call fcn.00401d22
xor eax, eax
cmp esi, ebx
setne al
jmp 0x40f2d1
xor al, al
mov ecx, dword [ebp + 0x88]
pop esi
xor ecx, ebp
pop ebx
call fcn.00423ac2
add ebp, 0x8c
leave
ret

Function at 0x40f8a1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [eax]
push ebx
push esi
xor esi, esi
cmp dword [eax - 0xc], esi
mov ebx, ecx
jne 0x40f8b9
xor eax, eax
jmp 0x40f95c
push edi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40f8db
push eax
jmp 0x40f952
push esi
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40f8f0
cmp edi, esi
jmp 0x40f94f
push 0x78
lea eax, [ebp + 0xc]
call fcn.00403cc9
push esi
lea eax, [ebp - 4]
push eax
push ebx
lea esi, [ebp + 0xc]
call fcn.00403d1d
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40f942
cmp dword [ebp - 4], 0
je 0x40f942
mov eax, esi
push eax
push dword [ebp + 8]
call fcn.0040f42b
movzx esi, al
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040175b
test edi, edi
je 0x40f93e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x40f95b
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040175b
test edi, edi
je 0x40f958
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41118a
Capabilities:
Create process on windows
Delete file
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1a4]
sub esp, 0x224
mov eax, dword [0x42a060]
xor eax, ebp
mov dword [ebp + 0x1a0], eax
mov eax, dword [ebp + 0x1ac]
push ebx
push edi
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x68]
push eax
push 0x104
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x78], eax
je 0x411330
lea eax, [ebp + 0x9c]
push eax
push ebx
push 0x426354
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x411330
push esi
lea eax, [ebp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp + 0x9c]
push eax
lea esi, [ebp - 0x6c]
call fcn.00401cf3
mov esi, str..url
mov ecx, esi
call fcn.00401d3c
push eax
push esi
lea eax, [ebp - 0x6c]
push eax
call fcn.00401c90
push ebx
push 0x80
push 2
push ebx
push ebx
mov ebx, dword [ebp - 0x6c]
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x80], esi
jne 0x411253
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx - 0x10]
jmp 0x41132a
mov eax, dword [0x42a5a0]
mov ecx, 0x42a5a0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x70], eax
mov eax, dword [edi]
sub eax, 0x10
call fcn.00401773
mov edi, eax
add edi, 0x10
push edi
lea eax, [ebp - 0x70]
push str._InternetShortcut__r_nURL_s_r_n
push eax
call fcn.00403d0a
mov ebx, dword [ebp - 0x70]
mov eax, dword [ebx - 0xc]
add esp, 0xc
push 0
lea ecx, [ebp - 0x78]
push ecx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
mov dword [ebp - 0x70], eax
je 0x4112ae
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x80], 0
xor eax, eax
cmp dword [ebp - 0x70], eax
je 0x4112c8
push 5
push eax
push eax
push dword [ebp - 0x6c]
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [ebp - 0x6c]
push 0x5c
call fcn.004015e9
test eax, eax
pop ecx
jne 0x4112dc
or eax, 0xffffffff
jmp 0x4112df
sub eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x74]
add ecx, 0xc
push ecx
lea ecx, [ebp - 0x70]
push ecx
lea esi, [ebp - 0x6c]
call fcn.004014a5
push eax
call fcn.0040d8d4
mov eax, dword [ebp - 0x70]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.0040175b
lea eax, [edi - 0x10]
call fcn.0040175b
lea eax, [ebx - 0x10]
call fcn.0040175b
cmp dword [ebp - 0x80], 0
je 0x411324
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x6c]
add eax, 0xfffffff0
call fcn.0040175b
pop esi
mov ecx, dword [ebp + 0x1a0]
pop edi
xor ecx, ebp
pop ebx
call fcn.00423ac2
add ebp, 0x1a4
leave
ret 4
Function at 0x4137e5
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, eax
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x30]
cmp dword [eax - 0xc], 0
jne 0x4137fe
mov al, 1
jmp 0x413842
and dword [ebp - 0x20], 0
push esi
push edi
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebx + 8]
lea esi, [eax + 0x30]
mov ecx, dword [esi]
call fcn.00404e77
mov ecx, dword [ebp - 0x18]
shr ecx, 0x14
cmp ecx, eax
jl 0x413833
mov al, 1
jmp 0x413840
push esi
push 0xd4
call fcn.004138c5
xor al, al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4138c5
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x50]
push esi
push edi
sub eax, 0x10
call fcn.00401773
add eax, 0x10
push 0x4259bc
lea edi, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.00404b64
mov eax, dword [0x42a5a0]
pop ecx
mov esi, 0x42a5a0
mov ecx, esi
call dword [eax + 0xc]
push dword [ebp + 8]
add eax, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00401ae3
mov eax, dword [0x42a5a0]
mov ecx, esi
call dword [eax + 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
add eax, 0x10
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp + 8]
push esi
push edi
push eax
call fcn.00403d0a
add esp, 0x10
cmp byte [ebx + 0xc], 0
je 0x413949
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x413965
mov eax, dword [ebx]
call fcn.00422228
mov eax, dword [ebx]
push 0
call fcn.00422167
push 0x30
push eax
lea eax, [ebp + 8]
push eax
call fcn.004221d6
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040175b
lea eax, [edi - 0x10]
call fcn.0040175b
lea eax, [esi - 0x10]
call fcn.0040175b
pop edi
pop esi
leave
ret 8

Function at 0x414897
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
xor ebx, ebx
mov byte [esi + 0x15], bl
mov byte [esi + 0x14], bl
mov dword [esi + 0xc], eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [esi + 0x18], eax
lea eax, [esp + 4]
push eax
push ebx
push esi
push 0x4148c4
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebx
pop ecx
ret
Function at 0x414a98
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
call fcn.00405b09
test eax, eax
je 0x414b22
lea eax, [ebp - 8]
push eax
xor esi, esi
push 0x28
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x414ad9
cmp dword [ebp - 8], esi
je 0x414ad5
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x414b39
lea eax, [ebp - 0x14]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
push esi
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x414ac7
cmp dword [ebp - 8], esi
je 0x414b27
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x414b27
call fcn.00414b3c
push 0x80040002
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne al
pop esi
leave
ret

Function at 0x414b3c
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0xc4]
sub esp, 0x144
mov eax, dword [0x42a060]
push esi
push edi
push dword [0x42a3e8]
xor eax, ebp
mov dword [ebp + 0xc0], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push dword [0x42a3ec]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push edi
mov dword [ebp - 0x78], edi
call esi
test eax, eax
je 0x414b92
push 0
push 2
call eax
cmp eax, 0xffffffff
mov dword [ebp - 0x80], eax
jne 0x414ba0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x414c48
push edi
jmp 0x414c42
push ebx
lea eax, [ebp - 0x6c]
push 0x42a75c
push eax
call fcn.0040ebb0
pop ecx
pop ecx
push dword [0x42a3f0]
push edi
call esi
push dword [0x42a3f4]
mov ebx, eax
push edi
call esi
push 0x49
mov dword [ebp - 0x70], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x80]
lea eax, [ebp - 0x68]
push eax
push edi
mov dword [ebp - 0x68], 0x128
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x414c22
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x414c1a
push dword [ebp - 0x60]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test esi, esi
je 0x414c1a
push esi
call ebx
lea eax, [ebp - 0x68]
push eax
push edi
call dword [ebp - 0x70]
test eax, eax
jne 0x414beb
mov eax, dword [ebp - 0x6c]
add eax, 0xfffffff0
call fcn.0040175b
test edi, edi
je 0x414c38
push edi
call ebx
cmp dword [ebp - 0x78], 0
pop ebx
je 0x414c48
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp + 0xc0]
pop edi
xor ecx, ebp
pop esi
call fcn.00423ac2
add ebp, 0xc4
leave
ret
Function at 0x4167a9
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov byte [eax + 0x68], cl
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x4170ac
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, eax
xor ebx, ebx
cmp dword [esi], ebx
jne 0x4170c3
xor al, al
jmp 0x417178
mov eax, dword [0x42a5a0]
mov ecx, 0x42a5a0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0xc]
push dword [0x42a3f8]
push eax
call fcn.00403d0a
mov esi, dword [esi]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 4], ebx
push esi
call sub.msi.dll_MsiEnableUIPreview
test eax, eax
je 0x417112
cmp dword [ebp - 4], ebx
je 0x41716b
push dword [ebp - 4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
jmp 0x41716b
push ebx
push dword [ebp - 4]
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x417103
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
je 0x417141
cmp dword [ebp - 8], ebx
je 0x417103
push dword [ebp - 8]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
jmp 0x417103
push 1
push dword [ebp - 8]
call fcn.00417280
cmp dword [ebp - 8], ebx
mov byte [ebp + 0xb], al
je 0x41715b
push dword [ebp - 8]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 4], ebx
je 0x417168
push dword [ebp - 4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov bl, byte [ebp + 0xb]
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040175b
mov al, bl
pop esi
pop ebx
leave
ret 4

Function at 0x417dd7
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
neg esi
sbb esi, esi
lea ecx, [eax - 0x20]
and esi, ecx
cmp byte [eax + 0x1c], 0
je 0x417e1a
push 0xe801
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [ebp + 8], 2
jne 0x417e0b
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x417e20
cmp dword [ebp + 8], 0
jne 0x417e1a
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 8], 1
je 0x417e36
mov eax, dword [ebp + 0xc]
shr eax, 0x10
movsx eax, ax
push eax
movsx eax, word [ebp + 0xc]
push eax
mov eax, esi
call fcn.0041742b
xor eax, eax
pop esi
pop ebp
ret 8