joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4107c0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x414], edi
mov bl, al
mov dword [ebp - 0x410], edx
mov esi, ecx
movzx eax, bl
test eax, eax
sete byte [ebp - 0x40c]
mov al, byte [ebp - 0x40c]
test al, al
jne 0x4108ac
movzx eax, bl
add eax, 0x40
mov byte [0x52ee80], al
lea eax, [ebp - 0x208]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
mov eax, 0x52ee80
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
test eax, eax
jne 0x4108ac
call sub.kernel32.dll_GetLastError
movzx edi, ax
mov edx, dword [0x580030]
test edx, edx
je 0x410849
mov eax, dword [0x580e10]
call edx
jmp 0x41084e
mov eax, 0x580e14
mov dword [eax], edi
call fcn.00402b80
push 0x52ead0
movzx eax, bl
add eax, 0x40
and eax, 0xff
shl eax, 8
or eax, 1
mov word [ebp - 0x408], ax
lea ecx, [ebp - 0x408]
lea eax, [ebp - 0x308]
mov edx, 0xff
call fcn.00403c30
lea ecx, [ebp - 0x308]
mov edx, esi
mov eax, dword [ebp - 0x410]
call fcn.00403700
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
jmp 0x41092b
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
mov al, byte [ebp - 0x40c]
test al, al
jne 0x4108d3
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
lea ecx, [ebp - 0x104]
lea eax, [ebp - 0x308]
mov edx, 0xff
call fcn.004037b0
lea ecx, [ebp - 0x308]
mov ebx, esi
mov edx, ebx
mov eax, dword [ebp - 0x410]
call fcn.00403700
mov al, byte [0x52ed50]
test al, al
jne 0x41092b
lea edx, [ebp - 0x308]
mov eax, dword [ebp - 0x410]
call fcn.004047a0
lea ecx, [ebp - 0x308]
mov edx, ebx
mov eax, dword [ebp - 0x410]
call fcn.00403700
mov ebx, dword [ebp - 0x41c]
mov esi, dword [ebp - 0x418]
mov edi, dword [ebp - 0x414]
leave
ret
Function at 0x410b80
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 0
mov dword [0x580d40], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
mov eax, ebp
mov edx, 0
call fcn.00410d70
mov eax, dword [0x580d40]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x110]
inc ecx
lea eax, [ebp - 0x108]
call fcn.004034f0
call sub.kernel32.dll_GetCommandLineA
mov dword [0x52e8a0], eax
mov ebx, dword [0x52e8a0]
jmp 0x410d1d
inc ebx
movzx eax, byte [ebx]
dec eax
cmp eax, 0x20
jb 0x410c1c
mov al, byte [ebx]
test al, al
je 0x410d27
mov byte [ebp - 0x10c], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x410c8c
mov al, byte [ebx]
cmp al, 1
jb 0x410c85
sub al, 0x20
jbe 0x410c58
sub al, 2
je 0x410c6a
jmp 0x410c85
mov al, byte [ebp - 0x10c]
test al, al
je 0x410c92
inc dword [ebp - 0x110]
jmp 0x410c8b
mov al, byte [ebx + 1]
cmp al, 0x22
je 0x410c82
mov al, byte [ebp - 0x10c]
test al, al
sete byte [ebp - 0x10c]
jmp 0x410c8b
inc ebx
jmp 0x410c8b
inc dword [ebp - 0x110]
inc ebx
mov al, byte [ebx]
test al, al
jne 0x410c48
mov eax, dword [ebp - 0x114]
test eax, eax
je 0x410d17
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x114]
mov eax, ebp
call fcn.00410d70
mov byte [ebp - 0x10c], 0
mov ebx, edi
mov eax, dword [0x580d40]
mov edx, dword [ebp - 0x114]
mov esi, dword [eax + edx*4]
jmp 0x410d0e
mov al, byte [ebx]
cmp al, 1
jb 0x410d08
sub al, 0x20
jbe 0x410cdc
sub al, 2
je 0x410ced
jmp 0x410d08
mov al, byte [ebp - 0x10c]
test al, al
je 0x410d14
mov al, byte [ebx]
mov byte [esi], al
inc esi
jmp 0x410d0d
mov al, byte [ebx + 1]
cmp al, 0x22
je 0x410d05
mov al, byte [ebp - 0x10c]
test al, al
sete byte [ebp - 0x10c]
jmp 0x410d0d
inc ebx
jmp 0x410d0d
mov al, byte [ebx]
mov byte [esi], al
inc esi
inc ebx
mov al, byte [ebx]
test al, al
jne 0x410ccc
mov byte [esi], 0
inc dword [ebp - 0x114]
mov al, byte [ebx]
test al, al
jne 0x410c1d
mov ebx, dword [ebp - 0x114]
mov dword [0x580d30], ebx
mov edx, ebx
inc edx
shl edx, 2
mov eax, 0x580d40
call fcn.0040e1f0
mov eax, dword [0x580d40]
mov dword [eax + ebx*4], 0
mov ebx, dword [ebp - 0x120]
mov esi, dword [ebp - 0x11c]
mov edi, dword [ebp - 0x118]
leave
ret

