joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40db90
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [esp + 4]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
push eax
mov dword [esi], vtable.CEt99Ex.0
mov dword [esi + 8], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0xc], eax
cmp eax, ebx
je 0x40dc3f
cmp eax, 0xffffffff
je 0x40dc3f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.et_FindToken
push eax
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
push str.et_OpenToken
push eax
call edi
mov ecx, dword [esi + 0xc]
push str.et_CloseToken
push ecx
mov dword [esi + 0x18], eax
call edi
mov edx, dword [esi + 0xc]
push str.et_Verify
push edx
mov dword [esi + 0x1c], eax
call edi
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0xc]
push str.et_Read
push eax
call edi
mov dword [esi + 0x24], eax
pop edi
cmp dword [esi + 0x14], ebx
je 0x40dc3f
cmp dword [esi + 0x18], ebx
je 0x40dc3f
cmp dword [esi + 0x1c], ebx
je 0x40dc3f
cmp dword [esi + 0x20], ebx
je 0x40dc3f
cmp eax, ebx
mov eax, esi
je 0x40dc41
mov dword [esi + 0x10], 1
pop esi
pop ebx
ret 4
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x40de20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp]
push eax
push 0x20019
push 0
push ecx
push edx
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40de4e
xor eax, eax
pop ecx
ret 0x18
mov ecx, dword [esp + 0x18]
push esi
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x20]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ecx
ret 0x18

Function at 0x40de90
Capabilities:
Query or enumerate registry key

Disassembly:
push ecx
push esi
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 8], 0
test edi, edi
je 0x40defb
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x40defb
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40defb
push eax
push eax
push eax
push eax
push esi
push eax
push eax
push edi
push eax
push eax
push eax
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ecx, dword [esp + 8]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop edi
sete al
pop esi
pop ecx
ret 0x10
pop edi
xor eax, eax
pop esi
pop ecx
ret 0x10
Function at 0x40df10
Capabilities:
Query or enumerate registry key

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push edi
lea eax, [esp + 4]
push eax
push 0x20019
xor edi, edi
push edi
push ecx
push edx
mov dword [esp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
je 0x40df3e
xor eax, eax
pop edi
pop ecx
ret 0x10
mov eax, 0xfc0fc0fd
mul dword [esp + 0x18]
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
shr edx, 8
push esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], 0x104
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
push ebx
push edi
push ecx
call ebp
mov esi, eax
inc edi
cmp esi, 0x103
je 0x40df9c
cmp edi, dword [esp + 0x18]
ja 0x40df9c
add ebx, 0x104
mov dword [esp + 0x1c], 0x104
test esi, esi
je 0x40df63
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40dfbd
cmp esi, 0x103
je 0x40dfbd
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
pop ecx
ret 0x10
pop esi
pop ebp
pop ebx
mov eax, 1
pop edi
pop ecx
ret 0x10

Function at 0x40e6a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x468c58
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4896a0]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov eax, dword [0x4896a0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, dword [esp + 0x40]
xor eax, eax
mov dword [esp + 8], eax
mov edx, dword [esp + 0x44]
push 0x20
lea ecx, [esp + 0x10]
push ecx
push eax
push eax
push eax
push eax
push eax
push eax
push edx
mov dword [esp + 0x5c], eax
mov byte [esp + 0x30], al
mov dword [esp + 0x31], eax
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov dword [esp + 0x49], eax
mov word [esp + 0x4d], ax
mov byte [esp + 0x4f], al
call fcn.0044c4cc
add esp, 0x24
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00403c70
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e754
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00449ba6
add esp, 0x34
ret 8
Function at 0x40e970
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x81c
mov eax, dword [0x4896a0]
xor eax, esp
mov dword [esp + 0x818], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x830]
push edi
mov edi, dword [esp + 0x830]
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x42d]
mov ebp, ecx
push ebx
mov dword [esp + 0x20], ebx
push eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x20], edi
mov byte [esp + 0x434], bl
call fcn.00449a70
push 0x1ff
lea ecx, [esp + 0x239]
push ebx
push ecx
mov byte [esp + 0x240], bl
call fcn.00449a70
add esp, 0x18
push 0x200
lea edx, [esp + 0x22c]
push edx
push 1
push 0x46db5c
push esi
push SysReAllocString
mov ecx, ebp
call fcn.0040de20
test eax, eax
je 0x40ea33
lea eax, [esp + 0x428]
push eax
lea ecx, [esp + 0x22c]
push ecx
mov ecx, ebp
call fcn.0040dfd0
test eax, eax
je 0x40ea33
lea edx, [esp + 0x428]
push edx
mov ecx, edi
call fcn.00403c70
mov eax, edi
jmp 0x40eb8e
push 0x1ff
lea eax, [esp + 0x2d]
push ebx
push eax
mov byte [esp + 0x34], bl
call fcn.00449a70
push esi
lea ecx, [esp + 0x38]
push str._sOpenWithProgids
push ecx
call fcn.00449aea
add esp, 0x18
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
push ecx
push SysReAllocString
mov ecx, ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
call fcn.0040de90
mov edx, dword [esp + 0x10]
imul edx, edx, 0x104
push edx
call fcn.00426d03
mov ebp, eax
add esp, 4
cmp ebp, ebx
jne 0x40eac2
mov eax, dword [esp + 0x10]
imul eax, eax, 0x104
push eax
call fcn.00426d03
mov ebp, eax
add esp, 4
cmp ebp, ebx
jne 0x40eac2
push 0x46db5c
mov ecx, edi
call fcn.00403c70
mov eax, edi
jmp 0x40eb8e
mov ecx, dword [esp + 0x10]
imul ecx, ecx, 0x104
push ecx
push ebx
push ebp
call fcn.00449a70
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
push 0x20019
push ebx
lea eax, [esp + 0x34]
push eax
push SysReAllocString
mov dword [esp + 0x34], ebx
mov edi, ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40eb73
xor esi, esi
cmp dword [esp + 0x10], ebx
jbe 0x40eb36
mov edx, dword [esp + 0x1c]
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x30]
push ecx
push edi
push esi
push edx
mov dword [esp + 0x40], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
je 0x40eb36
inc esi
add edi, 0x104
cmp esi, dword [esp + 0x10]
jb 0x40eb04
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov edi, ebp
cmp dword [esp + 0x10], ebx
jbe 0x40eb73
jmp 0x40eb50
lea ecx, [esp + 0x428]
push ecx
mov ecx, dword [esp + 0x28]
push edi
call fcn.0040dfd0
test eax, eax
jne 0x40eba9
inc esi
add edi, 0x104
cmp esi, dword [esp + 0x10]
jb 0x40eb50
push ebp
call fcn.00426cf8
add esp, 4
push 0x46db5c
mov esi, dword [esp + 0x18]
mov ecx, esi
call fcn.00403c70
mov eax, esi
mov ecx, dword [esp + 0x828]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00449ba6
add esp, 0x81c
ret 8
push ebp
call fcn.00426cf8
add esp, 4
lea edx, [esp + 0x428]
push edx
jmp 0x40eb81
Function at 0x40f6f0
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x280
mov eax, dword [0x4896a0]
xor eax, esp
mov dword [esp + 0x27c], eax
push esi
mov esi, dword [esp + 0x288]
push edi
push 0x3c
lea eax, [esp + 0x2c]
push 0
push eax
mov dword [esp + 0x30], 0
call fcn.00449a70
push 0xff
lea ecx, [esp + 0x195]
push 0
push ecx
mov byte [esp + 0x19c], 0
call fcn.00449a70
push 0
push 0
push 0x100
lea edx, [esp + 0x1a8]
push edx
push 0
push 0
push 0
push 0
push esi
call fcn.0044c4cc
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
add esp, 0x3c
push str.ugs_router
lea eax, [esp + 0x188]
push eax
call edi
test eax, eax
je 0x40f7d2
push str.proe
lea ecx, [esp + 0x188]
push ecx
call edi
test eax, eax
je 0x40f7d2
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40f7d2
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [esp + 0xc]
push edx
push 0x40
lea eax, [esp + 0x150]
push eax
push esi
call edi
test eax, eax
jne 0x40f7eb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x27c]
xor ecx, esp
call fcn.00449ba6
add esp, 0x280
ret
mov ecx, 0x5a4d
cmp cx, word [esp + 0x144]
jne 0x40f7cb
push 0
lea edx, [esp + 0xc]
push edx
push 0x40
lea eax, [esp + 0x30]
push eax
push esi
call edi
test eax, eax
je 0x40f7cb
mov ecx, dword [esp + 0x180]
push 0
push 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x40f7cb
push 0
lea edx, [esp + 0xc]
push edx
push 4
lea eax, [esp + 0x18]
push eax
push esi
call edi
test eax, eax
je 0x40f7cb
cmp dword [esp + 0xc], 0x4550
jne 0x40f7cb
push 0
lea ecx, [esp + 0xc]
push ecx
push 0x14
lea edx, [esp + 0x1c]
push edx
push esi
call edi
test eax, eax
je 0x40f7cb
push 0
lea eax, [esp + 0xc]
push eax
push 0xe0
lea ecx, [esp + 0x70]
push ecx
push esi
call edi
push esi
test eax, eax
je 0x40f7cc
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x284]
xor eax, eax
cmp word [esp + 0xa8], 2
pop edi
sete al
pop esi
xor ecx, esp
call fcn.00449ba6
add esp, 0x280
ret
Function at 0x40f930
Capabilities:
Acquire debug privileges
Create thread
Inject dll
Inject thread

Disassembly:
sub esp, 8
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f950
sub eax, edx
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00426d03
mov ebp, eax
add esp, 4
add esi, esi
mov eax, esi
shr eax, 1
push eax
push ebp
push 0xffffffffffffffff
push edi
push 0
push 0
mov dword [ebp], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [esp + 0xc]
push ecx
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40f9b7
pop edi
pop esi
pop ebp
add esp, 8
ret
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0040f8b0
add esp, 0xc
test eax, eax
je 0x40fa66
mov eax, dword [esp + 0x18]
push eax
push 0
push 0x2a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40fa66
cmp edi, 0xffffffff
je 0x40fa56
push ebx
push 4
push 0x1000
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
je 0x40fa55
push 0
push esi
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40fa55
push str.LoadLibraryW
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0
push ebx
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x40fa55
mov dword [esp + 0x14], 1
cmp eax, 0xffffffff
je 0x40fa55
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
test edi, edi
je 0x40fa66
cmp edi, 0xffffffff
je 0x40fa66
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40fa8e
cmp eax, 0xffffffff
je 0x40fa8e
push 0
push str.SeDebugPrivilege
push eax
call fcn.0040f8b0
mov ecx, dword [esp + 0x18]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x40fa9b
push ebp
call fcn.00426cf8
add esp, 4
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 8
ret
Function at 0x40fab0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x4896a0]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
mov ebx, dword [esp + 0x110]
push ebp
push esi
push edi
mov edi, dword [esp + 0x120]
push 0x103
lea eax, [esp + 0x15]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x1c], 0
call fcn.00449a70
mov ecx, dword [esi + 0x7c]
add esp, 0xc
push ecx
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fb07
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
sub eax, edx
cmp byte [esp + eax + 0xf], 0x5c
je 0x40fb29
push 0x46d8b4
lea eax, [esp + 0x14]
push eax
call ebp
push str.PCID.DAT
lea ecx, [esp + 0x14]
push ecx
call ebp
mov eax, dword [esi + 0x80]
lea edx, [esp + 0x10]
push edx
push 0
push str.Auto
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [esp + 0x10]
push ecx
push 0x104
push edi
push 0
mov dword [ebx], eax
mov edx, dword [esi + 0x80]
push str.Pcid
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor ecx, ecx
test eax, eax
setg cl
pop edi
pop esi
pop ebp
pop ebx
mov eax, ecx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00449ba6
add esp, 0x108
ret 8
Function at 0x410435
Capabilities:
Get disk information

Disassembly:
sub esp, 0x210
mov eax, dword [0x4896a0]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push esi
mov esi, ecx
call fcn.00431ca2
mov ecx, esi
call fcn.0040fd60
xor ebx, ebx
cmp dword [esi + 0x84], ebx
je 0x410455
mov ecx, esi
call fcn.0040ff60
push 0xff
lea eax, [esp + 0x119]
push ebx
push eax
mov dword [esi + 0x74], ebx
mov byte [esp + 0x120], bl
call fcn.00449a70
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 0x100
lea edx, [esp + 0x12c]
push edx
push 0x46dd00
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esi + 0x1ac]
push 0x46eeb8
push ecx
call fcn.00405290
push 0x103
lea edx, [esp + 0x21]
push ebx
push edx
mov byte [esp + 0x28], bl
call fcn.00449a70
add esp, 0x18
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
mov dword [esp + 0x10], ebx
call fcn.0040fab0
test eax, eax
je 0x410528
cmp dword [esp + 8], ebx
je 0x410528
lea eax, [esp + 0x10]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4104f0
sub eax, edx
push eax
lea edx, [esp + 0x14]
push edx
lea ecx, [esi + 0x1a8]
call fcn.004033c0
push 0x3ec
mov ecx, esi
call fcn.0042ee5d
mov eax, dword [eax + 0x20]
push ebx
push 1
push 0xf1
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push ebx
mov ecx, esi
call fcn.0042a3da
mov ecx, dword [esp + 0x214]
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00449ba6
add esp, 0x210
ret
Function at 0x411320
Capabilities:
Delete file
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xaec
mov eax, dword [0x4896a0]
xor eax, esp
mov dword [esp + 0xae8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x103
lea eax, [esp + 0x9ed]
push 0
push eax
mov byte [esp + 0x9f4], 0
call fcn.00449a70
push esi
lea ecx, [esp + 0x9f8]
push str.ODMGuard__s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x9d2
lea edx, [esp + 0x2c]
push 0
push edx
call fcn.00449a70
add esp, 0x24
lea eax, [esp + 0x9e8]
push eax
push 1
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov ebx, eax
test ebx, ebx
je 0x4114fa
cmp ebx, 0xffffffff
je 0x4114fa
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
test eax, eax
jne 0x4113d6
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x18]
push 0
push 0
push 0x844
push ecx
jmp 0x411508
mov esi, eax
mov ecx, 0x274
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov edx, dword [esp + 0x18]
push 0
push 0
push 0x844
push edx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov eax, dword [esp + 0x14]
push eax
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x411425
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call edi
cmp dword [esp + 0x10], 2
jne 0x41146c
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea edx, [esp + 0x20]
push edx
push 1
push 4
mov esi, eax
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xae8]
xor ecx, esp
call fcn.00449ba6
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x120]
push eax
call fcn.0041b660
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
add esp, 4
call esi
push eax
call fcn.00408070
add esp, 4
push 1
call esi
push eax
call fcn.00467200
add esp, 8
call esi
push eax
call fcn.00467300
push 0
push 0
lea ecx, [esp + 0x334]
push ecx
lea edx, [esp + 0x130]
push edx
lea eax, [esp + 0x238]
push eax
call fcn.0041e2b0
lea ecx, [esp + 0x34]
push ecx
mov esi, eax
call fcn.0041b840
add esp, 0x1c
test eax, eax
je 0x4114e3
lea edx, [esp + 0x1c]
push edx
call fcn.004123b0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xae8]
xor ecx, esp
call fcn.00449ba6
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
push 0
push 0
push 0x844
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov ecx, dword [esp + 0xaf4]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00449ba6
mov esp, ebp
pop ebp
ret
Function at 0x4123b0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x558
mov eax, dword [0x4896a0]
xor eax, esp
mov dword [esp + 0x554], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x568]
push edi
push 0x207
lea eax, [esp + 0x159]
push 0
push eax
mov byte [esp + 0x160], 0
call fcn.00449a70
push 0x207
lea ecx, [esp + 0x36d]
push 0
push ecx
mov byte [esp + 0x374], 0
call fcn.00449a70
mov eax, esi
add esp, 0x18
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412410
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
sub eax, edx
cmp byte [eax + esi - 1], 0x5c
je 0x41242e
push 0x46d8b4
push esi
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea edx, [esp + 0x360]
push edx
call ebp
push 0x46db80
lea eax, [esp + 0x360]
push eax
call edi
push 0x140
lea ecx, [esp + 0x18]
push 0
push ecx
call fcn.00449a70
add esp, 0xc
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x360]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0xffffffff
je 0x41255b
test ebx, ebx
je 0x41255b
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x4124a0
lea ecx, [esp + 0x40]
push 0x46db7c
push ecx
call fcn.0044a83e
add esp, 8
test eax, eax
je 0x41252a
lea edx, [esp + 0x40]
push 0x46db68
push edx
call fcn.0044a83e
add esp, 8
test eax, eax
je 0x41252a
push esi
lea eax, [esp + 0x158]
push eax
call ebp
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x158]
push edx
call edi
lea eax, [esp + 0x154]
push eax
call ebx
test al, 0x10
je 0x412506
lea ecx, [esp + 0x154]
push ecx
call fcn.004123b0
add esp, 4
jmp 0x41252a
test al, 1
je 0x41251c
and eax, 0xfffffffe
push eax
lea edx, [esp + 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4124a0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, 1
jmp 0x41255d
xor eax, eax
mov ecx, dword [esp + 0x564]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00449ba6
add esp, 0x558
ret
Function at 0x412580
Capabilities:
Get common file path

Disassembly:
sub esp, 0x548
mov eax, dword [0x4896a0]
xor eax, esp
mov dword [esp + 0x544], eax
push ebx
push esi
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x151]
push ebx
push eax
mov byte [esp + 0x158], bl
call fcn.00449a70
mov edx, dword [esp + 0x560]
lea ecx, [esp + 0x564]
push ecx
push edx
lea eax, [esp + 0x160]
push 0x400
push eax
call fcn.0044e051
push 0x103
lea ecx, [esp + 0x69]
push ebx
push ecx
mov byte [esp + 0x70], bl
call fcn.00449a70
add esp, 0x28
push 0x104
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.CDGOUT.LOG
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x48]
push 0x46f084
push ecx
call fcn.0044df87
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4126b3
xor eax, eax
lea edx, [esp + 0x14c]
mov dword [esp + 9], eax
mov dword [esp + 0xd], eax
mov dword [esp + 0x11], eax
mov dword [esp + 0x15], eax
mov dword [esp + 0x19], eax
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov word [esp + 0x25], ax
mov byte [esp + 0x27], al
mov dword [esp + 0x29], eax
mov dword [esp + 0x2d], eax
mov dword [esp + 0x31], eax
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
mov word [esp + 0x45], ax
mov byte [esp + 0x47], al
push edx
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x10], bl
mov byte [esp + 0x30], bl
call fcn.0044dea7
add esp, 4
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.0044dde8
add esp, 4
push eax
push str._s__s____s_n
push esi
call fcn.0044dc20
push esi
call fcn.0044dba4
add esp, 0x18
mov ecx, dword [esp + 0x54c]
pop esi
pop ebx
xor ecx, esp
call fcn.00449ba6
add esp, 0x548
ret

Function at 0x412700
Capabilities:
Get common file path
Get disk size

Disassembly:
sub esp, 0x118
mov eax, dword [0x4896a0]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x104
lea eax, [esp + 0x11]
push 0
push eax
mov byte [esp + 0xc], 0
mov byte [esp + 0xd], 0x3a
mov byte [esp + 0xe], 0x5c
mov byte [esp + 0xf], 0
mov byte [esp + 0x18], 0
call fcn.00449a70
add esp, 0xc
push 0x104
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov dl, byte [esp + 0xc]
push 4
lea eax, [esp + 0x10]
push 0x46f094
push eax
mov byte [esp + 0xc], dl
call fcn.0044db13
add esp, 0xc
test eax, eax
jne 0x412778
mov cl, byte [esp + 0x10]
mov byte [esp], cl
push 0
push 0
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x4127bd
cmp dword [esp + 8], 0
ja 0x4127bd
jb 0x4127a3
cmp dword [esp + 4], 0x6400000
ja 0x4127bd
mov eax, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00449ba6
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor ecx, esp
xor eax, eax
call fcn.00449ba6
add esp, 0x118
ret