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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
mov byte [ebp - 0x10d], dl
xor edx, edx
mov dword [ebp - 0x108], edx
mov edx, dword [eax + 0x44e83c]
imul edx, ecx
add edx, dword [ebp + 8]
add edx, edx
add edx, edx
add edx, edx
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x114], 8
xor esi, esi
mov edx, dword [ebp - 0x118]
add edx, esi
mov ecx, dword [eax + 0x44e858]
mov ebx, dword [ecx + edx*4]
mov edx, dword [ebp - 0x108]
mov dword [ebp + edx*4 - 0x104], ebx
xor ecx, ecx
jmp 0x55c07c
inc ecx
cmp ebx, dword [ebp + ecx*4 - 0x104]
jne 0x55c07b
cmp ecx, dword [ebp - 0x108]
jne 0x55c0a8
inc dword [ebp - 0x108]
mov edx, dword [eax + 0x40e828]
cmp edx, dword [ebp - 0x108]
jge 0x55c0a8
mov dl, 2
jmp 0x55c16f
inc esi
cmp esi, 8
jne 0x55c059
mov edx, dword [eax + 0x44e83c]
add dword [ebp - 0x118], edx
dec dword [ebp - 0x114]
jne 0x55c057
cmp dword [ebp - 0x108], 1
jne 0x55c0f3
mov dl, 3
cmp dword [eax + 0x40e82c], 3
jge 0x55c16f
cmp byte [ebp - 0x10d], 0
jne 0x55c0ea
mov dl, 2
jmp 0x55c16f
movzx edx, byte [ebp - 0x10d]
jmp 0x55c16f
emms
movq mm7, qword [0x5bee58]
lea eax, [ebp - 0x104]
movd mm0, dword [eax]
punpcklbw mm0, mm0
pxor mm0, mm7
mov ecx, dword [ebp - 0x108]
dec ecx
lea eax, [ebp + ecx*4 - 0x104]
movd mm1, dword [eax]
punpcklbw mm1, mm1
pxor mm1, mm7
psubusb mm1, mm0
paddb mm0, mm1
dec ecx
jne 0x55c112
movq mm1, mm0
psllq mm1, 8
paddb mm0, mm1
pand mm0, mm7
psrlq mm0, 8
movq mm1, mm0
psrlq mm1, 0x10
paddw mm0, mm1
psrlq mm1, 0x10
paddw mm0, mm1
movd eax, mm0
and eax, 0xffff
add eax, 3
mov dword [ebp - 0x10c], eax
emms
cmp dword [ebp - 0x10c], 0x3c
jge 0x55c16d
mov dl, 2
jmp 0x55c16f
mov dl, 1
mov eax, edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x561560
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x56166d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5bf9c8]
mov eax, dword [eax]
mov ecx, dword [eax + 0x358]
lea eax, [ebp - 4]
mov edx, 0x561680
call fcn.004057a0
push 1
push 0x5616a8
push 0x5616a8
mov eax, dword [ebp - 4]
call fcn.00405954
push eax
push 0
mov eax, ebx
call fcn.0046a764
push eax
call sub.shell32.dll_ShellExecuteA
jmp 0x561657
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x561674
lea eax, [ebp - 4]
call fcn.00405490
ret
Function at 0x5671dc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov byte [esp], dl
mov esi, eax
mov eax, esi
call fcn.00566dc4
push 1
mov eax, esi
call fcn.0046a764
push eax
call sub.user32.dll_ShowWindow
cmp byte [esp], 0
je 0x56720f
mov eax, dword [esi + 0x3ac]
cmp byte [eax + 0xc], 0
je 0x567229
cmp byte [esp], 0
je 0x567289
test bl, bl
je 0x567289
mov eax, dword [0x5bf9c8]
mov eax, dword [eax]
cmp byte [eax + 0x98], 0
je 0x567289
cmp byte [esi + 0x380], 0
jne 0x56725e
mov eax, esi
call fcn.00453058
mov dword [esi + 0x384], eax
mov eax, esi
call fcn.00453078
mov dword [esi + 0x388], eax
mov eax, dword [esi + 0x48]
mov dword [esi + 0x38c], eax
mov eax, dword [esi + 0x4c]
mov dword [esi + 0x390], eax
mov byte [esi + 0x380], 1
test bl, bl
je 0x5672ff
call fcn.005a1174
push eax
call fcn.005a1194
push eax
xor ecx, ecx
xor edx, edx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x88]
jmp 0x5672ff
cmp byte [esi + 0x380], 0
je 0x5672be
mov eax, esi
call fcn.00453058
mov dword [esi + 0x394], eax
mov eax, esi
call fcn.00453078
mov dword [esi + 0x398], eax
mov eax, dword [esi + 0x48]
mov dword [esi + 0x39c], eax
mov eax, dword [esi + 0x4c]
mov dword [esi + 0x3a0], eax
mov byte [esi + 0x380], 0
mov eax, dword [esi + 0x74]
mov edx, dword [eax + 0x14]
mov eax, dword [esi + 0x38c]
call fcn.005a1154
push eax
mov eax, dword [esi + 0x74]
mov edx, dword [eax + 0x10]
mov eax, dword [esi + 0x390]
call fcn.005a1154
push eax
mov ecx, dword [esi + 0x388]
mov edx, dword [esi + 0x384]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x88]
mov eax, esi
call fcn.00567e50
test bl, bl
jne 0x567313
xor edx, edx
mov eax, esi
call fcn.005674b0
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x56b74c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
mov ebx, eax
cmp word [esi], 0x5b
jne 0x56b762
mov byte [ebx + 0x6c168], 0
cmp word [esi], 0x5c
jne 0x56b76f
mov byte [ebx + 0x6c169], 0
cmp word [esi], 0x11
jne 0x56b7c3
push 0xa2
call sub.user32.dll_GetKeyState
movsx eax, ax
test ah, 0x80
jne 0x56b79c
cmp byte [ebx + 0x6c16a], 0
je 0x56b79c
mov word [esi], 0xa2
mov byte [ebx + 0x6c16a], 0
push 0xa3
call sub.user32.dll_GetKeyState
movsx eax, ax
test ah, 0x80
jne 0x56b7c3
cmp byte [ebx + 0x6c16b], 0
je 0x56b7c3
mov word [esi], 0xa3
mov byte [ebx + 0x6c16b], 0
cmp word [esi], 0x12
jne 0x56b817
push 0xa4
call sub.user32.dll_GetKeyState
movsx eax, ax
test ah, 0x80
jne 0x56b7f0
cmp byte [ebx + 0x6c16c], 0
je 0x56b7f0
mov word [esi], 0xa4
mov byte [ebx + 0x6c16c], 0
push 0xa5
call sub.user32.dll_GetKeyState
movsx eax, ax
test ah, 0x80
jne 0x56b817
cmp byte [ebx + 0x6c16d], 0
je 0x56b817
mov word [esi], 0xa5
mov byte [ebx + 0x6c16d], 0
cmp byte [ebx + 0x6c16c], 0
jne 0x56b829
cmp byte [ebx + 0x6c16d], 0
je 0x56b82f
cmp word [esi], 9
je 0x56b833
xor eax, eax
jmp 0x56b835
mov al, 1
test al, al
jne 0x56b876
movzx eax, word [esi]
add eax, 0xffffffa5
sub ax, 2
setb al
test al, al
jne 0x56b876
cmp byte [ebx + 0x6c168], 0
jne 0x56b860
cmp byte [ebx + 0x6c169], 0
jne 0x56b860
xor eax, eax
jmp 0x56b862
mov al, 1
test al, al
jne 0x56b876
movzx edx, word [esi]
add edx, 0x10000
mov eax, ebx
call fcn.0056b07c
pop esi
pop ebx
pop ebp
ret 4

Function at 0x56cd60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
test dl, dl
je 0x56cd75
add esp, 0xfffffff0
call fcn.00404898
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x56ce19
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, esi
call fcn.00404544
xor eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x1c], eax
xor eax, eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x2c], eax
xor eax, eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
xor eax, eax
mov dword [esi + 0x44], eax
xor eax, eax
mov dword [esi + 0x4c], eax
mov byte [esi + 8], 2
mov dword [esi + 0xc], 4
mov dword [esi + 0x10], 7
xor eax, eax
mov dword [esi + 0x38], eax
lea edx, [ebp - 8]
xor eax, eax
call fcn.00403370
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.004c3f4c
mov edx, dword [ebp - 4]
lea eax, [esi + 0x50]
call fcn.004054e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56ce20
lea eax, [ebp - 8]
mov edx, 2
call fcn.004054b4
ret
Function at 0x56f1f0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x56f27c
xor eax, eax
push ebp
push 0x56f275
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.user32.dll_IsClipboardFormatAvailable
test eax, eax
jne 0x56f226
call fcn.00404e94
jmp 0x56f27c
push 1
call sub.user32.dll_GetClipboardData
mov ebx, eax
test ebx, ebx
jne 0x56f23a
call fcn.00404e94
jmp 0x56f27c
push ebx
call sub.kernel32.dll_GlobalLock
mov esi, eax
mov eax, esi
call fcn.0040b79c
inc eax
call fcn.00402f18
mov dword [ebp - 4], eax
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.0040b7f4
push ebx
call sub.kernel32.dll_GlobalUnlock
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56f27c
call sub.user32.dll_CloseClipboard
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x594760
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov byte [ebp - 1], dl
mov edi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [0x5bfb1c]
cmp dword [eax], 0
je 0x594890
test ebx, ebx
je 0x594890
cmp byte [ebp - 1], 0
je 0x594793
test cl, cl
je 0x594890
push 0xffffffffffffffec
mov eax, ebx
call fcn.0046a764
push eax
call sub.user32.dll_GetWindowLongA
mov esi, eax
mov eax, esi
cmp byte [ebp - 1], 0
je 0x5947b4
or esi, 0x80000
jmp 0x5947ba
and esi, 0xfff7ffff
cmp esi, eax
je 0x594890
cmp byte [ebp - 1], 0
jne 0x5947dd
push esi
push 0xffffffffffffffec
mov eax, ebx
call fcn.0046a764
push eax
call sub.user32.dll_SetWindowLongA
jmp 0x594890
push 0
mov ecx, edi
mov dl, 1
mov eax, dword [0x58e8c4]
call fcn.00452920
mov edi, eax
xor edx, edx
mov eax, edi
call fcn.004541f8
mov eax, dword [edi + 0x50]
or eax, dword [0x594898]
mov dword [edi + 0x50], eax
push 0x10
mov eax, dword [ebx + 0x4c]
push eax
mov eax, dword [ebx + 0x48]
push eax
mov eax, ebx
call fcn.00453078
push eax
mov eax, ebx
call fcn.00453058
push eax
push 0xffffffffffffffff
mov eax, edi
call fcn.0046a764
push eax
call sub.user32.dll_SetWindowPos
push 4
mov eax, edi
call fcn.0046a764
push eax
call sub.user32.dll_ShowWindow
push esi
push 0xffffffffffffffec
mov eax, ebx
call fcn.0046a764
push eax
call sub.user32.dll_SetWindowLongA
push 2
push 0xff
push 0
mov eax, ebx
call fcn.0046a764
push eax
mov eax, dword [0x5bfb1c]
mov eax, dword [eax]
call eax
mov eax, ebx
call fcn.00463188
mov eax, edi
call fcn.00404574
push 0x13
push 0
push 0
push 0x64
push 0xc8
push 0xffffffffffffffff
mov eax, dword [0x5bff7c]
mov eax, dword [eax]
push eax
call sub.user32.dll_SetWindowPos
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x596e78
Capabilities:
Check os version

Disassembly:
push ebx
add esp, 0xffffff6c
mov byte [0x5bf0e8], 1
mov dword [eax + 0x38], 1
mov dword [eax + 0x3c], 1
push 0x596f1c
push 0x596f30
call sub.kernel32.dll_LoadLibraryA
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [fcn.005bf0e4], eax
mov ebx, 0x65
push ebx
mov eax, dword [0x5c37f8]
push eax
call sub.user32.dll_LoadIconA
mov dword [ebx*4 + 0x5bef5c], eax
mov ebx, 0x6f
push ebx
mov eax, dword [0x5c37f8]
push eax
call sub.user32.dll_LoadIconA
mov dword [ebx*4 + 0x5bef5c], eax
mov dword [esp], 0x94
xor eax, eax
mov dword [0x5bf0ec], eax
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 4], 5
ja 0x596f07
cmp dword [esp + 4], 5
jne 0x596f11
cmp dword [esp + 8], 0
jbe 0x596f11
mov dword [0x5bf0ec], 0xa
add esp, 0x94
pop ebx
ret
Function at 0x5a268c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5a2709
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x10
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00405bdc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
call fcn.004059ac
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x5a26e7
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00405bdc
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004054e4
jmp 0x5a26f3
mov eax, ebx
mov edx, 0x5a2720
call fcn.004054e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a2710
lea eax, [ebp - 4]
call fcn.00405490
ret

Function at 0x5a2728
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5a27a7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x64
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00405bdc
lea eax, [ebp - 4]
push eax
mov eax, ebx
call fcn.004059ac
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x5a2776
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00405bdc
jmp 0x5a277d
mov eax, ebx
call fcn.00405490
lea edx, [ebp - 8]
mov eax, dword [ebx]
call fcn.0040a23c
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004054e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a27ae
lea eax, [ebp - 8]
call fcn.00405490
ret
Function at 0x5a3050
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe58
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x1a8], edx
mov dword [ebp - 0x1a4], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5a31d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00405490
mov dl, 1
mov eax, dword [0x41bb8c]
call fcn.00404544
mov dword [ebp - 0x10], eax
mov eax, 0x65
call fcn.00402f18
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x5a31a5
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x1a0]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
je 0x5a30ce
call fcn.00404e94
jmp 0x5a31ac
push 0x65
mov ebx, dword [ebp - 0xc]
push ebx
call sub.wsock32.dll_gethostname
test eax, eax
jne 0x5a317d
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040ba84
push ebx
call sub.wsock32.dll_gethostbyname
mov ebx, dword [eax + 0xc]
test ebx, ebx
je 0x5a30fd
cmp dword [ebx], 0
jne 0x5a3107
call fcn.00404e94
jmp 0x5a31ac
mov eax, dword [ebx]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x1a4]
call fcn.00405688
mov edx, dword [ebp - 0x1a4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
add ebx, 4
jmp 0x5a3155
push dword [esi]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x1a8]
call fcn.00405688
mov edx, dword [ebp - 0x1a8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
add ebx, 4
mov esi, dword [ebx]
test esi, esi
jne 0x5a3130
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
jne 0x5a3175
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0xc]
jmp 0x5a317d
mov eax, dword [ebp - 8]
call fcn.005a34ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a31ac
mov edx, 0x65
mov eax, dword [ebp - 0xc]
call fcn.00402f34
call sub.wsock32.dll_WSACleanup
mov eax, dword [ebp - 0x10]
call fcn.00404574
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a31d9
lea eax, [ebp - 0x1a8]
mov edx, 2
call fcn.004054b4
lea eax, [ebp - 4]
call fcn.00405490
ret
Function at 0x5a31e0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe5c
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x1a4], eax
mov dword [ebp - 0x1a0], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5a3345
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41bb8c]
call fcn.00404544
mov dword [ebp - 8], eax
mov eax, 0x65
call fcn.00402f18
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x5a3318
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x19c]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
je 0x5a325f
mov ecx, 0x5a3360
mov dl, 1
mov eax, dword [0x409040]
call fcn.0040f2d4
call fcn.00404de8
push 0x65
mov ebx, dword [ebp - 0xc]
push ebx
call sub.wsock32.dll_gethostname
test eax, eax
jne 0x5a32f8
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040ba84
push ebx
call sub.wsock32.dll_gethostbyname
mov ebx, dword [eax + 0xc]
test ebx, ebx
je 0x5a328e
cmp dword [ebx], 0
jne 0x5a32a4
mov ecx, 0x5a3390
mov dl, 1
mov eax, dword [0x409040]
call fcn.0040f2d4
call fcn.00404de8
mov eax, dword [ebx]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x1a0]
call fcn.00405688
mov edx, dword [ebp - 0x1a0]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
add ebx, 4
jmp 0x5a32f2
push dword [esi]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x1a4]
call fcn.00405688
mov edx, dword [ebp - 0x1a4]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
add ebx, 4
mov esi, dword [ebx]
test esi, esi
jne 0x5a32cd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a331f
mov edx, 0x65
mov eax, dword [ebp - 0xc]
call fcn.00402f34
call sub.wsock32.dll_WSACleanup
ret
Function at 0x5a3bd8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405954
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x5a3bf1
test al, 0x10
jne 0x5a3bf5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x5a5ce8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5a5ea2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x34]
call fcn.005a5be0
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 8]
call fcn.0040a23c
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x5a5d47
lea eax, [ebp - 0x38]
call fcn.004a8664
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 8]
call fcn.0040a23c
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x5a5d62
lea eax, [ebp - 0x3c]
call fcn.005a5c64
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 8]
call fcn.0040a23c
mov eax, dword [ebp - 8]
mov edx, 0x5a5eb8
call fcn.0040575c
mov eax, dword [ebp - 8]
jmp 0x5a5d84
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call fcn.0040575c
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00405750
cmp eax, 0x24
jl 0x5a5d74
mov ecx, 0x5a5ec4
mov dl, 1
mov eax, dword [0x481d64]
call fcn.00481f20
mov ebx, eax
push 0x24
mov eax, dword [ebp - 8]
call fcn.004059ac
mov edx, eax
lea ecx, [ebp - 0x30]
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x3c]
mov eax, ebx
call fcn.00404574
mov dword [ebp - 0xc], 3
lea eax, [ebp - 0x30]
mov edx, dword [eax]
xor edx, dword [eax + 0xc]
xor edx, dword [eax + 0x18]
mov dword [eax], edx
add eax, 4
dec dword [ebp - 0xc]
jne 0x5a5dcd
mov eax, dword [ebp - 8]
call fcn.00405490
mov edi, 0x39
mov dword [ebp - 0xc], 2
lea ebx, [ebp - 0x30]
mov esi, 5
mov eax, dword [ebx]
xor edx, edx
div edi
inc edx
mov eax, 0x5a5ed4
movzx edx, byte [eax + edx - 1]
lea eax, [ebp - 0x40]
call fcn.00405678
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 8]
call fcn.0040575c
mov eax, dword [ebp - 8]
mov eax, dword [ebx]
xor edx, edx
div edi
mov dword [ebx], eax
dec esi
jne 0x5a5dfb
add ebx, 4
dec dword [ebp - 0xc]
jne 0x5a5df6
mov eax, dword [ebp - 0x28]
xor edx, edx
div edi
inc edx
mov eax, 0x5a5ed4
movzx edx, byte [eax + edx - 1]
lea eax, [ebp - 0x44]
call fcn.00405678
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 8]
call fcn.0040575c
mov eax, dword [ebp - 8]
push 0x5a5f18
mov eax, dword [ebp - 8]
push dword [eax]
lea ecx, [ebp - 0x48]
mov edx, 8
mov eax, dword [ebp - 4]
call fcn.0040a748
push dword [ebp - 0x48]
mov eax, dword [ebp - 8]
mov edx, 3
call fcn.00405814
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a5ea9
lea eax, [ebp - 0x48]
mov edx, 6
call fcn.004054b4
ret
Function at 0x5a6320
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x5a63d2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, esi
call fcn.00405954
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov ebx, eax
test ebx, ebx
jle 0x5a63b3
mov eax, ebx
call fcn.00402f18
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5a63ac
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
mov eax, dword [ebp - 4]
push eax
mov eax, esi
call fcn.00405954
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00405688
mov eax, dword [ebp - 8]
mov edx, edi
call fcn.0040a23c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a63bc
mov eax, dword [ebp - 4]
call fcn.00402f34
ret
mov eax, edi
mov edx, esi
call fcn.004054e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a63d9
lea eax, [ebp - 8]
call fcn.00405490
ret

Function at 0x5a715c
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov esi, eax
push esi
call sub.user32.dll_IsIconic
test eax, eax
je 0x5a7175
push 9
push esi
call sub.user32.dll_ShowWindow
call sub.user32.dll_GetForegroundWindow
cmp esi, eax
jne 0x5a7185
mov bl, 1
jmp 0x5a7272
mov eax, dword [0x5c054c]
cmp dword [eax], 2
jne 0x5a7199
mov eax, dword [0x5bf7c4]
cmp dword [eax], 4
jg 0x5a71cd
mov eax, dword [0x5c054c]
cmp dword [eax], 1
jne 0x5a725c
mov eax, dword [0x5bf7c4]
cmp dword [eax], 4
jg 0x5a71cd
mov eax, dword [0x5bf7c4]
cmp dword [eax], 4
jne 0x5a725c
mov eax, dword [0x5bffc0]
cmp dword [eax], 0
jle 0x5a725c
xor ebx, ebx
push 0
call sub.user32.dll_GetForegroundWindow
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov edi, eax
push 0
push esi
call sub.user32.dll_GetWindowThreadProcessId
mov ebp, eax
push 0xffffffffffffffff
push edi
push ebp
call sub.user32.dll_AttachThreadInput
test eax, eax
je 0x5a7214
push esi
call sub.user32.dll_BringWindowToTop
push esi
call sub.user32.dll_SetForegroundWindow
push 0
push edi
push ebp
call sub.user32.dll_AttachThreadInput
call sub.user32.dll_GetForegroundWindow
cmp esi, eax
sete bl
test bl, bl
jne 0x5a7268
push 0
lea eax, [esp + 4]
push eax
push 0
push 0x2000
call sub.user32.dll_SystemParametersInfoA
push 2
push 0
push 0
push 0x2001
call sub.user32.dll_SystemParametersInfoA
push esi
call sub.user32.dll_BringWindowToTop
push esi
call sub.user32.dll_SetForegroundWindow
push 2
mov eax, dword [esp + 4]
push eax
push 0
push 0x2001
call sub.user32.dll_SystemParametersInfoA
jmp 0x5a7268
push esi
call sub.user32.dll_BringWindowToTop
push esi
call sub.user32.dll_SetForegroundWindow
call sub.user32.dll_GetForegroundWindow
cmp esi, eax
sete bl
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret