joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e6820
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x625a04], 0
je 0x4e6961
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x61fad4]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x4e6961
mov eax, dword [0x625a08]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x625a04]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4e6930
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x625a04]
call fcn.00431efc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4e6928
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1ea], 0
je 0x4e6928
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x5c]
test al, al
je 0x4e6928
mov eax, dword [ebp - 0x14]
call fcn.004f2214
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x4e6928
push ebp
call fcn.004e67dc
pop ecx
test al, al
jne 0x4e6928
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.004835c0
test al, al
je 0x4e6928
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.004835c0
cmp byte [ebp - 1], 0
je 0x4e6928
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.0047ef2c
test al, al
je 0x4e6928
mov edx, dword [ebp - 0x14]
mov eax, dword [0x625a08]
call fcn.004e5f34
inc edi
dec ebx
jne 0x4e6885
mov eax, dword [0x625a08]
cmp dword [eax + 8], 0
jle 0x4e6948
mov eax, dword [0x625a08]
call fcn.004e5fec
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4e6961
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004e6640
pop ecx
test al, al
jne 0x4e6961
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4eed8c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.USER32.DLL_GetMessagePos
call fcn.0047ef14
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.004e8da0
test ebx, ebx
jne 0x4eeddf
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.004eec08
mov ebx, eax
test ebx, ebx
je 0x4eeed5
cmp esi, ebx
je 0x4eee08
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x4eee1d
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x4eee55
add eax, 0xffffff5f
sub eax, 2
jb 0x4eee6d
dec eax
sub eax, 2
jb 0x4eee81
dec eax
sub eax, 2
jb 0x4eee77
jmp 0x4eee8b
add eax, 0xfffffdff
sub eax, 2
jb 0x4eee6d
dec eax
sub eax, 2
jb 0x4eee81
dec eax
sub eax, 2
jb 0x4eee77
jmp 0x4eee8b
mov byte [esp + 0x120], 0
jmp 0x4eee93
mov byte [esp + 0x120], 2
jmp 0x4eee93
mov byte [esp + 0x120], 1
jmp 0x4eee93
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.USER32.DLL_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.004c4924
mov esi, eax
call fcn.004e5620
or si, ax
mov word [esp + 0x121], si
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.004ea788
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x4eeed7
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret

Function at 0x4fbea8
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x4fbf95
push dword fs:[edx]
mov dword fs:[edx], esp
push ebx
push 0x2002
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4fbf67
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
xor edx, edx
push ebp
push 0x4fbf56
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, eax
mov eax, edi
mov ecx, ebx
call fcn.004828f4
mov eax, dword [ebp - 4]
call fcn.004fbbe8
mov eax, dword [ebp - 8]
push eax
movzx eax, si
push eax
call sub.USER32.DLL_SetClipboardData
test eax, eax
jne 0x4fbf3f
mov ecx, dword [0x61fe48]
mov dl, 1
mov eax, dword [0x426584]
call fcn.0046df2c
call fcn.004844c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fbf5d
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
ret
Function at 0x4fc174
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x4fc21c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x4fc1ef
mov edx, ebx
mov eax, dword [0x4add04]
call fcn.004b60e0
test al, al
je 0x4fc1df
movzx eax, bx
push eax
call sub.USER32.DLL_GetClipboardData
mov esi, eax
push 9
call sub.USER32.DLL_GetClipboardData
mov edi, eax
push edi
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004b5ff8
call fcn.004845b8
jmp 0x4fc223
movzx eax, bx
push eax
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x4fc1a7
mov ecx, dword [0x61ff3c]
mov dl, 1
mov eax, dword [0x4fbafc]
call fcn.0046df2c
call fcn.004844c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fc223
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4fc22c
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x4fc288
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.USER32.DLL_GetClipboardData
mov esi, eax
push 9
call sub.USER32.DLL_GetClipboardData
mov edi, eax
push edi
mov ecx, esi
mov dx, 2
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x64]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fc28f
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4fc298
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x4fc2ed
push dword fs:[edx]
mov dword fs:[edx], esp
push 3
call sub.USER32.DLL_GetClipboardData
mov ebx, eax
push 9
call sub.USER32.DLL_GetClipboardData
push eax
mov ecx, ebx
mov dx, 3
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x64]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fc2f4
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x4fc364
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x4fc3d9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004fbbe8
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
call fcn.004b60bc
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x4fc3c3
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fc3e0
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4fc3e8
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x4fc45d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004fbbe8
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x68]
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x4fc447
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fc464
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4fdf38
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4fdf66
mov eax, ebx
call fcn.004fe9ec
cmp dword [ebx + 0x40], 0
je 0x4fdf5f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4fdfd7
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4fdfc9
cmp dword [ebx + 8], 0
je 0x4fdf88
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4fdf9a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4fdfc9
cmp dword [ebx + 8], 0
je 0x4fdf7b
cmp eax, 3
je 0x4fdfad
dec eax
jne 0x4fdf7b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4fdf7b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4fdf7b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4fdff5
cmp dword [ebx + 0x14], 0xcc
je 0x4fdff5
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004fe000
pop ebx
ret
Function at 0x514054
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x625a9c
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x514076
shr eax, 1
xor eax, 0xedb88320
jmp 0x514078
shr eax, 1
dec edx
jne 0x514064
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x51405d
mov byte [0x625e9c], 1
pop esi
pop ebx
ret

Function at 0x514094
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x625e9c], 0
jne 0x5140ab
call fcn.00514054
mov eax, edi
dec eax
test eax, eax
jl 0x5140d3
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x625a9c]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x5140b5
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x516e60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x461]
movzx ecx, dl
cmp ecx, 6
ja case.0x516efa.0
jmp dword [ecx*4 + 0x516e93]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x516ec5
sub dl, 8
je 0x516ed4
jmp case.0x516efa.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x516b08
jmp case.0x516efa.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x516b60
jmp case.0x516efa.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x516efa.0
movzx ecx, byte [ecx + 0x516f01]
jmp dword [ecx*4 + 0x516f12]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x516c0c
jmp case.0x516efa.0
cmp dl, 3
jne 0x516f3f
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x516c64
jmp case.0x516efa.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x516c20
jmp case.0x516efa.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x516ca8
jmp case.0x516efa.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x516f6a
sub dl, 8
je 0x516f76
jmp case.0x516efa.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x516cd4
jmp case.0x516efa.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x516d40
jmp case.0x516efa.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x516f95
sub dl, 8
je 0x516fa1
jmp case.0x516efa.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x516dfc
jmp case.0x516efa.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x516e24
mov edx, dword [eax + 0x468]
mov ecx, dword [ebx + 0x1c]
dec ecx
imul edx, ecx
mov esi, edx
add esi, dword [eax + 0x450]
mov dword [ebp - 0xc], esi
mov esi, dword [eax + 0x454]
mov dword [ebp - 8], esi
add edx, dword [eax + 0x44c]
mov dword [ebp - 0x10], edx
mov esi, ecx
test esi, esi
jb 0x517043
inc esi
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
movzx eax, byte [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0x40]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0051600c
test eax, eax
je 0x517043
mov eax, ebx
call fcn.0051704c
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call dword [ebp - 0x18]
movzx eax, byte [ebx + 0x48]
xor al, 1
mov byte [ebx + 0x48], al
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x468]
sub dword [ebp - 0xc], eax
sub dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 8], eax
dec esi
jne 0x516fdc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x51704c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x51707d
dec al
je 0x5170b8
dec al
je 0x5170fd
dec al
je 0x517166
jmp 0x5171f0
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x5171f0
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x51708d
jmp 0x5171f0
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5171f0
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x5170c8
jmp 0x5171f0
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5171f0
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x51712c
xor ebp, ebp
jmp 0x51713c
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x517145
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x51710d
jmp 0x5171f0
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5171f0
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x5171bf
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.005140dc
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x51717a
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x522000
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x522051
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x522038
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x522028
jmp 0x522051
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x522039
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x53b400
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
mov dword [ebp - 4], edx
mov dword [ebp - 0x2c], eax
mov eax, 0x5fade8
call fcn.005d0a3c
mov dword [ebp - 0xc], 1
lea edx, [ebp - 4]
lea eax, [ebp - 4]
call fcn.005de500
inc dword [ebp - 0xc]
mov word [ebp - 0x18], 0xc
xor edx, edx
mov dword [ebp - 0x30], edx
xor ecx, ecx
mov dword [ebp - 0x34], ecx
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
cmp dword [ebp - 4], 0
je 0x53b458
mov eax, dword [ebp - 4]
jmp 0x53b45d
mov eax, 0x5fa040
push eax
call sub.KERNEL32.DLL_CreateFileW
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
jne 0x53b494
push dword [ebp - 0x34]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
push eax
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.005de650
pop eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x53b4c8
push 0
push dword [ebp - 0x34]
call sub.KERNEL32.DLL_GetFileSize
mov dword [ebp - 0x30], eax
push dword [ebp - 0x34]
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0x30]
push eax
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.005de650
pop eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret

Function at 0x53d1c8
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd4
push esi
push edi
mov eax, 0x5fb5cc
call fcn.005d0a3c
mov esi, 0x5f9988
lea edi, [ebp - 0x42c]
mov ecx, 0x100
rep movsd dword es:[edi], dword [esi]
mov word [ebp - 0x1c], 0x18
mov edx, str.DOCUMENTS
lea eax, [ebp - 4]
call fcn.005de4c0
inc dword [ebp - 0x10]
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
add eax, 0xb4
call fcn.005de678
dec dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 2
call fcn.005de650
push 1
push 5
lea ecx, [ebp - 0x42c]
push ecx
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderPathA
mov word [ebp - 0x1c], 0x24
lea edx, [ebp - 0x42c]
lea eax, [ebp - 8]
call fcn.005de4c0
inc dword [ebp - 0x10]
lea edx, [ebp - 8]
mov eax, dword [ebp + 8]
add eax, 0xb8
call fcn.005de678
dec dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 2
call fcn.005de650
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xbc], 0x18
mov eax, dword [ebp - 0x2c]
mov dword fs:[0], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x53d448
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
mov dword [ebp - 4], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], eax
mov eax, 0x5fb6cc
call fcn.005d0a3c
mov dword [ebp - 0xc], 1
lea edx, [ebp - 4]
lea eax, [ebp - 4]
call fcn.005de500
inc dword [ebp - 0xc]
mov word [ebp - 0x18], 0xc
push 1
push 0
push 0
cmp dword [ebp - 4], 0
je 0x53d48d
mov edx, dword [ebp - 4]
jmp 0x53d492
mov edx, 0x5fa168
push edx
push 0x5fa15e
mov eax, dword [0x61fad4]
mov ecx, dword [eax]
push dword [ecx + 0x170]
call sub.SHELL32.DLL_ShellExecuteW
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.005de650
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x53e9e4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7d8
push esi
push edi
mov eax, 0x5fc7ac
call fcn.005d0a3c
mov dword [ebp - 0xc], 1
lea edx, [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.005de500
inc dword [ebp - 0xc]
mov word [ebp - 0x18], 0xc
mov esi, 0x5fbdb8
lea edi, [ebp - 0x828]
mov ecx, pe_nt_image_headers32
rep movsd dword es:[edi], dword [esi]
push 0x400
lea eax, [ebp - 0x828]
push eax
cmp dword [ebp + 0xc], 0
je 0x53ea3d
mov edx, dword [ebp + 0xc]
jmp 0x53ea42
mov edx, 0x5fc5ee
push edx
call sub.KERNEL32.DLL_ExpandEnvironmentStringsW
mov word [ebp - 0x18], 0x24
lea edx, [ebp - 0x828]
lea eax, [ebp - 4]
call fcn.005de5ec
inc dword [ebp - 0xc]
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.005de678
mov eax, dword [ebp + 8]
mov word [ebp - 0x18], 0x30
push eax
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.005de650
dec dword [ebp - 0xc]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.005de650
pop eax
mov word [ebp - 0x18], 0x24
inc dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x54249c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
mov dword [ebp - 4], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], eax
mov eax, 0x5fd884
call fcn.005d0a3c
mov dword [ebp - 0xc], 1
lea edx, [ebp - 4]
lea eax, [ebp - 4]
call fcn.005de500
inc dword [ebp - 0xc]
mov word [ebp - 0x18], 0xc
push 1
push 0
push 0
cmp dword [ebp - 4], 0
je 0x5424e1
mov edx, dword [ebp - 4]
jmp 0x5424e6
mov edx, 0x5fce88
push edx
push 0x5fce7e
mov eax, dword [0x61fad4]
mov ecx, dword [eax]
push dword [ecx + 0x170]
call sub.SHELL32.DLL_ShellExecuteW
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.005de650
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4