joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408373
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x435a94]
jne 0x40837d
repz ret
jmp fcn.0040ab37

Function at 0x408e2e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406e25
and dword [ebp - 4], 0
cmp dword [0x436f74], 0
mov ebx, eax
jne 0x408edf
push 0x401a7c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408f90
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401a70
push edi
call esi
test eax, eax
je 0x408f90
push eax
call fcn.00406db3
mov dword [esp], 0x401a60
push edi
mov dword [0x436f74], eax
call esi
push eax
call fcn.00406db3
mov dword [esp], 0x401a4c
push edi
mov dword [0x436f78], eax
call esi
push eax
call fcn.00406db3
mov dword [esp], 0x401a30
push edi
mov dword [0x436f7c], eax
call esi
push eax
call fcn.00406db3
pop ecx
mov dword [0x436f84], eax
test eax, eax
je 0x408edf
push 0x401a18
push edi
call esi
push eax
call fcn.00406db3
pop ecx
mov dword [0x436f80], eax
mov eax, dword [0x436f80]
cmp eax, ebx
je 0x408f37
cmp dword [0x436f84], ebx
je 0x408f37
push eax
call fcn.00406e2e
push dword [0x436f84]
mov esi, eax
call fcn.00406e2e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408f37
test edi, edi
je 0x408f37
call esi
test eax, eax
je 0x408f2e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408f2e
test byte [ebp - 0xc], 1
jne 0x408f37
or dword [ebp + 0x10], 0x200000
jmp 0x408f70
mov eax, dword [0x436f78]
cmp eax, ebx
je 0x408f70
push eax
call fcn.00406e2e
pop ecx
test eax, eax
je 0x408f70
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408f70
mov eax, dword [0x436f7c]
cmp eax, ebx
je 0x408f70
push eax
call fcn.00406e2e
pop ecx
test eax, eax
je 0x408f70
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x436f74]
call fcn.00406e2e
pop ecx
test eax, eax
je 0x408f90
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408f92
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402ad5
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
xor ebx, ebx
push 8
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402b47
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402b20
cmp dword [ebp + 0x10], ebx
jne 0x402b4e
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402ad5
test eax, eax
jne 0x402b32
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402b07
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x402b47
Function at 0x405253
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x42c8b0], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x405277
test al, 0x10
jne 0x40527a
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x42c8b0
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4052a5
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x40530d
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
call fcn.004055ae
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x405343
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42f4c8], eax
jmp 0x4054c8
mov dword [ebp + 8], ecx
push edi
and dword [ebp + 8], 1
je 0x40535e
test eax, eax
je 0x405473
test cl, 2
je 0x405473
mov esi, 0x42b8b0
push ebx
push esi
call fcn.004059db
cmp dword [ebp + 8], 0
je 0x40537d
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405383
push ebx
call fcn.00405515
push 0x409010
push ebx
call sub.KERNEL32.dll_lstrcatA
push ebx
call sub.KERNEL32.dll_lstrlenA
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x405469
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.004054f9
cmp byte [eax], 0
je 0x4053d4
cmp byte [ebp - 0x18], 0
je 0x4053d4
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x4053ea
mov al, byte [esi + 1]
test al, al
je 0x405448
cmp al, 0x2e
jne 0x4053ea
cmp byte [esi + 2], 0
je 0x405448
push esi
push edi
call fcn.004059db
test byte [ebp - 0x148], 0x10
je 0x40540f
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405448
push dword [ebp + 0xc]
push ebx
call fcn.0040530d
jmp 0x405448
push ebx
call fcn.00405692
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405440
test byte [ebp + 0xc], 4
je 0x405438
push ebx
push 0xfffffffffffffff1
call fcn.00404d6f
push 0
push ebx
call fcn.00405728
jmp 0x405448
inc dword [0x42f4c8]
jmp 0x405448
push ebx
push 0xfffffffffffffff2
call fcn.00404d6f
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4053b2
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405473
and byte [edi - 1], 0
xor esi, esi
pop edi
cmp dword [ebp + 8], esi
je 0x4054c8
cmp dword [ebp - 8], esi
jne 0x405488
inc dword [0x42f4c8]
jmp 0x4054c8
push ebx
call fcn.00405cb0
test eax, eax
je 0x4054c8
push ebx
call fcn.004054ce
push ebx
call fcn.00405692
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4054c0
test byte [ebp + 0xc], 4
je 0x405480
push ebx
push 0xfffffffffffffff1
call fcn.00404d6f
push esi
push ebx
call fcn.00405728
jmp 0x4054c8
push ebx
push 0xffffffffffffffe5
call fcn.00404d6f
pop esi
pop ebx
leave
ret 8
Function at 0x4055ae
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42bcb0
push esi
call fcn.004059db
push esi
call fcn.00405561
mov edi, eax
test edi, edi
jne 0x4055cf
xor eax, eax
jmp 0x405621
push edi
call fcn.00405c17
test byte [0x42f450], 0x80
je 0x4055e8
mov al, byte [edi]
test al, al
je 0x4055cb
cmp al, 0x5c
je 0x4055cb
sub edi, esi
jmp 0x405600
call fcn.00405cb0
test eax, eax
je 0x4055fa
test byte [eax], 0x10
je 0x4055cb
push esi
call fcn.00405515
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4055ec
call fcn.004054ce
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405692
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4056ae
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4056b1
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x4056e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405724
test edi, edi
jne 0x4056eb
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x40571e
Function at 0x405728
Capabilities:
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push str.MoveFileExA
push str.KERNEL32.dll
call fcn.00405cee
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405754
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405893
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x42ca38], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x42ca38
je 0x405798
push 1
push 0
push esi
call fcn.004056b1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405899
cmp eax, edi
jg 0x405899
mov esi, 0x42c4b0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405899
cmp eax, edi
jg 0x405899
push esi
push ebp
push str._s_s_r_n
push 0x42c0b0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call sub.KERNEL32.dll_lstrcatA
push 4
push 0xc0000000
push esi
call fcn.004056b1
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405893
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40588c
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40588c
cmp edi, dword [esp + 0x18]
jne 0x40588c
push str._Rename__r_n
push esi
call fcn.00405626
test eax, eax
jne 0x4058a0
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.004059db
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x42c0b0
push eax
call fcn.00405672
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x42f4d0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409304
push eax
call fcn.00405626
test eax, eax
je 0x405857
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x4058c7
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x4058bc
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405859
Function at 0x4058cf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405933
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405922
cmp dword [ebp + 0x14], 1
je 0x405924
cmp dword [ebp + 0x14], 2
je 0x405924
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4059fd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
jge 0x405a1e
mov ecx, dword [0x42ec1c]
lea eax, [ebx*4 + 4]
sub ecx, eax
mov ebx, dword [ecx]
mov eax, dword [0x42f478]
mov ecx, dword [ebp + 8]
add ebx, eax
mov eax, 0x42e3e0
sub ecx, eax
mov edi, eax
cmp ecx, 0x800
jae 0x405bf1
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
jmp 0x405bf1
mov edx, edi
sub edx, eax
cmp edx, 0x400
jge 0x405bfe
inc ebx
cmp cl, 0xfc
jbe 0x405be4
movsx eax, byte [ebx + 1]
movsx ecx, byte [ebx]
mov esi, eax
mov edx, ecx
and esi, 0x7f
and edx, 0x7f
shl esi, 7
or esi, edx
mov edx, 0x8000
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], eax
or ecx, edx
or eax, edx
inc ebx
mov dword [ebp - 0x14], ecx
inc ebx
cmp byte [ebp + 0xf], 0xfe
mov dword [ebp - 0xc], eax
jne 0x405b8f
and dword [ebp + 0xc], 0
and byte [edi], 0
push 4
pop esi
cmp dword [ebp - 0x10], esi
jne 0x405ab2
mov dword [ebp + 0xc], str.MicrosoftInternet_ExplorerQuick_Launch
jmp 0x405b2a
mov eax, dword [ebp - 0x18]
cmp eax, 0x2b
jne 0x405ad1
push edi
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.004058cf
jmp 0x405b25
cmp eax, 0x26
jne 0x405b01
push edi
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.004058cf
cmp byte [edi], 0
jne 0x405b87
push str.C:Program_Files
push edi
call fcn.004059db
jmp 0x405b25
cmp eax, 0x25
jne 0x405b14
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x405b25
cmp eax, 0x24
jne 0x405b2a
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [edi], 0
jne 0x405b87
cmp dword [0x42f4c4], 0
jne 0x405b36
push 2
pop esi
lea eax, [ebp - 4]
dec esi
push eax
push dword [ebp + esi*4 - 0x18]
push dword [0x42f444]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405b6c
push edi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call fcn.00405228
cmp dword [ebp - 8], 0
jne 0x405b73
jmp 0x405b6f
and byte [edi], 0
test esi, esi
jne 0x405b36
cmp byte [edi], 0
je 0x405b87
cmp dword [ebp + 0xc], 0
je 0x405b87
push dword [ebp + 0xc]
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call fcn.00405c17
jmp 0x405bd5
cmp byte [ebp + 0xf], 0xfd
jne 0x405bc3
cmp esi, 0x1b
jne 0x405ba8
push dword [0x42f444]
push edi
call fcn.00405939
jmp 0x405bb9
mov eax, esi
shl eax, 0xa
add eax, section..ndata
push eax
push edi
call fcn.004059db
add esi, 0xffffffeb
cmp esi, 6
jae 0x405bd5
jmp 0x405b87
cmp byte [ebp + 0xf], 0xff
jne 0x405bd5
or eax, 0xffffffff
sub eax, esi
push eax
push edi
call fcn.004059fd
push edi
call sub.KERNEL32.dll_lstrlenA
add edi, eax
mov eax, 0x42e3e0
jmp 0x405bf1
jne 0x405bee
mov cl, byte [ebx]
mov byte [edi], cl
inc edi
inc ebx
jmp 0x405bf1
mov byte [edi], cl
inc edi
mov cl, byte [ebx]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x405a49
and byte [edi], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x405c13
push eax
push dword [ebp + 8]
call fcn.004059db
leave
ret 8
Function at 0x405d4b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42ce3c], 0
push esi
jne 0x405d82
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d5c
mov dword [ecx*4 + 0x42ce38], eax
inc ecx
cmp ecx, 0x100
jl 0x405d57
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405db3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42ce38]
xor eax, esi
inc ecx
dec edx
jne 0x405d95
pop edi
not eax
pop esi
ret 0xc
Function at 0x40123f
Capabilities:
Create pipe
Get thread local storage value
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0040c2a0
mov eax, dword [0x245a25c]
mov ecx, dword [0x2459ce8]
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x401333
mov edi, ecx
mov ebx, eax
cmp dword [0x245a25c], 0x959
jne 0x401323
push esi
lea eax, [ebp - 0xc00]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push str.nitocobadewepoyalovacapedekakor
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push esi
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessVersion]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessShutdownParameters]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea eax, [ebp - 0x800]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push esi
lea eax, [ebp - 0x1000]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push str.yabufipafu
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
call fcn.00401007
add edi, 8
dec ebx
jne 0x40126b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405940
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
sub esp, 0x10
xor ecx, ecx
test edx, edx
je 0x405a15
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
cmp edx, 0x20
jb 0x4059f3
lea eax, [ebx - 1]
add eax, edx
cmp esi, eax
ja 0x40597a
lea eax, [esi - 1]
add eax, edx
cmp eax, ebx
jae 0x4059f3
lea eax, [edi - 1]
add eax, edx
cmp esi, eax
ja 0x40598c
lea eax, [esi - 1]
add eax, edx
cmp eax, edi
jae 0x4059f3
mov eax, edx
mov edx, edi
sub edx, ebx
and eax, 0xffffffe0
mov dword [ebp - 4], edx
mov edx, esi
sub edx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edx
mov eax, ebx
mov ebx, dword [ebp - 8]
mov edx, edi
mov edi, dword [ebp - 4]
sub edx, esi
mov dword [ebp - 0xc], edx
lea edx, [esi + 0x10]
movups xmm0, xmmword [eax]
mov esi, dword [ebp - 0xc]
add ecx, 0x20
lea eax, [eax + 0x20]
lea edx, [edx + 0x20]
movups xmm1, xmmword [edi + eax - 0x20]
pxor xmm1, xmm0
movups xmmword [ebx + eax - 0x20], xmm1
movups xmm1, xmmword [esi + edx - 0x20]
mov esi, dword [ebp + 0x10]
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [edx - 0x20], xmm1
cmp ecx, dword [ebp - 0x10]
jb 0x4059b4
mov edx, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
cmp ecx, edx
jae 0x405a12
sub edi, ebx
lea eax, [ecx + ebx]
sub esi, ebx
sub edx, ecx
mov cl, byte [eax + edi]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
mov byte [eax + esi - 1], cl
sub edx, 1
jne 0x405a00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x574d00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xd72e7a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0xdbd0c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.00cf91e7
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x574dc0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.00d4cbcd
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0xdb9b00
push eax
call fcn.00d4b094
push edi
push esi
call fcn.00cf985e
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00cfa7a1
mov esp, ebp
pop ebp
ret 4
Function at 0x579ab0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0xdbd0c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call edi
test al, 0x80
mov eax, 1
push 0x12
cmovne esi, eax
call edi
test al, al
jns 0x579afc
or esi, 2
push 0x10
call edi
test al, al
jns 0x579b07
or esi, 4
push 0x5b
call edi
test al, al
jns 0x579b12
or esi, 8
push 0x5c
call edi
test al, al
jns 0x579b1d
or esi, 8
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], eax
test ebx, 0x1000000
je 0x579b45
cmp ecx, 0xd
jne 0x579b65
mov dword [ebp - 0x14], 0x23
jmp 0x579be7
xor eax, eax
mov edx, 0x24
nop dword [eax]
cmp edx, ecx
je 0x579bdd
mov edx, dword [eax*8 + 0xd7d460]
inc eax
cmp edx, 0x2c
jne 0x579b50
xor eax, eax
mov edx, 0x1b
nop dword [eax]
cmp edx, ecx
je 0x579bd4
mov edx, dword [eax*8 + 0xd7d4c0]
inc eax
cmp edx, 0x2c
jne 0x579b70
xor eax, eax
mov edx, 0x11
cmp edx, ecx
je 0x579bc1
mov edx, dword [eax*8 + 0xd7d5a0]
inc eax
cmp edx, 0x2c
jne 0x579b88
lea eax, [ebp - 0x18]
sar ebx, 0x10
push eax
movzx eax, bl
push eax
call fcn.0056ad30
add esp, 8
test eax, eax
jne 0x579be7
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00cfa7a1
mov esp, ebp
pop ebp
ret
mov eax, dword [eax*8 + 0xd7d59c]
mov dword [ebp - 0x10], eax
not eax
and eax, esi
mov dword [ebp - 0xc], eax
jmp 0x579be7
mov eax, dword [eax*8 + 0xd7d4bc]
jmp 0x579be4
mov eax, dword [eax*8 + 0xd7d45c]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
push edx
push ecx
mov eax, dword [ecx + 0x64]
push eax
mov eax, dword [eax + 0x10]
call eax
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00cfa7a1
mov esp, ebp
pop ebp
ret