joyce8/EMBER2024-capa huggingface dataset:
Function at 0x477e50
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.0040de90
call fcn.00404010
push eax
test eax, eax
jne 0x477fa0
cmp byte [ebp - 4], 0
je 0x477f4c
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW
mov dword [ebp - 0x18], eax
mov edx, eax
lea eax, [ebp - 0x14]
call fcn.0040a790
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.0040a790
lea eax, [ebp - 0x44]
call fcn.0040ac60
movzx eax, byte [ebp - 4]
add eax, 0x40
lea edx, [ebp - 0x48]
call fcn.0040b370
mov edx, dword [ebp - 0x48]
mov ecx, 0x66a56c
lea eax, [ebp - 0x44]
call fcn.0040afa0
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x10]
call fcn.0040aea0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
jne 0x477f4c
push 0
movzx eax, byte [ebp - 4]
add eax, 0x40
lea ecx, [ebp - 0x4c]
xor dx, dx
call fcn.00409310
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 8]
mov ecx, 0x66a57c
call fcn.00408b30
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
jmp 0x477fa0
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW
mov dword [ebp - 0x18], eax
mov edx, eax
lea eax, [ebp - 0xc]
call fcn.0040a790
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.0040a790
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x4c]
call fcn.0040aac0
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 8]
call fcn.00408a30
cmp byte [ebp - 4], 0
je 0x477fa0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
call fcn.0040e100
lea eax, [ebp - 0x4c]
call fcn.00403b50
lea eax, [ebp - 0x48]
call fcn.0040ac60
lea eax, [ebp - 0x44]
call fcn.0040ac60
lea eax, [ebp - 0xc]
call fcn.0040a1e0
lea eax, [ebp - 0x10]
call fcn.0040a1e0
lea eax, [ebp - 0x14]
call fcn.0040a1e0
pop eax
test eax, eax
je 0x477fdf
call fcn.0040e230
mov esp, ebp
pop ebp
ret

Function at 0x478150
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.0040de90
call fcn.00404010
push eax
test eax, eax
jne 0x47819b
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x34]
call fcn.0040c6c0
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x478192
mov eax, 0x6d72f0
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 8], eax
call fcn.0040e100
lea eax, [ebp - 0x34]
call fcn.0040ac60
pop eax
test eax, eax
je 0x4781b2
call fcn.0040e230
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x497c30
Capabilities:
Encode data using xor

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

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

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x2c]
push ebx
push esi
push edi
mov ebx, eax
mov esi, edx
mov dword [ebp - 4], 0
mov eax, 1
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x10]
call fcn.0040de90
call fcn.00404010
push eax
test eax, eax
jne 0x499f7c
mov edx, dword [0x6d8070]
test edx, edx
je 0x499f16
mov eax, dword [0x6d96a0]
call edx
jmp 0x499f1b
mov eax, 0x6d96a4
mov word [eax], 0
lea eax, [ebx + 0x4c]
lea ecx, [ebp - 4]
mov edx, 0xff
call fcn.0040c8a0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x499f3c
mov eax, 0x6d72f0
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x499f72
call sub.kernel32.dll_GetLastError
mov edi, eax
mov edx, dword [0x6d8070]
test edx, edx
je 0x499f63
mov eax, dword [0x6d96a0]
call edx
jmp 0x499f68
mov eax, 0x6d96a4
mov word [eax], di
mov word [esi], 0
jmp 0x499f7c
mov eax, ebx
and eax, 0xffff
mov word [esi], ax
call fcn.0040e100
lea eax, [ebp - 4]
call fcn.00403b50
pop eax
test eax, eax
je 0x499f93
call fcn.0040e230
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x499fe0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
test edx, edx
jne 0x499ff0
xor ebx, ebx
jmp 0x49a10f
not eax
jmp 0x49a0db
movzx edi, byte [edx]
xor edi, eax
and edi, 0xff
mov esi, eax
shr esi, 8
xor esi, dword [edi*4 + 0x5f7330]
mov eax, esi
add edx, 1
movzx edi, byte [edx]
xor edi, eax
and edi, 0xff
mov esi, eax
shr esi, 8
xor esi, dword [edi*4 + 0x5f7330]
mov eax, esi
add edx, 1
movzx edi, byte [edx]
xor edi, eax
and edi, 0xff
mov esi, eax
shr esi, 8
xor esi, dword [edi*4 + 0x5f7330]
mov eax, esi
add edx, 1
movzx edi, byte [edx]
xor edi, eax
and edi, 0xff
mov esi, eax
shr esi, 8
xor esi, dword [edi*4 + 0x5f7330]
mov eax, esi
add edx, 1
movzx edi, byte [edx]
xor edi, eax
and edi, 0xff
mov esi, eax
shr esi, 8
xor esi, dword [edi*4 + 0x5f7330]
mov eax, esi
add edx, 1
movzx edi, byte [edx]
xor edi, eax
and edi, 0xff
mov esi, eax
shr esi, 8
xor esi, dword [edi*4 + 0x5f7330]
mov eax, esi
add edx, 1
movzx edi, byte [edx]
xor edi, eax
and edi, 0xff
mov esi, eax
shr esi, 8
xor esi, dword [edi*4 + 0x5f7330]
mov eax, esi
add edx, 1
movzx edi, byte [edx]
xor edi, eax
and edi, 0xff
mov esi, eax
shr esi, 8
xor esi, dword [edi*4 + 0x5f7330]
mov eax, esi
add edx, 1
sub ecx, 8
cmp ecx, 8
jae 0x499ff8
jmp 0x49a107
movzx edi, byte [edx]
xor edi, eax
and edi, 0xff
mov esi, eax
shr esi, 8
xor esi, dword [edi*4 + 0x5f7330]
mov eax, esi
add edx, 1
sub ecx, 1
test ecx, ecx
ja 0x49a0e8
not eax
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4b7c80
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 0x4b7cb1
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 0x4b7ca0
pop esi
pop ebx
ret

Function at 0x4c3be0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov esi, eax
cmp dword [esi + 0x14], 0xca
jne 0x4c3c14
mov eax, esi
call fcn.004c8160
cmp byte [esi + 0x40], 0
je 0x4c3c0c
mov dword [esi + 0x14], 0xcf
mov bl, 1
jmp 0x4c3cc5
mov dword [esi + 0x14], 0xcb
nop
cmp dword [esi + 0x14], 0xcb
jne 0x4c3ca4
mov eax, dword [esi + 0x184]
cmp byte [eax + 0x10], 0
je 0x4c3c9c
lea esi, [esi]
cmp dword [esi + 8], 0
je 0x4c3c48
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 0x4c3c60
xor bl, bl
jmp 0x4c3cc5
cmp edi, 2
je 0x4c3c9a
lea esi, [esi]
cmp dword [esi + 8], 0
je 0x4c3c38
cmp edi, 3
je 0x4c3c78
cmp edi, 1
jne 0x4c3c38
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 0x4c3c38
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x110]
add dword [edx + 8], eax
mov esi, esi
jmp 0x4c3c38
mov esi, esi
mov eax, dword [esi + 0x70]
mov dword [esi + 0x78], eax
jmp 0x4c3cbc
cmp dword [esi + 0x14], 0xcc
je 0x4c3cbc
mov ecx, dword [esi + 0x14]
mov eax, esi
mov dl, 0x14
call fcn.004c4000
lea esi, [esi]
mov eax, esi
call fcn.004c3cd0
mov bl, al
mov al, bl
pop edi
pop esi
pop ebx
ret
Function at 0x4e2630
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 0x4e2678
mov eax, dword [0x5f41b0]
mov edx, dword [ebp - 4]
mov eax, dword [eax + 0x168]
cmp eax, dword [edx + 0x28]
jne 0x4e2678
mov eax, dword [0x5f41b0]
cmp byte [eax + 0x114], 0
jne 0x4e2678
mov eax, dword [0x5f4e80]
mov edx, dword [0x5f4e80]
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 [0x5f4e80]
mov edx, dword [0x5f4e80]
mov edx, dword [edx]
call dword [edx + 0x6c]
cmp eax, dword [ebx + 4]
jne 0x4e276f
mov eax, dword [0x5f41b0]
cmp byte [eax + 0x114], 0
jne 0x4e276f
mov eax, dword [0x5f4e80]
mov edx, dword [0x5f4e80]
mov edx, dword [edx]
call dword [edx + 0x6c]
call fcn.0055bfe0
mov eax, dword [0x5f41b0]
cmp dword [eax + 0x168], 0
je 0x4e2734
push 0x10
push 0
mov eax, dword [0x5f41b0]
mov eax, dword [eax + 0x168]
push dword [eax + 0x25c]
mov eax, dword [0x5f41b0]
mov eax, dword [eax + 0x168]
push dword [eax + 0x250]
mov eax, dword [0x5f41b0]
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 [0x5f41b0]
mov eax, dword [eax + 0x168]
call fcn.00501150
test al, al
je 0x4e2734
push 0
mov eax, dword [0x5f41b0]
call fcn.00420700
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 [0x5f41b0]
call fcn.00423530
jmp 0x4e2808
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
je 0x4e27c4
mov eax, dword [ebp - 4]
mov edx, dword [0x5f41b0]
mov eax, dword [eax + 0x28]
cmp eax, dword [edx + 0x168]
jne 0x4e27c4
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 [0x5f41b0]
call fcn.00423530
jmp 0x4e2808
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
je 0x4e2808
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
test dword [eax + 0x488], 8
je 0x4e2808
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 [0x5f4e80]
mov edx, dword [0x5f4e80]
mov edx, dword [edx]
call dword [edx + 0x8c]
mov esi, esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e7b10
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.004e64a0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.00413b20
mov dword [ebp - 0x20], eax
mov eax, str.MAINICON
push eax
push dword [0x6d72c0]
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x4e7b68
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 0x4e7be4
or dword [ebp - 0x30], 0x800
cmp dword [0x64e290], 6
jb 0x4e7bbc
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 0x4e8b10
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 0x4e8bc0
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 0x4e8bc0
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.0040de90
call fcn.00404010
push eax
test eax, eax
jne 0x4e8b9f
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.0040e100
mov eax, dword [ebp - 8]
push dword [eax - 0x14]
call sub.kernel32.dll_GlobalUnlock
pop eax
test eax, eax
je 0x4e8bb9
call fcn.0040e230
mov byte [ebp - 0xc], 1
lea esi, [esi]
mov al, byte [ebp - 0xc]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e9230
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.0040de90
call fcn.00404010
push eax
test eax, eax
jne 0x4e937d
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 0x4e9318
lea eax, [ebp - 0x44]
call fcn.00403b50
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.004799e0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x54]
call fcn.00403b50
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x54]
call fcn.00479930
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x4c], eax
call fcn.0047a110
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.0047b5f0
mov eax, dword [ebp - 0xc]
mov byte [eax - 0x10], 0
jmp 0x4e937d
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.0040de90
call fcn.00404010
push eax
test eax, eax
jne 0x4e935b
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.0040e100
push dword [ebp - 0x10]
call sub.kernel32.dll_GlobalUnlock
pop eax
test eax, eax
je 0x4e9372
call fcn.0040e230
push dword [ebp - 0x10]
push dword [ebp - 4]
call sub.user32.dll_SetClipboardData
call fcn.0040e100
lea eax, [ebp - 0x54]
call fcn.00403b50
lea eax, [ebp - 0x44]
call fcn.00403b50
pop eax
test eax, eax
je 0x4e939c
call fcn.0040e230
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x55c3f0
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.0040de90
call fcn.00404010
push eax
test eax, eax
jne 0x55c481
push dword [ebp - 4]
call sub.user32.dll_GetWindowTextLengthW
mov dword [ebp - 0xc], eax
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.0040a790
cmp dword [ebp - 0xc], 0
jbe 0x55c460
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x55c453
mov eax, 0x6d72f0
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.0040a790
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x3c]
call fcn.0040aed0
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 8]
call fcn.004411f0
call fcn.0040e100
lea eax, [ebp - 0x3c]
call fcn.0040ac60
lea eax, [ebp - 0x10]
call fcn.0040a1e0
pop eax
test eax, eax
je 0x55c4a0
call fcn.0040e230
mov esp, ebp
pop ebp
ret
Function at 0x5d9400
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, 0xffffffff
mov edx, esi
test esi, esi
je 0x5d9413
mov edx, dword [edx - 4]
test edx, edx
jle 0x5d9450
mov ebx, esi
test esi, esi
je 0x5d9420
mov ebx, dword [ebx - 4]
cmp ebx, 1
jl 0x5d9450
xor ecx, ecx
nop
add ecx, 1
movzx edx, byte [esi + ecx - 1]
xor edx, eax
and edx, 0xff
mov edi, eax
shr edi, 8
and edi, 0xffffff
xor edi, dword [edx*4 + 0x650fa0]
mov eax, edi
cmp ebx, ecx
jg 0x5d9428
not eax
pop edi
pop esi
pop ebx
ret

Function at 0x5d9460
Capabilities:
Hash data with crc32

Disassembly:
and edx, 0xff
mov ecx, dword [eax + 0xc]
xor edx, ecx
and edx, 0xff
shr ecx, 8
and ecx, 0xffffff
xor ecx, dword [edx*4 + 0x650fa0]
mov dword [eax + 0xc], ecx
ret

Function at 0x5ec001
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5ec01c
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124b1241]
pop edx
test eax, eax
je 0x5ec0ee
cmp dword [ebp - 0x2ac], 0x1000
jne 0x5ec0dd
test dword [ebp - 0x2a8], 1
jne 0x5ec0dd
and dword [ebp - 0x2a8], 0x100
jne 0x5ec0dd
push esi
push edx
push 4
push esi
call dword [edx + 0x122d3dc5]
pop edx
pop esi
test eax, eax
je 0x5ec080
jmp 0x5ec0dd
cmp word [esi], 0x5a4d
jne 0x5ec0dd
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x5ec0dd
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d3df1]
pop edx
test eax, eax
je 0x5ec0dd
lea eax, [ebp - 0x28c]
push eax
call fcn.005ebf5d
test eax, eax
jne 0x5ec0d6
jmp 0x5ec0dd
mov eax, esi
jmp 0x5ec0ee
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x5ec01c
pop esi
leave
ret 4
Function at 0x994cdc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x994d03
call fcn.00937288
mov dword [eax], esi
call fcn.00937275
push 0x16
pop esi
mov dword [eax], esi
call fcn.00937eca
mov eax, esi
jmp 0x994d58
test dword [ebp + 0xc], 0xfffffff9
jne 0x994ce9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x994d30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0093729b
pop ecx
call fcn.00937275
mov eax, dword [eax]
jmp 0x994d58
test al, 0x10
jne 0x994d56
test al, 1
je 0x994d56
test byte [ebp + 0xc], 2
je 0x994d56
call fcn.00937288
mov dword [eax], 5
call fcn.00937275
mov dword [eax], 0xd
jmp 0x994d27
xor eax, eax
pop esi
pop ebp
ret

Function at 0x40c4ca
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x416020]
jne 0x40c4d4
repz ret
jmp fcn.0040c6bb

Function at 0x40e479
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040cb2e
and dword [ebp - 4], 0
cmp dword [0x43fe30], 0
mov ebx, eax
jne 0x40e52a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40e5db
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40e5db
push eax
call fcn.0040cabc
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43fe30], eax
call esi
push eax
call fcn.0040cabc
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43fe34], eax
call esi
push eax
call fcn.0040cabc
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43fe38], eax
call esi
push eax
call fcn.0040cabc
pop ecx
mov dword [0x43fe40], eax
test eax, eax
je 0x40e52a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040cabc
pop ecx
mov dword [0x43fe3c], eax
mov eax, dword [0x43fe3c]
cmp eax, ebx
je 0x40e582
cmp dword [0x43fe40], ebx
je 0x40e582
push eax
call fcn.0040cb37
push dword [0x43fe40]
mov esi, eax
call fcn.0040cb37
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40e582
test edi, edi
je 0x40e582
call esi
test eax, eax
je 0x40e579
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40e579
test byte [ebp - 0xc], 1
jne 0x40e582
or dword [ebp + 0x10], 0x200000
jmp 0x40e5bb
mov eax, dword [0x43fe34]
cmp eax, ebx
je 0x40e5bb
push eax
call fcn.0040cb37
pop ecx
test eax, eax
je 0x40e5bb
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40e5bb
mov eax, dword [0x43fe38]
cmp eax, ebx
je 0x40e5bb
push eax
call fcn.0040cb37
pop ecx
test eax, eax
je 0x40e5bb
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43fe30]
call fcn.0040cb37
pop ecx
test eax, eax
je 0x40e5db
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40e5dd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402888
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402920
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402900
xor eax, eax
push ebp
push 0x4028f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40293c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402900
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret