joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408320
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x44
call fcn.004017a0
mov eax, dword [0x40c044]
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x25], 0x68466464
mov dword [ebp - 0x21], 0x634d4d72
mov dword [ebp - 0x1d], 0x646e424e
mov dword [ebp - 0x19], 0x6c6b6e77
mov dword [ebp - 0x15], 0x416a5368
mov dword [ebp - 0x11], 0x6c6c642e
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0x25]
mov dword [esp], eax
mov eax, dword [0x40d194]
call eax
sub esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x4083ab
mov eax, dword [0x40d174]
call eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], str.Failed_to_load_DLL._Error_code:__d_n
call fcn.00408434
mov eax, 1
jmp 0x40841a
mov dword [esp + 4], str.EOdJrUqGhMYcActKbrnG
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov eax, dword [0x40d180]
call eax
sub esp, 8
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x408400
mov eax, dword [0x40d174]
call eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
mov dword [esp], str.Failed_to_get_function_address._Error_code:__d_n
call fcn.00408434
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov eax, dword [0x40d170]
call eax
sub esp, 4
mov eax, 1
jmp 0x40841a
mov eax, dword [ebp - 0x34]
call eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov eax, dword [0x40d170]
call eax
sub esp, 4
mov eax, 0
mov edx, dword [ebp - 0xc]
sub edx, dword [0x40c044]
je 0x40842a
call fcn.004016b0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
Function at 0x4019ac
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
sub esp, 0x254
push ebx
push ebp
push esi
mov esi, ecx
push edi
push esi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edi, [esi + eax*2]
push 0x4082a8
push edi
call ebp
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
and word [edi], bx
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x4019f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401ab2
lea eax, [esp + 0x40]
push 0x4082a4
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
je 0x401a65
lea eax, [esp + 0x40]
push 0x40829c
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
je 0x401a65
lea eax, [esp + 0x40]
push eax
push edi
call ebp
test byte [esp + 0x14], 0x10
je 0x401a45
push 0x408260
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, esi
call fcn.004019ac
jmp 0x401a5f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401a61
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x401a8b
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4019f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x12
jne 0x401a8b
xor ebx, ebx
push dword [esp + 0x10]
and word [edi], 0
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
jne 0x401ab0
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x401ab0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x254
ret

Function at 0x403d1e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], edx
mov ebx, ecx
mov edi, dword [esi]
and dword [esi], 0
test edi, edi
je 0x403d77
mov eax, 0x400000
cmp edi, eax
ja 0x403d41
mov eax, edi
lea ecx, [ebp + 8]
push 0
and dword [ebp + 8], 0
push ecx
push eax
push dword [ebp - 4]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 8]
add dword [ebp - 4], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x403d6f
test ecx, ecx
je 0x403d77
test edi, edi
jbe 0x403d77
jmp 0x403d36
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x403d79
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x403d80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], edx
mov ebx, ecx
mov edi, dword [esi]
and dword [esi], 0
test edi, edi
je 0x403dd9
mov eax, 0x400000
cmp edi, eax
ja 0x403da3
mov eax, edi
lea ecx, [ebp + 8]
push 0
and dword [ebp + 8], 0
push ecx
push eax
push dword [ebp - 4]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 8]
add dword [ebp - 4], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x403dd1
test ecx, ecx
je 0x403dd9
test edi, edi
jbe 0x403dd9
jmp 0x403d98
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x403ddb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4054a0
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d0
push esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x4054e0
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4054e0
push 0xc00
call eax
test eax, eax
jne 0x40556d
lea eax, [ebp - 0x2d0]
push 0x106
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40556d
cmp eax, 0x104
ja 0x40556d
cmp word [ebp + eax*2 - 0x2d2], 0x5c
je 0x405513
mov word [ebp + eax*2 - 0x2d0], 0x5c
inc eax
mov esi, dword [str.userenv]
cmp byte [esi], 0
je 0x40556d
push edi
lea edi, [ebp + eax*2 - 0x2d0]
mov eax, edi
mov cl, byte [esi]
inc esi
test cl, cl
je 0x40553a
movzx cx, cl
mov word [eax], cx
inc eax
inc eax
jmp 0x405528
and word [eax + 8], 0
mov word [eax], 0x2e
mov word [eax + 2], 0x64
mov word [eax + 4], 0x6c
mov word [eax + 6], 0x6c
push 8
lea eax, [ebp - 0x2d0]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp byte [esi], 0
jne 0x405526
pop edi
pop esi
leave
ret

