joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473eec
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x474097
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x474078
mov dl, 1
mov eax, dword [0x41bb08]
call fcn.00403d1c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404c88
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x474067
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00465700
test al, al
je 0x47405a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4740a8
lea eax, [ebp - 0x254]
call fcn.0040b378
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x47405a
xor eax, eax
push ebp
push 0x474053
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4740e0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x47403c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404ef8
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x47403c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404ef8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47405a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x473f5d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0042042c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47409e
lea eax, [ebp - 0x260]
call fcn.00404c88
ret

Function at 0x474a10
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x5785c0]
cmp byte [eax + 0xad], 0
jne 0x474a81
cmp dword [0x5785d8], 0
jne 0x474a42
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4749cc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x5785d8], eax
cmp dword [0x5785d4], 0
jne 0x474a5d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x5785d4], eax
cmp dword [0x5785dc], 0
jne 0x474a81
push esp
push 0
push 0
push 0x474970
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x5785dc], eax
pop edx
ret
Function at 0x474c54
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x474c6b
add esp, 0xfffffff0
call fcn.004040b0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00426f80
mov eax, dword [0x574450]
cmp word [eax + 2], 0
jne 0x474c93
mov eax, dword [0x574450]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004767ac
mov eax, dword [0x574544]
cmp word [eax + 2], 0
jne 0x474cad
mov eax, dword [0x574544]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004769b8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41b49c]
call fcn.00403d1c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41b49c]
call fcn.00403d1c
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x41b49c]
call fcn.00403d1c
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x42d968]
call fcn.00435f34
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x474e64
mov eax, dword [0x574310]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00436308
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x477078
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x574310]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040f7fc
test eax, eax
je 0x474db4
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040ad1c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040f830
test eax, eax
je 0x474dc8
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404ef8
mov byte [ebx + 0xd4], 0
push ebx
push 0x4762f4
call fcn.004280fc
mov dword [ebx + 0xc8], eax
mov eax, dword [0x574188]
cmp byte [eax], 0
jne 0x474e19
mov eax, ebx
call fcn.00474fa8
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00477254
mov eax, ebx
call fcn.00477dd8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x474e59
call fcn.00404108
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x475228
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x5785c0]
cmp dword [eax + 0x30], 0
je 0x4752d2
cmp dword [ebx + 0x94], 0
jne 0x4752cc
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4751b8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4752cc
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x475292
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4752cc
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041dd94
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4752a1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x475fec
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x476021
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404d78
jmp 0x47602e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404cdc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x477438
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4774a6
mov eax, esi
call fcn.00460334
test al, al
je 0x4774a6
mov eax, dword [ebx + 0x84]
call fcn.0045ff94
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4774a6
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x47749a
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045ff94
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00458340
jmp 0x4774a6
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00477274
pop esi
pop ebx
ret
Function at 0x482770
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x40874c]
call fcn.00405a70
xor eax, eax
push ebp
push 0x482911
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x572d28], 0
jne 0x4827cb
mov ecx, dword [0x57419c]
mov dl, 1
mov eax, dword [0x408e14]
call fcn.0040e9cc
call fcn.00404600
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.00403628
mov eax, ebx
call fcn.0040568c
mov dword [ebp - 0x24], eax
mov esi, 0x482920
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.00406c8c
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.0040569c
test eax, eax
jle 0x4828b4
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4828a0
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00404ef8
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x482846
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.00404f2c
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x48285c
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.00404f2c
mov eax, dword [ebp - 0x54]
call fcn.00405168
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00404ef8
mov eax, dword [ebp - 0x58]
call fcn.00405168
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x4828a2
xor eax, eax
test al, al
je 0x4828ad
mov ebx, 0x15
jmp 0x4828b9
mov ebx, 0x10
jmp 0x4828b9
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x572d28]
call fcn.00482598
mov eax, dword [ebp - 4]
call fcn.00482598
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00406ca4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482918
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00404cac
lea eax, [ebp - 0xc]
mov edx, dword [0x40874c]
call fcn.00405b40
ret
Function at 0x4851a0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x485206
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x574224]
cmp byte [eax], 0
je 0x4851d4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 8], eax
jmp 0x4851f0
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404eb0
mov eax, dword [ebp - 0xc]
call fcn.00405168
push eax
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48520d
lea eax, [ebp - 0xc]
call fcn.00404c88
ret

Function at 0x485214
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x485285
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x574224]
cmp byte [eax], 0
je 0x48524f
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateDirectoryW
mov dword [ebp - 0xc], eax
jmp 0x48526f
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00404eb0
mov eax, dword [ebp - 0x10]
call fcn.00405168
push eax
call sub.kernel32.dll_CreateDirectoryA
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48528c
lea eax, [ebp - 0x10]
call fcn.00404c88
ret

Function at 0x485294
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x485329
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x574224]
cmp byte [eax], 0
je 0x4852da
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CopyFileW
mov dword [ebp - 0x10], eax
jmp 0x48530e
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00404eb0
mov eax, dword [ebp - 0x14]
call fcn.00405168
push eax
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 4]
call fcn.00404eb0
mov eax, dword [ebp - 0x18]
call fcn.00405168
push eax
call sub.kernel32.dll_CopyFileA
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485330
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404cac
ret
Function at 0x485338
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48539e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x574224]
cmp byte [eax], 0
je 0x48536c
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_DeleteFileW
mov dword [ebp - 8], eax
jmp 0x485388
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404eb0
mov eax, dword [ebp - 0xc]
call fcn.00405168
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4853a5
lea eax, [ebp - 0xc]
call fcn.00404c88
ret

Function at 0x485464
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48551e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x574224]
cmp byte [eax], 0
je 0x48549f
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov dword [ebp - 0xc], eax
jmp 0x485508
lea eax, [ebp - 0x10]
mov edx, 0x104
call fcn.004053f0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4854c3
mov eax, dword [ebp - 0x14]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jns 0x4854cf
call fcn.00403c14
push eax
mov eax, dword [ebp - 0x10]
call fcn.00405168
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.004053f0
mov al, byte [0x48552c]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.00484d10
test eax, eax
jns 0x485505
call fcn.00403c14
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485525
lea eax, [ebp - 0x10]
call fcn.00404c88
ret
Function at 0x485530
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4855ea
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x574224]
cmp byte [eax], 0
je 0x48556b
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov dword [ebp - 0xc], eax
jmp 0x4855d4
lea eax, [ebp - 0x10]
mov edx, 0x104
call fcn.004053f0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x48558f
mov eax, dword [ebp - 0x14]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jns 0x48559b
call fcn.00403c14
push eax
mov eax, dword [ebp - 0x10]
call fcn.00405168
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.004053f0
mov al, byte [0x4855f8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.00484d10
test eax, eax
jns 0x4855d1
call fcn.00403c14
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4855f1
lea eax, [ebp - 0x10]
call fcn.00404c88
ret

Function at 0x4855fc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4856b6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x574224]
cmp byte [eax], 0
je 0x485637
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetCurrentDirectoryW
mov dword [ebp - 0xc], eax
jmp 0x4856a0
lea eax, [ebp - 0x10]
mov edx, 0x104
call fcn.004053f0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x48565b
mov eax, dword [ebp - 0x14]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
call fcn.00405168
push eax
mov eax, dword [ebp - 0x14]
test eax, eax
jns 0x485670
call fcn.00403c14
push eax
call sub.kernel32.dll_GetCurrentDirectoryA
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.004053f0
mov al, byte [0x4856c4]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00484d10
test eax, eax
jns 0x48569d
call fcn.00403c14
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4856bd
lea eax, [ebp - 0x10]
call fcn.00404c88
ret
Function at 0x4856c8
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48572e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x574224]
cmp byte [eax], 0
je 0x4856fc
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov dword [ebp - 8], eax
jmp 0x485718
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404eb0
mov eax, dword [ebp - 0xc]
call fcn.00405168
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485735
lea eax, [ebp - 0xc]
call fcn.00404c88
ret

Function at 0x486614
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48668e
push dword fs:[eax]
mov dword fs:[eax], esp
push 6
lea eax, [ebp - 0xf]
push eax
push 0x1004
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
call sub.kernel32.dll_GetACP_1
test eax, eax
jns 0x486652
call fcn.00403c14
push eax
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xf]
mov ecx, 7
call fcn.00404ef8
mov eax, dword [ebp - 0x14]
pop edx
call fcn.0040a790
test eax, eax
jns 0x486675
call fcn.00403c14
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486695
lea eax, [ebp - 0x14]
call fcn.00404c88
ret

Function at 0x48676c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x18], 0
je 0x4867cb
lea eax, [ebp - 4]
push eax
push 0x40
push 6
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x48679f
call fcn.00410098
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov ecx, 6
call fcn.00402fc8
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 6
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x4867cb
call fcn.00410098
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a76c0
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a778e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
push 0xd
call sub.user32.dll_GetClipboardData
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4a7747
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0
je 0x4a771a
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GlobalLock
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.0040560c
jmp 0x4a7722
mov eax, dword [ebp - 8]
call fcn.004054b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a774e
cmp dword [ebp - 0xc], 0
je 0x4a773e
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4aa6c0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
mov dword [ebp - 8], edx
mov word [ebp - 2], ax
mov eax, dword [ebp - 8]
call fcn.004054b0
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
jns 0x4aa6f1
call fcn.00403c14
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4aa722
push 0x200
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x20c]
mov ecx, pe_nt_image_headers32
call fcn.00405660
mov esp, ebp
pop ebp
ret

Function at 0x4aa728
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov word [ebp - 2], ax
push 2
movzx eax, word [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyW
mov word [ebp - 4], ax
mov ax, word [ebp - 2]
add eax, 0xffffffd0
sub ax, 0xa
jae 0x4aa78f
movzx eax, word [ebp - 2]
sub eax, 0x30
jno 0x4aa75d
call fcn.00403c1c
add eax, 0x30
jno 0x4aa767
call fcn.00403c1c
mov word [ebp - 6], ax
mov ax, word [ebp - 4]
cmp ax, word [ebp - 6]
je 0x4aa78f
mov ax, word [ebp - 6]
push eax
call sub.user32.dll_VkKeyScanW
mov dx, word [ebp - 2]
cmp al, dl
jne 0x4aa78f
mov ax, word [ebp - 6]
mov word [ebp - 4], ax
mov ax, word [ebp - 4]
pop ecx
pop ecx
pop ebp
ret