joyce8/EMBER2024-capa huggingface dataset:
Function at 0x580105
Capabilities:
Create thread

Disassembly:
mov eax, 0x6bb1ad
call fcn.00664608
sub esp, 0x164
push esi
push edi
mov esi, ecx
call fcn.0057f5fc
mov edi, eax
test edi, edi
jne 0x58029c
push dword [ebp + 8]
lea ecx, [esi + 0x28]
push dword [esi + 0x24]
push ecx
mov ecx, esi
call fcn.0057f52b
test eax, eax
jne 0x58029c
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], 0xf
push str.creating_monitor_thread
mov byte [ebp + 8], bl
lea ecx, [ebp - 0x28]
push dword [ebp + 8]
mov dword [ebp - 0x28], ebx
push 0x17
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
call fcn.0041039b
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
mov ecx, esi
call fcn.0057ff53
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x5801b0
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], ecx
cmp eax, 0x1000
jb 0x5801a7
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004279ae
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
xor eax, eax
lea ebx, [esi + 0x84]
push ebx
push eax
push esi
push 0x5800ee
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [esi + 0x80], eax
test eax, eax
jne 0x58023c
xor ebx, ebx
lea ecx, [ebp - 0xd8]
inc ebx
push ebx
call fcn.0043cc35
push str._creating_monitor_thread
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.failure
lea eax, [ebp - 0xd8]
push eax
call fcn.00445564
mov ecx, eax
call fcn.0044578b
push eax
call fcn.00445564
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xd4]
call fcn.00440063
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
mov ecx, esi
call fcn.0057ff53
lea ecx, [ebp - 0x28]
call fcn.00410858
lea ecx, [ebp - 0xd8]
jmp 0x580296
push 1
lea ecx, [ebp - 0x170]
call fcn.0043cc35
push dword [ebx]
lea eax, [ebp - 0x170]
mov dword [ebp - 4], 3
push str.created_monitor_thread
push eax
call fcn.00445564
mov ecx, eax
call fcn.0044578b
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x16c]
call fcn.00440063
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
mov ecx, esi
call fcn.0057ff53
lea ecx, [ebp - 0x40]
call fcn.00410858
lea ecx, [ebp - 0x170]
call fcn.0043d111
pop ebx
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x5803ac
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
mov dword [eax + 0x1c], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
xor eax, eax
ret 4
Function at 0x580a40
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 4], ebx
push edi
mov edi, dword [esp + 0x18]
mov dh, byte [edi]
mov al, byte [edi + 4]
test ebx, ebx
je 0x580a98
push ebp
mov ebp, dword [esp + 0x14]
push esi
inc dh
movzx esi, dh
mov dl, byte [esi + edi + 8]
add al, dl
movzx ecx, al
mov byte [esp + 0x1c], al
mov al, byte [ecx + edi + 8]
mov byte [esi + edi + 8], al
mov byte [ecx + edi + 8], dl
mov al, byte [esi + edi + 8]
add al, dl
movzx eax, al
mov al, byte [eax + edi + 8]
xor byte [ebp], al
inc ebp
mov al, byte [esp + 0x1c]
sub ebx, 1
jne 0x580a5e
pop esi
pop ebp
movzx ecx, dh
mov dword [edi], ecx
movzx ecx, al
mov eax, dword [esp + 8]
mov dword [edi + 4], ecx
pop edi
pop ebx
pop ecx
ret 0xc
Function at 0x5822aa
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ebx
push ebp
push edi
mov edi, dword [esp + 0x18]
xor edx, edx
push 3
pop ebp
mov ebx, dword [esp + 0x20]
lea eax, [edi + 2]
div ebp
lea eax, [eax*4 + 1]
cmp dword [ebx], eax
jae 0x5822d5
push 6
mov dword [ebx], eax
pop eax
jmp 0x5823c4
xor edx, edx
mov eax, edi
div ebp
push esi
mov esi, dword [esp + 0x20]
imul ecx, eax, 3
xor eax, eax
test ecx, ecx
je 0x58235f
xor edx, edx
lea eax, [ecx - 1]
div ebp
mov edx, dword [esp + 0x18]
mov ebp, dword [0x79a448]
inc eax
imul ecx, eax, 3
mov ebx, eax
mov dword [esp + 0x10], ecx
movzx ecx, byte [edx]
shr ecx, 2
mov al, byte [ecx + ebp]
mov byte [esi], al
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
and ecx, 3
shr eax, 4
shl ecx, 4
add ecx, ebp
mov al, byte [eax + ecx]
mov byte [esi + 1], al
movzx eax, byte [edx + 2]
movzx ecx, byte [edx + 1]
shr eax, 6
and ecx, 0xf
add eax, ebp
mov al, byte [eax + ecx*4]
mov byte [esi + 2], al
movzx eax, byte [edx + 2]
add edx, 3
and eax, 0x3f
mov al, byte [eax + ebp]
mov byte [esi + 3], al
add esi, 4
sub ebx, 1
jne 0x582304
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
jmp 0x582363
mov edx, dword [esp + 0x18]
cmp eax, edi
jae 0x5823b8
movzx ebp, byte [edx]
inc eax
mov dword [esp + 0x24], eax
cmp eax, edi
jae 0x582379
movzx ecx, byte [edx + 1]
jmp 0x58237b
xor ecx, ecx
mov edx, dword [0x79a448]
mov eax, ebp
shr eax, 2
shl ebp, 4
mov al, byte [eax + edx]
mov byte [esi], al
mov eax, ecx
shr eax, 4
add eax, ebp
and eax, 0x3f
mov al, byte [eax + edx]
mov byte [esi + 1], al
cmp dword [esp + 0x24], edi
jae 0x5823ac
and ecx, 0xf
mov al, byte [edx + ecx*4]
jmp 0x5823ae
mov al, 0x3d
mov byte [esi + 2], al
mov byte [esi + 3], 0x3d
add esi, 4
mov byte [esi], 0
sub esi, dword [esp + 0x20]
xor eax, eax
mov dword [ebx], esi
pop esi
pop edi
pop ebp
pop ebx
pop ecx
ret 0x10
Function at 0x589266
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
push esi
push 0
lea eax, [esp + 8]
mov esi, ecx
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x589339
call fcn.005bda9c
test al, al
jne 0x589339
call fcn.005fa115
cmp eax, 1
je 0x589339
cmp byte [0x7ec3bd], 0
je 0x5892c1
cmp byte [0x7ec3d1], 0
je 0x5892c1
cmp byte [esi + 0x60], 0
je 0x5892c1
mov ecx, dword [0x7ed4fc]
call fcn.005d1a08
test al, al
je 0x589339
cmp byte [0x7ec354], 0
push edi
je 0x5892fd
call fcn.004541ba
mov edi, dword [esi + 0x48]
mov ecx, dword [esi + 0x4c]
add edi, 0x1e
adc ecx, 0
cmp ecx, edx
ja 0x5892fd
jb 0x5892e6
cmp edi, eax
ja 0x5892fd
cmp byte [esi + 0x5c], 0
je 0x5892fd
inc dword [0x7ec3e0]
call fcn.004541ba
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], edx
cmp byte [0x7ec355], 0
je 0x589338
call fcn.004541ba
mov edi, dword [esi + 0x50]
mov ecx, dword [esi + 0x54]
add edi, 0x1e
adc ecx, 0
cmp ecx, edx
ja 0x589338
jb 0x589321
cmp edi, eax
ja 0x589338
cmp byte [esi + 0x5c], 0
je 0x589338
inc dword [0x7ec3dc]
call fcn.004541ba
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], edx
pop edi
pop esi
pop ecx
ret
Function at 0x58ba65
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x58a7dd
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebp - 4], 2
setle al
leave
ret

Function at 0x58ba85
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
push edi
xor edi, edi
push edi
push dword [ebp + 8]
call fcn.006807aa
pop ecx
pop ecx
test eax, eax
je 0x58baa7
xor al, al
jmp 0x58bb64
cmp dword [ebp + 0xc], edi
je 0x58bb4b
push esi
push 0x230
lea eax, [ebp - 0x230]
push edi
push eax
call fcn.006678b0
add esp, 0xc
lea eax, [ebp - 0x230]
mov esi, str.hh.exe
push 0x118
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
add eax, eax
lea ecx, [ebp - 0x230]
sub eax, esi
add ecx, eax
movzx eax, word [esi]
mov word [ecx + esi], ax
lea esi, [esi + 2]
test ax, ax
jne 0x58bae9
push dword [ebp + 0xc]
lea eax, [ebp - 0x668]
push dword [ebp + 8]
push str.ms_its:_s::_s
push 0x438
push eax
call fcn.00456c1c
lea eax, [ebp - 0x668]
push eax
lea eax, [ebp - 0x230]
push eax
push str.Opening_help_file:__S__S
call fcn.00427b28
add esp, 0x20
lea eax, [ebp - 0x668]
push 1
push edi
push eax
lea eax, [ebp - 0x230]
push eax
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop esi
jmp 0x58bb5a
push 1
push edi
push edi
push dword [ebp + 8]
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov al, cl
pop edi
leave
ret 8
Function at 0x58ccbc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
lea eax, [ebp - 0x10]
push esi
mov esi, ecx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
cmp byte [0x7b6120], 0
push 0x1bc
push dword [esi + 4]
je 0x58ccf9
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp - 0x14]
jmp 0x58cd0d
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x10]
lea edx, [esi + 0x9c]
and dword [esi + 0xa0], 0
mov dword [edx], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0xa4], eax
mov eax, dword [ebp - 4]
sub eax, ecx
mov dword [esi + 0xa8], eax
mov eax, dword [esi + 0x74]
pop esi
test eax, eax
je 0x58cd44
push edx
push dword [eax + 4]
call fcn.0059b444
leave
ret
Function at 0x599c70
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x6a7687
call fcn.00664608
push ecx
push ebx
push esi
push edi
push dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 8]
lea edi, [eax + 1]
xor eax, eax
mov dword [esi], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 7
mov word [esi], ax
push ebx
push edi
mov ecx, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
call fcn.0043b088
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x599cc0
mov eax, dword [esi]
push edi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x599cd5
mov ecx, dword [esi]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x599cd8
sub ecx, edx
sar ecx, 1
push ebx
push ecx
mov ecx, esi
call fcn.0043b088
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x599d83
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx eax, word [esp + 8]
push ebx
push ebp
push esi
push edi
push 5
push eax
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov edi, eax
test edi, edi
je 0x599de2
push edi
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov esi, eax
test esi, esi
je 0x599de2
push esi
call dword [sym.imp.KERNEL32.DLL_LockResource]
push edi
push dword [esp + 0x18]
mov ebp, eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, dword [esp + 0x1c]
mov ebx, eax
add ecx, ebx
push ecx
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x599deb
push esi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
push ebx
push ebp
push edi
call fcn.006661f0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x599e07
mov dword [eax], ebx
mov eax, edi
jmp 0x599de4
Function at 0x59b7a2
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x20
lea eax, [esp + 4]
push ebp
push edi
xor ebp, ebp
mov edi, ecx
push ebp
push ebp
push ebp
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x59b8ca
push esi
cmp eax, 0xffffffff
je 0x59b8b3
mov edx, dword [esp + 0x14]
cmp edx, 0x8012
je 0x59b8c9
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x59b867
lea eax, [edx - 0x100]
cmp eax, 9
ja 0x59b867
cmp byte [edi + 8], 0
jne 0x59b8b3
cmp edx, 0x100
jne 0x59b81b
push dword [esp + 0x10]
mov eax, dword [ecx]
push dword [esp + 0x1c]
push 0xfffffffffffffffd
pop edx
call dword [eax + 0x30]
test eax, eax
jne 0x59b8b3
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ebp
push eax
push 0x59b171
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esp + 0xc], ebp
jne 0x59b863
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 4]
cmp eax, dword [edi + 0x10]
jne 0x59b853
mov edx, dword [esp + 0x14]
cmp edx, 0x100
jne 0x59b867
cmp dword [esp + 0x18], 9
jne 0x59b89d
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x59b8b3
mov edx, dword [esp + 0x14]
cmp edx, 0x20a
jne 0x59b89d
push dword [esp + 0x28]
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_WindowFromPoint]
mov esi, eax
test esi, esi
je 0x59b89d
cmp esi, dword [esp + 0x10]
je 0x59b89d
push ebp
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x7ebdd4]
jne 0x59b89d
mov dword [esp + 0x10], esi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebp
push ebp
push ebp
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x59b7c2
pop esi
mov eax, dword [esp + 0x14]
pop edi
pop ebp
add esp, 0x20
ret
Function at 0x59c391
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x6bc25c
call fcn.00664608
sub esp, 0x34
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
xor ecx, ecx
push edi
mov dword [esi], ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x6f4704
lea eax, [ebp - 0x40]
mov dword [ebp - 4], ecx
push eax
mov word [esi + 0x18], cx
call fcn.0046665e
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
jb 0x59c3dd
mov eax, dword [ebp - 0x40]
push 0x71d908
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00460b89
push eax
mov ecx, esi
call fcn.00427924
lea ecx, [ebp - 0x28]
call fcn.00427afc
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x59c406
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0047181f
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
jb 0x59c41c
mov eax, dword [ebp - 0x28]
push 0x71d910
push eax
call fcn.006757a1
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
mov edi, eax
call fcn.00410858
test edi, edi
je 0x59c45c
push edi
push dword [ebp + 0xc]
mov byte [esi + 0x18], 1
push 1
push dword [ebp + 8]
call fcn.00675d1b
add esp, 0x10
cmp dword [ebp + 0xc], eax
jne 0x59c455
mov byte [esi + 0x19], 1
push edi
call fcn.006751f3
pop ecx
lea ecx, [ebp - 0x40]
call fcn.00427afc
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x59e259
Capabilities:
Get common file path
Get startup folder

Disassembly:
mov eax, 0x6bc3dc
call fcn.00664608
sub esp, 0x4ac
push ebx
push esi
xor ecx, ecx
lea eax, [ebp - 0x268]
push edi
push ecx
push 0x25
push eax
push ecx
mov dword [ebp - 4], ecx
mov bl, cl
mov dword [ebp - 0x18], ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 7
xor edi, edi
pop esi
test eax, eax
je 0x59e372
xor eax, eax
mov dword [ebp - 0x30], edi
push 0x71dd80
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x30], ax
call fcn.00427ba3
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.004280bb
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 2
push eax
call fcn.004526c9
mov bl, al
test bl, bl
je 0x59e323
push 0x71dda0
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004275fa
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
jb 0x59e2fc
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x4b8]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
setne bh
je 0x59e319
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea ecx, [ebp - 0x48]
and bl, bh
call fcn.00427afc
lea ecx, [ebp - 0x60]
call fcn.00427afc
mov eax, dword [ebp - 0x1c]
cmp eax, 8
jb 0x59e366
mov ecx, dword [ebp - 0x30]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
cmp eax, 0x1000
jb 0x59e35d
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004279ae
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x30], ax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], 1
test bl, bl
je 0x59e3a9
push esi
push str.CurrentVersion
push 0x71ddd8
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0047bea5
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x59ee15
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call section..text
push esi
mov esi, dword [ebp + 0xc]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x59ee29
sub esi, ecx
mov eax, 0x7d0
sar esi, 1
cmp esi, eax
jl 0x59ee43
mov esi, eax
lea eax, [esi + 1]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x2000]
push eax
call fcn.00428ea2
add esi, esi
lea edx, [ebp - 0x2000]
mov ecx, 0x71d9c8
mov eax, esi
sub eax, ecx
add edx, eax
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x59ee69
push 0x82d
lea eax, [ebp - 0x1ffa]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x2000]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
pop esi
leave
ret 8

Function at 0x59efb2
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x59efc1
mov eax, dword [esi]
push 0x6d597c
push eax
call fcn.004713ce
test al, al
jne 0x59efe9
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x59efda
mov eax, dword [esi]
push 0x6d783c
push eax
call fcn.004713ce
test al, al
je 0x59f003
cmp dword [esi + 0x14], 0x10
jb 0x59eff1
mov esi, dword [esi]
push 1
xor eax, eax
push eax
push eax
push esi
push eax
push dword [esp + 0x20]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop esi
ret 8
Function at 0x5a0922
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x6ab2c3
call fcn.00664608
sub esp, 0x24
push ebx
push esi
call dword [sym.imp.USER32.dll_CreatePopupMenu]
xor ebx, ebx
mov dword [ebp - 0x14], eax
push 0x7ec2a8
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call fcn.00427a37
cmp dword [ebp - 0x1c], 8
lea esi, [ebp - 0x30]
mov dword [ebp - 4], ebx
jb 0x5a0961
mov esi, dword [ebp - 0x30]
push edi
mov byte [ebp - 0xd], 1
mov edi, ebx
push esi
mov dword [ebp - 0x18], esi
call fcn.0047139f
push 0x7c
push dword [ebp - 0x18]
mov esi, eax
call fcn.0046fea6
mov edx, eax
mov eax, dword [ebp - 0x18]
cmp word [eax], bx
je 0x5a09ab
inc edi
mov ecx, ebx
test edx, edx
je 0x5a0999
push edx
call fcn.0059e451
mov ecx, eax
mov eax, dword [ebp - 0x18]
push ecx
push eax
push edi
push ebx
push dword [ebp - 0x14]
call fcn.0059c4f6
mov byte [ebp - 0xd], 1
jmp 0x5a09c5
cmp byte [ebp - 0xd], 0
je 0x5a09c2
push ebx
push ebx
push edi
push 0x800
push dword [ebp - 0x14]
call fcn.0059c4f6
inc edi
mov byte [ebp - 0xd], bl
test esi, esi
jne 0x5a0968
push ebx
push 0x36e
inc edi
call fcn.00599084
push eax
push edi
push ebx
push dword [ebp - 0x14]
call fcn.0059c4f6
push ebx
push ebx
push 0x800
push dword [ebp - 0x14]
mov esi, edi
call dword [sym.imp.USER32.dll_AppendMenuW]
push 0x8000
push 0x10
push 0x10
push 1
push 0x15a
push dword [0x7ebde0]
call dword [sym.imp.USER32.dll_LoadImageW]
push eax
push 0x36a
add edi, 2
call fcn.00599084
push eax
push edi
push ebx
push dword [ebp - 0x14]
call fcn.0059c4f6
mov eax, dword [0x7ec2f4]
push 0x80
inc eax
push eax
push dword [ebp - 0x14]
push dword [0x7ebdf0]
call dword [sym.imp.USER32.dll_HiliteMenuItem]
mov eax, dword [ebp + 8]
push ebx
push dword [0x7ebdf0]
push ebx
push dword [eax + 4]
push dword [eax]
movzx eax, byte [ebp + 0xc]
xor eax, 1
lea eax, [eax*8 + 0x182]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_TrackPopupMenu]
push dword [ebp - 0x14]
mov dword [ebp + 0xc], eax
call dword [sym.imp.USER32.dll_DestroyMenu]
mov eax, dword [ebp + 0xc]
cmp eax, esi
jne 0x5a0a93
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x5a0ab0
push 0x12
call fcn.005f2668
jmp 0x5a0ab0
test eax, eax
je 0x5a0ab0
cmp eax, edi
push 0x10
sete byte [0x7ec2f8]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x5a0ab0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1c]
pop edi
cmp eax, 8
jb 0x5a0aec
mov ecx, dword [ebp - 0x30]
lea eax, [eax*2 + 2]
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], ecx
cmp eax, 0x1000
jb 0x5a0ae3
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x5a2ada
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
push ebx
push edi
mov edi, ecx
cmp byte [edi + 0x74], 0
je 0x5a2b00
push 0x5a30e6
push 0x10
push 0x10
push 3
call fcn.005a3243
mov dword [edi + 0x68], eax
push 0x5a37a5
push 9
push 9
push 2
mov ecx, edi
call fcn.005a3243
mov dword [edi + 0x6c], eax
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
jne 0x5a2b32
mov word [ebp - 0x208], ax
push 0x4011
mov ebx, 0x2b4
lea eax, [ebp - 0x4bc]
push ebx
push eax
push 0x10
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov dword [edi + 0x64], eax
mov eax, dword [ebp - 0x4b8]
push 0x4013
mov dword [edi + 0x78], eax
lea eax, [ebp - 0x4bc]
push ebx
push eax
push 0x10
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x4b8]
mov dword [edi + 0x7c], eax
pop edi
pop ebx
leave
ret
Function at 0x5a55f4
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x6b199d
call fcn.00664608
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp dword [esi + 0x54], ebx
je 0x5a56da
push edi
mov edi, dword [esi + 4]
mov dword [ebp + 8], edi
test edi, edi
je 0x5a5623
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x50]
mov dword [esi + 0x54], ebx
mov eax, dword [eax + ebx*4]
mov dword [esi + 4], eax
test eax, eax
jne 0x5a5699
push 0x14
call fcn.00664379
mov edi, eax
pop ecx
mov dword [ebp - 0x10], edi
and dword [ebp - 4], 0
test edi, edi
je 0x5a5660
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
mov dword [edi + 8], esi
mov dword [edi], 0x71d6e8
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], eax
jmp 0x5a5662
xor edi, edi
mov eax, dword [esi + 0x48]
mov ecx, ebx
or dword [ebp - 4], 0xffffffff
add ecx, ecx
push edi
push fcn.0059adb9
push dword [eax + 4]
mov eax, dword [esi + 0x4c]
push dword [eax + ecx*8]
push dword [0x7ebde0]
call fcn.00599f8f
cmp byte [esi + 0x58], 0
mov dword [esi + 4], eax
je 0x5a5696
push eax
call fcn.0059b01c
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0x48]
or edx, 0xffffffff
push ebx
push esi
mov eax, dword [ecx]
call dword [eax + 0x30]
mov eax, dword [esi + 0x44]
sub eax, dword [esi + 0x3c]
push 0x250
push eax
mov eax, dword [esi + 0x40]
sub eax, dword [esi + 0x38]
push eax
push dword [esi + 0x3c]
push dword [esi + 0x38]
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [ebp + 0xc], 0
je 0x5a56d9
push edi
push dword [ebp + 0xc]
call fcn.005a30b9
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8