joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410730
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x5a517b
push eax
mov eax, 0x8004
mov dword fs:[0], esp
call fcn.005747d0
mov eax, dword [0x628100]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ebp, 1
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x8024]
mov dword [esp + 0x801c], 0
test ebx, ebx
jne 0x41077d
xor ebp, ebp
jmp 0x4107e4
mov ecx, ebx
call fcn.0058e164
mov esi, dword [esi + 4]
lea ecx, [esp + 0x14]
push esi
push 0x7fff
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov edi, eax
cmp edi, 0x7ffd
jne 0x4107a6
xor ebp, ebp
jmp 0x4107e4
lea ecx, [esp + 0x10]
call fcn.0058f66a
xor esi, esi
dec edi
test edi, edi
jle 0x4107e4
mov al, byte [esp + esi + 0x14]
test al, al
jne 0x4107d5
lea edx, [esp + 0x10]
mov ecx, ebx
push edx
call fcn.0058e311
lea ecx, [esp + 0x10]
call fcn.0058f66a
jmp 0x4107df
push eax
lea ecx, [esp + 0x14]
call fcn.0058fae2
inc esi
cmp esi, edi
jl 0x4107b6
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4107fb
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebx
call fcn.0058e311
lea ecx, [esp + 0x10]
mov dword [esp + 0x801c], 0xffffffff
call fcn.0058f6df
mov ecx, dword [esp + 0x8014]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x8010
ret 4

Function at 0x4108cf
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a51ed
push eax
mov eax, 0x2008
mov dword fs:[0], esp
call fcn.005747d0
push esi
mov esi, ecx
mov dword [esp + 8], 0
mov dword [esp + 0x2014], 1
mov eax, dword [0x628100]
mov dword [esp + 4], eax
lea ecx, [esp + 4]
mov byte [esp + 0x2014], 4
call fcn.0058f66a
mov esi, dword [esi + 4]
mov edx, dword [esp + 0x2028]
mov eax, dword [esp + 0x2024]
push esi
lea ecx, [esp + 0x10]
push 0x2000
push ecx
mov ecx, dword [esp + 0x202c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0xc]
lea ecx, [esp + 4]
push edx
call fcn.0058f868
mov esi, dword [esp + 0x201c]
lea eax, [esp + 4]
push eax
mov ecx, esi
call fcn.0058f454
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x2014], 3
call fcn.0058f6df
lea ecx, [esp + 0x2020]
mov byte [esp + 0x2014], 2
call fcn.0058f6df
lea ecx, [esp + 0x2024]
mov byte [esp + 0x2014], 1
call fcn.0058f6df
lea ecx, [esp + 0x2028]
mov byte [esp + 0x2014], 0
call fcn.0058f6df
mov ecx, dword [esp + 0x200c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2014
ret 0x10
Function at 0x410a30
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x5a5249
push eax
mov eax, 0x8014
mov dword fs:[0], esp
call fcn.005747d0
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [0x628100]
xor esi, esi
mov dword [esp + 0x802c], esi
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x8038]
mov byte [esp + 0x802c], 3
cmp ebx, esi
jne 0x410adb
lea ecx, [esp + 0x18]
mov byte [esp + 0x802c], 2
call fcn.0058f6df
lea ecx, [esp + 0x10]
mov byte [esp + 0x802c], 1
call fcn.0058f6df
lea ecx, [esp + 0x14]
mov byte [esp + 0x802c], 0
call fcn.0058f6df
lea ecx, [esp + 0x8034]
mov dword [esp + 0x802c], 0xffffffff
call fcn.0058f6df
xor eax, eax
jmp 0x410c10
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x8034]
push eax
lea eax, [esp + 0x28]
push 0x7fff
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov edi, eax
cmp edi, 0x7ffd
jne 0x410b07
mov dword [esp + 0x1c], esi
jmp 0x410b77
lea ecx, [esp + 0x14]
call fcn.0058f66a
dec edi
test edi, edi
jle 0x410b77
mov al, byte [esp + esi + 0x24]
test al, al
jne 0x410b68
lea ecx, [esp + 0x10]
call fcn.0058f66a
lea ecx, [esp + 0x18]
call fcn.0058f66a
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.0058f454
mov ecx, ebp
call fcn.00410c30
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call fcn.0058e311
lea ecx, [esp + 0x14]
call fcn.0058f66a
jmp 0x410b72
push eax
lea ecx, [esp + 0x18]
call fcn.0058fae2
inc esi
cmp esi, edi
jl 0x410b15
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
test eax, eax
je 0x410bc2
lea ecx, [esp + 0x10]
call fcn.0058f66a
lea ecx, [esp + 0x18]
call fcn.0058f66a
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.0058f454
mov ecx, ebp
call fcn.00410c30
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call fcn.0058e311
lea ecx, [esp + 0x18]
mov byte [esp + 0x802c], 2
call fcn.0058f6df
lea ecx, [esp + 0x10]
mov byte [esp + 0x802c], 1
call fcn.0058f6df
lea ecx, [esp + 0x14]
mov byte [esp + 0x802c], 0
call fcn.0058f6df
lea ecx, [esp + 0x8034]
mov dword [esp + 0x802c], 0xffffffff
call fcn.0058f6df
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x8024]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x8020
ret 8
Function at 0x411820
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a54f7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov dword [esp + 0x1c], 0
push str..bak
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 2
call fcn.0058f74d
mov eax, dword [0x628100]
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
push ecx
lea eax, [esp + 0xc]
push edx
push eax
mov byte [esp + 0x34], 4
call fcn.0058f90e
mov bl, 5
push 0x5c
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2c], bl
xor esi, esi
call fcn.0058c734
push 0x600360
lea ecx, [esp + 0x3c]
call fcn.0058fabb
lea ecx, [esp + 8]
lea edx, [esp + 0x38]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
call fcn.0058f90e
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 6
call fcn.0058f818
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.0058f6df
mov ecx, dword [esp + 0xc]
push esi
push ecx
call fcn.00573a22
add esp, 8
cmp eax, 0xffffffff
je 0x41197a
cmp esi, 0x7d0
jge 0x41197a
inc esi
lea edx, [esp + 0x10]
push esi
push str..bak_d
push edx
call fcn.0058c6ce
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x14]
push eax
push ecx
push edx
call fcn.0058f90e
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 7
call fcn.0058f818
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.0058f6df
lea eax, [esp + 8]
lea ecx, [esp + 0x38]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.0058f90e
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 8
call fcn.0058f818
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.0058f6df
mov eax, dword [esp + 0xc]
push 0
push eax
call fcn.00573a22
add esp, 8
cmp eax, 0xffffffff
jne 0x4118e2
mov esi, dword [esp + 0x30]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.0058f454
mov ebx, 1
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x28], 4
call fcn.0058f6df
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 3
call fcn.0058f6df
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
call fcn.0058f6df
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], bl
call fcn.0058f6df
lea ecx, [esp + 0x38]
mov byte [esp + 0x28], 0
call fcn.0058f6df
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x4119f0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 4]
push esi
xor esi, esi
push eax
push 0x2001f
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionSharedDLLs
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x411a79
lea ecx, [esp + 0xc]
mov dword [esp + 4], eax
lea edx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push eax
push 0
mov esi, 4
push ecx
push edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 8]
inc eax
mov dword [esp + 4], eax
lea eax, [esp + 4]
push esi
push eax
push esi
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 1
lea ecx, [esp + 0x18]
call fcn.0058f6df
mov eax, esi
pop esi
add esp, 0x10
ret 4
Function at 0x413060
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5a58a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], 1
push eax
mov edi, 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4131d9
test al, 6
je 0x4130a9
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4130c9
mov eax, dword [esp + 0x28]
push 0
push eax
call fcn.00573a22
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 8
test eax, eax
jne 0x413128
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4130e9
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call fcn.0058f454
mov ecx, esi
call fcn.004139a0
sub dword [esi + 0x50], eax
jmp 0x4131db
mov eax, dword [esp + 0x28]
push 0x80
push eax
call ebp
test eax, eax
je 0x413108
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x413128
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call fcn.0058f454
mov ecx, esi
call fcn.004139a0
sub dword [esi + 0x50], eax
jmp 0x4131d9
push ecx
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x10], esp
push eax
call fcn.0058f454
mov ecx, esi
call fcn.004139a0
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
mov dword [esi + 0x5c], eax
call fcn.0058f454
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
mov byte [esp + 0x28], 2
call fcn.0058f454
mov ecx, esi
mov byte [esp + 0x24], 1
call fcn.004134c0
test eax, eax
je 0x4131d9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4131db
mov ecx, dword [esp + 0x24]
push 0x80
push ecx
call ebp
test eax, eax
je 0x4131c1
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ecx
test eax, eax
mov dword [esp + 0x14], esp
mov ecx, esp
jne 0x4131ae
push str.Failed_to_delete_file_after_copy
jmp 0x4131cd
lea edx, [esp + 0x28]
push edx
call fcn.0058f454
mov ecx, esi
call fcn.00413a70
jmp 0x4131db
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.Failed_to_set_source_file_attribute_to_normal_durign_move
call fcn.0058f74d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
xor edi, edi
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 0
call fcn.0058f6df
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0058f6df
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x14
ret 8
Function at 0x413210
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a5907
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], 1
mov eax, dword [0x628100]
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0x2c]
lea ecx, [esp + 8]
push eax
mov byte [esp + 0x24], 5
call fcn.0058f818
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 8]
call fcn.0058f818
lea ecx, [esp + 4]
call fcn.0058fc01
lea edx, [esp + 0x30]
lea ecx, [esp + 0xc]
push edx
call fcn.0058f818
lea ecx, [esp + 0xc]
call fcn.0058fc01
mov eax, dword [esp + 4]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4132ff
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4132ff
push eax
lea ecx, [esp + 8]
call fcn.0058c348
test eax, eax
jne 0x4132ff
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx - 8]
mov esi, dword [eax - 8]
cmp edx, esi
jg 0x4132ff
mov eax, esi
lea ecx, [esp + 0x10]
sub eax, edx
push eax
push ecx
lea ecx, [esp + 0x34]
call fcn.0058c232
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 6
call fcn.0058f818
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 5
call fcn.0058f6df
push 0x600360
lea ecx, [esp + 0xc]
call fcn.0058c7c2
mov esi, dword [esp + 0x28]
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.0058f454
mov dword [esp + 0x14], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 4
call fcn.0058f6df
lea ecx, [esp + 4]
mov byte [esp + 0x20], 3
call fcn.0058f6df
lea ecx, [esp + 8]
mov byte [esp + 0x20], 2
call fcn.0058f6df
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 1
call fcn.0058f6df
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], 0
call fcn.0058f6df
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc

Function at 0x413900
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5a5a38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x58]
mov edx, dword [esi + 0x50]
push eax
mov eax, dword [esi + 0x54]
push ecx
push edx
push eax
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
mov dword [esp + 0x2c], 1
call fcn.0058f454
push ecx
lea eax, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov byte [esp + 0x30], 2
call fcn.0058f454
mov edx, dword [esi]
mov ecx, esi
mov byte [esp + 0x2c], 1
call dword [edx + 8]
lea ecx, [esp + 0x1c]
mov esi, eax
mov byte [esp + 0x14], 0
call fcn.0058f6df
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.0058f6df
mov ecx, dword [esp + 0xc]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x14
ret 8
Function at 0x413a70
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x5a5a98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov eax, dword [0x628100]
mov dword [esp + 0x18], 0
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea esi, [ecx + 4]
push 0x5c
mov ecx, esi
mov byte [esp + 0x1c], 2
call fcn.0058c326
cmp eax, 0xffffffff
je 0x413aec
push eax
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.0058c2ae
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 3
call fcn.0058f818
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 2
call fcn.0058f6df
push 0x600360
lea ecx, [esp + 0xc]
call fcn.0058c6e1
push 0x5c
lea ecx, [esp + 0x24]
call fcn.0058c326
cmp eax, 0xffffffff
pop esi
je 0x413b5d
lea ecx, [esp + 8]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.0058c2ae
push eax
lea ecx, [esp + 4]
mov byte [esp + 0x18], 4
call fcn.0058f818
lea ecx, [esp + 8]
mov byte [esp + 0x14], 2
call fcn.0058f6df
mov edx, dword [esp]
push 0
push edx
call fcn.00573a22
add esp, 8
test eax, eax
jne 0x413b5d
mov eax, dword [esp]
mov ecx, dword [esp + 4]
push eax
push ecx
call fcn.00573e3e
add esp, 8
test eax, eax
je 0x413b5d
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 4]
mov byte [esp + 0x14], 1
call fcn.0058f6df
lea ecx, [esp]
mov byte [esp + 0x14], 0
call fcn.0058f6df
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.0058f6df
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x414b80
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x5a5d68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov eax, dword [0x628100]
mov dword [esp + 0x18], 0
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea esi, [ecx + 4]
push 0x5c
mov ecx, esi
mov byte [esp + 0x1c], 2
call fcn.0058c326
cmp eax, 0xffffffff
je 0x414bfc
push eax
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.0058c2ae
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 3
call fcn.0058f818
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 2
call fcn.0058f6df
push 0x600360
lea ecx, [esp + 0xc]
call fcn.0058c6e1
push 0x5c
lea ecx, [esp + 0x24]
call fcn.0058c326
cmp eax, 0xffffffff
pop esi
je 0x414c6d
lea ecx, [esp + 8]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.0058c2ae
push eax
lea ecx, [esp + 4]
mov byte [esp + 0x18], 4
call fcn.0058f818
lea ecx, [esp + 8]
mov byte [esp + 0x14], 2
call fcn.0058f6df
mov edx, dword [esp]
push 0
push edx
call fcn.00573a22
add esp, 8
test eax, eax
jne 0x414c6d
mov eax, dword [esp]
mov ecx, dword [esp + 4]
push eax
push ecx
call fcn.00573e3e
add esp, 8
test eax, eax
je 0x414c6d
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 4]
mov byte [esp + 0x14], 1
call fcn.0058f6df
lea ecx, [esp]
mov byte [esp + 0x14], 0
call fcn.0058f6df
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.0058f6df
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4

Function at 0x414cb0
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x5a5da8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov eax, dword [0x628100]
mov dword [esp + 0x1c], 0
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea esi, [ecx + 4]
mov bl, 2
push 0x5c
mov ecx, esi
mov byte [esp + 0x20], bl
call fcn.0058c326
cmp eax, 0xffffffff
je 0x414d1f
push eax
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.0058c2ae
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 3
call fcn.0058f818
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], bl
call fcn.0058f6df
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0xc]
call fcn.0058f818
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push edx
call esi
push 0x5c
lea ecx, [esp + 0xc]
call fcn.0058c326
cmp eax, 0xffffffff
je 0x414da2
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
call fcn.0058c2ae
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 4
call fcn.0058f818
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], bl
call fcn.0058f6df
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ecx
push edx
call fcn.00574123
add esp, 8
test eax, eax
je 0x414d92
mov eax, dword [esp + 8]
push eax
call esi
push 0x5c
lea ecx, [esp + 0xc]
call fcn.0058c326
cmp eax, 0xffffffff
jne 0x414d4a
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 1
call fcn.0058f6df
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 0
call fcn.0058f6df
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0058f6df
mov ecx, dword [esp + 0x14]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x415330
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a5edb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x628100]
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 4]
mov dword [ecx], eax
xor edi, edi
push 0x62cce0
mov dword [esp + 0x1c], edi
call fcn.0058f868
lea ecx, [esp + 0xc]
or eax, 0xffffffff
push ecx
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], eax
mov dword [esi + 8], eax
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi], edi
call fcn.0058ca0f
lea edx, [esp + 0xc]
push edx
call fcn.0058ca0f
lea eax, [esp + 0xc]
push eax
call fcn.0058ca0f
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4153c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a5f00
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x20]
xor ebx, ebx
lea eax, [edi + 0x2c]
mov dword [esp + 0x18], ebx
push eax
push ecx
push edx
call fcn.0058f974
push eax
lea ecx, [esi + 4]
mov byte [esp + 0x1c], 1
call fcn.0058f818
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], bl
call fcn.0058f6df
mov eax, dword [edi]
push 1
mov dword [esi + 8], eax
mov ecx, dword [edi + 0x1c]
push ebx
push ebx
push ecx
call fcn.00574350
mov ecx, dword [edi + 0x20]
xor ebp, ebp
add eax, ecx
push 0xffffffffffffffff
adc edx, ebp
lea ecx, [esp + 0x24]
mov dword [esi + 0x14], edx
lea edx, [edi + 4]
push edx
mov dword [esi + 0x10], eax
mov dword [esi + 0x30], ebx
mov dword [esi + 0x2c], ebx
call fcn.0058c9c3
mov eax, dword [esp + 0x20]
lea ecx, [edi + 0xc]
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x28]
mov dword [esi + 0x18], eax
call fcn.0058c9c3
mov edx, dword [esp + 0x20]
add edi, 0x14
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x28]
mov dword [esi + 0x1c], edx
call fcn.0058c9c3
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x20], eax
mov dword [esi], ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call fcn.0058f6df
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0xc
Function at 0x4170cd
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a6280
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x628100]
push esi
mov esi, ecx
mov dword [esp + 4], eax
lea ecx, [esi + 4]
mov dword [esp + 0x14], 0
call fcn.0058e164
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.004173b0
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x18], 1
call fcn.0058f818
lea ecx, [esp + 8]
mov byte [esp + 0x14], 0
call fcn.0058f6df
push 1
lea ecx, [esp + 8]
call fcn.0058fb0f
mov dword [esi + 0x30], eax
add esi, 0x20
push esi
call fcn.005525b0
push 0xffffffffffffffff
lea ecx, [esp + 8]
mov esi, eax
call fcn.0058fb5e
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0058f6df
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x417c50
Capabilities:
Access peb ldr_data
Check os version
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5a646e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x628100]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea edi, [esi + 0x30]
mov dword [edi], eax
xor ebx, ebx
mov ebp, 1
push str.Unknown_OS
mov ecx, edi
mov dword [esp + 0xb4], ebx
mov dword [esi], vtable.CIROSVersionInfo.0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebp
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.0058f868
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x417db1
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x20], eax
dec eax
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], edx
je 0x417d64
dec eax
jne 0x417db4
mov edx, dword [esp + 0x20]
cmp ecx, 3
mov dword [esi + 0x2c], edx
jne 0x417d15
push str.Windows_NT_3
mov ecx, edi
call fcn.0058f868
mov dword [esi + 0x10], ebp
cmp dword [esi + 0x24], 4
jne 0x417d2a
push str.Windows_NT_4
mov ecx, edi
call fcn.0058f868
mov dword [esi + 0x14], ebp
cmp dword [esi + 0x24], 5
jne 0x417db4
cmp dword [esi + 0x28], ebx
jne 0x417d48
push str.Windows_2000
mov ecx, edi
call fcn.0058f868
mov dword [esi + 0x18], ebp
cmp dword [esi + 0x24], 5
jne 0x417db4
cmp dword [esi + 0x28], ebx
jbe 0x417db4
push str.Windows_XP
mov ecx, edi
call fcn.0058f868
mov dword [esi + 0x1c], ebp
jmp 0x417db4
mov eax, dword [esp + 0x20]
and eax, 0xffff
cmp ecx, 4
mov dword [esi + 0x2c], eax
ja 0x417d8c
jne 0x417d7b
cmp edx, ebx
ja 0x417d8c
push str.Windows_95
mov ecx, edi
mov dword [esi + 4], ebp
call fcn.0058f868
jmp 0x417db4
cmp edx, 0xa
mov ecx, edi
ja 0x417da2
push str.Windows_98
mov dword [esi + 8], ebp
call fcn.0058f868
jmp 0x417db4
push str.Windows_ME
mov dword [esi + 0xc], ebp
call fcn.0058f868
jmp 0x417db4
mov dword [esi + 4], ebp
mov ecx, dword [esp + 0xa8]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret