joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b4b0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc20]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc10], 0
xor eax, eax
push fcn.0044b4a0
push ebp
push 0x414ff0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xfffffff
mov edx, dword [ebp - 4]
lea eax, [ebp - 0xc10]
call fcn.00408a60
lea eax, [ebp - 0xc10]
call fcn.00403b70
lea eax, [ebp - 0xc1c]
push eax
mov eax, dword [ebp - 0xc10]
test eax, eax
jne 0x44b510
mov eax, 0x5fe2f0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc18], eax
cmp eax, 0xc00
jbe 0x44b5ba
mov edx, dword [ebp - 0xc18]
lea eax, [ebp - 0xc0c]
call fcn.00410130
xor eax, eax
push fcn.0044b490
push ebp
push 0x414ff0
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0xc0c]
push dword [ebp - 0xc18]
push dword [ebp - 0xc1c]
mov eax, dword [ebp - 0xc10]
test eax, eax
jne 0x44b56c
mov eax, 0x5fe2f0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x44b5a8
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0xc20]
push eax
mov eax, 0x5acd2c
push eax
push dword [ebp - 0xc0c]
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x44b5a8
mov eax, dword [ebp - 0xc20]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
lea esi, [esi]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0044b490
jmp 0x44b618
lea eax, [ebp - 0xc08]
push eax
push dword [ebp - 0xc18]
push dword [ebp - 0xc1c]
mov eax, dword [ebp - 0xc10]
test eax, eax
jne 0x44b5dc
mov eax, 0x5fe2f0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x44b618
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0xc20]
push eax
mov eax, 0x5acd2c
push eax
lea eax, [ebp - 0xc08]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x44b618
mov eax, dword [ebp - 0xc20]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
mov esi, esi
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0044b4a0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x457ab0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x26c]
push ebx
push esi
mov dword [ebp - 4], eax
mov byte [ebp - 8], dl
mov bl, cl
mov edx, 0x5adca0
lea eax, [ebp - 0x268]
call fcn.0040ee90
xor eax, eax
push fcn.00457a90
push ebp
push 0x414ff0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test eax, eax
jne 0x457af3
mov eax, 0x5fe2f0
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
jne 0x457b3b
call sub.kernel32.dll_GetLastError
cmp eax, 0xa1
jbe 0x457b0f
clc
jmp 0x457b16
bt dword [0x5ad270], eax
jb 0x457b2f
mov eax, ebp
call fcn.00457be0
test al, al
je 0x457b2f
mov byte [ebp - 0x26c], 1
jmp 0x457bc0
mov byte [ebp - 0x26c], 0
jmp 0x457bc0
mov eax, esi
and eax, 0x10
movzx edx, byte [ebp - 8]
cmp eax, dword [edx*4 + 0x584e60]
sete byte [ebp - 0x26c]
mov al, bl
and al, byte [ebp - 0x26c]
je 0x457bc0
and esi, 0x400
je 0x457bc0
lea ebx, [ebp - 0x268]
mov edx, 0x5adca0
mov eax, ebx
call fcn.0040ef50
mov edx, ebx
mov eax, dword [ebp - 4]
xor cl, cl
call fcn.00457750
test eax, eax
je 0x457b94
sub eax, 1
je 0x457bac
jmp 0x457bb8
mov dl, byte [ebp - 8]
mov eax, dword [ebp - 0x268]
xor cl, cl
call fcn.00457ab0
mov byte [ebp - 0x26c], al
jmp 0x457bc0
mov byte [ebp - 0x26c], 1
jmp 0x457bc0
mov byte [ebp - 0x26c], 0
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00457a90
mov al, byte [ebp - 0x26c]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x457dd0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
test eax, eax
jne 0x457ddc
mov eax, 0x5fe2f0
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esp, ebp
pop ebp
ret

Function at 0x457ea0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
push edi
mov edi, eax
mov esi, edx
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
xor eax, eax
push fcn.00457e90
push ebp
push 0x414ff0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
test ebx, ebx
jle 0x457f10
lea edx, [ebx - 1]
lea eax, [ebp - 4]
call fcn.0040b9a0
cmp ebx, 1
jle 0x457f00
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
xor dx, dx
call fcn.0040b150
jmp 0x457f1b
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00408a60
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00457e90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x458320
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.00458310
push ebp
push 0x414ff0
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea esi, [esi]
add ebx, 1
lea eax, [ebx*4 + 0x62166c]
xor edx, edx
call fcn.00408a60
mov dword [ebx*4 + 0x62168c], 0xffffffff
cmp ebx, 7
jl 0x458348
call sub.kernel32.dll_GetThreadLocale
mov esi, eax
push 0xb
lea eax, [ebp - 0xc]
push eax
push 0x100b
push esi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x4583d4
lea esi, [esi]
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
xor cx, cx
mov edx, 0xa
call fcn.00409460
mov eax, dword [ebp - 0x10]
mov edx, 1
call fcn.0044d560
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x4583d4
push 4
push ebx
push esi
mov eax, 0x4581f0
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x458280
push eax
call sub.kernel32.dll_EnumCalendarInfoA
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00458310
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x458a30
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x1c]
push ebx
push esi
push edi
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
xor edx, edx
push fcn.00458a00
push ebp
push 0x414ff0
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0xc]
call fcn.0044cd20
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.00408a60
lea eax, [ebp - 4]
mov cl, 1
mov dx, 1
call fcn.0040a0e0
mov eax, dword [ebp - 0x18]
xor edx, edx
call fcn.00408a60
call sub.kernel32.dll_GetEnvironmentStringsA
mov dword [ebp - 0x1c], eax
mov ebx, eax
jmp 0x458b3c
lea ecx, [ebp - 8]
mov eax, ebx
xor dx, dx
call fcn.004093c0
mov eax, dword [ebp - 8]
test eax, eax
je 0x458ac7
mov eax, dword [eax - 4]
mov edi, eax
lea eax, [ebp - 8]
xor cl, cl
mov dx, 1
call fcn.0040a0e0
mov edx, dword [ebp - 8]
mov ecx, 1
mov al, 0x3d
call fcn.004099e0
mov esi, eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi - 1]
mov eax, dword [ebp - 8]
mov edx, 1
call fcn.00409890
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.0044cd20
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00409630
test eax, eax
jne 0x458b34
push dword [ebp - 0x18]
mov eax, dword [ebp - 8]
test eax, eax
je 0x458b23
mov eax, dword [eax - 4]
sub eax, esi
mov ecx, eax
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.00409890
jmp 0x458b45
lea eax, [ebx + edi]
add eax, 1
mov ebx, eax
cmp byte [ebx], 0
jne 0x458ab0
push dword [ebp - 0x1c]
call sub.kernel32.dll_FreeEnvironmentStringsA
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00458a00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x458ba0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x14]
push ebx
push esi
push edi
mov ebx, eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.00458b70
push ebp
push 0x414ff0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
xor edx, edx
call fcn.0040b310
call sub.kernel32.dll_GetEnvironmentStringsW
mov edi, eax
mov esi, edi
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00454450
jmp 0x458c78
lea edx, [ebp - 4]
mov eax, esi
call fcn.0040b2c0
mov edx, dword [ebp - 4]
mov ecx, 1
mov al, 0x3d
call fcn.0040bd70
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx - 1]
mov eax, dword [ebp - 4]
mov edx, 1
call fcn.0040bb20
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00454450
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.0040b960
test eax, eax
jne 0x458c68
push dword [ebp - 0x14]
mov eax, dword [ebp - 4]
test eax, eax
je 0x458c56
mov eax, dword [eax - 4]
sub eax, ebx
mov ecx, eax
lea edx, [ebx + 1]
mov eax, dword [ebp - 4]
call fcn.0040bb20
jmp 0x458c7f
mov eax, esi
call fcn.00404840
shl eax, 1
add eax, esi
add eax, 2
mov esi, eax
cmp word [esi], 0
jne 0x458c00
push edi
call sub.kernel32.dll_FreeEnvironmentStringsW
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00458b70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x458cb0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x94]
mov dword [0x6216d0], 0
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x84]
mov dword [0x621530], eax
mov eax, dword [ebp - 0x90]
mov dword [0x621540], eax
mov eax, dword [ebp - 0x8c]
mov dword [0x621550], eax
mov eax, dword [ebp - 0x88]
mov dword [0x621560], eax
mov edx, 0x621571
lea eax, [ebp - 0x80]
mov ecx, pe_nt_image_headers32
call fcn.00403660
lea eax, [ebp - 0x80]
call fcn.00404820
mov byte [0x621570], al
mov eax, 0x5ad340
push eax
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x6216e0], eax
test eax, eax
je 0x458d50
mov eax, 0x5ad34c
push eax
push dword [0x6216e0]
call sub.kernel32.dll_GetProcAddress
mov dword [0x6216d0], eax
nop
cmp dword [0x621540], 6
jae 0x458d64
mov dword [0x584720], 0
nop
cmp dword [0x621540], 6
jb 0x458d80
cmp dword [0x621550], 1
jb 0x458d80
mov dword [0x584730], 2
mov esp, ebp
pop ebp
ret

Function at 0x4634d0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.004634c0
push ebp
push 0x414ff0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xc]
call fcn.0040b1c0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x46350b
mov eax, 0x5fe2f0
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
or eax, eax
setne al
mov byte [ebp - 8], al
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.004634c0
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x46da40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov edx, eax
xor eax, eax
lea ebx, [edx + 1]
movzx ecx, byte [edx]
add ecx, 1
and ecx, 0xff
add edx, ecx
jmp 0x46da71
mov ecx, eax
shl ecx, 5
sub ecx, eax
movzx esi, byte [ebx]
xor ecx, esi
mov eax, ecx
add ebx, 1
cmp edx, ebx
ja 0x46da60
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49d710
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
lea esi, [ecx - 1]
test esi, esi
jl 0x49d74c
mov edi, 0xffffffff
lea esi, [esi]
add edi, 1
mov cl, al
xor cl, byte [edx]
and ecx, 0xff
mov ebx, ecx
mov ecx, eax
shr ecx, 8
xor ecx, dword [ebx*4 + 0x621ea0]
mov eax, ecx
add edx, 1
cmp esi, edi
jg 0x49d728
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49f2b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x20]
mov dword [ebp - 8], eax
lea esi, [esi]
mov edx, edi
mov eax, dword [edx + 0x30]
mov ecx, dword [edx + 0x68]
sub eax, ecx
sub eax, dword [edx + 0x60]
mov dword [ebp - 4], eax
test eax, eax
jne 0x49f2f5
mov eax, edi
cmp dword [eax + 0x60], 0
jne 0x49f2f5
cmp dword [eax + 0x68], 0
jne 0x49f2f5
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x49f3e4
cmp dword [ebp - 4], 0xffffffff
jne 0x49f304
sub dword [ebp - 4], 1
jmp 0x49f3e4
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, eax
mov eax, edx
mov edx, ecx
mov esi, eax
sub edx, 0x106
sbb esi, 0
add edx, ecx
adc esi, eax
mov eax, dword [edi + 0x60]
xor ecx, ecx
cmp esi, ecx
jl 0x49f335
jg 0x49f3e4
cmp edx, eax
ja 0x49f3e4
mov eax, dword [edi + 0x2c]
add eax, dword [ebp - 8]
mov edx, dword [edi + 0x2c]
mov ecx, dword [ebp - 8]
call fcn.00403660
mov eax, dword [ebp - 8]
sub dword [edi + 0x64], eax
mov eax, dword [ebp - 8]
sub dword [edi + 0x60], eax
mov eax, dword [ebp - 8]
sub dword [edi + 0x50], eax
mov ebx, dword [edi + 0x40]
mov eax, dword [edi + 0x38]
lea eax, [eax + ebx*2]
mov dword [ebp - 0x10], eax
lea esi, [esi]
sub dword [ebp - 0x10], 2
mov eax, dword [ebp - 0x10]
movzx edx, word [eax]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
ja 0x49f38b
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov word [edx], ax
jmp 0x49f393
mov eax, dword [ebp - 0x10]
mov word [eax], 0
sub ebx, 1
jne 0x49f368
mov ebx, dword [ebp - 8]
mov eax, dword [edi + 0x34]
lea eax, [eax + ebx*2]
mov dword [ebp - 0x10], eax
lea esi, [esi]
sub dword [ebp - 0x10], 2
mov eax, dword [ebp - 0x10]
movzx edx, word [eax]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
ja 0x49f3cb
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov word [eax], dx
jmp 0x49f3d3
mov eax, dword [ebp - 0x10]
mov word [eax], 0
sub ebx, 1
jne 0x49f3a8
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov dword [ebp - 4], eax
lea esi, [esi]
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x49f453
mov eax, edi
mov edx, dword [eax + 0x2c]
mov ecx, dword [eax + 0x60]
mov eax, dword [eax + 0x68]
add eax, ecx
add edx, eax
mov eax, dword [edi]
mov ecx, dword [ebp - 4]
call fcn.0049ef30
mov ebx, eax
add dword [edi + 0x68], ebx
cmp dword [edi + 0x68], 3
jb 0x49f43c
mov eax, edi
mov edx, dword [eax + 0x2c]
mov eax, dword [eax + 0x60]
movzx eax, byte [edx + eax]
mov dword [edi + 0x3c], eax
mov eax, edi
mov edx, dword [eax + 0x2c]
mov ecx, dword [eax + 0x60]
movzx edx, byte [edx + ecx + 1]
mov esi, dword [eax + 0x3c]
mov ecx, dword [eax + 0x4c]
shl esi, cl
xor edx, esi
and edx, dword [eax + 0x48]
mov dword [edi + 0x3c], edx
mov eax, edi
cmp dword [eax + 0x68], 0x106
jae 0x49f453
mov eax, dword [eax]
cmp dword [eax + 4], 0
jne 0x49f2c8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bd5d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x28]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00408a30
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x28], 0
xor eax, eax
push fcn.004bd5b0
push ebp
push 0x414ff0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 8], 0
cmp dword [ebp - 4], 0
je 0x4bd60f
jmp 0x4bd614
jmp 0x4bd6d9
mov eax, dword [ebp - 4]
call fcn.004bd150
mov byte [ebp - 0x18], al
cmp byte [ebp - 0x18], 0
jne 0x4bd627
jmp 0x4bd647
mov eax, dword [ebp - 4]
call fcn.004bd1e0
test al, al
jne 0x4bd635
jmp 0x4bd647
mov eax, dword [ebp - 4]
mov dl, 1
call fcn.004bd310
mov byte [ebp - 8], al
jmp 0x4bd6d9
cmp byte [ebp - 0x18], 0
jne 0x4bd64f
jmp 0x4bd66b
mov edx, dword [ebp - 4]
mov ecx, 1
mov al, 0x20
call fcn.004099e0
cmp eax, 0
jg 0x4bd665
jmp 0x4bd66b
mov byte [ebp - 0x14], 1
jmp 0x4bd66f
mov byte [ebp - 0x14], 0
cmp byte [ebp - 0x14], 0
jne 0x4bd677
jmp 0x4bd6a0
push 0
mov eax, 0x5c39dc
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov eax, 0x5c39dc
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x24]
lea eax, [ebp - 4]
mov ecx, 2
call fcn.00408df0
nop
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x28]
call fcn.0040cb10
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0xc]
call fcn.0040b240
push 1
push 0
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4bd6c8
mov eax, 0x5fe2f0
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteW
cmp eax, 0x20
seta byte [ebp - 8]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004bd5b0
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4be800
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
cmp edx, 1
jne 0x4be824
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
call dword [edx + 0x34]
mov dword [ebp - 8], eax
lea esi, [esi]
cmp dword [ebp - 8], 0
je 0x4be8ea
mov esi, esi
xor eax, eax
push 0x4be8cb
push ebp
push 0x415370
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0040d680
mov eax, dword [ebp - 8]
mov byte [eax + 0xc], 0
mov eax, dword [ebp - 8]
mov byte [eax + 0xe], 0
mov edx, 1
mov eax, 0x5a7da0
call fcn.0043d210
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
call fcn.004bea90
mov edx, dword [ebp - 8]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 8]
call fcn.004beb00
mov edx, dword [ebp - 8]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 8]
call fcn.004beb70
mov edx, dword [ebp - 8]
mov dword [edx + 0x30], eax
mov dword [ebp - 0xc], 1
cmp dword [ebp - 8], 0
je 0x4be8c0
cmp dword [ebp - 4], 0
je 0x4be8c0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x44]
nop
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
jmp 0x4be8ea
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c7530
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
cmp dword [ebp - 8], 1
je 0x4c754b
jmp 0x4c7558
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call dword [edx + 0x34]
mov dword [ebp - 0xc], eax
nop
cmp dword [ebp - 0xc], 0
je 0x4c7560
jmp 0x4c7568
jmp 0x4c7616
xor eax, eax
push 0x4c75f3
push ebp
push 0x415370
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_LoadResource
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 0
jne 0x4c759e
jmp 0x4c75c4
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_SizeofResource
mov ebx, eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x14]
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, dword [ebp - 0xc]
mov ecx, ebx
call fcn.0043b2a0
mov esi, esi
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0
jne 0x4c75d3
jmp 0x4c75e8
cmp dword [ebp - 8], 0
jne 0x4c75db
jmp 0x4c75e8
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
call dword [edx + 0x44]
mov esi, esi
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
jmp 0x4c7616
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4c9400
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
cmp dword [esi + 0x14], 0xca
jne 0x4c9434
mov eax, esi
call fcn.004cd830
cmp byte [esi + 0x40], 0
je 0x4c942c
mov dword [esi + 0x14], 0xcf
mov bl, 1
jmp 0x4c94e5
mov dword [esi + 0x14], 0xcb
nop
cmp dword [esi + 0x14], 0xcb
jne 0x4c94c4
mov eax, dword [esi + 0x184]
cmp byte [eax + 0x10], 0
je 0x4c94bc
lea esi, [esi]
cmp dword [esi + 8], 0
je 0x4c9468
mov eax, esi
mov edx, dword [esi + 8]
call dword [edx]
lea esi, [esi]
mov eax, esi
mov edx, dword [esi + 0x184]
call dword [edx]
mov edi, eax
test edi, edi
jne 0x4c9480
xor bl, bl
jmp 0x4c94e5
cmp edi, 2
je 0x4c94ba
lea esi, [esi]
cmp dword [esi + 8], 0
je 0x4c9458
cmp edi, 3
je 0x4c9498
cmp edi, 1
jne 0x4c9458
mov eax, dword [esi + 8]
add dword [eax + 4], 1
mov eax, dword [esi + 8]
mov edx, dword [eax + 4]
cmp edx, dword [eax + 8]
jl 0x4c9458
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x110]
add dword [edx + 8], eax
mov esi, esi
jmp 0x4c9458
mov esi, esi
mov eax, dword [esi + 0x70]
mov dword [esi + 0x78], eax
jmp 0x4c94dc
cmp dword [esi + 0x14], 0xcc
je 0x4c94dc
mov ecx, dword [esi + 0x14]
mov eax, esi
mov dl, 0x14
call fcn.004c9840
lea esi, [esi]
mov eax, esi
call fcn.004c94f0
mov bl, al
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ef520
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov byte [ebp - 0xc], 0
mov eax, dword [ebp - 8]
push dword [eax - 8]
call sub.user32.dll_GetClipboardData
mov edx, dword [ebp - 8]
mov dword [edx - 0x14], eax
mov eax, dword [ebp - 8]
cmp dword [eax - 0x14], 0
jne 0x4ef54e
jmp 0x4ef5bc
mov eax, dword [ebp - 8]
push dword [eax - 0x14]
call sub.kernel32.dll_GlobalSize
mov edx, dword [ebp - 8]
mov dword [edx - 0x1c], eax
mov eax, dword [ebp - 8]
cmp dword [eax - 0x1c], 0
jg 0x4ef56a
jmp 0x4ef5bc
mov eax, dword [ebp - 8]
push dword [eax - 0x14]
call sub.kernel32.dll_GlobalLock
mov edx, dword [ebp - 8]
mov dword [edx - 0x18], eax
xor eax, eax
push fcn.004ef500
push ebp
push 0x414ff0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax - 0x18]
mov eax, dword [ebp - 8]
mov ecx, dword [eax - 0x1c]
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
call dword [ebx + 0x84]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004ef500
mov byte [ebp - 0xc], 1
mov al, byte [ebp - 0xc]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4efce0
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x2c]
push ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
xor eax, eax
push fcn.004efcc0
push ebp
push 0x414ff0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
push eax
push 2
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4efd33
jmp 0x4efdb0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
call fcn.00464470
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x2c]
call fcn.004643c0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
call fcn.00464b80
mov ebx, eax
mov eax, str._DataSize
push eax
push dword [ebp - 0x18]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x24]
mov edx, str.TWin32WidgetSet.ClipboardGetOwnerShip_DataHandle
mov eax, ebx
call fcn.00465d90
mov eax, dword [ebp - 0xc]
mov byte [eax - 0x10], 0
jmp 0x4efe07
push dword [ebp - 0x10]
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x14], eax
xor eax, eax
push fcn.004efca0
push ebp
push 0x414ff0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
mov ecx, eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
call dword [ebx + pe_nt_image_headers32]
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.004efca0
push dword [ebp - 0x10]
push dword [ebp - 4]
call sub.user32.dll_SetClipboardData
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.004efcc0
pop ebx
mov esp, ebp
pop ebp
ret