joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406798
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 0x4069c8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40681b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4069c8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40681b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4069e4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4068a4
xor eax, eax
push ebp
push 0x40689d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004065d4
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 0x406882
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406a04
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406882
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 0x4068a4
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 0x4069be
cmp byte [ebp - 0xd], 0
jne 0x4068eb
cmp byte [ebp - 0x12], 0
je 0x4069be
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406904
dec ebx
cmp byte [ebx], 0x2e
je 0x406913
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406903
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4069be
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406950
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 0x4069be
cmp byte [ebp - 0xd], 0
je 0x4069be
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 0x4069be
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 0x408cb8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x408d0a
test eax, edx
je 0x408d0d
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408ccd
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 0x408cf3
add ecx, 4
js 0x408ce3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x408cf0
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 0x408d19
test edx, edx
jne 0x408cc0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405344
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409972
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x409993
cmp ebx, 3
je 0x409993
cmp ebx, 0x7b
je 0x409993
mov eax, esi
call fcn.00409914
test al, al
jne 0x409997
xor eax, eax
jmp 0x409999
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405344
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4099b5
test al, 0x10
jne 0x4099b9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x409ab8
Capabilities:
Get file attributes

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

Function at 0x409acc
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.00405344
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x409aee
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40cf38
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 0x40cf71
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404fc8
jmp 0x40cf7a
mov eax, ebx
mov edx, esi
call fcn.00404f2c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40cf84
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 0x40cfa6
movzx eax, byte [esp]
jmp 0x40cfa8
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40d638
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d4b0
mov eax, dword [0x461190]
cmp byte [eax], 0
je 0x40d6b4
mov eax, dword [0x460fd0]
call fcn.0040372c
call fcn.00403000
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.0040a024
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 0x40d6fc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d6ea
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x460f90]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4647f8]
call fcn.0040657c
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 0x41a5e4
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.0041a320
dec esi
jne 0x41a606
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x41e8a4
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 0x41e93c
push 0
mov eax, ebx
call fcn.00405344
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegCreateKeyExA
mov ebx, eax
test ebx, ebx
jne 0x41e917
mov ebx, esi
test ebx, ebx
je 0x41e8ed
sub ebx, 4
mov ebx, dword [ebx]
inc ebx
push ebx
mov eax, esi
call fcn.00405344
push eax
push 1
push 0
mov eax, edi
call fcn.00405344
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 0x41e932
mov ecx, dword [0x460fe4]
mov dl, 1
mov eax, dword [0x41cfa4]
call fcn.0040d7bc
call fcn.00404850
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x421a48
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.00403884
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 [0x461284]
cmp byte [edx + 0xc], 0
je 0x421aac
mov edx, dword [0x461274]
cmp dword [edx], 2
jne 0x421aac
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 0x421ab0
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 0x421b68
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.00421a48
test al, al
je 0x421b4a
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00404fc8
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x421b4a
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.00405344
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueA
mov eax, dword [ebp - 4]
call fcn.00405344
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.004050d0
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x421b03
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421b6f
lea eax, [ebp - 0x2c]
call fcn.00404ed8
lea eax, [ebp - 4]
call fcn.00404ed8
ret

Function at 0x421c98
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.0042176c
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.00405344
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x421cf7
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4610c0]
mov dl, 1
mov eax, dword [0x421664]
call fcn.0040d88c
call fcn.00404850
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x421d00
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.00405344
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x421d58
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x461294]
mov dl, 1
mov eax, dword [0x421664]
call fcn.0040d88c
call fcn.00404850
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0042179c
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 0x4232e8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov esi, edx
lea edi, [esp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x423344
push esp
push 0x40
push 6
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x423313
call fcn.0040ef74
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
mov ecx, 6
call fcn.00403094
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
push 6
mov eax, dword [esp + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x423344
call fcn.0040ef74
add esp, 0x14
pop edi
pop esi
pop ebx
ret

Function at 0x4294dc
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
lea eax, [ebp - 8]
push eax
push 0x20
call fcn.0042662c
push eax
call fcn.004272c4
xor eax, eax
push ebp
push 0x42952a
push dword fs:[eax]
mov dword fs:[eax], esp
mov cl, 1
mov edx, 0x429544
mov eax, dword [ebp - 8]
call fcn.00429444
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429531
mov eax, dword [ebp - 8]
push eax
call fcn.00426948
ret

Function at 0x42a818
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 0x42a8be
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00404ed8
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, esi
call fcn.00405344
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov ebx, eax
test ebx, ebx
jle 0x42a8a2
inc ebx
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x42a7f0]
call fcn.00406490
add esp, 4
push ebx
mov eax, dword [ebp - 4]
push eax
mov eax, esi
call fcn.00405344
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
test eax, eax
je 0x42a88a
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.004050d0
push 0
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x42a7f0]
call fcn.00406490
add esp, 4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a8c5
lea eax, [ebp - 4]
mov edx, dword [0x42a7f0]
call fcn.0040649c
ret

Function at 0x42ad20
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffdf8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404ed8
push esp
push 0
push 0
push esi
push 0
call sub.SHFolder.dll_SHGetFolderPathA
test eax, 0x80000000
sete al
test al, al
je 0x42ad88
mov edx, ebx
mov eax, esp
call fcn.0040a1a4
cmp dword [ebx], 0
je 0x42ad88
mov eax, dword [ebx]
mov dword [esp + 0x204], eax
mov eax, dword [esp + 0x204]
test eax, eax
je 0x42ad73
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x42ad88
mov eax, ebx
mov edx, 0x42ad9c
call fcn.00405180
add esp, 0x208
pop esi
pop ebx
ret
Function at 0x42b34c
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 0x42b49c
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00429f1c
cmp al, 9
jb 0x42b416
lea eax, [ebp - 4]
mov edx, 0x104
call fcn.004055d4
xor edx, edx
push ebp
push 0x42b40f
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.00405344
push eax
push 0
push 0
push 0x23
push 0
call sub.SHFolder.dll_SHGetFolderPathA
test eax, eax
jne 0x42b3f7
mov eax, dword [ebp - 4]
call fcn.00405344
mov edx, dword [ebp - 8]
call fcn.0040a1a4
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x42b3d1
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x42b3ed
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0040e42c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00404f2c
call fcn.004048fc
jmp 0x42b47e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42b416
lea eax, [ebp - 4]
xor edx, edx
call fcn.004055d4
ret
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x460fd8]
mov eax, dword [eax]
mov ecx, 0x42b4b0
mov edx, 0x42b4c8
call fcn.004289a8
test al, al
je 0x42b47e
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 0x42b44a
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x42b47e
mov eax, dword [ebp - 8]
mov eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x42b462
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
cmp byte [edx + eax - 1], 0x5c
je 0x42b47e
mov eax, dword [ebp - 8]
mov edx, 0x42b514
call fcn.00405180
mov eax, dword [ebp - 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42b4a3
lea eax, [ebp - 0x10]
call fcn.00404ed8
lea eax, [ebp - 4]
call fcn.00404ed8
ret
Function at 0x42b518
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 0x42b681
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00429f1c
cmp al, 9
jb 0x42b5de
lea eax, [ebp - 4]
mov edx, 0x104
call fcn.004055d4
xor edx, edx
push ebp
push 0x42b5d7
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.00405344
push eax
push 0
push 0
push 0x1a
push 0
call sub.SHFolder.dll_SHGetFolderPathA
test eax, eax
jne 0x42b5bf
mov eax, dword [ebp - 4]
call fcn.00405344
mov edx, dword [ebp - 8]
call fcn.0040a1a4
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x42b599
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x42b5b5
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0040e42c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00404f2c
call fcn.004048fc
jmp 0x42b65e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42b5de
lea eax, [ebp - 4]
xor edx, edx
call fcn.004055d4
ret
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x461060]
mov eax, dword [eax]
mov ecx, 0x42b694
mov edx, 0x42b6a4
call fcn.004289a8
test al, al
je 0x42b65e
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0042a8d4
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.00404f2c
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 0x42b62a
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x42b65e
mov eax, dword [ebp - 8]
mov eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x42b642
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
cmp byte [edx + eax - 1], 0x5c
je 0x42b65e
mov eax, dword [ebp - 8]
mov edx, 0x42b6f0
call fcn.00405180
mov eax, dword [ebp - 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42b688
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404efc
lea eax, [ebp - 4]
call fcn.00404ed8
ret
Function at 0x431ac8
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 0x431ba2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
mov edx, esi
call fcn.004050d0
mov edx, dword [ebp - 0x18]
mov eax, dword [0x466ee4]
call fcn.00430f88
test al, al
je 0x431b0e
mov ebx, 1
jmp 0x431b8c
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 0x431b3b
call sub.kernel32.dll_GetLastError_1
mov edx, dword [ebp + 8]
mov dword [edx], eax
xor ebx, ebx
jmp 0x431b8c
lea eax, [ebp - 0xc]
push eax
movzx eax, word [ebp - 2]
push eax
push edi
call sub.kernel32.dll_DosDateTimeToFileTime
test eax, eax
je 0x431b6f
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFileTimeToFileTime
test eax, eax
je 0x431b6f
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 0x431ba9
lea eax, [ebp - 0x18]
call fcn.00404ed8
ret

Function at 0x431bb4
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 0x431bfc
lea eax, [esp + 0x105]
push eax
push 0
push 0x431c34
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetTempFileNameA
test eax, eax
je 0x431bfc
lea eax, [esp + 0x105]
call fcn.0040a024
cmp ebx, eax
jg 0x431c00
xor eax, eax
jmp 0x431c02
mov al, 1
mov ebx, eax
test bl, bl
je 0x431c1c
lea edx, [esp + 0x105]
mov eax, esi
call fcn.0040a064
push esi
call sub.kernel32.dll_DeleteFileA
movzx eax, bl
mov edx, dword [0x460f54]
mov eax, dword [edx + eax*4]
add esp, 0x20c
pop esi
pop ebx
ret
Function at 0x4325b4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4325bd
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 0x4326fa
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.00432440
mov edx, dword [ebp - 8]
lea eax, [ebx + 0x22]
call fcn.0040a0d0
lea ecx, [ebp - 0xc]
mov edx, dword [ebx + 0x14]
mov eax, esi
call fcn.004322ac
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0x122]
call fcn.0040a0d0
lea ecx, [ebp - 0x10]
mov edx, dword [ebx + 0x18]
mov eax, esi
call fcn.00432388
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x222]
call fcn.0040a0d0
cmp word [esi + 0x42], 0
je 0x43264a
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 0x4326bb
lea eax, [ebp - 0x14]
lea edx, [ebx + 0x222]
mov ecx, pe_nt_image_headers32
call fcn.00405148
mov eax, dword [ebp - 0x14]
call fcn.004099c0
lea eax, [ebp - 0x24]
lea edx, [ebx + 0x222]
mov ecx, pe_nt_image_headers32
call fcn.00405148
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.00405148
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x18]
mov edx, 1
call fcn.004314dc
mov eax, dword [ebp - 0x18]
call fcn.00405344
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 0x432701
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00404efc
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.00404efc
ret