joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30002b99
Capabilities:
Get file attributes

Disassembly:
call ebx
test eax, eax
js 0x30058302
mov dword [0x301dd7f0], 1
jmp 0x30002bb6
test eax, eax
mov dword [ebp - 4], eax
jne 0x30002be1
jmp 0x30002bc9
call ebx
test eax, eax
mov eax, dword [ebp + 8]
js 0x3005832d
push dword [eax + 0xc]
call dword [eax + 4]
test eax, eax
je 0x30002be0
mov dword [edi], eax
jmp 0x30002bd7
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x301dd7f0], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
je 0x300029a3
mov eax, dword [0x301dd7f4]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x30058322
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x300029cc
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc
push 0x30058344
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x30058338
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x301dd7f4], eax
jmp 0x300029ad
push dword [ebp + 0x10]
push eax
call esi
jmp 0x300029bc
push dword [eax + 8]
call dword [eax]
jmp 0x300029df

Function at 0x30003901
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 0xc]
push esi
push 0x1d
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x300039bc
push ebx
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
push 1
push 0x2080
push eax
push edi
mov dword [esi], eax
call fcn.30055888
test eax, eax
je 0x3006e727
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [edi]
mov dx, word [eax]
test dx, dx
je 0x300039b1
mov esi, dword [ebp + 0x10]
movzx edx, dx
test edx, edx
jle 0x30003996
lea edi, [ecx + 4]
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], edx
mov ebx, dword [ebp + 8]
add dword [ebp + 8], 2
mov edi, esi
sub edi, dword [ebp + 0x10]
sar edi, 1
dec dword [ebp + 0xc]
mov word [ebx], di
movzx edi, word [esi]
lea esi, [esi + edi*2 + 2]
jne 0x30003979
mov edi, esi
sub edi, dword [ebp + 0x10]
mov word [ecx], dx
sar edi, 1
lea edx, [edx + edx + 4]
mov word [ecx + 2], di
add eax, edx
mov dword [ebp + 0x10], esi
add ecx, edx
jmp 0x3000395e
mov ax, dx
mov word [ecx], ax
xor eax, eax
inc eax
pop edi
pop ebx
pop esi
pop ebp
ret 0x14
and dword [esi], eax
jmp 0x300039ba
Function at 0x30005226
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x301ddad0]
mov dword [ebp + 8], eax
jmp 0x30005277
mov ecx, dword [ebp + 0x10]
mov dx, word [ebp - 0x204]
mov word [ecx], dx
jmp 0x300052c2
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [section..cdata]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, 0x100
push esi
inc edi
push edi
mov dword [ebp - 4], eax
call fcn.30055f82
push eax
lea eax, [ebp - 0x204]
push eax
push 0
call fcn.3000e1b7
cmp byte [0x301e4d02], 0
mov edx, 0xfffffc00
jne 0x3006ac70
test dword [ebp + 8], edx
je 0x30003750
or byte [ebp + 0xf], 0x80
push esi
push edi
call fcn.30055f82
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ecx, dword [ebp + 0x14]
cmp ecx, 1
pop edi
pop esi
je 0x30005214
test eax, eax
jle 0x30006132
cmp dword [ebp + 0x18], 0
push ecx
push dword [ebp + 0x10]
lea eax, [ebp - 0x204]
push eax
je 0x30006128
call fcn.30005197
mov ecx, dword [ebp - 4]
call fcn.30056b36
leave
ret 0x14
call fcn.3000613f
jmp 0x300052c2
test ecx, ecx
jle 0x300052c2
jmp 0x3006acea
test dword [ebp + 8], edx
jne 0x30005273
cmp dword [0x301dd930], 0
je 0x3000526a
cmp dword [0x301ddc18], 0
je 0x3006ac96
mov eax, 0x3006acf8
jmp 0x3006acb9
cmp dword [0x301e4714], 0
je 0x3006aca6
mov eax, 0x3006ad68
jmp 0x3006acb9
cmp dword [0x301ddd88], 0
mov eax, 0x3006adac
jne 0x3006acb9
mov eax, 0x3006ae04
mov cx, word [eax]
movzx ecx, cx
cmp ecx, dword [ebp + 0xc]
je 0x3006acd4
add eax, 0x16
mov cx, word [eax]
test cx, cx
jne 0x3006acbc
jmp 0x3000526a
push esi
lea ecx, [ebp - 0x204]
push ecx
add eax, 2
push eax
call fcn.3000613f
jmp 0x30005292
mov ecx, dword [ebp + 0x10]
and word [ecx], 0
jmp 0x300052c2

Function at 0x30005342
Capabilities:
Get geographical location

Disassembly:
mov edi, dword [0x301ddad0]
jmp 0x30005378
push ebp
mov ebp, esp
sub esp, 0x14
cmp byte [0x301e4d02], 0
mov eax, dword [section..cdata]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov edx, 0xfffffc00
jne 0x3006ae5c
test edx, edi
je 0x30003745
or esi, 0x80000000
push 8
lea eax, [ebp - 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x3006aea5
mov edx, dword [ebp - 0x14]
xor eax, eax
xor ecx, ecx
test dx, dx
jne 0x300053a8
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.30056b36
leave
ret 0xc
imul eax, eax, 0xa
movzx edx, dx
inc ecx
lea eax, [eax + edx - 0x30]
mov dx, word [ebp + ecx*2 - 0x14]
jmp 0x30005395
test edx, edi
jne 0x30005372
cmp dword [0x301dd930], 0
je 0x3000536a
cmp dword [0x301ddc18], 0
je 0x3000536a
push 0x1c
mov ecx, 0x3006aecc
pop eax
movzx eax, ax
cmp eax, esi
je 0x3006ae9d
add ecx, 8
mov ax, word [ecx]
test ax, ax
jne 0x3006ae86
jmp 0x3000536a
mov eax, dword [ecx + 4]
jmp 0x3000539a
mov eax, dword [ebp + 0x10]
and esi, 0x7fffffff
cmp esi, 0x21
jne 0x3000539a
test eax, eax
jl 0x3006aec4
cmp eax, 2
jle 0x3000539a
xor eax, eax
jmp 0x3000539a
Function at 0x30006e11
Capabilities:
Get keyboard layout

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa8
push esi
push edi
call dword [sym.imp.MSO.DLL_Ordinal_2392]
xor esi, esi
inc esi
push esi
call dword [sym.imp.MSO.DLL_Ordinal_3077]
call dword [sym.imp.MSO.DLL_Ordinal_1815]
mov ecx, dword [0x301e469c]
and cl, 0x2c
xor edi, edi
mov dword [0x301e4af0], eax
or ecx, 8
cmp eax, edi
mov dword [0x301e469c], ecx
je 0x30006e5c
cmp dword [eax], edi
je 0x30006e5c
push edi
call dword [eax + 0xb0]
push 0x10
push 0x301ddc00
push edi
call fcn.30056452
cmp dword [0x301ddc14], edi
jne 0x3006e5a9
cmp dword [0x301ddc18], edi
jne 0x3006e65f
call fcn.30006b18
pop edi
pop esi
add ebp, 0x78
leave
ret
mov eax, dword [0x301e4af0]
cmp eax, edi
je 0x3006e5b9
cmp dword [eax], edi
mov dword [ebp + 0x70], esi
jne 0x3006e5bc
mov dword [ebp + 0x70], edi
push ebx
xor ebx, ebx
cmp dword [0x301ddd88], edi
lea eax, [ebp - 0x30]
sete bl
push eax
push 0x28
mov dword [0x301e6c2c], edi
mov dword [0x301e6c30], edi
inc ebx
shl ebx, 0xa
or ebx, 4
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
xor esi, esi
cmp eax, edi
mov dword [ebp + 0x74], eax
jle 0x3006e60b
cmp dword [ebp + 0x70], edi
jne 0x3006e629
push dword [ebp + esi*4 - 0x30]
call fcn.300c9354
test eax, eax
je 0x3006e630
mov eax, dword [ebp + esi*4 - 0x30]
mov dword [0x301e6c30], eax
xor esi, esi
cmp dword [ebp + 0x74], edi
pop ebx
jle 0x30006e81
cmp dword [ebp + 0x70], edi
jne 0x3006e638
push dword [ebp + esi*4 - 0x30]
call fcn.300c9354
test eax, eax
jmp 0x3006e644
cmp word [ebp + esi*4 - 0x30], bx
je 0x3006e602
inc esi
cmp esi, dword [ebp + 0x74]
jl 0x3006e5f0
jmp 0x3006e60b
mov ax, word [ebp + esi*4 - 0x30]
and ah, 3
cmp ax, 9
je 0x3006e651
inc esi
cmp esi, dword [ebp + 0x74]
jl 0x3006e617
jmp 0x30006e81
mov eax, dword [ebp + esi*4 - 0x30]
mov dword [0x301e6c2c], eax
jmp 0x30006e81
push 0x3006e6b8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, edi
je 0x30006e81
push 0x3006e698
push eax
call fcn.3000814b
cmp eax, edi
mov dword [0x301e5788], eax
je 0x30006e81
mov dword [0x301e578c], esi
jmp 0x30006e81

Function at 0x30007bff
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
xor esi, esi
cmp dword [0x301de6f0], esi
jne 0x30007c7d
test byte [ebp + 0x10], 1
mov eax, dword [0x301dec00]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0x30007c84
mov dword [ebp - 0x24], 0x3002cfa8
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 6
mov dword [ebp - 0x28], 0x2028
jne 0x3005adc7
test byte [ebp + 0x10], 2
jne 0x3005add3
test byte [ebp + 0x10], 4
jne 0x3005addc
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], eax
xor edi, edi
lea eax, [ebp - 0x28]
push eax
call fcn.30002cce
test ax, ax
je 0x3005ade5
pop edi
pop esi
leave
ret 0xc
mov dword [ebp - 0x28], 0x202b
jmp 0x30007c4a
and byte [ebp - 0x27], 0xdf
jmp 0x30007c54
or byte [ebp - 0x27], 8
jmp 0x30007c5e
push edi
push 3
push esi
call fcn.300e1d83
dec eax
jne 0x3005adf7
inc edi
jmp 0x30007c6a
dec eax
je 0x30007c7c
push 6
push dword [0x301e4ae8]
call sub.MSVCRT.dll_longjmp
Function at 0x30019bfc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
lea ebp, [esp - 0x1ac]
sub esp, 0x22c
mov eax, dword [section..cdata]
push ebx
xor ebx, ebx
cmp dword [0x301e4790], ebx
mov dword [ebp + 0x1a8], eax
jne 0x3004922f
mov ecx, dword [ebp + 0x1a8]
pop ebx
call fcn.30056b36
add ebp, 0x1ac
leave
ret
call fcn.3001a11e
test eax, eax
jne 0x30019c24
cmp byte [0x301e4d00], bl
jne 0x3006ed7c
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
cmp dword [0x301e4aec], ebx
je 0x3006ed8e
push esi
push edi
call dword [sym.imp.USER32.dll_GetCapture]
mov edi, eax
cmp edi, ebx
jne 0x3006edbb
push dword [0x301e47a0]
call dword [sym.imp.USER32.dll_SetCapture]
call dword [sym.imp.USER32.dll_ReleaseCapture]
cmp byte [0x301e4d0d], bl
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
mov edi, fcn.3001a2e7
mov ecx, edi
je 0x3006ee59
push 1
mov eax, 0x200
push eax
push eax
push ebx
lea eax, [ebp - 0x80]
push eax
call ecx
test eax, eax
jne 0x30053a69
cmp byte [0x301e4d0d], bl
je 0x300492bd
mov esi, edi
push 1
mov eax, 0xa0
push eax
push eax
push ebx
lea eax, [ebp - 0x80]
push eax
call esi
test eax, eax
jne 0x30053a69
cmp dword [0x301e4aec], ebx
je 0x3006ee60
pop edi
pop esi
jmp 0x30019c24
cmp byte [0x301e4d0d], bl
mov eax, 0x3001a093
je 0x3006ee6c
lea ecx, [ebp - 0x80]
push ecx
call eax
jmp 0x300492e1
test byte [0x301e469c], 2
jne 0x30019c24
jmp 0x30049248
push dword [ebp - 0x60]
push dword [ebp - 0x64]
call dword [sym.imp.USER32.dll_WindowFromPoint]
cmp eax, ebx
je 0x3006edb0
push eax
call fcn.3005607b
cmp eax, dword [0x301e4748]
je 0x3004925e
mov dword [0x301de114], ebx
jmp 0x30019c24
push 0x101
lea eax, [ebp - 0x5c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClassNameW]
mov esi, dword [sym.imp.MSO.DLL_Ordinal_295]
push 5
push 5
lea eax, [ebp - 0x5c]
push eax
call esi
push eax
call fcn.30055f82
push eax
push 0x3006ee78
lea eax, [ebp - 0x5c]
push eax
call fcn.30055c94
test eax, eax
je 0x300492e1
push 4
lea eax, [ebp - 0x5c]
push eax
call esi
push eax
push 0x3006ee84
lea eax, [ebp - 0x5c]
push eax
call fcn.30055c94
test eax, eax
je 0x300492e1
push edi
call fcn.3005607b
cmp eax, dword [0x301e4748]
jne 0x300492e1
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call esi
test ah, ah
js 0x30049282
push 2
call esi
test ah, ah
js 0x30049282
call dword [sym.imp.USER32.dll_ReleaseCapture]
push edi
call dword [sym.imp.USER32.dll_SetCapture]
jmp 0x30049282
mov ecx, esi
jmp 0x3004929b
push 1
call fcn.30046ff5
jmp 0x300492e1
mov eax, dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x30053a7a
Function at 0x3002de23
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call esi
test ax, ax
jl 0x3002de49
push 2
call esi
test ax, ax
jl 0x3002de49
push 4
call esi
test ax, ax
jl 0x3002de49
xor eax, eax
pop esi
ret
xor eax, eax
inc eax
pop esi
ret
Function at 0x300463f8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
cmp dword [0x301e3340], 6
mov eax, dword [section..cdata]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
jl 0x30046423
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
jne 0x3007e47c
mov ecx, dword [ebp - 4]
call fcn.30056b36
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [0x301e4ae8]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0xb4]
push 0
push eax
mov dword [0x301e4ae8], eax
call sub.MSVCRT.dll__setjmp3
test eax, eax
pop ecx
pop ecx
je 0x3007e4ac
mov dword [0x301e3f5c], 1
jmp 0x3007e5f9
mov edi, dword [ebp + 8]
movzx esi, word [edi + 2]
lea esi, [esi*4 + 8]
push 1
push esi
mov dword [ebp - 0x60], esi
call fcn.300563f8
push esi
mov ebx, eax
push ebx
push 0
call fcn.30056452
mov al, byte [ebp + 0xc]
mov byte [ebx + 4], al
mov ax, word [edi + 2]
mov word [ebx + 6], ax
movzx eax, ax
dec eax
js 0x3007e533
lea ecx, [edi + eax*2 + 0xc]
lea esi, [ebx + eax*4 + 8]
inc eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x58]
movzx eax, word [eax]
push eax
call fcn.300110d1
movzx eax, word [eax + 8]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x58]
movzx eax, word [eax]
push eax
call fcn.3000fc23
mov cl, byte [esi]
sub dword [ebp - 0x58], 2
xor cl, al
mov ax, word [ebp - 0x64]
mov word [esi + 2], ax
and ecx, 1
xor word [esi], cx
sub esi, 4
dec dword [ebp - 0x5c]
jne 0x3007e4f3
mov esi, dword [ebp - 0x60]
push ebx
push esi
push 0x85a
call fcn.3004131e
push esi
push ebx
call dword [sym.imp.MSO.DLL_Ordinal_957]
push 0
push dword [ebp + 0xc]
push 0
push 0x11
call fcn.30185e16
movzx eax, word [edi + 2]
lea esi, [edi + 0xc]
lea edi, [esi + eax*2]
jmp 0x3007e5e8
movzx eax, word [esi]
push eax
mov dword [ebp - 0x58], 0x31
mov dword [ebp - 0x5c], 0xf
call fcn.30013400
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x58]
push ecx
push dword [eax + 0x74]
push eax
call fcn.30010cb5
push eax
call fcn.30042d56
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x5c]
push dword [ebp - 0x58]
call fcn.3004131e
movzx eax, word [esi]
push eax
call fcn.3000fc23
test eax, eax
je 0x3007e5e6
movzx eax, word [esi]
push eax
call fcn.300110d1
movzx ebx, word [eax + 8]
movzx eax, word [esi]
push eax
call fcn.300110d1
mov eax, dword [eax + 0xc]
lea ecx, [ebp - 0x74]
push ecx
push ebx
push eax
call fcn.30046161
lea eax, [ebp - 0x74]
push eax
push 0xa
push 0x1060
call fcn.3004131e
inc esi
inc esi
cmp esi, edi
jb 0x3007e564
push 0
push 0x11
call fcn.30044992
mov eax, dword [ebp - 0x68]
mov dword [0x301e4ae8], eax
jmp 0x30046423
Function at 0x30049bfb
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
cmp dword [0x301e46ec], 1
je 0x3005c150
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x10
call esi
xor edi, edi
test ax, ax
mov dword [esp + 0x10], 4
jl 0x30049c2a
mov dword [esp + 0x10], edi
push 0x11
call esi
test ax, ax
jl 0x3005c157
xor ebx, ebx
push 0x12
call esi
test ax, ax
jl 0x3005c15f
push 0x14
call esi
mov bp, ax
push 0x90
and ebp, 1
add ebp, ebp
call esi
push 0x91
and eax, 1
or ebp, eax
shl ebp, 2
call esi
and eax, 1
or ebp, eax
shl ebp, 8
or ebp, edi
or ebp, ebx
or ebp, dword [esp + 0x10]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [0x301e5160]
pop ecx
ret
push 8
pop ebx
jmp 0x30049c39
push 0x20
pop edi
jmp 0x30049c46

Function at 0x30056b36
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..cdata]
jne 0x301d850a
ret
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [section..cdata]
push edi
mov dword [ebp + 0x2a4], eax
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x80], 0xc0000409
lea eax, [ebp + 0x2ac]
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp - 0x28], 0x10001
mov eax, dword [eax]
mov dword [ebp + 0x90], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp + 0x9c], eax
push ss
pop dword [ebp + 0xa0]
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.30056b36
pop edi
add ebp, 0x2a8
leave
ret
Function at 0x300afd52
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [section..cdata]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 4], eax
movzx eax, word [ebx]
push 0xff
push eax
lea edi, [ebx + 2]
call fcn.30055f82
lea esi, [edi + eax*2]
mov eax, esi
sub eax, edi
push 0x5c
sar eax, 1
push eax
push edi
call fcn.3000ec9e
test eax, eax
je 0x300afe08
cmp eax, edi
jne 0x300afdc3
mov ecx, esi
sub ecx, eax
sub ecx, 4
push 0x5c
sar ecx, 1
push ecx
add eax, 4
push eax
call fcn.3000ec9e
test eax, eax
je 0x300afe08
sub esi, eax
dec esi
push 0x5c
dec esi
sar esi, 1
push esi
add eax, 2
push eax
call fcn.3000ec9e
test eax, eax
je 0x300afe08
push 0x101
lea ecx, [ebp - 0x208]
sub eax, ebx
push ecx
sar eax, 1
push eax
push edi
call fcn.3000fe97
xor eax, eax
push eax
push eax
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
push eax
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x300afe08
cmp dword [ebp + 8], 0xf
jb 0x300afe08
xor eax, eax
inc eax
jmp 0x300afe0a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.30056b36
leave
ret 4
Function at 0x300b092e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x300b0981
mov ax, word [esi]
test ax, ax
jbe 0x300b0981
movzx eax, ax
inc eax
cmp eax, edi
jge 0x300b097d
push esi
call fcn.300c85ba
push esi
call fcn.3001225f
movzx eax, word [esi]
and word [esi + eax*2 + 2], 0
lea eax, [esi + 2]
push eax
call fcn.300b076f
test eax, eax
je 0x300b0981
push esi
call fcn.300c85ba
push esi
call fcn.3001225f
xor eax, eax
jmp 0x300b09c2
push ebx
lea eax, [edi - 1]
lea ebx, [esi + 2]
push ebx
push eax
mov edi, 0xf9
push edi
mov dword [ebp + 0x10], eax
call fcn.30055f82
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
push edi
call fcn.30055f82
cmp dword [ebp + 0xc], eax
jle 0x300b09b4
and word [ebx], 0
push ebx
call dword [sym.imp.MSO.DLL_Ordinal_295]
mov word [esi], ax
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x300bff44
Capabilities:
Read clipboard data

Disassembly:
mov eax, dword [esp + 4]
push dword [eax*4 + 0x301ddc3c]
call dword [sym.imp.USER32.dll_GetClipboardData]
ret 4

Function at 0x300c0df1
Capabilities:
Read clipboard data

Disassembly:
cmp dword [0x301df2c8], 0
push edi
mov edi, dword [esp + 8]
je 0x300c0e0d
push edi
call fcn.300c0101
test eax, eax
je 0x300c0eb0
cmp edi, 2
jne 0x300c0e19
call fcn.300c0128
mov edi, eax
cmp edi, 9
push esi
mov esi, dword [edi*4 + 0x301ddc3c]
jne 0x300c0e35
push 8
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x300c0e35
push 8
pop esi
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetClipboardData]
push ebp
push esi
call ebx
mov ebp, eax
test ebp, ebp
je 0x300c0ead
cmp esi, 8
jne 0x300c0e58
cmp edi, 0x2d
je 0x300c0e95
push ebp
call fcn.300c0d36
jmp 0x300c0ead
cmp esi, 2
jne 0x300c0e95
cmp dword [0x301e4448], 0
je 0x300c0e95
push 9
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x300c0e95
push 9
call ebx
test eax, eax
je 0x300c0e95
cmp edi, 0x2d
jne 0x300c0e8a
push 0
push eax
push ebp
call fcn.300c0bc3
jmp 0x300c0ead
push eax
push ebp
call fcn.300c0dc3
test eax, eax
jne 0x300c0ead
push edi
push ebp
call fcn.300c0ab9
cmp edi, 0x24
jne 0x300c0ead
test eax, eax
je 0x300c0ead
push 1
push eax
call fcn.300a9de1
pop ebp
pop ebx
pop esi
pop edi
ret 4
Function at 0x300c995f
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
test ax, ax
jge 0x300c997d
mov dword [esp + 0xc], 8
jmp 0x300c9982
and dword [esp + 0xc], 0
push 4
call esi
test ax, ax
push 0x10
pop ebx
jge 0x300c9994
mov dword [esp + 0x10], ebx
jmp 0x300c9999
and dword [esp + 0x10], 0
push 2
pop ebp
push ebp
call esi
test ax, ax
jl 0x300c99a6
xor ebp, ebp
push ebx
call esi
test ax, ax
jge 0x300c99b3
push 4
pop ebx
jmp 0x300c99b5
xor ebx, ebx
push 1
call esi
xor ecx, ecx
test ax, ax
setl cl
pop esi
movzx eax, cx
movzx ecx, word [edi]
shl ecx, 0x10
or eax, ecx
movzx ecx, word [esp + 8]
or eax, ecx
movzx ecx, word [esp + 0xc]
or eax, ecx
movzx ecx, bp
or eax, ecx
movzx ecx, bx
or eax, ecx
pop ebp
mov dword [edi], eax
pop ebx
pop ecx
pop ecx
ret

Function at 0x300ca5d6
Capabilities:
Hide graphical window

Disassembly:
push esi
push 1
call fcn.300ae0c1
mov eax, dword [0x301e46e4]
mov esi, dword [eax + 0x10c]
push 0
push dword [esi + 8]
call fcn.30019de4
push 2
push dword [esi + 8]
call fcn.30052d01
push dword [esi + 8]
call fcn.300210b7
test eax, eax
jne 0x300ca65a
mov eax, dword [0x301e46e4]
cmp esi, dword [eax + 0x10c]
jne 0x300ca620
push 1
push dword [esi + 8]
call fcn.300ea31c
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x28]
and ecx, 0x700
cmp ecx, 0x500
jne 0x300ca64d
push 2
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
push eax
call fcn.30052d01
mov eax, dword [0x301e4524]
cmp esi, dword [eax + 0x10c]
je 0x300ca661
mov eax, dword [0x301e4524]
jmp 0x300ca5e3
cmp dword [esp + 8], 0
je 0x300ca6b9
mov eax, dword [0x301e46e4]
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [eax + 0x10c]
push dword [esi + 8]
call fcn.300210b7
test eax, eax
jne 0x300ca6b1
push dword [esi + 8]
call fcn.30055c06
test eax, eax
je 0x300ca6a4
mov eax, dword [esi + 8]
push 0
push dword [eax]
call edi
mov eax, dword [esi + 8]
push 8
push dword [eax]
call edi
mov eax, dword [0x301e4524]
cmp esi, dword [eax + 0x10c]
je 0x300ca6b8
mov eax, dword [0x301e4524]
jmp 0x300ca674
pop edi
push 1
push dword [0x301dec14]
call fcn.30052d01
mov esi, 0x301de6d8
push 2
push dword [esi]
call fcn.30052d01
add esi, 4
cmp esi, 0x301de6e8
jl 0x300ca6cb
pop esi
ret 4

Function at 0x300cabbe
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x300cac36
mov eax, dword [esp + 0x10]
test eax, eax
je 0x300cabe9
test byte [0x301e4955], 4
je 0x300cabe9
mov eax, dword [esp + 8]
push 1
push edi
push eax
call fcn.300ca9df
pop edi
ret 0xc
test eax, eax
mov ecx, dword [0x301e88c4]
je 0x300cac02
mov ecx, dword [0x301e3f8c]
sub ecx, dword [0x301e7660]
and ecx, 0xf
push esi
mov esi, dword [esp + 0xc]
lea esp, [esp]
mov al, byte [ecx + 0x301e7610]
xor al, byte [esi]
add ecx, 1
mov dl, al
add al, al
add al, al
shr dl, 5
add al, al
or dl, al
mov byte [esi], dl
add esi, 1
and ecx, 0xf
sub edi, 1
jne 0x300cac0a
mov dword [0x301e88c4], ecx
pop esi
pop edi
ret 0xc