joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406627
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, ecx
test edx, edx
jne 0x406637
push 0xd
pop eax
jmp 0x40667c
push ebp
push esi
xor eax, eax
push edi
mov dword [esp + 0x18], eax
mov esi, eax
mov edi, edx
mov ecx, edi
lea ebp, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x18]
jne 0x406649
sub ecx, ebp
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x406644
push esi
push edx
push 7
xor eax, eax
push eax
push dword [esp + 0x24]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x406b71
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
push ebx
mov ebx, ecx
push ebp
mov eax, dword [ebx + 4]
push esi
or eax, 0x2001f
push eax
push dword [esp + 0x230]
xor ebp, ebp
push dword [ebx]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
call fcn.00406b15
mov esi, eax
test esi, esi
jne 0x406c40
lea eax, [esp + 0x20]
push eax
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x3c]
push eax
push ebp
push dword [esp + 0x2c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [esp + 0x3c], pe_nt_image_headers32
call ebp
test eax, eax
jne 0x406c15
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.00406b71
mov esi, eax
test esi, esi
jne 0x406c40
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x2c]
mov dword [esp + 0x3c], pe_nt_image_headers32
call ebp
test eax, eax
je 0x406bda
jmp 0x406c17
xor esi, esi
cmp dword [esp + 0x10], 0
je 0x406c2c
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], esi
push dword [esp + 0x22c]
mov ecx, ebx
mov dword [esp + 0x18], esi
call fcn.00406cfd
mov esi, eax
cmp dword [esp + 0x10], 0
je 0x406c51
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret 4
Function at 0x407578
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x40c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
push edi
xor ebp, ebp
push 0x60
push ebp
push dword [esp + 0x428]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
call esi
mov edi, eax
test edi, edi
jne 0x4075c6
push 2
push ebp
push dword [esp + 0x428]
call esi
mov edi, eax
test edi, edi
jne 0x4075c6
call fcn.004060b7
mov esi, eax
jmp 0x407691
push dword [esp + 0x428]
push dword [esp + 0x428]
push edi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4075eb
call fcn.004060b7
jmp 0x407684
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4075e1
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov esi, eax
lea ecx, [esi + 1]
cmp ecx, esi
jae 0x407611
mov esi, 0x8007000e
jmp 0x407686
xor eax, eax
shld eax, ecx, 1
add ecx, ecx
cmp eax, ebp
ja 0x4076b3
cmp ecx, 0xffffffff
ja 0x4076b3
cmp ecx, 0x400
jbe 0x40763e
push ecx
lea ecx, [esp + 0x1c]
call fcn.00406095
jmp 0x407646
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], ebp
je 0x40760a
push esi
push dword [esp + 0x1c]
push esi
push ebx
push ebp
push 3
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x4075e1
mov eax, dword [esp + 0x18]
push dword [esp + 0x42c]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [esp + 0x1c]
lea ecx, [esp + 0x18]
call fcn.0040744b
mov esi, eax
test edi, edi
je 0x407691
push edi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
lea eax, [esp + 0x1c]
cmp dword [esp + 0x18], eax
je 0x4076a4
lea ecx, [esp + 0x18]
call fcn.0040608c
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x40c
ret 0x10
push 0x80070216
call fcn.004069dc
int3
Function at 0x40839e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov bl, 1
mov ecx, dword [edi + 0x54]
mov eax, ecx
and eax, 0xc
cmp al, 0xc
jne 0x4083ea
mov eax, dword [edi + 4]
mov esi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [ebp - 0xc], eax
call esi
push dword [edi + 4]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0xfffffffe
call esi
push dword [edi + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0xc]
push ecx
push esi
push 0x4e
push eax
jmp 0x408415
shr ecx, 2
test cl, 1
je 0x40841d
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [edi + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_GetParent]
push dword [edi + 4]
mov ecx, eax
movzx eax, si
push eax
push 0x111
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40844c
push 1
xor esi, esi
push esi
push esi
push dword [edi + 0x28]
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta bl
test bl, bl
je 0x40844c
or byte [edi + 0x58], 2
push 1
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x4094a8
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, ecx
push edi
cmp dword [ebp + 4], 0xffffffff
je 0x409501
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x409501
mov edi, dword [esp + 0x14]
cmp edi, 1
jb 0x409501
push esi
xor esi, esi
test edi, edi
je 0x4094fc
and dword [esp + 0x14], 0
push 0
lea eax, [esp + 0x18]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4094fc
cmp dword [esp + 0x14], 0
je 0x4094fc
add esi, dword [esp + 0x14]
cmp esi, edi
jb 0x4094cb
mov eax, esi
pop esi
jmp 0x409503
xor eax, eax
pop edi
pop ebp
pop ebx
ret 8

Function at 0x409d4e
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
xor ebx, ebx
lea ebp, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x409d5b
sub esi, ebp
sar esi, 1
lea esi, [esi*2 + 2]
test ecx, ecx
je 0x409dce
test edx, edx
je 0x409dce
cmp dword [esp + 0x14], ebx
je 0x409dce
cmp dword [esp + 0x1c], ebx
je 0x409dce
test esi, esi
je 0x409dce
lea eax, [esp + 0xc]
push eax
push 0x20106
push ebx
push edx
push ecx
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409dce
push esi
push dword [esp + 0x20]
xor esi, esi
inc esi
push esi
push ebx
push dword [esp + 0x24]
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0xc]
movzx ebx, bl
test eax, eax
cmove ebx, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret
Function at 0x409e31
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
test edx, edx
je 0x409ea2
cmp dword [ebp + 8], 0
je 0x409ea2
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x409ea2
cmp dword [ebp + 0x10], 0
je 0x409ea2
push ebx
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x14]
xor ebx, ebx
or eax, 0x20019
push eax
push ebx
push edx
push ecx
mov byte [esi], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409e9d
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
xor edx, edx
inc edx
movzx ebx, bl
test eax, eax
cmove ebx, edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
jmp 0x409ea4
xor al, al
pop esi
leave
ret

Function at 0x409ea7
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, ecx
test esi, esi
jne 0x409ebe
xor al, al
jmp 0x409f67
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
push esi
call edi
cmp eax, 0xffffffff
je 0x409ed7
shr al, 4
and al, 1
jmp 0x409f66
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x208]
push 0x104
push eax
call fcn.0040fb9c
xor eax, eax
add esp, 0x10
lea esi, [ebp - 0x208]
cmp word [ebp - 0x208], ax
je 0x409f3e
push 0x5c
pop ecx
cmp word [esi], cx
jne 0x409f36
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x208]
push eax
call edi
cmp eax, 0xffffffff
jne 0x409f2e
xor eax, eax
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
je 0x409f60
push 0x5c
pop ecx
mov word [esi], cx
xor eax, eax
add esi, 2
cmp word [esi], ax
jne 0x409f02
lea eax, [ebp - 0x208]
push eax
call edi
cmp eax, 0xffffffff
jne 0x409f64
xor eax, eax
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x409f64
xor al, al
jmp 0x409f66
mov al, 1
pop edi
pop esi
leave
ret

Function at 0x40aae0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x40ab18
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
cmp dword [ebp - 4], 0x103
jne 0x40ab0b
xor al, al
jmp 0x40ab3c
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
and dword [esi + 4], 0
lea eax, [ebp - 4]
push eax
push 0x10000
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
push 0
call fcn.00411541
add esp, 0x18
test eax, eax
mov dword [esi + 4], eax
setne al
pop esi
leave
ret 0xc
Function at 0x40b8b0
Capabilities:
Delete directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
and dword [ebp - 0x28], 0
lea eax, [ebp - 0x20]
push esi
mov dword [ebp - 0x2c], eax
mov esi, ecx
xor eax, eax
push 0x4405f4
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0x4405f0
mov dword [ebp - 0x24], 0x10
mov word [ebp - 0x20], ax
call fcn.0040968b
lea edx, [ebp - 0x30]
mov ecx, esi
mov dword [ebp - 0x30], 0x4405f0
call fcn.0040b729
test al, al
je 0x40b930
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
je 0x40b90a
mov al, 1
jmp 0x40b932
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x40b930
push 0x80
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
jne 0x40b906
xor al, al
pop esi
leave
ret
Function at 0x40d11d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
push esi
mov esi, ecx
lea ecx, [esp + 8]
call fcn.00405a51
push dword [esp + 0x14]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
jne 0x40d14b
xor al, al
jmp 0x40d15f
lea ecx, [esp + 8]
call fcn.004059e7
mov ecx, dword [esp + 0xc]
mov edx, esi
call fcn.0040cde8
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40da0d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
push esi
mov esi, ecx
lea ecx, [esp + 8]
call fcn.00405a51
push dword [esp + 0x14]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
jne 0x40da3b
xor al, al
jmp 0x40da4f
lea ecx, [esp + 8]
call fcn.004059e7
mov ecx, dword [esp + 0xc]
mov edx, esi
call fcn.0040d47f
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40daa5
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
xor eax, eax
push esi
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov esi, pe_nt_image_headers32
push esi
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
je 0x40db17
push 3
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x14]
push 4
push eax
call fcn.0040fb9c
add esp, 0x10
xor eax, eax
mov word [ebp - 0xe], ax
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
mov eax, dword [ebp - 4]
pop esi
leave
ret
Function at 0x40db1a
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
push edi
lea ecx, [ebp - 0x238]
call fcn.0040a07f
mov ecx, dword [ebp + 8]
call fcn.00409cc0
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x40db62
lea ecx, [ebp - 0x238]
call fcn.0040d11d
movzx eax, al
test eax, eax
je 0x40db60
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040e019
jmp 0x40db83
lea ecx, [ebp - 0x238]
call fcn.0040da0d
movzx eax, al
test eax, eax
je 0x40db83
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040e019
lea ecx, [ebp - 0x238]
call fcn.0040da54
movzx eax, al
test eax, eax
je 0x40dba4
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040e019
call fcn.0040daa5
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40dbd8
push dword [ebp - 4]
push 0x441710
lea eax, [ebp - 0x238]
push eax
call fcn.0040940c
add esp, 0xc
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040e019
mov ecx, dword [ebp + 8]
call fcn.00409673
movzx eax, al
test eax, eax
jne 0x40dc02
lea ecx, [ebp - 0x238]
call fcn.0040dcb1
lea ecx, [ebp - 0x238]
call fcn.0040a070
jmp 0x40dcae
and dword [ebp - 0x28], 0
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
movzx eax, word [ebp - 8]
test eax, eax
je 0x40dc6f
movzx eax, word [ebp - 6]
test eax, eax
je 0x40dc6f
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
push str._u._u
lea eax, [ebp - 0x238]
push eax
call fcn.0040940c
add esp, 0x10
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040e019
lea ecx, [ebp - 0x238]
call fcn.0040dcb1
lea ecx, [ebp - 0x238]
call fcn.0040a070
jmp 0x40dcae
call fcn.0040be85
push eax
push 0x441710
lea eax, [ebp - 0x238]
push eax
call fcn.0040940c
add esp, 0xc
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040e019
lea ecx, [ebp - 0x238]
call fcn.0040dcb1
lea ecx, [ebp - 0x238]
call fcn.0040a070
pop edi
leave
ret
Function at 0x40e066
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
push ebx
push esi
push edi
xor ebx, ebx
push 0x118
lea eax, [ebp - 0x11c]
push ebx
push eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x120], ebx
call fcn.004127c0
add esp, 0xc
lea ecx, [ebp - 0x330]
call fcn.0040a07f
push str.Windows
mov ecx, esi
call fcn.0040968b
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
jne 0x40e0e4
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x40e23d
mov ecx, dword [ebp - 0x118]
mov edx, dword [ebp - 0x11c]
test edi, edi
je 0x40e0fd
mov eax, edx
imul eax, eax, 0x64
add eax, ecx
mov dword [edi], eax
mov eax, dword [ebp - 0x110]
dec eax
je 0x40e21d
dec eax
je 0x40e117
push str.Microsoft_Win32s
jmp 0x40e234
cmp edx, 4
ja 0x40e123
push str.Microsoft_Windows_NT
jmp 0x40e162
cmp edx, 5
jne 0x40e145
sub ecx, ebx
je 0x40e13e
dec ecx
je 0x40e137
push str.Windows_2003
dec ecx
jmp 0x40e162
push 0x441770
jmp 0x40e162
push str.Windows_2000
jmp 0x40e162
sub ecx, ebx
je 0x40e15d
dec ecx
je 0x40e156
dec ecx
jne 0x40e169
push str.Windows_8
jmp 0x40e162
push str.Windows_7
jmp 0x40e162
push str.Windows_Vista
mov ecx, esi
call fcn.0040968b
mov al, byte [ebp - 6]
cmp al, 1
jne 0x40e17f
push str._Professional
mov ecx, esi
call fcn.0040aa12
mov al, byte [ebp - 6]
cmp al, 3
jne 0x40e192
push str._Server
mov ecx, esi
call fcn.0040aa12
mov al, byte [ebp - 6]
cmp al, 2
jne 0x40e1a2
push str._Domain
mov ecx, esi
call fcn.0040aa12
movzx eax, word [ebp - 0x114]
push eax
cmp word [ebp - 0x10c], bx
jne 0x40e1c9
lea eax, [ebp - 0x330]
push str.__Build__d_
push eax
call fcn.0040940c
add esp, 0xc
jmp 0x40e1e4
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x330]
push str.__s__Build__d_
push eax
call fcn.0040940c
add esp, 0x10
lea eax, [ebp - 0x330]
push eax
mov ecx, esi
call fcn.0040e019
lea ecx, [ebp - 0x330]
call fcn.0040dfa2
test al, al
je 0x40e23b
push str._on
mov ecx, esi
call fcn.0040aa12
lea eax, [ebp - 0x330]
push eax
mov ecx, esi
call fcn.0040e019
jmp 0x40e23b
cmp edx, 4
ja 0x40e22f
jne 0x40e228
test ecx, ecx
jne 0x40e22f
push str.Microsoft_Windows_95
jmp 0x40e234
push str.Microsoft_Windows_98
mov ecx, esi
call fcn.0040aa12
mov bl, 1
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x40f43a
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
xor ebx, ebx
push edi
mov edi, ecx
mov dword [esp + 8], ebx
cmp dword [esp + 0x10], ebx
jne 0x40f452
xor eax, eax
jmp 0x40f4e6
push ecx
push 3
push ecx
push SysReAllocStringLen
push dword [esp + 0x20]
call fcn.00409509
test al, al
je 0x40f44b
push ebp
mov ecx, edi
call fcn.0040a09a
mov ebp, dword [esp + 0x18]
mov dword [ebp], eax
test eax, eax
jne 0x40f486
mov ecx, edi
call fcn.00409545
xor eax, eax
jmp 0x40f4e5
push esi
add eax, 0x10
push 0x449d68
push eax
call fcn.004100a8
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40f4db
cmp dword [ebp], ebx
jbe 0x40f4d9
push ebx
lea eax, [esp + 0x14]
push eax
push dword [ebp]
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x40f4c7
push esi
call fcn.004100a3
pop ecx
mov esi, ebx
mov dword [ebp], ebx
jmp 0x40f4d9
mov eax, dword [esp + 0x10]
mov dword [ebp], eax
mov byte [esi + eax], bl
mov eax, dword [esp + 0x10]
mov byte [esi + eax + 1], bl
mov ebx, esi
mov ecx, edi
call fcn.00409545
mov eax, ebx
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret 8

Function at 0x40f508
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
xor esi, esi
and dword [esp + 0x10], esi
push edi
mov ebp, ecx
xor edi, edi
mov ebx, edx
test ebp, ebp
je 0x40f61f
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x40f61f
mov byte [edx], 0
test ebx, ebx
je 0x40f616
cmp esi, 0x200
jae 0x40f616
mov ch, byte [edi + ebp]
inc edi
cmp edi, ebx
jb 0x40f55f
xor al, al
xor cl, cl
mov byte [esp + 0x11], cl
mov dword [esp + 0x14], 2
jmp 0x40f57d
mov al, byte [edi + ebp]
inc edi
mov byte [esp + 0x11], al
mov cl, al
cmp edi, ebx
jae 0x40f573
mov al, byte [edi + ebp]
inc edi
jmp 0x40f57d
xor al, al
mov dword [esp + 0x14], 1
mov byte [esp + 0x12], al
shr al, 6
and cl, 0xf
shl cl, 2
or cl, al
movzx eax, ch
shr eax, 2
and ch, 3
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + edx], al
movzx eax, byte [esp + 0x11]
shl ch, 4
mov byte [esp + 0x13], cl
shr eax, 4
movzx ecx, ch
or ecx, eax
add esi, 2
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + edx - 1], al
mov eax, dword [esp + 0x14]
sub eax, 0
je 0x40f5eb
dec eax
je 0x40f5d6
dec eax
jne 0x40f60e
mov word [esi + edx], 0x3d3d
jmp 0x40f60b
movzx eax, byte [esp + 0x13]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + edx], al
mov byte [esi + edx + 1], 0x3d
jmp 0x40f60b
movzx eax, byte [esp + 0x13]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + edx], al
movzx eax, byte [esp + 0x12]
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + edx + 1], al
add esi, 2
cmp edi, ebx
jb 0x40f539
mov byte [esi + edx], 0
lea eax, [esi + 1]
jmp 0x40f621
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x41c4bb
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x445280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00418d62
mov dword [ebp - 0x14], eax
cmp dword [0x44acb4], edi
jne 0x41c5ac
push 0x800
push edi
push 0x43a12c
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x41c539
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x57
jne 0x41c68c
push 0x43a12c
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41c68c
push 0x43a144
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x41c68c
push eax
call ebx
push 0x43a150
push esi
mov dword [0x44acb4], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x44acb8], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x44acbc], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
mov dword [0x44acc4], eax
test eax, eax
je 0x41c5a9
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
mov dword [0x44acc0], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_IsDebuggerPresent]
test eax, eax
je 0x41c5d1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41c5c4
push eax
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x41c5e6
push 4
pop eax
jmp 0x41c68e
cmp dword [ebp - 0x14], edi
je 0x41c5e6
push dword [0x44acb4]
call dword [sym.imp.KERNEL32.DLL_DecodePointer]
push 3
jmp 0x41c5cb
mov eax, dword [0x44acc0]
mov ebx, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, esi
je 0x41c644
cmp dword [0x44acc4], esi
je 0x41c644
push eax
call ebx
push dword [0x44acc4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41c644
test eax, eax
je 0x41c644
call ecx
test eax, eax
je 0x41c639
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41c639
test byte [ebp - 8], 1
jne 0x41c644
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x41c674
mov eax, dword [0x44acb8]
cmp eax, esi
je 0x41c671
push eax
call ebx
test eax, eax
je 0x41c671
call eax
mov edi, eax
test edi, edi
je 0x41c671
mov eax, dword [0x44acbc]
cmp eax, esi
je 0x41c671
push eax
call ebx
test eax, eax
je 0x41c671
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x44acb4]
call ebx
test eax, eax
je 0x41c68c
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x41c68e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413b08
leave
ret