joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c160
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x48794c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
mov dword [ebp - 0x314], ecx
push 0
lea eax, [ebp - 0x18]
push eax
push 6
lea ecx, [ebp - 0x304]
push ecx
push 6
lea edx, [ebp - 0x304]
push edx
push 0x220424
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x2fc], eax
mov ecx, dword [ebp - 0x304]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x2fc], 0
je 0x45c1c0
cmp dword [ebp - 0x18], 6
ja 0x45c1c5
jmp 0x45c336
mov edx, dword [ebp - 0x18]
push edx
call fcn.0040e234
add esp, 4
mov dword [ebp - 0x308], eax
mov eax, dword [ebp - 0x308]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xec], ecx
push 0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x10]
push eax
push 0x220424
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x2fc], eax
cmp dword [ebp - 0x2fc], 0
jne 0x45c23a
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x30c], edx
mov eax, dword [ebp - 0x30c]
push eax
call fcn.0040e26e
add esp, 4
jmp 0x45c336
mov ecx, 0x14
mov esi, 0x474388
lea edi, [ebp - 0xe8]
rep movsd dword es:[edi], dword [esi]
push 0x78
push 0
lea ecx, [ebp - 0x98]
push ecx
call fcn.00440cf0
add esp, 0xc
mov edx, dword [ebp - 0xec]
add edx, 4
push edx
lea eax, [ebp - 0xe8]
push eax
call fcn.0045e1b0
add esp, 8
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x310], ecx
mov edx, dword [ebp - 0x310]
push edx
call fcn.0040e26e
add esp, 4
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0xe8]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x2fc], eax
cmp dword [ebp - 0x2fc], 0
je 0x45c2be
jmp 0x45c336
mov dword [ebp - 0xc], 0x208
mov dword [ebp - 8], 1
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x2f8]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push 0x4743d8
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x2fc], eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x2fc], 0
je 0x45c307
jmp 0x45c336
lea ecx, [ebp - 0x2f8]
push ecx
mov edx, dword [ebp - 0x314]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x314]
mov edx, dword [eax]
call edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x314]
call fcn.0045c360
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0043ea11
mov esp, ebp
pop ebp
ret 4
Function at 0x45f800
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x48794c]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x414], ecx
mov eax, dword [ebp - 0x414]
add eax, 6
push eax
call fcn.004482e0
add esp, 4
test eax, eax
jne 0x45f836
xor eax, eax
jmp 0x45f93c
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
mov ecx, dword [ebp - 0x414]
add ecx, 6
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x45f910
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
mov edx, dword [ebp - 0x414]
add edx, 6
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x45f891
xor eax, eax
jmp 0x45f93c
push 0
call fcn.0045f950
add esp, 4
push eax
call fcn.0043f719
add esp, 4
mov dword [ebp - 0x410], 0
jmp 0x45f8bf
mov eax, dword [ebp - 0x410]
add eax, 1
mov dword [ebp - 0x410], eax
cmp dword [ebp - 0x410], 0x400
jge 0x45f8df
call fcn.0043f72b
mov ecx, dword [ebp - 0x410]
mov byte [ebp + ecx - 0x408], al
jmp 0x45f8b0
push 0
lea edx, [ebp - 0x40c]
push edx
push 0x400
lea eax, [ebp - 0x408]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x45f910
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x45f93c
push 0
push 0
push 0x300
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0043ea11
mov esp, ebp
pop ebp
ret
Function at 0x465670
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x10], 0
je 0x46568c
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x24], 0xffffffff
jne 0x465693
xor eax, eax
jmp 0x4657a7
movzx edx, word [ebp + 0xc]
test edx, edx
jne 0x4656a2
xor eax, eax
jmp 0x4657a7
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x20]
shl ecx, 9
xor edx, edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
mov edx, dword [eax + 4]
imul edx, dword [ecx]
xor eax, eax
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx + 0x18]
mov esi, dword [ecx + 4]
push esi
mov ecx, dword [ecx]
push ecx
push eax
push edx
call fcn.00444070
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
adc ecx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x465707
xor eax, eax
jmp 0x4657a7
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
mov edx, dword [eax + 4]
imul edx, dword [ecx]
mov dword [ebp - 0x14], edx
movzx eax, word [ebp + 0xc]
cmp eax, dword [ebp - 0x14]
jae 0x465728
movzx ecx, word [ebp + 0xc]
mov dword [ebp - 0x28], ecx
jmp 0x46572e
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0040e234
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 4], edx
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46577e
mov edx, dword [ebp - 4]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0040e26e
add esp, 4
xor eax, eax
jmp 0x4657a7
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00445ff0
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.0040e26e
add esp, 4
mov eax, dword [ebp - 0x14]
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4657b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x18], 0
je 0x4657cc
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x24], 0xffffffff
jne 0x4657d3
xor eax, eax
jmp 0x46589e
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov ecx, dword [edx + 0x18]
sub ecx, dword [eax + 0x10]
sar ecx, 3
mov edx, dword [ebp - 0x10]
cmp ecx, dword [edx + 0x1c]
jb 0x4657f1
xor eax, eax
jmp 0x46589e
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x20]
shl ecx, 9
xor edx, edx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + 4]
imul edx, dword [ecx]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x18]
mov esi, dword [ecx + 4]
push esi
mov ecx, dword [ecx]
push ecx
push eax
push edx
call fcn.00444070
add eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
adc ecx, edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
push 0
push 0
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + 4]
imul edx, dword [ecx]
mov dword [ebp - 0xc], edx
movzx eax, word [ebp + 0xc]
cmp eax, dword [ebp - 0xc]
jae 0x46586c
movzx ecx, word [ebp + 0xc]
mov dword [ebp - 0x14], ecx
jmp 0x465872
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
push 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x46589b
xor eax, eax
jmp 0x46589e
mov eax, dword [ebp - 0xc]
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4658e0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 4]
mov dword [edx], 0x67452301
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xefcdab89
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 0x98badcfe
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], 0x10325476
push 0x21
push 0
mov eax, dword [ebp - 4]
add eax, 0x68
push eax
call fcn.00440cf0
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x401443
pop dword [ebp - 0xc]
mov eax, 0xe7fcb199
sub eax, 0xe7bc9d56
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xb4f969d9
sub dword [ebp - 0x1c], 0x66a7248e
mov dword [ebp - 0x18], 0x89f2d52f
add dword [ebp - 0x18], 0xa8407716
mov dword [ebp - 0x14], 0xfdd75aa7
sub dword [ebp - 0x14], 0xb18b1679
mov dword [ebp - 0x10], 0x76db5455
sub dword [ebp - 0x10], 0x76db5455
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x1752f059
sub eax, 0x17127f4d
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x735c0c1d
add dword [ebp - 0x1c], 0x1165d39
mov dword [ebp - 0x18], 0xf0217445
add dword [ebp - 0x18], 0x514aed30
mov dword [ebp - 0x14], 0x4759c4fa
add dword [ebp - 0x14], 0x1c15a772
mov dword [ebp - 0x10], 0xb3e2849
add dword [ebp - 0x10], 0xf4c1d7b7
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0xfa065a82
add eax, 0x63a1692
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x36d4a
push 0
call eax
mov ecx, 0x4317
mov esi, eax
mov edi, 0xfbc83a3
sub edi, 0xf795da3
add edi, dword [ebp - 0xc]
mov ebx, 0xac4dbc0
sub ebx, 0x4a073bc4
xor dword [ebp - 4], eax
mov edx, dword [edi]
mov dword [ebp - 8], 0x569596d5
xor edx, ebx
xor dword [ebp - 4], edx
mov dword [esi], edx
add dword [ebp - 4], 0x943ecc1d
add esi, 0x29d5c9e2
add esi, 0xd62a3622
add edi, 0x448bdd64
add edi, 0xbb7422a0
loop 0x40155f
add eax, 0x75170fff
add eax, 0x8ae9ef30
mov ebx, eax
add eax, 5
mov ecx, 0x524fa80
sub ecx, 0x4e4fa80
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x402a36
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x423f50]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402aca
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a87
cmp dword [ebp + 0x10], ebx
jne 0x402abe
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00401434
test eax, eax
jne 0x402a99
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a6e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405e88
cmp eax, ebx
je 0x402ad1
push ebx
push dword [0x423f50]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402aca
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x423f50], ebx
jne 0x402ac7
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ac7
jmp 0x402aca
Function at 0x402f18
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402f45
mov ecx, dword [0x423ef8]
push edi
add eax, ecx
push edi
push eax
mov dword [0x417044], eax
push dword [0x409018]
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00403043
cmp eax, edi
jl 0x40303c
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.kernel32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x409018]
call ebx
test eax, eax
je 0x403039
cmp dword [ebp - 4], esi
jne 0x403039
push dword [ebp + 8]
add dword [0x417044], esi
call fcn.00403043
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x40303c
cmp dword [ebp + 0x10], edi
jne 0x403008
cmp dword [ebp + 8], edi
jle 0x403034
mov esi, 0x413040
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x402fb8
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x409018]
call ebx
test eax, eax
je 0x403039
cmp edi, dword [ebp - 4]
jne 0x403039
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x403004
cmp dword [ebp + 0x14], edi
jne 0x403004
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x417044], eax
cmp dword [ebp + 8], 0
jg 0x402fab
jmp 0x403034
push 0xfffffffffffffffe
jmp 0x40303b
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403013
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409018]
call ebx
test eax, eax
je 0x403039
mov eax, dword [ebp - 4]
add dword [0x417044], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x40303c
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403043
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x417044]
sub esi, dword [0x40afb0]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.kernel32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x423eac], eax
jle 0x4031ad
push dword [0x41f054]
call fcn.004031f1
push ebx
push ebx
push dword [0x40afb0]
push dword [0x409018]
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov dword [0x41f050], esi
mov dword [0x417040], ebx
mov ebp, 0x40b040
mov eax, dword [0x417048]
mov edi, 0x4000
sub eax, dword [0x41f054]
cmp eax, edi
jg 0x4030b8
mov edi, eax
mov esi, 0x413040
push edi
push esi
call fcn.00401434
test eax, eax
je 0x40319f
add dword [0x41f054], edi
mov dword [0x40afd0], esi
mov dword [0x40afd4], edi
cmp dword [0x423eb0], ebx
je 0x40310f
cmp dword [0x423f40], ebx
jne 0x40310f
mov eax, dword [0x41f050]
push ebx
sub eax, dword [0x417044]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40afb0]
mov dword [0x417040], eax
call fcn.00401434
pop ecx
mov ecx, 0x40afb8
mov dword [0x40afd8], ebp
mov dword [0x40afdc], 0x8000
call fcn.00401434
test eax, eax
jl 0x4031a8
mov esi, dword [0x40afd8]
sub esi, ebp
je 0x403169
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x409018]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x4031a4
cmp esi, dword [esp + 0x10]
jne 0x4031a4
add dword [0x40afb0], esi
cmp dword [0x40afd4], ebx
jne 0x4030de
jmp 0x403175
cmp dword [0x40afd4], ebx
jne 0x4031a8
cmp edi, ebx
je 0x4031a8
mov eax, dword [0x417044]
mov ecx, eax
sub ecx, dword [0x40afb0]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x4030a2
push ebx
push ebx
push eax
push dword [0x409018]
call dword [sym.imp.kernel32.dll_SetFilePointer]
jmp 0x4031ad
or eax, 0xffffffff
jmp 0x4031b7
push 0xfffffffffffffffe
jmp 0x4031aa
push 0xfffffffffffffffd
pop eax
jmp 0x4031b7
push 1
call fcn.00401434
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x4053c6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x4224a8], 0x44
push eax
xor eax, eax
push 0x4224a8
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_CreateProcessA]
test eax, eax
je 0x405401
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x40548b
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.0040573a
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x4054bf
push edi
call dword [sym.imp.kernel32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423f28], eax
jmp 0x405653
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x4054dd
test eax, eax
je 0x4055fe
test byte [ebp + 0xc], 2
je 0x4055fe
mov esi, 0x4214a8
push edi
push esi
call fcn.00405b66
test ebx, ebx
je 0x4054fa
push 0x409348
push esi
call sub.kernel32.dll_lstrcatA
jmp 0x405500
push edi
call fcn.004056a0
cmp byte [edi], 0
jne 0x40550e
cmp byte [0x4214a8], 0x5c
jne 0x405519
push 0x409010
push edi
call sub.kernel32.dll_lstrcatA
push edi
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.kernel32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4055f4
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405684
cmp byte [eax], 0
je 0x40555f
cmp byte [ebp - 0x18], 0
je 0x40555f
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405575
mov al, byte [esi + 1]
test al, al
je 0x4055d3
cmp al, 0x2e
jne 0x405575
cmp byte [esi + 2], 0
je 0x4055d3
push esi
push ebx
call fcn.00405b66
test byte [ebp - 0x148], 0x10
je 0x40559a
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4055d3
push dword [ebp + 0xc]
push edi
call fcn.00401434
jmp 0x4055d3
push edi
call fcn.0040581e
push edi
call dword [sym.imp.kernel32.dll_DeleteFileA]
test eax, eax
jne 0x4055cb
test byte [ebp + 0xc], 4
je 0x4055c3
push edi
push 0xfffffffffffffff1
call fcn.00401434
push 0
push edi
call fcn.004058b4
jmp 0x4055d3
inc dword [0x423f28]
jmp 0x4055d3
push edi
push 0xfffffffffffffff2
call fcn.00401434
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
jne 0x40553d
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x4055fe
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x405653
cmp dword [ebp - 8], esi
jne 0x405613
inc dword [0x423f28]
jmp 0x405653
push edi
call fcn.00405e61
test eax, eax
je 0x405653
push edi
call fcn.00405659
push edi
call fcn.0040581e
push edi
call dword [sym.imp.kernel32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40564b
test byte [ebp + 0xc], 4
je 0x40560b
push edi
push 0xfffffffffffffff1
call fcn.00401434
push esi
push edi
call fcn.004058b4
jmp 0x405653
push edi
push 0xffffffffffffffe5
call fcn.00401434
pop edi
pop esi
leave
ret 8
Function at 0x40573a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4218a8
push esi
call fcn.00405b66
push esi
call fcn.004056ed
mov edi, eax
test edi, edi
jne 0x40575b
xor eax, eax
jmp 0x4057ad
push edi
call fcn.00405dc8
test byte [0x423eb8], 0x80
je 0x405774
mov al, byte [edi]
test al, al
je 0x405757
cmp al, 0x5c
je 0x405757
sub edi, esi
jmp 0x40578c
call fcn.00405e61
test eax, eax
je 0x405786
test byte [eax], 0x10
je 0x405757
push esi
call fcn.004056a0
push esi
call sub.kernel32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405778
call fcn.00405659
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x40581e
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40583a
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
ret 4

Function at 0x40583d
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileA]
ret 0xc

Function at 0x40586c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.kernel32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
test eax, eax
jne 0x4058b0
test edi, edi
jne 0x405877
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4058aa
Function at 0x4058b4
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405e88
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4058d8
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405a11
mov ebx, dword [sym.imp.kernel32.dll_GetShortPathNameA]
mov dword [0x422630], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x422630
je 0x40591c
push 1
push 0
push esi
call fcn.0040583d
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405a17
cmp eax, edi
jg 0x405a17
mov esi, 0x4220a8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405a17
cmp eax, edi
jg 0x405a17
push esi
push ebp
push str._s_s_r_n
push 0x421ca8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x423eb0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00401434
push 4
push 0xc0000000
push esi
call fcn.0040583d
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405a11
push 0
push ebp
call dword [sym.imp.kernel32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405a0a
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x405a0a
cmp edi, dword [esp + 0x18]
jne 0x405a0a
push str._Rename__r_n
push esi
call fcn.004057b2
test eax, eax
jne 0x405a1e
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405b66
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x421ca8
push eax
call fcn.004057fe
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.kernel32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.kernel32.dll_WriteFile]
push esi
call dword [sym.imp.kernel32.dll_GlobalFree]
push ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
inc dword [0x423f30]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409350
push eax
call fcn.004057b2
test eax, eax
je 0x4059d5
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405a45
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405a3a
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x4059d7