joyce8/EMBER2024-capa huggingface dataset:
Function at 0x61e168
Capabilities:
Delete registry key

Disassembly:
push 0
mov eax, 0x67ffd8
call fcn.00654316
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.004036b0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x61e1ca
call fcn.00618e9c
cmp eax, 1
jne 0x61e1ca
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push 0x702008
push eax
call fcn.0061c0b8
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00403440
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00402060
mov dword [ebp + 8], reloc.WS2_32.dll_accept
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402060
mov eax, esi
call fcn.006543ee
ret 8

Function at 0x62e17a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x62e1c1
call fcn.00619a8d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x62e1c1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x62e1dd
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0062dcf2
mov esi, eax
test edi, edi
je 0x62e1db
test ebx, ebx
je 0x62e1db
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x62ece7
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x680f98
call fcn.00654316
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x62ed0c
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x62ed52
lea ecx, [ebp - 0x10]
call fcn.00402460
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00614d3a
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402060
mov eax, esi
call fcn.006543ee
ret 8

Function at 0x639fd5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x639ff9
cmp dword [edi + 0x54], 0
jne 0x639ff9
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00619a8d
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00639f96
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x64815a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x71d770]
jne 0x648164
repz ret
jmp fcn.00656bf6
Function at 0x64fdc1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x64fdf2
call fcn.00650da2
mov dword [eax], esi
call fcn.00650d8f
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00658904
add esp, 0x14
push 0x16
pop eax
jmp 0x64fe47
test dword [ebp + 0xc], 0xfffffff9
jne 0x64fdce
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x64fe1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00650db5
pop ecx
call fcn.00650d8f
mov eax, dword [eax]
jmp 0x64fe47
test al, 0x10
jne 0x64fe45
test al, 1
je 0x64fe45
test byte [ebp + 0xc], 2
je 0x64fe45
call fcn.00650da2
mov dword [eax], 5
call fcn.00650d8f
mov dword [eax], 0xd
jmp 0x64fe16
xor eax, eax
pop esi
pop ebp
ret
Function at 0x66c954
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00655fc1
and dword [ebp - 4], 0
cmp dword [0x722a44], 0
mov ebx, eax
jne 0x66ca05
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x66cab6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x66cab6
push eax
call fcn.00655f4f
mov dword [esp], 0x70956c
push edi
mov dword [0x722a44], eax
call esi
push eax
call fcn.00655f4f
mov dword [esp], 0x709558
push edi
mov dword [0x722a48], eax
call esi
push eax
call fcn.00655f4f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x722a4c], eax
call esi
push eax
call fcn.00655f4f
pop ecx
mov dword [0x722a54], eax
test eax, eax
je 0x66ca05
push 0x709524
push edi
call esi
push eax
call fcn.00655f4f
pop ecx
mov dword [0x722a50], eax
mov eax, dword [0x722a50]
cmp eax, ebx
je 0x66ca5d
cmp dword [0x722a54], ebx
je 0x66ca5d
push eax
call fcn.00655fca
push dword [0x722a54]
mov esi, eax
call fcn.00655fca
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x66ca5d
test edi, edi
je 0x66ca5d
call esi
test eax, eax
je 0x66ca54
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x66ca54
test byte [ebp - 0xc], 1
jne 0x66ca5d
or dword [ebp + 0x10], 0x200000
jmp 0x66ca96
mov eax, dword [0x722a48]
cmp eax, ebx
je 0x66ca96
push eax
call fcn.00655fca
pop ecx
test eax, eax
je 0x66ca96
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x66ca96
mov eax, dword [0x722a4c]
cmp eax, ebx
je 0x66ca96
push eax
call fcn.00655fca
pop ecx
test eax, eax
je 0x66ca96
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x722a44]
call fcn.00655fca
pop ecx
test eax, eax
je 0x66cab6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x66cab8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10569058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x105691a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1056907e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1056906a
add dl, dl
jne 0x10569089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105690dc
xor eax, eax
add dl, dl
jne 0x10569096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1056917d
add dl, dl
jne 0x105690a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105690b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105690bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105690c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x105690d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10569075
mov eax, 1
add dl, dl
jne 0x105690ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105690f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105690e1
sub eax, ebx
mov ebx, 1
jne 0x10569128
mov ecx, 1
add dl, dl
jne 0x1056910e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10569119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10569105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10569075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1056913f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1056914a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10569136
cmp eax, 0x7d00
jae 0x1056916d
cmp eax, 0x500
jb 0x10569168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10569075
cmp eax, 0x7f
ja 0x10569170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10569075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1056919e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10569075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40893d
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4085d8
call fcn.00408958
or edi, edx
xor dword [ecx], eax
inc ecx
inc edx
cmp ecx, ebx
jne fcn.0040893d
mov edx, edx
and edx, edx
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x793363d8
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x1422cfd
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x402b9b
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push VariantClear
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x402be3
mov eax, 0x2c21955
push eax
push 1
mov ebx, 0x194
call fcn.00406730
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 8
jge 0x402c08
jmp 0x402d90
push dword [ebp + 8]
call fcn.00402122
mov dword [ebp - 8], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fadd qword [0x2c21971]
fstp qword [ebp - 0x28]
mov dword [ebp - 0x2c], esp
fld qword [ebp - 0x28]
call fcn.00402149
push eax
push 0x40
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x402c5c
push 0x129
push 0x4016f97
push 6
call fcn.004051a8
add esp, 0xc
mov dword [ebp - 0xc], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fsub qword [0x2c21971]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.00402149
push eax
lea eax, [ebp - 0x10]
mov ebx, eax
mov ecx, 0
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x402d61
fild dword [ebp - 8]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild dword [ebp - 0x10]
fstp qword [ebp - 0x28]
fadd qword [ebp - 0x28]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.00402149
push eax
call fcn.00402ab8
mov word [ebp - 0x14], ax
cmp word [ebp - 0x14], 0
jne 0x402cff
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x402cf5
push 0x222
push 0x4016f97
push 6
call fcn.004051a8
add esp, 0xc
jmp 0x402d61
cmp word [ebp - 0x14], 0x5c
jne 0x402d48
cmp dword [ebp - 0x18], 0
jle 0x402d45
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x402d45
push 0x2c3
push 0x4016f97
push 6
call fcn.004051a8
add esp, 0xc
inc dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call fcn.00402d96
pop ebx
pop ecx
pop edx
add ecx, 2
jmp 0x402c85
add esp, 0xc
mov dword [ebp - 0x1c], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x402d90
push 0x374
push 0x4016f97
push 6
call fcn.004051a8
add esp, 0xc
mov esp, ebp
pop ebp
ret 4
Function at 0x402dbe
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], esp
push 1
push 0
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
nop
nop
cmp dword [ebp - 4], esp
je 0x402dff
push 0
push 0x40130fc
push 6
call fcn.004051a8
add esp, 0xc
mov dword [ebp - 4], esp
push 4
push 0
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
nop
nop
cmp dword [ebp - 4], esp
je 0x402e37
push 0x2c
push 0x40130fc
push 6
call fcn.004051a8
add esp, 0xc
push dword [ebp + 8]
call fcn.00402e45
mov esp, ebp
pop ebp
ret 4
Function at 0x4038a2
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], esp
push 1
push 0
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
nop
nop
cmp dword [ebp - 4], esp
je 0x4038e3
push 0
push 0x401caad
push 6
call fcn.004051a8
add esp, 0xc
mov dword [ebp - 4], esp
push 4
push 0
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
nop
nop
cmp dword [ebp - 4], esp
je 0x40391b
push 0x2c
push 0x401caad
push 6
call fcn.004051a8
add esp, 0xc
push dword [ebp + 8]
call fcn.00403929
mov esp, ebp
pop ebp
ret 4
Function at 0x403eab
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
jne 0x403efd
mov dword [ebp - 0xc], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x403ef5
push 0x4f
push 0x4016447
push 6
call fcn.004051a8
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x403f36
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
push 0
push 1
xor eax, eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x403f33
push 0x7d
push 0x4016447
push 6
call fcn.004051a8
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403f4a
mov eax, 0
jmp 0x403fb2
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x403f7b
push 0x10b
push 0x4016447
push 6
call fcn.004051a8
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x403faa
push 0x12f
push 0x4016447
push 6
call fcn.004051a8
add esp, 0xc
mov eax, dword [ebp - 8]
jmp 0x403fb2
mov esp, ebp
pop ebp
ret 8
Function at 0x405640
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
push eax
call fcn.00409610
mov edi, dword [esp + 0x38]
xor ebp, ebp
push edi
mov ebx, eax
mov dword [esp + 0x18], ebp
call dword [0x2c749b0]
add esp, 8
test ebx, ebx
je 0x405784
test eax, eax
je 0x405784
inc eax
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
or ecx, 0xffffffff
xor eax, eax
push 0x5c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MSVCRT.dll_strrchr
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4056b2
mov byte [edi], 0
inc edi
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x405771
push 0x400
mov dword [esp + 0x18], 0x400
mov dword [esp + 0x1c], 1
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
push 0
push edi
push eax
call ebx
test eax, eax
je 0x40573a
cmp eax, 0xea
jne 0x40575d
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x18]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x24]
add esp, 8
lea edx, [esp + 0x14]
mov esi, eax
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push 0
push edi
push ecx
call ebx
test eax, eax
jne 0x405705
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x405748
cmp eax, 2
jne 0x40575d
push esi
call dword [0x2c749b0]
push eax
push esi
call fcn.00409210
add esp, 0xc
mov dword [esp + 0x10], eax
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
jne 0x4057ad
mov ebp, eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4057b9
mov esi, dword [esp + 0x40]
test esi, esi
je 0x4057b9
push esi
call dword [0x2c749b0]
push eax
push esi
call fcn.00409210
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4057d0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 0x10]
sub esp, 0xc
test ecx, ecx
mov eax, 0xfffffff5
je 0x4057ec
cmp dword [esp + 0x14], 2
jne 0x4057ec
mov eax, 0xfffffff4
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
test ebp, ebp
je 0x4058b7
mov eax, dword [esp + 0x14]
cmp eax, 1
jle 0x4058b7
push ebx
push esi
push edi
lea edi, [esp + 0x30]
dec eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x10], 0
cmp eax, 0x80000004
jne 0x405831
mov ebx, dword [edi]
jmp 0x405848
push edi
call fcn.00409660
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40589e
mov dword [esp + 0x10], 1
push ebx
call dword [0x2c749b0]
mov esi, eax
add esp, 4
test esi, esi
jbe 0x40588d
mov edi, ebx
mov eax, 0x400
mov dword [esp + 0x20], 0
cmp esi, eax
jae 0x40586d
mov eax, esi
lea ecx, [esp + 0x20]
push 0
push ecx
push eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x20]
sub esi, eax
add edi, eax
test esi, esi
ja 0x40585a
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40589e
push ebx
call sub.MSVCRT.dll_free
add esp, 4
mov eax, dword [esp + 0x18]
add edi, 0xc
dec eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
jne 0x40581b
pop edi
pop esi
pop ebx
pop ebp
add esp, 0xc
ret
Function at 0x4059a0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x28]
sub esp, 0x18
push ebx
push ebp
xor ebx, ebx
xor ebp, ebp
cmp eax, 0x80000301
ja 0x405a21
je 0x405a12
cmp eax, 0x80000101
ja 0x405a0b
je 0x405a12
cmp eax, 0x80000004
je 0x4059ec
cmp eax, 0x80000005
jne 0x405a36
mov eax, dword [esp + 0x40]
mov dword [esp + 8], 3
test eax, eax
je 0x405a83
mov ebx, dword [eax + 4]
lea ebp, [eax + 8]
jmp 0x405a83
mov eax, dword [esp + 0x40]
mov dword [esp + 8], 1
push eax
call dword [0x2c749b0]
mov ebp, dword [esp + 0x44]
mov ebx, eax
add esp, 4
inc ebx
jmp 0x405a83
cmp eax, 0x80000201
jne 0x405a36
mov ebx, 4
lea ebp, [esp + 0x40]
mov dword [esp + 8], ebx
jmp 0x405a83
cmp eax, 0x80000401
je 0x405a6e
cmp eax, 0x80000501
je 0x405a56
cmp eax, 0x80000601
je 0x405a3e
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
fld qword [esp + 0x40]
mov ebx, 4
mov dword [esp + 8], ebx
call sub.MSVCRT.dll__ftol
mov dword [esp + 0xc], eax
jmp 0x405a7f
fld dword [esp + 0x40]
mov ebx, 4
mov dword [esp + 8], ebx
call sub.MSVCRT.dll__ftol
mov dword [esp + 0xc], eax
jmp 0x405a7f
mov ecx, dword [esp + 0x40]
mov ebx, 4
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
lea ebp, [esp + 0xc]
mov edx, dword [esp + 0x28]
push esi
push edx
call fcn.00409610
mov esi, eax
mov eax, dword [esp + 0x3c]
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], 0
call dword [0x2c749b0]
add esp, 8
test esi, esi
je 0x405b5c
test eax, eax
je 0x405b5c
inc eax
push edi
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, dword [esp + 0x40]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x2c], edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MSVCRT.dll_strrchr
mov esi, eax
add esp, 0xc
test esi, esi
je 0x405afe
mov byte [esi], 0
inc esi
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push 0
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x405b52
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push ebx
push ebp
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x405b47
mov dword [esp + 0x1c], 1
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
mov eax, dword [esp + 0x18]
pop esi
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x405b70
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret
Function at 0x405ba0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x405c32
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x405c24
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x405c1c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x405be5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x4067a0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x4067e1.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x4067e1.2
jmp dword [eax*4 + 0x40686c]
mov word [esp + 0x48], di
jmp 0x40681a
mov word [esp + 0x48], 2
jmp 0x40681a
mov word [esp + 0x48], 3
jmp 0x40681a
mov word [esp + 0x48], 4
jmp 0x40681a
mov word [esp + 0x48], 7
jmp 0x40681a
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x406864
cmp dword [esp + 0x70], edi
je 0x406850
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret