joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000e642
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x100a3330]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, eax
mov dword [ebp - 0x25c], ebx
test ebx, ebx
je 0x1000e82c
xor eax, eax
lea edi, [ebp - 0x220]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x220]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0xffffffffffffffec
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x100
je 0x1000e6f2
xor eax, eax
lea edi, [ebp - 0x230]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x230]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp - 0x228]
mov eax, dword [ebp - 0x218]
sub ecx, dword [ebp - 0x230]
sub eax, dword [ebp - 0x220]
cmp eax, ecx
jne 0x1000e82c
mov ecx, dword [ebp - 0x224]
mov eax, dword [ebp - 0x214]
sub ecx, dword [ebp - 0x22c]
sub eax, dword [ebp - 0x21c]
cmp eax, ecx
jne 0x1000e82c
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea eax, [ebp - 0x260]
push eax
push ebx
call edi
xor esi, esi
push esi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x1000e71e
lea ecx, [ebp - 0x264]
push ecx
push eax
call edi
mov eax, dword [ebp - 0x260]
cmp eax, dword [ebp - 0x264]
je 0x1000e82c
xor eax, eax
cmp dword [ebp - 0x220], eax
push esi
cmovge eax, dword [ebp - 0x220]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x220], eax
xor eax, eax
cmp dword [ebp - 0x21c], eax
cmovge eax, dword [ebp - 0x21c]
xor ebx, ebx
cmp dword [ebp - 0x218], ebx
mov dword [ebp - 0x270], eax
cmovge ebx, dword [ebp - 0x218]
mov dword [ebp - 0x21c], eax
xor eax, eax
cmp dword [ebp - 0x214], eax
mov dword [ebp - 0x218], ebx
cmovge eax, dword [ebp - 0x214]
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x214], eax
call esi
push 1
mov edi, eax
call esi
sub ebx, dword [ebp - 0x268]
cmp ebx, edi
jl 0x1000e82c
mov ecx, dword [ebp - 0x26c]
sub ecx, dword [ebp - 0x270]
cmp ecx, eax
jl 0x1000e82c
mov esi, dword [ebp - 0x25c]
lea edi, [ebp - 0x258]
push 0xa
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
xor edi, edi
push edi
push esi
call dword [sym.imp.USER32.dll_MonitorFromWindow]
mov ebx, eax
mov dword [ebp - 0x258], 0x28
lea eax, [ebp - 0x258]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
test eax, eax
je 0x1000e810
xor ecx, ecx
mov eax, ebx
cmp dword [ebp - 0x234], 1
cmovne eax, ecx
mov dword [ebp - 0x25c], eax
mov edi, eax
push 0x208
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.USER32.dll_RealGetWindowClassW]
xor eax, eax
test edi, edi
setne al
jmp 0x1000e82e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10056b99
leave
ret
Function at 0x1000e83d
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x1000e887
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x1000e876
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
je 0x1000e887
push esi
call dword [sym.imp.USER32.dll_IsZoomed]
jmp 0x1000e889
xor eax, eax
pop esi
leave
ret
Function at 0x10010815
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x1007edeb
call fcn.10057cb0
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
push 0x60
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x10010892
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x10010892
call fcn.1000f342
mov esi, eax
jmp 0x10010989
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x100108b5
call fcn.1000f342
jmp 0x1001097c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x100108ab
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea ecx, [esi + 1]
cmp ecx, esi
jae 0x100108e8
mov esi, 0x8007000e
jmp 0x1001097e
push 2
pop edx
mov byte [ebp - 4], 2
call fcn.1000f7b4
cmp eax, 0x400
jbe 0x10010909
push eax
lea ecx, [ebp - 0x418]
call fcn.1000f31d
jmp 0x1001092b
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x1001092b
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
je 0x100108de
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x41c]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x100108ab
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.100106c0
mov esi, eax
test edi, edi
je 0x10010989
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x100109a2
lea ecx, [ebp - 0x418]
call fcn.1000f308
mov eax, esi
call fcn.10057bfd
ret 0x10
Function at 0x10010e5c
Capabilities:
Accept command line arguments

Disassembly:
push 0x14
mov eax, 0x1007ee66
call fcn.10057c0e
push 0x66
pop edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x10]
call fcn.10001a8b
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push str._startby_d
call fcn.10001a8b
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax - 0xc]
add eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10002819
push ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
push dword [eax]
call fcn.10010e00
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx - 0xc]
sub ecx, eax
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
call fcn.100028df
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x10]
call fcn.10002970
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.1000210b
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.1000210b
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.10010e37
mov esi, dword [ebp - 0x18]
add esp, 0xc
mov ecx, dword [ebp - 0x14]
test eax, eax
cmove esi, edi
add ecx, 0xfffffff0
mov dword [ebp - 0x18], esi
call fcn.1000210b
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.1000210b
mov eax, esi
call fcn.10057bd7
ret

Function at 0x1001117a
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0x4c
mov eax, 0x1007eeaa
call fcn.10057c0e
mov ebx, edx
and dword [ebp - 0x1c], 0
xor edi, edi
call fcn.10002060
push eax
lea ecx, [ebp - 0x10]
call fcn.10001827
and dword [ebp - 4], edi
mov edx, ebx
push ecx
lea ecx, [ebp - 0x14]
call fcn.10012c8d
pop ecx
mov byte [ebp - 4], 1
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10011255
mov byte [ebp - 4], 2
call fcn.10002060
push eax
lea ecx, [ebp - 0x18]
call fcn.10001827
push 3
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 1
push str._startby_d
push eax
call fcn.10008741
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push esi
push dword [ebp + 8]
push str._s__s
push eax
call fcn.10008741
add esp, 0x1c
mov byte [ebp - 4], 1
lea ecx, [esi - 0x10]
call fcn.1000210b
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.10058f30
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], esi
mov esi, dword [ebp - 0x10]
push eax
mov dword [ebp - 0x54], 0x40
mov dword [ebp - 0x4c], str.open
mov dword [ebp - 0x44], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x10011258
push dword [ebp - 0x20]
inc edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10011258
mov esi, dword [ebp - 0x10]
push 0
push 0
push edi
push ebx
push 3
call fcn.10052f8e
mov ecx, eax
call fcn.100538f4
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.1000210b
lea ecx, [esi - 0x10]
call fcn.1000210b
mov eax, edi
call fcn.10057bd7
ret
Function at 0x10012885
Capabilities:
Get common file path

Disassembly:
push 8
mov eax, 0x1007e685
call fcn.10057c0e
mov edi, ecx
mov dword [ebp - 0x14], edi
call fcn.10002060
push eax
lea ecx, [ebp - 0x10]
call fcn.10001827
xor esi, esi
lea ecx, [ebp - 0x10]
push esi
push 0x1a
push 0x200
mov dword [ebp - 4], esi
call fcn.10001c05
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.100029e4
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x100128e6
push 0x10095f78
mov ecx, edi
call fcn.10001a8b
lea ecx, [esi - 0x10]
jmp 0x10012936
dec eax
lea ecx, [ebp - 0x10]
push eax
call fcn.100029c0
cmp ax, 0x5c
je 0x1001290c
mov esi, 0x10096088
push esi
call fcn.10001954
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.10001584
mov esi, str.HaoKanWallPaper_
push esi
call fcn.10001954
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.10001584
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
push esi
call fcn.1000122a
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.1000210b
mov eax, edi
call fcn.10057bd7
ret

Function at 0x100129e3
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x1007f167
call fcn.10057c0e
lea ecx, [ebp - 0x14]
call fcn.10012943
and dword [ebp - 4], 0
push str.AppTest.txt
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.100027c1
mov ecx, dword [ebp - 0x14]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.1000210b
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.1000210b
mov eax, esi
call fcn.10057bd7
ret
Function at 0x10012a36
Capabilities:
Get hostname

Disassembly:
push 0x16c
mov eax, 0x1007f1c4
call fcn.10057c42
mov esi, edx
mov eax, ecx
mov dword [ebp - 0x178], eax
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x170], eax
call fcn.10002060
push eax
lea ecx, [ebp - 0x16c]
call fcn.10001827
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.10002060
push eax
lea ecx, [ebp - 0x168]
call fcn.10001827
mov byte [ebp - 4], 1
call fcn.10002060
push eax
lea ecx, [ebp - 0x164]
call fcn.10001827
mov byte [ebp - 4], 2
lea edi, [ebp - 0x20]
xor eax, eax
mov ecx, 0x1000
stosd dword es:[edi], eax
mov dword [ebp - 0x174], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x174]
push eax
push ecx
lea ecx, [ebp - 0x168]
call fcn.10001c05
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x168]
call fcn.100029e4
push esi
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x170]
push eax
call fcn.100027c1
add esp, 0xc
push eax
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 3
call fcn.10002970
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x170]
lea ecx, [ecx - 0x10]
call fcn.1000210b
push 3
push dword [ebp - 0x164]
lea eax, [ebp - 0xdc]
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0xe0], eax
call fcn.100012f5
mov byte [ebp - 4], 4
push dword [ebp - 0xe0]
call fcn.100013f3
pop ecx
push eax
push dword [ebp - 0xe0]
lea ecx, [ebp - 0x16c]
call fcn.100017ad
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 2
cmp dword [ebp - 0xe0], eax
je 0x10012b6e
push dword [ebp - 0xe0]
call fcn.1005c8b9
pop ecx
lea eax, [ebp - 0xb8]
push eax
call fcn.10002a10
mov eax, dword [ebp - 0x16c]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.100032d6
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.1000337c
mov esi, str.0123456789ABCDEF
lea edi, [ebp - 0x34]
add esp, 0x18
mov edx, ebx
xor eax, eax
movsd dword es:[edi], dword [esi]
push 8
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
cmp edx, 0x21
jae 0x10012be8
movzx ecx, byte [ebp + ebx - 0x20]
mov eax, ecx
and ecx, 0xf
shr eax, 4
inc ebx
mov al, byte [ebp + eax - 0x34]
mov byte [ebp + edx - 0x58], al
mov al, byte [ebp + ecx - 0x34]
mov byte [ebp + edx - 0x57], al
add edx, 2
cmp ebx, 0x10
jb 0x10012bbd
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x160], eax
lea ecx, [ebp - 0x160]
push 3
lea eax, [ebp - 0x58]
push eax
call fcn.100014bc
mov byte [ebp - 4], 5
push dword [ebp - 0x160]
call fcn.10001954
pop ecx
push eax
push dword [ebp - 0x160]
lea ecx, [ebp - 0x164]
call fcn.10001d6b
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x160], eax
je 0x10012c45
push dword [ebp - 0x160]
call fcn.1005c8b9
pop ecx
mov esi, dword [ebp - 0x178]
lea ecx, [ebp - 0x164]
push 0x10
push 0xa
push esi
call fcn.100028df
mov ecx, dword [ebp - 0x164]
lea ecx, [ecx - 0x10]
call fcn.1000210b
mov ecx, dword [ebp - 0x168]
add ecx, 0xfffffff0
call fcn.1000210b
mov ecx, dword [ebp - 0x16c]
add ecx, 0xfffffff0
call fcn.1000210b
mov eax, esi
call fcn.10057bec
ret
Function at 0x10012e67
Capabilities:
Check mutex on windows

Disassembly:
push esi
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x10012e91
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10012e91
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret
xor eax, eax
inc eax
pop esi
ret

Function at 0x100154b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x100a5588], 0
push esi
mov esi, dword [ebp + 8]
jne 0x100155bb
push 0x100a558c
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x100155a9
test esi, esi
jne 0x1001559e
push ebx
push edi
push str.advapi32.dll
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x1001557e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptAcquireContextA
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x1001557e
push str.CryptGenRandom
push esi
call edi
mov dword [ebp - 8], eax
test eax, eax
je 0x1001557e
push str.CryptReleaseContext
push esi
call edi
mov edi, eax
test edi, edi
je 0x1001557e
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp + 8]
push eax
call ebx
test eax, eax
je 0x1001557e
lea eax, [ebp - 4]
push eax
push 4
push dword [ebp + 8]
call dword [ebp - 8]
push 0
push dword [ebp + 8]
mov esi, eax
call edi
test esi, esi
je 0x1001557e
mov eax, dword [ebp - 4]
movzx esi, al
shl esi, 8
movzx eax, ah
or esi, eax
movzx eax, byte [ebp - 2]
shl esi, 8
or esi, eax
movzx eax, byte [ebp - 1]
shl esi, 8
or esi, eax
jmp 0x10015592
push 0
call fcn.10062660
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
test esi, esi
mov eax, 1
pop edi
cmove esi, eax
pop ebx
mov dword [0x100a5588], esi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_SwitchToThread]
nop
call esi
cmp dword [0x100a5588], 0
je 0x100155b0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100155c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
add ecx, 0xdeadbeef
push ebx
mov ebx, dword [ebp + 8]
add ecx, edx
push esi
mov esi, ecx
mov dword [ebp + 0x10], esi
push edi
mov edi, ecx
cmp edx, 0xc
jbe switch.0x100156cc
add edx, 0xfffffff3
mov eax, 0xaaaaaaab
mul edx
mov eax, edx
shr eax, 3
inc eax
mov dword [ebp - 4], eax
nop dword [eax + eax]
movzx esi, byte [ebx + 7]
movzx eax, byte [ebx + 6]
movzx edx, byte [ebx + 0xb]
shl esi, 8
add esi, eax
shl edx, 8
movzx eax, byte [ebx + 5]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 4]
add edi, eax
shl esi, 8
movzx eax, byte [ebx + 0xa]
add edi, esi
movzx esi, byte [ebx + 8]
add edx, eax
movzx eax, byte [ebx + 9]
add esi, ecx
shl edx, 8
add edx, eax
shl edx, 8
add esi, edx
mov edx, dword [ebp + 8]
mov ebx, esi
rol ebx, 4
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx]
shl ecx, 8
add ecx, eax
sub ecx, esi
add esi, edi
add ecx, dword [ebp + 0x10]
xor ebx, ecx
sub edi, ebx
mov eax, ebx
add ebx, esi
rol eax, 6
xor eax, edi
sub esi, eax
mov edx, eax
rol edx, 8
add eax, ebx
xor edx, esi
sub ebx, edx
mov esi, edx
rol esi, 0x10
add edx, eax
xor esi, ebx
mov ebx, dword [ebp + 8]
mov edi, esi
sub eax, esi
ror edi, 0xd
add esi, edx
xor edi, eax
mov dword [ebp + 0x10], esi
sub edx, edi
mov ecx, edi
rol ecx, 4
add ebx, 0xc
xor ecx, edx
mov dword [ebp + 8], ebx
mov edx, dword [ebp + 0xc]
add edi, esi
sub edx, 0xc
sub dword [ebp - 4], 1
mov dword [ebp + 0xc], edx
jne 0x10015600
cmp edx, 0xc
ja 0x10015738
jmp dword [edx*4 + 0x10015788]
movzx eax, byte [ebx + 0xb]
shl eax, 0x18
add ecx, eax
movzx eax, byte [ebx + 0xa]
shl eax, 0x10
add ecx, eax
movzx eax, byte [ebx + 9]
shl eax, 8
add ecx, eax
movzx eax, byte [ebx + 8]
add ecx, eax
movzx eax, byte [ebx + 7]
shl eax, 0x18
add edi, eax
movzx eax, byte [ebx + 6]
shl eax, 0x10
add edi, eax
movzx eax, byte [ebx + 5]
shl eax, 8
add edi, eax
movzx eax, byte [ebx + 4]
add edi, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
add esi, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
add esi, eax
movzx eax, byte [ebx + 1]
shl eax, 8
add esi, eax
movzx eax, byte [ebx]
add esi, eax
mov dword [ebp + 0x10], esi
xor ecx, edi
mov eax, edi
rol eax, 0xe
sub ecx, eax
mov eax, ecx
mov esi, ecx
xor esi, dword [ebp + 0x10]
rol eax, 0xb
sub esi, eax
xor edi, esi
mov eax, esi
ror eax, 7
sub edi, eax
mov eax, edi
xor ecx, edi
rol eax, 0x10
sub ecx, eax
mov eax, ecx
mov edx, ecx
rol eax, 4
xor edx, esi
sub edx, eax
mov eax, edx
xor edi, edx
rol eax, 0xe
sub edi, eax
mov eax, edi
xor ecx, edi
ror eax, 8
sub ecx, eax
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100177a7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
call fcn.100174a4
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x100177cb
push 2
pop eax
jmp 0x1001782f
push ebx
push edi
call fcn.100174a4
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x100177e4
push 0xd
pop esi
jmp 0x10017825
push edi
call fcn.100174a4
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
test ecx, ecx
je 0x100177df
mov eax, dword [ebp + 0x14]
push 8
pop edx
cmp ecx, dword [eax]
mov dword [eax], ecx
cmova esi, edx
test esi, esi
jne 0x10017825
cmp dword [ebp + 0x10], esi
jne 0x10017811
push 0x57
jmp 0x100177e1
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [ebp + 0x10]
call fcn.10059090
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x10017833
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x94
mov eax, 0x1007f484
call fcn.10057c42
mov eax, dword [ebp + 0xc]
xor edi, edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x9c], eax
call fcn.100174b3
push eax
lea ecx, [ebp - 0x94]
call fcn.1001a669
push esi
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], edi
call fcn.1001a804
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.1001a7e4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100178a7
push 2
pop esi
jmp 0x1001790a
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x100178ba
push 0xd
pop esi
jmp 0x10017903
mov eax, dword [ebp - 0x9c]
xor esi, esi
push 8
pop ecx
cmp edi, dword [eax]
mov dword [eax], edi
cmova esi, ecx
test esi, esi
jne 0x10017903
mov eax, dword [ebp - 0xa0]
test eax, eax
jne 0x100178de
push 0x57
jmp 0x100178b7
and dword [ebp - 0x98], 0
lea ecx, [ebp - 0x98]
push 0
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x98], edi
push 0xc
pop eax
cmovne esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x94]
call fcn.10001421
mov eax, esi
call fcn.10057bec
ret

Function at 0x10017a2f
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
push 8
pop ecx
test ax, ax
push 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x10017a52
or esi, 1
push 1
call edi
test ax, ax
jns 0x10017a5e
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x10017a6a
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x10017a76
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x1001914e
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esi + 0xec]
call fcn.1001ac15
mov edi, dword [ebp + 8]
test eax, eax
jle 0x100191a4
push ebx
lea ecx, [esi + 0xec]
mov byte [ebp + 0xb], 0
call fcn.1001a7c5
lea ecx, [ebp + 0xb]
push ecx
push dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, eax
push dword [ebp + 0xc]
push edi
call dword [edx]
cmp byte [ebp + 0xb], 0
jne 0x100191ff
lea ecx, [esi + 0xec]
inc ebx
call fcn.1001ac15
cmp ebx, eax
jl 0x1001916d
sub edi, 0x100
je 0x10019266
sub edi, 4
je 0x10019203
dec edi
sub edi, 1
jne 0x1001925d
push dword [ebp + 0xc]
and dword [ebp + 8], edi
call fcn.1006aa8b
pop ecx
mov ecx, dword [esi + 0x6c]
lea edx, [ebp + 8]
push reloc.OLEAUT32.dll_VariantCopyInd
mov word [ebp + 8], ax
push edx
mov eax, dword [ecx]
push 0x1001a4da
call dword [eax + 0x100]
mov esi, eax
test esi, esi
je 0x1001925d
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xf4]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov al, 1
jmp 0x1001925f
cmp dword [esi + 0x70], 0
je 0x1001925d
xor eax, eax
mov dword [ebp - 0x20], 6
mov word [ebp - 2], ax
xorps xmm0, xmm0
mov eax, dword [ebp + 0xc]
mov word [ebp - 0xc], ax
mov eax, dword [esi + 0x80]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x84]
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0xa], xmm0
mov dword [ebp - 0x10], eax
call fcn.10017a2f
mov word [ebp - 0xa], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x70]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x10c]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x1001925d
mov ecx, dword [esi + 0x70]
test ecx, ecx
je 0x100192b3
mov eax, dword [ecx]
call dword [eax + 0xcc]
test al, al
je 0x100192b3
mov ecx, dword [esi + 0x70]
mov eax, dword [ecx]
call dword [eax + 0xd8]
test al, al
je 0x100192b3
mov ecx, dword [esi + 0x70]
push str.RichEdit
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.10058bfc
pop ecx
pop ecx
test eax, eax
je 0x100192b3
mov ecx, dword [esi + 0x70]
call fcn.10028b9c
test al, al
jne 0x1001925d
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, esi
setns al
movzx eax, al
push eax
call fcn.1001a09a
jmp 0x1001925f