joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428def
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 0x54154c
mov ecx, dword [ebp - 0xc]
call fcn.004292df
push 0x40
push 0x4af158
push 0x54154c
push 0x54154c
mov ecx, dword [ebp - 0xc]
call fcn.004291d4
mov ecx, dword [ebp + 0x14]
and ecx, 0xff
test ecx, ecx
je 0x428ea9
mov dword [ebp - 4], 0
jmp 0x428e43
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x10
jge 0x428ea7
push 0x20
mov eax, dword [0x4da2d4]
push eax
push 0x54152c
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 [0x4da2d4]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.004290c6
push 0x20
mov ecx, dword [0x4da2d0]
push ecx
mov edx, dword [0x4da2d4]
push edx
mov ecx, dword [ebp - 0xc]
call fcn.00429235
push 0x20
push 0x54152c
mov eax, dword [0x4da2d0]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
jmp 0x428e3a
jmp 0x428f21
mov dword [ebp - 8], 0xf
jmp 0x428ebb
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jl 0x428f21
push 0x20
mov edx, dword [0x4da2d0]
push edx
push 0x54152c
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 [0x4da2d0]
push edx
mov ecx, dword [ebp - 0xc]
call fcn.004290c6
push 0x20
mov eax, dword [0x4da2d4]
push eax
mov ecx, dword [0x4da2d0]
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.00429235
push 0x20
push 0x54152c
mov edx, dword [0x4da2d4]
push edx
call sub.ntdll.dll_memcpy
add esp, 0xc
jmp 0x428eb2
push 0x40
push 0x4af198
push 0x54154c
push 0x54154c
mov ecx, dword [ebp - 0xc]
call fcn.004291d4
push 0x40
push 0x54154c
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.0042932a
mov esp, ebp
pop ebp
ret 0x10

Function at 0x429016
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 0x5414ec
mov ecx, dword [ebp - 8]
call fcn.004292df
push 0x38
push str.91__
push 0x5414ec
push 0x5414ec
mov ecx, dword [ebp - 8]
call fcn.004291d4
mov byte [ebp - 4], 0
jmp 0x42905a
mov cl, byte [ebp - 4]
add cl, 1
mov byte [ebp - 4], cl
movsx edx, byte [ebp - 4]
cmp edx, 0x10
jge 0x4290c0
movsx eax, byte [ebp - 4]
movsx ecx, byte [eax + 0x4af290]
push ecx
push 0x1c
mov edx, dword [0x4da2d8]
push edx
mov ecx, dword [ebp - 8]
call fcn.0042927e
movsx eax, byte [ebp - 4]
movsx ecx, byte [eax + 0x4af290]
push ecx
push 0x1c
mov edx, dword [0x4da2dc]
push edx
mov ecx, dword [ebp - 8]
call fcn.0042927e
push 0x30
push 0x4af260
push 0x5414ec
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.004291d4
jmp 0x429051
mov esp, ebp
pop ebp
ret 8
Function at 0x4290c6
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0x30
push 0x4af1d8
mov eax, dword [ebp + 8]
push eax
push 0x54158c
mov ecx, dword [ebp - 4]
call fcn.004291d4
push 0x30
mov ecx, dword [ebp + 0xc]
push ecx
push 0x54158c
mov ecx, dword [ebp - 4]
call fcn.00429235
push 0x54158c
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
call fcn.00429126
push 0x20
push 0x4af208
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
call fcn.004291d4
mov esp, ebp
pop ebp
ret 8
Function at 0x4293f8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10c], 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 + 8]
push eax
push 0x4da2e0
push 0x4da314
push 0x104
lea ecx, [ebp - 0x108]
push ecx
call fcn.0040a150
add esp, 0x14
lea edx, [ebp - 0x10c]
push edx
lea eax, [ebp - 0x108]
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x429477
xor eax, eax
jmp 0x42964f
push 7
push 0x4da31c
push 1
push 0
push 0
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4294ae
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x42964f
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x4da324
push 0x104
lea ecx, [ebp - 0x108]
push ecx
call fcn.00407f00
lea edx, [ebp - 0x10c]
push edx
lea eax, [ebp - 0x108]
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4294fa
xor eax, eax
jmp 0x42964f
push 7
push 0x4da32c
push 1
push 0
push 0
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x429531
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x42964f
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
push ecx
push 0x4da334
push 0x4da368
push 0x104
lea edx, [ebp - 0x108]
push edx
call fcn.0040a150
add esp, 0x14
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x108]
push ecx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x429589
xor eax, eax
jmp 0x42964f
push 7
push 0x4da370
push 1
push 0
push 0
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4295c0
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x42964f
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x4da378
push 0x104
lea edx, [ebp - 0x108]
push edx
call fcn.00407f00
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x108]
push ecx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x429609
xor eax, eax
jmp 0x42964f
push 7
push 0x4da380
push 1
push 0
push 0
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x42963d
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x42964f
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x429654
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 str.SYSTEMCurrentControlSetControlSafeBootMinimal
push 0x4da3bc
push 0x104
lea ecx, [ebp - 0x104]
push ecx
call fcn.0040a150
add esp, 0x14
lea edx, [ebp - 0x104]
push edx
push SysStringLen
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push 0x4da3c4
push 0x104
lea eax, [ebp - 0x104]
push eax
call fcn.00407f00
lea ecx, [ebp - 0x104]
push ecx
push SysStringLen
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov edx, dword [ebp + 8]
push edx
push str.SYSTEMCurrentControlSetControlSafeBootNetwork
push 0x4da400
push 0x104
lea eax, [ebp - 0x104]
push eax
call fcn.0040a150
add esp, 0x14
lea ecx, [ebp - 0x104]
push ecx
push SysStringLen
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push 0x4da408
push 0x104
lea edx, [ebp - 0x104]
push edx
call fcn.00407f00
lea eax, [ebp - 0x104]
push eax
push SysStringLen
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x429739
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 0x4da410
push 0x104
lea ecx, [ebp - 0x108]
push ecx
call fcn.0040a150
add esp, 0x10
lea edx, [ebp - 0x10c]
push edx
lea eax, [ebp - 0x108]
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4297a5
mov eax, dword [ebp - 4]
jmp 0x42985c
push 4
lea ecx, [ebp + 0x14]
push ecx
push 4
push 0
push str.Type
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4297ca
jmp 0x42984c
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push str.ErrorControl
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4297ec
jmp 0x42984c
push 4
lea edx, [ebp + 0x18]
push edx
push 4
push 0
push str.Start
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x42980e
jmp 0x42984c
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 0x4da458
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x42983b
jmp 0x42984c
mov dword [ebp - 4], 1
xor ecx, ecx
test ecx, ecx
jne 0x4297a5
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 0x429861
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 str.SystemCurrentControlSetServices_s
push 0x104
lea ecx, [ebp - 0x104]
push ecx
call fcn.0040a150
add esp, 0x10
lea edx, [ebp - 0x104]
push edx
push SysStringLen
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
neg eax
sbb eax, eax
inc eax
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x429942
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
push edi
mov dword [ebp - 8], 0
push 0x4da4a4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x18], eax
push 0x4da4b0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
push 0x4da4c0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
push 0x4da4d0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
push 0x4da4f0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x20], eax
push 0x4da504
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
push 0x4da51c
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 0x429aa9
cmp dword [ebp - 0xc], 0
je 0x429aa9
cmp dword [ebp - 4], 0
je 0x429aa9
cmp dword [ebp - 0x20], 0
je 0x429aa9
cmp dword [ebp - 0x10], 0
je 0x429aa9
cmp dword [ebp - 0x1c], 0
je 0x429aa9
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 0x4da534
push 0x104
lea ecx, [ebp - 0x124]
push ecx
call fcn.0040a150
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 0x429aa9
lea eax, [ebp - 0x134]
push eax
call dword [ebp - 0x14]
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 0
je 0x429a98
cmp dword [ebp - 0x138], 0xc000010e
je 0x429a98
cmp dword [ebp - 0x138], 0xc0000035
jne 0x429a9f
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 0x429ab1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push edi
mov dword [ebp - 8], 0
push 0x4da56c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x18], eax
push str.ZwLoadDriver
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
push str.ZwUnloadDriver
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
push 0x4da598
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
push 0x4da5b8
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x20], eax
push 0x4da5cc
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
push 0x4da5e4
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 0x429bf1
cmp dword [ebp - 0xc], 0
je 0x429bf1
cmp dword [ebp - 4], 0
je 0x429bf1
cmp dword [ebp - 0x20], 0
je 0x429bf1
cmp dword [ebp - 0x10], 0
je 0x429bf1
cmp dword [ebp - 0x1c], 0
je 0x429bf1
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 str.RegistryMachineSystemCurrentControlSetServices_s
push 0x104
lea ecx, [ebp - 0x124]
push ecx
call fcn.0040a150
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 0x429bf1
lea eax, [ebp - 0x134]
push eax
call dword [ebp - 0xc]
test eax, eax
jne 0x429be7
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 0x42a85e
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 0x42a8a2
cmp byte [ebp - 0x10c], 0x32
je 0x42a8c7
jmp 0x42a8ec
mov eax, dword [ebp + 8]
add eax, 2
push eax
lea ecx, [ebp - 0x104]
push ecx
push 0x4db184
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040a150
add esp, 0x14
jmp 0x42a8f6
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.0040a150
add esp, 0x14
jmp 0x42a8f6
mov dword [ebp - 0x108], 0
mov eax, dword [ebp - 0x108]
mov esp, ebp
pop ebp
ret

Function at 0x42a900
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af6b0
push 0x4a7764
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 0x42a956
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
jmp 0x42a9b2
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 0x42a97a
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov cx, word [eax + 6]
test ecx, ecx
jne 0x42a98d
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
jmp 0x42a9b2
mov dword [ebp - 0x2c], 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
jmp 0x42a9b2
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42aa4b
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push 0x80
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
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 0x42aa9c
push 1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, 1
jmp 0x42ab21
mov edx, dword [ebp + 8]
push edx
push str._s.tmp2
push 0x104
lea eax, [ebp - 0x104]
push eax
call fcn.0040a150
add esp, 0x10
push 0x80
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
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 0x42ab18
push 4
push 0
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x42ab18
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 0x42ab1c
xor eax, eax
jmp 0x42ab21
mov eax, 2
mov esp, ebp
pop ebp
ret

Function at 0x42ab25
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0x80
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
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 [sym.imp.KERNEL32.dll_DeleteFileA]
pop ebp
ret
Function at 0x42ab5b
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
cmp dword [ebp + 8], 0
je 0x42ab76
cmp dword [ebp + 0x14], 0
je 0x42ab76
cmp dword [ebp + 0x18], 0
jne 0x42ab7d
xor eax, eax
jmp 0x42ad23
push 0
push 0
push 3
push 0
push 1
push closesocket
mov eax, dword [ebp + 8]
push eax
call dword [0x5416c4]
mov dword [ebp - 0xfc], eax
cmp dword [ebp - 0xfc], 0xffffffff
jne 0x42abac
xor eax, eax
jmp 0x42ad23
cmp dword [ebp + 0xc], 0
jne 0x42abbb
lea ecx, [ebp - 0x13c]
mov dword [ebp + 0xc], ecx
cmp dword [ebp + 0x10], 0
jne 0x42abca
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 [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42ad14
cmp dword [ebp - 0x140], 0x40
jne 0x42ad14
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
jne 0x42ad14
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 [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp + 0xc]
cmp eax, dword [edx + 0x3c]
jne 0x42ad14
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 [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42ad14
cmp dword [ebp - 0x140], 0xf8
jne 0x42ad14
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0x4550
jne 0x42ad14
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov dx, word [ecx + 6]
test edx, edx
je 0x42ad14
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 [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov cx, word [eax + 6]
cmp dword [ebp + 0x18], ecx
jbe 0x42acc5
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 [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42ad14
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 0x42ad23
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 0x42b4af
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
cmp dword [ebp + 8], 0
je 0x42b4ce
mov eax, dword [ebp + 8]
push eax
call sub.ntdll.dll_strlen
add esp, 4
test eax, eax
jne 0x42b4d2
xor eax, eax
jmp 0x42b54a
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x42b4e4
xor eax, eax
jmp 0x42b54a
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x42b50c
mov eax, dword [ebp - 8]
and eax, 0x10
test eax, eax
je 0x42b505
xor eax, eax
jmp 0x42b54a
mov eax, 1
jmp 0x42b54a
lea ecx, [ebp - 0x148]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x42b52a
xor eax, eax
jmp 0x42b54a
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x148]
and ecx, 0x10
test ecx, ecx
je 0x42b545
xor eax, eax
jmp 0x42b54a
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x42b570
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 0x42b647
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 0x42b5be
mov eax, 1
jmp 0x42b64c
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.0042b54e
add esp, 0xc
lea ecx, [ebp - 0x104]
push ecx
call sub.ntdll.dll_strlen
add esp, 4
cmp eax, 2
jne 0x42b60f
movsx edx, byte [ebp - 0x103]
cmp edx, 0x3a
jne 0x42b60f
mov eax, dword [ebp - 0x108]
add eax, 1
mov dword [ebp - 0x108], eax
jmp 0x42b582
push 0
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x42b633
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x42b633
xor eax, eax
jmp 0x42b64c
mov edx, dword [ebp - 0x108]
add edx, 1
mov dword [ebp - 0x108], edx
jmp 0x42b582
mov eax, 1
mov esp, ebp
pop ebp
ret