joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56fbba
Capabilities:
Encode data using xor

Disassembly:
movzx edx, byte [esp + 0xc]
mov ecx, dword [esp + 4]
neg edx
push esi
mov esi, dword [esp + 0xc]
push edi
push 0x20
sub esi, ecx
pop edi
mov eax, dword [esi + ecx]
xor eax, dword [ecx]
and eax, edx
xor dword [ecx], eax
lea ecx, [ecx + 4]
sub edi, 1
jne 0x56fbd0
pop edi
pop esi
ret 0xc

Function at 0x56fbe6
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push 0x1e
pop edi
mov ebx, dword [esi + 0x7c]
mov ecx, edi
mov edx, ebx
xor edx, 0x7f
dec edx
shr edx, 0x1f
mov eax, dword [esi + ecx*4]
xor eax, 0xff
dec eax
shr eax, 0x1f
and edx, eax
dec ecx
test ecx, ecx
jg 0x56fbff
mov ecx, dword [esi]
mov ebp, 0xed
sub ecx, ebp
not ecx
shr ecx, 0x1f
and ecx, edx
neg ecx
mov eax, ecx
and eax, 0x7f
sub ebx, eax
movzx eax, cl
mov dword [esi + 0x7c], ebx
sub dword [esi + edi*4], eax
dec edi
test edi, edi
jg 0x56fc31
and ecx, ebp
sub dword [esi], ecx
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x57051b
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
and dword [esp], 0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
xor ebp, ebp
mov eax, esi
xor ebx, ebx
mov dword [esp + 0x14], eax
test esi, esi
je 0x5705b3
push edi
dec esi
cmp dword [esp + 0x28], 0
mov dword [esp + 0x24], esi
je 0x570548
call dword [esp + 0x28]
mov esi, dword [esp + 0x10]
push 8
pop eax
dec eax
mov dword [esp + 0x14], eax
call fcn.00673f76
mov edi, eax
jmp 0x570560
xor ebp, 1
call fcn.00673f76
cmp edi, eax
je 0x57055d
call fcn.00673f76
mov edi, eax
call fcn.00673f76
cmp edi, eax
jne 0x570589
xor esi, 1
call fcn.00673f76
cmp edi, eax
je 0x570579
mov dword [esp + 0x10], esi
cmp ebp, esi
je 0x570554
mov eax, dword [esp + 0x14]
add ebx, ebx
or ebx, ebp
test eax, eax
jne 0x57054f
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov byte [eax], bl
inc eax
xor ebx, ebx
mov dword [esp + 0x20], eax
test esi, esi
jne 0x570538
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc

Function at 0x57068e
Capabilities:
Create thread

Disassembly:
call 0x57068e
call 0x57068e
call 0x57068e
call 0x57068e
call 0x57068e
call 0x57068e
call 0x57068e
call 0x57068e
call 0x57068e
call 0x57068e
jmp 0x57068e
push 0
push 0x400
mov dword [0x7f0158], 0
push 0x570641
mov dword [0x7f014c], 1
call fcn.0067412e
add esp, 0xc
push 0x10
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 1
mov dword [0x7f014c], 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, dword [0x7f0158]
mov ecx, dword [0x7f0158]
shr eax, 3
xor ecx, eax
mov eax, dword [0x7f0154]
shr ecx, 3
xor eax, ecx
xor dword [0x7f0158], eax
and dword [0x7f0158], 7
mov eax, dword [0x7f0158]
mov dword [0x7f0154], eax
mov eax, dword [0x7f0150]
mov ecx, dword [0x7f0158]
shl eax, 3
xor ecx, eax
mov dword [0x7f0150], ecx
mov eax, dword [0x7f0150]
ret

Function at 0x5714bf
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
push 0
lea eax, [esp + 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
pop ecx
ret
Function at 0x576b76
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 0x577208
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 0x577260
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 0x577226
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 0x578ad3
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 0x578afe
push 6
mov dword [ebx], eax
pop eax
jmp 0x578bf0
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 0x578b89
xor edx, edx
lea eax, [ecx - 1]
div ebp
mov edx, dword [esp + 0x18]
mov ebp, dword [0x795598]
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 + 1]
movzx eax, byte [edx]
shl eax, 4
shr ecx, 4
add ecx, eax
and ecx, 0x3f
mov al, byte [ecx + ebp]
mov byte [esi + 1], al
movzx ecx, byte [edx + 2]
movzx eax, byte [edx + 1]
shr ecx, 6
lea eax, [ecx + eax*4]
and eax, 0x3f
mov al, byte [eax + ebp]
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 0x578b2d
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
jmp 0x578b8d
mov edx, dword [esp + 0x18]
cmp eax, edi
jae 0x578be4
movzx ebp, byte [edx]
inc eax
mov dword [esp + 0x24], eax
cmp eax, edi
jae 0x578ba3
movzx ecx, byte [edx + 1]
jmp 0x578ba5
xor ecx, ecx
mov edx, dword [0x795598]
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 0x578bd7
and ecx, 0xf
movsx eax, byte [edx + ecx*4]
jmp 0x578bda
push 0x3d
pop eax
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 0x580038
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 0x58010b
call fcn.005aa6aa
test al, al
jne 0x58010b
call fcn.005df398
cmp eax, 1
je 0x58010b
cmp byte [0x7e5789], 0
je 0x580093
cmp byte [0x7e5799], 0
je 0x580093
cmp byte [esi + 0x5c], 0
je 0x580093
mov ecx, dword [0x7e6a44]
call fcn.005bbe61
test al, al
je 0x58010b
cmp byte [0x7e572c], 0
push edi
je 0x5800cf
call fcn.00462d8a
mov edi, dword [esi + 0x44]
mov ecx, dword [esi + 0x48]
add edi, 0x1e
adc ecx, 0
cmp ecx, edx
ja 0x5800cf
jb 0x5800b8
cmp edi, eax
ja 0x5800cf
cmp byte [esi + 0x58], 0
je 0x5800cf
inc dword [0x7e57a8]
call fcn.00462d8a
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], edx
cmp byte [0x7e572d], 0
je 0x58010a
call fcn.00462d8a
mov edi, dword [esi + 0x4c]
mov ecx, dword [esi + 0x50]
add edi, 0x1e
adc ecx, 0
cmp ecx, edx
ja 0x58010a
jb 0x5800f3
cmp edi, eax
ja 0x58010a
cmp byte [esi + 0x58], 0
je 0x58010a
inc dword [0x7e57a4]
call fcn.00462d8a
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], edx
pop edi
pop esi
pop ecx
ret
Function at 0x582418
Capabilities:
Enumerate gui resources

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

Function at 0x58243c
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.0067464a
pop ecx
pop ecx
test eax, eax
je 0x58245e
xor al, al
jmp 0x58251d
cmp dword [ebp + 0xc], edi
je 0x582501
push esi
push 0x230
lea eax, [ebp - 0x230]
push edi
push eax
call fcn.0065d010
add esp, 0xc
lea eax, [ebp - 0x230]
mov esi, str.hh.exe
push 0x118
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
lea ecx, [ebp - 0x230]
lea ecx, [ecx + eax*2]
sub ecx, esi
movzx eax, word [esi]
mov word [ecx + esi], ax
lea esi, [esi + 2]
test ax, ax
jne 0x58249f
push dword [ebp + 0xc]
lea eax, [ebp - 0x668]
push dword [ebp + 8]
push str.ms_its:_s::_s
push 0x438
push eax
call fcn.004651b2
lea eax, [ebp - 0x668]
push eax
lea eax, [ebp - 0x230]
push eax
push str.Opening_help_file:__S__S
call fcn.0040e6e4
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 0x582510
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
setle cl
xor ecx, 1
mov al, cl
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x5832e0
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 [0x7b0998], 0
push 0x1bc
push dword [esi + 4]
je 0x58331d
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 0x583331
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 + 0x98]
and dword [esi + 0x9c], 0
mov dword [edx], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0xa0], eax
mov eax, dword [ebp - 4]
sub eax, ecx
mov dword [esi + 0xa4], eax
mov eax, dword [esi + 0x70]
pop esi
test eax, eax
je 0x583368
push edx
push dword [eax + 4]
call fcn.00590498
mov esp, ebp
pop ebp
ret
Function at 0x58ec50
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x69d947
call fcn.006426c4
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]
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], ebx
jb 0x58ec86
mov eax, dword [esi]
jmp 0x58ec88
mov eax, esi
xor ecx, ecx
mov word [eax], cx
push ebx
push edi
mov ecx, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
call fcn.0043ffbd
cmp dword [esi + 0x14], 8
jb 0x58ecaa
mov eax, dword [esi]
jmp 0x58ecac
mov eax, esi
push edi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp dword [esi + 0x14], 8
jb 0x58ecc1
mov ecx, dword [esi]
jmp 0x58ecc3
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x58ecc6
sub ecx, edx
sar ecx, 1
push ebx
push ecx
mov ecx, esi
call fcn.0043ffbd
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x58ed8d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx eax, word [esp + 8]
push edi
push 5
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov edi, eax
test edi, edi
je 0x58ee11
push esi
push edi
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov esi, eax
test esi, esi
je 0x58ee10
push ebx
push ebp
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 0x58edf0
push esi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
xor eax, eax
jmp 0x58ee0e
push ebx
push ebp
push edi
call fcn.0065afc0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x58ee0c
mov dword [eax], ebx
mov eax, edi
pop ebp
pop ebx
pop esi
pop edi
ret 0x10
Function at 0x590802
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 0x59092a
push esi
cmp eax, 0xffffffff
je 0x590913
mov edx, dword [esp + 0x14]
cmp edx, 0x8012
je 0x590929
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x5908c7
lea eax, [edx - 0x100]
cmp eax, 9
ja 0x5908c7
cmp byte [edi + 8], 0
jne 0x590913
cmp edx, 0x100
jne 0x59087b
push dword [esp + 0x10]
mov eax, dword [ecx]
push dword [esp + 0x1c]
push 0xfffffffffffffffd
pop edx
call dword [eax + 0x30]
test eax, eax
jne 0x590913
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ebp
push eax
push 0x5901c0
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esp + 0xc], ebp
jne 0x5908c3
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 4]
cmp eax, dword [edi + 0x10]
jne 0x5908b3
mov edx, dword [esp + 0x14]
cmp edx, 0x100
jne 0x5908c7
cmp dword [esp + 0x18], 9
jne 0x5908fd
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x590913
mov edx, dword [esp + 0x14]
cmp edx, 0x20a
jne 0x5908fd
push dword [esp + 0x28]
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_WindowFromPoint]
mov esi, eax
test esi, esi
je 0x5908fd
cmp esi, dword [esp + 0x10]
je 0x5908fd
push ebp
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x7e4ca8]
jne 0x5908fd
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 0x590822
pop esi
mov eax, dword [esp + 0x14]
pop edi
pop ebp
add esp, 0x20
ret
Function at 0x591146
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x6b108a
call fcn.006426c4
sub esp, 0x34
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
push edi
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], ebx
jb 0x591171
mov eax, dword [esi]
jmp 0x591173
mov eax, esi
xor ecx, ecx
mov word [eax], cx
push 0x6ee0c4
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
mov word [esi + 0x18], bx
call fcn.00473f1c
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 1
jae 0x59119d
lea eax, [ebp - 0x28]
push 0x713760
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0046ede8
push eax
mov ecx, esi
call fcn.00428071
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.004285f6
push esi
lea eax, [ebp - 0x40]
push eax
call fcn.00440ca9
cmp dword [eax + 0x14], 0x10
jb 0x5911d1
mov eax, dword [eax]
push 0x713768
push eax
call fcn.00669d91
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x40]
mov edi, eax
call fcn.0040f95f
test edi, edi
je 0x591214
push edi
push dword [ebp + 0xc]
mov byte [esi + 0x18], 1
push 1
push dword [ebp + 8]
call fcn.0066a30b
add esp, 0x10
cmp dword [ebp + 0xc], eax
jne 0x59120d
mov byte [esi + 0x19], 1
push edi
call fcn.006697e3
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.004285f6
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x591aa4
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x6b10a4
call fcn.006426c4
sub esp, 0x50
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], ebx
jb 0x591ac6
mov eax, dword [edi]
jmp 0x591ac8
mov eax, edi
mov byte [eax], bl
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x24], bl
mov eax, dword [ebp + 0x10]
mov esi, 0x7b0f80
mov dword [ebp - 4], ebx
mov byte [ebp + 0xf], bl
mov byte [eax], bl
cmp dword [0x7b0f94], 0x10
mov eax, dword [0x7b0f80]
jae 0x591af7
mov eax, esi
push str.http
push eax
call fcn.0047e4b7
test al, al
je 0x591b0a
mov byte [ebp + 0xf], 1
push esi
lea eax, [ebp - 0x3c]
push eax
call fcn.00440cea
cmp dword [eax + 0x14], 8
jb 0x591b1c
mov eax, dword [eax]
push dword [0x713680]
push eax
call fcn.00492e86
push ebx
push 1
lea ecx, [ebp - 0x3c]
mov esi, eax
call fcn.004285f6
test esi, esi
je 0x591b4b
push 0xffffffffffffffff
push ebx
push 0x7b0f80
lea ecx, [ebp - 0x24]
call fcn.0040f84e
jmp 0x591bb2
mov ecx, dword [ebp + 8]
lea eax, [ecx + 0x4c]
cmp dword [eax + 0x10], ebx
jne 0x591b59
lea eax, [ecx + 0x34]
cmp dword [eax + 0x14], 8
jb 0x591b61
mov eax, dword [eax]
push eax
call fcn.00460c80
mov esi, eax
test esi, esi
je 0x591c15
push ebx
lea eax, [ebp + 8]
push eax
push ebx
lea ecx, [esi - 2]
push ecx
call fcn.0042d886
test al, al
je 0x591c0e
push dword [ebp + 8]
lea eax, [ebp - 0x3c]
push eax
call fcn.0047e83e
push eax
lea ecx, [ebp - 0x24]
call fcn.0040ef82
push ebx
push 1
lea ecx, [ebp - 0x3c]
call fcn.0040f95f
push 1
push dword [ebp + 8]
call fcn.00460614
cmp dword [ebp - 0x10], 0x10
mov eax, dword [ebp - 0x24]
jae 0x591bbe
lea eax, [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsA]
push ebx
push ebx
push eax
call esi
push 0
mov ecx, edi
lea ebx, [eax + 1]
push ebx
call fcn.0043ff93
cmp dword [edi + 0x14], 0x10
jb 0x591bde
mov edi, dword [edi]
cmp dword [ebp - 0x10], 0x10
mov eax, dword [ebp - 0x24]
jae 0x591bea
lea eax, [ebp - 0x24]
push ebx
push edi
push eax
call esi
cmp dword [0x7b0f90], 0
je 0x591c02
cmp byte [ebp + 0xf], 0
je 0x591c02
xor eax, eax
jmp 0x591c05
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x10]
mov bl, 1
mov byte [ecx], al
jmp 0x591c71
mov eax, 0x6c3d10
jmp 0x591c1a
mov eax, 0x6c4198
test esi, esi
jne 0x591c23
mov esi, 0x6c4198
push eax
push esi
push 0x398
call fcn.0058dfbe
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00465d7f
add esp, 0x10
cmp dword [ebp - 0x28], 8
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x5c], 1
mov dword [ebp - 0x58], 0x30
jae 0x591c5a
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0058eef2
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x3c]
call fcn.004285f6
push 0
push 1
lea ecx, [ebp - 0x24]
call fcn.0040f95f
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x591caa
Capabilities:
Get common file path

