joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ad6d
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
xor edx, edx
mov dl, byte [ecx]
test edx, edx
je 0x42adba
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cl, byte [eax]
mov edx, dword [ebp - 8]
xor edx, ecx
and edx, 0xff
mov eax, dword [ebp - 8]
shr eax, 8
mov ecx, dword [edx*4 + 0x4b0cf4]
xor ecx, eax
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x42ad80
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x42b51a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac8ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x23c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x248], ecx
push 0x4dcfac
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x42b567
xor eax, eax
jmp 0x42b795
mov ecx, dword [ebp - 0x248]
add ecx, 4
call fcn.00417170
mov dword [ebp - 0x20], 0
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x24]
push edx
push 1
push 0x10
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x42b5c3
mov dword [ebp - 0x238], 1
push 0x4ba708
lea ecx, [ebp - 0x238]
push ecx
call sub.MSVCRT.dll__CxxThrowException
cmp dword [ebp - 0x20], 0x21726152
je 0x42b5ed
cmp dword [ebp - 0x24], 0
je 0x42b5e6
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [ebp - 0x24], 0
xor eax, eax
jmp 0x42b795
cmp dword [ebp - 0x20], 0x21726152
jne 0x42b73b
cmp dword [ebp - 0x18], 0
je 0x42b73b
cmp dword [ebp - 0x18], 0
je 0x42b70c
mov byte [ebp - 0x130], 0
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x12f]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x24]
push eax
push 1
push 0x105
lea ecx, [ebp - 0x130]
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x42b649
jmp 0x42b70c
mov dword [ebp - 0x28], 0
jmp 0x42b65b
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 0x41
jge 0x42b67d
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + eax*4 - 0x130]
xor ecx, 0x12345678
mov edx, dword [ebp - 0x28]
mov dword [ebp + edx*4 - 0x130], ecx
jmp 0x42b652
mov byte [ebp - 0x234], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x233]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x130]
push ecx
call fcn.0042e4bd
add esp, 0xc
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
je 0x42b6fe
lea edx, [ebp - 0x234]
push edx
push 0x104
lea eax, [ebp - 0x130]
push eax
call fcn.00409100
mov dword [ebp - 0x23c], 1
lea ecx, [ebp - 0x23c]
push ecx
lea edx, [ebp - 0x130]
push edx
mov ecx, dword [ebp - 0x248]
add ecx, 4
call fcn.0042b9b0
mov eax, dword [ebp - 0x18]
sub eax, 1
mov dword [ebp - 0x18], eax
jmp 0x42b604
cmp dword [ebp - 0x18], 0
je 0x42b73b
mov ecx, dword [ebp - 0x248]
add ecx, 4
call fcn.00417170
mov dword [ebp - 0x240], 2
push 0x4ba708
lea ecx, [ebp - 0x240]
push ecx
call sub.MSVCRT.dll__CxxThrowException
jmp 0x42b76f
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x24], 0
je 0x42b790
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [ebp - 0x24], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42ca3f
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
push 0x40
mov eax, dword [ebp + 0xc]
push eax
push 0x54dfc4
mov ecx, dword [ebp - 0xc]
call fcn.0042cf2f
push 0x40
push 0x4b1358
push 0x54dfc4
push 0x54dfc4
mov ecx, dword [ebp - 0xc]
call fcn.0042ce24
mov ecx, dword [ebp + 0x14]
and ecx, 0xff
test ecx, ecx
je 0x42caf9
mov dword [ebp - 4], 0
jmp 0x42ca93
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x10
jge 0x42caf7
push 0x20
mov eax, dword [0x4dcff4]
push eax
push 0x54dfa4
call sub.ntdll.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x30
mov edx, dword [ebp + 0x10]
add edx, ecx
push edx
mov eax, dword [0x4dcff4]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.0042cd16
push 0x20
mov ecx, dword [0x4dcff0]
push ecx
mov edx, dword [0x4dcff4]
push edx
mov ecx, dword [ebp - 0xc]
call fcn.0042ce85
push 0x20
push 0x54dfa4
mov eax, dword [0x4dcff0]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
jmp 0x42ca8a
jmp 0x42cb71
mov dword [ebp - 8], 0xf
jmp 0x42cb0b
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jl 0x42cb71
push 0x20
mov edx, dword [0x4dcff0]
push edx
push 0x54dfa4
call sub.ntdll.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 8]
imul eax, eax, 0x30
mov ecx, dword [ebp + 0x10]
add ecx, eax
push ecx
mov edx, dword [0x4dcff0]
push edx
mov ecx, dword [ebp - 0xc]
call fcn.0042cd16
push 0x20
mov eax, dword [0x4dcff4]
push eax
mov ecx, dword [0x4dcff0]
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.0042ce85
push 0x20
push 0x54dfa4
mov edx, dword [0x4dcff4]
push edx
call sub.ntdll.dll_memcpy
add esp, 0xc
jmp 0x42cb02
push 0x40
push 0x4b1398
push 0x54dfc4
push 0x54dfc4
mov ecx, dword [ebp - 0xc]
call fcn.0042ce24
push 0x40
push 0x54dfc4
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.0042cf7a
mov esp, ebp
pop ebp
ret 0x10

Function at 0x42cc66
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push 0x40
mov eax, dword [ebp + 0xc]
push eax
push 0x54df64
mov ecx, dword [ebp - 8]
call fcn.0042cf2f
push 0x38
push str.91__
push 0x54df64
push 0x54df64
mov ecx, dword [ebp - 8]
call fcn.0042ce24
mov byte [ebp - 4], 0
jmp 0x42ccaa
mov cl, byte [ebp - 4]
add cl, 1
mov byte [ebp - 4], cl
movsx edx, byte [ebp - 4]
cmp edx, 0x10
jge 0x42cd10
movsx eax, byte [ebp - 4]
movsx ecx, byte [eax + 0x4b1490]
push ecx
push 0x1c
mov edx, dword [0x4dcff8]
push edx
mov ecx, dword [ebp - 8]
call fcn.0042cece
movsx eax, byte [ebp - 4]
movsx ecx, byte [eax + 0x4b1490]
push ecx
push 0x1c
mov edx, dword [0x4dcffc]
push edx
mov ecx, dword [ebp - 8]
call fcn.0042cece
push 0x30
push 0x4b1460
push 0x54df64
movsx eax, byte [ebp - 4]
imul eax, eax, 0x30
mov ecx, dword [ebp + 8]
add ecx, eax
push ecx
mov ecx, dword [ebp - 8]
call fcn.0042ce24
jmp 0x42cca1
mov esp, ebp
pop ebp
ret 8
Function at 0x42cd16
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0x30
push 0x4b13d8
mov eax, dword [ebp + 8]
push eax
push 0x54e004
mov ecx, dword [ebp - 4]
call fcn.0042ce24
push 0x30
mov ecx, dword [ebp + 0xc]
push ecx
push 0x54e004
mov ecx, dword [ebp - 4]
call fcn.0042ce85
push 0x54e004
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
call fcn.0042cd76
push 0x20
push 0x4b1408
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
call fcn.0042ce24
mov esp, ebp
pop ebp
ret 8
Function at 0x42d2a4
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push edi
mov byte [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
push eax
push 0x4dd0a8
push 0x4dd0dc
push 0x104
lea ecx, [ebp - 0x104]
push ecx
call fcn.0040a230
add esp, 0x14
lea edx, [ebp - 0x104]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push 0x4dd0e4
push 0x104
lea eax, [ebp - 0x104]
push eax
call fcn.00408000
lea ecx, [ebp - 0x104]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov edx, dword [ebp + 8]
push edx
push 0x4dd0ec
push 0x4dd120
push 0x104
lea eax, [ebp - 0x104]
push eax
call fcn.0040a230
add esp, 0x14
lea ecx, [ebp - 0x104]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push 0x4dd128
push 0x104
lea edx, [ebp - 0x104]
push edx
call fcn.00408000
lea eax, [ebp - 0x104]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x42d389
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push edi
mov dword [ebp - 4], 0
mov byte [ebp - 0x108], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0xc]
push eax
push 0x4dd130
push 0x104
lea ecx, [ebp - 0x108]
push ecx
call fcn.0040a230
add esp, 0x10
lea edx, [ebp - 0x10c]
push edx
lea eax, [ebp - 0x108]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x42d3f5
mov eax, dword [ebp - 4]
jmp 0x42d4ac
push 4
lea ecx, [ebp + 0x14]
push ecx
push 4
push 0
push 0x4dd158
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x42d41a
jmp 0x42d49c
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push 0x4dd160
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x42d43c
jmp 0x42d49c
push 4
lea edx, [ebp + 0x18]
push edx
push 4
push 0
push 0x4dd170
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x42d45e
jmp 0x42d49c
mov ecx, dword [ebp + 8]
push ecx
call sub.ntdll.dll_strlen
add esp, 4
push eax
mov edx, dword [ebp + 8]
push edx
push 2
push 0
push 0x4dd178
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x42d48b
jmp 0x42d49c
mov dword [ebp - 4], 1
xor ecx, ecx
test ecx, ecx
jne 0x42d3f5
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x42d4b1
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push edi
mov byte [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
push eax
push 0x4dd184
push 0x104
lea ecx, [ebp - 0x104]
push ecx
call fcn.0040a230
add esp, 0x10
lea edx, [ebp - 0x104]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
neg eax
sbb eax, eax
inc eax
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x42d592
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
push edi
mov dword [ebp - 8], 0
push 0x4dd1c4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x18], eax
push 0x4dd1d0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
push 0x4dd1e0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
push 0x4dd1f0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
push 0x4dd210
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x20], eax
push 0x4dd224
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
push 0x4dd23c
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x14], 0
je 0x42d6f9
cmp dword [ebp - 0xc], 0
je 0x42d6f9
cmp dword [ebp - 4], 0
je 0x42d6f9
cmp dword [ebp - 0x20], 0
je 0x42d6f9
cmp dword [ebp - 0x10], 0
je 0x42d6f9
cmp dword [ebp - 0x1c], 0
je 0x42d6f9
mov byte [ebp - 0x124], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x123]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
push eax
push 0x4dd254
push 0x104
lea ecx, [ebp - 0x124]
push ecx
call fcn.0040a230
add esp, 0x10
lea edx, [ebp - 0x124]
push edx
lea eax, [ebp - 0x12c]
push eax
call dword [ebp - 0x20]
push 1
lea ecx, [ebp - 0x12c]
push ecx
lea edx, [ebp - 0x134]
push edx
call dword [ebp - 4]
test eax, eax
jne 0x42d6f9
lea eax, [ebp - 0x134]
push eax
call dword [ebp - 0x14]
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 0
je 0x42d6e8
cmp dword [ebp - 0x138], 0xc000010e
je 0x42d6e8
cmp dword [ebp - 0x138], 0xc0000035
jne 0x42d6ef
mov dword [ebp - 8], 1
lea ecx, [ebp - 0x134]
push ecx
call dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x42d849
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push 0
push 3
push 0
push 7
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x42d880
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x42d894
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x42d88f
xor eax, eax
jmp 0x42d894
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x42e4fe
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov dword [ebp - 0x108], 1
push 0x104
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, dword [ebp + 8]
mov dl, byte [ecx]
mov byte [ebp - 0x10c], dl
cmp byte [ebp - 0x10c], 0x31
je 0x42e542
cmp byte [ebp - 0x10c], 0x32
je 0x42e567
jmp 0x42e58c
mov eax, dword [ebp + 8]
add eax, 2
push eax
lea ecx, [ebp - 0x104]
push ecx
push 0x4de7c4
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040a230
add esp, 0x14
jmp 0x42e596
mov ecx, dword [ebp + 8]
add ecx, 2
push ecx
lea edx, [ebp - 0x104]
push edx
push str._s_system32_s
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040a230
add esp, 0x14
jmp 0x42e596
mov dword [ebp - 0x108], 0
mov eax, dword [ebp - 0x108]
mov esp, ebp
pop ebp
ret

Function at 0x42e5a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b18b0
push 0x4a8984
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x5a4d
je 0x42e5f6
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
jmp 0x42e652
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp dword [edx], 0x4550
jne 0x42e61a
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov cx, word [eax + 6]
test ecx, ecx
jne 0x42e62d
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
jmp 0x42e652
mov dword [ebp - 0x2c], 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
jmp 0x42e652
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42e716
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push 0x80
mov eax, dword [ebp + 8]
push eax
call dword [0x54b4e0]
push 0x80
mov ecx, dword [ebp + 0xc]
push ecx
call dword [0x54b4e0]
push 1
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x42e767
push 1
mov ecx, dword [ebp + 8]
push ecx
call dword [0x54b4e0]
mov eax, 1
jmp 0x42e7ec
mov edx, dword [ebp + 8]
push edx
push str._s.tmp2
push 0x104
lea eax, [ebp - 0x104]
push eax
call fcn.0040a230
add esp, 0x10
push 0x80
lea ecx, [ebp - 0x104]
push ecx
call dword [0x54b4e0]
lea edx, [ebp - 0x104]
push edx
call dword [0x54b4b8]
push 1
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x42e7e3
push 4
push 0
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x42e7e3
push 1
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x42e7e7
xor eax, eax
jmp 0x42e7ec
mov eax, 2
mov esp, ebp
pop ebp
ret
Function at 0x42e7f0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0x80
mov eax, dword [ebp + 8]
push eax
call dword [0x54b4e0]
mov ecx, dword [ebp + 8]
push ecx
call dword [0x54b4b8]
push 4
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov eax, dword [ebp + 8]
push eax
call dword [0x54b4b8]
pop ebp
ret

Function at 0x42e826
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
cmp dword [ebp + 8], 0
je 0x42e841
cmp dword [ebp + 0x14], 0
je 0x42e841
cmp dword [ebp + 0x18], 0
jne 0x42e848
xor eax, eax
jmp 0x42e9ee
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call dword [0x54e144]
mov dword [ebp - 0xfc], eax
cmp dword [ebp - 0xfc], 0xffffffff
jne 0x42e877
xor eax, eax
jmp 0x42e9ee
cmp dword [ebp + 0xc], 0
jne 0x42e886
lea ecx, [ebp - 0x13c]
mov dword [ebp + 0xc], ecx
cmp dword [ebp + 0x10], 0
jne 0x42e895
lea edx, [ebp - 0xf8]
mov dword [ebp + 0x10], edx
push 0
lea eax, [ebp - 0x140]
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0xfc]
push edx
call dword [0x54b4c4]
test eax, eax
je 0x42e9df
cmp dword [ebp - 0x140], 0x40
jne 0x42e9df
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
jne 0x42e9df
push 0
push 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x3c]
push eax
mov ecx, dword [ebp - 0xfc]
push ecx
call dword [0x54b4e4]
mov edx, dword [ebp + 0xc]
cmp eax, dword [edx + 0x3c]
jne 0x42e9df
push 0
lea eax, [ebp - 0x140]
push eax
push 0xf8
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0xfc]
push edx
call dword [0x54b4c4]
test eax, eax
je 0x42e9df
cmp dword [ebp - 0x140], 0xf8
jne 0x42e9df
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0x4550
jne 0x42e9df
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov dx, word [ecx + 6]
test edx, edx
je 0x42e9df
push 1
push 0
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov cx, word [eax + 0x14]
sub ecx, 0xe0
push ecx
mov edx, dword [ebp - 0xfc]
push edx
call dword [0x54b4e4]
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov cx, word [eax + 6]
cmp dword [ebp + 0x18], ecx
jbe 0x42e990
mov edx, dword [ebp + 0x10]
xor eax, eax
mov ax, word [edx + 6]
mov dword [ebp + 0x18], eax
mov ecx, dword [ebp + 0x18]
imul ecx, ecx, 0x28
mov dword [ebp - 0x144], ecx
push 0
lea edx, [ebp - 0x144]
push edx
mov eax, dword [ebp - 0x144]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0xfc]
push edx
call dword [0x54b4c4]
test eax, eax
je 0x42e9df
mov eax, dword [ebp - 0xfc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x144]
xor edx, edx
mov ecx, 0x28
div ecx
jmp 0x42e9ee
mov edx, dword [ebp - 0xfc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x42f17a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
cmp dword [ebp + 8], 0
je 0x42f199
mov eax, dword [ebp + 8]
push eax
call sub.ntdll.dll_strlen
add esp, 4
test eax, eax
jne 0x42f19d
xor eax, eax
jmp 0x42f215
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x42f1af
xor eax, eax
jmp 0x42f215
mov edx, dword [ebp + 8]
push edx
call dword [0x54b4f0]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x42f1d7
mov eax, dword [ebp - 8]
and eax, 0x10
test eax, eax
je 0x42f1d0
xor eax, eax
jmp 0x42f215
mov eax, 1
jmp 0x42f215
lea ecx, [ebp - 0x148]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [0x54b4e8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x42f1f5
xor eax, eax
jmp 0x42f215
mov eax, dword [ebp - 4]
push eax
call dword [0x54b4c8]
mov ecx, dword [ebp - 0x148]
and ecx, 0x10
test ecx, ecx
je 0x42f210
xor eax, eax
jmp 0x42f215
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x42f23b
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [ebp + 8]
mov dword [ebp - 0x108], eax
mov ecx, dword [ebp - 0x108]
movsx edx, byte [ecx]
test edx, edx
je 0x42f312
push 0x5c
mov eax, dword [ebp - 0x108]
push eax
call dword [sym.imp.ntdll.dll_strchr]
add esp, 8
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
jne 0x42f289
mov eax, 1
jmp 0x42f317
mov ecx, dword [ebp - 0x108]
sub ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x104]
push eax
call fcn.0042f219
add esp, 0xc
lea ecx, [ebp - 0x104]
push ecx
call sub.ntdll.dll_strlen
add esp, 4
cmp eax, 2
jne 0x42f2da
movsx edx, byte [ebp - 0x103]
cmp edx, 0x3a
jne 0x42f2da
mov eax, dword [ebp - 0x108]
add eax, 1
mov dword [ebp - 0x108], eax
jmp 0x42f24d
push 0
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x42f2fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x42f2fe
xor eax, eax
jmp 0x42f317
mov edx, dword [ebp - 0x108]
add edx, 1
mov dword [ebp - 0x108], edx
jmp 0x42f24d
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x42f35d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movsx eax, byte [0x54e040]
test eax, eax
jne 0x42f3ba
push 0x104
push 0x54e040
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx ecx, byte [0x54e040]
cmp ecx, 0x41
jl 0x42f39f
movsx edx, byte [0x54e040]
cmp edx, 0x5a
jg 0x42f39f
mov dword [ebp - 4], 1
jmp 0x42f3a6
mov dword [ebp - 4], 0
movsx eax, byte [0x54e040]
mov ecx, dword [ebp - 4]
shl ecx, 5
add eax, ecx
mov byte [0x54e040], al
mov edx, dword [ebp + 8]
movsx eax, byte [edx + 1]
cmp eax, 0x3a
jne 0x42f40e
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
cmp edx, 0x41
jl 0x42f3e5
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
cmp ecx, 0x5a
jg 0x42f3e5
mov dword [ebp - 8], 1
jmp 0x42f3ec
mov dword [ebp - 8], 0
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
mov ecx, dword [ebp - 8]
shl ecx, 5
add eax, ecx
movsx edx, byte [0x54e040]
cmp eax, edx
jne 0x42f40e
mov dword [ebp - 0xc], 1
jmp 0x42f415
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x42f41c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 0x10], 0
je 0x42f43f
mov dword [ebp - 0x10], SysReAllocStringLen
mov dword [ebp - 0xc], 2
mov dword [ebp - 8], 4
jmp 0x42f454
mov dword [ebp - 0x10], 0xc0000000
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], 6
push 0
push 0
push 3
push 0
push 1
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x42f4db
cmp dword [ebp + 0xc], 0
je 0x42f48c
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push 0
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
je 0x42f4db
push 0
push 0
push 0
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
jmp 0x42f4dd
xor eax, eax
mov esp, ebp
pop ebp
ret