joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f24c0
Capabilities:
Get file version info

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
push esp
push 0x4f2548
call sub.version.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jne 0x4f24e3
call sub.kernel32.dll_GetLastError_1
mov dword [esp], eax
mov bl, 1
jmp 0x4f253c
mov eax, edi
call fcn.00402818
mov esi, eax
push esi
push edi
push 0
push 0x4f2548
call sub.version.dll_GetFileVersionInfoA
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0x4f2558
push esi
call sub.version.dll_VerQueryValueA
mov eax, dword [esp + 8]
mov edx, dword [eax + 8]
shr edx, 0x10
mov ax, word [eax + 8]
and ax, 0xffff
cmp dx, 4
jb 0x4f252d
cmp ax, 0x46
ja 0x4f2531
xor ebx, ebx
jmp 0x4f2533
mov bl, 1
mov edx, edi
mov eax, esi
call fcn.00402838
mov eax, ebx
add esp, 0xc
pop edi
pop esi
pop ebx
ret

Function at 0x4f4988
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, edx
mov esi, eax
cmp bl, 7
jne 0x4f49b4
push 2
lea eax, [esp + 4]
push eax
push 0x100c
push 0x400
call sub.kernel32.dll_GetLocaleInfoA_1
movzx edi, byte [esp]
sub edi, 0x30
jmp 0x4f49b9
mov edi, ebx
and edi, 0x7f
mov eax, esi
call fcn.00454948
test eax, eax
je 0x4f49d1
mov edx, edi
mov eax, dword [esi + 0x180]
call fcn.0042dbac
mov byte [esi + 0x298], bl
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4fccc8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push ecx
mov esi, ecx
mov ebx, edx
mov edx, dword [eax + 0x228]
mov dl, byte [edx + 0x20]
cmp dl, 7
jne 0x4fcd0d
push 2
lea eax, [esp + 4]
push eax
push 0x100c
push 0x400
call sub.kernel32.dll_GetLocaleInfoA_1
xor eax, eax
mov al, byte [esp]
sub eax, 0x30
add eax, 2
mov dword [ebx], eax
cmp dword [ebx], 8
jne 0x4fcd23
mov dword [ebx], 1
jmp 0x4fcd23
cmp dl, 6
jne 0x4fcd1a
mov dword [ebx], 1
jmp 0x4fcd23
xor eax, eax
mov al, dl
add eax, 2
mov dword [ebx], eax
mov eax, dword [ebx]
dec eax
cmp eax, 1
jge 0x4fcd33
mov dword [esi], 7
jmp 0x4fcd35
mov dword [esi], eax
pop edx
pop esi
pop ebx
ret

Function at 0x504168
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 0x5041b9
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x5041a0
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x504190
jmp 0x5041b9
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 0x5041a1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50d978
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
add ebx, 0xfffffffc
lea edx, [ebp - 0x18]
mov eax, dword [ebx]
mov ecx, dword [eax]
call dword [ecx + 0xe8]
mov eax, dword [ebx]
mov si, 0xffc8
call fcn.00403c58
test al, al
je 0x50d9b8
mov eax, dword [ebx]
call fcn.0044dad8
mov esi, eax
sub esi, dword [ebp - 0x18]
mov dword [ebp - 0x10], esi
sub esi, 0xd
mov dword [ebp - 0x18], esi
mov edi, 4
mov eax, dword [ebx]
mov edx, dword [eax]
call dword [edx + 0xe0]
test al, al
je 0x50d9d1
or edi, 0x400
mov eax, dword [ebx]
test byte [eax + 0x54], 1
je 0x50da71
mov eax, dword [ebx]
mov si, 0xffb5
call fcn.00403c58
test al, al
je 0x50da71
mov eax, dword [ebx]
test byte [eax + 0x54], 0x80
jne 0x50da71
mov eax, dword [ebp + 8]
cmp byte [eax - 5], 0
je 0x50da60
lea eax, [ebp - 8]
push eax
call sub.user32.dll_GetCursorPos
lea ecx, [ebp - 0x20]
lea edx, [ebp - 8]
mov eax, dword [ebx]
call fcn.0044dc18
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
push dword [ebp - 4]
push dword [ebp - 8]
mov eax, dword [ebp - 0xc]
add eax, 3
push eax
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 3
mov edx, dword [ebp - 0x14]
sub edx, 3
mov eax, dword [ebp - 0x18]
sub eax, 3
call fcn.00418574
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x50da71
or edi, 0x200
jmp 0x50da71
mov eax, dword [ebx]
call fcn.0050e294
test al, al
je 0x50da71
or edi, 0x200
mov eax, dword [ebx]
cmp byte [eax + 0x231], 0
je 0x50daa5
push 0x20
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x50daa5
mov eax, dword [ebx]
mov si, 0xffb5
call fcn.00403c58
test al, al
je 0x50daa5
mov eax, dword [ebx]
test byte [eax + 0x54], 0x80
jne 0x50daa5
or edi, 0x200
mov eax, dword [ebx]
mov edx, dword [eax]
call dword [edx + 0xe0]
test al, al
je 0x50daef
mov eax, dword [ebx]
mov esi, dword [eax + 0x234]
test esi, esi
je 0x50db2c
mov eax, esi
call fcn.0045b484
dec eax
jle 0x50db2c
mov eax, dword [ebp - 0x14]
push eax
push 1
push 1
mov eax, dword [ebx]
mov edx, dword [eax]
call dword [edx + 0xf4]
mov edx, eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x234]
mov ecx, dword [ebp - 0x18]
call fcn.0045b99c
jmp 0x50db59
mov eax, dword [ebx]
mov esi, dword [eax + 0x234]
test esi, esi
je 0x50db2c
mov eax, esi
call fcn.0045b484
test eax, eax
jle 0x50db2c
mov eax, dword [ebp - 0x14]
push eax
push 0
push 1
mov eax, dword [ebx]
mov edx, dword [eax]
call dword [edx + 0xf4]
mov edx, eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x234]
mov ecx, dword [ebp - 0x18]
call fcn.0045b99c
jmp 0x50db59
mov eax, dword [ebx]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
jne 0x50db3d
add edi, 0x100
push edi
push 4
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebx]
mov edx, dword [eax]
call dword [edx + 0xf4]
call fcn.00426608
push eax
call sub.user32.dll_DrawFrameControl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5233e4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
lea eax, [ebp - 0x100]
push eax
call sub.user32.dll_GetKeyboardState
push esi
push edi
lea esi, [ebp - 0x100]
lea edi, [ebp - 0x200]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
movzx eax, si
mov byte [ebp + eax - 0x200], 0x81
movzx esi, bx
mov byte [ebp + esi - 0x200], 0x81
lea eax, [ebp - 0x200]
push eax
call sub.user32.dll_SetKeyboardState
push 1
push esi
push pe_nt_image_headers32
push edi
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x100]
push eax
call sub.user32.dll_SetKeyboardState
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5277b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push ecx
mov byte [esp], cl
mov esi, edx
mov ebx, eax
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5277ca
or byte [esp], 2
mov edx, esi
mov cl, byte [esp]
mov eax, ebx
call fcn.005276e0
mov edx, esi
mov cl, byte [esp]
mov eax, ebx
call fcn.00548b4c
mov ax, word [esi]
call fcn.00553264
test al, al
je 0x527801
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x10c]
test al, al
jne 0x527801
mov word [esi], 0
pop edx
pop esi
pop ebx
ret

Function at 0x52b3e8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov ebx, eax
push esp
call sub.user32.dll_GetKeyboardState
mov eax, dword [0x621860]
mov eax, dword [eax]
mov esi, dword [eax + 0x5c]
cmp byte [esp + 0x90], 0
je 0x52b42f
mov eax, dword [ebx + 0x344]
mov eax, dword [eax + 0x208]
mov edx, 2
call fcn.004d27cc
mov edx, dword [esi + 0xb0]
call fcn.004d2728
jmp 0x52b44c
mov eax, dword [ebx + 0x344]
mov eax, dword [eax + 0x208]
mov edx, 2
call fcn.004d27cc
xor edx, edx
call fcn.004d2728
cmp byte [esp + 0x14], 0
je 0x52b476
mov eax, dword [ebx + 0x344]
mov eax, dword [eax + 0x208]
mov edx, 1
call fcn.004d27cc
mov edx, dword [esi + 0xac]
call fcn.004d2728
jmp 0x52b493
mov eax, dword [ebx + 0x344]
mov eax, dword [eax + 0x208]
mov edx, 1
call fcn.004d27cc
xor edx, edx
call fcn.004d2728
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x5341dc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
xor edx, edx
mov dword [ebp - 0x204], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x53426d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x200]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
test eax, eax
jne 0x53421a
mov eax, ebx
call fcn.004048a8
lea eax, [ebp - 0x100]
push eax
push 0
push 0x53427c
lea eax, [ebp - 0x200]
push eax
call sub.kernel32.dll_GetTempFileNameA
lea edx, [ebp - 0x204]
lea eax, [ebp - 0x100]
call fcn.0040a288
mov edx, dword [ebp - 0x204]
mov eax, ebx
call fcn.004048fc
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x534274
lea eax, [ebp - 0x204]
call fcn.004048a8
ret
Function at 0x535258
Capabilities:
Open clipboard

Disassembly:
push ebx
push esi
push ecx
mov esi, eax
mov al, byte [esi + 0x20e]
mov byte [esp], al
xor edx, edx
mov eax, esi
call fcn.004377b0
push 0
push 0
push 0x432
mov eax, esi
call fcn.00454948
push eax
call sub.user32.dll_SendMessageA
test eax, eax
setne bl
mov dl, byte [esp]
mov eax, esi
call fcn.004377b0
mov eax, esi
call fcn.00454948
push eax
call sub.user32.dll_OpenClipboard
xor eax, eax
push eax
call sub.user32.dll_EnumClipboardFormats
test eax, eax
je 0x5352c8
cmp eax, 2
jne 0x5352b6
xor ebx, ebx
jmp 0x5352c4
cmp eax, 3
je 0x5352c0
cmp eax, 0xe
jne 0x5352c4
mov bl, 1
jmp 0x5352c8
test eax, eax
jne 0x5352a3
call sub.user32.dll_CloseClipboard
mov eax, ebx
pop edx
pop esi
pop ebx
ret

Function at 0x538960
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x538a9f
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [ebp - 4]
mov edx, dword [ebx + 0x1c]
sub edx, dword [ebx + 0x18]
lea eax, [ebp - 8]
call fcn.00404ee4
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
xor ecx, ecx
mov edx, 0x44b
mov eax, esi
call fcn.0044f2a8
mov eax, dword [ebx + 0xc]
cmp eax, 0x201
jne 0x538a19
test byte [ebx + 0x10], 1
je 0x538a19
mov byte [esi + 0x39e], 1
lea eax, [ebp - 0x11]
push eax
call sub.user32.dll_GetCursorPos
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x11]
mov eax, esi
call fcn.0044dc18
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x11], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xd], eax
lea eax, [ebp - 0x11]
push eax
push 0
push 0xd7
mov eax, esi
call fcn.00454948
push eax
call sub.user32.dll_SendMessageA
cmp eax, dword [ebx + 0x1c]
jg 0x538a10
cmp eax, dword [ebx + 0x18]
jge 0x538a89
mov byte [esi + 0x39e], 0
jmp 0x538a89
cmp eax, 0x202
jne 0x538a89
cmp byte [esi + 0x39e], 0
je 0x538a89
mov byte [ebp - 9], 1
mov byte [esi + 0x39e], 0
lea ecx, [ebp - 9]
mov edx, dword [ebp - 8]
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x10c]
cmp byte [ebp - 9], 0
je 0x538a89
mov eax, dword [0x622238]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.0046cfd4
push 1
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00404d58
push eax
push 0x538aac
mov eax, esi
call fcn.00454948
push eax
call sub.shell32.dll_ShellExecuteA
mov eax, dword [0x622238]
mov eax, dword [eax]
xor edx, edx
call fcn.0046cfd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x538aa6
lea eax, [ebp - 8]
call fcn.004048a8
ret
Function at 0x5522bc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffe00
mov esi, ecx
mov ebx, edx
mov edi, eax
push esp
call sub.user32.dll_GetKeyboardState
push esi
push edi
lea esi, [esp + 8]
lea edi, [esp + 0x108]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
movzx eax, si
mov byte [esp + eax + 0x100], 0x81
movzx esi, bx
mov byte [esp + esi + 0x100], 0x81
lea eax, [esp + 0x100]
push eax
call sub.user32.dll_SetKeyboardState
push 1
push esi
push pe_nt_image_headers32
push edi
call sub.user32.dll_PostMessageA
push 1
push esi
push 0x101
push edi
call sub.user32.dll_PostMessageA
push esp
call sub.user32.dll_SetKeyboardState
add esp, 0x200
pop edi
pop esi
pop ebx
ret

Function at 0x55f888
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00453d10
mov byte [ebx + 0x4b8], 1
mov eax, dword [ebx + 0x450]
cmp dword [eax + 8], 0x1fffffff
je 0x55f8b8
test byte [ebx + 0x2cd], 2
jne 0x55f8b8
mov eax, ebx
call fcn.0056b634
cmp dword [0x623f70], 0
jne 0x55f8df
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
mov eax, dword [0x623718]
push eax
mov eax, 0x55baa0
push eax
push 2
call sub.user32.dll_SetWindowsHookExA
mov dword [0x623f70], eax
pop ebx
ret
Function at 0x5a6560
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, eax
lea eax, [esp + 0x100]
push eax
push 0xff
call sub.kernel32.dll_GetTempPathA
push esp
push 0
push 0x5a65a4
lea eax, [esp + 0x10c]
push eax
call sub.kernel32.dll_GetTempFileNameA
mov edx, ebx
mov eax, esp
call fcn.0040a288
add esp, 0x200
pop ebx
ret

Function at 0x5aca6c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, dword [esi + 0x40]
mov edi, dword [eax + 8]
dec edi
test edi, edi
jl 0x5acaa7
inc edi
xor ebx, ebx
mov edx, ebx
mov eax, dword [esi + 0x40]
call fcn.00419bc8
mov al, byte [eax + 0x2a0]
xor al, 1
push eax
mov edx, ebx
mov eax, dword [esi + 0x40]
call fcn.00419bc8
pop edx
mov byte [eax + 0x2a0], dl
inc ebx
dec edi
jne 0x5aca7f
pop edi
pop esi
pop ebx
ret

Function at 0x5b8220
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x5b824e
mov eax, ebx
call fcn.005b8cd8
cmp dword [ebx + 0x3c], 0
je 0x5b8247
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x5b82bf
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x5b82b1
cmp dword [ebx + 8], 0
je 0x5b8270
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x5b8282
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x5b82b1
cmp dword [ebx + 8], 0
je 0x5b8263
cmp eax, 3
je 0x5b8295
dec eax
jne 0x5b8263
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 0x5b8263
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x5b8263
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x5b82dd
cmp dword [ebx + 0x10], 0xcc
je 0x5b82dd
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.005b82e8
pop ebx
ret
Function at 0x5d0418
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5d0541
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x18], 0
jne 0x5d045f
mov esi, dword [ebx + 0x10]
test esi, esi
je 0x5d0466
mov eax, esi
mov edx, dword [0x5ab6f8]
call fcn.00403be8
test al, al
je 0x5d0466
mov eax, dword [esi + 0x2e4]
cmp byte [eax + 0x24], 0
je 0x5d0466
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x30]
cmp byte [ebx + 0x3c], 0
jne 0x5d052b
mov eax, dword [ebx + 0x14]
cmp word [eax + 0x42], 0
je 0x5d0484
mov esi, eax
mov edx, ebx
mov eax, dword [esi + 0x44]
call dword [esi + 0x40]
mov eax, ebx
call fcn.005a7da8
mov esi, dword [ebx + 0x14]
mov eax, dword [esi + 0x94]
cmp byte [eax + 5], 0
je 0x5d04da
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
je 0x5d04da
push 1
push 0
push 0
lea ecx, [ebp - 8]
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x1c]
xor edx, edx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 8]
call fcn.00404d58
push eax
push 0x5d0550
mov eax, dword [0x621df0]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_ShellExecuteA
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x94]
cmp byte [eax + 4], 0
je 0x5d052b
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x2c]
mov byte [ebp - 1], 0
mov byte [ebp - 2], 0
mov eax, dword [ebx + 0x14]
cmp word [eax + 0x3a], 0
je 0x5d0517
lea edx, [ebp - 1]
push edx
lea edx, [ebp - 2]
push edx
mov esi, eax
mov ecx, dword [ebx + 0x38]
mov edx, ebx
mov eax, dword [esi + 0x3c]
call dword [esi + 0x38]
cmp byte [ebp - 2], 0
jne 0x5d0523
cmp byte [ebp - 1], 0
jne 0x5d04f8
mov eax, dword [ebx + 0x38]
call fcn.00403a5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d0548
lea eax, [ebp - 8]
call fcn.004048a8
ret
Function at 0x5d4470
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5d46c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x35c]
call fcn.005caa20
mov esi, eax
test byte [esi + 0xac], 4
setne dl
mov eax, dword [ebx + 0x374]
mov ecx, dword [eax]
call dword [ecx + 0xc8]
test byte [esi + 0xac], 2
setne dl
mov eax, dword [ebx + 0x380]
mov ecx, dword [eax]
call dword [ecx + 0xc8]
test byte [esi + 0xac], 8
setne dl
mov eax, dword [ebx + 0x378]
mov ecx, dword [eax]
call dword [ecx + 0xc8]
test byte [esi + 0xac], 0x10
setne dl
mov eax, dword [ebx + 0x37c]
mov ecx, dword [eax]
call dword [ecx + 0xc8]
test byte [esi + 0xac], 1
setne dl
mov eax, dword [ebx + 0x3ac]
mov ecx, dword [eax]
call dword [ecx + 0xc8]
xor edx, edx
mov dl, byte [esi + 0xa6]
mov edi, dword [ebx + 0x3a8]
mov eax, dword [edi + 0x23c]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov edx, eax
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xcc]
xor edx, edx
mov dl, byte [esi + 0xa4]
mov edi, dword [ebx + 0x398]
mov eax, dword [edi + 0x23c]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov edx, eax
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xcc]
lea edx, [ebp - 0x10c]
xor eax, eax
mov al, byte [esi + 0x98]
call fcn.0040987c
mov edx, dword [ebp - 0x10c]
mov eax, dword [ebx + 0x39c]
call fcn.0044e104
xor edx, edx
mov dl, byte [esi + 0xa5]
mov edi, dword [ebx + 0x3a0]
mov eax, dword [edi + 0x23c]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov edx, eax
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xcc]
mov edi, dword [ebx + 0x3dc]
mov eax, dword [edi + 0x23c]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov edx, eax
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xcc]
mov edi, dword [ebx + 0x3e0]
mov eax, dword [edi + 0x23c]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov edx, eax
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xcc]
mov eax, dword [esi + 0xa8]
cmp dword [eax + 4], 0
jne 0x5d463f
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x108]
push eax
call sub.advapi32.dll_GetUserNameA
lea eax, [ebp - 0x110]
lea edx, [ebp - 0x108]
mov ecx, pe_nt_image_headers32
call fcn.00404b10
mov edx, dword [ebp - 0x110]
mov eax, dword [ebx + 0x3c8]
call fcn.0044e104
jmp 0x5d4653
mov eax, dword [esi + 0xa8]
mov edx, dword [eax + 4]
mov eax, dword [ebx + 0x3c8]
call fcn.0044e104
mov eax, dword [esi + 0xa8]
mov edx, dword [eax + 0x14]
mov eax, dword [ebx + 0x3d0]
call fcn.0044e104
mov eax, dword [esi + 0xa8]
mov edx, dword [eax + 0x10]
mov eax, dword [ebx + 0x3d4]
call fcn.0044e104
mov eax, dword [esi + 0xa8]
mov edx, dword [eax + 0xc]
mov eax, dword [ebx + 0x3cc]
call fcn.0044e104
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.005d4a2c
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.005d3590
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d46c8
lea eax, [ebp - 0x110]
mov edx, 2
call fcn.004048cc
ret
Function at 0x5f04bc
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.00407f84
ret

Function at 0x5f0614
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
xor ecx, ecx
xor edx, edx
mov ebx, dword [ebp + 8]
dec ebx
test ebx, ebx
jl 0x5f06a5
inc ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 0
inc ecx
and cl, 0xff
xor ebx, ebx
mov bl, cl
add dl, byte [eax + ebx]
and dl, 0xff
xor ebx, ebx
mov bl, cl
mov bl, byte [eax + ebx]
mov byte [ebp - 9], bl
mov esi, edx
and esi, 0xff
xor ebx, ebx
mov bl, cl
lea edi, [eax + ebx]
mov bl, byte [eax + esi]
mov byte [edi], bl
mov bl, byte [ebp - 9]
mov byte [eax + esi], bl
xor ebx, ebx
mov bl, cl
mov bl, byte [eax + ebx]
mov esi, edx
and esi, 0xff
add bl, byte [eax + esi]
and bl, 0xff
mov byte [ebp - 9], bl
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 0x10]
mov bl, byte [ebx + esi]
movzx esi, byte [ebp - 9]
xor bl, byte [eax + esi]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0x10]
mov byte [esi + edi], bl
inc dword [ebp - 0x10]
dec dword [ebp - 0x14]
jne 0x5f063a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x5f06b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffefc
mov edi, ecx
mov ebp, edx
mov dword [esp], eax
lea eax, [esp + 4]
mov edx, pe_nt_image_headers32
call fcn.00407f84
test edi, edi
jle 0x5f06db
cmp edi, 0x100
jle 0x5f06f1
mov ecx, 0x5f0770
mov dl, 1
mov eax, dword [0x408524]
call fcn.0040d848
call fcn.004042ec
xor ecx, ecx
mov ebx, dword [esp]
lea esi, [esp + 4]
mov byte [ebx], cl
mov eax, ecx
cdq
idiv edi
add edx, ebp
mov al, byte [edx]
mov byte [esi], al
inc ecx
inc esi
inc ebx
cmp ecx, 0x100
jne 0x5f06fa
xor esi, esi
mov ecx, pe_nt_image_headers32
mov eax, dword [esp]
lea edi, [esp + 4]
mov dl, byte [eax]
xor ebx, ebx
mov bl, dl
add esi, ebx
xor ebx, ebx
mov bl, byte [edi]
add esi, ebx
and esi, 0xff
mov ebx, dword [esp]
mov bl, byte [ebx + esi]
mov byte [eax], bl
mov ebx, dword [esp]
mov byte [ebx + esi], dl
inc edi
inc eax
dec ecx
jne 0x5f0720
mov edx, dword [esp]
add edx, 0x100
mov eax, dword [esp]
mov ecx, pe_nt_image_headers32
call fcn.00402a8c
add esp, 0x104
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5f2c34
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, eax
mov edi, dword [ebx + 0x24]
mov esi, dword [ebx + 0x34]
sub esi, dword [ebx + 0x6c]
sub esi, dword [ebx + 0x64]
test esi, esi
jne 0x5f2c5e
cmp dword [ebx + 0x64], 0
jne 0x5f2c5e
cmp dword [ebx + 0x6c], 0
jne 0x5f2c5e
mov esi, edi
jmp 0x5f2ced
cmp esi, 0xffffffff
jne 0x5f2c69
dec esi
jmp 0x5f2ced
mov eax, dword [ebx + 0x64]
mov edx, edi
sub edx, 0x106
add edx, edi
cmp eax, edx
jb 0x5f2ced
mov eax, dword [ebx + 0x30]
lea edx, [eax + edi]
mov ebp, edi
mov ecx, ebp
call fcn.005f4318
sub dword [ebx + 0x68], edi
sub dword [ebx + 0x64], edi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, dword [ebx + 0x3c]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp edi, dword [esp]
ja 0x5f2cb5
mov cx, word [esp]
sub cx, di
mov word [edx], cx
jmp 0x5f2cba
mov word [edx], 0
dec eax
test eax, eax
jne 0x5f2c9b
mov eax, edi
mov edx, dword [ebx + 0x38]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp edi, dword [esp]
ja 0x5f2ce1
mov cx, word [esp]
sub cx, di
mov word [edx], cx
jmp 0x5f2ce6
mov word [edx], 0
dec eax
test eax, eax
jne 0x5f2cc7
add esi, edi
mov eax, dword [ebx]
cmp dword [eax + 4], 0
je 0x5f2d4b
mov edx, dword [ebx + 0x64]
add edx, dword [ebx + 0x6c]
mov ecx, dword [ebx + 0x30]
lea edx, [ecx + edx]
mov ecx, esi
call fcn.005f29c0
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x5f2d36
mov eax, dword [ebx + 0x64]
mov edx, dword [ebx + 0x30]
movzx eax, byte [edx + eax]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x30]
movzx edx, byte [ecx + edx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x5f2d4b
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x5f2c3e
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret