joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402158
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
push esi
xor esi, esi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40228d
push edi
mov ecx, 0x103
xor eax, eax
lea edi, [ebp - 0x66a]
mov word [ebp - 0x66c], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x4021ba
cmp word [eax], si
je 0x4021ba
push eax
lea eax, [ebp - 0x66c]
push dword [ebp + 8]
push 0x422238
push 0x207
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
jmp 0x4021d7
push dword [ebp + 8]
lea eax, [ebp - 0x66c]
push 0x42222c
push 0x207
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
push dword [ebp + 8]
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x25a]
mov word [ebp - 0x25c], si
push 0x4220a0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x25c]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x25c]
push eax
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x66c]
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 0x28], 0x80
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40228a
cmp dword [ebp + 0x10], esi
je 0x402277
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40227a
push 1
pop esi
push dword [ebp - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x10]
call edi
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x402290
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1428
call fcn.0041b1d0
mov edx, dword [ebp + 8]
push ebx
xor ebx, ebx
push edi
cmp edx, ebx
mov dword [ebp - 4], ebx
je 0x4023f6
cmp word [edx], bx
je 0x4023f6
cmp dword [ebp + 0xc], ebx
je 0x4023f6
cmp dword [ebp + 0x10], ebx
je 0x4023f6
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x426]
mov word [ebp - 0x428], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x422248
lea eax, [ebp - 0x428]
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1428]
push 0x1000
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x4023f6
mov edx, dword [ebp - 0x10]
push ebx
mov ecx, 0x82
pop eax
lea edi, [ebp - 0x21e]
mov word [ebp - 0x220], bx
shr edx, 2
rep stosd dword es:[edi], eax
mov dword [ebp - 8], ebx
je 0x4023f1
lea eax, [ebp - 0x1428]
push esi
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], edx
jmp 0x402348
xor ebx, ebx
mov eax, dword [ebp + 8]
push dword [eax]
push ebx
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x4023e3
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push 4
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4023dc
lea eax, [ebp - 0x220]
push 0x104
push eax
push dword [ebp - 8]
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x4023dc
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
xor edi, edi
mov ebx, eax
cmp dword [ebp + 0x10], edi
jle 0x4023e3
mov esi, dword [ebp + 0xc]
push dword [esi]
push ebx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
je 0x4023d7
inc edi
add esi, 4
cmp edi, dword [ebp + 0x10]
jl 0x4023bd
jmp 0x4023e3
inc dword [ebp - 4]
jmp 0x4023e3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add dword [ebp + 8], 4
dec dword [ebp - 0xc]
jne 0x402346
pop esi
mov eax, dword [ebp - 4]
jmp 0x4023f8
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x402844
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
xor edi, edi
cmp eax, edi
je 0x40289f
cmp word [eax], di
je 0x40289f
cmp dword [ebp + 0xc], edi
je 0x40289f
cmp dword [ebp + 0x10], edi
je 0x40289f
lea ecx, [ebp + 8]
push esi
push ecx
push eax
mov dword [ebp + 8], edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
cmp esi, edi
je 0x40289a
cmp dword [ebp + 8], edi
je 0x402893
push dword [esi]
push 0x4220a0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
push 1
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop esi
jmp 0x4028a1
xor eax, eax
pop edi
pop ebp
ret

Function at 0x4028a4
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40294f
cmp dword [ebp + 0xc], esi
je 0x40294f
cmp dword [ebp + 0x10], esi
je 0x40294f
push edi
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
je 0x40294a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x40294a
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, esi
mov dword [ebp + 0xc], eax
je 0x402940
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402940
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [ebp + 0x10]
push esi
push eax
push edi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402939
cmp edi, dword [ebp + 0x10]
jne 0x402939
push 1
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
mov eax, esi
pop edi
jmp 0x402951
xor eax, eax
pop esi
leave
ret

Function at 0x402b85
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
xor esi, esi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402c07
push edi
mov ecx, 0x81
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x4220a0
lea eax, [ebp - 0x208]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x208]
push 5
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x42224c
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
pop edi
jle 0x402c05
push 1
pop esi
mov eax, esi
pop esi
leave
ret
Function at 0x402d68
Capabilities:
Create new key via cryptacquirecontext
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 8
mov ebx, 0x422314
xor ebp, ebp
push 1
push ebx
push ebp
push esi
mov dword [esp + 0x24], ebp
call edi
cmp dword [esi], ebp
jne 0x402d9b
push 0xf0000048
push 1
push ebx
push ebp
push esi
call edi
mov eax, dword [esi]
cmp eax, ebp
je 0x402dca
push dword [esp + 0x1c]
push ebp
push ebp
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x402dc1
mov dword [esp + 0x10], 1
jmp 0x402dca
push ebp
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x40361d
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov eax, ebx
push 3
cdq
pop ecx
xor esi, esi
idiv ecx
lea eax, [ebx + 2]
mov dword [ebp - 8], edx
cdq
idiv ecx
lea eax, [eax*4 + 1]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, dword [ebp + 8]
pop ecx
mov ecx, eax
xor eax, eax
test ebx, ebx
mov dword [ebp - 4], eax
jle 0x4036cb
push 3
cdq
pop ebx
idiv ebx
test edx, edx
jne 0x40366d
mov eax, dword [ebp - 4]
movzx edx, byte [eax + edi]
shr edx, 2
jmp 0x4036b6
cmp edx, 1
jne 0x40368f
mov eax, dword [ebp - 4]
mov dl, byte [eax + edi - 1]
movzx ebx, byte [eax + edi]
and edx, 3
shl edx, 4
shr ebx, 4
mov dl, byte [edx + ebx + 0x422020]
jmp 0x4036bc
mov eax, dword [ebp - 4]
cmp edx, 2
jne 0x4036c0
movzx ebx, byte [eax + edi]
mov dl, byte [eax + edi - 1]
and edx, 0xf
shr ebx, 6
mov dl, byte [ebx + edx*4 + 0x422020]
mov byte [ecx + esi], dl
mov dl, byte [eax + edi]
inc esi
and edx, 0x3f
mov dl, byte [edx + 0x422020]
mov byte [ecx + esi], dl
inc esi
mov ebx, dword [ebp + 0xc]
inc eax
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x403657
cmp dword [ebp - 8], 1
jne 0x4036eb
mov al, byte [edi + ebx - 1]
and eax, 3
shl eax, 4
mov al, byte [eax + 0x422020]
mov byte [ecx + esi], al
inc esi
mov byte [ecx + esi], 0x3d
jmp 0x403702
cmp dword [ebp - 8], 2
jne 0x403708
mov al, byte [edi + ebx - 1]
and eax, 0xf
mov al, byte [eax*4 + 0x422020]
mov byte [ecx + esi], al
inc esi
mov byte [ecx + esi], 0x3d
inc esi
and byte [ecx + esi], 0
pop edi
pop esi
mov eax, ecx
pop ebx
leave
ret
Function at 0x403713
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6ac
xor eax, eax
cmp dword [ebp + 8], eax
mov dword [ebp - 4], eax
je 0x403847
cmp dword [ebp + 0xc], eax
je 0x403847
push ebx
push esi
push edi
mov ecx, 0x81
lea edi, [ebp - 0x29a]
mov word [ebp - 0x29c], ax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call section..text
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push 1
cmp eax, 8
pop ebx
jl 0x4037c7
and word [ebp - 0x94], 0
push 0x1f
pop ecx
xor eax, eax
lea edi, [ebp - 0x92]
mov dword [ebp - 0x14], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x7e
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42246c
push 0x4223d0
push SysReAllocString
call esi
test eax, eax
jne 0x4037e1
lea eax, [ebp - 0x94]
push eax
push 0x4223a4
lea eax, [ebp - 0x29c]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
jmp 0x4037e1
push 0x422374
lea eax, [ebp - 0x29c]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0xc
and word [ebp - 0x6ac], 0
mov ecx, 0x103
xor eax, eax
lea edi, [ebp - 0x6aa]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 0x6ac]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x29c]
push 0
push eax
push SysReAllocString
mov dword [ebp - 8], 0x40e
call esi
pop edi
pop esi
test eax, eax
pop ebx
jne 0x403842
push dword [ebp + 0xc]
lea eax, [ebp - 0x6ac]
push dword [ebp + 8]
push eax
call fcn.00402844
add esp, 0xc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
leave
ret
xor eax, eax
leave
ret
Function at 0x403b45
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 0x403c59
cmp dword [ebp + 0xc], ebx
je 0x403c59
push 0x422550
push 0x42253c
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 0x403c59
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 0x403c59
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x403c04
push eax
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x403c04
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 0x403c59
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x403c09
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 0x403bb8
cmp dword [ebp - 0xc], ebx
jne 0x403c59
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
cmp edi, ebx
je 0x403c54
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 0x40384b
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 0x403c5b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403c9d
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 0x403cb0
pop esi
ret
push edi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x403ce1
push 0x422588
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403cda
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 0x403ce6
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 0x403cf9
pop esi
ret
push edi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x403d2a
push 0x42259c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403d23
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 0x404068
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
push edi
xor edx, edx
mov ecx, 0x425d80
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 0x404076
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x426180
jb 0x404071
pop edi
pop esi
ret

Function at 0x40409c
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
mov ecx, edx
mov edx, dword [esp + 4]
test edx, edx
jbe 0x4040c9
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 + 0x425d80]
xor eax, esi
inc ecx
dec edx
jne 0x4040aa
pop edi
pop esi
ret 4

Function at 0x4065a7
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 0x4065be
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 0x4065e5
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x4065e5
inc esi
jmp 0x4065d6
mov eax, esi
sub eax, ecx
cmp esi, edi
mov dword [ebp - 8], eax
jae 0x4066d5
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x40661a
xor edx, edx
mov cl, byte [esi + 4]
mov dword [ebp - 4], eax
test cl, cl
je 0x406647
cmp cl, 0xff
je 0x406647
and edx, 3
shl edx, 1
or edx, 1
inc eax
jmp 0x4065c9
dec ecx
shl edx, cl
and edx, 7
je 0x406600
movzx ecx, byte [edx + 0x41d594]
mov edi, esi
sub edi, ecx
cmp byte [edx + 0x41d58c], 0
mov cl, byte [edi + 4]
je 0x406642
test cl, cl
je 0x406642
cmp cl, 0xff
jne 0x406600
mov dword [ebp - 4], eax
jmp 0x40660f
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 0x406670
lea ebx, [edi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x406677
sub edi, eax
sub edi, dword [ebp + 0x10]
mov ebx, edi
test edx, edx
je 0x4066ab
movzx edi, byte [edx + 0x41d594]
push 0x18
mov eax, ebx
shl edi, 3
pop ecx
sub ecx, edi
shr eax, cl
test al, al
je 0x406696
cmp al, 0xff
jne 0x4066a8
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 0x406662
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 0x4065c9
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 0x4068d5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x4068e5
xor eax, eax
jmp 0x40693a
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 0x406936
test ecx, ecx
je 0x406936
test edi, edi
jbe 0x406936
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 0x40690a
mov eax, dword [ebp - 4]
pop esi
pop edi
leave
ret
Function at 0x406d33
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 0x406dd0
cmp word [esi], 0
je 0x406dd0
mov ebx, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push esi
call ebx
test eax, eax
je 0x406d64
push 1
pop eax
jmp 0x406dd2
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 0x4220a0
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 0x406dd0
lea eax, [ebp - 0x210]
push eax
call ebx
test eax, eax
jne 0x406dc5
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x210]
push eax
call fcn.00406d33
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x406dd2
xor eax, eax
pop esi
pop ebx
leave
ret 4

Function at 0x409314
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
push esi
dec eax
mov esi, ecx
je 0x40937a
dec eax
je 0x40934d
dec eax
je 0x409334
dec eax
jne 0x409391
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x409391
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.0040cd00
mov ecx, eax
call fcn.0040d7d5
jmp 0x409391
push 0
push 0x4226c0
push 0x422994
push dword [esi + 4]
call fcn.0041176e
add esp, 0x10
lea ecx, [esi + 0x5c0]
push 1
push 1
push 0x3ea
call fcn.00413b3e
jmp 0x409391
push 0
push 0x4226c0
push 0x422964
push dword [esi + 4]
call fcn.0041176e
add esp, 0x10
xor eax, eax
pop esi
ret 0x10
Function at 0x409512
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d600
push 0x41b286
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 [0x4258e8], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0040993f
mov ecx, eax
call fcn.00409974
test eax, eax
je 0x4095ff
push ebx
push esi
push ebx
mov edi, 0x425858
mov ecx, edi
call fcn.00409669
call fcn.0040f72f
mov ecx, eax
call fcn.0040f764
call fcn.0040993f
mov esi, dword [eax + 0xc]
mov dword [ebp - 0x1c], esi
cmp esi, ebx
jne 0x4095a4
push ebx
push 0x425848
push 0x4258ec
call sub.gdiplus.dll_GdiplusStartup
call fcn.00418686
call fcn.0040993f
mov ecx, eax
call fcn.00409ef9
test eax, eax
je 0x4095df
call fcn.0040993f
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
cmp eax, 2
je 0x4095d0
call fcn.0040cd00
mov ecx, eax
call fcn.0040f2c6
call fcn.0040ac30
mov dword [ebp - 0x24], eax
mov dword [eax + 8], 1
cmp esi, ebx
jne 0x4095f8
mov eax, dword [0x4258ec]
cmp eax, ebx
je 0x4095f8
push eax
call sub.gdiplus.dll_GdiplusShutdown
mov dword [0x4258ec], ebx
mov ecx, edi
call fcn.0040977b
or dword [ebp - 4], 0xffffffff
jmp 0x409625
call fcn.0040993f
cmp dword [eax + 8], 3
je 0x40963c
call fcn.0040993f
mov ecx, eax
call fcn.0040a16b
call fcn.0040ac30
mov ecx, eax
call fcn.0040ac65
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 0x409ef9
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x41b9d9
call fcn.0041b220
mov eax, 0x13d8
call fcn.0041b1d0
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 0x409fd6
call fcn.0040a8d5
cmp dword [edi + 0xc], ebx
jne 0x409f88
lea ecx, [ebp - 0x13e4]
call fcn.004087a5
lea eax, [ebp - 0x13e4]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x13dc]
push eax
push 0x425858
call fcn.0040aab8
mov eax, dword [0x425860]
push ebx
push 0x40aa74
push ebx
push 0x831
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, esi
jne 0x409f74
mov dword [ebp - 0x10], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13e4]
call fcn.0040895b
jmp 0x40a127
push 0x7d0
lea eax, [ebp - 0x18]
push 2
push eax
mov dword [ebp - 0x18], 0x4229d8
mov dword [ebp - 0x14], 0x4229c0
call fcn.0040cd00
mov ecx, eax
call fcn.0040d62c
test eax, eax
je 0x409fc5
call fcn.0040cd00
mov ecx, eax
call fcn.0040d684
mov dword [ebp - 0x10], eax
jmp 0x40a127
call fcn.0040ac30
mov dword [eax + 0xc], 0x70
jmp 0x40a127
cmp eax, 3
jne 0x40a073
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x18], 0x4229d8
neg eax
sbb eax, eax
mov dword [ebp - 0x14], 0x4229c0
and eax, 0x7d0
add eax, 0x3e8
push eax
lea eax, [ebp - 0x18]
push 2
push eax
call fcn.0040cd00
mov ecx, eax
call fcn.0040d62c
test eax, eax
je 0x40a026
call fcn.0040cd00
mov ecx, eax
call fcn.0040d684
mov dword [ebp - 0x10], eax
jmp 0x40a03b
mov esi, dword [edi + 0x14]
neg esi
sbb esi, esi
add esi, 0xcc
call fcn.0040ac30
mov dword [eax + 0xc], esi
cmp dword [ebp - 0x10], ebx
je 0x40a067
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov ebx, 0x422bc0
push 0x422bac
mov edi, SysReAllocString
push ebx
push edi
call esi
push 0x422b98
push ebx
push edi
call esi
jmp 0x40a127
mov ecx, edi
call fcn.0040a707
jmp 0x40a127
lea ecx, [ebp - 0x6a4]
call fcn.00407a3e
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 0x425858
call fcn.0040aab8
mov eax, dword [0x425860]
push ebx
push 0x40aa74
mov ebx, 0x831
push edi
mov edi, dword [sym.imp.USER32.dll_DialogBoxParamW]
push ebx
push eax
call edi
cmp eax, 6
jne 0x40a118
lea ecx, [ebp - 0xd38]
call fcn.0040fba8
mov byte [ebp - 4], 2
call esi
mov esi, eax
lea eax, [ebp - 0xd38]
push eax
lea eax, [ebp - 0xd30]
push eax
push 0x425858
call fcn.0040aab8
mov eax, dword [0x425860]
push 0
push 0x40aa74
push esi
push ebx
push eax
call edi
push 1
pop ecx
cmp eax, ecx
jne 0x40a109
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0xd38]
mov byte [ebp - 4], 1
call fcn.0040fcc9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6a4]
call fcn.0040824e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret