joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423d00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov edx, dword [ebx]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp + 8]
push 4
push ecx
xor eax, eax
push 4
mov al, byte [esi + 0x10]
push 0
push str.base
push edx
mov dword [ebp + 8], eax
call edi
mov edx, dword [ebx]
lea ecx, [ebp + 8]
push 4
push ecx
xor eax, eax
push 4
mov al, byte [esi + 0x11]
push 0
push str.width
push edx
mov dword [ebp + 8], eax
call edi
mov edx, dword [ebx]
lea ecx, [ebp + 8]
push 4
push ecx
xor eax, eax
push 4
mov ax, word [esi]
push 0
push str.flags
push edx
mov dword [ebp + 8], eax
call edi
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x423d79
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
mov edx, dword [ebx]
lea ecx, [ebp + 0xc]
push eax
push ecx
push 0
push 0x20006
push 0
push 0x44b560
push 0
push str.Value
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
mov dword [0x4586cc], eax
jne 0x423e2f
mov al, byte [esi]
mov ebx, dword [esi + 0xc]
and eax, 1
test ebx, ebx
mov dword [ebp - 4], eax
je 0x423e20
movsx ecx, word [ebx + 4]
push ecx
lea edx, [ebp - 0x14]
push 0x442290
push edx
call fcn.0042d370
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
je 0x423def
mov eax, dword [esi + 0xc]
mov edx, dword [ebp + 0xc]
add eax, 8
push 4
push eax
push 4
lea ecx, [ebp - 0x14]
push 0
push ecx
push edx
jmp 0x423e13
mov eax, dword [esi + 0xc]
add eax, 8
push eax
call fcn.00429700
mov ecx, dword [esi + 0xc]
add esp, 4
inc eax
add ecx, 8
push eax
mov eax, dword [ebp + 0xc]
push ecx
push 1
lea edx, [ebp - 0x14]
push 0
push edx
push eax
call edi
mov dword [0x4586cc], eax
mov ebx, dword [ebx]
test ebx, ebx
jne 0x423dbb
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x4586cc]
xor edx, edx
pop edi
test eax, eax
setne dl
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x424060
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [0x4586cc], 0
push esi
push eax
call fcn.00424160
add esp, 8
test eax, eax
jne 0x42408a
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x1c]
push edi
inc ecx
push ebx
push ecx
call fcn.00428230
add esp, 4
push eax
call fcn.00402d50
mov edx, dword [esi + 0x20]
add esp, 4
inc edx
mov ebx, eax
push edx
call fcn.00428230
add esp, 4
push eax
call fcn.00402d50
add esp, 4
mov edi, eax
mov dword [ebp + 0xc], 0
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
inc eax
lea edx, [ebp - 4]
mov dword [ebp - 4], eax
inc ecx
push edx
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
push edi
push eax
mov eax, dword [esi]
lea ecx, [ebp - 8]
push 0
push ecx
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
mov dword [0x4586cc], eax
jne 0x424126
push ebx
call fcn.004343d0
mov ecx, dword [ebp - 0xc]
add esp, 4
dec ecx
je 0x424118
sub ecx, 3
jne 0x424126
mov ecx, dword [ebp + 8]
push edi
push eax
push ecx
call fcn.0040a720
jmp 0x424123
mov edx, dword [ebp + 8]
push edi
push eax
push edx
call fcn.0040a4c0
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 0x18]
inc eax
cmp eax, ecx
mov dword [ebp + 0xc], eax
jbe 0x4240c3
push ebx
call fcn.004283d0
add esp, 4
push edi
call fcn.004283d0
mov ecx, dword [0x4586cc]
add esp, 4
xor eax, eax
test ecx, ecx
pop ebx
pop edi
setne al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x424160
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 8]
push str.HISTFILE
push eax
call fcn.0042a7d0
add esp, 8
test eax, eax
jne 0x424229
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0x20]
inc eax
push eax
mov dword [ebp + 8], eax
call fcn.00428230
add esp, 4
push eax
call fcn.00402d50
add esp, 4
mov esi, eax
push 0x4437f0
push 0x4437f0
call fcn.004296d0
mov eax, dword [edi]
add esp, 8
lea ecx, [ebp + 8]
lea edx, [ebp - 4]
push ecx
push esi
push edx
push 0
push 0x4437f0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov dword [0x4586cc], eax
je 0x4241e7
push esi
call fcn.004283d0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
and word [ebx], 0xefff
push esi
push 0
push ebx
call fcn.0040a4c0
or byte [ebx + 1], 0x10
add esp, 0xc
call fcn.0040bbe0
call fcn.00417010
test eax, eax
jne 0x424217
push str._History_file_open_failed
call fcn.00401fa0
add esp, 4
push esi
call fcn.004283d0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x424320
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x1c]
push edi
inc eax
push eax
call fcn.00428230
add esp, 4
push eax
call fcn.00402d50
mov ecx, dword [esi + 0x20]
add esp, 4
inc ecx
mov edi, eax
push ecx
call fcn.00428230
add esp, 4
push eax
call fcn.00402d50
add esp, 4
mov ebx, eax
mov dword [ebp + 8], 0
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x1c]
inc edx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], edx
inc eax
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x18], eax
push ebx
push edx
mov edx, dword [esi]
lea eax, [ebp - 0x18]
push 0
push eax
push edi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
mov dword [0x4586cc], eax
jne 0x424412
mov eax, dword [ebp - 0x1c]
dec eax
je 0x4243f4
sub eax, 3
jne 0x424412
push str.flag
push edi
call fcn.0042a7d0
add esp, 8
test eax, eax
jne 0x4243c9
mov al, byte [ebx]
mov dword [ebp - 0x10], eax
jmp 0x424412
push str.type
push edi
call fcn.00431080
add esp, 8
test eax, eax
jne 0x4243e4
xor ecx, ecx
mov cl, byte [ebx]
mov dword [ebp - 0xc], ecx
jmp 0x424412
push str.posix
push edi
call fcn.00431080
add esp, 8
jmp 0x424412
push str.value
push edi
call fcn.00431080
add esp, 8
test eax, eax
jne 0x424412
push ebx
call fcn.0042e680
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0x18]
inc eax
cmp eax, ecx
mov dword [ebp + 8], eax
jbe 0x424371
mov esi, dword [ebp - 8]
test esi, esi
je 0x42445c
mov eax, dword [ebp - 0xc]
dec eax
je 0x424444
sub eax, 7
jne 0x42445c
push esi
call fcn.00423280
add esp, 4
mov dword [ebp - 4], eax
jmp 0x42445c
mov edx, dword [ebp - 0x10]
push edx
push esi
call fcn.00407430
add esp, 8
test eax, eax
jne 0x42445c
mov dword [ebp - 4], 1
push esi
call fcn.004283d0
add esp, 4
push edi
call fcn.004283d0
add esp, 4
push ebx
call fcn.004283d0
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x424550
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov al, byte [esi]
cmp al, 1
jne 0x4245a3
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push eax
push ecx
lea edx, [ebp - 0x64]
push str._s_s
push edx
call fcn.0042d370
add esp, 0x10
lea eax, [ebp - 0x64]
push eax
call fcn.00429700
mov edi, dword [ebp + 0xc]
add esp, 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x64]
mov edx, dword [edi]
push eax
push ecx
push 1
push 0
push str.value
push edx
jmp 0x424600
cmp al, 8
jne 0x424639
mov eax, dword [esi + 0xc]
test eax, eax
je 0x424639
mov edi, dword [ebp + 0xc]
mov eax, dword [eax + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp + 8]
mov edx, dword [edi]
push 4
push ecx
push 4
push 0
push str.posix
push edx
mov dword [ebp + 8], eax
call ebx
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x424602
push eax
call fcn.00429700
mov ecx, dword [esi + 0xc]
add esp, 4
mov edx, dword [ecx + 0x14]
push eax
mov eax, dword [edi]
push edx
push 1
push 0
push str.value
push eax
call ebx
mov eax, dword [edi]
lea edx, [ebp + 8]
push 4
push edx
xor ecx, ecx
push 4
mov cl, byte [esi]
push 0
push str.type
push eax
mov dword [ebp + 8], ecx
call ebx
mov eax, dword [edi]
lea edx, [ebp + 8]
push 4
push edx
xor ecx, ecx
push 4
mov cl, byte [esi + 1]
push 0
push str.flag
push eax
mov dword [ebp + 8], ecx
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x424740
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
mov dword [ebp - 4], ebx
jne 0x42475d
mov eax, dword [str.PVST]
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], bl
jne 0x42476d
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
lea edx, [ebp - 8]
lea eax, [ebp + 8]
push edx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push eax
push ebx
push 0x20006
push ebx
push 0x44b560
push ebx
push ecx
push 0x80000001
call edi
cmp eax, ebx
mov dword [0x4586cc], eax
je 0x4247a8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00424870
mov esi, eax
cmp esi, ebx
je 0x4247d6
push esi
call fcn.00429700
mov edx, dword [ebp + 8]
add esp, 4
inc eax
push eax
push esi
push 1
push ebx
push str.DesktopName
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [0x4586cc], eax
mov eax, dword [str.Position]
mov esi, 0x448ab0
cmp eax, ebx
je 0x42485b
mov edx, dword [esi]
lea eax, [ebp - 8]
lea ecx, [ebp - 0x38]
push eax
mov eax, dword [ebp + 8]
push ecx
push ebx
push 0x2001f
push ebx
push 0x44b560
push ebx
push edx
push eax
call edi
cmp eax, ebx
mov dword [0x4586cc], eax
jne 0x42484a
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x34], ebx
push ecx
call fcn.00423550
add esp, 4
test eax, eax
jne 0x42483e
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [esi + 4]
push edx
push eax
call fcn.0042d3b0
add esp, 8
test eax, eax
je 0x42483e
lea ecx, [ebp - 0x38]
push ecx
call dword [esi + 0xc]
add esp, 4
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x424851
mov dword [ebp - 4], 1
mov eax, dword [esi + 0x10]
add esi, 0x10
cmp eax, ebx
jne 0x4247e4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x429960
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
cmp eax, 0xa
mov edi, 1
ja case.default.0x429977
jmp dword [eax*4 + 0x429a14]
mov esi, str._mksnt
jmp 0x4299c1
mov esi, str._etc
jmp 0x4299c1
mov esi, str._etc_nls
jmp 0x4299c1
call fcn.00435e00
mov esi, eax
jmp 0x4299c1
mov esi, str._mksnt_sh.exe
jmp 0x4299c1
mov esi, str._usr_spool
jmp 0x4299c1
mov esi, str._tmp
jmp 0x4299c1
mov esi, 0x442528
jmp 0x4299bf
call fcn.00435de0
mov esi, eax
xor edi, edi
test edi, edi
je 0x4299d0
push esi
call fcn.004290b0
add esp, 4
mov esi, eax
push esi
call fcn.00429700
mov edi, eax
mov eax, dword [ebp + 0x10]
add esp, 4
inc edi
test eax, eax
jbe 0x4299ff
cmp edi, eax
lea ebx, [eax - 1]
ja 0x4299ed
lea ebx, [edi - 1]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push esi
call fcn.00431110
add esp, 0xc
mov byte [ebx + esi], 0
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
mov dword [0x4586cc], edi
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x42bed0
Capabilities:
Acquire debug privileges
Enumerate gui resources
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, 0xffffffff
mov dword [ebp - 4], ebx
jne 0x42bef5
mov dword [0x4586cc], 1
or eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, ebx
push esi
jne 0x42bf01
call sub.KERNEL32.dll_GetCurrentProcessId
mov edi, eax
mov esi, dword [ebp + 0xc]
cmp esi, 9
jne 0x42bf11
mov dword [ebp + 8], ebx
jmp 0x42bfbc
call sub.KERNEL32.dll_GetCurrentProcessId
cmp edi, eax
jne 0x42bf44
lea eax, [esi + esi*2]
cmp dword [eax*4 + 0x458400], 1
je 0x42bf35
push esi
push 0x4586e0
call fcn.0042c2f0
add esp, 8
call fcn.0042c220
mov eax, dword [ebp - 4]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, ebx
jne 0x42bf78
push edi
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
jne 0x42bf67
call fcn.0042c090
mov dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 1
je 0x42bf9d
cmp esi, 0xf
je 0x42bf9d
mov dword [ebp - 4], 0xffffffff
mov dword [0x4586cc], 1
mov eax, dword [ebp - 4]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 0x42c0c0
mov dword [0x44fa38], ebx
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [0x44fa38]
cmp eax, ebx
jne 0x42c052
push edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push 1
call ebx
mov esi, eax
test esi, esi
jne 0x42c002
call fcn.00434290
cmp dword [0x4586cc], 5
jne 0x42bffe
push 1
push str.SeDebugPrivilege
call fcn.00436a70
add esp, 8
test eax, eax
je 0x42bffe
push edi
push esi
push 1
call ebx
mov esi, eax
mov dword [ebp + 8], 1
test esi, esi
je 0x42c013
push 0x109
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp eax, 1
je 0x42c01f
call fcn.0042c090
mov dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
test eax, eax
je 0x42c080
mov esi, dword [0x4586cc]
push 0
push str.SeDebugPrivilege
call fcn.00436a70
mov eax, dword [ebp - 4]
add esp, 8
mov dword [0x4586cc], esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push ebx
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
cmp eax, 1
je 0x42c073
mov dword [0x4586cc], 5
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x44fa38]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4302c0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x1400
lea eax, [ebp - 8]
push 0
lea ecx, [ebp - 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x4302f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4586cc], eax
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push esi
push edx
call fcn.004347b0
mov esi, dword [ebp + 8]
add esp, 4
mov dword [esi], eax
mov eax, dword [ebp - 8]
push eax
call fcn.004347b0
add esp, 4
mov dword [esi + 4], eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x431140
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
test ecx, ecx
jl 0x4311b7
cmp ecx, dword [0x4586d0]
jge 0x4311b7
mov eax, dword [0x4586d8]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x4311b7
cmp eax, 0xffffffff
jne 0x431176
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push eax
push ecx
call fcn.00438cb0
add esp, 0xc
pop ebp
ret
mov edx, dword [ebp + 0x10]
lea ecx, [ebp + 0x10]
push 0
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4311b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x4311a1
cmp eax, 0xe9
jne 0x4311ab
push 0xd
call fcn.00431ad0
add esp, 4
call fcn.00434290
pop ebp
ret
mov eax, dword [ebp + 0x10]
pop ebp
ret
mov dword [0x4586cc], 6
or eax, 0xffffffff
pop ebp
ret

Function at 0x4311d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jl 0x4312ab
cmp eax, dword [0x4586d0]
jge 0x4312ab
mov edx, dword [0x4586d8]
mov ecx, dword [edx + eax*4]
test ecx, ecx
je 0x4312ab
cmp ecx, 0xffffffff
jne 0x431213
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
push eax
call fcn.00438ca0
add esp, 0xc
pop ebp
ret
lea ecx, [ebp + 0x10]
push 0
push ecx
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
mov dword [0x4586bc], 0
mov edx, dword [edx + eax*4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov eax, dword [ebp + 0x10]
jne 0x431279
mov ecx, dword [0x4586bc]
test ecx, ecx
je 0x43125f
mov dword [0x4586bc], 0
mov dword [0x4586cc], 0xfffffff6
or eax, 0xffffffff
pop ebp
ret
test eax, eax
ja 0x4312b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x431272
xor eax, eax
pop ebp
ret
call fcn.00434290
pop ebp
ret
test eax, eax
jne 0x4312b8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x4586bc]
test eax, eax
je 0x4312a6
mov dword [0x4586bc], 0
mov dword [0x4586cc], 0xfffffff6
or eax, 0xffffffff
pop ebp
ret
mov eax, dword [ebp + 0x10]
pop ebp
ret
mov dword [0x4586cc], 6
or eax, 0xffffffff
pop ebp
ret

Function at 0x431380
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4313a3
call fcn.00434290
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x431430
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
mov dword [ebp - 4], 0
je 0x431458
push edi
call fcn.004315e0
add esp, 4
test eax, eax
jne 0x431504
push str.TMPDIR
call fcn.00431630
mov edi, eax
add esp, 4
test edi, edi
je 0x43147c
push edi
call fcn.004315e0
add esp, 4
test eax, eax
jne 0x431504
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0
push 0
call ebx
mov esi, eax
test esi, esi
jg 0x4314c3
push str._tmp
call fcn.004290b0
add esp, 4
mov edi, eax
push edi
call fcn.004315e0
add esp, 4
test eax, eax
jne 0x431504
mov edi, 0x44a64c
push edi
call fcn.004315e0
add esp, 4
test eax, eax
jne 0x431504
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 1]
mov dword [ebp - 4], 1
push eax
call fcn.00428230
mov edi, eax
add esp, 4
test edi, edi
je 0x4314f5
push edi
push esi
call ebx
mov esi, eax
test esi, esi
jle 0x4314f8
push edi
call fcn.004315e0
add esp, 4
test eax, eax
jne 0x431504
jmp 0x4314f8
mov esi, dword [ebp + 0xc]
cmp esi, 1
jne 0x4315cf
mov byte [edi], 0x2e
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x431515
mov dword [ebp + 0xc], 0x44b560
mov ebx, dword [ebp + 0xc]
push ebx
call fcn.00429700
mov esi, eax
add esp, 4
cmp esi, 4
mov dword [ebp + 8], esi
jle 0x431536
mov dword [ebp + 8], 4
mov byte [ebx + 4], 0
mov esi, dword [ebp + 8]
push edi
call fcn.00429700
mov ebx, eax
add esp, 4
lea ecx, [esi + ebx + 0xa]
push ecx
call fcn.00428230
mov esi, eax
add esp, 4
test esi, esi
je 0x4315cf
push edi
push esi
call fcn.004296d0
mov eax, dword [ebp - 4]
add esp, 8
test eax, eax
je 0x43156e
push edi
call fcn.004283d0
add esp, 4
xor eax, eax
test ebx, ebx
jle 0x431583
cmp byte [eax + esi], 0x5c
jne 0x43157e
mov byte [eax + esi], 0x2f
inc eax
cmp eax, ebx
jl 0x431574
mov al, byte [ebx + esi - 1]
cmp al, 0x2f
je 0x431594
cmp al, 0x5c
je 0x431594
mov byte [ebx + esi], 0x2f
inc ebx
mov edx, dword [ebp + 0xc]
lea eax, [ebx + esi]
push edx
push eax
call fcn.004296d0
mov eax, dword [ebp + 8]
add esp, 8
add ebx, eax
lea edi, [ebx + esi]
push edi
call fcn.00434970
add esp, 4
lea ecx, [ebp - 0x2c]
push ecx
push esi
call fcn.0042e030
add esp, 8
test eax, eax
jge 0x4315ac
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x431680
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ebx, eax
cmp ebx, esi
jg 0x431742
push edi
call fcn.00435c70
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x80000000
je 0x431742
cmp ebx, 2
jle 0x431742
mov cl, byte [edi + 2]
lea eax, [edi + 2]
cmp cl, 0x2f
jne 0x431742
cmp byte [edi + 3], 0x2f
jne 0x431742
push eax
call fcn.004380f0
mov esi, eax
add esp, 4
mov dword [ebp + 0xc], esi
cmp byte [esi], 0x2f
jne 0x431739
cmp byte [esi + 1], 0x2f
jne 0x431739
push esi
call fcn.00429700
add esp, 4
xor ebx, ebx
test eax, eax
jle 0x431710
mov edx, esi
mov ecx, edi
sub edx, edi
mov esi, eax
mov ebx, eax
mov al, byte [edx + ecx]
mov byte [ecx], al
inc ecx
dec esi
jne 0x431704
mov esi, dword [ebp + 0xc]
lea eax, [ebx + edi]
test eax, eax
je 0x431732
mov cl, byte [eax + 2]
test cl, cl
je 0x431732
mov cl, byte [eax + 1]
test cl, cl
je 0x431732
mov cl, byte [eax + 2]
mov byte [eax], cl
mov cl, byte [eax + 2]
inc eax
test cl, cl
jne 0x431725
mov byte [eax], 0
sub eax, edi
mov ebx, eax
push esi
call fcn.004283d0
add esp, 4
pop edi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret
Function at 0x433360
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x354
call fcn.00428230
mov esi, eax
add esp, 4
test esi, esi
jne 0x433388
mov dword [0x4586cc], 8
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 8]
push eax
call fcn.00429700
mov edi, eax
add esp, 4
cmp edi, 0x100
jle 0x4333b8
push esi
mov dword [0x4586cc], 0xfffffffe
call fcn.004283d0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 8]
lea ebx, [esi + 0x24c]
push ecx
push ebx
call fcn.004296d0
add esp, 8
push ebx
call fcn.00435c70
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x4333f9
push esi
mov dword [0x4586cc], 3
call fcn.004283d0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp edi, 2
jne 0x433407
mov edx, dword [ebp + 8]
cmp byte [edx + 1], 0x3a
je 0x433427
cmp byte [edi + esi + 0x24b], 0x2f
je 0x433427
lea eax, [edi + esi + 0x24c]
push 0x44a814
push eax
call fcn.004296d0
add esp, 8
inc edi
mov dword [esi + 0x350], edi
mov dword [esi + 0x144], 0
mov dword [esi], 0xffffffff
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4334a0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 0x144]
test eax, eax
jne 0x43351a
mov eax, dword [esi + 0x350]
push 4
push 0x44a818
lea edi, [eax + esi + 0x24c]
push edi
call fcn.00431110
add esp, 0xc
lea eax, [esi + 4]
lea ebx, [esi + 0x24c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esi], eax
call fcn.00434290
mov byte [edi], 0
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x433530
push ebx
call fcn.004338c0
and eax, 0x80
add esp, 4
mov dword [esi + 0x248], eax
mov eax, dword [esi + 0x144]
inc eax
mov dword [esi + 0x144], eax
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov edx, dword [esi]
lea ecx, [esi + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x43354b
call fcn.00434290
cmp dword [0x4586cc], 0x12
jne 0x433543
mov dword [0x4586cc], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esi + 0x144]
pop edi
inc eax
mov dword [esi + 0x144], eax
pop esi
xor eax, eax
pop ebx
pop ebp
ret