Function at 0x407aa1
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
xor esi, esi
mov edx, 0x409040
mov ecx, 0x409440
push 8
mov eax, esi
pop edi
mov ebx, eax
and ebx, 1
neg ebx
and ebx, 0xedb88320
shr eax, 1
xor eax, ebx
dec edi
jne 0x407ab5
mov dword [edx], eax
add edx, 4
inc esi
cmp edx, ecx
jb 0x407ab0
pop edi
pop esi
pop ebx
mov eax, dword [ecx - 0x400]
mov edx, eax
and edx, 0xff
shr eax, 8
mov edx, dword [edx*4 + 0x409040]
xor edx, eax
mov dword [ecx], edx
add ecx, 4
cmp ecx, 0x40c040
jb 0x407ad6
ret
Function at 0x407d70
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
push edi
mov eax, ecx
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
cmp edi, 0x1f
jb 0x407f10
test edx, 3
je 0x407da2
movzx esi, byte [edx]
movzx ebx, al
inc edx
shr eax, 8
xor esi, ebx
xor eax, dword [ebp + esi*4]
dec edi
jmp 0x407d87
xor eax, dword [edx]
lea edi, [edx + edi - 0x1b]
sub edx, edi
lea ebx, [ebx]
mov ecx, dword [edi + edx + 0xc]
mov ebx, dword [edi + edx + 8]
movzx esi, bl
xor ecx, dword [ebp + esi*4 + 0xc00]
movzx esi, bh
shr ebx, 0x10
xor ecx, dword [ebp + esi*4 + 0x800]
movzx esi, bl
shr ebx, 8
xor ecx, dword [ebp + esi*4 + 0x400]
xor ecx, dword [ebp + ebx*4]
mov ebx, dword [edi + edx + 4]
movzx esi, bl
xor ecx, dword [ebp + esi*4 + 0x1c00]
movzx esi, bh
shr ebx, 0x10
xor ecx, dword [ebp + esi*4 + 0x1800]
movzx esi, bl
shr ebx, 8
xor ecx, dword [ebp + esi*4 + 0x1400]
xor ecx, dword [ebp + ebx*4 + 0x1000]
movzx esi, al
mov ebx, eax
shr ebx, 0x18
xor ecx, dword [ebp + esi*4 + 0x2c00]
xor ecx, dword [ebp + ebx*4 + 0x2000]
ror eax, 0x10
movzx esi, al
shr eax, 0x18
xor ecx, dword [ebp + esi*4 + 0x2400]
xor ecx, dword [ebp + eax*4 + 0x2800]
mov eax, dword [edi + edx + 0x18]
mov ebx, dword [edi + edx + 0x14]
movzx esi, bl
xor eax, dword [ebp + esi*4 + 0xc00]
movzx esi, bh
shr ebx, 0x10
xor eax, dword [ebp + esi*4 + 0x800]
movzx esi, bl
shr ebx, 8
xor eax, dword [ebp + esi*4 + 0x400]
xor eax, dword [ebp + ebx*4]
mov ebx, dword [edi + edx + 0x10]
movzx esi, bl
xor eax, dword [ebp + esi*4 + 0x1c00]
movzx esi, bh
shr ebx, 0x10
xor eax, dword [ebp + esi*4 + 0x1800]
movzx esi, bl
shr ebx, 8
xor eax, dword [ebp + esi*4 + 0x1400]
xor eax, dword [ebp + ebx*4 + 0x1000]
movzx esi, cl
mov ebx, ecx
shr ebx, 0x18
xor eax, dword [ebp + esi*4 + 0x2c00]
xor eax, dword [ebp + ebx*4 + 0x2000]
ror ecx, 0x10
movzx esi, cl
shr ecx, 0x18
xor eax, dword [ebp + esi*4 + 0x2400]
xor eax, dword [ebp + ecx*4 + 0x2800]
add edx, 0x18
jae 0x407db0
add edi, 0x18
sub edx, 0x18
movzx ebx, al
movzx ecx, ah
shr eax, 0x10
movzx esi, al
shr eax, 8
mov eax, dword [ebp + eax*4]
xor eax, dword [ebp + ebx*4 + 0xc00]
xor eax, dword [ebp + ecx*4 + 0x800]
xor eax, dword [ebp + esi*4 + 0x400]
add edx, 4
jb 0x407f09
xor eax, dword [edi + edx]
jmp 0x407ed7
add edx, edi
add edi, 3
sub edi, edx
test edi, edi
je 0x407f27
movzx esi, byte [edx]
movzx ebx, al
inc edx
shr eax, 8
xor esi, ebx
xor eax, dword [ebp + esi*4]
dec edi
jne 0x407f14
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x402b25
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x407168
cmp edx, dword [eax]
je 0x402b47
add eax, 8
inc ecx
cmp eax, 0x4071f8
jl 0x402b38
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x407168]
jne 0x402c75
mov eax, dword [0x407948]
cmp eax, 1
je 0x402c4f
test eax, eax
jne 0x402b78
cmp dword [0x4070b4], 1
je 0x402c4f
cmp edx, 0xfc
je 0x402c75
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402baf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403620
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402ff0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402bf2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402ff0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40642c
push edi
call fcn.004043a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403620
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403630
lea eax, [ebp - 0xa0]
push 0x40640c
push eax
call fcn.00403630
push dword [esi + 0x40716c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403630
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040430e
add esp, 0x2c
pop edi
jmp 0x402c75
lea eax, [ebp + 8]
lea esi, [esi + 0x40716c]
push 0
push eax
push dword [esi]
call fcn.00402ff0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x408510
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
cmp dword [0x43120c], 0
mov ebp, esp
push edi
mov ecx, dword [ebp + 0xc]
push esi
push ebx
mov ebx, dword [ebp + 0x10]
jne 0x408551
xor edx, edx
mov eax, edx
mov esi, 8
mov edi, eax
and eax, 1
neg eax
shr edi, 1
and eax, 0xedb88320
xor eax, edi
dec esi
jne 0x40852e
mov dword [edx*4 + 0x431208], eax
inc edx
cmp edx, 0x100
jne 0x408527
mov eax, dword [ebp + 8]
not eax
jmp 0x40856b
mov dl, byte [ecx]
dec ebx
inc ecx
xor edx, eax
movzx edx, dl
shr eax, 8
xor eax, dword [edx*4 + 0x431208]
test ebx, ebx
jne 0x408558
pop ebx
not eax
pop esi
pop edi
pop ebp
ret 0xc

Function at 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
mov ecx, 0xa8016e4
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
mov ecx, 0x112a0ff5
nop
nop
nop
nop
test eax, eax
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
push ebx
push esi
mov esi, dword [0x409104]
push edi
push dword [ebp + 8]
call esi
inc eax
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.00405921
mov edi, dword [ebp + 0xc]
push edi
call esi
inc eax
push eax
push edi
lea eax, [ebp - 0x310]
push eax
call fcn.00405921
push dword [ebp + 0x10]
call esi
inc eax
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x108]
push eax
call fcn.00405921
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp dword [ebp + 0x14], ebx
lea eax, [ebp - 4]
jne 0x401067
lea eax, [ebp - 8]
push eax
push 0x407880
push 1
push ebx
push 0x407890
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x4010fb
cmp dword [ebp + 0x14], ebx
lea edx, [ebp - 0x20c]
push edx
je 0x40109b
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 4]
jmp 0x4010a7
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x108]
push edx
push eax
call dword [ecx + 0x1c]
cmp dword [ebp + 0x14], ebx
mov eax, dword [ebp - 4]
lea edx, [ebp + 8]
push edx
push 0x4078a0
jne 0x4010c8
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
jl 0x4010ea
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push 1
push edi
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp + 0x14], ebx
mov eax, dword [ebp - 4]
jne 0x4010f5
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10

Function at 0x4011f8
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push esi
mov esi, dword [0x409104]
push edi
mov edi, dword [ebp + 8]
push edi
call esi
inc eax
push eax
push edi
lea eax, [ebp - 0x25c]
push eax
call fcn.00405921
push edi
call esi
inc eax
push eax
push edi
lea eax, [ebp - 0x158]
push eax
call fcn.00405921
xor eax, eax
cmp word [0x409dc8], ax
pop edi
pop esi
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x44]
push ecx
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push eax
mov word [ebp - 0x12], ax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x38], eax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x158]
push eax
mov dword [ebp - 0x44], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
leave
ret 4
Function at 0x40144b
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
push ebx
push esi
push edi
push 0xe
pop ecx
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
mov edi, 0x208
push edi
mov dword [ebp - 4], 0x100
mov dword [ebp - 0x40], 0x3c
call fcn.00406886
mov esi, 0x104
push edi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], esi
call fcn.00406886
push edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], esi
call fcn.00406886
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], esi
call fcn.00406886
add esp, 0x10
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x248]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], esi
mov word [ebp - 0x28], 0x50
mov dword [ebp - 0x34], 3
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlW]
mov esi, dword [sym.imp.WININET.dll_InternetCrackUrlW]
lea eax, [ebp - 0x40]
push eax
push 0
push dword [ebp - 4]
lea eax, [ebp - 0x248]
push eax
call esi
test eax, eax
jne 0x40153b
push 0x40717c
push dword [ebp + 8]
call dword [0x409100]
mov edi, dword [0x4090f8]
lea eax, [ebp - 0x248]
push eax
push 0x4071b0
push dword [ebp + 8]
call edi
push eax
call edi
lea eax, [ebp - 0x40]
push eax
push 0
push dword [ebp - 4]
push dword [ebp + 8]
call esi
test eax, eax
je 0x4015cc
mov eax, dword [ebp - 0x14]
cmp word [eax], 0
je 0x4015cc
mov edi, dword [0x409104]
push eax
call edi
mov ecx, dword [ebp - 0x14]
cmp word [ecx + eax*2 - 2], 0x2f
je 0x4015cc
cmp dword [ebp - 8], 0
jbe 0x40156c
push dword [ebp - 0xc]
push ebx
call dword [0x4090f8]
push ebx
call edi
jmp 0x401579
cmp word [ebx + eax*2], 0x2f
je 0x40157d
dec eax
test eax, eax
jg 0x401571
lea esi, [ebx + eax*2 + 2]
push esi
call edi
lea eax, [eax + eax + 2]
push eax
push esi
push dword [ebp + 0x18]
call fcn.004069b0
and word [esi], 0
add esp, 0xc
cmp dword [ebp - 0x34], 3
jne 0x4015a6
push 0x4071ac
jmp 0x4015be
cmp dword [ebp - 0x34], 4
jne 0x4015b3
push 0x4071a8
jmp 0x4015be
cmp dword [ebp - 0x34], 1
jne 0x4015cc
push 0x4071a4
push dword [ebp + 0xc]
call dword [0x409100]
xor eax, eax
inc eax
jmp 0x4015f9
push 0x30
mov esi, str.STRINGTABLECUSTOM
push esi
push 0xb0
call fcn.0040116f
push eax
push esi
push 0xb2
call fcn.0040116f
push eax
push dword [0x409174]
call dword [0x409128]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x18

Function at 0x401600
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 2
pop eax
cmp dword [ebp - 0xc], eax
jne 0x401637
push 4
pop eax
cmp dword [ebp - 0x18], eax
jne 0x401645
cmp dword [ebp - 0x14], 0
jne 0x40165d
xor eax, eax
inc eax
jmp 0x401660
cmp dword [ebp - 0xc], 1
jne 0x40165d
cmp dword [ebp - 0x18], 4
jne 0x40165d
jmp 0x401660
cmp dword [ebp - 0x18], 5
jne 0x401655
cmp dword [ebp - 0x14], 0
jne 0x401657
push 3
jmp 0x40165f
jb 0x40165d
cmp dword [ebp - 0x14], 1
jae 0x401660
push 8
pop eax
add ebp, 0x78
leave
ret
Function at 0x401803
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
cmp dword [0x409160], 0
je 0x401829
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x4090dc]
jmp 0x401859
push dword [ebp + 8]
call dword [0x409104]
inc eax
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.00405921
push dword [ebp + 0x14]
lea eax, [ebp - 0x104]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
leave
ret 0x10

Function at 0x4018bd
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
cmp dword [0x409160], 0
je 0x4018e9
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x4090c0]
jmp 0x40191f
push dword [ebp + 0xc]
call dword [0x409104]
inc eax
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push eax
call fcn.00405921
push dword [ebp + 0x1c]
lea eax, [ebp - 0x208]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
leave
ret 0x18

Function at 0x401aa2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
cmp dword [0x409160], 0
je 0x401acb
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x4090bc]
jmp 0x401b13
push esi
push dword [ebp + 0xc]
call dword [0x409104]
inc eax
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x64]
push eax
call fcn.00405921
push dword [ebp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0
push dword [ebp + 0x14]
lea eax, [ebp - 0x64]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call esi
push dword [ebp + 0x1c]
lea eax, [ebp - 0x64]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call esi
pop esi
leave
ret 0x18

Function at 0x401b72
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
cmp dword [0x409160], 0
je 0x401b92
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x4090c4]
jmp 0x401bbc
push dword [ebp + 8]
call dword [0x409104]
inc eax
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call fcn.00405921
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
leave
ret 8
Function at 0x401c26
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
call fcn.00401600
cmp eax, 1
je 0x401c83
cmp eax, 2
jle 0x401c44
cmp eax, 4
jle 0x401c83
lea eax, [ebp - 4]
push eax
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x401c7c
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 4]
call fcn.004017ab
test eax, eax
je 0x401c7c
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.004057d6
test eax, eax
jne 0x401cc9
xor eax, eax
pop esi
leave
ret 8
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 4]
push eax
push 0x10
push 0
call esi
test eax, eax
jne 0x401c7c
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 4]
call fcn.004017ab
test eax, eax
je 0x401c7c
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.004057d6
test eax, eax
je 0x401c7c
lea eax, [ebp - 4]
push eax
push 0x19
push 0
call esi
jmp 0x401c52
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
call dword [0x409100]
xor eax, eax
inc eax
jmp 0x401c7e

Function at 0x401e1e
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
cmp dword [0x409160], 0
je 0x401e3e
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x4090ec]
jmp 0x401e86
push esi
push dword [ebp + 8]
mov esi, dword [0x409104]
call esi
inc eax
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call fcn.00405921
push dword [ebp + 0xc]
call esi
inc eax
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call fcn.00405921
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
pop esi
leave
ret 8

Function at 0x401e8a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
cmp dword [0x409160], 0
push dword [ebp + 8]
je 0x401ea7
call dword [0x4090d4]
jmp 0x401ecb
call dword [0x409104]
inc eax
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.00405921
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
leave
ret 4