joyce8/EMBER2024-capa huggingface dataset:
Function at 0x541660
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5417d1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x8c], 1
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x5417b6
lea eax, [ebp - 0x10d]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 8]
lea eax, [ebp - 0x10d]
call fcn.0040ad14
mov dl, 1
mov eax, dword [0x523474]
call fcn.005234cc
mov edx, dword [ebp - 4]
mov dword [edx + 0x84], eax
mov dl, 1
mov eax, dword [0x41d900]
call fcn.00403bc8
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x88]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.00523548
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x5417b3
mov dl, 1
mov eax, dword [0x52466c]
call fcn.005246d4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov edx, 0x5417e8
call fcn.00523894
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404df8
xor eax, eax
push ebp
push 0x5417ac
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.005249d4
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.005417f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5417b3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.00403bf8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call fcn.00403bf8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.00403bf8
ret
mov bl, byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5417d8
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404b10
ret
Function at 0x542b8c
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
test byte [eax + 8], 1
je 0x542bb3
push ebx
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x542d3c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_SaveDC
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x542d35
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
test byte [eax + 8], 2
je 0x542c02
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_SaveDC
mov esi, eax
test edi, edi
je 0x542bf8
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov eax, ebx
call edi
push esi
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_RestoreDC
lea eax, [ebp - 0x24]
push eax
push ebx
call sub.user32.dll_GetWindowRect
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.user32.dll_ClientToScreen
mov eax, dword [ebp - 0x24]
sub dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
sub dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
test al, 4
je 0x542d1a
mov edx, dword [ebp - 4]
test al, 8
je 0x542c7e
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_SaveDC
mov esi, eax
mov eax, dword [ebp - 4]
test byte [eax + 8], 2
je 0x542c63
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.00484b38
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
push 0x14
push ebx
call sub.user32.dll_SendMessageA
push esi
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_RestoreDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_SaveDC
mov esi, eax
mov eax, dword [ebp - 4]
test byte [eax + 8], 2
je 0x542ca0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.00484b38
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
push 0x318
push ebx
call sub.user32.dll_SendMessageA
push esi
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_RestoreDC
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.00484b38
mov dword [ebp - 0x30], ebx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
test byte [eax + 8], 0x10
je 0x542cf8
mov byte [ebp - 0x34], 1
mov dword [ebp - 0x28], 0x1e
lea eax, [ebp - 0x34]
push eax
push 0x542ac8
push ebx
call sub.user32.dll_EnumChildWindows
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
test al, 0x20
je 0x542d1a
mov byte [ebp - 0x34], 0
mov edx, dword [ebp - 4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push eax
push 0x542ac8
call sub.user32.dll_EnumWindows
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x542d3c
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_RestoreDC
ret
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5447d8
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
mov eax, ebx
call fcn.0043220c
call fcn.0042d348
mov esi, eax
push 0
push 1
push 1
mov eax, dword [edi + 4]
push eax
mov eax, dword [edi]
push eax
call sub.gdi32.dll_CreateBitmap
mov dword [ebp - 0x14], eax
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x18], eax
push esi
call sub.gdi32.dll_GetBkColor
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
test eax, eax
jl 0x544894
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
call fcn.0042b980
push eax
push esi
call sub.gdi32.dll_SetBkColor
cmp dword [ebp - 0x1c], 0
sete al
and eax, 0x7f
mov eax, dword [eax*4 + 0x6a24c8]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
push esi
mov eax, dword [edi + 4]
push eax
mov eax, dword [edi]
push eax
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_BitBlt
inc dword [ebp - 0x1c]
add ebx, 4
dec dword [ebp - 0x20]
jne 0x544847
mov eax, dword [ebp - 0xc]
push eax
push esi
call sub.gdi32.dll_SetBkColor
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_DeleteDC
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00432f58
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x550cac
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404f9c
xor eax, eax
push ebp
push 0x550db3
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x6a25b8], 0
jne 0x550d81
lea ecx, [ebp - 8]
mov edx, pe_nt_image_headers32
mov al, 0x20
call fcn.0040519c
mov eax, dword [ebp - 8]
call fcn.00404fac
mov ebx, eax
push 0xff
push ebx
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, 0x550dc8
mov eax, ebx
call fcn.0040abc0
push ebx
call sub.kernel32.dll_LoadLibraryA
mov dword [0x6a25b8], eax
cmp dword [0x6a25b8], 0
jne 0x550d3e
mov ecx, 0x550ddc
mov dl, 1
mov eax, dword [0x408a84]
call fcn.0040e360
call fcn.00404488
push 0x550e14
mov eax, dword [0x6a25b8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
mov dword [0x6a9cac], ebx
test ebx, ebx
jne 0x550d70
mov ecx, 0x550e28
mov dl, 1
mov eax, dword [0x408a84]
call fcn.0040e360
call fcn.00404488
push 0x6a25b4
push 0x1c
push 0
push 0
call dword [0x6a9cac]
mov eax, dword [ebp + 8]
push eax
push edi
mov eax, dword [ebp - 4]
call fcn.00404fac
push eax
push esi
call dword [0x6a9cac]
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x550dba
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404b10
ret

Function at 0x553b60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x553bd1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [0x6a25bc]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], 0
je 0x553bbb
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00553b50
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x552334]
call fcn.00554a20
mov dword [0x6a2624], eax
mov eax, dword [ebp - 4]
call fcn.005539dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x553bd8
lea eax, [ebp - 8]
call fcn.00406a9c
ret

Function at 0x553c70
Capabilities:
Get file system object information

Disassembly:
push esi
add esp, 0xfffffea0
mov esi, 0x4008
test cl, cl
je 0x553c83
or esi, 2
test dl, dl
je 0x553c8c
or esi, 0
jmp 0x553c8f
or esi, 1
push esi
push 0x160
lea edx, [esp + 8]
push edx
push 0
push eax
call sub.shell32.dll_SHGetFileInfo
mov eax, dword [esp + 4]
add esp, 0x160
pop esi
ret
Function at 0x5548ac
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404f9c
xor eax, eax
push ebp
push 0x554a04
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 1
mov edx, dword [ebx]
mov eax, dword [0x55211c]
call fcn.0041b424
test eax, eax
jl 0x554913
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx]
call fcn.00553c54
and eax, 0x7f
mov eax, dword [eax*4 + 0x6a25bc]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
mov esi, eax
jmp 0x554976
mov eax, dword [ebx]
call fcn.00404dac
test eax, eax
jle 0x554976
mov eax, dword [ebx]
call fcn.00404dac
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x3a
jne 0x55493a
mov eax, ebx
mov edx, 0x554a1c
call fcn.00404db4
mov eax, dword [ebx]
call fcn.00404dac
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
call fcn.00405c38
mov esi, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push 0
push 0
lea eax, [ebp - 0x18]
call fcn.00553b50
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov esi, eax
test esi, esi
je 0x5549c1
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x1c]
mov eax, dword [0x6a3e64]
call fcn.00406f7c
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebx]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x24]
xor ecx, ecx
pop eax
call fcn.0040b204
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00404b40
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x408a84]
call fcn.0040e360
call fcn.00404488
mov eax, dword [ebp - 8]
call fcn.00554824
mov ebx, eax
test edi, edi
je 0x5549d6
mov eax, edi
call fcn.00403bf8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x554a0b
lea eax, [ebp - 0x1c]
call fcn.00404aec
lea eax, [ebp - 0x18]
call fcn.00406a9c
lea eax, [ebp - 0x14]
call fcn.00404aec
lea eax, [ebp - 4]
call fcn.00404aec
ret
Function at 0x556104
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x55626e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x6a4920]
mov eax, dword [eax]
mov ax, word [eax + 0x44]
mov word [ebp - 0x16], ax
mov eax, dword [0x6a4920]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.004a5364
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x26c]
call fcn.0045d568
xor edx, edx
push ebp
push 0x556251
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x5561c1
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x10]
call fcn.00406a9c
push eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x344]
call fcn.0055426c
push eax
mov eax, dword [0x6a4528]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
test eax, eax
je 0x5561b7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00404534
jmp 0x556258
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5561fd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x26c]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.0045d148
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0xc]
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00555f94
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
je 0x5561d9
push 0
mov edx, 0x555f2c
xor ecx, ecx
mov eax, dword [ebp - 8]
call fcn.0045cd00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x556258
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x26c]
call fcn.0045d5b4
mov eax, dword [0x6a4920]
mov eax, dword [eax]
mov dx, word [ebp - 0x16]
call fcn.004a5364
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x556275
lea eax, [ebp - 0x10]
call fcn.00406a9c
ret

Function at 0x565cd7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x6a31de
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x565d2f
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x6a31ff
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x565d25
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x565d33
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x584196
Capabilities:
Get file version info

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
push esp
push 0x5841f0
call sub.version.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jne 0x58418b
call sub.kernel32.dll_GetLastError_1
mov dword [esp], eax
mov bl, 1
jmp 0x5841e4
mov eax, edi
call fcn.00402850
mov esi, eax
push esi
push edi
push 0
push 0x5841f0
call sub.version.dll_GetFileVersionInfoA
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0x584200
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 0x5841d5
cmp ax, 0x46
ja 0x5841d9
xor ebx, ebx
jmp 0x5841db
mov bl, 1
mov edx, edi
mov eax, esi
call fcn.00402870
mov eax, ebx
add esp, 0xc
pop edi
pop esi
pop ebx
ret

Function at 0x58662c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, edx
mov esi, eax
cmp bl, 7
jne 0x586658
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 0x58665d
mov edi, ebx
and edi, 0x7f
mov eax, esi
call fcn.0048cc2c
test eax, eax
je 0x586675
mov edx, edi
mov eax, dword [esi + 0x180]
call fcn.004353c4
mov byte [esi + 0x298], bl
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x58e984
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 0x58e9c9
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 0x58e9df
mov dword [ebx], 1
jmp 0x58e9df
cmp dl, 6
jne 0x58e9d6
mov dword [ebx], 1
jmp 0x58e9df
xor eax, eax
mov al, dl
add eax, 2
mov dword [ebx], eax
mov eax, dword [ebx]
dec eax
cmp eax, 1
jge 0x58e9ef
mov dword [esi], 7
jmp 0x58e9f1
mov dword [esi], eax
pop edx
pop esi
pop ebx
ret

Function at 0x595e54
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 0x595ea5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x595e8c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x595e7c
jmp 0x595ea5
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 0x595e8d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5aa900
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 0x5aeccc
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 0x5aece6
or byte [esp], 2
mov edx, esi
mov cl, byte [esp]
mov eax, ebx
call fcn.005aebfc
mov edx, esi
mov cl, byte [esp]
mov eax, ebx
call fcn.005cf110
mov ax, word [esi]
call fcn.005d656c
test al, al
je 0x5aed1d
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x118]
test al, al
jne 0x5aed1d
mov word [esi], 0
pop edx
pop esi
pop ebx
ret

Function at 0x5b2940
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 [0x6a4030]
mov eax, dword [eax]
mov esi, dword [eax + 0x5c]
cmp byte [esp + 0x90], 0
je 0x5b2987
mov eax, dword [ebx + 0x34c]
mov eax, dword [eax + 0x208]
mov edx, 2
call fcn.0045aeac
mov edx, dword [esi + 0xb0]
call fcn.0045ae08
jmp 0x5b29a4
mov eax, dword [ebx + 0x34c]
mov eax, dword [eax + 0x208]
mov edx, 2
call fcn.0045aeac
xor edx, edx
call fcn.0045ae08
cmp byte [esp + 0x14], 0
je 0x5b29ce
mov eax, dword [ebx + 0x34c]
mov eax, dword [eax + 0x208]
mov edx, 1
call fcn.0045aeac
mov edx, dword [esi + 0xac]
call fcn.0045ae08
jmp 0x5b29eb
mov eax, dword [ebx + 0x34c]
mov eax, dword [eax + 0x208]
mov edx, 1
call fcn.0045aeac
xor edx, edx
call fcn.0045ae08
add esp, 0x100
pop esi
pop ebx
ret
Function at 0x5dc370
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 0x5dc401
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 0x5dc3ae
mov eax, ebx
call fcn.00404aec
lea eax, [ebp - 0x100]
push eax
push 0
push 0x5dc410
lea eax, [ebp - 0x200]
push eax
call sub.kernel32.dll_GetTempFileNameA
lea edx, [ebp - 0x204]
lea eax, [ebp - 0x100]
call fcn.0040ad14
mov edx, dword [ebp - 0x204]
mov eax, ebx
call fcn.00404b40
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5dc408
lea eax, [ebp - 0x204]
call fcn.00404aec
ret

Function at 0x5dd3ec
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.0047a1c0
push 0
push 0
push 0x432
mov eax, esi
call fcn.0048cc2c
push eax
call sub.user32.dll_SendMessageA
test eax, eax
setne bl
mov dl, byte [esp]
mov eax, esi
call fcn.0047a1c0
mov eax, esi
call fcn.0048cc2c
push eax
call sub.user32.dll_OpenClipboard
xor eax, eax
push eax
call sub.user32.dll_EnumClipboardFormats
test eax, eax
je 0x5dd45c
cmp eax, 2
jne 0x5dd44a
xor ebx, ebx
jmp 0x5dd458
cmp eax, 3
je 0x5dd454
cmp eax, 0xe
jne 0x5dd458
mov bl, 1
jmp 0x5dd45c
test eax, eax
jne 0x5dd437
call sub.user32.dll_CloseClipboard
mov eax, ebx
pop edx
pop esi
pop ebx
ret
Function at 0x5e0af4
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 0x5e0c33
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.00405138
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.00487428
mov eax, dword [ebx + 0xc]
cmp eax, 0x201
jne 0x5e0bad
test byte [ebx + 0x10], 1
je 0x5e0bad
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.00485d68
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.0048cc2c
push eax
call sub.user32.dll_SendMessageA
cmp eax, dword [ebx + 0x1c]
jg 0x5e0ba4
cmp eax, dword [ebx + 0x18]
jge 0x5e0c1d
mov byte [esi + 0x39e], 0
jmp 0x5e0c1d
cmp eax, 0x202
jne 0x5e0c1d
cmp byte [esi + 0x39e], 0
je 0x5e0c1d
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 + 0x110]
cmp byte [ebp - 9], 0
je 0x5e0c1d
mov eax, dword [0x6a4920]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.004a5364
push 1
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00404fac
push eax
push 0x5e0c40
mov eax, esi
call fcn.0048cc2c
push eax
call sub.shell32.dll_ShellExecuteA
mov eax, dword [0x6a4920]
mov eax, dword [eax]
xor edx, edx
call fcn.004a5364
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e0c3a
lea eax, [ebp - 8]
call fcn.00404aec
ret
Function at 0x5fe38c
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5fe453
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x3b8]
call fcn.004c2d20
push 0x5fe468
lea edx, [ebp - 8]
mov eax, dword [ebx + 0x654]
call fcn.00409e80
push dword [ebp - 8]
push 0x5fe4a0
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404e6c
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebx + 0x3b8]
call fcn.004db058
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebx + 0x3b8]
call fcn.004c2d14
mov al, byte [0x5fe4b4]
push eax
lea eax, [ebp - 0x18]
mov edx, esi
mov cl, 0xfc
call fcn.004164cc
lea ecx, [ebp - 0x18]
mov edx, 0x5fe4c0
mov eax, dword [ebx + 0x3b8]
mov ebx, dword [eax]
call dword [ebx + 0x244]
mov eax, dword [0x6aa0fc]
call fcn.00603ee0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5fe45a
lea eax, [ebp - 0x18]
call fcn.00411fd4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404b10
ret