joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30001000
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x30001150
push 0x301032b7
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x30154704], eax
xor eax, eax
mov al, byte [0x30154705]
mov dword [0x30154710], eax
mov eax, dword [0x30154704]
shr dword [0x30154704], 0x10
and eax, 0xff
mov dword [0x3015470c], eax
shl eax, 8
add eax, dword [0x30154710]
mov dword [0x30154708], eax
call fcn.30001170
call fcn.30001185
test eax, eax
je 0x3003f578
mov dword [ebp - 4], 0
call fcn.3000125e
call fcn.30001338
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x3015921c], eax
call fcn.30001428
mov dword [0x30154458], eax
test eax, eax
je 0x3003f587
cmp dword [0x3015921c], 0
je 0x3003f587
call fcn.300014de
call fcn.3000162b
call fcn.30001713
mov esi, dword [0x3015921c]
mov al, byte [esi]
cmp al, 0x22
jne 0x3003f596
inc esi
cmp byte [esi], 0x22
je 0x300010fc
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x300010f7
xor eax, eax
mov al, bl
push eax
call fcn.30003fa8
add esp, 4
test eax, eax
jne 0x3003f5aa
inc esi
cmp byte [esi], 0x22
jne 0x300010d6
cmp byte [esi], 0x22
jne 0x300010fd
inc esi
cmp byte [esi], 0
je 0x3000110d
cmp byte [esi], 0x20
ja 0x3000110d
inc esi
cmp byte [esi], 0
jne 0x30001102
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x30001131
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.3003396a
jmp 0x3003f5d7
push 0x10
call fcn.30102876
add esp, 4
jmp 0x30001073
push 0xffffffffffffffff
call fcn.3003396a
add esp, 4
jmp 0x300010ae
cmp al, 0x20
jbe 0x300010fd
inc esi
cmp byte [esi], 0x20
jbe 0x300010fd
jmp 0x3003f59e
inc esi
jmp 0x300010f1
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x30001185
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.300011e9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x30154638], eax
cmp eax, 0xffffffff
je 0x3003f5f1
push 0x74
push 1
call fcn.30001213
add esp, 8
mov esi, eax
test esi, esi
je 0x3003f5f5
push esi
mov eax, dword [0x30154638]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x3003f5f5
push esi
call fcn.3000124b
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov eax, 1
mov dword [esi + 4], 0xffffffff
pop esi
ret
xor eax, eax
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x30001428
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
cmp dword [0x30154950], 0
push ebx
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push ebp
jne 0x3003f922
call esi
mov edi, eax
test edi, edi
jne 0x3003f905
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x3003f918
mov dword [0x30154950], 2
cmp dword [0x30154950], 1
je 0x3003f92f
cmp dword [0x30154950], 2
jne 0x3003f9fc
test ebx, ebx
je 0x3003f9d1
mov ebp, ebx
cmp byte [ebx], 0
je 0x3000149f
inc ebp
cmp byte [ebp], 0
jne 0x30001491
inc ebp
cmp byte [ebp], 0
jne 0x30001491
sub ebp, ebx
inc ebp
push ebp
call fcn.30019863
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
je 0x3003f9eb
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov dword [0x30154950], 1
mov ebx, dword [esp + 0x10]
jmp 0x30001468
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x10]
jmp 0x30001468
test edi, edi
je 0x3003f97e
cmp word [edi], 0
mov esi, edi
je 0x3003f94d
add esi, 2
cmp word [esi], 0
jne 0x3003f93b
add esi, 2
cmp word [esi], 0
jne 0x3003f93b
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
jne 0x3003f990
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
call esi
mov edi, eax
test edi, edi
jne 0x3003f933
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push ebp
call fcn.30019863
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x3003f96d
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x3003f9c0
push ebx
call fcn.300016fb
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x3000148a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x30004b7b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx ecx, word [ebp + 8]
mov eax, ecx
push ebx
push esi
dec eax
push edi
je 0x30040254
dec eax
dec eax
je 0x30040254
sub eax, 3
jne 0x30040201
call fcn.30021345
test eax, eax
je 0x3004029b
mov edx, dword [eax]
push 0xff
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 0xc]
push dword [0x3015559c]
call dword [edx]
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret
movzx eax, word [ebp + 0xc]
push ecx
push eax
push dword [0x3015559c]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x30040254
push esi
push dword [0x3015559c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x30040254
push esi
push dword [0x3015559c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
mov dword [ebp + 8], esi
je 0x30040254
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x3004025b
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x30004bc4
mov edi, dword [ebp + 0x10]
lea ecx, [eax + ebx]
cmp ecx, edi
jb 0x30040287
lea ecx, [ebx + edi]
cmp ecx, eax
jb 0x30040287
push ebx
push eax
push edi
call fcn.3002ec18
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
jmp 0x30004bc4
mov ecx, ebx
mov esi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x30040277
push 0xff
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [0x3015559c]
call dword [sym.imp.USER32.dll_LoadStringA]
jmp 0x30004bc3
Function at 0x300051c8
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x30109b1e
call fcn.300088d4
sub esp, 0x670
mov dword [ebp - 0x228], 0x400
push 0
push 1
push str.CLSID64818D10_4F9B_11CF_86EA_00AA00B929E8LocalServer32ppvwreg
lea ecx, [ebp - 0x220]
call fcn.30005264
and dword [ebp - 0x224], 0
push 0
push 1
push str.PowerPoint.Show.8protocolStdFileEditing_server
lea ecx, [ebp - 0x63c]
call fcn.3001fae4
mov dword [ebp - 0x668], eax
mov eax, dword [ebp - 0x668]
mov dword [ebp - 0x66c], eax
and dword [ebp - 4], 0
push dword [ebp - 0x66c]
call fcn.3000528f
pop ecx
mov dword [ebp - 0x62c], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x63c]
call fcn.3001f90d
cmp dword [ebp - 0x62c], 0
je 0x300405a2
push 1
pop eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x628]
push eax
push 0
lea ecx, [ebp - 0x220]
call fcn.30008e07
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x300405d5
push 1
pop eax
jmp 0x30005258
push 0
push 1
push str.PowerPoint.Show.7protocolStdFileEditing_server
lea ecx, [ebp - 0x650]
call fcn.3001fae4
mov dword [ebp - 0x670], eax
mov eax, dword [ebp - 0x670]
mov dword [ebp - 0x674], eax
mov dword [ebp - 4], 1
push dword [ebp - 0x674]
call fcn.3000528f
pop ecx
mov dword [ebp - 0x640], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x650]
call fcn.3001f90d
cmp dword [ebp - 0x640], 0
je 0x30040634
push 1
pop eax
jmp 0x30005258
push 0
push 1
push str.MSPowerPointShoprotocolStdFileEditing_server
lea ecx, [ebp - 0x664]
call fcn.3001fae4
mov dword [ebp - 0x678], eax
mov eax, dword [ebp - 0x678]
mov dword [ebp - 0x67c], eax
mov dword [ebp - 4], 2
push dword [ebp - 0x67c]
call fcn.3000528f
pop ecx
mov dword [ebp - 0x654], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x664]
call fcn.3001f90d
cmp dword [ebp - 0x654], 0
je 0x300406de
lea eax, [ebp - 0x224]
push eax
call fcn.300642ac
pop ecx
test eax, eax
je 0x300406d6
push 1
lea eax, [ebp - 0x224]
push eax
call fcn.30063c76
pop ecx
pop ecx
lea eax, [ebp - 0x224]
push eax
call fcn.300644b4
pop ecx
cmp dword [ebp - 0x224], 0
je 0x300406ce
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
jmp 0x30005258
push 1
pop eax
jmp 0x30005258
lea eax, [ebp - 0x224]
push eax
call fcn.300642ac
pop ecx
test eax, eax
je 0x30040700
lea eax, [ebp - 0x224]
push eax
call fcn.300643b0
pop ecx
test eax, eax
jne 0x30040708
push 1
pop eax
jmp 0x30005258
push 1
lea eax, [ebp - 0x224]
push eax
call fcn.30063c76
pop ecx
pop ecx
push 0
lea eax, [ebp - 0x224]
push eax
call fcn.30063c76
pop ecx
pop ecx
lea eax, [ebp - 0x224]
push eax
call fcn.300644b4
pop ecx
jmp 0x300406b9
Function at 0x30008715
Capabilities:
Create thread
Resume thread

Disassembly:
mov eax, 0x301098e9
call fcn.300088d4
sub esp, 0xc
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
and dword [eax], 0
mov eax, dword [ebp - 0x18]
and dword [eax + 4], 0
mov eax, dword [ebp - 0x18]
and dword [eax + 8], 0
mov eax, dword [ebp - 0x18]
and dword [eax + 0xc], 0
mov eax, dword [ebp - 0x18]
and dword [eax + 0x10], 0
mov eax, dword [ebp - 0x18]
and dword [eax + 0x14], 0
mov eax, dword [ebp - 0x18]
and dword [eax + 0x18], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [0x30155b30]
mov dword [eax + 0x1c], ecx
push 0x30155b10
lea ecx, [ebp - 0x10]
call fcn.300219f0
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 4
push eax
push 4
push dword [ebp - 0x18]
push 0x30038bb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x10], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x14], eax
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
je 0x3004188c
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x10], 0
je 0x3004188c
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x14], 0
je 0x3004188c
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x18], 0
je 0x3004188c
mov eax, dword [ebp - 0x18]
mov dword [0x30155b30], eax
mov eax, dword [ebp - 0x18]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.30021a06
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x300418f1
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x10], 0
je 0x300418a9
mov eax, dword [ebp - 0x18]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x14], 0
je 0x300418be
mov eax, dword [ebp - 0x18]
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x18], 0
je 0x300418d3
mov eax, dword [ebp - 0x18]
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
call fcn.30063988
pop ecx
mov dword [ebp - 0x14], eax
push 0x30122428
lea eax, [ebp - 0x14]
push eax
call fcn.30020a74
jmp 0x30008801
mov eax, dword [ebp - 0x18]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x30041894
Function at 0x3000fc67
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
movzx ecx, word [ebp + 8]
mov eax, ecx
push ebx
push esi
dec eax
push edi
je 0x30044424
dec eax
jne 0x300442f9
movzx eax, word [ebp + 0xc]
push eax
push dword [0x3015559c]
call fcn.3000fca2
pop ecx
pop ecx
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
dec eax
jne 0x30044312
movzx eax, word [ebp + 0xc]
push eax
push dword [0x3015559c]
call dword [sym.imp.USER32.dll_LoadIconA]
jmp 0x3000fc99
dec eax
je 0x3004440e
dec eax
dec eax
je 0x30044364
sub eax, 3
je 0x3004434e
movzx eax, word [ebp + 0xc]
push ecx
push eax
push dword [0x3015559c]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x300443bc
push eax
push dword [0x3015559c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
jmp 0x3000fc99
movzx eax, word [ebp + 0xc]
push eax
push dword [0x3015559c]
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
jmp 0x3000fc99
call fcn.30021345
test eax, eax
jne 0x3004438a
lea eax, [ebp - 0x100]
push 0xff
push eax
push dword [ebp + 0xc]
push dword [0x3015559c]
call dword [sym.imp.USER32.dll_LoadStringA]
jmp 0x300443a5
mov edx, dword [eax]
lea ecx, [ebp - 0x100]
push 0xff
push ecx
push dword [ebp + 0xc]
mov ecx, eax
push dword [0x3015559c]
call dword [edx]
mov esi, eax
test esi, esi
je 0x300443bc
inc esi
push 2
push esi
call fcn.3000883d
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
jne 0x300443c3
xor eax, eax
jmp 0x3000fc9d
lea eax, [ebp + esi - 0x100]
cmp eax, ebx
jb 0x300443f1
lea eax, [esi + ebx]
lea ecx, [ebp - 0x100]
cmp eax, ecx
jb 0x300443f1
lea eax, [ebp - 0x100]
push esi
push eax
push ebx
call fcn.3002ec18
add esp, 0xc
jmp 0x3000fc9b
mov ecx, esi
lea esi, [ebp - 0x100]
mov eax, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x3000fc9b
movzx eax, word [ebp + 0xc]
push eax
push dword [0x3015559c]
call dword [sym.imp.USER32.dll_LoadMenuA]
jmp 0x3000fc99
movzx eax, word [ebp + 0xc]
push eax
push dword [0x3015559c]
call dword [sym.imp.USER32.dll_LoadCursorA]
jmp 0x3000fc99
Function at 0x3000ffc5
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [0x301557d4], edi
je 0x3001007c
call dword [sym.imp.USER32.dll_GetCapture]
mov ebx, eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
cmp ebx, edi
jne 0x30010007
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_WindowFromPoint]
mov ebx, eax
cmp ebx, edi
je 0x30044484
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x30044484
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
test ax, ax
jl 0x3004445c
push 0x11
call esi
test ax, ax
jl 0x30044464
push 1
call esi
test ax, ax
jl 0x3004446c
push 2
call esi
test ax, ax
jl 0x30044474
push 4
call esi
test ax, ax
jl 0x3004447c
movzx eax, word [ebp - 4]
movzx ecx, word [ebp - 8]
shl eax, 0x10
or eax, ecx
push eax
push edi
push 0x200
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
and dword [0x301557d4], 0
pop edi
pop esi
pop ebx
leave
ret
push 4
pop edi
jmp 0x3001002d
or edi, 8
jmp 0x3001003a
or edi, 1
jmp 0x30010047
or edi, 2
jmp 0x30010054
or edi, 0x10
jmp 0x30010061
push dword [0x301557b0]
call fcn.3002cce0
pop ecx
jmp 0x3001007c
Function at 0x300176ec
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov ebx, dword [eax]
and dword [eax], 0
test ebx, ebx
jle 0x30017743
mov esi, 0xfffe
cmp ebx, esi
ja 0x30047da1
mov edi, ebx
xor ebx, ebx
lea eax, [ebp - 4]
push 0
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x30047daa
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
add dword [ecx], eax
cmp eax, edi
jne 0x30047dd8
test ebx, ebx
jg 0x30047dc8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
sub ebx, esi
mov edi, esi
jmp 0x30017710
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x3001772b
push 0
push eax
call fcn.3005b8ed
pop ecx
pop ecx
jmp 0x3001772b
add dword [ebp + 0x10], esi
test ebx, ebx
jle 0x30017743
jmp 0x30017704
push 1
pop eax
jmp 0x30017745

Function at 0x30018518
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push esi
push edi
mov esi, ecx
push 1
pop edi
lea ecx, [ebp - 0x21c]
call fcn.3001fa3d
lea eax, [ebp - 0x21c]
lea ecx, [esi + 0xbc]
push eax
call fcn.30020465
mov eax, dword [esi + 0x320]
cmp eax, 0xffffffff
je 0x30018565
push eax
lea ecx, [ebp - 0x21c]
call fcn.30008f21
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, eax
add esi, 0x308
mov ecx, esi
call fcn.300185ad
test eax, eax
jne 0x300185a7
test edi, edi
je 0x3004811d
push esi
lea eax, [ebp - 0x21c]
push 1
push eax
lea ecx, [ebp - 0x438]
call fcn.300185c4
push eax
call fcn.300185dd
add esp, 0xc
test eax, eax
je 0x3004811d
push 1
pop edi
mov eax, edi
pop edi
pop esi
leave
ret
xor edi, edi
jmp 0x300185a7

Function at 0x3001f975
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [0x30154340]
xor edi, edi
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x3001f99d
cmp eax, ecx
je 0x3001f99d
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [esi + 8], edi
je 0x3001fa1b
cmp dword [0x301555dc], edi
je 0x3001f9b4
cmp dword [ebp + 8], 4
je 0x3004a12c
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 4]
push 1
push dword [ebp + 8]
call fcn.3002168b
mov edi, eax
add esp, 0x18
xor eax, eax
cmp edi, 0x100
setg al
test eax, eax
lea ebx, [ebp - 0x204]
mov dword [ebp - 4], eax
jne 0x3004a147
push edi
push ebx
push 0xffffffffffffffff
push dword [esi + 4]
push 1
push dword [ebp + 8]
call fcn.3002168b
add esp, 0x18
cmp eax, edi
jne 0x3001fa0c
push ebx
call fcn.3001fb5c
dec edi
pop ecx
mov dword [esi + 0xc], eax
mov dword [esi + 8], edi
cmp dword [ebp - 4], 0
jne 0x3004a158
jmp 0x3001f996
mov dword [esi + 0xc], ecx
jmp 0x3001f996
push edi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
and eax, 0xffff
push eax
call dword [sym.imp.MSO97v.DLL_Ordinal_307]
mov dword [ebp + 8], eax
jmp 0x3001f9b4
lea eax, [edi + edi]
push eax
call fcn.3000882f
pop ecx
mov ebx, eax
jmp 0x3001f9e6
push ebx
call fcn.30008a6e
pop ecx
jmp 0x3001f996
Function at 0x30021a7f
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x30154638]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x3004ae58
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret
push 0x74
push 1
call fcn.30001213
add esp, 8
mov edi, eax
test edi, edi
je 0x3004ae98
push edi
mov eax, dword [0x30154638]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x3004ae98
push edi
call fcn.3000124b
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi], eax
mov dword [edi + 4], 0xffffffff
jmp 0x30021a9f
push 0x10
call fcn.30102876
add esp, 4
jmp 0x30021a9f

Function at 0x30025386
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
lea eax, [ebp - 0x20]
push esi
push eax
xor esi, esi
mov dword [ebp - 0x20], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x1c]
cmp eax, 0x1e
jbe 0x3004c7e3
cmp eax, 0x55
ja 0x3004c7ec
push 1
pop esi
mov eax, esi
pop esi
leave
ret
cmp eax, 0x55
jbe 0x300253b8
cmp eax, 0x64
jne 0x3004c801
cmp dword [ebp - 0x14], 0x4000
jae 0x3004c801
push 3
jmp 0x300253b7
push 2
jmp 0x300253b7
Function at 0x3002a26c
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x30111df5
call fcn.300088d4
push ecx
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x10], esp
lea eax, [edi + 0x178]
mov dword [ebp - 0x18], esi
neg edi
sbb edi, edi
xor ebx, ebx
and edi, eax
cmp dword [esi + 0x200], ebx
jne 0x3004e283
call fcn.30009c6a
test eax, eax
jne 0x3002a396
cmp dword [esi + 0xb8], ebx
jne 0x3002a396
lea ecx, [esi + 0xd8]
mov dword [ebp + 8], ebx
call fcn.3000ded5
cmp dword [esi + 0x240], ebx
mov dword [ebp - 4], ebx
jne 0x3002a34c
call fcn.3002b2c1
push 0x16c
mov dword [ebp - 0x14], eax
call fcn.3000882f
pop ecx
mov ecx, eax
mov dword [ebp - 0x1c], ecx
cmp ecx, ebx
mov byte [ebp - 4], 1
je 0x3004e28d
push dword [0x30157110]
lea eax, [esi + 0x208]
push 0x22
push ebx
push eax
push eax
call fcn.30029883
mov byte [ebp - 4], bl
mov dword [esi + 0x240], eax
call fcn.3002b2c1
sub eax, dword [ebp - 0x14]
mov dword [esi + 0x244], eax
cmp dword [0x301555dc], ebx
je 0x3002a34c
mov ecx, dword [esi + 0x240]
call fcn.30009579
mov ecx, dword [esi + 0x240]
lea eax, [esi + 0x208]
push 1
push eax
call fcn.3000a70e
push edi
lea ecx, [esi + 0x178]
push dword [esi + 0x240]
call fcn.30028551
call fcn.3002b2c1
push dword [esi + 0x240]
mov ecx, esi
mov edi, eax
call fcn.300286b2
mov dword [ebp + 8], eax
call fcn.3002b2c1
sub eax, edi
mov dword [esi + 0x248], eax
or dword [ebp - 4], 0xffffffff
cmp dword [ebp + 8], ebx
je 0x3004e2a4
and dword [esi + 0x254], 0xfffffffd
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
call fcn.3002f6ea
jmp 0x3002a396
xor eax, eax
jmp 0x3002a30e
mov ecx, dword [esi + 0x240]
add esi, 0x240
cmp ecx, ebx
jne 0x3004e2bb
mov dword [esi], ebx
jmp 0x3002a396
mov eax, dword [ecx]
push 1
call dword [eax + 8]
jmp 0x3004e2b4

Function at 0x3002a547
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
cmp word [ebp + 8], 1
je 0x3002a588
cmp word [ebp + 8], 0
jne 0x3004e2f7
and byte [ebp - 0x6f], 0xfe
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
mov al, byte [ebp - 0x6f]
and eax, 1
leave
ret
or byte [ebp - 0x6f], 0x11
jmp 0x3002a573
inc byte [ebp - 0x6f]
jmp 0x3002a573