joyce8/EMBER2024-capa huggingface dataset:
Function at 0x557350
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x557448
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
mov dl, 1
mov eax, dword [0x42dae4]
call fcn.0040572c
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x557426
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
push eax
push 0x557334
call sub.user32.dll_EnumWindows
xor ebx, ebx
jmp 0x557402
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004395d8
lea edx, [ebp - 0xc]
call fcn.00557618
mov eax, dword [ebp - 0xc]
mov edx, 0x557464
call fcn.00414400
test al, al
je 0x557401
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004395d8
lea edx, [ebp - 0x10]
call fcn.00557684
mov edx, dword [ebp - 0x10]
mov eax, 0x557480
call fcn.00408650
test eax, eax
jle 0x557401
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004395d8
mov esi, eax
push esi
call sub.user32.dll_IsWindow
test eax, eax
je 0x557401
mov dword [ebp - 4], esi
inc ebx
mov eax, dword [ebp - 8]
cmp ebx, dword [eax + 8]
jge 0x557410
cmp dword [ebp - 4], 0
je 0x5573a2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55742d
mov eax, dword [ebp - 8]
call fcn.0040575c
ret

Function at 0x55fae8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x55fba6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x55fbc0
call fcn.00407b54
call sub.kernel32.dll_GetLogicalDrives
mov edi, eax
mov esi, 1
mov ebx, 0x21
test edi, esi
je 0x55fb78
mov eax, dword [ebp - 4]
call fcn.00407b8c
push eax
call sub.kernel32.dll_GetDriveTypeW
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 8]
cdq
cmp edx, dword [esp + 4]
jne 0x55fb4e
cmp eax, dword [esp]
pop edx
pop eax
jne 0x55fb78
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
movzx edx, word [edx]
call fcn.00407c6c
lea eax, [ebp - 0x10]
mov edx, 0x55fbd4
call fcn.00407f14
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
add esi, esi
lea eax, [ebp - 4]
call fcn.00408604
inc word [eax]
dec ebx
jne 0x55fb2b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55fbad
lea eax, [ebp - 0x10]
call fcn.00407af0
lea eax, [ebp - 4]
call fcn.00407af0
ret

Function at 0x55fc44
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov byte [ebp - 1], cl
mov ebx, edx
mov esi, eax
mov dword [esi], 1
movzx eax, bl
mov word [esi + 4], ax
push 0
movzx eax, bl
push eax
call sub.user32.dll_MapVirtualKeyW
mov word [esi + 6], ax
mov dword [esi + 8], 1
cmp byte [ebp - 1], 0
je 0x55fc7e
or dword [esi + 8], 2
xor eax, eax
mov dword [esi + 0xc], eax
call sub.user32.dll_GetMessageExtraInfo
mov dword [esi + 0x10], eax
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x55fc90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov byte [ebp - 9], al
xor eax, eax
push ebp
push 0x55fe0c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x49d
call sub.user32.dll_SetMessageExtraInfo
mov esi, 8
mov ebx, dword [0x737c80]
mov eax, dword [ebx]
push eax
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x55fd00
mov eax, dword [ebp - 4]
call fcn.00409504
inc eax
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x55fbf4]
call fcn.004096cc
add esp, 4
mov eax, dword [ebp - 4]
call fcn.00409504
mov edx, dword [ebp - 4]
mov ecx, dword [ebx]
mov dword [edx + eax*4 - 4], ecx
add ebx, 4
dec esi
jne 0x55fcc2
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.00409504
add eax, eax
add eax, 2
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x55fc1c]
call fcn.004096cc
add esp, 4
mov eax, dword [ebp - 4]
call fcn.00409504
mov edi, eax
dec edi
test edi, edi
jl 0x55fd61
inc edi
xor esi, esi
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4]
mov edx, dword [ebp - 4]
movzx edx, byte [edx + esi*4]
mov cl, 1
call fcn.0055fc44
inc ebx
inc esi
dec edi
jne 0x55fd3e
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4]
xor ecx, ecx
movzx edx, byte [ebp - 9]
call fcn.0055fc44
inc ebx
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4]
mov cl, 1
movzx edx, byte [ebp - 9]
call fcn.0055fc44
inc ebx
mov eax, dword [ebp - 4]
call fcn.00409504
mov edi, eax
dec edi
test edi, edi
jl 0x55fdce
inc edi
xor esi, esi
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4]
mov edx, dword [ebp - 4]
movzx edx, byte [edx + esi*4]
xor ecx, ecx
call fcn.0055fc44
inc ebx
inc esi
dec edi
jne 0x55fdab
push 0x1c
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 8]
call fcn.00409504
push eax
call sub.user32.dll_SendInput
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55fe13
lea eax, [ebp - 8]
mov edx, dword [0x55fc1c]
call fcn.004097ec
lea eax, [ebp - 4]
mov edx, dword [0x55fbf4]
call fcn.004097ec
ret
Function at 0x5604f4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x5604fc
push ecx
push ebx
push esi
push edi
mov edi, eax
xor eax, eax
push ebp
push 0x560627
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, dword [0x737638]
mov eax, dword [eax]
call fcn.0050e3f4
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00407b8c
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x5605ff
mov eax, dword [ebp - 0x10]
call fcn.00404328
mov ebx, eax
push ebx
mov eax, dword [ebp - 0x10]
push eax
push 0
push esi
call sub.version.dll_GetFileVersionInfoW
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x560638
push ebx
call sub.version.dll_VerQueryValueW
push 0x560678
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
movsx eax, word [eax]
mov edx, 4
call fcn.004151c4
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x18]
movsx eax, word [eax + 2]
mov edx, 4
call fcn.004151c4
push dword [ebp - 0x20]
push 0x5606a8
lea eax, [ebp - 8]
mov edx, 4
call fcn.004080b8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
mov ecx, 0x5606b8
mov edx, dword [ebp - 8]
call fcn.00407fd4
mov eax, dword [ebp - 0x24]
call fcn.00407b8c
push eax
push ebx
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x5605ec
mov eax, edi
mov edx, dword [ebp - 0x14]
call fcn.00407cac
jmp 0x5605f5
mov eax, edi
xor edx, edx
call fcn.00407b00
mov edx, dword [ebp - 0x10]
mov eax, ebx
call fcn.0040435c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56062e
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00407af8
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407af8
ret
Function at 0x561048
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407ae8
xor eax, eax
push ebp
push 0x561160
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0041405c
mov edx, dword [ebp - 0x10]
mov eax, 0x56117c
call fcn.00408650
mov ebx, eax
test ebx, ebx
jle 0x5610cc
lea eax, [ebp - 0x14]
push eax
lea esi, [ebx + 4]
mov edx, esi
mov ecx, 0x7fffffff
mov eax, dword [ebp - 4]
call fcn.004082e0
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 8]
call fcn.004146f4
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004082e0
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0xc]
call fcn.004146f4
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00415c68
mov eax, dword [ebp - 0x1c]
mov edx, 0x561194
call fcn.00414400
test al, al
je 0x56111e
cmp dword [ebp - 8], 0
je 0x56111e
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.00407b8c
push eax
mov eax, dword [ebp - 0xc]
call fcn.00407b8c
push eax
push 0x5611a0
mov eax, dword [0x737638]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.shell32.dll_ShellExecuteW
jmp 0x561145
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00407b8c
push eax
push 0x5611a0
mov eax, dword [0x737638]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x561167
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.00407af8
ret

Function at 0x5627d0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
and edx, edx
je 0x5627ec
and ecx, ecx
jle 0x5627ec
push ebx
imul eax, eax, 0x8088405
inc eax
mov ebx, eax
shr ebx, 0x18
mov byte [edx], bl
inc edx
dec ecx
jne 0x5627d9
pop ebx
ret

Function at 0x563b2c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
add esi, 0xfffffffc
xor ebx, ebx
cmp ebx, dword [ebp - 0xc]
jge 0x563ba7
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x1c]
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
mov eax, dword [esi]
mov edi, dword [eax]
call dword [edi + 0x14]
mov eax, dword [esi]
mov ecx, dword [eax + 0x10]
dec ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
mov eax, dword [esi]
mov eax, dword [eax + 0x24]
inc eax
call fcn.00404504
mov eax, dword [ebp - 4]
movzx eax, byte [eax + ebx]
mov edx, dword [esi]
mov edx, dword [edx + 0x1c]
xor al, byte [edx]
mov edx, dword [ebp - 8]
mov byte [edx + ebx], al
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
mov edx, dword [esi]
mov edx, dword [edx + 0x24]
mov ecx, dword [ebp - 8]
movzx ecx, byte [ecx + ebx]
mov byte [edx + eax - 1], cl
inc ebx
cmp ebx, dword [ebp - 0xc]
jl 0x563b4b
mov eax, dword [esi]
mov byte [eax + 4], 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x563bb4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
add ebx, 0xfffffffc
xor esi, esi
cmp esi, dword [ebp - 0xc]
jge 0x563c30
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebx]
mov edx, dword [eax + 0x24]
mov eax, dword [ebx]
mov edi, dword [eax]
call dword [edi + 0x14]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x10]
dec ecx
mov eax, dword [ebx]
mov edx, dword [eax + 0x24]
mov eax, dword [ebx]
mov eax, dword [eax + 0x24]
inc eax
call fcn.00404504
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
mov edx, dword [ebx]
mov edx, dword [edx + 0x24]
mov ecx, dword [ebx]
mov ecx, dword [ecx + 0x1c]
movzx ecx, byte [ecx]
mov byte [edx + eax - 1], cl
mov eax, dword [ebp - 4]
movzx eax, byte [eax + esi]
mov edx, dword [ebx]
mov edx, dword [edx + 0x1c]
xor al, byte [edx]
mov edx, dword [ebp - 8]
mov byte [edx + esi], al
inc esi
cmp esi, dword [ebp - 0xc]
jl 0x563bd3
mov eax, dword [ebx]
mov byte [eax + 4], 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x563c40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
add esi, 0xfffffffc
xor ebx, ebx
cmp ebx, dword [ebp - 0xc]
jge 0x563cbb
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x1c]
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
mov eax, dword [esi]
mov edi, dword [eax]
call dword [edi + 0x14]
mov eax, dword [ebp - 4]
movzx eax, byte [eax + ebx]
mov edx, dword [esi]
mov edx, dword [edx + 0x1c]
xor al, byte [edx]
mov edx, dword [ebp - 8]
mov byte [edx + ebx], al
mov eax, dword [esi]
mov ecx, dword [eax + 0x10]
dec ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
mov eax, dword [esi]
mov eax, dword [eax + 0x24]
inc eax
call fcn.00404504
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
mov edx, dword [esi]
mov edx, dword [edx + 0x24]
mov ecx, dword [ebp - 8]
movzx ecx, byte [ecx + ebx]
xor byte [edx + eax - 1], cl
inc ebx
cmp ebx, dword [ebp - 0xc]
jl 0x563c5f
mov eax, dword [esi]
mov byte [eax + 4], 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x56442c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
add esi, 0xfffffffc
xor ebx, ebx
cmp ebx, dword [ebp - 0xc]
jge 0x5644a7
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x1c]
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
mov eax, dword [esi]
mov edi, dword [eax]
call dword [edi + 0x14]
mov eax, dword [esi]
mov ecx, dword [eax + 0x10]
dec ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
mov eax, dword [esi]
mov eax, dword [eax + 0x24]
inc eax
call fcn.00404504
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
mov edx, dword [esi]
mov edx, dword [edx + 0x24]
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + ebx]
mov byte [edx + eax - 1], cl
mov eax, dword [ebp - 4]
movzx eax, byte [eax + ebx]
mov edx, dword [esi]
mov edx, dword [edx + 0x1c]
xor al, byte [edx]
mov edx, dword [ebp - 8]
mov byte [edx + ebx], al
inc ebx
cmp ebx, dword [ebp - 0xc]
jl 0x56444b
mov eax, dword [esi]
mov byte [eax + 4], 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5644b4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
add ebx, 0xfffffffc
xor esi, esi
cmp esi, dword [ebp - 0xc]
jge 0x564530
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebx]
mov edx, dword [eax + 0x24]
mov eax, dword [ebx]
mov edi, dword [eax]
call dword [edi + 0x14]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x10]
dec ecx
mov eax, dword [ebx]
mov edx, dword [eax + 0x24]
mov eax, dword [ebx]
mov eax, dword [eax + 0x24]
inc eax
call fcn.00404504
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
mov edx, dword [ebx]
mov edx, dword [edx + 0x24]
mov ecx, dword [ebx]
mov ecx, dword [ecx + 0x1c]
movzx ecx, byte [ecx]
mov byte [edx + eax - 1], cl
mov eax, dword [ebp - 4]
movzx eax, byte [eax + esi]
mov edx, dword [ebx]
mov edx, dword [edx + 0x1c]
xor al, byte [edx]
mov edx, dword [ebp - 8]
mov byte [edx + esi], al
inc esi
cmp esi, dword [ebp - 0xc]
jl 0x5644d3
mov eax, dword [ebx]
mov byte [eax + 4], 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x564540
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
add esi, 0xfffffffc
xor ebx, ebx
cmp ebx, dword [ebp - 0xc]
jge 0x5645bb
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x1c]
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
mov eax, dword [esi]
mov edi, dword [eax]
call dword [edi + 0x14]
mov eax, dword [esi]
mov ecx, dword [eax + 0x10]
dec ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
mov eax, dword [esi]
mov eax, dword [eax + 0x24]
inc eax
call fcn.00404504
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
mov edx, dword [esi]
mov edx, dword [edx + 0x24]
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + ebx]
xor byte [edx + eax - 1], cl
mov eax, dword [ebp - 4]
movzx eax, byte [eax + ebx]
mov edx, dword [esi]
mov edx, dword [edx + 0x1c]
xor al, byte [edx]
mov edx, dword [ebp - 8]
mov byte [edx + ebx], al
inc ebx
cmp ebx, dword [ebp - 0xc]
jl 0x56455f
mov eax, dword [esi]
mov byte [eax + 4], 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5650b4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x28]
mov ebx, eax
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x18]
shr edx, 1
add ebx, edx
mov ecx, dword [ebp + 8]
mov ecx, edx
mov edx, dword [ebp + 8]
mov edx, ebx
call fcn.00404504
add ebx, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [eax + 0x30]
add edx, edx
add edx, edx
sub edx, 5
test edx, edx
jl 0x565188
inc edx
mov eax, dword [ebx]
mov ecx, eax
and ecx, 0xff
mov esi, dword [str.cw]
movzx ecx, byte [esi + ecx]
mov esi, dword [0x737928]
mov ecx, dword [esi + ecx*4 + 0x1000]
mov esi, eax
shr esi, 8
and esi, 0xff
mov edi, dword [str.cw]
movzx esi, byte [edi + esi]
mov edi, dword [0x737928]
xor ecx, dword [edi + esi*4 + 0x1400]
mov esi, eax
shr esi, 0x10
and esi, 0xff
mov edi, dword [str.cw]
movzx esi, byte [edi + esi]
mov edi, dword [0x737928]
xor ecx, dword [edi + esi*4 + 0x1800]
shr eax, 0x18
mov esi, dword [str.cw]
movzx eax, byte [esi + eax]
mov esi, dword [0x737928]
xor ecx, dword [esi + eax*4 + 0x1c00]
mov dword [ebx], ecx
add ebx, 4
dec edx
jne 0x5650fd
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x5681a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5683b1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 0x14], 0
jge 0x5681de
mov ecx, 0x2a1
mov edx, 0x5683d0
mov eax, 0x568444
call fcn.00406a54
cmp dword [ebp - 0xc], 0
jge 0x5681f8
mov ecx, 0x2a2
mov edx, 0x5683d0
mov eax, 0x568444
call fcn.00406a54
cmp dword [ebp + 0x18], 0
jge 0x568212
mov ecx, 0x2a3
mov edx, 0x5683d0
mov eax, 0x568444
call fcn.00406a54
mov eax, ebx
call dword [eax + 0x28]
test eax, eax
jge 0x56822f
mov ecx, 0x2a4
mov edx, 0x5683d0
mov eax, 0x568444
call fcn.00406a54
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp + 0x14]
call fcn.004075b4
mov eax, dword [ebp + 0xc]
call fcn.00562850
mov dword [ebp + 0xc], eax
mov dl, 1
mov eax, ebx
call dword [eax + 0xc]
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x56836b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0x14]
dec eax
test eax, eax
jl 0x568355
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x18]
call fcn.00567f80
mov eax, dword [ebp - 0x10]
call fcn.00562850
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x14]
mov ecx, 4
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0x1c]
mov eax, dword [ebp + 8]
call fcn.004073b8
mov edx, eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0x1c]
lea edx, [ebp + 0xc]
mov ecx, 4
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0x1c]
mov eax, dword [ebp + 0x18]
call fcn.00562850
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x14]
mov ecx, 4
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0x1c]
mov edx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00562850
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x14]
mov ecx, 4
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0x1c]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0x1c]
mov eax, dword [ebp - 0x18]
call fcn.00567fc8
xor ebx, ebx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
call dword [eax + 0x28]
mov edi, eax
dec edi
test edi, edi
jl 0x56833b
inc edi
xor esi, esi
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x20]
xor bl, byte [eax + esi]
inc esi
dec edi
jne 0x56832c
mov eax, dword [ebp + 8]
call fcn.004073b8
mov edx, dword [ebp - 0x10]
mov byte [eax + edx], bl
inc dword [ebp - 0x10]
dec dword [ebp - 0x1c]
jne 0x568276
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x568372
mov eax, dword [ebp - 0x18]
call fcn.0040575c
ret
Function at 0x56ecc0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 4], ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x56ed39
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xfd
lea eax, [ebp - 4]
mov edx, 0xfe
call fcn.00407e7c
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00407b8c
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x56ed1a
push ebx
mov ecx, dword [ebp - 8]
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004082e0
jmp 0x56ed23
mov eax, ebx
xor edx, edx
call fcn.00407b00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56ed40
lea eax, [ebp - 4]
call fcn.00407af0
ret

Function at 0x5883f4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor edx, edx
mov dword [ebp - 0x14], edx
xor edx, edx
push ebp
push 0x588458
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 0xe]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xe]
mov ecx, 7
call fcn.00407d00
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetACP_1
mov edx, eax
pop eax
call fcn.00415258
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58845f
lea eax, [ebp - 0x14]
call fcn.00407af0
ret

Function at 0x5892fc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00407b8c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x589318
test al, 0x10
jne 0x58931d
xor eax, eax
pop ebx
pop ebp
ret
mov al, 1
pop ebx
pop ebp
ret

Function at 0x589324
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
test ebx, ebx
je 0x589346
push ebx
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x58933d
test al, 0x10
je 0x589341
xor eax, eax
jmp 0x589348
mov al, 1
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret