joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48f470
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 0x48f498
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 0x48f54e
mov esi, esi
xor eax, eax
push 0x48f52f
push ebp
push 0x4141d0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.0040ce60
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 0x48f524
cmp dword [ebp - 8], 0
je 0x48f524
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 0x48f54e
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4994b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x24]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov byte [ebp - 0xc], cl
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call sub.kernel32.dll_GetLocaleInfoW
mov dword [ebp - 0x1c], eax
cmp eax, 2
jle 0x49955a
mov eax, dword [ebp - 0x1c]
sub eax, 2
test eax, eax
jl 0x499576
mov dword [ebp - 0x20], 0xffffffff
lea esi, [esi]
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov dx, word [ebp + edx*2 - 0x18]
mov word [ebp - 0x24], dx
mov edx, dword [ebp - 0x20]
mov dx, word [ebp + edx*2 - 0x18]
cmp dx, 0x20
jb 0x499576
sub dx, 0x20
je 0x499550
sub dx, 0x80
je 0x499550
sub dx, 0x1f62
jb 0x499576
sub dx, 1
jbe 0x499550
sub dx, 6
je 0x499550
sub dx, 0x26
jne 0x499576
nop
jmp 0x499550
cmp eax, dword [ebp - 0x20]
jg 0x4994f8
lea esi, [esi]
jmp 0x499576
cmp dword [ebp - 0x1c], 2
jne 0x49956a
mov ax, word [ebp - 0x18]
mov word [ebp - 0x24], ax
jmp 0x499576
mov al, byte [ebp - 0xc]
call fcn.0040b1b0
mov word [ebp - 0x24], ax
mov ax, word [ebp - 0x24]
sub ax, 0x7f
jbe 0x4995f4
sub ax, 0x21
je 0x499608
sub ax, 0x17
je 0x499614
sub ax, 0x222
je 0x499620
sub ax, 0x392
je 0x499628
sub ax, 1
je 0x499630
sub ax, 0x1996
je 0x499638
sub ax, 1
je 0x499640
sub ax, 6
je 0x499648
sub ax, 0xb
je 0x499658
sub ax, 0x1b
je 0x499650
sub ax, 0x367
je 0x499660
jmp 0x499668
mov ax, word [ebp - 0x24]
call fcn.0040b250
mov byte [ebp - 0x10], al
jmp 0x499670
mov byte [ebp - 0x10], 0x20
jmp 0x499670
mov byte [ebp - 0x10], 0x2e
jmp 0x499670
mov byte [ebp - 0x10], 0x27
jmp 0x499670
mov byte [ebp - 0x10], 0x2c
jmp 0x499670
mov byte [ebp - 0x10], 0x27
jmp 0x499670
mov byte [ebp - 0x10], 0x20
jmp 0x499670
mov byte [ebp - 0x10], 0x20
jmp 0x499670
mov byte [ebp - 0x10], 0x20
jmp 0x499670
mov byte [ebp - 0x10], 0x20
jmp 0x499670
mov byte [ebp - 0x10], 0x2d
jmp 0x499670
mov byte [ebp - 0x10], 0x27
jmp 0x499670
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x10], al
mov esi, esi
mov al, byte [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x4bf230
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x50]
push ebx
push esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
xor eax, eax
push fcn.004bf210
push ebp
push 0x413e50
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, 1
mov eax, 0x597170
call fcn.004b61b0
mov edx, dword [ebp - 4]
mov dword [edx - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x1c]
lea ebx, [eax - 1]
test ebx, ebx
jl 0x4bf2f4
mov dword [ebp - 0xc], 0xffffffff
lea esi, [esi]
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x20]
lea esi, [eax - 1]
test esi, esi
jl 0x4bf2ec
mov dword [ebp - 8], 0xffffffff
lea esi, [esi]
nop
add dword [ebp - 8], 1
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004bf580
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x10]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx - 0x10]
mov ecx, dword [ecx]
call dword [ecx + pe_nt_image_headers32]
cmp esi, dword [ebp - 8]
jg 0x4bf2b8
mov esi, esi
cmp ebx, dword [ebp - 0xc]
jg 0x4bf298
lea esi, [esi]
mov eax, dword [ebp - 4]
mov dword [eax - 0x1c], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x10]
call fcn.004b6530
mov dword [ebp - 0x14], eax
jmp 0x4bf32e
mov ecx, dword [ebp - 0x14]
mov eax, 0xd20d20d3
imul ecx
add edx, ecx
sar edx, 6
shr ecx, 0x1f
add edx, ecx
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
add dword [eax - 0x1c], 1
cmp dword [ebp - 0x14], 0
jg 0x4bf310
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x10]
call fcn.004b6530
shl eax, 2
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
sub eax, 0x14
mov edx, dword [ebp - 0x10]
call fcn.0040f820
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x14]
mov edx, dword [ebp - 0x10]
xor cl, cl
call fcn.00403600
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x10]
call fcn.004b6530
mov ebx, eax
sub ebx, 1
test ebx, ebx
jl 0x4bf424
mov dword [ebp - 0x14], 0xffffffff
lea esi, [esi]
Function at 0x4d4d10
Capabilities:
Encode data using xor

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

Function at 0x4dcd00
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 0x4dcd31
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 0x4dcd20
pop esi
pop ebx
ret

Function at 0x4de510
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 0x4de534
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 0x4de5fa
mov esi, esi
xor eax, eax
push 0x4de5db
push ebp
push 0x4141d0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0040ce60
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, 0x577010
call fcn.00428cd0
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
call fcn.004de790
mov edx, dword [ebp - 8]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 8]
call fcn.004de800
mov edx, dword [ebp - 8]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 8]
call fcn.004de870
mov edx, dword [ebp - 8]
mov dword [edx + 0x30], eax
mov dword [ebp - 0xc], 1
cmp dword [ebp - 8], 0
je 0x4de5d0
cmp dword [ebp - 4], 0
je 0x4de5d0
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 0x4de5fa
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e6420
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov esi, eax
cmp dword [esi + 0x14], 0xca
jne 0x4e6454
mov eax, esi
call fcn.004ea9a0
cmp byte [esi + 0x40], 0
je 0x4e644c
mov dword [esi + 0x14], 0xcf
mov bl, 1
jmp 0x4e6505
mov dword [esi + 0x14], 0xcb
nop
cmp dword [esi + 0x14], 0xcb
jne 0x4e64e4
mov eax, dword [esi + 0x184]
cmp byte [eax + 0x10], 0
je 0x4e64dc
lea esi, [esi]
cmp dword [esi + 8], 0
je 0x4e6488
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 0x4e64a0
xor bl, bl
jmp 0x4e6505
cmp edi, 2
je 0x4e64da
lea esi, [esi]
cmp dword [esi + 8], 0
je 0x4e6478
cmp edi, 3
je 0x4e64b8
cmp edi, 1
jne 0x4e6478
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 0x4e6478
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x110]
add dword [edx + 8], eax
mov esi, esi
jmp 0x4e6478
mov esi, esi
mov eax, dword [esi + 0x70]
mov dword [esi + 0x78], eax
jmp 0x4e64fc
cmp dword [esi + 0x14], 0xcc
je 0x4e64fc
mov ecx, dword [esi + 0x14]
mov eax, esi
mov dl, 0x14
call fcn.004e6840
lea esi, [esi]
mov eax, esi
call fcn.004e6510
mov bl, al
mov al, bl
pop edi
pop esi
pop ebx
ret
Function at 0x5092e0
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 0x509328
mov eax, dword [0x5560d0]
mov edx, dword [ebp - 4]
mov eax, dword [eax + 0x170]
cmp eax, dword [edx + 0x24]
jne 0x509328
mov eax, dword [0x5560d0]
cmp byte [eax + 0x11c], 0
jne 0x509328
mov eax, dword [0x557720]
mov edx, dword [0x557720]
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 [0x557720]
mov edx, dword [0x557720]
mov edx, dword [edx]
call dword [edx + 0x6c]
cmp eax, dword [ebx]
jne 0x50941e
mov eax, dword [0x5560d0]
cmp byte [eax + 0x11c], 0
jne 0x50941e
mov eax, dword [0x557720]
mov edx, dword [0x557720]
mov edx, dword [edx]
call dword [edx + 0x6c]
call fcn.0053e9a0
mov eax, dword [0x5560d0]
cmp dword [eax + 0x170], 0
je 0x5093e4
push 0x10
push 0
mov eax, dword [0x5560d0]
mov eax, dword [eax + 0x170]
push dword [eax + 0x254]
mov eax, dword [0x5560d0]
mov eax, dword [eax + 0x170]
push dword [eax + 0x248]
mov eax, dword [0x5560d0]
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 [0x5560d0]
mov eax, dword [eax + 0x170]
call fcn.0047efe0
test al, al
je 0x5093e4
push 0
mov eax, dword [0x5560d0]
call fcn.00420520
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 [0x5560d0]
call fcn.00423720
jmp 0x5094b4
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
je 0x509472
mov eax, dword [ebp - 4]
mov edx, dword [0x5560d0]
mov eax, dword [eax + 0x24]
cmp eax, dword [edx + 0x170]
jne 0x509472
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 [0x5560d0]
call fcn.00423720
jmp 0x5094b4
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
je 0x5094b4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
test dword [eax + 0x48c], 8
je 0x5094b4
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 [0x557720]
mov edx, dword [0x557720]
mov edx, dword [edx]
call dword [edx + 0x8c]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5094c0
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 [0x557720]
mov edx, dword [0x557720]
mov edx, dword [edx]
call dword [edx + 0x6c]
cmp eax, dword [ebx]
jne 0x509590
mov eax, dword [0x5560d0]
cmp byte [eax + 0x11c], 0
jne 0x509590
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 [0x5560d0]
cmp dword [eax + 0x170], 0
je 0x509584
mov eax, dword [0x5560d0]
mov eax, dword [eax + 0x170]
call fcn.0047efe0
test al, al
je 0x509584
mov eax, dword [0x5560d0]
mov eax, dword [eax + 0x170]
mov edx, dword [0x5560d0]
mov edx, dword [edx + 0x170]
mov edx, dword [edx]
call dword [edx + 0x344]
test al, al
je 0x50957c
push 8
mov eax, dword [0x5560d0]
call fcn.00420520
push eax
call sub.user32.dll_ShowWindow
lea esi, [esi]
call fcn.0053ea70
lea esi, [esi]
mov eax, dword [0x5560d0]
call fcn.00423760
jmp 0x5095f4
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
je 0x5095b9
mov eax, dword [ebp - 4]
mov edx, dword [0x5560d0]
mov eax, dword [eax + 0x24]
cmp eax, dword [edx + 0x170]
jne 0x5095b9
mov eax, dword [0x5560d0]
call fcn.00423760
jmp 0x5095f4
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
je 0x5095f4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
test dword [eax + 0x48c], 8
je 0x5095f4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov dword [eax + 0xc], 1
mov eax, dword [0x557720]
mov edx, dword [0x557720]
mov edx, dword [edx]
call dword [edx + 0x90]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x50ebb0
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.0050d350
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.00412d60
mov dword [ebp - 0x20], eax
mov eax, str.MAINICON
push eax
push dword [0x5c32e0]
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x50ec08
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 0x50ec84
or dword [ebp - 0x30], 0x800
cmp dword [0x56f4a0], 6
jb 0x50ec5c
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 0x50fd20
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 0x50fdb8
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 0x50fdb8
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.0050fd00
push ebp
push 0x413e50
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.0050fd00
mov byte [ebp - 0xc], 1
mov al, byte [ebp - 0xc]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x510460
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.00510440
push ebp
push 0x413e50
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 0x51052c
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.004a03e0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x2c]
call fcn.004a0330
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
call fcn.004a0af0
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.004a1fa0
mov eax, dword [ebp - 0xc]
mov byte [eax - 0x10], 0
jmp 0x510583
push dword [ebp - 0x10]
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x14], eax
xor eax, eax
push fcn.00510420
push ebp
push 0x413e50
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.00510420
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.00510440
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x53edc0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
xor eax, eax
push fcn.0053eda0
push ebp
push 0x413e50
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 4]
call sub.user32.dll_GetWindowTextLengthW
mov dword [ebp - 0xc], eax
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.0040a6e0
cmp dword [ebp - 0xc], 0
jle 0x53ee28
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x53ee1c
mov eax, 0x5c3300
push eax
push dword [ebp - 4]
call sub.user32.dll_GetWindowTextW
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
call fcn.0040a6e0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x18]
call fcn.0040ae20
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x53ee51
mov edx, dword [edx - 4]
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x53ee5d
mov eax, 0x5c3300
call fcn.0049e410
mov eax, dword [ebp - 8]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0053eda0
mov esp, ebp
pop ebp
ret
Function at 0x5401e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
mov eax, ecx
mov edx, 0x5b8ff0
call fcn.0040e570
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.005401d0
push ebp
push 0x413e50
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], 0
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [ebp - 0xc]
add eax, 0x34
xor edx, edx
call fcn.00408960
mov eax, dword [ebp - 0xc]
mov edx, fcn.0050d350
mov dword [eax + 0x2c], edx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov dword [edx + 0x24], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [edx + 0x28], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
mov dword [edx + 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
xor dx, dx
call fcn.004092b0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
add eax, 0x30
call fcn.00408960
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov dword [edx + 0x10], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
mov dword [edx + 0x18], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0xc]
lea ecx, [eax + 0x10]
mov eax, dword [ebp - 0xc]
lea edx, [eax + 0xc]
mov eax, dword [ebp - 4]
call fcn.0053e4d0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00540850
mov eax, dword [ebp - 4]
test dword [eax + 0x28], 0x10
jne 0x5402fc
mov eax, dword [ebp - 4]
call fcn.00483ad0
test al, al
jne 0x5402fc
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
or eax, 0x8000000
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x24], eax
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.005401d0
mov esp, ebp
pop ebp
ret
Function at 0x554950
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x5c]
push ebx
mov dword [ebp - 4], eax
mov ebx, edx
mov eax, dword [ebp - 4]
call fcn.00408930
xor eax, eax
push fcn.00554940
push ebp
push 0x413e50
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
xor cl, cl
mov edx, 0x44
call fcn.004042b0
lea eax, [ebp - 0x58]
xor cl, cl
mov edx, 0x10
call fcn.004042b0
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], 0
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0x220
push 0
push 0
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x5549cd
mov eax, 0x5c3300
push eax
push 0
call sub.kernel32.dll_CreateProcessA
push ebx
push dword [ebp - 0x58]
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x58]
call sub.kernel32.dll_GetExitCodeProcess
mov ebx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x58]
call fcn.00441570
mov eax, dword [ebp - 0x54]
call fcn.00441570
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00554940
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100010c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
xor bl, bl
test edx, edx
je 0x10001155
cmp word [edx], 0
je 0x10001155
mov ecx, 0x10
lea eax, [ebp - 0x10]
mov byte [eax], 0
inc eax
dec ecx
jne 0x100010e3
mov ecx, 0x44
lea eax, [ebp - 0x58]
mov byte [eax], 0
inc eax
dec ecx
jne 0x100010f2
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x58]
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
push edx
push 0
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x2c], 0x40
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10001145
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov al, bl
mov dword [esi + 4], 0x57
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100011b0
Capabilities:
Check if file exists

Disassembly:
push ebx
xor bl, bl
test esi, esi
je 0x100011f3
cmp word [esi], 0
je 0x100011f3
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100011e7
push esi
mov dword [edi], 0
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x100011dd
mov al, 1
pop ebx
ret
mov al, bl
mov dword [edi], 2
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov al, bl
pop ebx
ret
mov al, bl
mov dword [edi], 0x57
pop ebx
ret