Function at 0x4127c0
Capabilities:
Hash data with crc32

Disassembly:
sub esp, 4
mov dword [esp], ebx
mov dx, 0
dec dx
inc dx
movsx eax, dx
mov ecx, eax
mov bx, 1
dec bx
lea esi, [esi]
inc bx
mov eax, ecx
and eax, 1
je 0x4127f2
mov eax, ecx
shr eax, 1
xor eax, 0xedb88320
mov ecx, eax
jmp 0x4127f8
mov eax, ecx
shr eax, 1
mov ecx, eax
cmp bx, 8
jl 0x4127dc
movsx eax, dx
mov dword [eax*4 + 0x583b40], ecx
cmp dx, 0xff
jl 0x4127cc
mov ebx, dword [esp]
add esp, 4
ret
Function at 0x412820
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov dword [esp], ebx
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov ebx, eax
mov edi, edx
mov esi, ecx
mov eax, dword [0x583b44]
test eax, eax
jne 0x412842
call fcn.004127c0
not ebx
mov eax, ebx
mov ebx, esi
mov esi, 1
cmp ebx, esi
jl 0x412873
dec esi
mov esi, esi
inc esi
mov dl, al
mov cl, byte [edi]
xor cl, dl
movzx edx, cl
mov ecx, eax
shr ecx, 8
mov edx, dword [edx*4 + 0x583b40]
xor edx, ecx
mov eax, edx
inc edi
cmp ebx, esi
jg 0x412854
mov edx, eax
not edx
mov eax, edx
mov ebx, dword [esp]
mov esi, dword [esp + 4]
mov edi, dword [esp + 8]
add esp, 0xc
ret

Function at 0x4408e0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov ebx, eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push esi
push edi
mov eax, ebx
mov edx, 0
call fcn.00440880
cmp edx, esi
jne 0x44091a
cmp eax, edi
jne 0x44091a
push ebx
call sub.kernel32.dll_SetEndOfFile
or eax, eax
setne al
jmp 0x44091c
mov al, 0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
jne 0x440985
mov eax, 0x580e00
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x440998
and eax, 0x10
sete al
jmp 0x44099a
mov al, 0
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4409b5
mov eax, 0x580e00
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4409c8
and eax, 0x10
seta al
jmp 0x4409ca
mov al, 0
leave
ret

Function at 0x440bf0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
jne 0x440c05
mov eax, 0x580e00
push eax
call sub.kernel32.dll_GetFileAttributesA
leave
ret

Function at 0x440c10
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ebx
mov dword [ebp - 4], eax
push edx
mov eax, dword [ebp - 4]
test eax, eax
jne 0x440c29
mov eax, 0x580e00
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
je 0x440c3a
mov ebx, 0
jmp 0x440c41
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
mov ebx, dword [ebp - 8]
leave
ret
Function at 0x4415e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x30]
mov eax, 1
call fcn.0040b250
call fcn.0040d0d0
push eax
test eax, eax
jne 0x44170b
mov ebx, dword [ebp - 8]
mov eax, ebx
call fcn.00403a80
mov dword [ebx], 0
call sub.kernel32.dll_GetEnvironmentStringsA
mov dword [ebp - 0x44], eax
mov esi, dword [ebp - 0x44]
jmp 0x4416f9
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.0043f0e0
mov edx, dword [ebp - 0xc]
mov al, 0x3d
call fcn.00407750
mov ebx, eax
lea eax, [ebp - 0x38]
call fcn.00403a80
mov dword [ebp - 0x38], 0
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.00407d40
mov edi, dword [ebp - 0x38]
lea eax, [ebp - 0x3c]
call fcn.00403a80
mov dword [ebp - 0x3c], 0
lea eax, [ebp - 0x40]
call fcn.00403a80
mov dword [ebp - 0x40], 0
lea eax, [ebp - 0x40]
push eax
mov ecx, ebx
dec ecx
mov eax, dword [ebp - 0xc]
mov edx, 1
call fcn.00407600
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.00439090
mov eax, dword [ebp - 0x3c]
mov edx, edi
call fcn.004073e0
test eax, eax
jne 0x4416ed
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x4416dc
mov ecx, dword [ecx - 4]
sub ecx, ebx
mov eax, ebx
inc eax
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.00407600
jmp 0x441703
mov eax, esi
call fcn.00403870
add eax, esi
inc eax
mov esi, eax
mov al, byte [esi]
test al, al
jne 0x441650
push dword [ebp - 0x44]
call sub.kernel32.dll_FreeEnvironmentStringsA
call fcn.0040b520
lea eax, [ebp - 0x40]
call fcn.00403a80
mov dword [ebp - 0x40], 0
lea eax, [ebp - 0x3c]
call fcn.00403a80
mov dword [ebp - 0x3c], 0
lea eax, [ebp - 0x38]
call fcn.00403a80
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0xc]
call fcn.00403a80
mov dword [ebp - 0xc], 0
pop eax
test eax, eax
je 0x441756
call fcn.0040b690
mov ebx, dword [ebp - 0x50]
mov esi, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x48]
leave
ret
Function at 0x452100
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
mov dword [ebp - 0x344], ebx
mov dword [ebp - 0x340], esi
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x34]
mov eax, 1
call fcn.0040b250
call fcn.0040d0d0
push eax
test eax, eax
jne 0x4522b8
mov ebx, dword [ebp - 4]
mov eax, ebx
call fcn.00403a80
mov dword [ebx], 0
mov ebx, dword [ebp - 8]
mov eax, ebx
call fcn.00403a80
mov dword [ebx], 0
call sub.kernel32.dll_GetUserDefaultLCID
mov ebx, eax
push 4
lea eax, [ebp - 0xc]
push eax
push 3
push ebx
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
je 0x4521f8
lea eax, [ebp - 0x3c]
call fcn.00403a80
mov dword [ebp - 0x3c], 0
lea eax, [ebp - 0x23c]
push eax
push 3
push 0
lea ecx, [ebp - 0xc]
lea eax, [ebp - 0x33c]
mov edx, 0xff
call fcn.00403f20
lea eax, [ebp - 0x33c]
mov ecx, 2
mov edx, 1
call fcn.004044b0
lea eax, [ebp - 0x23c]
lea edx, [ebp - 0x13c]
call fcn.00404820
lea eax, [ebp - 0x13c]
lea edx, [ebp - 0x3c]
call fcn.00407230
mov eax, dword [ebp - 0x3c]
call fcn.00406f10
mov esi, dword [ebp - 8]
mov eax, esi
call fcn.00403a80
mov eax, dword [ebp - 0x3c]
mov dword [esi], eax
push 4
lea eax, [ebp - 0xc]
push eax
push 7
push ebx
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
je 0x4522b8
lea eax, [ebp - 0x13c]
push eax
push 3
push 0
lea ecx, [ebp - 0xc]
lea eax, [ebp - 0x23c]
mov edx, 0xff
call fcn.00403f20
lea eax, [ebp - 0x23c]
mov ecx, 2
mov edx, 1
call fcn.004044b0
lea eax, [ebp - 0x13c]
lea edx, [ebp - 0x10]
call fcn.00407230
lea eax, [ebp - 0x3c]
call fcn.00403a80
mov dword [ebp - 0x3c], 0
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xc]
mov cl, 0
mov edx, 3
call fcn.00407310
mov eax, dword [ebp - 0x3c]
mov edx, 0x5402b8
call fcn.004073e0
test eax, eax
jne 0x452292
mov ebx, 0x5402c4
lea eax, [ebp - 0x10]
call fcn.00403a80
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
mov eax, 0x5402d0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x40], eax
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 4]
mov ecx, 2
call fcn.004070b0
call fcn.0040b520
lea eax, [ebp - 0x3c]
call fcn.00403a80
mov dword [ebp - 0x3c], 0
lea eax, [ebp - 0x10]
call fcn.00403a80
mov dword [ebp - 0x10], 0
pop eax
test eax, eax
je 0x4522e5
call fcn.0040b690
mov ebx, dword [ebp - 0x344]
mov esi, dword [ebp - 0x340]
leave
ret

Function at 0x4982a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
mov ebx, ecx
mov ecx, edx
mov dword [esp], eax
dec ebx
mov esi, ebx
mov edi, 0
cmp esi, edi
jl 0x4982e8
dec edi
nop
inc edi
mov al, byte [esp]
mov dl, byte [ecx]
xor dl, al
movzx eax, dl
mov ebx, eax
mov eax, dword [esp]
shr eax, 8
mov edx, dword [ebx*4 + 0x584ca0]
xor edx, eax
mov dword [esp], edx
inc ecx
cmp esi, edi
jg 0x4982c4
mov eax, dword [esp]
mov ebx, dword [esp + 4]
mov esi, dword [esp + 8]
mov edi, dword [esp + 0xc]
add esp, 0x10
ret
Function at 0x4a06e0
Capabilities:
Check for software breakpoints

Disassembly:
sub esp, 0xc
mov dword [esp], ebx
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov esi, eax
mov eax, dword [esi + 0x14]
cmp eax, 0xca
jne 0x4a071c
mov eax, esi
call fcn.004a4f20
cmp byte [esi + 0x40], 0
je 0x4a0715
mov dword [esi + 0x14], 0xcf
mov bl, 1
jmp 0x4a07c9
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4a07aa
mov eax, dword [esi + 0x184]
cmp byte [eax + 0x10], 0
je 0x4a07a2
mov esi, esi
mov eax, dword [esi + 8]
test eax, eax
je 0x4a074c
mov eax, esi
mov edx, dword [esi + 8]
mov edx, dword [edx]
call edx
mov eax, esi
mov edx, dword [esi + 0x184]
mov edx, dword [edx]
call edx
mov edi, eax
test eax, eax
jne 0x4a0762
mov bl, 0
jmp 0x4a07c9
mov eax, edi
cmp eax, 2
je 0x4a07a2
mov eax, dword [esi + 8]
test eax, eax
je 0x4a073c
mov eax, edi
cmp eax, 3
je 0x4a077e
mov eax, edi
cmp eax, 1
jne 0x4a073c
mov eax, dword [esi + 8]
inc dword [eax + 4]
mov eax, dword [esi + 8]
mov edx, dword [esi + 8]
mov eax, dword [eax + 4]
mov edx, dword [edx + 8]
cmp eax, edx
jl 0x4a073c
mov eax, dword [esi + 8]
mov edx, dword [esi + 0x110]
add dword [eax + 8], edx
jmp 0x4a073c
mov eax, dword [esi + 0x70]
mov dword [esi + 0x78], eax
jmp 0x4a07c0
mov eax, dword [esi + 0x14]
cmp eax, 0xcc
je 0x4a07c0
mov ecx, dword [esi + 0x14]
mov eax, esi
mov dl, 0x14
call fcn.004a0bc0
mov eax, esi
call fcn.004a07e0
mov bl, al
mov al, bl
mov ebx, dword [esp]
mov esi, dword [esp + 4]
mov edi, dword [esp + 8]
add esp, 0xc
ret
Function at 0x4a07e0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
cmp eax, 0xcc
je 0x4a08d2
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x174]
mov edx, dword [ecx]
call edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x6c], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 0xcc
jmp 0x4a08d2
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
test eax, eax
je 0x4a0865
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x6c]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x54]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 8]
mov edx, dword [ecx]
call edx
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x6c]
push 0
mov eax, dword [ebp - 4]
lea ecx, [eax + 0x6c]
mov eax, dword [ebp - 4]
mov edx, 0
mov edi, dword [ebp - 4]
mov ebx, dword [edi + 0x178]
mov ebx, dword [ebx + 4]
call ebx
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x6c]
cmp edx, esi
jne 0x4a0899
mov byte [ebp - 8], 0
jmp 0x4a0904
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x6c]
mov eax, dword [ebp - 4]
cmp edx, dword [eax + 0x54]
jb 0x4a0830
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x174]
mov edx, dword [ecx + 4]
call edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x174]
mov edx, dword [ecx]
call edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x6c], 0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x174]
cmp byte [edx + 8], 0
jne 0x4a0899
mov eax, dword [ebp - 4]
cmp byte [eax + 0x41], 0
je 0x4a08f6
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 0xce
jmp 0x4a0900
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 0xcd
mov byte [ebp - 8], 1
mov al, byte [ebp - 8]
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
leave
ret
Function at 0x4f0d20
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 4], eax
cmp byte [0x577870], 0
jne 0x4f0d37
jmp 0x4f0e16
mov dword [ebp - 0x58], 8
mov eax, fcn.004eb3e0
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
call fcn.00410af0
mov dword [ebp - 0x48], eax
mov eax, str.MAINICON
push eax
push dword [0x580db0]
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x4f0d79
jmp 0x4f0d88
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x44], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov eax, str.Window
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x58]
push eax
call sub.user32.dll_RegisterClassW
movzx eax, ax
test eax, eax
setne byte [ebp - 8]
cmp byte [ebp - 8], 0
jne 0x4f0dc7
jmp 0x4f0e11
mov eax, dword [ebp - 0x58]
or eax, 0x800
mov dword [ebp - 0x58], eax
mov eax, dword [0x577880]
cmp eax, 6
jae 0x4f0dde
jmp 0x4f0de9
mov eax, dword [ebp - 0x58]
or eax, 0x20000
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x3c], 0
mov eax, str.HintWindow
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x58]
push eax
call sub.user32.dll_RegisterClassW
movzx eax, ax
test eax, eax
setne byte [ebp - 8]
jmp 0x4f0ef0
mov dword [ebp - 0x30], 8
mov eax, fcn.004eb3e0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.00410af0
mov dword [ebp - 0x20], eax
mov eax, str.MAINICON
push eax
push dword [0x580db0]
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4f0e58
jmp 0x4f0e67
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x1c], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov eax, 0x55d2c0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_RegisterClassA
movzx eax, ax
test eax, eax
setne byte [ebp - 8]
cmp byte [ebp - 8], 0
jne 0x4f0ea6
jmp 0x4f0ef0
mov eax, dword [ebp - 0x30]
or eax, 0x800
mov dword [ebp - 0x30], eax
mov eax, dword [0x577880]
cmp eax, 6
jae 0x4f0ebd
jmp 0x4f0ec8
mov eax, dword [ebp - 0x30]
or eax, 0x20000
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov eax, 0x55d2d0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_RegisterClassA
movzx eax, ax
test eax, eax
setne byte [ebp - 8]
mov al, byte [ebp - 8]
leave
ret
Function at 0x4f1b00
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x38], 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]
mov eax, dword [eax - 0x14]
test eax, eax
jne 0x4f1b33
jmp 0x4f1bb9
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]
mov eax, dword [eax - 0x1c]
cmp eax, 0
jg 0x4f1b51
jmp 0x4f1bb9
mov eax, dword [ebp - 8]
push dword [eax - 0x14]
call sub.kernel32.dll_GlobalLock
mov edx, dword [ebp - 8]
mov dword [edx - 0x18], eax
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x30]
mov eax, 1
call fcn.0040b250
call fcn.0040d0d0
push eax
test eax, eax
jne 0x4f1b96
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 + pe_nt_image_headers32]
call fcn.0040b520
mov eax, dword [ebp - 8]
push dword [eax - 0x14]
call sub.kernel32.dll_GlobalUnlock
pop eax
test eax, eax
je 0x4f1bb5
dec eax
test eax, eax
je 0x4f1bb0
call fcn.0040b690
mov byte [ebp - 0xc], 1
mov al, byte [ebp - 0xc]
mov ebx, dword [ebp - 0x38]
leave
ret
Function at 0x4f22d0
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x38]
mov eax, 1
call fcn.0040b250
call fcn.0040d0d0
push eax
test eax, eax
jne 0x4f23f0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x6c]
push eax
push 2
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4f232d
jmp 0x4f2389
lea eax, [ebp - 0x40]
call fcn.00403a80
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x6c]
push edx
push eax
lea eax, [ebp - 0x40]
call fcn.00444f30
push dword [ebp - 0x40]
lea eax, [ebp - 0x44]
call fcn.00403a80
mov dword [ebp - 0x44], 0
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0x10]
call fcn.00444ef0
mov edx, dword [ebp - 0x44]
mov ecx, str._DataSize
mov eax, str.TWin32WidgetSet.ClipboardGetOwnerShip_DataHandle
call fcn.00444700
mov eax, dword [ebp - 0xc]
mov byte [eax - 0x10], 0
jmp 0x4f23f0
push dword [ebp - 0x10]
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x50]
lea edx, [ebp - 0x68]
mov eax, 1
call fcn.0040b250
call fcn.0040d0d0
push eax
test eax, eax
jne 0x4f23c9
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x6c]
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 + 0x7c]
call fcn.0040b520
push dword [ebp - 0x10]
call sub.kernel32.dll_GlobalUnlock
pop eax
test eax, eax
je 0x4f23e5
dec eax
test eax, eax
je 0x4f23e0
call fcn.0040b690
push dword [ebp - 0x10]
push dword [ebp - 4]
call sub.user32.dll_SetClipboardData
call fcn.0040b520
lea eax, [ebp - 0x44]
call fcn.00403a80
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x40]
call fcn.00403a80
mov dword [ebp - 0x40], 0
pop eax
test eax, eax
je 0x4f241d
call fcn.0040b690
mov ebx, dword [ebp - 0x70]
leave
ret
Function at 0x50e750
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ebx
mov dword [ebp - 4], esi
cmp byte [0x570840], 0
je 0x50e774
mov eax, 0x570890
test eax, eax
setne bl
jmp 0x50e85a
mov eax, str.USER32
push eax
call sub.kernel32.dll_GetModuleHandleA
mov esi, eax
test eax, eax
je 0x50e80b
mov eax, str.GetSystemMetrics
push eax
push esi
call sub.kernel32.dll_GetProcAddress
mov dword [0x570850], eax
mov eax, str.MonitorFromWindow
push eax
push esi
call sub.kernel32.dll_GetProcAddress
mov dword [0x570860], eax
mov eax, str.MonitorFromRect
push eax
push esi
call sub.kernel32.dll_GetProcAddress
mov dword [0x570870], eax
mov eax, str.MonitorFromPoint
push eax
push esi
call sub.kernel32.dll_GetProcAddress
mov dword [0x570880], eax
mov eax, str.EnumDisplayMonitors
push eax
push esi
call sub.kernel32.dll_GetProcAddress
mov dword [0x5708a0], eax
mov eax, str.GetMonitorInfoA
push eax
push esi
call sub.kernel32.dll_GetProcAddress
mov dword [0x570890], eax
mov eax, str.EnumDisplayDevicesA
push eax
push esi
call sub.kernel32.dll_GetProcAddress
mov dword [0x5708b0], eax
mov byte [0x570840], 1
mov bl, 1
jmp 0x50e85a
mov dword [0x570850], 0
mov dword [0x570860], 0
mov dword [0x570870], 0
mov dword [0x570880], 0
mov dword [0x5708a0], 0
mov dword [0x570890], 0
mov dword [0x5708b0], 0
mov byte [0x570840], 1
mov bl, 0
mov al, bl
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
leave
ret