joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461e60
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x461e93
push esi
call fcn.00470220
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x461e8c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x461f19
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x461f02
mov eax, dword [esi + 8]
test eax, eax
je 0x461eb7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x461efe
cmp eax, 2
je 0x461f02
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x461eaa
cmp eax, 3
je 0x461edd
cmp eax, 1
jne 0x461eaa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x461eaa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x461eaa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00461f40
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x461f28
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00461f40
add esp, 4
pop esi
ret

Function at 0x4627c0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4627e1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4627e1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4627e1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x47da20
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x47dac3
test eax, eax
jbe 0x47dac3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x47dac3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x47da6e
xor esi, esi
jmp 0x47da74
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x47da9f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00481c60
add esi, eax
push esi
mov ebx, esi
call fcn.00481c60
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x47da80
pop ebp
test edi, edi
pop edi
jne 0x47dac3
test ebx, ebx
je 0x47dac3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00496860
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x47dbe5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x47dcfd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47dcfd
mov eax, dword [esi + 0x3c]
push eax
call fcn.004a839a
mov esi, eax
test esi, esi
je 0x47dcfd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x47dcfd
mov ecx, esi
call fcn.0047db70
cmp edi, eax
jge 0x47dcfd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x47dc83
mov dword [esp + 0x34], 1
jmp 0x47dcde
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x47dcfd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0047d110
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x483350
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x48339a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x4833c9
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x48340b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x486500
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x486566
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x486566
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x486547
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4868f0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x486928
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x4877c0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x487809
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x487c80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b6770
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00487830
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004878b0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004878b0
lea ecx, [esi + 0xc]
call fcn.004a6925
lea ecx, [esi + 0x10]
call fcn.004a6925
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00488e40
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00488e40
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00488e40
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004a699a
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004a699a
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x48eff0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x48f03c
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x48f03c
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x48f026
push eax
call ebp
test ax, ax
jl 0x48f034
inc esi
add edi, 4
cmp esi, 6
jb 0x48f018
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.0048ecf0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4918e0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x491940
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x491940
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x491940
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x491940
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x491950
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x4a8d3e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a8d76
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004a6df5
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a6dcd
jmp 0x4a8d82
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4aa430
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4aa472
call fcn.004b023f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4aa472
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4aa469
xor eax, eax
jmp 0x4aa47a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004aa480
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b076f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b079d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b07bb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b06d5
jmp 0x4b07bb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b07bb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b06d5
test edi, edi
mov eax, edi
jne 0x4b07a5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40515c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405195
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40519e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4067c0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406808
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040675c
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40680f
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406ab8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00404d30
add esp, 0x104
pop ebx
ret

Function at 0x406c00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x406d21
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push edi
push esi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x406d0b
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
je 0x406c59
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x406d0b
cmp dword [ebp - 0xc], 0
jne 0x406c6e
mov eax, dword [ebp - 4]
call fcn.00403198
mov bl, 1
jmp 0x406d0b
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
xor edx, edx
call fcn.00403278
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
call fcn.00403420
push eax
lea eax, [ebp - 8]
push eax
push 0
push edi
push esi
call sub.advapi32.dll_RegQueryValueExA
cmp eax, 0xea
je 0x406c25
test eax, eax
jne 0x406d0b
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
je 0x406cb5
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x406d0b
jmp 0x406cb5
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
je 0x406cc8
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
cmp byte [eax + edx - 1], 0
je 0x406cb2
cmp dword [ebp - 8], 7
jne 0x406cd7
cmp dword [ebp - 0xc], 0
je 0x406cd7
inc dword [ebp - 0xc]
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004034f0
cmp dword [ebp - 8], 7
jne 0x406cfe
cmp dword [ebp - 0xc], 0
je 0x406cfe
lea eax, [ebp - 0x10]
call fcn.00403420
mov edx, dword [ebp - 0xc]
mov byte [eax + edx - 1], 0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.004031e8
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406d28
lea eax, [ebp - 0x10]
call fcn.00403198
ret
Function at 0x40765c
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40b55c
mov eax, esi
mov edx, 8
test al, 1
je 0x407678
shr eax, 1
xor eax, 0xedb88320
jmp 0x40767a
shr eax, 1
dec edx
jne 0x40766b
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x407664
pop esi
ret

Function at 0x4076a7
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40b558], 0
jne 0x4076b3
call fcn.0040765c
push 1
push 0x40b558
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x4076de
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40b55c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x4076b9
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x408c90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00408c44
test al, al
jne 0x408cb1
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x408cfd
xor eax, eax
push ebp
push 0x408ced
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403414
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408cf4
lea eax, [ebp - 0xc]
call fcn.00408c80
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4091d4
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x40922e
inc esi
xor edi, edi
cmp edi, 1
jne 0x4091fa
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x409208
cmp edi, 1
jle 0x409208
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00408c90
test eax, eax
jne 0x40922e
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x40922e
call sub.kernel32.dll_GetLastError_1
cmp eax, 3
je 0x40922e
inc edi
dec esi
jne 0x4091ea
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x10523058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.105231a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1052307e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1052306a
add dl, dl
jne 0x10523089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105230dc
xor eax, eax
add dl, dl
jne 0x10523096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1052317d
add dl, dl
jne 0x105230a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105230b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105230bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105230c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x105230d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10523075
mov eax, 1
add dl, dl
jne 0x105230ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105230f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105230e1
sub eax, ebx
mov ebx, 1
jne 0x10523128
mov ecx, 1
add dl, dl
jne 0x1052310e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10523119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10523105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10523075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1052313f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1052314a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10523136
cmp eax, 0x7d00
jae 0x1052316d
cmp eax, 0x500
jb 0x10523168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10523075
cmp eax, 0x7f
ja 0x10523170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10523075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1052319e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10523075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401590
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
shr edi, 2
xor ebx, ebx
mov eax, edi
mov dword [ebp - 4], 1
shr eax, 1
mov ecx, ebx
add eax, 3
mov dword [esi], eax
add esi, 0x10
test edi, edi
je 0x4015c7
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x4015ba
mov edx, dword [esi + edi*4 - 4]
imul eax, edi, 0xc
add eax, 0x70
add eax, esi
mov dword [ebp + 8], eax
test ebx, ebx
jne 0x401635
movzx eax, dl
mov ebx, dword [ebp - 4]
push 0x1b
movzx ecx, byte [eax + 0xad00c0]
mov eax, edx
shr eax, 0x18
shl ecx, 8
movzx eax, byte [eax + 0xad00c0]
or ecx, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
shl ecx, 8
movzx eax, byte [eax + 0xad00c0]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + 0xad00c0]
xor edx, ebx
add ebx, ebx
or edx, ecx
test ebx, 0x100
pop eax
cmovne ebx, eax
mov dword [ebp - 4], ebx
mov ebx, edi
jmp 0x401682
cmp ebx, 4
jne 0x401685
cmp edi, 6
jbe 0x401685
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + 0xad00c0]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0xad00c0]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0xad00c0]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + 0xad00c0]
or edx, ecx
mov eax, dword [ebp + 8]
xor edx, dword [esi]
dec ebx
mov dword [esi + edi*4], edx
add esi, 4
cmp esi, eax
jne 0x4015d6
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x402765
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x402786
lea ecx, [ebp - 0x10]
call fcn.00402748
test eax, eax
je 0x402786
mov eax, dword [ebp - 8]
leave
ret
xor eax, eax
leave
ret
Function at 0x4027b9
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0xb03008]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x402802
push str.SetDefaultDllDirectories
push 0xad2368
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402802
push 0xc00
call eax
test eax, eax
jne 0x40289e
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40289e
cmp eax, 0x104
ja 0x40289e
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x402839
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
mov cl, byte [0xad22f8]
push esi
mov esi, 0xad22f8
test cl, cl
je 0x40289d
push ebx
push edi
lea edi, [ebp - 0x2d4]
push 0x6c
lea edi, [edi + eax*2]
pop ebx
mov edx, edi
inc esi
movzx eax, cl
mov cl, byte [esi]
inc esi
mov word [edx], ax
lea edx, [edx + 2]
test cl, cl
jne 0x40285a
push 0x2e
pop eax
push 0x64
mov word [edx], ax
pop eax
mov word [edx + 2], ax
xor eax, eax
push 8
push eax
mov word [edx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov word [edx + 4], bx
mov word [edx + 6], bx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov cl, byte [esi]
test cl, cl
jne 0x402857
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a9a313
leave
ret
Function at 0x408418
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
push 0x38
pop eax
mov ecx, dword [esi + 8]
and ecx, 0x3f
mov byte [ecx + esi + 0x40], 0x80
inc ecx
cmp ecx, eax
jbe 0x40845f
push 0x40
pop edx
cmp ecx, edx
je 0x40844c
sub edx, ecx
lea eax, [esi + 0x40]
push edx
add eax, ecx
push 0
push eax
call fcn.00a9c970
add esp, 0xc
lea edi, [esi + 0x20]
lea edx, [esi + 0x40]
mov ecx, edi
push 1
call dword [esi]
push 0x38
xor ecx, ecx
pop eax
jmp 0x408462
lea edi, [esi + 0x20]
sub eax, ecx
push eax
lea eax, [esi + 0x40]
add eax, ecx
push 0
push eax
call fcn.00a9c970
mov ecx, dword [esi + 8]
lea edx, [esi + 0x40]
mov eax, dword [esi + 0xc]
add esp, 0xc
shld eax, ecx, 3
shl ecx, 3
bswap ecx
bswap eax
mov dword [esi + 0x7c], ecx
mov ecx, edi
push 1
mov dword [esi + 0x78], eax
call dword [esi]
push 4
pop edx
mov ecx, dword [edi + 4]
mov eax, dword [edi]
lea edi, [edi + 8]
bswap eax
mov dword [ebx], eax
lea ebx, [ebx + 8]
bswap ecx
mov dword [ebx - 4], ecx
sub edx, 1
jne 0x408498
pop edi
mov ecx, esi
pop esi
pop ebx
jmp fcn.00407f6e

Function at 0x40a43e
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xabff1d
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0xb03008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
push dword [ebp + 8]
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40a4b1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40a4aa
push dword [ebp + 8]
push edi
push eax
call fcn.00a9c3f0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push ebx
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x40a4aa
mov al, 1
jmp 0x40a4b3
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4