joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463b60
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, 0x5a18a8
lea eax, [ebp - 0x268]
call fcn.0040ece0
xor eax, eax
push fcn.00463b40
push ebp
push 0x414810
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test eax, eax
jne 0x463ba3
mov eax, 0x5e92f0
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
jne 0x463beb
call sub.kernel32.dll_GetLastError
cmp eax, 0xa1
jbe 0x463bbf
clc
jmp 0x463bc6
bt dword [0x5a0e10], eax
jb 0x463bdf
mov eax, ebp
call fcn.00463c90
test al, al
je 0x463bdf
mov byte [ebp - 0x26c], 1
jmp 0x463c70
mov byte [ebp - 0x26c], 0
jmp 0x463c70
mov eax, esi
and eax, 0x10
movzx edx, byte [ebp - 8]
cmp eax, dword [edx*4 + 0x56cda0]
sete byte [ebp - 0x26c]
mov al, bl
and al, byte [ebp - 0x26c]
je 0x463c70
and esi, 0x400
je 0x463c70
lea ebx, [ebp - 0x268]
mov edx, 0x5a18a8
mov eax, ebx
call fcn.0040eda0
mov edx, ebx
mov eax, dword [ebp - 4]
xor cl, cl
call fcn.00463800
test eax, eax
je 0x463c44
sub eax, 1
je 0x463c5c
jmp 0x463c68
mov dl, byte [ebp - 8]
mov eax, dword [ebp - 0x268]
xor cl, cl
call fcn.00463b60
mov byte [ebp - 0x26c], al
jmp 0x463c70
mov byte [ebp - 0x26c], 1
jmp 0x463c70
mov byte [ebp - 0x26c], 0
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00463b40
mov al, byte [ebp - 0x26c]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x463e80
Capabilities:
Get file attributes

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

Function at 0x463fd0
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.00463fc0
push ebp
push 0x414810
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 0x464040
lea edx, [ebx - 1]
lea eax, [ebp - 4]
call fcn.0040b9e0
cmp ebx, 1
jle 0x464030
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.0040b070
jmp 0x46404b
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00408bd0
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00463fc0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x464450
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.00464440
push ebp
push 0x414810
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea esi, [esi]
add ebx, 1
lea eax, [ebx*4 + 0x5eaadc]
xor edx, edx
call fcn.00408bd0
mov dword [ebx*4 + 0x5eaafc], 0xffffffff
cmp ebx, 7
jl 0x464478
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 0x464504
lea esi, [esi]
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
xor cx, cx
mov edx, 0xa
call fcn.004095c0
mov eax, dword [ebp - 0x10]
mov edx, 1
call fcn.0045a6d0
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x464504
push 4
push ebx
push esi
mov eax, 0x464320
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x4643b0
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.00464440
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x464b50
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.00464b20
push ebp
push 0x414810
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
xor edx, edx
call fcn.0040b2a0
call sub.kernel32.dll_GetEnvironmentStringsW
mov edi, eax
mov esi, edi
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004603b0
jmp 0x464c28
lea edx, [ebp - 4]
mov eax, esi
call fcn.0040b1d0
mov edx, dword [ebp - 4]
mov ecx, 1
mov al, 0x3d
call fcn.0040bdc0
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx - 1]
mov eax, dword [ebp - 4]
mov edx, 1
call fcn.0040bb60
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.004603b0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.0040b9a0
test eax, eax
jne 0x464c18
push dword [ebp - 0x14]
mov eax, dword [ebp - 4]
test eax, eax
je 0x464c06
mov eax, dword [eax - 4]
sub eax, ebx
mov ecx, eax
lea edx, [ebx + 1]
mov eax, dword [ebp - 4]
call fcn.0040bb60
jmp 0x464c2f
mov eax, esi
call fcn.004049b0
shl eax, 1
add eax, esi
add eax, 2
mov esi, eax
cmp word [esi], 0
jne 0x464bb0
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.00464b20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x464c70
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x94]
mov dword [0x5eab40], 0
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x84]
mov dword [0x5ea9a0], eax
mov eax, dword [ebp - 0x90]
mov dword [0x5ea9b0], eax
mov eax, dword [ebp - 0x8c]
mov dword [0x5ea9c0], eax
mov eax, dword [ebp - 0x88]
mov dword [0x5ea9d0], eax
mov edx, 0x5ea9e1
lea eax, [ebp - 0x80]
mov ecx, pe_nt_image_headers32
call fcn.004037c0
lea eax, [ebp - 0x80]
call fcn.00404990
mov byte [0x5ea9e0], al
mov eax, 0x5a0ee0
push eax
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x5eab50], eax
test eax, eax
je 0x464d10
mov eax, 0x5a0eec
push eax
push dword [0x5eab50]
call sub.kernel32.dll_GetProcAddress
mov dword [0x5eab40], eax
nop
cmp dword [0x5ea9b0], 6
jae 0x464d24
mov dword [0x56c660], 0
nop
cmp dword [0x5ea9b0], 6
jb 0x464d40
cmp dword [0x5ea9c0], 1
jb 0x464d40
mov dword [0x56c670], 2
mov esp, ebp
pop ebp
ret
Function at 0x49cbe0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov eax, 0xffffffff
mov esi, esi
add eax, 1
mov ecx, eax
mov ebx, 0xffffffff
lea esi, [esi]
add ebx, 1
mov edx, ecx
and edx, 1
cmp edx, 1
jne 0x49cc13
mov edx, ecx
shr edx, 1
xor edx, 0xedb88320
mov ecx, edx
jmp 0x49cc15
shr ecx, 1
cmp ebx, 7
jl 0x49cbf8
mov dword [eax*4 + 0x5eb150], ecx
cmp eax, 0xff
jl 0x49cbe8
pop ebx
ret

Function at 0x49cc30
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
lea esi, [ecx - 1]
test esi, esi
jl 0x49cc64
mov edi, 0xffffffff
nop
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 + 0x5eb150]
mov eax, ecx
add edx, 1
cmp esi, edi
jg 0x49cc40
pop edi
pop esi
pop ebx
ret
Function at 0x49e830
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
lea esp, [esp - 0x10]
mov edi, eax
mov eax, dword [edi + 0x20]
mov dword [esp + 4], eax
mov edx, edi
mov eax, dword [edx + 0x30]
mov ecx, dword [edx + 0x68]
sub eax, ecx
sub eax, dword [edx + 0x60]
mov dword [esp], eax
test eax, eax
jne 0x49e86e
mov eax, edi
cmp dword [eax + 0x60], 0
jne 0x49e86e
cmp dword [eax + 0x68], 0
jne 0x49e86e
mov eax, dword [esp + 4]
mov dword [esp], eax
jmp 0x49e974
cmp dword [esp], 0xffffffff
jne 0x49e87d
sub dword [esp], 1
jmp 0x49e974
mov eax, dword [esp + 4]
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 0x49e8af
jg 0x49e974
cmp edx, eax
ja 0x49e974
mov eax, dword [edi + 0x2c]
add eax, dword [esp + 4]
mov edx, dword [edi + 0x2c]
mov ecx, dword [esp + 4]
call fcn.004037c0
mov eax, dword [esp + 4]
sub dword [edi + 0x64], eax
mov eax, dword [esp + 4]
sub dword [edi + 0x60], eax
mov eax, dword [esp + 4]
sub dword [edi + 0x50], eax
mov ebx, dword [edi + 0x40]
mov eax, dword [edi + 0x38]
lea eax, [eax + ebx*2]
mov dword [esp + 0xc], eax
lea esi, [esi]
sub dword [esp + 0xc], 2
mov eax, dword [esp + 0xc]
movzx edx, word [eax]
mov dword [esp + 8], edx
mov eax, dword [esp + 4]
cmp eax, dword [esp + 8]
ja 0x49e913
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
mov edx, dword [esp + 0xc]
mov word [edx], ax
jmp 0x49e91c
mov eax, dword [esp + 0xc]
mov word [eax], 0
sub ebx, 1
jne 0x49e8e8
mov ebx, dword [esp + 4]
mov eax, dword [edi + 0x34]
lea eax, [eax + ebx*2]
mov dword [esp + 0xc], eax
nop
sub dword [esp + 0xc], 2
mov eax, dword [esp + 0xc]
movzx edx, word [eax]
mov dword [esp + 8], edx
mov eax, dword [esp + 4]
cmp eax, dword [esp + 8]
ja 0x49e95b
mov edx, dword [esp + 8]
sub edx, dword [esp + 4]
mov eax, dword [esp + 0xc]
mov word [eax], dx
jmp 0x49e964
mov eax, dword [esp + 0xc]
mov word [eax], 0
sub ebx, 1
jne 0x49e930
mov eax, dword [esp]
add eax, dword [esp + 4]
mov dword [esp], eax
nop
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x49e9e3
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 [esp]
call fcn.0049e450
mov ebx, eax
add dword [edi + 0x68], ebx
cmp dword [edi + 0x68], 3
jb 0x49e9cc
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 0x49e9e3
mov eax, dword [eax]
cmp dword [eax + 4], 0
jne 0x49e840
lea esp, [esp + 0x10]
pop edi
pop esi
pop ebx
ret
Function at 0x4b7840
Capabilities:
Encrypt data using rc4 prga

Disassembly:
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 0x4b7871
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 0x4b7860
pop esi
pop ebx
ret

Function at 0x4b9050
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 0x4b9074
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 0x4b913a
mov esi, esi
xor eax, eax
push 0x4b911b
push ebp
push 0x414b90
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0040d5b0
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, 0x59b828
call fcn.00449fa0
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
call fcn.004b92d0
mov edx, dword [ebp - 8]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 8]
call fcn.004b9340
mov edx, dword [ebp - 8]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 8]
call fcn.004b93b0
mov edx, dword [ebp - 8]
mov dword [edx + 0x30], eax
mov dword [ebp - 0xc], 1
cmp dword [ebp - 8], 0
je 0x4b9110
cmp dword [ebp - 4], 0
je 0x4b9110
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 0x4b913a
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c1690
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
jne 0x4c16b8
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call dword [edx + 0x34]
mov dword [ebp - 0xc], eax
lea esi, [esi]
cmp dword [ebp - 0xc], 0
je 0x4c1766
mov esi, esi
xor eax, eax
push 0x4c1747
push ebp
push 0x414b90
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
je 0x4c171c
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.00448010
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0
je 0x4c173c
cmp dword [ebp - 8], 0
je 0x4c173c
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 0x4c1766
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4c3060
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov esi, eax
cmp dword [esi + 0x14], 0xca
jne 0x4c3094
mov eax, esi
call fcn.004c75e0
cmp byte [esi + 0x40], 0
je 0x4c308c
mov dword [esi + 0x14], 0xcf
mov bl, 1
jmp 0x4c3145
mov dword [esi + 0x14], 0xcb
nop
cmp dword [esi + 0x14], 0xcb
jne 0x4c3124
mov eax, dword [esi + 0x184]
cmp byte [eax + 0x10], 0
je 0x4c311c
lea esi, [esi]
cmp dword [esi + 8], 0
je 0x4c30c8
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 0x4c30e0
xor bl, bl
jmp 0x4c3145
cmp edi, 2
je 0x4c311a
lea esi, [esi]
cmp dword [esi + 8], 0
je 0x4c30b8
cmp edi, 3
je 0x4c30f8
cmp edi, 1
jne 0x4c30b8
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 0x4c30b8
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x110]
add dword [edx + 8], eax
mov esi, esi
jmp 0x4c30b8
mov esi, esi
mov eax, dword [esi + 0x70]
mov dword [esi + 0x78], eax
jmp 0x4c313c
cmp dword [esi + 0x14], 0xcc
je 0x4c313c
mov ecx, dword [esi + 0x14]
mov eax, esi
mov dl, 0x14
call fcn.004c3480
lea esi, [esi]
mov eax, esi
call fcn.004c3150
mov bl, al
mov al, bl
pop edi
pop esi
pop ebx
ret
Function at 0x4df240
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x4df278
mov edx, dword [0x5620e0]
cmp eax, dword [edx + 0x170]
jne 0x4df278
cmp byte [edx + 0x11c], 0
jne 0x4df278
mov eax, dword [0x56c410]
mov edx, dword [0x56c410]
mov edx, dword [edx]
call dword [edx + 0x6c]
mov dword [ebx], eax
mov esi, esi
mov eax, dword [0x56c410]
mov edx, dword [0x56c410]
mov edx, dword [edx]
call dword [edx + 0x6c]
cmp eax, dword [ebx]
jne 0x4df357
mov eax, dword [0x5620e0]
cmp byte [eax + 0x11c], 0
jne 0x4df357
mov eax, dword [0x56c410]
mov edx, dword [0x56c410]
mov edx, dword [edx]
call dword [edx + 0x6c]
call fcn.00540220
mov eax, dword [0x5620e0]
cmp dword [eax + 0x170], 0
je 0x4df32c
push 0x10
push 0
mov eax, dword [0x5620e0]
mov eax, dword [eax + 0x170]
push dword [eax + 0x254]
mov eax, dword [0x5620e0]
mov eax, dword [eax + 0x170]
push dword [eax + 0x248]
mov eax, dword [0x5620e0]
mov eax, dword [eax + 0x170]
push dword [eax + 0x12c]
push 0
push dword [ebx]
call sub.user32.dll_SetWindowPos
mov eax, dword [0x5620e0]
mov eax, dword [eax + 0x170]
call fcn.004fb040
test al, al
je 0x4df32c
push 0
mov eax, dword [0x5620e0]
call fcn.0041eee0
push eax
call sub.user32.dll_ShowWindow
nop
push dword [ebx + 0xc]
push dword [ebx + 8]
push 0x112
push dword [ebx]
call sub.user32.dll_DefWindowProcA
mov edx, dword [ebx + 0x20]
mov dword [edx + 0xc], eax
mov byte [ebx + 0x28], 0
mov eax, dword [0x5620e0]
call fcn.00421b90
jmp 0x4df3c8
mov edx, dword [ebx + 0x24]
test edx, edx
je 0x4df393
mov eax, dword [0x5620e0]
cmp edx, dword [eax + 0x170]
jne 0x4df393
push dword [ebx + 0xc]
push dword [ebx + 8]
push 0x112
push dword [ebx]
call sub.user32.dll_DefWindowProcA
mov edx, dword [ebx + 0x20]
mov dword [edx + 0xc], eax
mov byte [ebx + 0x28], 0
mov eax, dword [0x5620e0]
call fcn.00421b90
jmp 0x4df3c8
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x4df3c8
test dword [eax + 0x48c], 8
je 0x4df3c8
mov eax, dword [ebx + 0x20]
mov dword [eax + 0xc], 1
mov byte [ebx + 0x28], 0
mov eax, dword [0x56c410]
mov edx, dword [0x56c410]
mov edx, dword [edx]
call dword [edx + 0x8c]
nop
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e42a0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x28]
push ebx
mov dword [ebp - 0x28], 8
mov eax, fcn.004e2c80
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.00413710
mov dword [ebp - 0x18], eax
mov eax, str.MAINICON
push eax
push dword [0x5e92d0]
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x4e42f4
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x14], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov eax, str.Window
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_RegisterClassW
test ax, ax
setne bl
je 0x4e436c
or dword [ebp - 0x28], 0x800
cmp dword [0x585430], 6
jb 0x4e4344
or dword [ebp - 0x28], 0x20000
lea esi, [esi]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov eax, str.HintWindow
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_RegisterClassW
test ax, ax
setne bl
lea esi, [esi]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e5380
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
je 0x4e5418
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
jle 0x4e5418
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.004e5360
push ebp
push 0x414810
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.004e5360
mov byte [ebp - 0xc], 1
mov al, byte [ebp - 0xc]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e5ab0
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x24]
push ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
xor eax, eax
push fcn.004e5a90
push ebp
push 0x414810
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
test eax, eax
jne 0x4e5b68
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
push edx
push eax
lea eax, [ebp - 0x1c]
call fcn.00478af0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x24]
call fcn.00478a50
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
call fcn.00479190
mov edx, str._DataSize
push edx
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 - 0x20]
mov edx, str.TWin32WidgetSet.ClipboardGetOwnerShip_DataHandle
call fcn.0047a350
mov eax, dword [ebp - 0xc]
mov byte [eax - 0x10], 0
jmp 0x4e5bbf
push dword [ebp - 0x10]
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x14], eax
xor eax, eax
push fcn.004e5a70
push ebp
push 0x414810
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.004e5a70
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.004e5a90
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x508ce0
Capabilities:
Access peb ldr_data
Get kernel32 base address

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
jne 0x508d08
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call dword [edx + 0x34]
mov dword [ebp - 0xc], eax
lea esi, [esi]
cmp dword [ebp - 0xc], 0
je 0x508dbe
mov esi, esi
xor eax, eax
push 0x508d9f
push ebp
push 0x414b90
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.0040d5b0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x20], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x34], 0
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0
je 0x508d94
cmp dword [ebp - 8], 0
je 0x508d94
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
call dword [edx + 0x44]
lea esi, [esi]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
jmp 0x508dbe
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5405f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
push edi
mov esi, eax
mov edi, edx
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.005405d0
push ebp
push 0x414810
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
call sub.user32.dll_GetWindowTextLengthW
mov ebx, eax
mov edx, ebx
lea eax, [ebp - 4]
call fcn.0040a9a0
test ebx, ebx
jle 0x540650
lea eax, [ebx + 1]
push eax
mov eax, dword [ebp - 4]
test eax, eax
jne 0x540645
mov eax, 0x5e92f0
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov ebx, eax
mov esi, esi
mov edx, ebx
lea eax, [ebp - 4]
call fcn.0040a9a0
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xc]
call fcn.0040b190
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, edi
mov edx, dword [ebp - 8]
test edx, edx
je 0x540677
mov edx, dword [edx - 4]
mov eax, dword [ebp - 8]
test eax, eax
jne 0x540683
mov eax, 0x5e92f0
call fcn.00441920
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.005405d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret