joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406eb4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040a671
or dword [ebp - 0x20], 0xffffffff
and dword [ebp - 0x1c], 0
push 1
pop esi
cmp dword [ebp - 0x10], esi
jbe 0x406f1b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + esi*4]
cmp word [eax], 0x2d
jne 0x406f1b
movzx eax, word [eax + 2]
cmp eax, 0x63
je 0x406f07
cmp eax, 0x6c
jne 0x406f15
mov eax, dword [ecx + esi*4]
lea ecx, [eax + 4]
call fcn.0040c607
mov dword [ebp - 0x20], eax
jmp 0x406f15
mov eax, dword [ecx + esi*4]
lea ecx, [eax + 4]
call fcn.0040c607
mov dword [ebp - 0x1c], eax
inc esi
cmp esi, dword [ebp - 0x10]
jb 0x406edd
mov eax, dword [0x41d878]
push edi
mov dword [ebp - 4], eax
inc dword [eax]
cmp esi, dword [ebp - 0x10]
jae 0x406f9f
mov eax, dword [ebp - 0xc]
mov edi, dword [eax + esi*4]
mov ecx, edi
call fcn.00404708
lea ecx, [ebp - 4]
push eax
push edi
call fcn.0040c489
lea ecx, [ebp - 4]
call fcn.004061c5
test al, al
jne 0x406f9f
lea edi, [esi + 1]
cmp edi, dword [ebp - 0x10]
jae 0x406f8b
lea eax, [ebp - 8]
push 1
push eax
lea ecx, [ebp - 4]
mov dword [ebp - 8], 0x20
call fcn.0040c4d9
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push dword [eax + edi*4]
call fcn.004017c3
lea ecx, [ebp - 4]
call fcn.004061c5
test al, al
jne 0x406f88
inc edi
jmp 0x406f51
cmp edi, dword [ebp - 0x10]
jne 0x406f9d
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push dword [eax + esi*4]
call fcn.004010ce
jmp 0x406f9f
mov esi, edi
inc esi
pop edi
cmp esi, dword [ebp - 0x10]
jae 0x406ffb
mov eax, dword [0x41d878]
mov dword [ebp - 8], eax
inc dword [eax]
cmp esi, dword [ebp - 0x10]
jae 0x406fe8
lea eax, [ebp - 0x24]
push 1
push eax
lea ecx, [ebp - 8]
mov dword [ebp - 0x24], 0x22
call fcn.0040c4d9
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 8]
push dword [eax + esi*4]
call fcn.004017c3
lea ecx, [ebp - 8]
push 0x43ebcc
call fcn.004017c3
inc esi
jmp 0x406fb0
mov eax, dword [ebp - 8]
lea ecx, [eax + 0xc]
call fcn.004034b4
lea ecx, [ebp - 8]
call fcn.0040c44f
lea ecx, [ebp - 0x208]
call fcn.00406c1d
lea eax, [ebp - 4]
lea ecx, [ebp - 0x208]
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push eax
call fcn.00406dde
test al, al
jne 0x407024
or esi, 0xffffffff
jmp 0x407031
lea ecx, [ebp - 0x208]
call fcn.00411c67
xor esi, esi
lea ecx, [ebp - 0x208]
call fcn.00407073
lea ecx, [ebp - 4]
call fcn.0040c44f
lea ecx, [ebp - 0x18]
call fcn.00407051
mov eax, esi
pop esi
leave
ret

Function at 0x40a2e7
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40a30d
cmp eax, 0xffffffff
je 0x40a30d
test byte [esi + 0xc], 4
je 0x40a308
call fcn.0040a323
push dword [esi + 0x14]
call edi
mov eax, dword [esi + 0x18]
test eax, eax
je 0x40a317
push eax
call edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40abb6
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
call fcn.0040acda
mov edi, dword [ebp + 8]
mov ecx, dword [0x41c078]
mov dword [ebp - 4], edi
call fcn.0040a5b7
test al, al
je 0x40abe4
mov ecx, edi
call fcn.0040aa86
mov dword [ebp - 4], eax
xor ebx, ebx
xor eax, eax
cmp byte [ebp + 0xc], bl
push ebx
push 0x8000080
setne al
add eax, 3
push eax
push ebx
push 3
push 0x80000000
push dword [ebp - 4]
call dword [0x44247c]
mov edi, eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
je 0x40ac1a
push eax
call fcn.0040b125
pop ecx
cmp edi, 0xffffffff
mov dword [esi], edi
je 0x40acd6
lea eax, [ebp - 8]
mov dword [ebp + 0xc], ebx
push eax
push edi
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 8], ebx
lea edi, [esi + 8]
mov dword [edi], eax
jne 0x40ac47
cmp eax, 0x80000000
jb 0x40ac7d
mov ecx, dword [ebp + 8]
push 0x2002
call fcn.0040b924
push eax
push str.File_is_too_large_to_be_loaded__nRetry_loading_the_1st_64KB_only__nBE_CAREFUL_NOT_TO_ERASE_THE_FILE____
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [0x442074]
cmp eax, 4
jne 0x40ac78
mov eax, 0x10000
mov dword [ebp + 0xc], eax
mov dword [edi], eax
jmp 0x40ac7d
cmp eax, 3
je 0x40acd6
cmp dword [edi], ebx
jne 0x40ac8d
mov dword [esi + 0xc], edi
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8
push ebx
push ebx
push ebx
push 2
push ebx
push dword [esi]
call dword [0x4424c8]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x40acac
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40acd3
push dword [ebp + 0xc]
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x40ac84
push dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi]
mov dword [esi + 4], ebx
call edi
or dword [esi], 0xffffffff
xor al, al
jmp 0x40ac86

Function at 0x40b0b4
Capabilities:
Terminate process

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
push dword [0x41c080]
call edi
mov esi, eax
test esi, esi
jne 0x40b120
cmp byte [0x41d874], 8
jae 0x40b120
push 0x2002
push eax
push str.Unable_to_allocate_memory_
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [0x442074]
sub eax, 3
je 0x40b118
dec eax
jne 0x40b10d
push dword [esp + 0xc]
and byte [0x41d874], 0
push esi
push dword [0x41c080]
jmp 0x40b0c8
dec eax
jne 0x40b120
inc byte [0x41d874]
jmp 0x40b120
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, esi
pop edi
pop esi
ret

Function at 0x411d96
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
push 0x40
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x14]
push 0x1000
push 0x16
push eax
mov dword [esi + 4], eax
mov byte [esi + 8], al
mov dword [esi + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi + 0x18], eax
mov eax, esi
pop esi
ret 0xc
Function at 0x412238
Capabilities:
Open clipboard

Disassembly:
push esi
mov esi, ecx
push dword [esp + 8]
and byte [esi], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x412268
cmp byte [esp + 0xc], 0
jne 0x412265
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x412265
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x412268
mov byte [esi], 1
mov eax, esi
pop esi
ret 8
Function at 0x41b7c5
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push dword [ebp + 8]
and byte [ebp - 0x800], 0
lea eax, [ebp - 0x800]
push eax
call fcn.0041b818
lea eax, [ebp - 0x800]
push str._nThe_application_will_terminate_now.
push eax
call fcn.0041b818
add esp, 0x10
lea eax, [ebp - 0x800]
push 0x10
push str.Fatal_error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x41ba2a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
mov eax, dword [edi + 0x3c]
mov esi, dword [eax + edi + 0x78]
mov eax, dword [esi + edi + 0x20]
add esi, edi
add eax, edi
mov ebx, dword [esi + 0x24]
mov ecx, dword [esi + 0x1c]
add ebx, edi
add ecx, edi
cmp dword [esi + 0x18], 0
mov dword [ebp - 8], ecx
jbe 0x41ba82
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov eax, dword [eax]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x41ba89
inc dword [ebp + 8]
add dword [ebp - 4], 4
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x18]
jb 0x41ba5e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
movzx eax, word [ebx + eax*2]
mov eax, dword [ecx + eax*4]
add eax, edi
jmp 0x41ba84

Function at 0x40100b
Capabilities:
Execute shellcode via indirect call
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x4010ad
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x40102e
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011b8
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401048
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011b8
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x401134
mov word [ebx], 0x5c
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011b8
mov dword [ebp - 0x108], eax
push 0x401023
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x4011ad
push 0x3e8
call eax
test eax, eax
je 0x4011ad
push eax
push 0x40
push 0x3000
push 0x10000
push 0
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
je 0x40119a
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
lea eax, [0x4010a7]
jmp 0x4011be
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
lea eax, [0x40108c]
jmp 0x4011be
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
lea eax, [0x40104d]
push 0x10
push 0x4010a7
push eax
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x404335
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
movzx eax, word [ebp + 8]
push ebx
push esi
mov esi, dword [0x4406a0]
push edi
push 0xf0
push eax
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x404487
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404487
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x404487
call dword [0x440058]
mov dword [ebp + 8], eax
xor eax, eax
mov ax, word [edi]
test ax, ax
mov dword [ebp - 8], eax
je 0x404487
inc edi
inc edi
mov ax, word [edi]
inc edi
inc edi
mov ecx, dword [edi]
add edi, 4
cmp ax, 0x403
mov dword [ebp - 0x10], ecx
jne 0x404401
test edi, edi
jne 0x4043bf
xor eax, eax
jmp 0x4043f7
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.0041f1f0
mov ebx, esp
xor eax, eax
cmp ebx, eax
je 0x4043f7
push esi
push ebx
push 0xffffffffffffffff
push edi
push eax
push dword [ebp + 8]
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, ebx
push eax
push 0
push 0x143
jmp 0x404460
cmp ax, 0x1234
jne 0x40447a
or dword [ebp - 0x30], 0xffffffff
test edi, edi
mov dword [ebp - 0x34], 1
jne 0x40441a
xor eax, eax
jmp 0x404452
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.0041f1f0
mov ebx, esp
xor eax, eax
cmp ebx, eax
je 0x404452
push esi
push ebx
push 0xffffffffffffffff
push edi
push eax
push dword [ebp + 8]
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, ebx
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x40b
movzx eax, word [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp eax, 0xffffffff
jne 0x40447a
and dword [ebp - 4], 0
add edi, dword [ebp - 0x10]
cmp dword [ebp - 4], 0
jne 0x404391
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x40]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4091cd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4091e2
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4091f4
xor eax, eax
jmp 0x409226
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x409218
cmp esi, eax
jae 0x4091f0
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40920a
cmp esi, eax
jae 0x4091f0
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret

Function at 0x40a59f
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x42ccfb
call fcn.0041f1a0
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
lea ecx, [esi + 0x20]
mov dword [esi], 0x432098
call fcn.00403f9d
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
lea ecx, [esi + 0x50]
call fcn.00403f9d
lea ecx, [esi + 0x54]
call fcn.00403f9d
lea ecx, [esi + 0x58]
call fcn.00403f9d
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov word [esi + 0x5c], di
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40ac76
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0xc0
mov eax, dword [0x440200]
push ebx
push esi
mov ebx, ecx
push edi
push dword [ebx + 4]
xor eax, ebp
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x64], eax
call fcn.00407bc3
push 1
push dword [ebp + 0x1c]
call dword [sym.imp.GDI32.dll_SetBkMode]
lea esi, [ebx + 0x3c]
lea edi, [ebp - 0x50]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x40]
push eax
push 0x5c
movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push esi
push 0x31
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x30], 0x2bc
mov dword [ebp - 0x54], esi
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
lea ecx, [ebp - 0x54]
call fcn.004079b5
push dword [ebp - 0x54]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp + 0x1c]
call edi
add dword [ebp - 0x4c], 8
add dword [ebp - 0x50], 0xd
mov esi, dword [sym.imp.USER32.dll_DrawTextW]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x4c]
push 0x24
add eax, 0x14
mov dword [ebp - 0x44], eax
mov eax, dword [ebx + 0x28]
lea ecx, [ebp - 0x50]
push ecx
push dword [eax - 0xc]
push eax
push dword [ebp + 0x1c]
call esi
push 0
push 0
push 0x31
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push dword [ebp + 0x1c]
call edi
mov eax, dword [ebx + 0x2c]
push 0x24
lea ecx, [ebp - 0x50]
push ecx
mov dword [ebp - 0x4c], 0x26
mov dword [ebp - 0x44], 0x3a
push dword [eax - 0xc]
push eax
push dword [ebp + 0x1c]
call esi
mov eax, dword [ebx + 0x30]
push 0x24
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x44], 0x58
push ecx
push dword [eax - 0xc]
push eax
push dword [ebp + 0x1c]
call esi
mov eax, dword [ebx + 0x34]
push 0x24
lea ecx, [ebp - 0x50]
push ecx
mov dword [ebp - 0x4c], 0x5a
mov dword [ebp - 0x44], 0x6e
push dword [eax - 0xc]
push eax
push dword [ebp + 0x1c]
call esi
mov ebx, dword [ebx + 0x38]
push 0x24
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x4c], 0xb4
mov dword [ebp - 0x44], 0xc8
push dword [ebx - 0xc]
push ebx
push dword [ebp + 0x1c]
call esi
cmp dword [ebp - 0x58], 0
je 0x40adc6
push dword [ebp - 0x58]
push dword [ebp + 0x1c]
call edi
cmp dword [ebp - 0x54], 0
pop edi
pop esi
pop ebx
je 0x40add8
push dword [ebp - 0x54]
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [ebp + 0x24]
push eax
push dword [ebp + 0x20]
call dword [sym.imp.USER32.dll_EndPaint]
mov ecx, dword [ebp + 0x64]
xor ecx, ebp
xor eax, eax
call fcn.0041ef93
add ebp, 0x68
leave
ret 0x10

Function at 0x40eeaa
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x40eecf
cmp word [eax], 0
je 0x40eecf
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40eecc
test al, 0x10
je 0x40eecc
xor eax, eax
inc eax
ret
xor eax, eax
ret
push 0x132b3a1
call fcn.004112fb
pop ecx
xor al, al
ret
Function at 0x40fbde
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x40fc25
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x40fc25
xor edx, edx
mov eax, esi
shl eax, 3
push 6
pop ecx
div ecx
lea ecx, [eax + eax*2]
shl ecx, 1
mov edx, ecx
mov ecx, esi
shl ecx, 3
sub ecx, edx
dec ecx
dec ecx
je 0x40fc18
dec ecx
dec ecx
jne 0x40fc1b
inc eax
inc eax
jmp 0x40fc1b
add eax, 3
mov ecx, dword [ebp + 0xc]
inc eax
cmp dword [ecx], eax
jae 0x40fc2c
mov dword [ecx], eax
push 0xfffffffffffffff0
pop eax
pop edi
pop esi
leave
ret
push ebx
xor edx, edx
push 3
pop ecx
mov eax, esi
div ecx
mov ecx, dword [ebp + 8]
xor edx, edx
lea eax, [eax + eax*2]
test eax, eax
jbe 0x40fcb2
push 3
dec eax
pop esi
div esi
inc eax
lea edx, [eax + eax*2]
mov dword [ebp - 4], edx
movzx esi, byte [edi]
inc edi
movzx edx, byte [edi]
mov ebx, esi
shr ebx, 2
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc edi
mov dword [ebp + 0x10], edx
movzx edx, byte [edi]
mov byte [ecx], bl
mov ebx, dword [ebp + 0x10]
shr ebx, 4
shl esi, 4
add ebx, esi
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc edi
inc ecx
mov byte [ecx], bl
mov ebx, dword [ebp + 0x10]
mov esi, edx
shr esi, 6
lea esi, [esi + ebx*4]
and esi, 0x3f
mov bl, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], bl
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], dl
inc ecx
dec eax
jne 0x40fc4f
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
cmp edx, esi
jae 0x40fd07
movzx eax, byte [edi]
inc edx
cmp edx, esi
jae 0x40fcc4
movzx edi, byte [edi + 1]
jmp 0x40fcc6
xor edi, edi
mov ebx, eax
shr ebx, 2
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], bl
shl eax, 4
mov ebx, edi
shr ebx, 4
add ebx, eax
and ebx, 0x3f
mov al, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
cmp edx, esi
jae 0x40fcff
and edi, 0xf
mov al, byte [edi*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
jmp 0x40fd02
mov byte [ecx], 0x3d
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov edx, dword [ebp + 0xc]
mov eax, ecx
sub eax, dword [ebp + 8]
pop ebx
mov dword [edx], eax
mov byte [ecx], 0
xor eax, eax
jmp 0x40fc28
Function at 0x40fd1c
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
push ebx
push esi
push edi
je 0x40fe32
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x40fe32
xor esi, esi
xor ebx, ebx
xor edx, edx
test edi, edi
jbe 0x40fe2e
mov eax, edi
sub eax, edx
cmp eax, 2
jb 0x40fd5d
cmp byte [edx + ecx], 0xd
jne 0x40fd5d
cmp byte [edx + ecx + 1], 0xa
je 0x40fd98
mov al, byte [edx + ecx]
cmp al, 0xa
je 0x40fd98
cmp al, 0x3d
jne 0x40fd72
inc ebx
cmp ebx, 2
ja 0x40fe32
cmp al, 0x7f
ja 0x40fe32
movzx eax, al
mov al, byte [eax + 0x432438]
cmp al, 0x7f
je 0x40fe32
cmp al, 0x40
jae 0x40fd97
test ebx, ebx
jne 0x40fe32
inc esi
inc edx
cmp edx, edi
jb 0x40fd47
test esi, esi
je 0x40fe2e
mov ecx, dword [ebp + 0xc]
lea eax, [esi + esi*2]
lea eax, [eax + eax + 7]
shr eax, 3
cmp dword [ecx], eax
jae 0x40fdbc
mov dword [ecx], eax
push 0xfffffffffffffff0
jmp 0x40fe34
mov ecx, dword [ebp + 8]
push 3
xor ebx, ebx
xor esi, esi
test edx, edx
pop edi
jbe 0x40fe26
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0xd
je 0x40fe1e
cmp al, 0xa
je 0x40fe1e
movzx eax, al
movzx eax, byte [eax + 0x432438]
xor edx, edx
cmp al, 0x40
sete dl
shl ebx, 6
and eax, 0x3f
or eax, ebx
mov ebx, eax
sub edi, edx
inc esi
cmp esi, 4
jne 0x40fe1e
xor esi, esi
test edi, edi
jbe 0x40fe09
shr eax, 0x10
mov byte [ecx], al
inc ecx
cmp edi, 1
jbe 0x40fe16
mov eax, ebx
shr eax, 8
mov byte [ecx], al
inc ecx
cmp edi, 2
jbe 0x40fe1e
mov byte [ecx], bl
inc ecx
inc dword [ebp + 0x10]
dec dword [ebp - 4]
jne 0x40fdcd
sub ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
xor eax, eax
jmp 0x40fe35
push 0xffffffffffffffee
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4102d3
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x410375
cmp word [esi], bx
je 0x410375
push ebx
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x410371
inc eax
push edi
push eax
call sub.MSVCR71.dll_void____cdecl_operator_new___unsigned_int_
mov edi, eax
cmp edi, ebx
pop ecx
je 0x410370
push edi
push dword [ebp + 8]
push ebx
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x410369
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x4322f4
push edi
mov dword [ebp - 4], ebx
mov dword [ebp + 8], 0x34
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x410369
mov eax, dword [ebp - 4]
mov cx, word [eax + 0xa]
mov edx, dword [ebp + 0xc]
mov word [edx], cx
mov cx, word [eax + 8]
mov edx, dword [ebp + 0x10]
mov word [edx], cx
mov cx, word [eax + 0xe]
mov edx, dword [ebp + 0x14]
mov word [edx], cx
mov ax, word [eax + 0xc]
mov ecx, dword [ebp + 0x18]
mov word [ecx], ax
mov bl, 1
push edi
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
pop ecx
pop edi
mov al, bl
jmp 0x410382
push 0x132b3a1
call fcn.004112fb
pop ecx
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x4106cd
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 8], ebx
jne 0x410711
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esi + 4]
push eax
push 4
push esi
push 0x4106a4
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp byte [esp + 0xc], bl
mov dword [esi + 8], eax
jne 0x410711
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop ebx
ret 4

Function at 0x41368a
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x7a0]
sub esp, 0x820
mov eax, dword [0x440200]
push esi
mov esi, dword [ebp + 0x7a8]
xor eax, ebp
mov dword [ebp + 0x79c], eax
push 0x400
lea eax, [ebp - 0x64]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [0x440620]
lea eax, [ebp - 0x64]
push eax
call fcn.00413622
push eax
lea ecx, [ebp - 0x80]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
cmp dword [ebp - 0x6c], 0
je 0x4136ef
cmp dword [ebp - 0x68], 8
mov eax, dword [ebp - 0x7c]
jae 0x4136e7
lea eax, [ebp - 0x7c]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x80]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [ebp + 0x79c]
xor eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.0041ef93
add ebp, 0x7a0
leave
ret 8