joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30042a1e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x30001bc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x52
lea eax, [ebp - 0x58]
push eax
mov edi, ecx
xor ebx, ebx
mov esi, 0x30001618
push esi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
call fcn.30040c68
cmp eax, ebx
mov dword [ebp - 0x5c], eax
jne 0x30042b6e
lea eax, [ebp - 0x58]
push eax
push esi
mov byte [ebp - 0x54], bl
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x30042a7b
mov dword [ebp - 0x5c], 0x5dd
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
jne 0x30042b73
push edi
call fcn.30042953
cmp eax, ebx
mov dword [ebp - 0x5c], eax
jne 0x30042b73
mov esi, 0xfffe
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [0x30095b08], eax
call fcn.30067a6d
cmp eax, ebx
mov dword [ebp - 0x5c], eax
jne 0x30042b73
push dword [0x30095b08]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 1
push ebx
push ebx
push edi
mov dword [0x30095b04], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
mov dword [0x30095b10], eax
lea eax, [ebp - 0x5c]
push eax
push esi
push dword [0x30095b04]
mov dword [0x30095b0c], ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x30042afe
or eax, 0xffffffff
jmp 0x30042b73
mov dword [ebp - 0x60], ebx
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x6c]
lea edi, [ebp - 0x70]
call fcn.30042419
cmp eax, ebx
mov dword [ebp - 0x5c], eax
jne 0x30042b64
mov ecx, dword [ebp - 0x60]
dec ecx
je 0x30042b52
dec ecx
je 0x30042b37
dec ecx
jne 0x30042b5b
cmp word [0x30085b02], 0x3e9
ja 0x30042b82
mov dword [ebp - 0x64], 1
jmp 0x30042b01
xor eax, eax
cmp word [0x30085b02], 4
mov dword [ebp - 0x68], 1
setne al
mov dword [0x300750bc], eax
jmp 0x30042b01
cmp word [0x30085b02], bx
jne 0x30042b89
cmp dword [ebp - 0x60], 0x4002
jne 0x30042b01
cmp dword [ebp - 0x68], ebx
je 0x30042b6e
cmp dword [ebp - 0x64], ebx
jne 0x30042b73
mov eax, 0x5dd
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30071b52
leave
ret
mov eax, 0x5e4
jmp 0x30042b73
mov eax, 0x5df
jmp 0x30042b73
Function at 0x3004c74c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
and dword [0x300963d4], 0
push esi
mov esi, dword [sym.imp.USER32.dll_SetRect]
push ecx
push eax
push ecx
push eax
push 0x300971e0
mov dword [0x300963cc], eax
mov dword [0x300963d0], ecx
mov dword [0x300971b8], eax
mov dword [0x300971bc], ecx
call esi
push dword [edi + 0x5a]
push dword [edi + 0x56]
push 0
push 0
push 0x300971d0
call esi
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
push dword [ebp + 8]
shr eax, 8
neg al
sbb eax, eax
add eax, 0x18
mov dword [0x30096364], eax
call dword [sym.imp.USER32.dll_SetCapture]
pop esi
pop ebp
ret 0xc
Function at 0x3004e537
Capabilities:
Hide graphical window

Disassembly:
push edi
push 0
call fcn.30047fcd
mov edi, dword [sym.imp.USER32.dll_SetDlgItemInt]
push 0
push dword [0x300752d4]
mov dword [0x300967ec], esi
push 0x68
push esi
call edi
push 0
push dword [0x300752d8]
push 0x69
push esi
call edi
push 1
push 0x68
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
push 0x28
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
push dword [0x300967d0]
push esi
call fcn.30067a94
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop edi
ret

Function at 0x30051546
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0xc], edi
jne 0x3005157f
push edi
push dword [ebp + 8]
call fcn.300680ec
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x30051578
mov eax, 0x2713
jmp 0x300516a5
mov dword [ebp - 0x18], 1
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.30067e92
cmp eax, edi
mov dword [ebp + 0x10], eax
jne 0x30051694
push dword [ebp + 8]
push dword [ebp + 0x14]
call fcn.30067e61
cmp eax, edi
mov dword [ebp + 0x10], eax
jne 0x30051694
mov ecx, dword [ebp + 8]
mov eax, 0x7530
cmp ecx, eax
mov dword [ebp - 4], eax
jg 0x300515be
mov dword [ebp - 4], ecx
push dword [ebp - 4]
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 0x10], eax
call fcn.30067a6d
cmp eax, edi
mov dword [ebp + 0x10], eax
jne 0x30051694
push ebx
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
push edi
push edi
push dword [ebp + 0xc]
mov ebx, eax
call esi
cmp eax, 0xffffffff
jne 0x30051609
mov dword [ebp + 0x10], 0x2713
jmp 0x30051689
push edi
push edi
push edi
push dword [ebp + 0x14]
call esi
cmp eax, 0xffffffff
je 0x300515fd
cmp dword [ebp + 0x18], edi
je 0x30051631
mov eax, dword [ebp + 8]
cdq
idiv dword [ebp - 4]
push 1
push edi
inc eax
push eax
push dword [ebp + 0x18]
push 2
call fcn.30063ea4
cmp dword [ebp + 8], edi
jle 0x30051680
inc dword [ebp - 8]
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x300515fd
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], eax
push edi
lea ecx, [ebp - 0x14]
push ecx
push eax
push ebx
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x300515fd
cmp dword [ebp + 0x18], edi
je 0x30051678
push dword [ebp - 8]
push 2
call fcn.30063e2d
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jl 0x30051636
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop ebx
cmp dword [ebp - 0x18], edi
je 0x300516a2
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x10]
pop edi
leave
ret 0x14
Function at 0x30052fc3
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edi, eax
cmp edi, ebx
je 0x3005302b
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
mov eax, dword [esi]
cmp eax, ebx
je 0x30052ffa
cmp eax, dword [0x30096358]
jne 0x3005300c
dec dword [0x30096358]
jmp 0x3005300c
mov eax, dword [esi + 0x210]
cmp eax, 0xffffffff
je 0x3005300c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 0x218]
call fcn.3003affc
add esi, 0x10a
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push dword [ebp + 8]
call fcn.3006801b
mov esi, dword [sym.imp.USER32.dll_GetWindow]
push 2
push dword [ebp + 8]
call esi
test eax, eax
jne 0x30053084
push 3
push dword [ebp + 8]
call esi
test eax, eax
jne 0x30053084
push ebx
push ebx
call fcn.3004a9d7
cmp dword [0x300963b4], ebx
je 0x30053084
cmp dword [0x30096d88], ebx
jne 0x30053084
push ebx
push dword [0x300967d0]
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push ebx
push 0x10
push dword [0x300967d0]
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x3005462a
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x30001bc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, 0x106
push esi
lea ecx, [ebp - 0x214]
push ecx
push esi
lea ecx, [ebp - 0x31c]
push ecx
push esi
lea ecx, [ebp - 0x424]
push ecx
push esi
lea ecx, [ebp - 0x10c]
push ecx
push eax
call dword [sym.imp.MSVCR80.dll__splitpath_s]
add esp, 0x24
push 0x30001850
push esi
lea eax, [ebp - 0x10c]
push eax
call fcn.30018d6b
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
pop esi
je 0x3005469e
cmp eax, 4
je 0x3005469e
xor eax, eax
jmp 0x300546a1
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.30071b52
leave
ret 4
Function at 0x30055706
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x30001bc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
xor ebx, ebx
push ebx
push eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], ebx
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x220], edi
jne 0x3005574a
mov eax, 0x2714
jmp 0x300558dd
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
cmp dword [esi + 0x224], ebx
je 0x30055772
push 0x7f
call fcn.30048b2d
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
or eax, 0xffffffff
jmp 0x300558dc
lea ebx, [esi + 4]
push ebx
mov edi, 0x106
push edi
lea eax, [ebp - 0x10c]
push eax
call fcn.3003f6b8
push ebx
push edi
lea eax, [ebp - 0x214]
push eax
call fcn.3003f6b8
lea eax, [ebp - 0x10c]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x3005579f
push 0
sub eax, ecx
pop ebx
sete bl
test ebx, ebx
jne 0x300558b8
mov byte [ebp + eax - 0x10d], 0x24
push 2
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x21c]
call fcn.30052e4c
mov ebx, eax
test ebx, ebx
jne 0x300558b8
mov eax, dword [esi + 0x210]
cmp eax, 0xffffffff
mov dword [ebp - 0x218], 1
je 0x300557f8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.MSVCR80.dll_rename]
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x30055845
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 2
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x21c]
call fcn.30052e4c
mov ebx, eax
test ebx, ebx
jne 0x300558b8
lea eax, [ebp - 0x214]
push eax
push edi
lea edi, [esi + 4]
push edi
mov dword [ebp - 0x218], 1
call fcn.3003f6b8
push 2
lea eax, [ebp - 0x214]
push eax
call fcn.300680ec
cmp eax, 0xffffffff
jne 0x3005587a
mov ebx, 0x2713
jmp 0x300558b8
and dword [esi + 0x224], 0
push edi
mov dword [esi + 0x210], eax
call fcn.3005462a
test eax, eax
je 0x300558a4
push dword [esi + 0x210]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 0x210], 0xffffffff
push 5
push dword [ebp - 0x21c]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
call fcn.3005d8b9
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0x218], 0
je 0x300558da
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, ebx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.30071b52
leave
ret 4
Function at 0x30055eb1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x30001bc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push 5
push ebx
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
jne 0x30055ee0
push 7
pop eax
jmp 0x30055f86
push esi
call fcn.30052bc8
test eax, eax
je 0x30055ed8
push edi
push esi
call fcn.3005d99e
xor edi, edi
inc edi
cmp eax, edi
je 0x30055f01
cmp dword [0x30096404], 0
je 0x30055f04
mov dword [ebp + 0xc], edi
cmp dword [ebp + 0xc], 0
je 0x30055f0f
push 6
pop esi
jmp 0x30055f76
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x1ff
call fcn.300689aa
push dword [0x300967d0]
mov dword [0x300967ec], edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0x23
push 0x300750d0
lea eax, [ebp - 0x41c]
push eax
push dword [0x300967d0]
call dword [sym.imp.USER32.dll_MessageBoxW]
and dword [0x300967ec], 0
mov esi, eax
cmp esi, 6
jne 0x30055f83
push ebx
call fcn.30055daf
test eax, eax
je 0x30055f83
push 2
pop esi
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.30071b52
leave
ret 8

Function at 0x30057569
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
and dword [ebp - 4], 0
push esi
mov esi, 0x3ea
push esi
push edi
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
jne 0x3005758c
mov eax, 0x2711
jmp 0x30057607
and dword [ebp - 0x28], 0
and dword [ebp - 0x10], 0
push 0
push 0x10
push 0x10
push 1
mov dword [ebp - 0x1c], eax
mov eax, dword [0x30097a20]
push esi
push edi
mov dword [ebp - 0x30], 0x1000
mov dword [ebp - 0x2c], 0x30048571
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 6
mov dword [ebp - 0xc], 0x30001858
mov dword [ebp - 0x34], 0x30
call dword [sym.imp.USER32.dll_LoadImageA]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
jne 0x30057604
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
jne 0x30057604
mov dword [ebp - 4], 0x2712
mov eax, dword [ebp - 4]
pop esi
leave
ret

Function at 0x30058786
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x30001bc0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp edi, 0x104
jl 0x300587d6
push esi
push 0
push 0
push 0x801c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x300587d6
push 0x30001980
push edi
push esi
call fcn.30018d6b
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x300587e0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x300587f3
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [eax + esi - 1], 0
push 0x3000196c
push edi
push esi
call fcn.30018d6b
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.30071b52
leave
ret
Function at 0x30058c71
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x30001bc0]
xor eax, ebp
mov dword [ebp - 4], eax
push 1
call fcn.30047fcd
cmp dword [0x30097128], 0
je 0x30058d0f
push esi
push dword [0x30097120]
call fcn.3003b6e6
push dword [0x30097120]
call fcn.3003affc
movzx eax, word [0x3009636c]
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
and dword [0x30097128], 0
push eax
call esi
test eax, eax
jne 0x30058d0e
movzx eax, word [0x30096370]
push eax
call esi
test eax, eax
jne 0x30058d0e
movzx eax, word [0x30096374]
push eax
call esi
test eax, eax
jne 0x30058d0e
movzx eax, word [0x30096378]
push eax
call esi
test eax, eax
jne 0x30058d0e
push 0x106
lea eax, [ebp - 0x10c]
push eax
call fcn.3005880b
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.30071b52
leave
ret
Function at 0x30059595
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x30001bc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x106
lea esi, [ebp - 0x10c]
call fcn.30058786
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0xc8
push 6
xor ebx, ebx
push ebx
mov eax, esi
push eax
call fcn.3003ae8c
test eax, eax
je 0x300595e1
xor eax, eax
jmp 0x3005976f
lea eax, [ebp - 0x118]
push eax
push ebx
push 0x300750cc
lea eax, [ebp - 0x10c]
push eax
call fcn.3003af0b
mov esi, eax
cmp esi, ebx
jne 0x30059759
push 0x64
push dword [0x300750cc]
call fcn.300395ad
mov esi, eax
cmp esi, ebx
jne 0x3005974e
push 0x67
push dword [0x300750cc]
call fcn.300395ad
mov esi, eax
cmp esi, ebx
jne 0x3005974e
push 0x68
push dword [0x300750cc]
call fcn.300395ad
mov esi, eax
cmp esi, ebx
jne 0x3005974e
push 0x65
push dword [0x300750cc]
call fcn.300395ad
mov esi, eax
cmp esi, ebx
jne 0x3005974e
push 0x66
push dword [0x300750cc]
call fcn.300395ad
mov esi, eax
cmp esi, ebx
jne 0x3005974e
push 0x6f
push dword [0x300750cc]
call fcn.300395ad
mov esi, eax
cmp esi, ebx
jne 0x3005974e
lea eax, [ebp - 0x114]
push eax
push 0x820
push 1
push 0x64
push dword [0x300750cc]
call fcn.30039632
mov esi, eax
cmp esi, ebx
jne 0x3005974e
lea eax, [ebp - 0x110]
push eax
push 0x532
push 0x70
push 0x64
push dword [0x300750cc]
call fcn.30039632
mov esi, eax
cmp esi, ebx
jne 0x3005974e
push dword [ebp - 0x110]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalLock]
call esi
push 4
mov dword [eax + 0x10], ebx
add eax, 0x11a
pop ecx
mov byte [eax], bl
add eax, edi
dec ecx
jne 0x300596ed
push dword [ebp - 0x110]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call edi
push dword [ebp - 0x110]
call fcn.3003bbfd
push dword [ebp - 0x110]
call fcn.3004ee74
push dword [ebp - 0x114]
call esi
mov ebx, eax
call fcn.30059090
push dword [ebp - 0x114]
mov esi, eax
call edi
push dword [ebp - 0x114]
call fcn.3004ee74
test esi, esi
jne 0x3005974e
push esi
push dword [0x300750cc]
call fcn.3003af3f
jmp 0x3005976d
push dword [0x300750cc]
call fcn.3003affc
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
or dword [0x300750cc], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30071b52
leave
ret
Function at 0x300599f6
Capabilities:
Identify system language via api
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x30001bc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x11c]
push eax
xor ebx, ebx
push 0x20019
push ebx
push dword [0x300752e8]
mov dword [ebp - 0x110], ebx
push 0x80000001
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x120], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x30059ad9
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 4
pop edi
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x124]
push eax
push ebx
push dword [0x300752ec]
mov dword [ebp - 0x114], edi
push dword [ebp - 0x11c]
call esi
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x124]
push eax
push ebx
push dword [0x300752f0]
mov dword [ebp - 0x114], edi
push dword [ebp - 0x11c]
call esi
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x124]
push eax
push ebx
push dword [0x300752f4]
mov dword [ebp - 0x114], edi
push dword [ebp - 0x11c]
call esi
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x118], ebx
jne 0x30059af0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
mov dword [ebp - 0x118], eax
push dword [ebp - 0x110]
mov ebx, dword [0x300752f8]
call fcn.3005998b
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov dword [0x30096ba8], eax
mov edi, 0x409
jne 0x30059b6d
mov eax, dword [ebp - 0x118]
mov ebx, dword [0x300752f8]
push eax
mov dword [ebp - 0x110], eax
call fcn.3005998b
test eax, eax
mov dword [0x30096ba8], eax
jne 0x30059b6d
call esi
mov ebx, dword [0x300752f8]
movzx eax, ax
push eax
mov dword [ebp - 0x110], eax
call fcn.3005998b
test eax, eax
mov dword [0x30096ba8], eax
jne 0x30059b6d
mov ebx, dword [0x300752f8]
push edi
mov dword [ebp - 0x110], edi
call fcn.3005998b
mov dword [0x30096ba8], eax
push dword [ebp - 0x120]
call fcn.30059931
test eax, eax
jne 0x30059ba0
push dword [ebp - 0x118]
call fcn.30059931
test eax, eax
jne 0x30059ba0
call esi
movzx eax, ax
push eax
call fcn.30059931
test eax, eax
jne 0x30059ba0
push edi
call fcn.30059931
cmp dword [0x30096ba8], 0
jne 0x30059bda
mov esi, 0x106
push esi
push dword [ebp - 0x110]
lea edi, [ebp - 0x10c]
call fcn.300598a6
push dword [0x300752f8]
mov eax, edi
push esi
push eax
call fcn.30018d6b
mov ebx, edi
call fcn.30058678
xor eax, eax
jmp 0x30059c2a
push dword [ebp - 0x110]
call fcn.30046175
cmp al, 1
mov byte [0x3009636e], al
jne 0x30059bf5
mov byte [0x3009636e], 0
mov edi, 0x252
push edi
call fcn.3005af0c
call esi
push eax
call fcn.30046175
cmp al, byte [0x3009636e]
jne 0x30059c27
push pe_nt_image_headers32
push 0x300750d0
push edi
push dword [0x30096ba8]
call dword [sym.imp.USER32.dll_LoadStringW]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30071b52
leave
ret
Function at 0x3005ad06
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 0x10
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call esi
push 0x11
shr eax, 8
movzx ax, al
movzx eax, ax
mov dword [ebp - 0x10], eax
call esi
push 4
push dword [ebp + 8]
shr eax, 8
movzx ax, al
movzx eax, ax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
cmp dword [ebp + 8], ebx
mov dword [ebp - 0x14], eax
jne 0x3005ad58
xor eax, eax
jmp 0x3005af06
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call edi
mov esi, eax
mov eax, dword [esi + 0xe6]
cmp eax, ebx
je 0x3005ada2
push dword [ebp + 0xc]
push eax
call fcn.30038316
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x3005aef9
push dword [esi + 0xe6]
call edi
push dword [esi + 0xe6]
xor ecx, ecx
cmp dword [eax + 0x44], 2
sete cl
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esi + 0x32]
cmp eax, ebx
jne 0x3005ae3c
cmp dword [ebp - 4], ebx
jne 0x3005ae38
push dword [esi + 0x1d6]
call edi
cmp dword [eax + 0x60], ebx
je 0x3005ade8
cmp dword [ebp + 0xc], 8
je 0x3005adcf
cmp dword [ebp + 0xc], 0x2e
jne 0x3005ade8
push ebx
push 0xd3
push 0xc8
push dword [esi + 0x1d6]
push dword [ebp + 8]
call fcn.30028208
push dword [esi + 0x1d6]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 0xc]
sub eax, 0x21
je 0x3005aee6
dec eax
je 0x3005aed6
dec eax
je 0x3005aebf
dec eax
jne 0x3005aef9
mov edi, dword [esi + 0x42]
xor eax, eax
inc eax
push eax
push eax
push eax
push ebx
push dword [esi + 0xde]
mov dword [esi + 0x42], eax
push dword [ebp + 8]
call fcn.30020245
mov dword [esi + 0x42], edi
jmp 0x3005aef9
cmp eax, ebx
je 0x3005ae4e
cmp dword [ebp + 0xc], 8
je 0x3005aeb5
cmp dword [ebp + 0xc], 0xd
je 0x3005ae6e
cmp dword [ebp + 0xc], 0x2e
je 0x3005aeb5
cmp dword [ebp + 0xc], 0x25
jb 0x3005adf4
cmp dword [ebp + 0xc], 0x28
ja 0x3005adf4
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.3005a622
jmp 0x3005aef9
cmp eax, 1
jne 0x3005adf4
cmp dword [esi + 0x42], ebx
jl 0x3005ae9d
cmp dword [esi + 0x46], ebx
jl 0x3005ae9d
movzx eax, word [esi + 0x42]
movzx ecx, word [esi + 0x46]
push ebx
push ebx
push ebx
push ebx
push ebx
shl eax, 0x10
or eax, ecx
push eax
push 0x459
push dword [ebp + 8]
call fcn.30021996
mov esi, dword [esi + 0xe6]
cmp esi, ebx
je 0x3005aef9
push ebx
push 1
push 1
push ebx
push esi
call fcn.30037dcc
jmp 0x3005aef9
push dword [ebp + 8]
call fcn.300711b0
jmp 0x3005aef9
mov edi, dword [esi + 0x42]
push dword [ebp + 8]
mov dword [esi + 0x42], 1
call fcn.3005a2db
jmp 0x3005ae30
push ebx
push 3
cmp word [ebp - 8], bx
je 0x3005aeeb
push 0x114
jmp 0x3005aef0
push ebx
push 2
jmp 0x3005aed9
push 0x115
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 8