joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4469a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
test eax, eax
jne 0x4469ac
mov eax, 0x6412f0
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4469bf
and eax, 0x10
seta al
jmp 0x4469c1
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x446ea0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x38]
push ebx
push esi
mov dword [ebp - 0x38], 0
mov eax, 1
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x18]
call fcn.0040d680
call fcn.00403e00
push eax
test eax, eax
jne 0x446f5c
xor ebx, ebx
add ebx, 1
lea eax, [ebx*4 + 0x642acc]
xor edx, edx
call fcn.00408870
mov dword [ebx*4 + 0x642aec], 0xffffffff
cmp ebx, 7
jl 0x446ed0
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 0x446f5c
lea esi, [esi]
push 1
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xc]
xor cx, cx
mov edx, 0xa
call fcn.00409250
mov eax, dword [ebp - 0x38]
mov edx, 1
call fcn.0043db50
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x446f5c
push 4
push ebx
push esi
mov eax, 0x446d70
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x446e00
push eax
call sub.kernel32.dll_EnumCalendarInfoA
nop
call fcn.0040d8f0
lea eax, [ebp - 0x38]
call fcn.00403940
pop eax
test eax, eax
je 0x446f73
call fcn.0040da20
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x447690
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x3c]
push ebx
push esi
push edi
mov ebx, eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov eax, 1
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x14]
call fcn.0040d680
call fcn.00403e00
push eax
test eax, eax
jne 0x447785
mov eax, dword [ebp - 0x3c]
xor edx, edx
call fcn.0040ada0
call sub.kernel32.dll_GetEnvironmentStringsW
mov edi, eax
mov esi, edi
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00443a00
jmp 0x447778
lea edx, [ebp - 4]
mov eax, esi
call fcn.0040ad50
mov edx, dword [ebp - 4]
mov ecx, 1
mov al, 0x3d
call fcn.0040b500
mov ebx, eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebx - 1]
mov eax, dword [ebp - 4]
mov edx, 1
call fcn.0040b450
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.00443a00
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 8]
call fcn.0040b2c0
test eax, eax
jne 0x447768
push dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
test eax, eax
je 0x447756
mov eax, dword [eax - 4]
sub eax, ebx
mov ecx, eax
lea edx, [ebx + 1]
mov eax, dword [ebp - 4]
call fcn.0040b450
jmp 0x44777f
mov eax, esi
call fcn.00404570
shl eax, 1
add eax, esi
add eax, 2
mov esi, eax
cmp word [esi], 0
jne 0x447700
push edi
call sub.kernel32.dll_FreeEnvironmentStringsW
call fcn.0040d8f0
lea eax, [ebp - 0x38]
call fcn.0040aaa0
lea eax, [ebp - 0x34]
call fcn.0040aaa0
lea eax, [ebp - 4]
call fcn.0040aaa0
lea eax, [ebp - 8]
call fcn.0040aaa0
pop eax
test eax, eax
je 0x4477b4
call fcn.0040da20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a0050
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x4c]
mov byte [ebp - 4], al
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov eax, 1
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x24]
call fcn.0040d680
call fcn.00403e00
push eax
test eax, eax
jne 0x4a01a0
cmp byte [ebp - 4], 0
je 0x4a014c
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW
mov dword [ebp - 0x18], eax
mov edx, eax
lea eax, [ebp - 0x14]
call fcn.0040a5d0
mov eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x18]
call sub.kernel32.dll_GetCurrentDirectoryW
mov dword [ebp - 0x18], eax
mov edx, eax
lea eax, [ebp - 0x14]
call fcn.0040a5d0
lea eax, [ebp - 0x44]
call fcn.0040aaa0
movzx eax, byte [ebp - 4]
add eax, 0x40
lea edx, [ebp - 0x48]
call fcn.0040b070
mov edx, dword [ebp - 0x48]
mov ecx, 0x5ffefc
lea eax, [ebp - 0x44]
call fcn.0040ade0
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x10]
call fcn.0040ace0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
jne 0x4a014c
push 0
movzx eax, byte [ebp - 4]
add eax, 0x40
lea ecx, [ebp - 0x4c]
xor dx, dx
call fcn.00409150
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 8]
mov ecx, 0x5fff0c
call fcn.00408970
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
jmp 0x4a01a0
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW
mov dword [ebp - 0x18], eax
mov edx, eax
lea eax, [ebp - 0xc]
call fcn.0040a5d0
mov eax, dword [ebp - 0xc]
push eax
push dword [ebp - 0x18]
call sub.kernel32.dll_GetCurrentDirectoryW
mov dword [ebp - 0x18], eax
mov edx, eax
lea eax, [ebp - 0xc]
call fcn.0040a5d0
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x4c]
call fcn.0040a900
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 8]
call fcn.00408870
cmp byte [ebp - 4], 0
je 0x4a01a0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
call fcn.0040d8f0
lea eax, [ebp - 0x4c]
call fcn.00403940
lea eax, [ebp - 0x48]
call fcn.0040aaa0
lea eax, [ebp - 0x44]
call fcn.0040aaa0
lea eax, [ebp - 0xc]
call fcn.0040a020
lea eax, [ebp - 0x10]
call fcn.0040a020
lea eax, [ebp - 0x14]
call fcn.0040a020
pop eax
test eax, eax
je 0x4a01df
call fcn.0040da20
mov esp, ebp
pop ebp
ret

Function at 0x4a0330
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x34]
mov dword [ebp - 4], eax
mov dword [ebp - 0x34], 0
mov eax, 1
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x14]
call fcn.0040d680
call fcn.00403e00
push eax
test eax, eax
jne 0x4a037b
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x34]
call fcn.0040c100
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x4a0372
mov eax, 0x6412f0
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 8], eax
call fcn.0040d8f0
lea eax, [ebp - 0x34]
call fcn.0040aaa0
pop eax
test eax, eax
je 0x4a0392
call fcn.0040da20
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4a1670
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 0x4a171a
mov eax, dword [ebp - 0x1c]
sub eax, 2
test eax, eax
jl 0x4a1736
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 0x4a1736
sub dx, 0x20
je 0x4a1710
sub dx, 0x80
je 0x4a1710
sub dx, 0x1f62
jb 0x4a1736
sub dx, 1
jbe 0x4a1710
sub dx, 6
je 0x4a1710
sub dx, 0x26
jne 0x4a1736
nop
jmp 0x4a1710
cmp eax, dword [ebp - 0x20]
jg 0x4a16b8
lea esi, [esi]
jmp 0x4a1736
cmp dword [ebp - 0x1c], 2
jne 0x4a172a
mov ax, word [ebp - 0x18]
mov word [ebp - 0x24], ax
jmp 0x4a1736
mov al, byte [ebp - 0xc]
call fcn.0040af50
mov word [ebp - 0x24], ax
mov ax, word [ebp - 0x24]
sub ax, 0x7f
jbe 0x4a17b4
sub ax, 0x21
je 0x4a17c8
sub ax, 0x17
je 0x4a17d4
sub ax, 0x222
je 0x4a17e0
sub ax, 0x392
je 0x4a17e8
sub ax, 1
je 0x4a17f0
sub ax, 0x1996
je 0x4a17f8
sub ax, 1
je 0x4a1800
sub ax, 6
je 0x4a1808
sub ax, 0xb
je 0x4a1818
sub ax, 0x1b
je 0x4a1810
sub ax, 0x367
je 0x4a1820
jmp 0x4a1828
mov ax, word [ebp - 0x24]
call fcn.0040aff0
mov byte [ebp - 0x10], al
jmp 0x4a1830
mov byte [ebp - 0x10], 0x20
jmp 0x4a1830
mov byte [ebp - 0x10], 0x2e
jmp 0x4a1830
mov byte [ebp - 0x10], 0x27
jmp 0x4a1830
mov byte [ebp - 0x10], 0x2c
jmp 0x4a1830
mov byte [ebp - 0x10], 0x27
jmp 0x4a1830
mov byte [ebp - 0x10], 0x20
jmp 0x4a1830
mov byte [ebp - 0x10], 0x20
jmp 0x4a1830
mov byte [ebp - 0x10], 0x20
jmp 0x4a1830
mov byte [ebp - 0x10], 0x20
jmp 0x4a1830
mov byte [ebp - 0x10], 0x2d
jmp 0x4a1830
mov byte [ebp - 0x10], 0x27
jmp 0x4a1830
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 0x4ab320
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x334]
push ebx
push esi
push edi
mov edi, eax
mov esi, edx
mov dword [ebp - 8], 0
mov dword [ebp - 0x334], 0
mov eax, 1
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x14]
call fcn.0040d680
call fcn.00403e00
push eax
test eax, eax
jne 0x4ab498
mov eax, edi
xor edx, edx
call fcn.00408870
mov eax, esi
xor edx, edx
call fcn.00408870
call sub.kernel32.dll_GetUserDefaultLCID
mov ebx, eax
push 4
lea eax, [ebp - 4]
push eax
push 3
push ebx
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
je 0x4ab3e0
lea eax, [ebp - 0x230]
push eax
push 3
push 0
lea ecx, [ebp - 4]
mov edx, 0xff
lea eax, [ebp - 0x330]
call fcn.004044e0
lea eax, [ebp - 0x330]
mov ecx, 2
mov edx, 1
call fcn.004049f0
lea eax, [ebp - 0x230]
lea edx, [ebp - 0x130]
call fcn.00404ae0
lea eax, [ebp - 0x130]
mov ecx, esi
xor dx, dx
call fcn.004090e0
nop
push 4
lea eax, [ebp - 4]
push eax
push 7
push ebx
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
je 0x4ab498
lea eax, [ebp - 0x130]
push eax
push 3
push 0
lea ecx, [ebp - 4]
mov edx, 0xff
lea eax, [ebp - 0x230]
call fcn.004044e0
lea eax, [ebp - 0x230]
mov ecx, 2
mov edx, 1
call fcn.004049f0
lea eax, [ebp - 0x130]
lea ecx, [ebp - 8]
xor dx, dx
call fcn.004090e0
push 0
lea eax, [ebp - 0x334]
push eax
lea eax, [ebp - 4]
xor cx, cx
mov edx, 3
call fcn.00409250
mov eax, dword [ebp - 0x334]
mov edx, 0x601ca0
call fcn.00409410
test eax, eax
jne 0x4ab474
lea eax, [ebp - 8]
mov edx, 0x601cb0
call fcn.00408870
push 0
mov eax, dword [esi]
mov dword [ebp - 0x3c], eax
mov eax, 0x601cc0
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
lea edx, [ebp - 0x3c]
mov eax, edi
mov ecx, 2
call fcn.00408be0
call fcn.0040d8f0
lea eax, [ebp - 0x334]
call fcn.00403940
lea eax, [ebp - 8]
call fcn.00403940
pop eax
test eax, eax
je 0x4ab4ba
call fcn.0040da20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4dcbd0
Capabilities:
Encode data using xor

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

Function at 0x4e4cf0
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 0x4e4d21
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 0x4e4d10
pop esi
pop ebx
ret

Function at 0x4ee150
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov esi, eax
cmp dword [esi + 0x14], 0xca
jne 0x4ee184
mov eax, esi
call fcn.004f26d0
cmp byte [esi + 0x40], 0
je 0x4ee17c
mov dword [esi + 0x14], 0xcf
mov bl, 1
jmp 0x4ee235
mov dword [esi + 0x14], 0xcb
nop
cmp dword [esi + 0x14], 0xcb
jne 0x4ee214
mov eax, dword [esi + 0x184]
cmp byte [eax + 0x10], 0
je 0x4ee20c
lea esi, [esi]
cmp dword [esi + 8], 0
je 0x4ee1b8
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 0x4ee1d0
xor bl, bl
jmp 0x4ee235
cmp edi, 2
je 0x4ee20a
lea esi, [esi]
cmp dword [esi + 8], 0
je 0x4ee1a8
cmp edi, 3
je 0x4ee1e8
cmp edi, 1
jne 0x4ee1a8
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 0x4ee1a8
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x110]
add dword [edx + 8], eax
mov esi, esi
jmp 0x4ee1a8
mov esi, esi
mov eax, dword [esi + 0x70]
mov dword [esi + 0x78], eax
jmp 0x4ee22c
cmp dword [esi + 0x14], 0xcc
je 0x4ee22c
mov ecx, dword [esi + 0x14]
mov eax, esi
mov dl, 0x14
call fcn.004ee570
lea esi, [esi]
mov eax, esi
call fcn.004ee240
mov bl, al
mov al, bl
pop edi
pop esi
pop ebx
ret
Function at 0x510ec0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 4]
push ebx
mov dword [ebp - 4], eax
cmp dword [eax + 0x28], 0
je 0x510f08
mov eax, dword [0x575110]
mov edx, dword [ebp - 4]
mov eax, dword [eax + 0x168]
cmp eax, dword [edx + 0x28]
jne 0x510f08
mov eax, dword [0x575110]
cmp byte [eax + 0x114], 0
jne 0x510f08
mov eax, dword [0x576af0]
mov edx, dword [0x576af0]
mov edx, dword [edx]
call dword [edx + 0x6c]
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov ebx, dword [ebp - 4]
mov eax, dword [0x576af0]
mov edx, dword [0x576af0]
mov edx, dword [edx]
call dword [edx + 0x6c]
cmp eax, dword [ebx + 4]
jne 0x510fff
mov eax, dword [0x575110]
cmp byte [eax + 0x114], 0
jne 0x510fff
mov eax, dword [0x576af0]
mov edx, dword [0x576af0]
mov edx, dword [edx]
call dword [edx + 0x6c]
call fcn.00556e60
mov eax, dword [0x575110]
cmp dword [eax + 0x168], 0
je 0x510fc4
push 0x10
push 0
mov eax, dword [0x575110]
mov eax, dword [eax + 0x168]
push dword [eax + 0x25c]
mov eax, dword [0x575110]
mov eax, dword [eax + 0x168]
push dword [eax + 0x250]
mov eax, dword [0x575110]
mov eax, dword [eax + 0x168]
push dword [eax + 0x130]
push 0
mov eax, dword [ebp - 4]
push dword [eax + 4]
call sub.user32.dll_SetWindowPos
mov eax, dword [0x575110]
mov eax, dword [eax + 0x168]
call fcn.00486a40
test al, al
je 0x510fc4
push 0
mov eax, dword [0x575110]
call fcn.0041f870
push eax
call sub.user32.dll_ShowWindow
nop
mov eax, dword [ebp - 4]
push dword [eax + 0x10]
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
push 0x112
mov eax, dword [ebp - 4]
push dword [eax + 4]
call sub.user32.dll_DefWindowProcA
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x24]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x2c], 0
mov eax, dword [0x575110]
call fcn.004227e0
jmp 0x511098
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
je 0x511054
mov eax, dword [ebp - 4]
mov edx, dword [0x575110]
mov eax, dword [eax + 0x28]
cmp eax, dword [edx + 0x168]
jne 0x511054
mov eax, dword [ebp - 4]
push dword [eax + 0x10]
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
push 0x112
mov eax, dword [ebp - 4]
push dword [eax + 4]
call sub.user32.dll_DefWindowProcA
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x24]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x2c], 0
mov eax, dword [0x575110]
call fcn.004227e0
jmp 0x511098
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
je 0x511098
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
test dword [eax + 0x488], 8
je 0x511098
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
mov dword [eax + 0xc], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x2c], 0
mov eax, dword [0x576af0]
mov edx, dword [0x576af0]
mov edx, dword [edx]
call dword [edx + 0x8c]
mov esi, esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5163a0
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.00514d30
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.004129c0
mov dword [ebp - 0x20], eax
mov eax, str.MAINICON
push eax
push dword [0x6412c0]
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x5163f8
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 0x516474
or dword [ebp - 0x30], 0x800
cmp dword [0x5cf090], 6
jb 0x51644c
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 0x5173a0
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x34]
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 0x517450
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 0x517450
mov eax, dword [ebp - 8]
push dword [eax - 0x14]
call sub.kernel32.dll_GlobalLock
mov edx, dword [ebp - 8]
mov dword [edx - 0x18], eax
mov eax, 1
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x18]
call fcn.0040d680
call fcn.00403e00
push eax
test eax, eax
jne 0x51742f
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]
call fcn.0040d8f0
mov eax, dword [ebp - 8]
push dword [eax - 0x14]
call sub.kernel32.dll_GlobalUnlock
pop eax
test eax, eax
je 0x517449
call fcn.0040da20
mov byte [ebp - 0xc], 1
lea esi, [esi]
mov al, byte [ebp - 0xc]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x517ac0
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x78]
push ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x44], 0
mov eax, 1
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x20]
call fcn.0040d680
call fcn.00403e00
push eax
test eax, eax
jne 0x517c0d
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 0x517ba8
lea eax, [ebp - 0x44]
call fcn.00403940
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
lea eax, [ebp - 0x44]
call fcn.004a8760
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x54]
call fcn.00403940
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x54]
call fcn.004a86b0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x4c], eax
call fcn.004a8e90
mov ebx, eax
mov eax, str._DataSize
push eax
push dword [ebp - 0x40]
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 - 0x4c]
mov edx, str.TWin32WidgetSet.ClipboardGetOwnerShip_DataHandle
mov eax, ebx
call fcn.004aa370
mov eax, dword [ebp - 0xc]
mov byte [eax - 0x10], 0
jmp 0x517c0d
push dword [ebp - 0x10]
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x14], eax
mov eax, 1
lea edx, [ebp - 0x78]
lea ecx, [ebp - 0x60]
call fcn.0040d680
call fcn.00403e00
push eax
test eax, eax
jne 0x517beb
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]
call fcn.0040d8f0
push dword [ebp - 0x10]
call sub.kernel32.dll_GlobalUnlock
pop eax
test eax, eax
je 0x517c02
call fcn.0040da20
push dword [ebp - 0x10]
push dword [ebp - 4]
call sub.user32.dll_SetClipboardData
call fcn.0040d8f0
lea eax, [ebp - 0x54]
call fcn.00403940
lea eax, [ebp - 0x44]
call fcn.00403940
pop eax
test eax, eax
je 0x517c2c
call fcn.0040da20
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x557270
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x3c]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x3c], 0
mov eax, 1
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x1c]
call fcn.0040d680
call fcn.00403e00
push eax
test eax, eax
jne 0x557301
push dword [ebp - 4]
call sub.user32.dll_GetWindowTextLengthW
mov dword [ebp - 0xc], eax
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.0040a5d0
cmp dword [ebp - 0xc], 0
jbe 0x5572e0
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x5572d3
mov eax, 0x6412f0
push eax
push dword [ebp - 4]
call sub.user32.dll_GetWindowTextW
mov dword [ebp - 0xc], eax
nop
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
call fcn.0040a5d0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x3c]
call fcn.0040ad10
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 8]
call fcn.004a6820
call fcn.0040d8f0
lea eax, [ebp - 0x3c]
call fcn.0040aaa0
lea eax, [ebp - 0x10]
call fcn.0040a020
pop eax
test eax, eax
je 0x557320
call fcn.0040da20
mov esp, ebp
pop ebp
ret
Function at 0x10001d89
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x10001d98
pop dword [ebp - 0x18]
mov eax, 0x10001d98
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xd43c73d5
add dword [ebp - 0x28], 0x7a15d176
mov dword [ebp - 0x24], 0x2f1c2af8
add dword [ebp - 0x24], 0x317214d
mov dword [ebp - 0x20], 0xeb0eff2f
add dword [ebp - 0x20], 0x613d44ff
mov dword [ebp - 0x1c], 0x6abdab2d
sub dword [ebp - 0x1c], 0x6abdab2d
lea eax, [ebp - 0x28]
push eax
mov eax, 0x592eaa11
add eax, 0xb6d3a673
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x8cd70dbc
add dword [ebp - 0x28], 0xe79b5b9a
mov dword [ebp - 0x24], 0x508aa19e
add dword [ebp - 0x24], 0xf0e1bfd7
mov dword [ebp - 0x20], 0x54ab3a2a
sub dword [ebp - 0x20], 0xf13bcdbe
mov dword [ebp - 0x1c], 0x85a92676
sub dword [ebp - 0x1c], 0x85a92676
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x8e1bc5bd
add eax, 0x81e68abf
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x40196
push 0
call eax
mov ecx, 0xca66d4ac
add ecx, 0x359985e6
mov edx, eax
mov ebx, 0x1dfebb49
sub ebx, 0xdfbaf49
add ebx, dword [ebp - 0x18]
mov esi, 0x5ffaeb45
add esi, 0x4403b26a
mov edi, dword [ebx]
mov dword [ebp - 0x14], 0x4d25ba26
xor edi, esi
mov dword [edx], edi
xor dword [ebp - 0xc], ecx
add edx, 0x766ed77f
add edx, 0x89912885
add ebx, 0xc6f3031
add ebx, 0xf390cfd3
loop 0x10001eb5
add eax, 0xd0ba0ac8
sub eax, 0xd0b8adad
mov ebx, eax
add eax, 0x4eb27c92
add eax, 0xb14d8373
mov ecx, 0x34e85e6c
sub ecx, 0x24e85e6c
add ecx, dword [ebp - 0x18]
call ebx
leave
ret