joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b97f
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x68]
sub eax, 0x10
call fcn.00409c7d
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, edi
call fcn.0040b5a4
test al, al
je 0x40b9e3
mov eax, dword [edi + 0x44]
and eax, 8
cmp eax, 8
sete cl
xor edx, edx
test cl, cl
setne dl
cmp eax, 8
sete al
movzx eax, al
neg eax
lea edx, [edx + edx + 1]
sbb eax, eax
mov ecx, edx
and eax, 7
push ecx
push eax
mov eax, edi
call fcn.0040c17e
lea ecx, [edi + 0x78]
call fcn.0040de50
add eax, 0x18
jmp 0x40ba28
test byte [edi + 0x44], 0x40
je 0x40ba49
lea esi, [ebp - 8]
mov ecx, edi
call fcn.0040d57c
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.004022f6
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404645
lea esi, [ebp - 4]
call fcn.00409cf7
push 6
mov eax, edi
call fcn.0040c1c2
lea ecx, [edi + 0x98]
call fcn.00415f13
lea edi, [ebp - 8]
call fcn.00409f0c
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.004022f6
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404645
lea eax, [ebp - 4]
push eax
call fcn.0040a0ae
mov esi, dword [ebp - 4]
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [esi - 0x10]
call fcn.00404645
pop edi
xor eax, eax
pop esi
leave
ret
Function at 0x40c753
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, ebx
call fcn.0040b5a4
test al, al
jne 0x40c774
test byte [ebx + 0x44], 0x40
je 0x40c89f
mov eax, dword [ebx + 0x7c]
and dword [ebp - 8], 0
mov dword [ebp - 0x18], eax
test eax, eax
jle 0x40c89f
lea eax, [ebx + 0x78]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
call fcn.0040de50
mov esi, eax
cmp byte [esi + 0x1c], 0
je 0x40c890
mov eax, dword [esi]
cmp eax, 1
je 0x40c7d7
cmp eax, 3
je 0x40c7d7
cmp eax, 7
je 0x40c7d7
cmp eax, 8
je 0x40c7d7
cmp eax, 0x64
jb 0x40c7fe
mov eax, dword [ebx + 0x90]
cmp eax, 2
je 0x40c890
cmp eax, 5
jne 0x40c7fe
jmp 0x40c890
mov eax, dword [ebx + 0x90]
cmp eax, 4
je 0x40c7fe
cmp eax, 2
je 0x40c890
cmp eax, 1
je 0x40c890
test byte [esi + 8], 1
jne 0x40c890
mov eax, dword [esi + 4]
mov ecx, ebx
call fcn.0040d601
mov dword [ebp - 0x10], eax
mov eax, dword [eax]
sub eax, 0x10
call fcn.00409c7d
mov esi, dword [esi + 0x18]
push dword [esi - 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 4]
call fcn.004022f6
lea esi, [ebp - 4]
call fcn.00402073
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40c864
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x40c864
lea edi, [ebp - 0x24]
call fcn.0040465d
mov eax, edi
push eax
mov ebx, esi
call fcn.00404684
mov esi, edi
call fcn.00401c08
mov ebx, dword [ebp + 8]
push dword [ebp - 0x10]
lea eax, [ebp - 4]
lea edi, [ebp - 0x14]
call fcn.00409f0c
push eax
call fcn.0040a2b1
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.00404645
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00404645
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jl 0x40c78c
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40c8a6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
xor ebx, ebx
push esi
cmp dword [edi + 0x10], ebx
jne 0x40c8bc
xor eax, eax
jmp 0x40ca16
mov eax, dword [edi + 0x1c]
xor ecx, ecx
add eax, dword [edi + 0x58]
push ebx
adc ecx, dword [edi + 0x5c]
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x14], ecx
mov ecx, dword [edi + 0x84]
push eax
push ecx
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40c903
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
push eax
push 0x103
push edi
call fcn.0040d5c4
push 2
pop eax
jmp 0x40ca16
mov ecx, 0x45a140
lea esi, [ebp - 0x20]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.0040462a
mov byte [ebp - 0x1c], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [edi + 0x10], ebx
jbe 0x40ca00
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [edi + 0x84]
push ebx
lea ecx, [ebp - 0xc]
push ecx
push 0x18
lea ecx, [ebp - 0x38]
push ecx
push eax
call esi
test eax, eax
je 0x40c9e7
cmp dword [ebp - 0xc], ebx
je 0x40c9e7
cmp dword [ebp - 4], ebx
je 0x40c970
push dword [ebp - 4]
call fcn.004318b5
pop ecx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 4]
inc eax
push ecx
call fcn.0040dcd9
test al, al
je 0x40c9e2
mov eax, dword [edi + 0x84]
push ebx
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x24]
add ecx, ecx
push ecx
push dword [ebp - 4]
push eax
call esi
test eax, eax
je 0x40c9e7
cmp dword [ebp - 0xc], ebx
je 0x40c9e7
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 4]
xor eax, eax
mov word [edx + ecx*2], ax
lea eax, [ebp - 0x38]
lea ebx, [edi + 0x78]
push eax
call fcn.0040ddb2
mov eax, dword [ebp - 8]
mov ecx, ebx
call fcn.0040de50
push dword [ebp - 4]
add eax, 0x18
push eax
call fcn.00404539
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
xor ebx, ebx
cmp eax, dword [edi + 0x10]
jb 0x40c93a
jmp 0x40ca00
push 3
pop ebx
jmp 0x40ca00
push 2
pop ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
push eax
push 0x103
push edi
call fcn.0040d5c4
push dword [ebp - 4]
call fcn.004318b5
mov eax, dword [ebp - 0x20]
pop ecx
add eax, 0xfffffff0
call fcn.00404645
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x40ca1a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
xor esi, esi
cmp dword [edi + 0x9c], esi
jle 0x40ca33
xor eax, eax
jmp 0x40cbad
mov eax, dword [edi + 0xc]
xor ecx, ecx
add eax, dword [edi + 0x58]
push esi
adc ecx, dword [edi + 0x5c]
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], ecx
mov ecx, dword [edi + 0x84]
push eax
push ecx
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40ca7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
push eax
push 0x103
push edi
call fcn.0040d5c4
push 2
pop eax
jmp 0x40cbad
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
cmp dword [edi + 8], esi
jbe 0x40cba2
mov eax, dword [edi + 0x84]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea ecx, [ebp - 8]
push ecx
push 8
lea ecx, [ebp - 0x14]
push ecx
push eax
call ebx
test eax, eax
je 0x40cb89
cmp dword [ebp - 8], esi
je 0x40cb89
mov eax, dword [0x45a140]
mov ecx, 0x45a140
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 4], esi
je 0x40cae4
push dword [ebp - 4]
call fcn.004318b5
pop ecx
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
inc eax
push ecx
call fcn.0040dcd9
test al, al
je 0x40cb57
mov eax, dword [edi + 0x84]
push esi
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, ecx
push ecx
push dword [ebp - 4]
push eax
call ebx
test eax, eax
je 0x40cb66
cmp dword [ebp - 8], esi
je 0x40cb66
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
xor ecx, ecx
push eax
mov word [eax + edx*2], cx
lea eax, [ebp - 0x1c]
push eax
call fcn.00404539
lea esi, [edi + 0x98]
lea ebx, [ebp - 0x1c]
call fcn.0040de71
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00404645
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
xor esi, esi
cmp eax, dword [edi + 8]
jb 0x40ca8f
jmp 0x40cba2
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00404645
push 3
jmp 0x40cba1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
push eax
push 0x103
push edi
call fcn.0040d5c4
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00404645
jmp 0x40cb9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
push eax
push 0x103
push edi
call fcn.0040d5c4
push 2
pop esi
push dword [ebp - 4]
call fcn.004318b5
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40dfbe
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 0x2c]
sub esp, 0xc
push edi
test eax, eax
je 0x40dfd3
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 0xc]
cmp dword [eax - 0xc], 0
je 0x40e02c
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov edi, 0x44bb5c
push edi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [ebp - 4], 0
je 0x40e02c
push dword [esi + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
lea eax, [ebp - 8]
call fcn.0040455c
lea eax, [ebp - 8]
call fcn.0040f437
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404645
lea ecx, [esi + 0x1c]
call fcn.00409b92
lea ecx, [esi + 0x10]
call fcn.00409b92
mov eax, dword [esi + 0xc]
sub eax, 0x10
call fcn.00404645
pop edi
leave
ret

Function at 0x40e3fb
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x458090]
xor eax, ebp
mov dword [ebp + 0x18c], eax
mov eax, dword [edi + 0xc]
cmp dword [eax - 0xc], 0
je 0x40e482
push 0x104
lea eax, [ebp - 0x7c]
push eax
push dword [0x45a164]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40e482
push esi
lea esi, [eax + eax]
xor eax, eax
and dword [ebp - 0x80], eax
mov word [ebp + esi - 0x7c], ax
lea eax, [ebp - 0x80]
push eax
push 0x44bb5c
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
cmp dword [ebp - 0x80], 0
je 0x40e481
add esi, 2
push esi
lea eax, [ebp - 0x7c]
push eax
push 1
push 0
push dword [edi + 0xc]
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
call fcn.0043189b
add ebp, 0x190
leave
ret

Function at 0x40e793
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x45a140
call fcn.0040462a
movzx ebx, word [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0
push 0x44ae70
push 2
push ebx
call edi
mov esi, eax
lea eax, [esi - 1]
push eax
push 0x78
pop ecx
lea edx, [ebp - 4]
call fcn.0040a9b6
push esi
lea esi, [ebp - 4]
call fcn.00402073
push eax
push 2
push ebx
call edi
mov esi, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push 0x44bc94
push dword [ebp + 8]
call fcn.00409762
add esp, 0x10
lea eax, [esi - 0x10]
call fcn.00404645
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e804
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push esi
mov word [ebx], ax
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, dword [ebp + 8]
mov word [ecx], ax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ecx, dword [ebp + 0xc]
lea esi, [ebp + 0xc]
mov word [ecx], ax
call fcn.004102ac
push str.Windows_2000
push eax
call fcn.00409051
test eax, eax
mov eax, dword [ebp + 0xc]
setge byte [ebp + 0xb]
add eax, 0xfffffff0
call fcn.00404645
cmp byte [ebp + 0xb], 0
je 0x40e88a
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetSystemDefaultUILanguage
push eax
mov dword [ebp + 8], eax
call esi
test eax, eax
je 0x40e877
call eax
mov word [edi], ax
push str.GetUserDefaultUILanguage
push dword [ebp + 8]
call esi
test eax, eax
je 0x40e88a
call eax
mov word [ebx], ax
pop esi
pop ebp
ret

Function at 0x40edff
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
push edi
push dword [ebp + 8]
lea edi, [esi + 4]
mov eax, edi
call fcn.0040ed89
xor eax, eax
cmp byte [esi + 0xc], al
je 0x40ee24
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x40ee48
cmp dword [edi], eax
je 0x40ee48
lea ecx, [ebp + 8]
push ecx
push eax
push esi
push 0x40ee6c
push eax
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
add esi, 0x10
mov edi, eax
call fcn.00408e65
pop edi
pop esi
pop ebp
ret 4

Function at 0x40ef9d
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x40f024
push esi
call fcn.004318aa
mov edi, eax
pop ecx
test edi, edi
jne 0x40efdc
push 8
pop esi
push edi
call fcn.004318b5
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret
push edi
push esi
push dword [ebp - 0xc]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40f024
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x44b8d0
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40f02d
cmp dword [ebp - 0x10], 0
je 0x40f02d
mov eax, dword [ebp - 8]
test ebx, ebx
je 0x40f016
mov ecx, dword [eax + 8]
mov dword [ebx], ecx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40f02d
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
jmp 0x40f02d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
jmp 0x40efcf
Function at 0x40f032
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebx]
push esi
push edi
sub eax, 0x10
call fcn.00409c7d
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
lea esi, [ebp - 4]
call fcn.00402073
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x40f158
push esi
call fcn.004318aa
mov edi, eax
pop ecx
test edi, edi
jne 0x40f084
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00404645
push edi
jmp 0x40f165
push edi
push esi
push dword [ebp - 0xc]
lea esi, [ebp - 4]
call fcn.00402073
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40f073
mov eax, dword [0x45a140]
mov ecx, 0x45a140
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40f0de
cmp dword [ebp - 0x10], 0
je 0x40f0de
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push 0x44bd40
push ecx
push eax
jmp 0x40f0ed
push 0x44bd40
push 0x4e2
push 0x409
lea eax, [ebp - 8]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.00409762
add esp, 0x14
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea esi, [ebp - 8]
call fcn.00402073
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40f148
cmp dword [ebp - 0x18], 0
je 0x40f148
push dword [ebp - 0x1c]
push ebx
call fcn.00404539
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404645
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00404645
push edi
call fcn.004318b5
mov al, 1
jmp 0x40f16c
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404645
jmp 0x40f073
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00404645
push 0
call fcn.004318b5
xor al, al
pop ecx
pop edi
pop esi
leave
ret
Function at 0x40f328
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
push esi
mov dword [ebp - 4], 0xc8
call fcn.004318b5
pop ecx
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], esi
call fcn.0040dcd9
mov ebx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push ebx
lea ecx, [ebp - 0xc]
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push dword [ebp + 8]
call esi
mov edi, 0xea
jmp 0x40f3a9
add dword [ebp - 4], 2
push ebx
call fcn.004318b5
and dword [ebp - 8], 0
pop ecx
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040dcd9
mov ebx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push ebx
lea ecx, [ebp - 0xc]
push ecx
push 0
push eax
push dword [ebp + 8]
call esi
cmp eax, edi
je 0x40f375
test eax, eax
je 0x40f3c4
mov byte [ebp + 0xf], 0
push ebx
call fcn.004318b5
mov al, byte [ebp + 0xf]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 0xc]
cmp eax, 1
je 0x40f3f3
cmp eax, 2
je 0x40f3f3
cmp eax, 7
je 0x40f3f3
cmp eax, 4
jne 0x40f3b1
push dword [ebx]
push 0x44bdc4
push dword [ebp + 0x10]
call fcn.00409762
add esp, 0xc
mov byte [ebp + 0xf], 1
jmp 0x40f3b5
shr dword [ebp - 4], 1
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [ebx + ecx*2], ax
mov edi, dword [ebp - 4]
jmp 0x40f408
dec edi
mov dword [ebp - 4], edi
cmp word [ebx + edi*2], ax
je 0x40f404
inc edi
push ebx
mov ecx, 0x45a140
lea esi, [ebp + 0xc]
mov dword [ebp - 4], edi
call fcn.004091fd
mov edi, dword [ebp + 0x10]
mov eax, esi
call fcn.00408905
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00404645
jmp 0x40f3ed
Function at 0x40f437
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [eax]
push ebx
push esi
push edi
sub eax, 0x10
call fcn.00409c7d
mov edi, eax
add edi, 0x10
xor ebx, ebx
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ebx
jmp 0x40f4d9
mov ecx, dword [edi - 0xc]
lea eax, [esp + 0x14]
lea edx, [esi + 1]
push eax
sub ecx, edx
lea eax, [esp + 0x10]
call fcn.00408d0f
mov eax, dword [edi - 0xc]
sub eax, esi
push esi
lea ecx, [esp + 0x10]
call fcn.00408946
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
push edi
push 0x80000001
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [esp + 0x18], ebx
je 0x40f4f0
mov esi, dword [esp + 0x14]
push esi
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x40f4f9
inc dword [esp + 0x10]
cmp dword [esp + 0x18], ebx
je 0x40f4d1
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
lea eax, [esi - 0x10]
call fcn.00404645
push 0x5c
lea esi, [esp + 0x10]
call fcn.00408c79
mov esi, eax
cmp esi, ebx
jge 0x40f45e
jmp 0x40f515
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
jmp 0x40f510
cmp dword [esp + 0x18], ebx
je 0x40f50d
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
lea eax, [esi - 0x10]
call fcn.00404645
lea eax, [edi - 0x10]
call fcn.00404645
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40f72b
Capabilities:
Get file size

Disassembly:
mov eax, dword [eax]
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f75a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40f772
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test esi, esi
je 0x40f770
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x40f8e1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
lea eax, [ebp - 0x60]
push ebx
push eax
mov dword [ebp - 0x64], 0x44
call fcn.004318c0
xor eax, eax
mov dword [ebp - 0x1c], ebx
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
mov dword [ebp - 0xc], ebx
mov byte [ebp - 8], bl
cmp byte [ebp + 0x18], bl
je 0x40f920
lea esi, [ebp - 0xc]
call fcn.004245b1
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [edx - 0xc]
neg ecx
sbb ecx, ecx
and ecx, edx
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x64]
push edx
push ebx
push ebx
push dword [ebp + 0x14]
push ebx
push ebx
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40f967
lea esi, [ebp - 0xc]
call fcn.00424595
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
cmp dword [ebp + 0x10], ebx
je 0x40f983
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x40f958

Function at 0x40f990
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push edi
push 0x38
mov edi, eax
xor ebx, ebx
lea eax, [ebp - 0x38]
push ebx
push eax
call fcn.004318c0
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x400
cmp dword [ebp + 0xc], ebx
je 0x40f9c5
mov dword [ebp - 0x38], 0x440
push esi
mov esi, dword [edi]
push edi
call fcn.0040a4d0
pop ecx
test al, al
je 0x40f9d6
add esi, 8
xor eax, eax
cmp byte [ebp + 0x10], bl
mov dword [ebp - 0x2c], esi
sete al
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], ebx
je 0x40f9f8
mov dword [ebp - 0x28], eax
mov eax, edi
lea edi, [ebp + 0x10]
call fcn.00409f0c
mov edi, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
mov esi, edi
call fcn.0040a4d0
pop ecx
test al, al
je 0x40fa18
lea esi, [edi + 8]
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x24], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop esi
test eax, eax
jne 0x40fa38
lea eax, [edi - 0x10]
call fcn.00404645
pop edi
mov al, bl
pop ebx
leave
ret
cmp dword [ebp + 0xc], ebx
je 0x40fa59
cmp dword [ebp - 4], ebx
je 0x40fa67
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 4], ebx
je 0x40fa67
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x40fa2a