joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51311c
Capabilities:
Create process on windows
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x31
push 0
push 0
dec ecx
jne 0x513124
push ebx
push esi
xor eax, eax
push ebp
push 0x5133e1
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00402af4
test eax, eax
jne 0x5132f1
xor edx, edx
push ebp
push 0x5132d9
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x160]
push eax
push 0x104
call sub.KERNEL32.DLL_GetTempPathA
lea edx, [ebp - 0x168]
xor eax, eax
call fcn.00402b54
mov eax, dword [ebp - 0x168]
lea edx, [ebp - 0x164]
call fcn.0040959c
push dword [ebp - 0x164]
push 0x5133fc
lea eax, [ebp - 0x16c]
call fcn.00513060
push dword [ebp - 0x16c]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404a98
lea edx, [ebp - 8]
xor eax, eax
call fcn.00402b54
push 0x40
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x417d84]
call fcn.0041cb68
mov ebx, eax
push 0xffff
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x417d84]
call fcn.0041cb68
mov esi, eax
push 0
push 0
mov edx, ebx
mov eax, esi
call fcn.0041c8ec
call fcn.00402bb4
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
sub eax, 0x64
sbb edx, 0
call fcn.00403194
cdq
push edx
push eax
mov eax, ebx
call fcn.0041c670
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, ebx
call fcn.0041c650
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00403194
cdq
push edx
push eax
mov edx, ebx
mov eax, esi
call fcn.0041c8ec
mov eax, ebx
call fcn.004038e4
mov eax, esi
call fcn.004038e4
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x44
call fcn.00403174
mov dword [ebp - 0x50], 0x44
mov dword [ebp - 0x24], 1
mov word [ebp - 0x20], 1
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0x20
push 0xffffffffffffffff
push 0
push 0
push dword [ebp - 0xc]
push 0x513408
lea edx, [ebp - 0x178]
xor eax, eax
call fcn.00402b54
mov eax, dword [ebp - 0x178]
lea edx, [ebp - 0x174]
call fcn.0051acd8
push dword [ebp - 0x174]
lea eax, [ebp - 0x170]
mov edx, 3
call fcn.00404a98
mov eax, dword [ebp - 0x170]
call fcn.00404bd8
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5132e0
ret
lea edx, [ebp - 0x17c]
mov eax, 1
call fcn.00402b54
mov eax, dword [ebp - 0x17c]
mov edx, 0x513418
call fcn.00404b24
jne 0x5133b6
xor eax, eax
push ebp
push 0x51339e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x180]
mov eax, 2
call fcn.00402b54
mov eax, dword [ebp - 0x180]
call fcn.00409060
push eax
push 0
push 1
call sub.KERNEL32.DLL_OpenProcess
mov ebx, eax
push 0
push ebx
call sub.KERNEL32.DLL_TerminateProcess
push ebx
call sub.KERNEL32.DLL_CloseHandle
push 0x1f4
call sub.KERNEL32.DLL_Sleep
lea edx, [ebp - 0x188]
mov eax, 3
call fcn.00402b54
mov eax, dword [ebp - 0x188]
lea edx, [ebp - 0x184]
call fcn.0051a7b0
mov eax, dword [ebp - 0x184]
call fcn.0040943c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5133a5
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5133e8
lea eax, [ebp - 0x188]
mov edx, 0xa
call fcn.0040473c
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0040473c
ret
Function at 0x513420
Capabilities:
Create process on windows
Self delete

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe1c
push ebx
xor eax, eax
mov dword [ebp - 0x1e0], eax
mov dword [ebp - 0x1e4], eax
mov dword [ebp - 0x1d8], eax
mov dword [ebp - 0x1dc], eax
mov dword [ebp - 0x1d4], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5135d5
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1d4]
xor eax, eax
call fcn.00402b54
mov eax, dword [ebp - 0x1d4]
lea ecx, [ebp - 4]
mov edx, 0x5135ec
call fcn.004094d4
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d0]
call fcn.00402f08
lea eax, [ebp - 0x1d0]
call fcn.00402ca4
call fcn.00402934
mov edx, 0x5135fc
lea eax, [ebp - 0x1d0]
call fcn.00404df4
call fcn.00403398
call fcn.00402934
mov edx, 0x513610
lea eax, [ebp - 0x1d0]
call fcn.00404df4
call fcn.00403398
call fcn.00402934
push 0x51361c
lea edx, [ebp - 0x1dc]
xor eax, eax
call fcn.00402b54
push dword [ebp - 0x1dc]
push 0x51362c
lea eax, [ebp - 0x1d8]
mov edx, 3
call fcn.00404a98
mov edx, dword [ebp - 0x1d8]
lea eax, [ebp - 0x1d0]
call fcn.00404df4
call fcn.00403398
call fcn.00402934
push 0x513638
lea edx, [ebp - 0x1e4]
xor eax, eax
call fcn.00402b54
push dword [ebp - 0x1e4]
push 0x51364c
lea eax, [ebp - 0x1e0]
mov edx, 3
call fcn.00404a98
mov edx, dword [ebp - 0x1e0]
lea eax, [ebp - 0x1d0]
call fcn.00404df4
call fcn.00403398
call fcn.00402934
mov edx, 0x513660
lea eax, [ebp - 0x1d0]
call fcn.00404df4
call fcn.00403398
call fcn.00402934
lea eax, [ebp - 0x1d0]
call fcn.00402fd0
call fcn.00402934
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404bd8
push eax
push 0
call sub.user32.dll_GetDesktopWindow
push eax
call sub.shell32.dll_ShellExecuteA
mov eax, dword [0x52b83c]
mov eax, dword [eax]
call fcn.004615c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5135dc
lea eax, [ebp - 0x1e4]
mov edx, 5
call fcn.0040473c
lea eax, [ebp - 4]
call fcn.00404718
ret
Function at 0x5196e8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ecx, eax
xor eax, eax
push ebp
push 0x5198f8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x52b318]
mov eax, dword [eax]
xor edx, edx
push edx
push eax
mov eax, ecx
cdq
cmp edx, dword [esp + 4]
jne 0x51971b
cmp eax, dword [esp]
pop edx
pop eax
je 0x5198e2
mov eax, dword [0x52b318]
mov dword [eax], ecx
mov eax, dword [0x52b318]
cmp dword [eax], 0
jne 0x51973e
mov eax, 0x51990c
call fcn.00432c7c
mov eax, dword [0x52b430]
push eax
mov eax, dword [0x52b318]
mov eax, dword [eax]
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [0x52b430]
mov eax, dword [eax]
call fcn.004feafc
mov eax, dword [0x52b430]
mov eax, dword [eax]
push eax
push 0
push 0x1f0fff
call sub.KERNEL32.DLL_OpenProcess
mov edx, dword [0x52b2d4]
mov dword [edx], eax
push 0x40
push 0x1000
push 0x1000
push 0
mov eax, dword [0x52b2d4]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_VirtualAllocEx
mov edx, dword [0x52b690]
mov dword [edx], eax
push 0x40
push 0x1000
push 0x1000
push 0
mov eax, dword [0x52b2d4]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_VirtualAllocEx
mov edx, dword [0x52b454]
mov dword [edx], eax
call fcn.00519460
push 0x40
push 0x1000
push 0x1000
push 0
mov eax, dword [0x52b2d4]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_VirtualAllocEx
mov ebx, eax
mov eax, dword [0x52b76c]
mov dword [eax + 0x34], ebx
mov eax, dword [0x52b76c]
add ebx, 0x200
mov eax, dword [0x52b970]
mov dword [eax + 0x90], ebx
call fcn.005187ac
mov eax, dword [0x52b87c]
cmp dword [eax], 0
jne 0x519834
mov eax, dword [0x52b318]
mov eax, dword [eax]
push eax
mov ecx, dword [0x52b430]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x51f9b8]
call fcn.005201cc
mov edx, dword [0x52b87c]
mov dword [edx], eax
jmp 0x51989c
mov eax, dword [0x52b87c]
mov eax, dword [eax]
mov eax, dword [eax + 0x334]
mov edx, dword [0x52b430]
cmp eax, dword [edx]
je 0x51989c
mov eax, dword [0x52b87c]
mov eax, dword [eax]
mov byte [eax + 0x348], 1
mov eax, dword [0x52b87c]
mov eax, dword [eax]
mov edx, 0x3e8
call fcn.0051fa38
mov eax, dword [0x52b318]
mov eax, dword [eax]
push eax
mov ecx, dword [0x52b430]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x51f9b8]
call fcn.005201cc
mov edx, dword [0x52b87c]
mov dword [edx], eax
jmp 0x51989c
mov eax, dword [0x52b83c]
mov eax, dword [eax]
call fcn.0046132c
mov eax, dword [0x52ba40]
cmp byte [eax], 0
je 0x519890
push 0x12c
call sub.KERNEL32.DLL_Sleep
xor eax, eax
mov dword [ebp - 4], eax
push 4
lea ecx, [ebp - 4]
mov edx, 0x5201a0
mov eax, dword [0x52b87c]
mov eax, dword [eax]
call fcn.005200d0
lea eax, [ebp - 8]
call fcn.0051b388
mov edx, dword [ebp - 8]
mov eax, dword [0x52ba54]
mov eax, dword [eax]
call fcn.004683bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5198ff
lea eax, [ebp - 8]
call fcn.00404718
ret
Function at 0x5200d0
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x1000
push 0
mov eax, dword [ebx + 0x54]
push eax
call sub.KERNEL32.DLL_VirtualAllocEx
mov esi, eax
push 0x40
push 0x1000
mov eax, dword [ebp + 8]
add eax, 4
push eax
push 0
mov eax, dword [ebx + 0x54]
push eax
call sub.KERNEL32.DLL_VirtualAllocEx
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push 0x32
mov eax, dword [ebp - 4]
push eax
push esi
mov eax, dword [ebx + 0x54]
push eax
call sub.KERNEL32.DLL_WriteProcessMemory
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 8]
push eax
push edi
mov eax, dword [ebx + 0x54]
push eax
call sub.KERNEL32.DLL_WriteProcessMemory
lea eax, [ebp - 0x14]
push eax
push 0
push edi
push esi
push 0
push 0
mov eax, dword [ebx + 0x54]
push eax
call sub.KERNEL32.DLL_CreateRemoteThread
mov dword [ebp - 0x10], eax
push 0xffffffffffffffff
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
push 0x8000
push 0
push esi
mov eax, dword [ebx + 0x54]
push eax
call sub.KERNEL32.DLL_VirtualFreeEx
push 0x8000
push 0
push edi
mov eax, dword [ebx + 0x54]
push eax
call sub.KERNEL32.DLL_VirtualFreeEx
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401020
Capabilities:
Move file

Disassembly:
mov eax, dword [0x408eb8]
sub esp, 0x104
test eax, eax
je 0x401076
push str..disable
push 0x408db0
lea eax, [esp + 8]
push str._s_s
push eax
call fcn.00401e80
add esp, 0x10
lea ecx, [esp]
push 0x408db0
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x40106c
push str.Unable_to_put_back_SafeDiscShim__r_n
call fcn.00401000
add esp, 4
mov dword [0x408eb8], 0
add esp, 0x104
ret

Function at 0x401080
Capabilities:
Extract resource via kernel32 functions
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x3e8
lea eax, [esp + 0x3f0]
lea edx, [esp]
push eax
push ecx
push edx
call fcn.00401fd4
add esp, 0xc
lea eax, [esp]
push 0x10
push str.SafeDiscLoader
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.00401020
push 0xffffffffffffffff
call fcn.00401eff

Function at 0x4010c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
and eax, 0xffff
push 0x408130
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4010ec
push str.Could_not_LoadResource
call fcn.00401080
add esp, 4
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
push edi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [esp + 0x10]
pop edi
pop esi
mov dword [edx], eax
ret
Function at 0x401120
Capabilities:
Check if file exists
Create thread
Get common file path
Get file attributes
Inject dll
Inject thread

Disassembly:
sub esp, 0x210
lea eax, [esp + 8]
push ebx
push ebp
push esi
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, str.secdrvemu.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x408eb4]
mov ecx, ebx
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jne 0x401181
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4011d2
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
push 0x65
call fcn.004010c0
lea eax, [esp + 0x24]
push 0x40824c
push eax
call fcn.004021a5
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4011b7
push str.Could_not_write_SecDrvEmu.dll_n
call fcn.00401080
add esp, 4
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push esi
push ecx
push 1
push edx
call fcn.0040207b
push esi
call fcn.00402025
add esp, 0x14
mov eax, dword [esp + 0x224]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x4011fa
push 0x408204
call fcn.00401080
add esp, 4
push 0x4081f4
push 0x4081e4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0x11c]
push 0
push ecx
lea edx, [esp + 0x20]
push 0x104
push edx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
push 4
repne scasb al, byte es:[edi]
not ecx
push 0x3000
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
jne 0x401260
push 0x4081ac
call fcn.00401080
add esp, 4
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x120]
push ecx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x401294
push 0x40816c
call fcn.00401080
add esp, 4
push 0
push 0
push ebx
push ebp
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
test edi, edi
jne 0x4012b8
push 0x408138
call fcn.00401080
add esp, 4
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x210
ret
Function at 0x4012e0
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Resume thread
Terminate process
Use process replacement

Disassembly:
sub esp, 0x54
push 0x23
push str.SafeDiscLoader
push str.This_does_not_appear_to_be_a_SafeDisc_2.9_or_higher_executable__r_n_r_nInject_SecDrvEmu.dll_Emulation_and_hope_for_the_best_anyway_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x401397
push esi
mov esi, dword [esp + 0x5c]
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
push esi
push str.lpApplicationName:__s_n
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0x44
call fcn.00401000
add esp, 8
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push 0
push 4
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401371
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Failed_to_CreateProcess:__s_r_n_ErrCode:__d__n
call fcn.00401080
add esp, 0xc
mov eax, dword [esp + 0x10]
push eax
call fcn.00401120
mov ecx, dword [esp + 0x10]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
call fcn.00401020
push 0
call fcn.00401eff
pop edi
pop esi
push 0xffffffffffffffff
call fcn.00401eff
nop
nop

Function at 0x4013a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov eax, dword [0x408da4]
mov dl, byte [esp + 0x18]
push esi
push edi
mov ecx, dword [eax + 0x3c]
mov byte [ecx + eax - 3], dl
mov dl, byte [esp + 0x14]
mov byte [ecx + eax - 8], 0xcc
lea esi, [ecx + eax - 8]
mov al, byte [esp + 0x1c]
mov cl, byte [esp + 0x18]
mov byte [esi + 4], al
mov al, byte [esp + 0x10]
mov byte [esi + 3], cl
mov byte [esi + 2], dl
mov byte [esi + 1], al
mov edi, dword [0x408da8]
mov ecx, dword [0x408da4]
mov edx, dword [0x408da0]
sub edi, ecx
lea ecx, [esp + 0x20]
push ecx
add edi, esi
push 0x40
push 8
push edi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ecx, dword [0x408da0]
lea eax, [esp + 8]
push eax
push 8
push esi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
pop edi
pop esi
pop ecx
ret
Function at 0x401420
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x10c
lea eax, [esp + 8]
push ebx
push esi
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, 0x408344
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x408eb4]
mov ecx, ebx
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jne 0x401480
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4014d1
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
push edx
push 0x66
call fcn.004010c0
lea eax, [esp + 0x20]
push 0x40824c
push eax
call fcn.004021a5
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4014b6
push str.Could_not_write_SDLoader.dll_n
call fcn.00401080
add esp, 4
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push esi
push ecx
push 1
push edx
call fcn.0040207b
push esi
call fcn.00402025
add esp, 0x14
mov ecx, dword [0x408dac]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x10c
ret

Function at 0x401530
Capabilities:
Set current directory

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
call fcn.004014f0
add esp, 4
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call fcn.004021e7
add esp, 4
pop esi
ret
Function at 0x404bb5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x408858
cmp edx, dword [eax]
je 0x404bd7
add eax, 8
inc ecx
cmp eax, 0x4088e8
jl 0x404bc8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x408858]
jne 0x404d05
mov eax, dword [0x408f14]
cmp eax, 1
je 0x404cdf
test eax, eax
jne 0x404c08
cmp dword [0x408794], 1
je 0x404cdf
cmp edx, 0xfc
je 0x404d05
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404c3f
lea eax, [ebp - 0x1a4]
push 0x407480
push eax
call fcn.00405f70
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404db0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404c82
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404db0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40747c
push edi
call fcn.004060f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x407460
push eax
call fcn.00405f70
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405f80
lea eax, [ebp - 0xa0]
push 0x40745c
push eax
call fcn.00405f80
push dword [esi + 0x40885c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405f80
push 0x12010
lea eax, [ebp - 0xa0]
push 0x407434
push eax
call fcn.00406060
add esp, 0x2c
pop edi
jmp 0x404d05
lea eax, [ebp + 8]
lea esi, [esi + 0x40885c]
push 0
push eax
push dword [esi]
call fcn.00404db0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401630
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x4fe0]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [esp + 0x10]
mov ecx, dword [esi + 0x4fd8]
mov ebx, dword [esi + 0x4fdc]
shr ecx, 0x1c
mov eax, edi
and eax, 0xf
shl ebx, 4
add ecx, ebx
mov edx, edi
shr edx, 4
shl eax, 0x1c
cmp edi, ecx
sbb ecx, ecx
and ecx, 0x10000000
push ecx
push eax
push edx
mov edx, dword [esi + 0x28]
push 4
push edx
mov dword [esi + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0x4fe0], eax
je 0x401696
mov dword [esi + 0x18], edi
pop edi
pop esi
pop ebx
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [0x4495b8]
push 0x437488
push str.Debug.txt
mov esi, eax
call fcn.0041b556
push esi
push esi
push 0x4374a0
push str._s_d__x__n
push eax
mov dword [edi], eax
call fcn.0041b49c
mov eax, dword [edi]
push eax
call fcn.0041b44b
push 0xdf
call fcn.00416d90
push eax
call fcn.00416de0
add esp, 0x28
pop edi
pop esi
pop ebx
ret 4
Function at 0x402590
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4025a1
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esi + 0x4fe0]
push eax
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4025e5
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4025e5
mov ecx, dword [esi + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [esi + 0x48], 0x7e
lea eax, [esi + 0x48]
mov dword [esi + 0x10], 0
jne 0x4025e5
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret
Function at 0x40be70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42f118
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x2c]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x28]
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x3c]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x40]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov edx, dword [esp + 0x30]
push edx
mov ecx, esi
mov dword [esp + 0x20], esi
call fcn.00416e50
mov ecx, dword [esp + 0x34]
xor eax, eax
mov dword [esi + 0x10cc078], ecx
mov ecx, esi
mov dword [esp + 0x10], eax
mov dword [esi], 0x438120
mov dword [esi + 0x1097a10], eax
call fcn.0040ef40
mov ecx, dword [esp + 8]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret 0x20