joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45cc28
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004536c4
and dword [ebp - 4], 0
cmp dword [0x4e0ca0], 0
mov ebx, eax
jne 0x45ccd9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x45cd8a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x45cd8a
push eax
call fcn.00453652
mov dword [esp], 0x47d03c
push edi
mov dword [0x4e0ca0], eax
call esi
push eax
call fcn.00453652
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4e0ca4], eax
call esi
push eax
call fcn.00453652
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4e0ca8], eax
call esi
push eax
call fcn.00453652
pop ecx
mov dword [0x4e0cb0], eax
test eax, eax
je 0x45ccd9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00453652
pop ecx
mov dword [0x4e0cac], eax
mov eax, dword [0x4e0cac]
cmp eax, ebx
je 0x45cd31
cmp dword [0x4e0cb0], ebx
je 0x45cd31
push eax
call fcn.004536cd
push dword [0x4e0cb0]
mov esi, eax
call fcn.004536cd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x45cd31
test edi, edi
je 0x45cd31
call esi
test eax, eax
je 0x45cd28
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x45cd28
test byte [ebp - 0xc], 1
jne 0x45cd31
or dword [ebp + 0x10], 0x200000
jmp 0x45cd6a
mov eax, dword [0x4e0ca4]
cmp eax, ebx
je 0x45cd6a
push eax
call fcn.004536cd
pop ecx
test eax, eax
je 0x45cd6a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x45cd6a
mov eax, dword [0x4e0ca8]
cmp eax, ebx
je 0x45cd6a
push eax
call fcn.004536cd
pop ecx
test eax, eax
je 0x45cd6a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4e0ca0]
call fcn.004536cd
pop ecx
test eax, eax
je 0x45cd8a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x45cd8c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46643c
Capabilities:
Write file on windows

Disassembly:
push 0x48
mov eax, 0x46b259
call fcn.004693a6
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x3c], ebx
je 0x46654e
cmp byte [esi + 0x42], bl
je 0x46654e
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 4]
movzx eax, ax
cmp di, ax
jne 0x466478
xor al, al
jmp 0x466550
push ebx
push 8
lea ecx, [ebp - 0x2c]
call fcn.00466412
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004661ee
mov ecx, eax
call fcn.00465b95
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004661ee
mov ecx, eax
call fcn.00465b95
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
push eax
add edi, ebx
push edi
push dword [ebp - 0x34]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x4664e8
dec eax
je 0x4664ec
dec eax
dec eax
je 0x46654a
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00408976
mov al, bl
jmp 0x466550
mov byte [esi + 0x42], 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004661ee
mov ecx, eax
call fcn.00465b95
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x46652c
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004661ee
mov ecx, eax
call fcn.00465b95
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0044e596
add esp, 0x10
cmp edi, eax
jne 0x4664d6
cmp byte [esi + 0x42], 0
je 0x46654a
test edi, edi
jne 0x466486
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00408e3d
jmp 0x466486
mov bl, 1
jmp 0x4664d8
mov al, 1
call fcn.004693f0
ret
Function at 0x4665f7
Capabilities:
Write file on windows

Disassembly:
push 0x54
mov eax, 0x46b2c7
call fcn.004693a6
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x466621
lea eax, [ebp + 8]
push eax
call fcn.0040e3a7
pop ecx
jmp 0x46679c
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor ebx, ebx
cmp ecx, ebx
je 0x46664f
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x46664f
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 2]
mov dword [esi], ecx
mov word [eax], di
mov ax, di
jmp 0x46679c
mov eax, dword [esi + 0x4c]
cmp eax, ebx
je 0x466797
cmp dword [esi + 0x3c], ebx
jne 0x466678
push eax
push edi
call fcn.00465d3b
pop ecx
test al, al
pop ecx
movzx eax, di
jne 0x46679c
jmp 0x466797
movzx eax, di
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
call fcn.00466412
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.004661ee
mov ecx, eax
call fcn.00465b95
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004661ee
mov ecx, eax
call fcn.00465b95
lea edx, [ebp - 0x38]
add edi, ebx
push edx
lea ebx, [esi + 0x44]
jmp 0x466769
cmp eax, 1
jg 0x4667a4
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004661ee
mov ecx, eax
call fcn.00465b95
mov edi, dword [ebp - 0x38]
sub edi, eax
je 0x46670e
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004661ee
mov ecx, eax
call fcn.00465b95
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0044e596
add esp, 0x10
cmp edi, eax
jne 0x46678b
lea eax, [ebp - 0x30]
mov byte [esi + 0x42], 1
cmp dword [ebp - 0x3c], eax
jne 0x4667d4
test edi, edi
ja 0x466734
cmp dword [ebp - 0x18], 0x20
push 0
lea ecx, [ebp - 0x2c]
jae 0x466790
push 8
call fcn.00408e3d
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004661ee
mov ecx, eax
call fcn.00465b95
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004661ee
mov ecx, eax
call fcn.00465b95
lea edx, [ebp - 0x38]
push edx
mov edx, dword [ebp - 0x40]
add edi, edx
mov ecx, dword [esi + 0x3c]
push edi
push eax
lea edx, [ebp - 0x3c]
push edx
lea edx, [ebp - 0x2e]
push edx
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x34], eax
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
test eax, eax
jge 0x4666c5
push 0
lea ecx, [ebp - 0x2c]
push 1
call fcn.00408976
mov eax, 0xffff
call fcn.004693f0
ret 4
cmp eax, 3
jne 0x46678b
push dword [esi + 0x4c]
push dword [ebp - 0x30]
call fcn.00465d3b
movzx esi, word [ebp + 8]
pop ecx
pop ecx
test al, al
jne 0x4667c3
mov esi, 0xffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00408976
mov ax, si
jmp 0x46679c
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00408976
mov ax, word [ebp + 8]
jmp 0x46679c

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

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
ret
Function at 0x402edc
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402f18
movzx eax, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryA
push esp
call sub.KERNEL32.DLL_SetCurrentDirectoryA_1
lea eax, [esp + 4]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test bl, bl
je 0x402f38
lea eax, [esp + 0x109]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA_1
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404d78
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x403170
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404b08
test esi, esi
jne 0x4031a6
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404bf8
jmp 0x4031c4
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403074
mov edi, eax
test esi, esi
je 0x4031c4
cmp dword [ebx], 0
je 0x4031c4
dec esi
jmp 0x4031ad
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4031f8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x50c008], 0x8088405
inc edx
mov dword [ebx + 0x50c008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4039a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x50c024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403a38
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403a18
xor eax, eax
push ebp
push 0x403a11
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403a54
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403a18
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x50c024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x50c024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4048d4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x51004c], 0
je 0x404935
cmp word [0x510220], 0xd7b2
jne 0x4048fd
cmp dword [0x510228], 0
jbe 0x4048fd
mov eax, 0x51021c
call dword [0x510238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40495c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x50c030], 0
jne 0x404951
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret
Function at 0x404a8c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x50c034], 0
je 0x404ab2
mov edx, esi
mov eax, ebx
call dword [0x50c034]
jmp 0x404ac1
mov eax, 8
call fcn.00402d0c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x51004d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404a54
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.KERNEL32.DLL_CreateThread_1
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4065d4
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406804
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406657
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406804
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406657
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406820
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4066e0
xor eax, eax
push ebp
push 0x4066d9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406410
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4066be
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406840
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4066be
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4066e0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale_1
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4067fa
cmp byte [ebp - 0xd], 0
jne 0x406727
cmp byte [ebp - 0x12], 0
je 0x4067fa
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406740
dec ebx
cmp byte [ebx], 0x2e
je 0x40674f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40673f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4067fa
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40678c
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA_1
mov esi, eax
test esi, esi
jne 0x4067fa
cmp byte [ebp - 0xd], 0
je 0x4067fa
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA_1
mov esi, eax
test esi, esi
jne 0x4067fa
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA_1
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408f10
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408fa0
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408fa0
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408f53
test edx, 3
jne 0x408f42
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408f4d
jmp 0x408f53
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408f53
cmp dword [ecx - 8], 1
je 0x408f5d
mov edx, ebx
or edx, 3
call fcn.00405254
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x408f6f
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404b08

Function at 0x408fac
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x40903c
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x40903c
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408fef
test edx, 3
jne 0x408fde
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408fe9
jmp 0x408fef
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408fef
cmp dword [ecx - 8], 1
je 0x408ff9
mov edx, ebx
or edx, 3
call fcn.00405254
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x40900b
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404b08

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404fcc
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409935
test al, 0x10
je 0x409939
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c568
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x40c5a1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404bf8
jmp 0x40c5aa
mov eax, ebx
mov edx, esi
call fcn.00404b5c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c5b4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x40c5d6
movzx eax, byte [esp]
jmp 0x40c5d8
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40d5c0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d696
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404ba0
lea eax, [ebp - 4]
call fcn.0040501c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404fcc
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d680
mov eax, ebx
call fcn.00402d0c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d679
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404fcc
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d663
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d6a8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d663
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d680
mov eax, dword [ebp - 0x10]
call fcn.00402d28
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d69d
lea eax, [ebp - 4]
call fcn.00404b08
ret

Function at 0x4257cc
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00425508
dec esi
jne 0x4257ee
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x426960
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x513308
cmp dword [edi], 0
jne 0x4269dc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x513304]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x50cc1c
mov ecx, 2
call fcn.00402f74
mov edx, 0x426938
lea eax, [esi + 5]
call fcn.00426958
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00426958
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x4269b1
mov dword [0x513304], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x42b5dc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404fcc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x42b634
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x50fb30]
mov dl, 1
mov eax, dword [0x42af30]
call fcn.0040ce28
call fcn.0040445c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0042b0a4
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42c9cc
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x42c9d2
ret
Function at 0x43bcbc
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x43bd8e
push dword fs:[edx]
mov dword fs:[edx], esp
push ebx
push 0x2002
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x43bd60
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
xor edx, edx
push ebp
push 0x43bd4f
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, eax
mov eax, edi
mov ecx, ebx
call fcn.00402f74
mov eax, dword [ebp - 4]
call fcn.0043bbf8
mov eax, dword [ebp - 8]
push eax
movzx eax, si
push eax
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43bd56
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
ret

Function at 0x43bda0
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
push 1
call sub.user32.dll_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x43be12
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x43bde6
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.00404d00
jmp 0x43bded
mov eax, ebx
call fcn.00404b08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43be19
cmp dword [ebp - 8], 0
je 0x43be09
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x43be4c
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x43bef4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x43bec7
mov edx, ebx
mov eax, dword [0x42c410]
call fcn.00430e48
test al, al
je 0x43beb7
movzx eax, bx
push eax
call sub.user32.dll_GetClipboardData
mov esi, eax
push 9
call sub.user32.dll_GetClipboardData
mov edi, eax
push edi
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00430d58
call fcn.00404508
jmp 0x43befb
movzx eax, bx
push eax
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x43be7f
mov ecx, dword [0x50f624]
mov dl, 1
mov eax, dword [0x408258]
call fcn.0040cdec
call fcn.0040445c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43befb
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret