joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403d31
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x403e45
cmp dword [ebp + 0xc], ebx
je 0x403e45
push 0x426648
push 0x426634
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 3
je 0x403e45
xor eax, eax
lea edi, [ebp - 0x28]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x10], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 8], ebx
jle 0x403e45
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x403df0
push eax
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x403df0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x2c]
push 0x18
push eax
push ebx
push edi
call dword [ebp - 0x14]
push edi
mov dword [ebp - 0xc], eax
call esi
cmp dword [ebp - 0xc], ebx
jne 0x403e45
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x403df5
mov ecx, dword [ebp - 4]
inc dword [ebp - 8]
add dword [ebp - 4], 0x24
mov dword [ecx], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0xc]
jl 0x403da4
cmp dword [ebp - 0xc], ebx
jne 0x403e45
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
cmp edi, ebx
je 0x403e40
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x20]
push ebx
push eax
push 0x403a37
push ebx
push ebx
mov dword [ebp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call esi
push 0x493e0
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
push 1
pop eax
jmp 0x403e47
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403efb
Capabilities:
Check if file exists

Disassembly:
push esi
xor esi, esi
push dword [esp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x403f0e
pop esi
ret
push edi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x403f3f
push 0x4266dc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403f38
call eax
mov esi, eax
neg esi
sbb esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
pop edi
pop esi
ret
Function at 0x4041b5
Capabilities:
Check if file exists
Delete file
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, esi
mov dword [ebp - 4], esi
je 0x40427a
cmp word [ebx], si
je 0x40427a
lea eax, [ebp + 8]
mov dword [ebp + 8], esi
push eax
call fcn.00403e89
test eax, eax
pop ecx
je 0x404275
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20a]
mov word [ebp - 0x20c], si
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push 0x4266fc
push eax
call esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
pop edi
je 0x40426b
lea eax, [ebp - 0x20c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], eax
lea eax, [ebp + 8]
push eax
call fcn.00403ec2
pop ecx
mov eax, dword [ebp - 4]
jmp 0x40427c
xor eax, eax
pop esi
pop ebx
leave
ret

Function at 0x404aa9
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, esi
je 0x404b32
cmp dword [ebp + 0xc], esi
je 0x404b32
mov edx, 0xff
push edi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x3fc]
mov dword [ebp - 0x400], esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x400]
push 8
mov ecx, esi
pop edi
test cl, 1
je 0x404af4
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x404af6
shr ecx, 1
dec edi
jne 0x404ae5
mov dword [eax], ecx
inc esi
add eax, 4
cmp esi, 0x100
jb 0x404ae0
xor ecx, ecx
or eax, 0xffffffff
cmp dword [ebp + 0xc], ecx
jbe 0x404b2d
movzx esi, byte [ecx + ebx]
mov edi, eax
and edi, edx
xor esi, edi
shr eax, 8
mov esi, dword [ebp + esi*4 - 0x400]
xor eax, esi
inc ecx
cmp ecx, dword [ebp + 0xc]
jb 0x404b11
not eax
pop edi
jmp 0x404b34
xor eax, eax
pop esi
pop ebx
leave
ret

Function at 0x404b38
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor eax, eax
cmp ecx, eax
je 0x404b57
cmp dword [ebp + 0xc], eax
je 0x404b57
jbe 0x404b57
mov dl, byte [ebp + 0x10]
xor byte [eax + ecx], dl
inc eax
cmp eax, dword [ebp + 0xc]
jb 0x404b4b
pop ebp
ret
Function at 0x404b59
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
xor edx, edx
cmp dword [ebp + 8], edx
mov dword [ebp - 0xc], edx
je 0x404c55
cmp dword [ebp + 0xc], edx
je 0x404c55
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x212]
mov word [ebp - 0x214], dx
push 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
pop ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push eax
lea eax, [ebp - 4]
mov edi, 0x427670
push eax
push edx
push edi
push SysReAllocString
mov dword [ebp - 4], ebx
mov dword [ebp - 8], 0x206
call esi
test eax, eax
jne 0x404bd9
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404c1c
call section..text
cmp eax, 8
jge 0x404c1c
push 0x208
lea eax, [ebp - 0x214]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], 0x206
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 4]
push eax
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call esi
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404c4d
lea eax, [ebp - 0x214]
mov dword [ebp - 0xc], ebx
push eax
mov eax, dword [ebp + 0xc]
dec eax
push 0x4260b8
push eax
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
leave
ret

Function at 0x404c59
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push ebx
push esi
push edi
xor edi, edi
mov eax, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0x42779c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0x42777c
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0x42775c
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0x427730
xor ebx, ebx
lea esi, [ebp - 0x28]
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push 1
push edi
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x404d1a
inc ebx
add esi, 8
cmp ebx, 4
jb 0x404c9c
mov word [ebp - 0x230], di
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x22e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x230]
push 0x103
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x230]
push 0x427704
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404d12
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x404d0b
Function at 0x404d25
Capabilities:
Get common file path

Disassembly:
mov eax, 0x41fd64
call fcn.0041f700
sub esp, 0x214
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x404e30
cmp dword [ebp + 0xc], ebx
je 0x404e30
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x21e]
mov word [ebp - 0x220], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x103
lea eax, [ebp - 0x220]
push esi
push eax
mov dword [ebp - 0x14], ebx
call fcn.00404b59
pop ecx
test eax, eax
pop ecx
jne 0x404d8e
lea eax, [ebp - 0x220]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push dword [ebp - 0x220]
mov esi, dword [sym.imp.MSVCRT.dll_iswalpha]
call esi
test eax, eax
pop ecx
jne 0x404dd5
push 0x208
lea eax, [ebp - 0x220]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push dword [ebp - 0x220]
call esi
test eax, eax
pop ecx
je 0x404dde
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x14], eax
mov eax, dword [0x426084]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x18]
push eax
mov dword [ebp - 4], ebx
push dword [ebp - 0x14]
call fcn.00404e3f
pop edi
pop esi
test eax, eax
je 0x404e20
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], ebx
je 0x404e20
push eax
mov eax, dword [ebp + 0xc]
dec eax
push 0x4260b8
push eax
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
push 1
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00407035
mov eax, ebx
jmp 0x404e32
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x405354
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x41fe28
call fcn.0041f700
sub esp, 0x448
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x14]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push 0x42788c
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], 0x208
mov dword [ebp - 0x14], esi
call ebx
test eax, eax
je 0x40539c
xor eax, eax
jmp 0x405507
push edi
push esi
push esi
push esi
lea eax, [ebp - 0x20]
push esi
push eax
lea eax, [ebp - 0x454]
push eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x2c], esi
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4054fa
cmp dword [ebp - 0x2c], esi
jne 0x4054fa
mov eax, dword [0x426084]
inc dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x104
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x454]
mov dword [ebp - 4], esi
push eax
push 0x42788c
lea eax, [ebp - 0x18]
push 0x427880
push eax
call fcn.00406b80
add esp, 0x10
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push 0x20019
push esi
push dword [ebp - 0x18]
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x4054d7
mov ecx, 0x82
lea edi, [ebp - 0x246]
mov word [ebp - 0x248], si
mov dword [ebp - 0x3c], 0x208
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x38]
push eax
push esi
push 0x42785c
mov dword [ebp - 0x38], 1
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x4054ce
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x248]
push ecx
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
jne 0x4054ce
push 4
mov dword [ebp - 0x28], esi
pop eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x34]
push eax
push esi
push 0x42783c
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x4054c8
mov eax, dword [ebp - 0x28]
push 1
mov ecx, eax
pop edx
and ecx, edx
cmp ecx, edx
jne 0x4054bb
mov dword [ebp - 0x24], 2
jmp 0x4054cb
and eax, 4
cmp eax, 4
jne 0x4054cb
mov dword [ebp - 0x24], edx
jmp 0x4054cb
push 1
pop edx
mov dword [ebp - 0x2c], edx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00407035
push esi
push esi
push esi
lea eax, [ebp - 0x20]
push esi
push eax
lea eax, [ebp - 0x454]
push eax
push dword [ebp - 0x1c]
jmp 0x4053b3
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x24]
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4055cd
Capabilities:
Get disk information

Disassembly:
mov eax, 0x41fe80
call fcn.0041f700
sub esp, 0x50
mov eax, dword [0x426084]
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
movzx edi, word [ebp + 0xc]
push edi
lea eax, [ebp - 0x10]
xor ebx, ebx
push 0x42794c
push eax
mov dword [ebp - 4], ebx
call fcn.00406b80
add esp, 0xc
lea eax, [ebp - 0x5c]
mov esi, dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push 0x20
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push ebx
push eax
push ebx
push ebx
push dword [ebp - 0x10]
call esi
cmp eax, 1
jne 0x405655
mov eax, dword [0x426084]
mov dword [ebp + 0xc], eax
push dword [ebp - 0x14]
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 1
push 0x427940
push eax
call fcn.00406b80
mov ecx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
call fcn.0040697a
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
jmp 0x4056b4
push edi
lea eax, [ebp - 0x10]
push 0x427934
push eax
call fcn.00406b80
add esp, 0xc
lea eax, [ebp - 0x5c]
push 0x20
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push ebx
push eax
push ebx
push ebx
push dword [ebp - 0x10]
call esi
cmp eax, 1
jne 0x4056ca
mov eax, dword [0x426084]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push 0x427940
push eax
call fcn.00406b80
mov ecx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
call fcn.0040697a
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.00407035
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00407035
push 1
pop eax
jmp 0x4056d8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00407035
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4074c9
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
push edi
xor edx, edx
mov ecx, 0x42ba80
push 8
mov eax, edx
pop esi
mov edi, eax
and edi, 1
dec edi
not edi
and edi, 0xedb88320
shr eax, 1
xor eax, edi
dec esi
jne 0x4074d7
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x42be80
jb 0x4074d2
pop edi
pop esi
ret

Function at 0x4074fd
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
mov ecx, edx
mov edx, dword [esp + 4]
test edx, edx
jbe 0x40752a
push esi
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42ba80]
xor eax, esi
inc ecx
dec edx
jne 0x40750b
pop edi
pop esi
ret 4

Function at 0x409a08
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov edx, dword [ecx]
and edx, 7
cmp dword [ebp + 0xc], 5
jae 0x409a1f
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp - 4], 0xffffffff
push ebx
push esi
push edi
mov ecx, dword [ebp + 8]
lea esi, [eax + ecx]
mov eax, dword [ebp + 0xc]
lea edi, [ecx + eax - 4]
cmp esi, edi
jae 0x409a46
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x409a46
inc esi
jmp 0x409a37
mov eax, esi
sub eax, ecx
cmp esi, edi
mov dword [ebp - 8], eax
jae 0x409b36
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x409a7b
xor edx, edx
mov cl, byte [esi + 4]
mov dword [ebp - 4], eax
test cl, cl
je 0x409aa8
cmp cl, 0xff
je 0x409aa8
and edx, 3
shl edx, 1
or edx, 1
inc eax
jmp 0x409a2a
dec ecx
shl edx, cl
and edx, 7
je 0x409a61
movzx ecx, byte [edx + 0x421604]
mov edi, esi
sub edi, ecx
cmp byte [edx + 0x4215fc], 0
mov cl, byte [edi + 4]
je 0x409aa3
test cl, cl
je 0x409aa3
cmp cl, 0xff
jne 0x409a61
mov dword [ebp - 4], eax
jmp 0x409a70
xor ebx, ebx
mov bh, cl
mov bl, byte [esi + 3]
movzx ecx, byte [esi + 2]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
cmp dword [ebp + 0x18], 0
je 0x409ad1
lea ebx, [edi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x409ad8
sub edi, eax
sub edi, dword [ebp + 0x10]
mov ebx, edi
test edx, edx
je 0x409b0c
movzx edi, byte [edx + 0x421604]
push 0x18
mov eax, ebx
shl edi, 3
pop ecx
sub ecx, edi
shr eax, cl
test al, al
je 0x409af7
cmp al, 0xff
jne 0x409b09
push 0x20
mov eax, dword [ebp - 8]
pop ecx
push 1
sub ecx, edi
pop edi
shl edi, cl
dec edi
xor edi, ebx
jmp 0x409ac3
mov eax, dword [ebp - 8]
mov ecx, ebx
mov byte [esi + 1], bl
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
add eax, 5
jmp 0x409a2a
mov esi, eax
push 3
sub esi, dword [ebp - 4]
pop edi
lea ecx, [esi - 1]
shl edx, cl
and edx, 7
cmp edi, esi
sbb ecx, ecx
pop edi
not ecx
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
pop ebx
mov dword [edx], ecx
leave
ret
Function at 0x409d36
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x409d46
xor eax, eax
jmp 0x409d9b
push esi
lea eax, [ebp + 0x10]
push 0
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
and dword [ebp + 0x10], 0
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov ecx, dword [ebp + 0x10]
add dword [ebp + 0xc], ecx
sub edi, ecx
mov dword [ebp - 4], ecx
test eax, eax
je 0x409d97
test ecx, ecx
je 0x409d97
test edi, edi
jbe 0x409d97
lea eax, [ebp + 0x10]
push 0
and dword [ebp + 0x10], 0
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov ecx, dword [ebp + 0x10]
add dword [ebp + 0xc], ecx
sub edi, ecx
add dword [ebp - 4], ecx
jmp 0x409d6b
mov eax, dword [ebp - 4]
pop esi
pop edi
leave
ret
Function at 0x40a194
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], ecx
test esi, esi
je 0x40a231
cmp word [esi], 0
je 0x40a231
mov ebx, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push esi
call ebx
test eax, eax
je 0x40a1c5
push 1
pop eax
jmp 0x40a233
and word [ebp - 0x210], 0
push edi
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x20e]
push esi
rep stosd dword es:[edi], eax
push 0x4260b8
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
pop edi
je 0x40a231
lea eax, [ebp - 0x210]
push eax
call ebx
test eax, eax
jne 0x40a226
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x210]
push eax
call fcn.0040a194
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x40a233
xor eax, eax
pop esi
pop ebx
leave
ret 4

Function at 0x40c773
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
push esi
dec eax
mov esi, ecx
je 0x40c7d9
dec eax
je 0x40c7ac
dec eax
je 0x40c793
dec eax
jne 0x40c7f0
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x40c7f0
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00410999
mov ecx, eax
call fcn.004114f8
jmp 0x40c7f0
push 0
push 0x427b84
push 0x427e74
push dword [esi + 4]
call fcn.00415ea1
add esp, 0x10
lea ecx, [esi + 0x5c0]
push 1
push 1
push 0x3ea
call fcn.0041840f
jmp 0x40c7f0
push 0
push 0x427b84
push 0x427e44
push dword [esi + 4]
call fcn.00415ea1
add esp, 0x10
xor eax, eax
pop esi
ret 0x10
Function at 0x40c98b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421670
push 0x41f72c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x8007
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, dword [ebp + 8]
mov dword [0x42b358], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0040cdc4
mov ecx, eax
call fcn.0040cdf9
test eax, eax
je 0x40ca78
push ebx
push esi
push ebx
mov edi, 0x42b2c8
mov ecx, edi
call fcn.0040caee
call fcn.00413cfe
mov ecx, eax
call fcn.00413d33
call fcn.0040cdc4
mov esi, dword [eax + 0xc]
mov dword [ebp - 0x1c], esi
cmp esi, ebx
jne 0x40ca1d
push ebx
push 0x42b2b8
push 0x42b35c
call sub.gdiplus.dll_GdiplusStartup
call fcn.0041cb60
call fcn.0040cdc4
mov ecx, eax
call fcn.0040d440
test eax, eax
je 0x40ca58
call fcn.0040cdc4
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
cmp eax, 2
je 0x40ca49
call fcn.00410999
mov ecx, eax
call fcn.00413490
call fcn.0040e21d
mov dword [ebp - 0x24], eax
mov dword [eax + 8], 1
cmp esi, ebx
jne 0x40ca71
mov eax, dword [0x42b35c]
cmp eax, ebx
je 0x40ca71
push eax
call sub.gdiplus.dll_GdiplusShutdown
mov dword [0x42b35c], ebx
mov ecx, edi
call fcn.0040cc00
or dword [ebp - 4], 0xffffffff
jmp 0x40ca9e
call fcn.0040cdc4
cmp dword [eax + 8], 3
je 0x40cab5
call fcn.0040cdc4
mov ecx, eax
call fcn.0040d6b2
call fcn.0040e21d
mov ecx, eax
call fcn.0040e252
call fcn.0040e21d
mov ecx, eax
call fcn.0040e864
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40d440
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x420205
call fcn.0041f700
mov eax, 0x13dc
call fcn.0041f6b0
push ebx
push esi
push edi
mov edi, ecx
push 1
xor ebx, ebx
mov eax, dword [edi + 8]
pop esi
cmp eax, esi
mov dword [ebp - 0x10], ebx
jne 0x40d51d
call fcn.0040deb0
cmp dword [edi + 0xc], ebx
jne 0x40d4cf
lea ecx, [ebp - 0x13e8]
call fcn.0040baf6
lea eax, [ebp - 0x13e8]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x13e0]
push eax
push 0x42b2c8
call fcn.0040e093
mov eax, dword [0x42b2d0]
push ebx
push 0x40e04f
push ebx
push 0x831
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, esi
jne 0x40d4bb
mov dword [ebp - 0x10], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13e8]
call fcn.0040bcb2
jmp 0x40d66e
push 0x7d0
lea eax, [ebp - 0x18]
push 2
push eax
mov dword [ebp - 0x18], 0x427eb8
mov dword [ebp - 0x14], 0x427ea0
call fcn.00410999
mov ecx, eax
call fcn.0041130c
test eax, eax
je 0x40d50c
call fcn.00410999
mov ecx, eax
call fcn.004113a7
mov dword [ebp - 0x10], eax
jmp 0x40d66e
call fcn.0040e21d
mov dword [eax + 0xc], 0x70
jmp 0x40d66e
cmp eax, 3
jne 0x40d5ba
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x18], 0x427eb8
neg eax
sbb eax, eax
mov dword [ebp - 0x14], 0x427ea0
and eax, 0x7d0
add eax, 0x3e8
push eax
lea eax, [ebp - 0x18]
push 2
push eax
call fcn.00410999
mov ecx, eax
call fcn.0041130c
test eax, eax
je 0x40d56d
call fcn.00410999
mov ecx, eax
call fcn.004113a7
mov dword [ebp - 0x10], eax
jmp 0x40d582
mov esi, dword [edi + 0x14]
neg esi
sbb esi, esi
add esi, 0xcc
call fcn.0040e21d
mov dword [eax + 0xc], esi
cmp dword [ebp - 0x10], ebx
je 0x40d5ae
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov ebx, 0x42799c
push 0x42808c
mov edi, SysReAllocString
push ebx
push edi
call esi
push 0x428078
push ebx
push edi
call esi
jmp 0x40d66e
mov ecx, edi
call fcn.0040dc4f
jmp 0x40d66e
lea ecx, [ebp - 0x6a4]
call fcn.0040ae9f
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.USER32.dll_GetActiveWindow]
call esi
mov edi, eax
lea eax, [ebp - 0x6a4]
push eax
lea eax, [ebp - 0x69c]
push eax
push 0x42b2c8
call fcn.0040e093
mov eax, dword [0x42b2d0]
push ebx
push 0x40e04f
mov ebx, 0x831
push edi
mov edi, dword [sym.imp.USER32.dll_DialogBoxParamW]
push ebx
push eax
call edi
cmp eax, 6
jne 0x40d65f
lea ecx, [ebp - 0xd38]
call fcn.00414177
mov byte [ebp - 4], 2
call esi
mov esi, eax
lea eax, [ebp - 0xd38]
push eax
lea eax, [ebp - 0xd30]
push eax
push 0x42b2c8
call fcn.0040e093
mov eax, dword [0x42b2d0]
push 0
push 0x40e04f
push esi
push ebx
push eax
call edi
push 1
pop ecx
cmp eax, ecx
jne 0x40d650
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0xd38]
mov byte [ebp - 4], 1
call fcn.00414298
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6a4]
call fcn.0040b6a9
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret