joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c4ee8
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004c507f
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4c5057
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4c5057
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4c500c
jg 0x4c4f44
test eax, eax
je 0x4c5002
push 1
push 0x1000
call fcn.004ba91e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4c4f67
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4c4ff9
push 0x8000
push ebx
call fcn.004b6824
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4c4f90
jg 0x4c4f8b
cmp ecx, 0x1000
jb 0x4c4f90
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004bfd65
add esp, 0x10
cmp eax, 0xffffffff
je 0x4c4fd5
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4c4f8b
jl 0x4c4fbc
test ecx, ecx
jne 0x4c4f7d
push dword [ebp - 0xc]
push ebx
call fcn.004b6824
push esi
call fcn.004ba0bb
add esp, 0xc
xor ebx, ebx
jmp 0x4c5065
cmp byte [edi + 0x24], 0
je 0x4c4fec
cmp dword [edi + 0x20], 5
jne 0x4c4fec
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4c4ff7
mov ebx, dword [edi + 0x18]
jmp 0x4c4ff9
xor ebx, ebx
push esi
call fcn.004ba0bb
pop ecx
jmp 0x4c5065
test ecx, ecx
jg 0x4c4fce
jl 0x4c500c
test eax, eax
jae 0x4c4fce
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004bf33e
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4c502c
cmp byte [edi + 0x1c], 0
je 0x4c4fce
jmp 0x4c505d
push ebx
call fcn.004bda0c
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4c4fce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4c5065
cmp byte [edi + 0x1c], 0
je 0x4c5062
mov ebx, dword [edi + 0x18]
jmp 0x4c5065
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004bf33e
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4042b0
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14cc
call fcn.0040b1b0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x44c598]
push ebx
push esi
push edi
mov edi, dword [eax + 4]
mov eax, dword [0x44c59c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0x9e3779b9
mov dword [ebp - 0x1c], edx
call fcn.004042a0
mov ecx, dword [0x44c5a0]
mov edx, dword [0x44c5a4]
add dword [ebp - 8], 0x23f
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrencyFormatA]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], 0x20
jmp 0x404320
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov esi, dword [ebp - 0xc]
mov eax, dword [0x453d1c]
shl esi, 4
add esi, dword [ebp - 0x24]
cmp eax, 0xfa9
jne 0x40434c
mov dword [0x453d18], 0xedeb2e40
jmp 0x404367
cmp eax, 0x3eb
jne 0x404367
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [0x4537a8], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x453d1c], 0x9e6
mov dword [0x453d14], 0xf4ea3dee
jne 0x4043a2
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x453d1c], 0x213
jne 0x40444a
push 0
lea eax, [ebp - 0x4cc]
push eax
push 0
push 0
push 0
push 0
call ebx
lea ecx, [ebp - 0xccc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x14cc]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommBreak]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
lea ecx, [ebp - 0x8cc]
push ecx
push 0
push 0x403f08
push 0x403f4c
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea edx, [ebp - 0x30]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub edi, dword [ebp - 4]
cmp dword [0x453d1c], 0xc
jne 0x40445e
push 0
call dword [sym.imp.KERNEL32.dll_GlobalWire]
mov edx, dword [ebp - 8]
mov eax, edi
shr eax, 5
lea ecx, [edx + edi]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, edi
shl edx, 4
add edx, dword [ebp - 0x1c]
xor edx, dword [ebp - 4]
xor edx, ecx
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
sub dword [ebp - 8], eax
sub dword [ebp - 0x14], 1
jne 0x404320
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4044b0
Capabilities:
Connect pipe
Create process on windows
Create reverse shell
Get thread local storage value
Read pipe
Set environment variable
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1808
call fcn.0040b1b0
mov eax, dword [0x453d1c]
mov ecx, dword [0x4537ac]
shr eax, 3
test eax, eax
jbe 0x4045cc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrencyFormatA]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x453d1c], 0x959
jne 0x4045b2
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
push 0
push 0
call ebx
push 0
lea ecx, [ebp - 0xc08]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push 0
push 0
push 0
call esi
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [ebp - 0x1008]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push 0
lea eax, [ebp - 0x1808]
push eax
push 0
call esi
mov ecx, dword [ebp - 4]
push ecx
call fcn.004042b0
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x4044f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407f60
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44b7a8]
jne 0x407f6a
repz ret
jmp fcn.0040d0ee

Function at 0x40cd15
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.004091fb
and dword [ebp - 4], 0
cmp dword [0x451798], 0
mov ebx, eax
jne 0x40cdc6
push 0x401cb4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40ce77
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401ca8
push edi
call esi
test eax, eax
je 0x40ce77
push eax
call fcn.00409189
mov dword [esp], 0x401c98
push edi
mov dword [0x451798], eax
call esi
push eax
call fcn.00409189
mov dword [esp], 0x401c84
push edi
mov dword [0x45179c], eax
call esi
push eax
call fcn.00409189
mov dword [esp], 0x401c68
push edi
mov dword [0x4517a0], eax
call esi
push eax
call fcn.00409189
pop ecx
mov dword [0x4517a8], eax
test eax, eax
je 0x40cdc6
push 0x401c50
push edi
call esi
push eax
call fcn.00409189
pop ecx
mov dword [0x4517a4], eax
mov eax, dword [0x4517a4]
cmp eax, ebx
je 0x40ce1e
cmp dword [0x4517a8], ebx
je 0x40ce1e
push eax
call fcn.00409204
push dword [0x4517a8]
mov esi, eax
call fcn.00409204
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ce1e
test edi, edi
je 0x40ce1e
call esi
test eax, eax
je 0x40ce15
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ce15
test byte [ebp - 0xc], 1
jne 0x40ce1e
or dword [ebp + 0x10], 0x200000
jmp 0x40ce57
mov eax, dword [0x45179c]
cmp eax, ebx
je 0x40ce57
push eax
call fcn.00409204
pop ecx
test eax, eax
je 0x40ce57
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ce57
mov eax, dword [0x4517a0]
cmp eax, ebx
je 0x40ce57
push eax
call fcn.00409204
pop ecx
test eax, eax
je 0x40ce57
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x451798]
call fcn.00409204
pop ecx
test eax, eax
je 0x40ce77
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ce79
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407281
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x461124], 0
jne 0x4072bf
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x407295
mov dword [ecx*4 + 0x461120], eax
inc ecx
cmp ecx, 0x100
jl 0x407290
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4072ec
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x461120]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4072cd
not eax
pop ebp
ret 0xc

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x1b774b29
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
mov ecx, 0x7ed25ebc
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e06c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x30096d71
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x30096de0
mov eax, dword [ebp + 8]
test eax, 3
je 0x30096da2
cmp word [eax], 0
je 0x30096d9b
lea eax, [eax + 2]
test eax, 3
jne 0x30096d89
jmp 0x30096da2
sub eax, dword [ebp + 8]
shr eax, 1
jmp 0x30096ddd
mov edx, dword [eax]
lea eax, [eax + 4]
mov ecx, edx
sub edx, 0x10001
xor edx, ecx
and edx, 0x80008000
je 0x30096da2
sub eax, dword [ebp + 8]
shr eax, 1
test cx, cx
lea eax, [eax - 2]
je 0x30096ddd
test ecx, 0xffff0000
lea eax, [eax + 1]
je 0x30096ddd
lea eax, [eax*2 + 2]
add eax, dword [ebp + 8]
jmp 0x30096da2
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
leave
ret 4

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x20002300
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x114
xor ecx, ecx
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
push esi
cmp ebx, ecx
push edi
je 0x2000240d
mov eax, dword [ebx + 0x3c]
mov ebp, dword [esp + 0x12c]
add eax, ebx
mov dword [esp + 0x10], ecx
mov esi, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
add esi, ebx
mov dword [esp + 0x1c], eax
test ebp, 0x80000000
jne 0x200023ab
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
add eax, ebx
cmp edx, ecx
mov dword [esp + 0x18], ecx
jbe 0x200023c9
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
push 0
mov edi, dword [ecx]
add edi, ebx
push edi
call fcn.20001150
add esp, 4
push eax
push edi
call fcn.20009e10
and eax, 0x7fffffff
add esp, 0xc
cmp eax, ebp
je 0x20002396
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x18]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
jb 0x20002353
jmp 0x200023c9
mov edx, dword [esi + 0x24]
mov eax, dword [esp + 0x18]
lea ecx, [edx + eax*2]
mov dx, word [ecx + ebx]
mov word [esp + 0x10], dx
jmp 0x200023c9
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov eax, ebp
add edx, ecx
and eax, 0xffff
cmp eax, edx
jae 0x2000240d
cmp eax, ecx
jb 0x2000240d
sub bp, cx
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x1c]
and eax, 0xffff
lea edx, [ecx + eax*4]
mov eax, dword [edx + ebx]
add eax, ebx
je 0x2000240f
cmp eax, esi
jb 0x2000240f
mov ecx, dword [esp + 0x1c]
add ecx, esi
cmp eax, ecx
jae 0x2000240f
mov dl, byte [eax]
xor ecx, ecx
test dl, dl
mov esi, eax
je 0x2000240d
lea edx, [esp + 0x20]
sub edx, eax
mov al, byte [esi]
inc ecx
mov byte [edx + esi], al
inc esi
cmp al, 0x2e
je 0x2000241a
cmp byte [esi], 0
jne 0x200023fd
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
test ecx, ecx
jle 0x2000240d
mov byte [esp + ecx + 0x20], 0x64
inc ecx
mov al, 0x6c
lea edx, [esp + 0x20]
mov byte [esp + ecx + 0x20], al
inc ecx
push edx
mov byte [esp + ecx + 0x24], al
mov byte [esp + ecx + 0x25], 0
call fcn.20003110
add esp, 4
lea eax, [esp + 0x20]
push eax
call fcn.20010d60
push 0
push esi
mov edi, eax
call fcn.20001150
add esp, 4
push eax
push esi
call fcn.20009e10
and eax, 0x7fffffff
push eax
push edi
call fcn.20002300
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
Function at 0x200024c0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x24]
push ebx
push edi
mov edi, dword [esp + 0x30]
push 0xf01ff
push edi
mov dword [esp + 0x10], ecx
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ebx, eax
test ebx, ebx
je 0x200025de
lea ecx, [esp + 0x30]
push ecx
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyA]
call dword [0x2001a1cc]
cmp eax, 0x7a
jne 0x200025d7
mov eax, dword [esp + 0x30]
push ebp
push esi
push eax
mov ebp, eax
call fcn.200196d0
add esp, 4
lea edx, [esp + 0x38]
mov esi, eax
push edx
push ebp
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyA]
mov eax, dword [esi]
mov ebp, dword [0x2001a348]
mov dword [edi + 0x2c4], eax
mov ecx, dword [esi + 4]
mov dword [edi + 0x2c0], ecx
mov eax, dword [esi + 0x20]
test eax, eax
je 0x20002555
push 0xc7
lea edx, [edi + 0x64]
push eax
push edx
call ebp
add esp, 0xc
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x2000256b
push 0x1f
push eax
lea eax, [edi + 0x2cc]
push eax
call ebp
add esp, 0xc
mov eax, dword [esi + 0xc]
test eax, eax
je 0x20002584
push 0x103
lea ecx, [edi + 0x302]
push eax
push ecx
call ebp
add esp, 0xc
mov ecx, dword [esp + 0x10]
push edi
push ebx
call fcn.20012300
push esi
call fcn.20019690
mov eax, dword [esp + 0x40]
add esp, 4
test eax, eax
pop esi
pop ebp
je 0x200025c6
lea edx, [esp + 0xc]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x200025c6
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [edi + 0x2c8], eax
mov dword [edi + 0x2bc], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
pop edi
mov al, 1
pop ebx
add esp, 0x20
ret 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
pop edi
xor al, al
pop ebx
add esp, 0x20
ret 0xc
Function at 0x200030d0
Capabilities:
Get disk information

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
lea ecx, [esp]
push eax
push 0x24
push ecx
push 0
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x200030ff
cmp dword [esp + 4], 4
jne 0x200030ff
mov eax, dword [esp + 0x1c]
add esp, 0x24
ret
xor eax, eax
add esp, 0x24
ret
Function at 0x20003820
Capabilities:
Enumerate devices by category

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x20019af0
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push edi
mov edi, dword [esp + 0x34]
xor ebx, ebx
cmp edi, ebx
jge 0x20003859
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
mov dword [esp + 8], ebx
lea eax, [esp + 8]
mov dword [esp + 0x2c], ebx
push eax
push 0x2001ddb8
push 1
push ebx
push 0x2001de48
call dword [0x2001a608]
cmp eax, ebx
je 0x200038a8
mov eax, dword [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
cmp eax, ebx
je 0x200038f2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 8]
lea ecx, [esp + 0x34]
push ebx
push ecx
mov edx, dword [eax]
push 0x2001de38
push eax
mov byte [esp + 0x3c], 1
call dword [edx + 0xc]
cmp eax, ebx
je 0x20003907
mov eax, dword [esp + 0x34]
mov byte [esp + 0x2c], bl
cmp eax, ebx
je 0x200038dc
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
cmp eax, ebx
je 0x200038f2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
mov eax, dword [esp + 0x34]
push esi
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x14]
mov ecx, dword [eax]
push edx
push 1
push eax
xor esi, esi
call dword [ecx + 0xc]
cmp edi, ebx
jl 0x200039c6
push ebp
mov ebp, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x40]
push edx
push 0x2001a880
mov ecx, dword [eax]
push ebx
push ebx
push eax
call dword [ecx + 0x24]
cmp eax, ebx
jl 0x2000399c
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x1c]
push ebx
mov word [esp + 0x20], 8
mov ecx, dword [eax]
push edx
push 0x2002169c
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jne 0x20003992
cmp esi, edi
jne 0x20003987
mov eax, dword [esp + 0x14]
push ebp
push 0x2001dda8
push ebx
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x20]
mov edx, dword [esp + 0x24]
push edx
call dword [0x2001a3dc]
mov eax, dword [esp + 0x40]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x18]
mov ecx, dword [eax]
push edx
push 1
push eax
inc esi
call dword [ecx + 0xc]
cmp esi, edi
jle 0x20003937
pop ebp
mov eax, dword [esp + 0x38]
mov byte [esp + 0x30], bl
cmp eax, ebx
pop esi
je 0x200039d9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
cmp eax, ebx
je 0x200039ef
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0x24]
pop edi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 8
Function at 0x20003b60
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x410
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [esp + 0x418]
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
push 3
push 0
push ecx
push 0x80000002
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
je 0x20003ba6
xor al, al
pop edi
add esp, 0x410
ret
push ebx
push ebp
lea edx, [esp + 0x10]
push esi
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x42c]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x2c], 0x400
mov byte [esp + 0x2b], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
test eax, eax
jne 0x20003cc8
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x42c]
test eax, eax
lea esi, [esp + 0x20]
jbe 0x20003c26
mov ebx, dword [0x2001a394]
push ebp
push esi
call ebx
add esp, 8
test eax, eax
je 0x20003c5e
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
mov eax, dword [esp + 0x14]
dec ecx
lea esi, [esi + ecx + 1]
mov ecx, esi
sub ecx, edx
cmp ecx, eax
jb 0x20003bfb
cmp dword [esp + 0x430], 1
jne 0x20003d30
lea esi, [esp + eax + 0x1f]
push ebp
push esi
call dword [sym.imp.IMM32.dll_ImmReleaseContext]
mov edi, dword [sym.imp.IMM32.dll_ImmGetContext]
push esi
call edi
push esi
mov byte [eax + esi + 1], 0
call edi
mov edx, dword [esp + 0x14]
lea ecx, [edx + eax + 1]
jmp 0x20003d08
mov eax, dword [esp + 0x430]
test eax, eax
jne 0x20003d30
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
or edx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x14]
mov edi, esi
not ecx
dec ecx
sub edx, ecx
or ecx, 0xffffffff
add eax, edx
mov dword [esp + 0x14], eax
sub eax, esi
lea eax, [esp + eax + 0x21]
push eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ecx, [ecx + esi + 1]
push ecx
push esi
call dword [0x2001a3a0]
mov ecx, dword [esp + 0x20]
add esp, 0xc
cmp ecx, 3
jae 0x20003d0c
mov ecx, dword [esp + 0x428]
mov edx, dword [esp + 0x18]
push ecx
push edx
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x20003d29
cmp dword [esp + 0x430], 1
jne 0x20003d30
mov edi, dword [esp + 0x42c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
inc ecx
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x42c]
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputA]
test eax, eax
sete byte [esp + 0x13]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov al, byte [esp + 0x13]
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x410
ret
Function at 0x20007050
Capabilities:
Log keystrokes via input method manager

Disassembly:
sub esp, 0x104
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x110]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push esi
push eax
call dword [sym.imp.IMM32.dll_ImmReleaseContext]
lea ecx, [esp + 8]
lea edx, [esp + 8]
push ecx
push edx
call fcn.20010400
add esp, 8
push 0x104
push esi
call dword [sym.imp.IMM32.dll_ImmGetCompositionStringA]
mov edi, dword [0x2001a138]
push 0x20021514
push esi
call edi
lea eax, [esp + 8]
push eax
push esi
call edi
mov ecx, dword [esp + 0x114]
push ecx
push esi
call edi
pop edi
pop esi
add esp, 0x104
ret