Disassembly:
mov eax, 0x6b10d7
call fcn.006426c4
sub esp, 0x4a4
push ebx
xor ecx, ecx
lea eax, [ebp - 0x260]
push esi
push ecx
push 0x25
push eax
push ecx
mov dword [ebp - 4], ecx
mov bl, cl
mov dword [ebp - 0x10], ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor esi, esi
inc esi
test eax, eax
je 0x591d79
push 0x713c18
lea ecx, [ebp - 0x58]
call fcn.00429d77
lea eax, [ebp - 0x58]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00428ee7
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.00461864
mov bl, al
test bl, bl
je 0x591d63
push 0x713c38
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00427f16
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x591d37
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x4b0]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
setne bh
test bh, bh
je 0x591d56
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
push 0
push esi
lea ecx, [ebp - 0x28]
and bl, bh
call fcn.004285f6
push 0
push esi
lea ecx, [ebp - 0x40]
call fcn.004285f6
push 0
push esi
lea ecx, [ebp - 0x58]
call fcn.004285f6
mov esi, dword [ebp + 8]
and dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
and dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x591d95
mov eax, dword [esi]
jmp 0x591d97
mov eax, esi
xor ecx, ecx
mov word [eax], cx
and dword [ebp - 4], ecx
mov dword [ebp - 0x10], 1
test bl, bl
je 0x591dbf
push esi
push str.CurrentVersion
push 0x713c70
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00486923
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x59278a
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 0x59279e
sub esi, ecx
mov eax, 0x7d0
sar esi, 1
cmp esi, eax
jl 0x5927b8
mov esi, eax
lea eax, [esi + 1]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x2000]
push eax
call fcn.0042978d
lea edx, [ebp - 0x2000]
mov ecx, 0x713820
lea edx, [edx + esi*2]
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x5927db
push 0x82d
lea eax, [ebp - 0x1ffa]
lea eax, [eax + esi*2]
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
mov esp, ebp
pop ebp
ret 8

Function at 0x592927
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0x10
jb 0x592936
mov eax, dword [esi]
jmp 0x592938
mov eax, esi
push 0x6ceeb4
push eax
call fcn.0047e4b7
test al, al
jne 0x592962
cmp dword [esi + 0x14], 0x10
jb 0x592951
mov eax, dword [esi]
jmp 0x592953
mov eax, esi
push 0x6d1214
push eax
call fcn.0047e4b7
test al, al
je 0x59297c
cmp dword [esi + 0x14], 0x10
jb 0x59296a
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 0x593e9d
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x6b1137
call fcn.006426c4
sub esp, 0x24
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov ebx, eax
lea ecx, [ebp - 0x30]
push 0x7e5680
mov dword [ebp - 0x18], ebx
call fcn.00427fbe
mov esi, dword [ebp - 0x30]
xor eax, eax
cmp dword [ebp - 0x1c], 8
mov dword [ebp - 4], eax
jae 0x593ed6
lea esi, [ebp - 0x30]
mov byte [ebp - 0xd], 1
mov edi, eax
push esi
mov dword [ebp - 0x14], esi
call fcn.0047e488
push 0x7c
push dword [ebp - 0x14]
mov esi, eax
call fcn.0047cfaf
mov edx, eax
xor ecx, ecx
mov eax, dword [ebp - 0x14]
cmp word [eax], cx
je 0x593f20
inc edi
test edx, edx
je 0x593f0d
push edx
call fcn.00591e6f
mov ecx, eax
mov eax, dword [ebp - 0x14]
push ecx
push eax
push edi
push 0
push ebx
call fcn.0059129d
mov byte [ebp - 0xd], 1
xor ecx, ecx
jmp 0x593f39
cmp byte [ebp - 0xd], cl
je 0x593f36
push ecx
push ecx
push edi
push 0x800
push ebx
call fcn.0059129d
inc edi
xor ecx, ecx
mov byte [ebp - 0xd], cl
test esi, esi
jne 0x593edc
push ecx
push 0x368
inc edi
call fcn.0058dfbe
push eax
push edi
push esi
push ebx
call fcn.0059129d
push 0
push 0
push 0x800
push ebx
mov esi, edi
call dword [sym.imp.USER32.dll_AppendMenuW]
push 0x8000
push 0x10
push 0x10
push 1
push 0x15a
push dword [0x7e4c80]
call dword [sym.imp.USER32.dll_LoadImageW]
push eax
push 0x364
add edi, 2
call fcn.0058dfbe
push eax
push edi
push 0
push ebx
call fcn.0059129d
mov eax, dword [0x7e56cc]
push 0x80
inc eax
push eax
push ebx
push dword [0x7e4c90]
call dword [sym.imp.USER32.dll_HiliteMenuItem]
mov eax, dword [ebp + 8]
push 0
push dword [0x7e4c90]
push 0
push dword [eax + 4]
push dword [eax]
xor eax, eax
cmp byte [ebp + 0xc], al
sete al
lea eax, [eax*8 + 0x182]
push eax
push ebx
call dword [sym.imp.USER32.dll_TrackPopupMenu]
push dword [ebp - 0x18]
mov ebx, eax
call dword [sym.imp.USER32.dll_DestroyMenu]
cmp ebx, esi
jne 0x593fff
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x594019
push 0x12
call fcn.005d7fd8
jmp 0x594019
test ebx, ebx
je 0x594019
cmp ebx, edi
push 0x10
sete byte [0x7e56d0]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x59401b
xor ebx, ebx
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.004285f6
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8