joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48f6e0
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.0048f6d0
push ebp
push 0x4154e0
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 0x48f750
lea edx, [ebx - 1]
lea eax, [ebp - 4]
call fcn.0040b840
cmp ebx, 1
jle 0x48f740
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.0040aff0
jmp 0x48f75b
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00408b60
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.0048f6d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x48fb60
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.0048fb50
push ebp
push 0x4154e0
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea esi, [esi]
add ebx, 1
lea eax, [ebx*4 + 0x8b9fcc]
xor edx, edx
call fcn.00408b60
mov dword [ebx*4 + 0x8b9fec], 0xffffffff
cmp ebx, 7
jl 0x48fb88
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 0x48fc14
lea esi, [esi]
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
xor cx, cx
mov edx, 0xa
call fcn.00409550
mov eax, dword [ebp - 0x10]
mov edx, 1
call fcn.00485850
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x48fc14
push 4
push ebx
push esi
mov eax, 0x48fa30
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x48fac0
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.0048fb50
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x490260
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.00490230
push ebp
push 0x4154e0
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0xc]
call fcn.00484e60
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.00408b60
lea eax, [ebp - 4]
mov cl, 1
mov dx, 1
call fcn.0040a2a0
mov eax, dword [ebp - 0x18]
xor edx, edx
call fcn.00408b60
call sub.kernel32.dll_GetEnvironmentStringsA
mov dword [ebp - 0x1c], eax
mov ebx, eax
jmp 0x49036c
lea ecx, [ebp - 8]
mov eax, ebx
xor dx, dx
call fcn.004094b0
mov eax, dword [ebp - 8]
test eax, eax
je 0x4902f7
mov eax, dword [eax - 4]
mov edi, eax
lea eax, [ebp - 8]
xor cl, cl
mov dx, 1
call fcn.0040a2a0
mov edx, dword [ebp - 8]
mov ecx, 1
mov al, 0x3d
call fcn.00409b80
mov esi, eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi - 1]
mov eax, dword [ebp - 8]
mov edx, 1
call fcn.00409980
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00484e60
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00409720
test eax, eax
jne 0x490364
push dword [ebp - 0x18]
mov eax, dword [ebp - 8]
test eax, eax
je 0x490353
mov eax, dword [eax - 4]
sub eax, esi
mov ecx, eax
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.00409980
jmp 0x490375
lea eax, [ebx + edi]
add eax, 1
mov ebx, eax
cmp byte [ebx], 0
jne 0x4902e0
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.00490230
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4903d0
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.004903a0
push ebp
push 0x4154e0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
xor edx, edx
call fcn.0040b1a0
call sub.kernel32.dll_GetEnvironmentStringsW
mov edi, eax
mov esi, edi
lea edx, [ebp - 8]
mov eax, ebx
call fcn.0048b880
jmp 0x4904a8
lea edx, [ebp - 4]
mov eax, esi
call fcn.0040b150
mov edx, dword [ebp - 4]
mov ecx, 1
mov al, 0x3d
call fcn.0040bc20
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx - 1]
mov eax, dword [ebp - 4]
mov edx, 1
call fcn.0040b9c0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.0048b880
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.0040b800
test eax, eax
jne 0x490498
push dword [ebp - 0x14]
mov eax, dword [ebp - 4]
test eax, eax
je 0x490486
mov eax, dword [eax - 4]
sub eax, ebx
mov ecx, eax
lea edx, [ebx + 1]
mov eax, dword [ebp - 4]
call fcn.0040b9c0
jmp 0x4904af
mov eax, esi
call fcn.00404910
shl eax, 1
add eax, esi
add eax, 2
mov esi, eax
cmp word [esi], 0
jne 0x490430
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.004903a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4904d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor esi, esi
call sub.kernel32.dll_GetEnvironmentStringsA
mov ebx, eax
mov edi, ebx
test edi, edi
je 0x490500
jmp 0x4904f9
add esi, 1
mov eax, edi
call fcn.004048f0
add eax, edi
add eax, 1
mov edi, eax
cmp byte [edi], 0
jne 0x4904e8
mov esi, esi
push ebx
call sub.kernel32.dll_FreeEnvironmentStringsA
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x490510
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 4]
push ebx
push esi
push edi
mov esi, eax
mov dword [ebp - 4], edx
mov eax, edx
xor edx, edx
call fcn.00408b60
call sub.kernel32.dll_GetEnvironmentStringsA
mov edi, eax
mov ebx, edi
test ebx, ebx
je 0x490574
jmp 0x490549
sub esi, 1
mov eax, ebx
call fcn.004048f0
add eax, ebx
add eax, 1
mov ebx, eax
cmp byte [ebx], 0
je 0x490553
cmp esi, 1
jg 0x490538
cmp byte [ebx], 0
je 0x490574
mov ecx, dword [ebp - 4]
mov eax, ebx
xor dx, dx
call fcn.004094b0
mov eax, dword [ebp - 4]
xor cl, cl
mov dx, 1
call fcn.0040a2a0
nop
mov eax, edi
push eax
call sub.kernel32.dll_FreeEnvironmentStringsA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4905b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x94]
mov dword [0x8ba030], 0
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x84]
mov dword [0x8b9e90], eax
mov eax, dword [ebp - 0x90]
mov dword [0x8b9ea0], eax
mov eax, dword [ebp - 0x8c]
mov dword [0x8b9eb0], eax
mov eax, dword [ebp - 0x88]
mov dword [0x8b9ec0], eax
mov edx, 0x8b9ed1
lea eax, [ebp - 0x80]
mov ecx, pe_nt_image_headers32
call fcn.00403790
lea eax, [ebp - 0x80]
call fcn.004048f0
mov byte [0x8b9ed0], al
mov eax, 0x637060
push eax
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x8ba040], eax
test eax, eax
je 0x490650
mov eax, 0x63706c
push eax
push dword [0x8ba040]
call sub.kernel32.dll_GetProcAddress
mov dword [0x8ba030], eax
nop
cmp dword [0x8b9ea0], 6
jae 0x490664
mov dword [0x5f3790], 0
nop
cmp dword [0x8b9ea0], 6
jb 0x490680
cmp dword [0x8b9eb0], 1
jb 0x490680
mov dword [0x5f37a0], 2
mov esp, ebp
pop ebp
ret

Function at 0x490cf2
Capabilities:
Terminate process

Disassembly:
push esi
push esi
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov esi, eax
mov ebp, 0x5f4e5c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x34]
push eax
push 0
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov ebx, eax
push 0x104
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov eax, ebx
push eax
call fcn.00490e1e
mov ebx, dword [ebp + 0x18]
mov edx, eax
cmp dword [ebx], 0
je 0x490d74
push eax
mov eax, edx
mov dword [esp + 4], edx
call fcn.00490e46
movzx eax, al
mov edx, dword [esp]
cmp al, byte [ebx]
je 0x490d5e
cmp al, byte [ebx + 1]
jne 0x490e10
mov eax, edx
push eax
call fcn.00490e62
cmp eax, dword [ebx + 4]
je 0x490d74
cmp eax, dword [ebx + 8]
jne 0x490e10
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
mov edx, eax
mov eax, dword [ebp + 0x34]
push eax
push 0
push edx
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ebx, eax
xor ecx, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + ecx]
mov dword [ecx + ebx], edx
add ecx, 4
cmp ecx, 0x40
jl 0x490d94
push ebx
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetProcAddress]

Function at 0x490db0
Capabilities:
Terminate process

Disassembly:
mov edi, eax
test edi, edi
je 0x490e10
lea ebx, [esp]
push ebx
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x30]
push eax
push 0x7000
push ebx
call edi
mov eax, dword [ebp + 0x20]
push 8
pop edx
add esi, eax
mov ecx, dword [esi + 4]
mov eax, dword [edx + esi]
add eax, ecx
mov dword [edx + ebx], eax
add edx, 4
cmp edx, 0x7000
jl 0x490dd4
mov edx, dword [ebp + 0x3c]
lea eax, [esp]
push eax
mov dword [ebx + 8], edx
push dword [esp + 4]
push 0x7000
push ebx
call edi
mov edx, dword [ebx + 0xc]
add edx, ebx
mov eax, dword [ebp + 0x10]
add edx, eax
mov ebp, dword [ebp + 0x10]
add ebx, ebp
push ebx
call edx
pop eax
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
Function at 0x4af470
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.004af460
push ebp
push 0x4154e0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xc]
call fcn.0040b060
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4af4ab
mov eax, 0x6972f0
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.004af460
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4cc2f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
lea esi, [ecx - 1]
test esi, esi
jl 0x4cc324
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 + 0x8ba640]
mov eax, ecx
add edx, 1
cmp esi, edi
jg 0x4cc300
pop edi
pop esi
pop ebx
ret

Function at 0x4ea400
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 0x4ea431
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 0x4ea420
pop esi
pop ebx
ret

Function at 0x4ebc10
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 0x4ebc34
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 0x4ebcfa
mov esi, esi
xor eax, eax
push 0x4ebcdb
push ebp
push 0x415860
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0040d1c0
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, 0x631b08
call fcn.00474040
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
call fcn.004ebe90
mov edx, dword [ebp - 8]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 8]
call fcn.004ebf00
mov edx, dword [ebp - 8]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 8]
call fcn.004ebf70
mov edx, dword [ebp - 8]
mov dword [edx + 0x30], eax
mov dword [ebp - 0xc], 1
cmp dword [ebp - 8], 0
je 0x4ebcd0
cmp dword [ebp - 4], 0
je 0x4ebcd0
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 0x4ebcfa
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f4780
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 0x4f47a8
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 0x4f4856
mov esi, esi
xor eax, eax
push 0x4f4837
push ebp
push 0x415860
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 0x4f480c
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.00471ec0
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0
je 0x4f482c
cmp dword [ebp - 8], 0
je 0x4f482c
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 0x4f4856
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4f64c0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov esi, eax
cmp dword [esi + 0x14], 0xca
jne 0x4f64f4
mov eax, esi
call fcn.004faa40
cmp byte [esi + 0x40], 0
je 0x4f64ec
mov dword [esi + 0x14], 0xcf
mov bl, 1
jmp 0x4f65a5
mov dword [esi + 0x14], 0xcb
nop
cmp dword [esi + 0x14], 0xcb
jne 0x4f6584
mov eax, dword [esi + 0x184]
cmp byte [eax + 0x10], 0
je 0x4f657c
lea esi, [esi]
cmp dword [esi + 8], 0
je 0x4f6528
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 0x4f6540
xor bl, bl
jmp 0x4f65a5
cmp edi, 2
je 0x4f657a
lea esi, [esi]
cmp dword [esi + 8], 0
je 0x4f6518
cmp edi, 3
je 0x4f6558
cmp edi, 1
jne 0x4f6518
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 0x4f6518
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x110]
add dword [edx + 8], eax
mov esi, esi
jmp 0x4f6518
mov esi, esi
mov eax, dword [esi + 0x70]
mov dword [esi + 0x78], eax
jmp 0x4f659c
cmp dword [esi + 0x14], 0xcc
je 0x4f659c
mov ecx, dword [esi + 0x14]
mov eax, esi
mov dl, 0x14
call fcn.004f68e0
lea esi, [esi]
mov eax, esi
call fcn.004f65b0
mov bl, al
mov al, bl
pop edi
pop esi
pop ebx
ret
Function at 0x514e30
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 4]
push ebx
mov dword [ebp - 4], eax
cmp dword [eax + 0x24], 0
je 0x514e78
mov eax, dword [0x5f3160]
mov edx, dword [ebp - 4]
mov eax, dword [eax + 0x170]
cmp eax, dword [edx + 0x24]
jne 0x514e78
mov eax, dword [0x5f3160]
cmp byte [eax + 0x11c], 0
jne 0x514e78
mov eax, dword [0x5f3540]
mov edx, dword [0x5f3540]
mov edx, dword [edx]
call dword [edx + 0x6c]
mov edx, dword [ebp - 4]
mov dword [edx], eax
nop
mov ebx, dword [ebp - 4]
mov eax, dword [0x5f3540]
mov edx, dword [0x5f3540]
mov edx, dword [edx]
call dword [edx + 0x6c]
cmp eax, dword [ebx]
jne 0x514f6e
mov eax, dword [0x5f3160]
cmp byte [eax + 0x11c], 0
jne 0x514f6e
mov eax, dword [0x5f3540]
mov edx, dword [0x5f3540]
mov edx, dword [edx]
call dword [edx + 0x6c]
call fcn.00590790
mov eax, dword [0x5f3160]
cmp dword [eax + 0x170], 0
je 0x514f34
push 0x10
push 0
mov eax, dword [0x5f3160]
mov eax, dword [eax + 0x170]
push dword [eax + 0x254]
mov eax, dword [0x5f3160]
mov eax, dword [eax + 0x170]
push dword [eax + 0x248]
mov eax, dword [0x5f3160]
mov eax, dword [eax + 0x170]
push dword [eax + 0x12c]
push 0
mov eax, dword [ebp - 4]
push dword [eax]
call sub.user32.dll_SetWindowPos
mov eax, dword [0x5f3160]
mov eax, dword [eax + 0x170]
call fcn.005343a0
test al, al
je 0x514f34
push 0
mov eax, dword [0x5f3160]
call fcn.00421800
push eax
call sub.user32.dll_ShowWindow
lea esi, [esi]
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x112
mov eax, dword [ebp - 4]
push dword [eax]
call sub.user32.dll_DefWindowProcA
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x20]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x28], 0
mov eax, dword [0x5f3160]
call fcn.00424a00
jmp 0x515004
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
je 0x514fc2
mov eax, dword [ebp - 4]
mov edx, dword [0x5f3160]
mov eax, dword [eax + 0x24]
cmp eax, dword [edx + 0x170]
jne 0x514fc2
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x112
mov eax, dword [ebp - 4]
push dword [eax]
call sub.user32.dll_DefWindowProcA
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x20]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x28], 0
mov eax, dword [0x5f3160]
call fcn.00424a00
jmp 0x515004
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
je 0x515004
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
test dword [eax + 0x48c], 8
je 0x515004
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov dword [eax + 0xc], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x28], 0
mov eax, dword [0x5f3540]
mov edx, dword [0x5f3540]
mov edx, dword [edx]
call dword [edx + 0x8c]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x515010
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 4]
push ebx
mov dword [ebp - 4], eax
mov ebx, eax
mov eax, dword [0x5f3540]
mov edx, dword [0x5f3540]
mov edx, dword [edx]
call dword [edx + 0x6c]
cmp eax, dword [ebx]
jne 0x5150e0
mov eax, dword [0x5f3160]
cmp byte [eax + 0x11c], 0
jne 0x5150e0
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x112
mov eax, dword [ebp - 4]
push dword [eax]
call sub.user32.dll_DefWindowProcA
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x20]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x28], 0
mov eax, dword [0x5f3160]
cmp dword [eax + 0x170], 0
je 0x5150d4
mov eax, dword [0x5f3160]
mov eax, dword [eax + 0x170]
call fcn.005343a0
test al, al
je 0x5150d4
mov eax, dword [0x5f3160]
mov eax, dword [eax + 0x170]
mov edx, dword [0x5f3160]
mov edx, dword [edx + 0x170]
mov edx, dword [edx]
call dword [edx + 0x344]
test al, al
je 0x5150cc
push 8
mov eax, dword [0x5f3160]
call fcn.00421800
push eax
call sub.user32.dll_ShowWindow
lea esi, [esi]
call fcn.00590860
lea esi, [esi]
mov eax, dword [0x5f3160]
call fcn.00424a40
jmp 0x515144
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
je 0x515109
mov eax, dword [ebp - 4]
mov edx, dword [0x5f3160]
mov eax, dword [eax + 0x24]
cmp eax, dword [edx + 0x170]
jne 0x515109
mov eax, dword [0x5f3160]
call fcn.00424a40
jmp 0x515144
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
je 0x515144
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
test dword [eax + 0x48c], 8
je 0x515144
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov dword [eax + 0xc], 1
mov eax, dword [0x5f3540]
mov edx, dword [0x5f3540]
mov edx, dword [edx]
call dword [edx + 0x90]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x51a6d0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x30]
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], 8
mov eax, fcn.00518e70
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.004143d0
mov dword [ebp - 0x20], eax
mov eax, str.MAINICON
push eax
push dword [0x6972d0]
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x51a728
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x1c], eax
mov esi, esi
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, str.Window
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_RegisterClassW
test ax, ax
setne byte [ebp - 8]
cmp byte [ebp - 8], 0
je 0x51a7a4
or dword [ebp - 0x30], 0x800
cmp dword [0x60c910], 6
jb 0x51a77c
or dword [ebp - 0x30], 0x20000
mov esi, esi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov eax, str.HintWindow
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_RegisterClassW
test ax, ax
setne byte [ebp - 8]
mov esi, esi
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x51b7f0
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 0x51b888
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 0x51b888
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.0051b7d0
push ebp
push 0x4154e0
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.0051b7d0
mov byte [ebp - 0xc], 1
mov al, byte [ebp - 0xc]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x51bf30
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.0051bf10
push ebp
push 0x4154e0
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 0x51bffc
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.004a6be0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x2c]
call fcn.004a6b30
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
call fcn.004a72f0
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.004a87a0
mov eax, dword [ebp - 0xc]
mov byte [eax - 0x10], 0
jmp 0x51c053
push dword [ebp - 0x10]
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x14], eax
xor eax, eax
push fcn.0051bef0
push ebp
push 0x4154e0
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.0051bef0
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.0051bf10
pop ebx
mov esp, ebp
pop ebp
ret