joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406d18
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406f48
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406d9b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406f48
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406d9b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406f64
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406e24
xor eax, eax
push ebp
push 0x406e1d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406b54
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406e02
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406f84
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406e02
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406e24
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x406f3e
cmp byte [ebp - 0xd], 0
jne 0x406e6b
cmp byte [ebp - 0x12], 0
je 0x406f3e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406e84
dec ebx
cmp byte [ebx], 0x2e
je 0x406e93
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406e83
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406f3e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406ed0
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406f3e
cmp byte [ebp - 0xd], 0
je 0x406f3e
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406f3e
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4091ac
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4091fe
test eax, edx
je 0x409201
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x4091c1
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4091e7
add ecx, 4
js 0x4091d7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4091e4
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x40920d
test edx, edx
jne 0x4091b4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004058b0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409af9
test al, 0x10
je 0x409afd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004058b0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409b1d
test al, 0x10
jne 0x409b21
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x409c20
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004058b0
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x409c34
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.004058b0
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x409c56
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40cc28
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40cc61
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00405510
jmp 0x40cc6a
mov eax, ebx
mov edx, esi
call fcn.00405474
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40cc74
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40cc96
movzx eax, byte [esp]
jmp 0x40cc98
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40d328
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d1a0
mov eax, dword [0x4938b4]
cmp byte [eax], 0
je 0x40d3a4
mov eax, dword [0x4936d4]
call fcn.004037dc
call fcn.0040305c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040a1d4
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40d3ec
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d3da
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x49368c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4967f8]
call fcn.00406afc
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x41899c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0x418a34
push 0
mov eax, ebx
call fcn.004058b0
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegCreateKeyExA
mov ebx, eax
test ebx, ebx
jne 0x418a0f
mov ebx, esi
test ebx, ebx
je 0x4189e5
sub ebx, 4
mov ebx, dword [ebx]
inc ebx
push ebx
mov eax, esi
call fcn.004058b0
push eax
push 1
push 0
mov eax, edi
call fcn.004058b0
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
test ebx, ebx
je 0x418a2a
mov ecx, dword [0x4936e8]
mov dl, 1
mov eax, dword [0x417018]
call fcn.0040d4ac
call fcn.00404d2c
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x422480
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004221bc
dec esi
jne 0x4224a2
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x427038
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.00403a6c
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x4939c8]
cmp byte [edx + 0xc], 0
je 0x42709c
mov edx, dword [0x4939c0]
cmp dword [edx], 2
jne 0x42709c
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x4270a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x427158
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.00427038
test al, al
je 0x42713a
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00405510
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x42713a
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004058b0
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueA
mov eax, dword [ebp - 4]
call fcn.004058b0
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00405618
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x4270f3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42715f
lea eax, [ebp - 0x2c]
call fcn.00405420
lea eax, [ebp - 4]
call fcn.00405420
ret

Function at 0x427324
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.00426d5c
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.004058b0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x427383
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4937cc]
mov dl, 1
mov eax, dword [0x426c54]
call fcn.0040d57c
call fcn.00404d2c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42738c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004058b0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4273e4
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4939d8]
mov dl, 1
mov eax, dword [0x426c54]
call fcn.0040d57c
call fcn.00404d2c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00426d8c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x429a94
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x429b3a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00405420
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, esi
call fcn.004058b0
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov ebx, eax
test ebx, ebx
jle 0x429b1e
inc ebx
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x429a6c]
call fcn.00406a10
add esp, 4
push ebx
mov eax, dword [ebp - 4]
push eax
mov eax, esi
call fcn.004058b0
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
test eax, eax
je 0x429b06
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00405618
push 0
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x429a6c]
call fcn.00406a10
add esp, 4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429b41
lea eax, [ebp - 4]
mov edx, dword [0x429a6c]
call fcn.00406a1c
ret

Function at 0x42a4e4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42a635
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4935dc]
cmp byte [eax], 9
jb 0x42a5af
lea eax, [ebp - 4]
mov edx, 0x104
call fcn.00405b40
xor edx, edx
push ebp
push 0x42a5a8
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.004058b0
push eax
push 0
push 0
push 0x23
push 0
call sub.SHFolder.dll_SHGetFolderPathA
test eax, eax
jne 0x42a590
mov eax, dword [ebp - 4]
call fcn.004058b0
mov edx, dword [ebp - 8]
call fcn.0040a374
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x42a56a
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x42a586
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0040e11c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00405474
call fcn.00404dd8
jmp 0x42a617
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a5af
lea eax, [ebp - 4]
xor edx, edx
call fcn.00405b40
ret
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x4936e0]
mov eax, dword [eax]
mov ecx, 0x42a648
mov edx, 0x42a660
call fcn.00428fec
test al, al
je 0x42a617
mov edx, dword [ebp - 8]
mov edx, dword [edx]
mov eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x42a5e3
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x42a617
mov eax, dword [ebp - 8]
mov eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x42a5fb
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
cmp byte [edx + eax - 1], 0x5c
je 0x42a617
mov eax, dword [ebp - 8]
mov edx, 0x42a6ac
call fcn.004056ec
mov eax, dword [ebp - 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a63c
lea eax, [ebp - 0x10]
call fcn.00405420
lea eax, [ebp - 4]
call fcn.00405420
ret
Function at 0x42a6b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42a81a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4935dc]
cmp byte [eax], 9
jb 0x42a777
lea eax, [ebp - 4]
mov edx, 0x104
call fcn.00405b40
xor edx, edx
push ebp
push 0x42a770
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.004058b0
push eax
push 0
push 0
push 0x1a
push 0
call sub.SHFolder.dll_SHGetFolderPathA
test eax, eax
jne 0x42a758
mov eax, dword [ebp - 4]
call fcn.004058b0
mov edx, dword [ebp - 8]
call fcn.0040a374
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x42a732
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x42a74e
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0040e11c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00405474
call fcn.00404dd8
jmp 0x42a7f7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a777
lea eax, [ebp - 4]
xor edx, edx
call fcn.00405b40
ret
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x493778]
mov eax, dword [eax]
mov ecx, 0x42a830
mov edx, 0x42a840
call fcn.00428fec
test al, al
je 0x42a7f7
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00429b50
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.00405474
mov edx, dword [ebp - 8]
mov edx, dword [edx]
mov eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x42a7c3
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x42a7f7
mov eax, dword [ebp - 8]
mov eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x42a7db
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
cmp byte [edx + eax - 1], 0x5c
je 0x42a7f7
mov eax, dword [ebp - 8]
mov edx, 0x42a88c
call fcn.004056ec
mov eax, dword [ebp - 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a821
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00405444
lea eax, [ebp - 4]
call fcn.00405420
ret
Function at 0x42fd00
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov word [ebp - 2], cx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x42fdda
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
mov edx, esi
call fcn.00405618
mov edx, dword [ebp - 0x18]
mov eax, dword [0x499014]
call fcn.0042f1c0
test al, al
je 0x42fd46
mov ebx, 1
jmp 0x42fdc4
push 0
push 0x8000080
push 3
push 0
push 1
push 0xc0000000
push esi
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42fd73
call sub.kernel32.dll_GetLastError_1
mov edx, dword [ebp + 8]
mov dword [edx], eax
xor ebx, ebx
jmp 0x42fdc4
lea eax, [ebp - 0xc]
push eax
movzx eax, word [ebp - 2]
push eax
push edi
call sub.kernel32.dll_DosDateTimeToFileTime
test eax, eax
je 0x42fda7
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFileTimeToFileTime
test eax, eax
je 0x42fda7
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.kernel32.dll_SetFileTime
push ebx
call sub.kernel32.dll_CloseHandle_1
movzx eax, word [ebp + 0xc]
and ax, 0x27
movzx eax, ax
push eax
push esi
call sub.kernel32.dll_SetFileAttributesA
mov ebx, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42fde1
lea eax, [ebp - 0x18]
call fcn.00405420
ret

Function at 0x42fdec
Capabilities:
Delete file
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
push esp
push 0x104
call sub.kernel32.dll_GetTempPathA
test eax, eax
je 0x42fe34
lea eax, [esp + 0x105]
push eax
push 0
push 0x42fe6c
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetTempFileNameA
test eax, eax
je 0x42fe34
lea eax, [esp + 0x105]
call fcn.0040a1d4
cmp ebx, eax
jg 0x42fe38
xor eax, eax
jmp 0x42fe3a
mov al, 1
mov ebx, eax
test bl, bl
je 0x42fe54
lea edx, [esp + 0x105]
mov eax, esi
call fcn.0040a214
push esi
call sub.kernel32.dll_DeleteFileA
movzx eax, bl
mov edx, dword [0x493650]
mov eax, dword [edx + eax*4]
add esp, 0x20c
pop esi
pop ebx
ret
Function at 0x4307ec
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4307f5
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x430932
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
inc dword [ebx + 0x18]
lea ecx, [ebp - 8]
mov edx, dword [ebx + 0x18]
mov eax, esi
call fcn.00430678
mov edx, dword [ebp - 8]
lea eax, [ebx + 0x22]
call fcn.0040a280
lea ecx, [ebp - 0xc]
mov edx, dword [ebx + 0x14]
mov eax, esi
call fcn.004304e4
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0x122]
call fcn.0040a280
lea ecx, [ebp - 0x10]
mov edx, dword [ebx + 0x18]
mov eax, esi
call fcn.004305c0
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x222]
call fcn.0040a280
cmp word [esi + 0x42], 0
je 0x430882
push edi
lea eax, [ebp - 1]
push eax
mov ecx, ebx
mov edx, esi
mov eax, dword [esi + 0x44]
call dword [esi + 0x40]
cmp byte [ebp - 1], 0
jne 0x4308f3
lea eax, [ebp - 0x14]
lea edx, [ebx + 0x222]
mov ecx, pe_nt_image_headers32
call fcn.00405690
mov eax, dword [ebp - 0x14]
call fcn.00409b28
lea eax, [ebp - 0x24]
lea edx, [ebx + 0x222]
mov ecx, pe_nt_image_headers32
call fcn.00405690
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
lea edx, [ebx + 0x122]
mov ecx, pe_nt_image_headers32
call fcn.00405690
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x18]
mov edx, 1
call fcn.0042f714
mov eax, dword [ebp - 0x18]
call fcn.004058b0
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
mov dword [esi + 0x3a2], eax
xor eax, eax
mov dword [esi + 0x3a6], eax
movzx ebx, byte [ebp - 1]
xor bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430939
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00405444
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.00405444
ret
Function at 0x4329d8
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004058a0
xor eax, eax
push ebp
push 0x432c10
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov edx, ebx
call fcn.00405474
mov byte [ebp - 0xd], 0
test ebx, ebx
je 0x432be8
cmp dword [0x4910f4], 0
je 0x432be8
xor eax, eax
push ebp
push 0x432bde
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x432bcd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, 0x432c2c
call fcn.004054b8
mov edx, dword [ebp - 4]
mov eax, 0x432c3c
call fcn.004059fc
mov esi, eax
test esi, esi
jle 0x432a8e
lea eax, [ebp - 8]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00405918
lea eax, [ebp - 4]
mov ecx, esi
mov edx, 1
call fcn.00405958
cmp dword [ebp - 4], 0
jne 0x432aae
mov dl, 1
mov eax, ebx
call fcn.00427908
xor edx, edx
push edx
push eax
lea edx, [ebp - 4]
mov eax, 8
call fcn.00409630
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [0x4910f4]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.0042cb20
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.00405474
mov eax, dword [0x4910f4]
cmp byte [eax + 0x13], 0
je 0x432b1a
push 0x432c48
push dword [ebp - 4]
push 0x432c5c
push ebx
push 0x432c5c
mov eax, dword [ebp - 0xc]
push dword [eax]
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.004057b4
mov eax, dword [ebp - 0x1c]
call fcn.004058b0
push eax
call sub.kernel32.dll_OutputDebugStringA
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x432b67
mov eax, dword [ebp - 0xc]
mov edx, ebx
call fcn.00405474
mov eax, dword [0x4910f4]
cmp byte [eax + 0x11], 0
je 0x432b51
push dword [ebp - 4]
push 0x432c68
mov eax, dword [ebp - 0xc]
push dword [eax]
mov eax, dword [ebp - 0xc]
mov edx, 3
call fcn.004057b4
mov byte [ebp - 0xd], 0
call fcn.00404dd8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x432be8
mov byte [ebp - 0xd], 1
mov eax, dword [0x4910f4]
cmp byte [eax + 0x11], 0
je 0x432b90
push dword [ebp - 4]
push 0x432c74
mov eax, dword [ebp - 0xc]
push dword [eax]
mov eax, dword [ebp - 0xc]
mov edx, 3
call fcn.004057b4
lea eax, [ebp - 8]
call fcn.00405420
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x432bd4
mov eax, dword [0x4910f4]
cmp dword [eax + 0x16], 0
je 0x432bcc
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov ebx, dword [0x4910f4]
call dword [ebx + 0x16]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.00405474
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x432c17
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00405444
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405444
ret