joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405866
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4058b7
xor eax, eax
jmp 0x4058de
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x4058de
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x4058b3
call esi
pop esi
leave
ret 4

Function at 0x405918
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x468250], 0x44
push eax
xor eax, eax
push 0x468250
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405957
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x40595b
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x4059f9
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405e00
mov edi, eax
cmp edi, 0xffffffff
je 0x405a3a
test byte [esp + 0x10], 1
push esi
je 0x405a1c
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405a22
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405a2b
xor eax, eax
inc eax
jmp 0x405a3c
test byte [esp + 0x10], 4
jne 0x405a3a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405a41
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405d0c
test bl, 8
mov dword [ebp - 8], eax
je 0x405a80
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x47af88], eax
jmp 0x405bfd
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405a9a
test eax, eax
je 0x405bab
test bl, 2
je 0x405bab
mov esi, 0x460250
push edi
push esi
call fcn.0040632f
cmp dword [ebp + 8], 0
je 0x405ab9
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405abf
push edi
call fcn.00405c50
cmp word [edi], 0
jne 0x405acf
cmp word [0x460250], 0x5c
jne 0x405ada
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405ba0
cmp word [ebp - 0x22c], 0x2e
jne 0x405b24
cmp word [ebp - 0x22a], 0
je 0x405b83
cmp word [ebp - 0x22a], 0x2e
jne 0x405b24
cmp word [ebp - 0x228], 0
je 0x405b83
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.0040632f
test byte [ebp - 0x258], 0x10
je 0x405b4f
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405b83
push dword [ebp + 0xc]
push edi
call fcn.00405a41
jmp 0x405b83
push dword [ebp - 4]
push edi
call fcn.004059f9
test eax, eax
jne 0x405b7b
cmp dword [ebp - 4], eax
je 0x405b73
push edi
push 0xfffffffffffffff1
call fcn.00405397
push 0
push edi
call fcn.004060f5
jmp 0x405b83
inc dword [0x47af88]
jmp 0x405b83
push edi
push 0xfffffffffffffff2
call fcn.00405397
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405afc
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405bab
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405bfd
cmp dword [ebp - 8], esi
jne 0x405bbf
inc dword [0x47af88]
jmp 0x405bfd
push edi
call fcn.00406672
test eax, eax
je 0x405bfd
push edi
call fcn.00405c04
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004059f9
test eax, eax
jne 0x405bf5
cmp dword [ebp - 4], esi
je 0x405bb7
push edi
push 0xfffffffffffffff1
call fcn.00405397
push esi
push edi
call fcn.004060f5
jmp 0x405bfd
push edi
push 0xffffffffffffffe5
call fcn.00405397
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405d0c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x464250
push esi
call fcn.0040632f
push esi
call fcn.00405caf
mov edi, eax
test edi, edi
jne 0x405d2d
xor eax, eax
jmp 0x405d85
push edi
call fcn.004065c3
test byte [0x47aefc], 0x80
je 0x405d4a
mov ax, word [edi]
test ax, ax
je 0x405d29
cmp ax, 0x5c
je 0x405d29
sub edi, esi
sar edi, 1
jmp 0x405d64
call fcn.00406672
test eax, eax
je 0x405d5e
test byte [eax], 0x10
je 0x405d29
push esi
call fcn.00405c50
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405d50
call fcn.00405c04
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405e00
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405e1f
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405e25
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x405e54
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a558]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a55c]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405ea4
test edi, edi
jne 0x405e61
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405e9e
Function at 0x405f7b
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x4688e8], 0x55004e
mov dword [0x4688ec], 0x4c
mov edi, 0x400
mov ebp, 0x4688e8
je 0x405fd1
push 1
push 0
push esi
call fcn.00405e25
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4060f0
cmp eax, edi
jg 0x4060f0
mov esi, 0x4690e8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4060f0
cmp eax, edi
jg 0x4060f0
push esi
push ebp
push str._ls_ls_r_n
push 0x4684e8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x47aef4]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406351
push 4
push 0xc0000000
push esi
call fcn.00405e25
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x4060f0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4060e9
push edi
push esi
push ebp
call fcn.00405ea8
test eax, eax
je 0x4060e9
push str._Rename__r_n
push esi
call fcn.00405d8a
test eax, eax
jne 0x406087
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4060bc
add eax, 0xa
push 0x40a560
push eax
call fcn.00405d8a
mov ebp, eax
test ebp, ebp
je 0x4060b8
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4060a9
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4060a3
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x4060be
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4684e8
push eax
call fcn.00405de0
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405ed7
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4060f5
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406118
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405f7b
pop ecx
pop ecx
inc dword [0x47af90]
ret 8
Function at 0x4061fd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x4000
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040619c
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x40626d
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x3ffe], 0
test edi, edi
pop edi
jne 0x40626d
cmp dword [ebp + 0xc], 1
je 0x406271
cmp dword [ebp + 0xc], 2
je 0x406271
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x406699
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4066bd
xor eax, eax
test eax, eax
je 0x4066d0
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4066d0
xor ecx, ecx
jmp 0x4066d3
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4067fc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x406833
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40680d
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406808
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406864
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x406846
pop edi
not eax
pop esi
ret 0xc

Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x432072
mov ebx, 0x40c7d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x257e2671
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x432060
nop
nop
nop
nop
mov eax, section..data_1
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4320d2
nop
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x723b2918
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x1001405a
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1005ce9d
call fcn.1005c418
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x1c], edi
test dl, dl
je 0x1001415f
cmp byte [ebp + 0x2c], 0
je 0x10014135
mov dword [ebp - 0x18], 0x57b6
cmp dword [ebp - 0x18], 0x5994
jle 0x100140ce
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x14], 0x1565
xor edi, edi
mov eax, ebx
mov ecx, 0x10078798
xor eax, edi
cdq
push edx
push eax
call fcn.1000f531
inc edi
cmp edi, 0x2cb9
jl 0x100140a1
add ebx, esi
dec dword [ebp - 0x14]
jne 0x1001409f
inc esi
cmp esi, 0x7db0
jl 0x10014096
mov edi, dword [ebp - 0x1c]
and dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0x53fa
jge 0x10014109
mov edx, str.efpx_rdptdbzb_wfqcxnle_pqogpid_qxyqwqfvf_ujfbtcvnm_jlp
mov ecx, 0x10078798
call fcn.10012752
jmp 0x10014109
mov edx, dword [ebp + 8]
mov dword [edx], 0
cmp dword [edx], 2
jg 0x10014195
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov ecx, dword [edi]
mov eax, dword [ebx]
cmp dword [eax + ecx*4], 0
jne 0x10014195
cmp dword [esi], 0
jne 0x10014195
inc dword [edx]
cmp dword [edx], 2
jle 0x1001411d
jmp 0x10014195
mov esi, dword [ebp + 0x18]
mov dword [esi], 0
jmp 0x10014158
mov ecx, dword [ebp + 0x24]
mov edx, 0x77c5
push 0x3595
push 0
call fcn.100162c0
inc dword [esi]
pop ecx
pop ecx
cmp dword [esi], 1
jl 0x10014140
jmp 0x10014195
cmp byte [ebp + 0x20], 0
je 0x10014176
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_EndPaint]
jmp 0x10014195
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x1c]
mov edi, dword [esi]
mov edx, dword [eax]
mov ecx, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
mov dword [edx + edi*4], eax
mov ecx, dword [esi]
imul ecx, dword [edx + edi*4]
mov eax, dword [ebp + 0x28]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100160f1
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1005cff2
call fcn.1005c418
sub esp, 0x40
mov byte [ebp - 0x1c], dl
push ebx
mov ebx, ecx
mov dword [ebp - 0x30], ebx
push esi
push edi
mov dword [ebp - 0x10], esp
test dl, dl
je 0x1001624b
mov dword [ebp - 0x2c], 0x331d
cmp dword [ebp - 0x2c], 0x35f9
jle 0x10016186
xor esi, esi
mov dword [ebp - 0x28], esi
xor edi, edi
mov dword [ebp - 0x24], edi
mov eax, esi
xor ecx, ecx
cdq
idiv edi
mov dword [ebp - 0x20], ecx
mov edi, edx
mov ebx, ecx
mov esi, 0x5022
mov eax, ebx
mov ecx, 0x10078798
xor eax, edi
cdq
push edx
push eax
call fcn.1000f531
dec ebx
dec esi
jne 0x10016141
mov ecx, dword [ebp - 0x20]
inc ecx
mov dword [ebp - 0x20], ecx
cmp ecx, 0x3c1
jl 0x1001613a
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
inc edi
mov dword [ebp - 0x24], edi
cmp edi, 0x2565
jl 0x1001612e
inc esi
mov dword [ebp - 0x28], esi
cmp esi, 0x5b1a
jl 0x10016129
mov ebx, dword [ebp - 0x30]
and dword [ebp - 4], 0
cmp dword [ebp - 0x2c], 0x2f5d
jge 0x100161c1
mov edx, str.oazw_dizmzgg_jthmwj_syfjfnvt_ljscldxfe_yruqlys_iuubuusg_uunsiyrz_uldwwkig_zexcy_zrppy_wwdjzq
mov ecx, 0x10078798
call fcn.10012752
jmp 0x100161c1
and dword [ebp - 0x38], 0
xor eax, eax
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x48]
mov esi, dword [ebp + 0xc]
push esi
call fcn.1000f710
mov eax, dword [0x1008195c]
test al, 1
jne 0x1001620f
or eax, 1
mov dword [0x1008195c], eax
push 0x86b6
mov byte [ebp - 4], 3
call fcn.1000f487
pop ecx
mov word [0x10081948], ax
mov byte [ebp - 4], 2
test esi, esi
je 0x1001622a
lea eax, [ebp - 0x48]
mov dl, 1
push 1
push eax
mov ecx, 0x10081948
call fcn.1001581f
pop ecx
pop ecx
dec esi
jne 0x10016213
lea eax, [ebp - 0x48]
cmp ebx, eax
je 0x1001623d
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.10010210
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.10010352
jmp 0x10016263
push 0
lea eax, [ebp - 0x15]
mov byte [ebp - 0x15], 0
push eax
push ecx
mov edx, 0x5c8d
call fcn.10014fff
add esp, 0xc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10016727
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1005d02d
call fcn.1005c418
sub esp, 0x38
push ebx
push esi
mov byte [ebp - 0x18], cl
mov dword [ebp - 0x24], 0x1936
cmp dword [ebp - 0x24], 0x1ae3
push edi
mov dword [ebp - 0x10], esp
jle 0x100167ba
xor esi, esi
mov dword [ebp - 0x20], esi
xor edi, edi
mov dword [ebp - 0x1c], edi
xor ebx, ebx
mov eax, edi
and dword [ebp - 0x2c], 0
cdq
idiv ebx
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x28], esi
sub esi, edx
mov eax, esi
mov ecx, 0x10078798
xor eax, edi
cdq
push edx
push eax
call fcn.1000f531
inc edi
cmp edi, 0x4e6b
jl 0x1001676a
mov esi, dword [ebp - 0x20]
inc ebx
mov edi, dword [ebp - 0x1c]
cmp ebx, 0xec1
jl 0x10016759
inc edi
mov dword [ebp - 0x1c], edi
cmp edi, 0x6336
jl 0x10016757
inc esi
mov dword [ebp - 0x20], esi
cmp esi, 0x7d3d
jl 0x10016752
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_TranslateMDISysAccel]
and dword [ebp - 4], 0
cmp dword [ebp - 0x24], 0x1659
jge 0x100167d6
mov edx, str.cmhil_easabyh_dvxlqljsr_yrvgcv_jtaljgm_omw_ihuydj_ofmsfb
mov ecx, 0x10078798
call fcn.10012752
or dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x18], 0
je 0x100168d9
and dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
push 2
pop ebx
lea eax, [ebp + 8]
mov dword [ebp - 4], ebx
push eax
push ecx
push 0x5146
push ecx
xor esi, esi
lea edx, [ebp - 0x44]
inc esi
push esi
push ecx
push ecx
call fcn.100162d9
mov eax, dword [0x100805b4]
add esp, 0x1c
test al, 1
jne 0x10016841
or eax, esi
mov dword [0x100805b4], eax
push 0xc46a
mov byte [ebp - 4], 3
call fcn.10005d34
mov byte [0x10081951], al
mov byte [ebp - 4], bl
mov eax, dword [0x100805b4]
pop ecx
test al, 2
jne 0x10016863
or eax, ebx
mov dword [0x100805b4], eax
push 0x11e2a
mov byte [ebp - 4], 4
call fcn.10005d34
pop ecx
mov byte [0x10081950], al
mov byte [ebp - 4], bl
push 0x76e5
push 0x28c3
push esi
push 0x10081950
lea eax, [ebp - 0x44]
mov edx, 0x10081951
push eax
lea eax, [ebp + 8]
mov ecx, 0x58a5
push eax
push esi
push 0x7716
push esi
push 0x2cb0
push 0x63c9
call fcn.100164c8
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x44]
add esp, 0x2c
cmp ecx, eax
je 0x100168b2
push 0xffffffffffffffff
push 0
push eax
call fcn.100103d1
push 0
push esi
lea ecx, [ebp - 0x44]
call fcn.1001050c
jmp 0x10016906
push 0x253d
push 0x1396
push 0x1453
push 0x7cb
push 0x1d29
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_PatBlt]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10016917
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ecx + 4], edx
push edi
inc esi
lea edi, [ecx + 8]
mov ebx, 0x270
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi], edx
lea edi, [edi + 4]
cmp esi, ebx
jl 0x1001692e
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
pop ebp
ret 8
Function at 0x10016950
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov edx, 0x100805c4
push edi
mov esi, edx
mov edi, 0x7fffffff
mov ecx, dword [esi + 0x9c4]
xor ecx, dword [esi + 0x9c0]
and ecx, edi
xor ecx, dword [esi + 0x9c0]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0xff4]
xor eax, ecx
mov dword [esi], eax
add esi, 4
cmp esi, 0x10080950
jl 0x1001695e
mov esi, 0x9908b0df
mov ecx, dword [edx + 0xd50]
xor ecx, dword [edx + 0xd4c]
and ecx, edi
xor ecx, dword [edx + 0xd4c]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, esi
xor eax, ecx
xor eax, dword [edx]
mov dword [edx + 0x38c], eax
add edx, 4
cmp edx, 0x10080bf4
jl 0x1001699e
mov ecx, dword [0x10081940]
xor ecx, dword [0x100805c4]
and ecx, edi
xor ecx, dword [0x10081940]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
and dword [0x100805c0], 0
and eax, esi
shr ecx, 1
xor eax, ecx
xor eax, dword [0x10080bf4]
mov dword [0x10080f80], eax
pop esi
ret

Function at 0x100175bb
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1005d05d
call fcn.1005c418
sub esp, 0x20
cmp byte [ebp + 8], 0
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c], esi
je 0x100176ba
mov dword [ebp - 0x20], 0x7c4b
cmp dword [ebp - 0x20], 0x7e88
jle 0x10017662
push 0
call dword [sym.imp.GDI32.dll_CreatePenIndirect]
xor esi, esi
xor edi, edi
mov dword [ebp - 0x1c], edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
and dword [ebp - 0x28], 0
mov ecx, ebx
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x24], edi
sar edi, cl
mov eax, edi
mov ecx, 0x10078798
xor eax, ebx
or eax, esi
cdq
push edx
push eax
call fcn.1000f531
inc ebx
cmp ebx, 0x6e27
jl 0x1001760f
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
inc ebx
mov dword [ebp - 0x18], ebx
cmp ebx, 0x3ea5
jl 0x10017601
inc edi
mov dword [ebp - 0x1c], edi
cmp edi, 0x573e
jl 0x100175fc
inc esi
cmp esi, 0x56e1
jl 0x100175f7
push 0
push 0x41b
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov esi, dword [ebp - 0x2c]
mov dword [esi], 0
cmp dword [esi], 3
jge 0x10017682
mov edx, dword [ebp + 0xc]
mov ecx, dword [esi]
mov eax, dword [edx]
mov dword [eax + ecx*4], 0x2b05
inc dword [esi]
cmp dword [esi], 3
jl 0x10017670
and dword [ebp - 4], 0
cmp dword [ebp - 0x20], 0x7bdb
jge 0x1001769e
mov edx, str.atuoeuta_ybtrsfgox_kiwqt_nfgmams_rlwaplepr_vpzlvcauw_dhyyuycc_avzj
mov ecx, 0x10078798
call fcn.10012752
jmp 0x100176e4
push 0x1265
push 0xc43
lea eax, [ebp - 0x11]
mov byte [ebp - 0x11], 0
push eax
push 0
push 0x5019
push 1
mov edx, 0x5251
xor cl, cl
call fcn.1001749b
add esp, 0x18
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret