joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407dca
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x407df8
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x407dff
cmp ebx, dword [eax + 4]
jae 0x407dff
xor eax, eax
jmp 0x407fef
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x407e10
xor eax, eax
inc eax
jmp 0x407fee
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x407e26
cmp ecx, edx
jae 0x407f6b
cmp dword [eax + 4], 0
je 0x407e2f
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x407e17
cmp dword [ebp + 8], 0
je 0x407e51
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x407f6b
cmp eax, esi
jae 0x407f6b
mov eax, dword [0x40f878]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x407e76
cmp dword [esi*4 + 0x40f880], edi
je 0x407f6f
inc esi
cmp esi, eax
jl 0x407e64
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x407feb
cmp dword [ebp - 8], 0x1000000
jne 0x407feb
test byte [ebp - 0xc], 0xcc
je 0x407ef4
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x407feb
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407feb
cmp word [eax + 0x18], 0x10b
jne 0x407feb
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x407feb
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x407ef4
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x407ef4
test byte [ecx + 0x27], 0x80
jne 0x407f6b
push 1
push 0x40f8c0
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x407e08
mov ecx, dword [0x40f878]
test ecx, ecx
mov edx, ecx
jle 0x407f28
lea eax, [ecx*4 + 0x40f87c]
cmp dword [eax], edi
je 0x407f28
dec edx
sub eax, 4
test edx, edx
jg 0x407f1c
test edx, edx
jne 0x407f59
push 0xf
pop ebx
cmp ecx, ebx
jg 0x407f35
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x407f4d
lea eax, [edx*4 + 0x40f880]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x407f3b
cmp ecx, 0x10
jge 0x407f59
inc ecx
mov dword [0x40f878], ecx
push 0
push 0x40f8c0
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x407e08
xor eax, eax
jmp 0x407fee
test esi, esi
jle 0x407e08
mov ebx, dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push 1
push 0x40f8c0
call ebx
test eax, eax
jne 0x407e08
cmp dword [esi*4 + 0x40f880], edi
je 0x407fc5
mov eax, dword [0x40f878]
lea esi, [eax - 1]
test esi, esi
jl 0x407fb3
cmp dword [esi*4 + 0x40f880], edi
je 0x407faf
dec esi
jns 0x407fa3
test esi, esi
jge 0x407fc3
cmp eax, 0x10
jge 0x407fbe
inc eax
mov dword [0x40f878], eax
lea esi, [eax - 1]
jmp 0x407fc5
je 0x407fdd
xor ecx, ecx
test esi, esi
jl 0x407fdd
lea eax, [ecx*4 + 0x40f880]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x407fcb
push 0
push 0x40f8c0
call ebx
jmp 0x407e08
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408ba8
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x408bc1
or eax, 0xffffffff
jmp 0x408c22
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x408c1e
push 0x3d
push esi
call fcn.00404390
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x408c1e
cmp esi, eax
je 0x408c1e
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x40f640]
sete cl
cmp eax, dword [0x40f644]
mov dword [ebp - 8], ecx
jne 0x408c04
mov edi, eax
call fcn.00408b47
mov dword [0x40f640], eax
cmp eax, ebx
jne 0x408c5d
cmp dword [ebp + 0xc], ebx
je 0x408c26
cmp dword [0x40f648], ebx
je 0x408c26
call fcn.00408610
test eax, eax
je 0x408c5d
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x408c2f
xor eax, eax
jmp 0x408c21
push 4
call fcn.00404fb6
cmp eax, ebx
pop ecx
mov dword [0x40f640], eax
je 0x408c1e
mov dword [eax], ebx
cmp dword [0x40f648], ebx
jne 0x408c5d
push 4
call fcn.00404fb6
cmp eax, ebx
pop ecx
mov dword [0x40f648], eax
je 0x408c1e
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x40f640]
call fcn.00408afa
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x408cbe
cmp dword [esi], ebx
je 0x408cbe
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00405027
cmp dword [ebp - 8], ebx
pop ecx
jne 0x408ca1
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x408cff
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x408c98
mov eax, edi
shl eax, 2
push eax
push dword [0x40f640]
call fcn.004083ad
cmp eax, ebx
pop ecx
pop ecx
je 0x408cff
jmp 0x408cfa
cmp dword [ebp - 8], ebx
jne 0x408d6a
cmp edi, ebx
jge 0x408ccd
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x40f640]
call fcn.004083ad
cmp eax, ebx
pop ecx
pop ecx
je 0x408c1e
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x40f640], eax
cmp dword [ebp + 0xc], ebx
je 0x408d54
push dword [ebp - 4]
call fcn.00403a90
inc eax
inc eax
push eax
call fcn.00404fb6
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x408d54
push dword [ebp - 4]
push esi
call fcn.00403ef0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
test eax, eax
jne 0x408d4d
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00405027
pop ecx
cmp dword [ebp - 8], ebx
je 0x408d62
push dword [ebp - 4]
call fcn.00405027
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x408c21
push dword [ebp - 4]
call fcn.00405027
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x408c2b
Function at 0x420bb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x420bbf
pop dword [ebp - 0x18]
mov eax, 0x420bbf
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x4118e
push 0
mov eax, 0x5c0d277c
sub eax, 0x5bcad564
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0x53fa
mov esi, eax
mov edi, 0x435400
add edi, dword [ebp - 0x18]
mov ebx, 0xdad9d2a4
add ebx, 0x17b9f216
xor dword [ebp - 8], 0x12c8cc02
mov edx, dword [edi]
xor dword [ebp - 0xc], edi
add edx, ebx
add dword [ebp - 0x14], eax
mov dword [esi], edx
xor dword [ebp - 8], esi
add esi, 4
add edi, 4
loop 0x420c0d
add eax, 0x7c97b2e7
add eax, 0x83698fd4
mov ebx, eax
add eax, 0x91919132
sub eax, 0x9191912d
mov ecx, 0x400000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x404000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 4], 0
je 0x40407b
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 0x104
lea eax, [ebp - 0xc]
push eax
push 0x104
mov ecx, dword [ebp + 0x14]
call fcn.004027c0
push eax
lea ecx, [ebp - 8]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
mov ecx, dword [ebp + 0x14]
call fcn.00402fa0
mov eax, 1
jmp 0x40407d
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4043d0
Capabilities:
Get installed programs
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ac92
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x38]
call fcn.00404930
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 4], 0
push 0x44ecfc
mov edx, dword [ebp - 0x54]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.00402130
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.004027a0
lea ecx, [ebp - 0x10]
call fcn.00402f80
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x14]
push ecx
push 8
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 0x14], 0
je 0x404570
mov dword [ebp - 0x20], 0
mov edx, 1
test edx, edx
je 0x404566
lea ecx, [ebp - 0x2c]
call fcn.00402f80
mov byte [ebp - 4], 4
mov dword [ebp - 0x34], 0x104
mov dword [ebp - 0x30], 0x104
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x30]
push ecx
push 0x104
lea ecx, [ebp - 0x2c]
call fcn.004027c0
push eax
push 0
lea edx, [ebp - 0x34]
push edx
push 0x104
lea ecx, [ebp - 0x10]
call fcn.004027c0
push eax
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4044e2
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.004027a0
jmp 0x404566
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00402fa0
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c]
call fcn.00402fa0
lea ecx, [ebp - 0x18]
call fcn.004027e0
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x10]
call fcn.00403b10
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
call fcn.004106b0
push eax
lea ecx, [ebp - 0x18]
call fcn.00404710
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x39], al
lea ecx, [ebp - 0x40]
call fcn.004027a0
movzx ecx, byte [ebp - 0x39]
test ecx, ecx
je 0x404555
mov dword [ebp - 0x1c], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.004027a0
jmp 0x404566
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.004027a0
jmp 0x40446e
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], 0
je 0x4045ae
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x10]
call fcn.004106b0
push eax
mov ecx, dword [ebp - 0x4c]
call fcn.00404150
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.004027a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004027a0
mov eax, dword [ebp - 0x44]
jmp 0x4045d3
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.004027a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004027a0
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x4045f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44aca4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x10]
call fcn.00402f80
mov dword [ebp - 4], 0
push str.SoftwareMicrosoftInternet_ExplorerMain
lea eax, [ebp - 0x10]
push eax
call fcn.00402ee0
add esp, 8
lea ecx, [ebp - 0x14]
push ecx
push 2
push 0
lea ecx, [ebp - 0x10]
call fcn.004106b0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 0x14], 0
je 0x4046a3
mov edx, dword [ebp + 8]
push edx
call fcn.0042db50
add esp, 4
add eax, 1
push eax
mov eax, dword [ebp + 8]
push eax
push 1
push 0
push str.Start_Page
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004027a0
mov eax, dword [ebp - 0x18]
jmp 0x4046bc
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004027a0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x405470
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
call fcn.00409380
mov dword [ebp - 0x10], eax
push str.Image
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4054a1
xor eax, eax
jmp 0x405505
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00406150
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp + 0xc]
call fcn.004061b0
push eax
call fcn.0042e1d0
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
call fcn.00405c10
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x40b840
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 4], eax
mov byte [ebp - 9], 0x43
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [0x44eff0]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], 0
jmp 0x40b87e
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0x1a
jge 0x40b8f3
mov edx, 1
mov ecx, dword [ebp - 0x1c]
shl edx, cl
and edx, dword [ebp - 4]
je 0x40b8f1
mov eax, dword [ebp - 0x1c]
add eax, 0x41
mov byte [ebp - 8], al
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 3
jne 0x40b8f1
mov dword [ebp - 0x28], 0
xor edx, edx
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x28]
push eax
push 0
push 0
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x14]
jb 0x40b8f1
ja 0x40b8df
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x18]
jbe 0x40b8f1
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x14], edx
mov al, byte [ebp - 8]
mov byte [ebp - 9], al
jmp 0x40b875
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x40e330
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
push 0
push 0
push 2
push 0
push 3
push 0x40000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x40e39c
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 8]
call fcn.00406170
test eax, eax
je 0x40e392
push 0
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406170
push eax
push 0
mov ecx, dword [ebp + 8]
call fcn.004061b0
push eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x411a10
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b9ee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ebp + 8]
add eax, 4
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.00402780
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
add ecx, 8
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.00402780
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
add edx, 0xc
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00402780
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
add eax, 0x10
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.00402780
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 8]
add ecx, 0x14
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.00402780
mov byte [ebp - 4], 4
mov edx, dword [ebp + 8]
add edx, 0x18
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.00402780
mov byte [ebp - 4], 5
mov eax, dword [ebp + 8]
add eax, 0x1c
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
call fcn.00402780
mov byte [ebp - 4], 6
mov ecx, dword [ebp + 8]
add ecx, 0x20
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.00402780
mov byte [ebp - 4], 7
mov edx, dword [ebp + 8]
add edx, 0x24
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.00402780
mov byte [ebp - 4], 8
mov eax, dword [ebp + 8]
add eax, 0x28
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
call fcn.00402780
mov byte [ebp - 4], 9
mov ecx, dword [ebp + 8]
add ecx, 0x2c
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call fcn.00402780
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x30]
mov dword [edx + 0x30], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x34]
mov dword [edx + 0x34], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x415470
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x12b4], 3
jne 0x4154ac
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x12a0], 0
je 0x415497
mov ecx, dword [ebp - 4]
call fcn.004167c0
mov ecx, dword [ebp - 4]
add ecx, 0x128c
call fcn.004106b0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
call dword [eax + 0x150]
mov esp, ebp
pop ebp
ret
Function at 0x4167c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44bf1e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push edi
mov dword [ebp - 0x80], ecx
lea eax, [ebp - 0x74]
push eax
call fcn.0040cdc0
mov ecx, eax
call fcn.00416f20
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x88], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x80]
add ecx, 0x1288
call fcn.004106b0
push eax
lea edx, [ebp - 0x78]
push edx
call fcn.00417990
add esp, 8
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x90], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x88]
push ecx
mov edx, dword [ebp - 0x90]
push edx
lea eax, [ebp - 0x70]
push eax
call fcn.00402090
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x78]
call fcn.004027a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x74]
call fcn.004027a0
push 0
call fcn.00424170
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x416881
jmp 0x4168a7
mov edx, dword [ebp - 0x70]
push edx
push str.Call_LaunchGuaGua__s__n
push 0x35e
push 0x450608
push 0
call fcn.00424190
add esp, 0xc
push eax
call fcn.004240d0
add esp, 0xc
mov dword [ebp - 0x6c], 0x44
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x68]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x70]
call fcn.004106b0
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00419b60
add esp, 8
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x98], ecx
mov byte [ebp - 4], 5
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0x98]
call fcn.004106b0
push eax
push 0
push 0
push 0
push 0
push 0
push 0x104
lea ecx, [ebp - 0x70]
call fcn.004027c0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7c]
call fcn.004027a0
cmp dword [ebp - 0x20], 0
je 0x416942
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call fcn.00424170
add esp, 4
movzx eax, al
test eax, eax
jne 0x416955
jmp 0x41697f
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x70]
push edx
push str.Exec__s___d__n
push 0x368
push 0x450634
push 0
call fcn.00424190
add esp, 0xc
push eax
call fcn.004240d0
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.004027a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x417c60
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c074
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.00417990
add esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 3
lea ecx, [ebp - 0x10]
call fcn.00402f80
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 0
jl 0x417d15
mov edx, dword [ebp - 0x14]
push edx
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.00403a60
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x417cc4
jmp 0x417d15
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00403b10
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x10]
call fcn.00403d90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.004027a0
push 0
lea ecx, [ebp - 0x10]
call fcn.004106b0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
jmp 0x417ca5
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.00410270
lea ecx, [ebp - 0x18]
call fcn.004106b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004027a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004027a0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x417f30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c0c2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push edi
mov dword [ebp - 0x48], 0
mov ecx, 0xe
xor eax, eax
lea edi, [ebp - 0x44]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x48], 0x3c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x44], 0x440
lea edx, [ebp - 0x48]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
push 0
call fcn.00424170
add esp, 4
movzx eax, al
test eax, eax
jne 0x417fa0
jmp 0x418028
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.00404930
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x58], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x50]
call fcn.00404930
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], ecx
mov byte [ebp - 4], 1
xor edx, edx
cmp dword [ebp - 0x10], 0
setne dl
push edx
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x60]
mov eax, dword [edx]
push eax
push str.ExecApp__s__s___d__n
push 0x85
push 0x450cbc
push 0
call fcn.00424190
add esp, 0xc
push eax
call fcn.004240d0
add esp, 0x14
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.004027a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.004027a0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret