joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ad70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d360
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x43e020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00410204
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0040efd0
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov dword [eax], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [eax + 0x38], 0
mov dword [eax + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x410d29
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x410d68
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x410d68
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x410d68
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x410d68
cmp dword [ecx + 0x74], 0xe
jbe 0x410d68
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41cdfc
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x431af0
push 0x431ae8
push str.FlsAlloc
push 0x1e
call fcn.0041cc69
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ce30
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e168]
call esi
jmp 0x41ce36
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41ce7a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x431b00
push 0x431af8
push str.FlsGetValue
push 0x20
call fcn.0041cc69
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ceb1
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e168]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4229f3
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x43e020]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x422a3e
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00422b92
test al, al
jne 0x422a38
sub edx, 2
cmp edx, edi
jne 0x422a1e
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x422a60
lea eax, [edi + 2]
cmp edx, eax
je 0x422a60
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0042293f
add esp, 0x10
jmp 0x422b5a
push esi
lea ecx, [ebp - 0x255]
call fcn.00422b92
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x422aa3
push dword [ebp - 0x25c]
jmp 0x422a50
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x422ae0
cmp word [ebp - 0x226], 0
je 0x422b01
cmp word [ebp - 0x226], ax
jne 0x422ae0
cmp word [ebp - 0x224], 0
je 0x422b01
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0042293f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x422b4d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x422aba
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x422b35
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x422b5a
push 0x42276f
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0042a720
add esp, 0x10
jmp 0x422b2a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040fe0e
leave
ret
Function at 0x423465
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x423502
push ebx
push esi
call fcn.0042342e
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0042253b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4234af
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x423501
push edi
push eax
call fcn.0041d722
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4234cf
call fcn.0041c330
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x423500
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042253b
add esp, 0x20
test eax, eax
jne 0x4234ee
push edi
call fcn.0041c330
jmp 0x4234f6
push ebx
call fcn.0041c330
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x423505
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x423516
pop esi
ret
push ebx
push edi
push esi
call fcn.0042342e
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0041d722
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x42353e
push ebx
push esi
push edi
call fcn.00411650
add esp, 0xc
push 0
call fcn.0041c330
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x423c8a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004237b1
Function at 0x42c200
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42c22d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42c22d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10048b65
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
jne 0x10048b7f
xor esi, esi
jmp 0x10048bad
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.10098bd0
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 4], edi
jne 0x10048bea
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10048bd5
call esi
mov esi, eax
jmp 0x10048c7f
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x10048c7f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x10048c1b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x10048c2e
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x10048c76
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
mov dword [ebp + 8], edi
jne 0x10048c32
jmp 0x10048bfd
call esi
jmp 0x10048c74
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov eax, dword [ebp + 8]
cmp byte [esi + eax], bl
je 0x10048c68
lea eax, [esi + 1]
add eax, 3
and al, 0xfc
call fcn.10098bd0
lea eax, [esi + 1]
mov edi, esp
push eax
push dword [ebp + 8]
push edi
call fcn.10098320
add esp, 0xc
mov byte [edi + esi], bl
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push edi
call fcn.10048ce6
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea esp, [ebp - 0x18]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1004969c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
xor esi, esi
lea ecx, [ebp - 4]
push dword [ebx]
mov dword [ebp - 4], esi
call fcn.1004965e
mov edi, eax
cmp edi, esi
je 0x100496dc
cmp dword [ebp - 4], esi
je 0x100496d5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x10049779
lea eax, [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 8], pe_nt_image_headers32
push eax
push esi
push dword [ebp - 4]
call edi
test eax, eax
jne 0x1004974d
lea eax, [ebp - 0x114]
lea ecx, [ebp - 4]
push eax
call fcn.1004969c
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x1004973a
lea eax, [ebp - 0x14]
mov dword [ebp - 8], pe_nt_image_headers32
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push dword [ebp - 4]
jmp 0x100496ff
cmp dword [ebp - 4], esi
je 0x10049748
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
jmp 0x10049779
cmp dword [ebp - 4], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x10049760
push dword [ebp - 4]
call edi
mov dword [ebp - 4], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 4], esi
mov ebx, eax
je 0x10049777
push dword [ebp - 4]
call edi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10049780
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.10098bd0
push ebx
push esi
lea eax, [ebp - 0x2014]
push edi
mov esi, ecx
push eax
mov dword [ebp - 0x14], esi
call fcn.10048e3f
xor edi, edi
cmp eax, edi
jl 0x10049938
lea eax, [ebp - 0xa]
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.10049945
pop ecx
test eax, eax
pop ecx
jne 0x100497cb
mov eax, 0x80020009
jmp 0x10049938
mov ecx, esi
call fcn.10048e17
lea eax, [ebp - 0x1014]
mov ecx, esi
push eax
call fcn.10048e3f
cmp eax, edi
jl 0x10049938
movzx eax, word [ebp - 0xa]
sub eax, 8
je 0x10049900
sub eax, 9
je 0x10049865
dec eax
dec eax
jne 0x10049927
lea eax, [ebp - 0x1014]
test eax, eax
jne 0x10049810
xor ebx, ebx
jmp 0x10049845
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.10098bd0
mov ebx, esp
push esi
push ebx
lea eax, [ebp - 0x1014]
push 0xffffffffffffffff
push eax
push edi
push edi
mov word [ebx], di
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x10]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
jmp 0x10049918
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 8], eax
jne 0x100498a1
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.10098bd0
mov dword [ebp - 4], esp
push ebx
push edi
push dword [ebp - 4]
call fcn.100982c0
add esp, 0xc
cmp dword [ebp - 4], edi
jne 0x100498ab
mov eax, 0x80004005
jmp 0x10049938
cmp dword [ebp - 8], 0
jle 0x100498e5
mov ecx, dword [ebp - 4]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov al, byte [ebp + edi - 0x1014]
push eax
call fcn.100499cc
pop ecx
mov ecx, edi
push 4
and ecx, 1
shl ecx, 2
mov edx, ecx
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 8]
jl 0x100498b1
mov eax, dword [ebp + 8]
push ebx
push dword [ebp - 4]
mov eax, dword [eax]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edi, edi
jmp 0x10049927
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x1014]
push eax
push 1
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.10048e3f
cmp eax, edi
jl 0x10049938
xor eax, eax
lea esp, [ebp - 0x2020]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1004a994
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [edi]
mov dword [ebp - 4], esi
test eax, eax
je 0x1004a9b3
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
and dword [edi], 0
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jne 0x1004a9c6
push 0x100b46a8
jmp 0x1004aa21
lea esi, [eax + 1]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.10098bd0
mov eax, dword [ebp - 4]
mov ebx, esp
push esi
push ebx
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x1004aa32
test ebx, ebx
jne 0x1004a9f0
xor eax, eax
jmp 0x1004aa20
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.10098bd0
mov edi, esp
push esi
push edi
xor eax, eax
push 0xffffffffffffffff
push ebx
push eax
push eax
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, edi
mov edi, dword [ebp + 8]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
xor ecx, ecx
mov dword [edi], eax
test eax, eax
setne cl
mov eax, ecx
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1004d90a
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
add ecx, 0xffffff7c
neg esi
sbb esi, esi
and esi, ecx
mov ecx, dword [esi + 0x90]
lea eax, [esi + 0x90]
push eax
call dword [ecx + 0x18]
mov esi, dword [esi + 0x4c]
test esi, esi
je 0x1004d939
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 8
Function at 0x1005837c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
xor bl, bl
call fcn.100552f9
mov esi, eax
call dword [sym.imp.USER32.dll_GetFocus]
cmp esi, eax
jne 0x100583a1
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setl bl
mov al, bl
pop esi
pop ebx
ret 4

Function at 0x100583a8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
xor bl, bl
call fcn.100552f9
mov esi, eax
call dword [sym.imp.USER32.dll_GetFocus]
cmp esi, eax
jne 0x100583cd
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_GetKeyState]
mov bx, ax
and bl, 1
mov al, bl
pop esi
pop ebx
ret 4

Function at 0x1005c2c4
Capabilities:
Identify system language via api

Disassembly:
push esi
call fcn.1005c017
mov esi, eax
call fcn.1005c09e
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push str.point
push 0x100abad0
push 0x100a85c8
push 0x48
push 1
call esi
push eax
push 0
call esi
push eax
call fcn.1005c1e8
push eax
push str.M_sR_dx_dDP_dCOL_sAR_sI_sOS_sL_s
push dword [esp + 0x30]
call fcn.10011e00
add esp, 0x2c
pop esi
ret

Function at 0x1005c667
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
ret

Function at 0x1005c6ac
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1005c6c9
shr eax, 4
and al, 1
jmp 0x1005c73d
push ebx
push edi
push esi
call fcn.10098240
mov ebx, eax
xor edi, edi
cmp ebx, edi
pop ecx
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
jle 0x1005c709
cmp byte [edi + esi], 0x5c
jne 0x1005c6f8
test edi, edi
je 0x1005c6f8
push 0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [edi + esi]
lea ecx, [ebp - 0xc]
push eax
call fcn.10011731
inc edi
cmp edi, ebx
jl 0x1005c6e3
test ebx, ebx
je 0x1005c71d
cmp byte [ebx + esi - 1], 0x5c
je 0x1005c71d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov ebx, eax
shr ebx, 4
mov ecx, 0x100b4348
and bl, 1
call fcn.100137e9
mov al, bl
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1005c7d9
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push ebx
lea eax, [ebp + 8]
push dword [ebp + 8]
push eax
call fcn.1005c740
add esp, 0xc
test al, al
je 0x1005c80d
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0xc]
push dword [ebp + 8]
mov bl, 1
mov dword [ecx], eax
call fcn.1005c7c9
pop ecx
mov al, bl
pop ebx
pop ebp
ret
Function at 0x1005c812
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push SysReAllocString
mov dword [ebp - 8], 0x400
mov dword [ebp - 0xc], 2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x1005c888
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push 0x100abaf8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x1005c87f
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x40c]
push eax
call fcn.100118ce
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret
Function at 0x1005e5a1
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
push 2
mov esi, ecx
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov ebx, eax
test ebx, ebx
jl 0x1005e601
cmp ebx, 0xff
jg 0x1005e601
cmp ebx, 0x7f
jg 0x1005e5fd
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x1005e5ee
cmp byte [esi + 9], 0
je 0x1005e5fd
push ebx
call fcn.10011eff
test al, al
pop ecx
jne 0x1005e5f4
push ebx
mov ecx, esi
call fcn.1005e4e3
movzx ebx, al
jmp 0x1005e5fd
cmp byte [esi + 9], 0
jne 0x1005e5e1
movzx eax, byte [ebx + 0x1009a5b4]
xor ebx, eax
mov al, bl
jmp 0x1005e605
mov al, byte [esp + 0xc]
pop esi
pop ebx
ret 4

Function at 0x1005e76c
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push str.MacromediaMutexGamma
lea ecx, [ebp - 0x18]
call fcn.1001159a
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.1001159a
lea ecx, [ebp - 0xc]
call fcn.100118b5
push dword [ebp - 0xc]
lea ecx, [ebp - 0x18]
call fcn.100119c9
push dword [ebp - 0x18]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
push esi
sete bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
mov esi, 0x100b4348
mov ecx, esi
call fcn.100137e9
push dword [ebp - 0x18]
mov ecx, esi
call fcn.100137e9
mov al, bl
pop esi
pop ebx
leave
ret

Function at 0x1005e813
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
push edi
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x5c]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x60], 0x44
push eax
call fcn.1005e66d
pop ecx
mov eax, dword [eax]
pop ecx
xor esi, esi
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x60]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0xc]
mov ecx, 0x100b4348
mov edi, eax
call fcn.100137e9
cmp edi, esi
je 0x1005e886
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x18]
call esi
mov al, 1
jmp 0x1005e888
xor al, al
pop edi
pop esi
leave
ret
Function at 0x1005e88c
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
lea eax, [ebp - 0x18]
push dword [ebp + 8]
mov dword [ebp - 4], 3
push eax
call fcn.1005e66d
mov eax, dword [ebp - 0x18]
push eax
mov dword [ebp - 0xc], eax
call fcn.1005e992
add esp, 0xc
xor esi, esi
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x1005e976
mov esi, dword [ebp + 0xc]
push ebx
push edi
cmp byte [esi], 0x54
je 0x1005e8fb
cmp byte [esi + 1], 0x72
je 0x1005e8fb
cmp byte [esi + 2], 0x6f
je 0x1005e8fb
cmp byte [esi + 3], 0x79
je 0x1005e8fb
mov dword [ebp - 4], 6
jmp 0x1005e965
mov edi, dword [ebp + 0x10]
mov eax, dword [esi + 4]
mov dword [ebp + 8], eax
lea ecx, [edi + edi*4]
shl ecx, 1
cmp eax, ecx
jae 0x1005e965
push eax
call fcn.1005bf24
mov ebx, eax
pop ecx
test ebx, ebx
je 0x1005e95e
add edi, 0xfffffff8
add esi, 8
push edi
lea eax, [ebp + 8]
push esi
push eax
push ebx
call fcn.10067a22
add esp, 0x10
test eax, eax
jne 0x1005e955
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1005e955
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 8]
jne 0x1005e955
and dword [ebp - 4], 0
push ebx
call fcn.1005bf2f
pop ecx
jmp 0x1005e965
mov dword [ebp - 4], 4
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
pop edi
pop ebx
je 0x1005e97f
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x18]
mov ecx, 0x100b4348
call fcn.100137e9
mov eax, dword [ebp - 4]
pop esi
leave
ret

Function at 0x1005e992
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, dword [ebp + 8]
cmp byte [esi], 0
je 0x1005e9d1
push edi
lea edi, [ebp - 0x104]
sub edi, esi
cmp byte [esi], 0x5c
jne 0x1005e9c5
and byte [edi + esi], 0
lea eax, [ebp - 0x104]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [esi]
mov byte [edi + esi], al
inc esi
cmp byte [esi], 0
jne 0x1005e9ad
pop edi
pop esi
leave
ret