joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406fd6
Capabilities:
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4fc
mov eax, dword [0x41200c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 1
push 0x401a18
mov eax, 0xca
lea esi, reloc.ADVAPI32.dll_TraceMessage
call fcn.0040df9a
xor esi, esi
push 0x2b0
lea eax, reloc.ADVAPI32.dll_TraceMessage
push esi
push eax
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
call sub.msvcrt.dll_memset
push 0x214
lea eax, reloc.ADVAPI32.dll_TraceMessage
push esi
push eax
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
call sub.msvcrt.dll_memset
add esp, 0x18
test edi, edi
je 0x40703e
mov dword [edi], esi
mov eax, 0xd4
test ebx, ebx
jne 0x40705e
mov esi, 0x80070057
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
mov word [ebp - 0x4f6], ax
jmp 0x4070f5
mov word [ebp - 0x4f8], ax
mov eax, 0xd5
test edi, edi
je 0x407047
push 0x101
push 0x2b4
mov word [ebp - 0x4f8], ax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push esi
push ebx
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
jne 0x4070e0
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0x101
push 8
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0x218
call dword [sym.imp.SHELL32.dll_SHGetStockIconInfo]
mov esi, eax
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
mov eax, 0xe2
test esi, esi
jns 0x4070d1
mov esi, 0x80004005
jmp 0x40704c
mov word [ebp - 0x4f8], ax
mov eax, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
jmp 0x4070ec
mov eax, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
mov esi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
and dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0
mov dword [edi], eax
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0
je 0x407117
push dword [ebp - 0x2c0]
call dword [sym.imp.USER32.dll_DestroyIcon]
and dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0
mov esi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
lea eax, reloc.ADVAPI32.dll_TraceMessage
call fcn.0040e073
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00410d69
leave
ret
Function at 0x40ea8d
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
mov ebx, eax
mov eax, dword [0x413028]
cmp eax, 0x413028
je 0x40eac1
test dword [eax + 0x1c], reloc.ADVAPI32.dll_TraceMessage
je 0x40eac1
push 0x402488
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00406dfe
push 1
push 0x402418
mov eax, 0x1bb
lea esi, [ebp - 0x3c]
call fcn.0040df9a
xor esi, esi
mov eax, 0x4013c0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
test ebx, ebx
jne 0x40eb01
mov edi, 0x80070057
mov eax, 0x1c3
jmp 0x40ec5b
mov eax, 0x1c4
mov dword [ebp - 0x3c], esi
mov word [ebp - 0x38], ax
call fcn.0040e846
push 0x401354
push esi
push ebx
push 0x4023ec
lea edi, [ebp - 0xc]
call fcn.00410069
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x3c], edi
mov eax, 0x1cb
test edi, edi
js 0x40ec5e
push dword [ebp - 0xc]
mov word [ebp - 0x38], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, reloc.ADVAPI32.dll_TraceMessage
jne 0x40eb70
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40eb5d
cmp eax, 3
jne 0x40eb70
mov edi, esi
mov eax, 0x1d3
mov dword [ebp - 0x3c], edi
mov word [ebp - 0x38], ax
jmp 0x40ec62
push 0x401354
push 4
pop esi
push esi
push ebx
push 0x4023ec
lea edi, [ebp - 0xc]
call fcn.00410069
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x3c], edi
mov eax, 0x1d8
test edi, edi
js 0x40ec5e
push dword [ebp - 0xc]
mov word [ebp - 0x38], ax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x401354
lea eax, [esi - 1]
push eax
push ebx
push 0x4023ec
lea edi, [ebp - 0x18]
call fcn.00410069
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x3c], edi
mov eax, 0x1df
test edi, edi
js 0x40ec5e
push 1
push dword [ebp - 0xc]
mov word [ebp - 0x38], ax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40ec0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 2
je 0x40ec02
cmp edi, 0x20
je 0x40ec02
cmp edi, 5
jne 0x40ec46
and dword [ebp - 0x3c], 0
mov eax, 0x1ec
mov word [ebp - 0x38], ax
push dword [ebp - 0xc]
call fcn.0040e759
lea eax, [ebp - 0xc]
call fcn.0040fe83
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0xc]
push eax
call fcn.00410446
mov edi, eax
mov dword [ebp - 0x3c], edi
mov eax, 0x1f3
test edi, edi
js 0x40ec5e
mov word [ebp - 0x38], ax
dec esi
jne 0x40eba9
jmp 0x40ec62
test edi, edi
jle 0x40ec56
and edi, 0xffff
or edi, 0x80070000
mov eax, 0x1ec
mov dword [ebp - 0x3c], edi
mov word [ebp - 0x36], ax
lea esi, [ebp - 0xc]
call fcn.0040fca0
lea esi, [ebp - 0x18]
call fcn.0040fca0
lea eax, [ebp - 0x3c]
call fcn.0040e073
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f1ff
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push 1
push 0x402498
mov eax, 0x74b
lea esi, [ebp - 0x28]
call fcn.0040df9a
xor esi, esi
push esi
push esi
mov edi, esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebx, eax
test ebx, ebx
jne 0x40f246
call fcn.0040f196
mov ecx, 0x756
mov dword [ebp - 0x28], eax
mov word [ebp - 0x22], cx
jmp 0x40f372
mov ecx, dword [ebp + 8]
mov eax, 0x756
mov dword [ebp - 0x28], esi
mov word [ebp - 0x24], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x40f258
sub ecx, edx
sar ecx, 1
lea eax, [ebx + 2]
add eax, ecx
mov dword [ebp - 4], eax
add eax, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x40f28b
mov eax, 0x8007000e
mov ecx, 0x75c
jmp 0x40f23a
and dword [ebp - 0x28], edi
push ebx
mov eax, 0x75c
push esi
mov word [ebp - 0x24], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x40f2b9
call fcn.0040f196
mov dword [ebp - 0x28], eax
mov eax, 0x75f
mov word [ebp - 0x22], ax
jmp 0x40f364
mov ecx, 0x75f
cmp eax, ebx
mov word [ebp - 0x24], cx
lea eax, [ecx + 1]
jb 0x40f2d2
mov dword [ebp - 0x28], reloc.ADVAPI32.dll_TraceMessage
jmp 0x40f2b0
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x24], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40f2e0
mov ebx, dword [ebp - 4]
sub ecx, edx
push 0x5c
sar ecx, 1
pop eax
cmp ax, word [esi + ecx*2 - 2]
je 0x40f319
push 0x401094
push esi
mov eax, ebx
call fcn.0040f57f
mov dword [ebp - 0x28], eax
test eax, eax
mov eax, 0x764
js 0x40f2b0
mov word [ebp - 0x24], ax
push dword [ebp + 8]
mov eax, ebx
push esi
call fcn.0040f57f
mov dword [ebp - 0x28], eax
test eax, eax
mov eax, 0x767
js 0x40f2b0
push 2
xor ebx, ebx
push ebx
push esi
mov word [ebp - 0x24], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40f358
call fcn.0040f196
mov dword [ebp - 0x28], eax
mov eax, 0x76a
jmp 0x40f2b0
mov eax, 0x76a
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x24], ax
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
jne 0x40f379
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x28]
call fcn.0040e073
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40f38f
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x78
push esi
push edi
mov eax, dword [0x413028]
cmp eax, 0x413028
je 0x40f3c3
test dword [eax + 0x1c], reloc.ADVAPI32.dll_TraceMessage
je 0x40f3c3
push 0x4024d8
push 0x35
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00406dfe
push 1
push 0x4024b0
mov eax, 0x78c
lea esi, [esp + 0x28]
call fcn.0040df9a
and dword [esp + 0x18], 0
and dword [esp + 0x1c], 0
and dword [esp + 0xc], 0
and dword [esp + 0x10], 0
and dword [esp + 0x44], 0
mov eax, 0x4013c0
push 0x38
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0x4c]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, 0x792
add esp, 0xc
mov word [esp + 0x24], ax
inc eax
cmp dword [ebp + 8], 0
jne 0x40f433
mov edi, 0x80070057
mov dword [esp + 0x20], edi
mov word [esp + 0x26], ax
jmp 0x40f53b
and dword [esp + 0x20], 0
push 0x401ca8
lea esi, [esp + 0xc]
mov word [esp + 0x28], ax
call fcn.004106d6
mov edi, eax
mov dword [esp + 0x20], edi
mov eax, 0x795
test edi, edi
js 0x40f429
mov esi, dword [ebp + 8]
mov word [esp + 0x24], ax
lea eax, [esp + 0x14]
push eax
mov edx, reloc.KERNEL32.dll_DeleteCriticalSection
call fcn.0041037c
mov edi, eax
mov dword [esp + 0x20], edi
mov eax, 0x797
test edi, edi
js 0x40f429
mov word [esp + 0x24], ax
mov eax, dword [esp + 8]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x58], eax
xor esi, esi
lea eax, [esp + 0x44]
inc esi
push eax
mov dword [esp + 0x4c], 0x540
mov dword [esp + 0x48], 0x3c
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], 0x4024cc
mov dword [esp + 0x64], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40f537
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x40f4df
and edi, 0xffff
or edi, 0x80070000
mov dword [esp + 0x20], edi
mov eax, dword [0x413028]
cmp eax, 0x413028
je 0x40f50f
test dword [eax + 0x1c], reloc.ADVAPI32.dll_TraceMessage
je 0x40f50f
push edi
push 0x4024d8
push 0x36
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0040ddea
mov edi, dword [esp + 0x20]
cmp edi, 0x800704c7
jne 0x40f529
mov edi, esi
mov dword [esp + 0x20], edi
mov eax, 0x7ac
mov word [esp + 0x24], ax
jmp 0x40f53b
mov eax, 0x7b0
test edi, edi
jns 0x40f522
jmp 0x40f429
mov edi, dword [esp + 0x20]
cmp dword [esp + 0x7c], 0
je 0x40f555
push dword [esp + 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esp + 0x7c], 0
mov edi, dword [esp + 0x20]
lea esi, [esp + 8]
call fcn.0040fca0
lea esi, [esp + 0x14]
call fcn.0040fca0
lea eax, [esp + 0x20]
call fcn.0040e073
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40f61e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push 2
push 0x4024ec
push 0x21
pop eax
lea esi, [ebp - 0x30]
call fcn.0040df9a
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
test edi, edi
je 0x40f64b
mov dword [edi], ebx
push 0x2a
pop eax
push 0x2b
mov word [ebp - 0x2c], ax
pop eax
test edi, edi
jne 0x40f667
mov esi, 0x80070057
mov word [ebp - 0x2a], ax
jmp 0x40f6f2
mov word [ebp - 0x2c], ax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x401240
push dword [ebp + 8]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jle 0x40f6a2
and esi, 0xffff
or esi, 0x80070000
push 0x34
mov dword [ebp - 0x30], esi
pop eax
test esi, esi
jns 0x40f6b9
mov word [ebp - 0x2a], ax
mov dword [ebp - 0x28], 1
jmp 0x40f6f5
cmp dword [ebp - 8], 4
push 0x36
mov word [ebp - 0x2c], ax
pop eax
je 0x40f6cd
mov esi, 0x8007065d
jmp 0x40f65e
cmp dword [ebp - 4], 4
mov word [ebp - 0x2c], ax
je 0x40f6e4
push 0x37
mov esi, 0x80004005
pop eax
jmp 0x40f65e
mov eax, dword [ebp - 0xc]
push 0x3b
mov dword [edi], eax
pop eax
mov esi, ebx
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x30]
call fcn.0040e073
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x410d5a
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x411300
call fcn.004110cc
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], TraceMessage
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov edi, dword [eax + 4]
mov esi, ebx
push ebx
push edi
push 0x4134dc
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x410bd1
cmp eax, edi
jne 0x410bc4
xor edi, edi
inc edi
mov esi, edi
jmp 0x410bd4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x410ba8
xor edi, edi
inc edi
cmp dword [0x4134e0], edi
jne 0x410be6
push reloc.KERNEL32.dll_EnterCriticalSection
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x410c14
cmp dword [0x4134e0], ebx
jne 0x410c0e
mov dword [0x4134e0], edi
push 0x401018
push 0x40100c
call fcn.00410b48
pop ecx
pop ecx
test eax, eax
je 0x410c14
jmp 0x410d43
mov dword [0x413034], edi
cmp dword [0x4134e0], edi
jne 0x410c37
push 0x401008
push section..text
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4134e0], 2
test esi, esi
jne 0x410c47
push ebx
push 0x4134dc
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x4134e4], 0
je 0x410c69
push 0x4134e4
call fcn.00410f40
pop ecx
test eax, eax
je 0x410c69
push ebx
push 2
push ebx
call dword [0x4134e4]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp - 0x20]
mov cl, byte [esi]
cmp cl, 0x20
ja 0x410cc6
test cl, cl
je 0x410c85
test edi, edi
jne 0x410cc6
mov al, byte [esi]
test al, al
je 0x410c95
cmp al, 0x20
ja 0x410c95
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x410c85
test byte [ebp - 0x3c], 1
je 0x410ca1
movzx eax, word [ebp - 0x38]
jmp 0x410ca4
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x413030], eax
cmp dword [0x413048], 0
jne 0x410d1f
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cl, 0x22
jne 0x410cd7
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x20], edi
movzx eax, cl
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x410cea
inc esi
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x410c76
cmp dword [0x413034], 0
jne 0x410d33
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x413030]
mov dword [ebp - 4], TraceMessage
jmp 0x410d4f
mov dword [ebp - 4], TraceMessage
mov eax, 0xff
call fcn.00411111
ret
call fcn.00411001
jmp 0x410b71

Function at 0x410eb0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x410ec6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], reloc.ADVAPI32.dll_TraceMessage
jne 0x410ee1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x410ef0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
movzx ebx, word [ecx + 6]
add eax, 0x18
push esi
xor edx, edx
add eax, ecx
push edi
test ebx, ebx
je 0x410f2e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x410f26
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x410f30
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x410f16
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1008285
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x101d3ff
call fcn.0101caf8
sub esp, 0x38
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [edi + 0x90]
mov eax, dword [ecx]
mov dword [ebp - 4], esi
call dword [eax + 0x14]
push eax
call fcn.01018b1d
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x1008325
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push esi
push esi
push 0x1004
push dword [edi + 0x9c]
mov dword [ebp - 0x44], 4
mov dword [ebp - 0x3c], esi
call ebx
mov esi, eax
jmp 0x1008321
lea eax, [ebp - 0x44]
push eax
push 0
push 0x104b
push dword [edi + 0x9c]
mov dword [ebp - 0x40], esi
call ebx
test eax, eax
je 0x1008321
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1008321
cmp dword [eax + 0xc], 0
jne 0x1008316
cmp dword [ebp + 8], 0
jne 0x1008316
push dword [eax]
lea ecx, [ebp - 0x10]
push dword [eax + 0x10]
call fcn.01007035
jmp 0x1008321
push dword [eax]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
dec esi
jns 0x10082da
pop ebx
lea ecx, [ebp - 0x10]
call fcn.0100650c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x100950a
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x101d604
call fcn.0101caf8
sub esp, 0x6c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
mov esi, ecx
je 0x10095e2
push edi
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_1
and dword [ebp - 4], 0
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::CString_1
mov eax, dword [ebx]
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x10]
push ecx
mov ecx, ebx
mov byte [ebp - 4], 1
call dword [eax + 4]
push 0xd
pop ecx
xor eax, eax
lea edi, [ebp - 0x44]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x64]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
and dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0x104d
push dword [esi + 0x60]
mov dword [ebp - 0x44], 5
mov dword [ebp - 0x24], ebx
call edi
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x64], ecx
lea ecx, [ebp - 0x78]
push ecx
push eax
push 0x1074
push dword [esi + 0x60]
mov dword [esi + 0x64], eax
mov dword [ebp - 0x70], 1
call edi
lea eax, [ebp - 0x78]
push eax
push dword [esi + 0x64]
mov dword [ebp - 0x68], 0xf000
push 0x102b
push dword [esi + 0x60]
mov dword [ebp - 0x6c], 0x2000
call edi
inc dword [esi + 0x64]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x1009a4a
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x101d689
call fcn.0101caf8
sub esp, 0x70
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
mov esi, ecx
je 0x1009b85
push edi
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString_1
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString_1
mov eax, dword [ebx]
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
push ecx
mov ecx, ebx
mov byte [ebp - 4], 2
call dword [eax + 4]
push 0xd
pop ecx
xor eax, eax
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0xa0]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
and dword [ebp - 0x40], 0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0x104d
push dword [esi + 0x9c]
mov dword [ebp - 0x48], 5
mov dword [ebp - 0x28], ebx
call edi
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x68], ecx
lea ecx, [ebp - 0x7c]
push ecx
push eax
push 0x1074
push dword [esi + 0x9c]
mov dword [esi + 0xa0], eax
mov dword [ebp - 0x74], 1
call edi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x7c]
push eax
push dword [esi + 0xa0]
mov dword [ebp - 0x74], 2
push 0x1074
push dword [esi + 0x9c]
call edi
mov eax, dword [ebx]
mov ecx, ebx
mov dword [ebp - 0x6c], 0xf000
call dword [eax + 8]
xor ecx, ecx
test eax, eax
setne cl
lea eax, [ebp - 0x7c]
push eax
push dword [esi + 0xa0]
push 0x102b
push dword [esi + 0x9c]
inc ecx
shl ecx, 0xc
mov dword [ebp - 0x70], ecx
call edi
inc dword [esi + 0xa0]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x1009d5b
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
push eax
push 0
push esi
push 0x1009109
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
add esi, 0xc30
test eax, eax
je 0x1009d92
and dword [esi], 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x1009d98
mov dword [esi], 0x80004005
mov eax, dword [esi]
pop esi
pop ebp
ret 4
Function at 0x1009e26
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
mov eax, 0x101d709
call fcn.0101caf8
sub esp, 0x694
mov eax, dword [0x1023fb4]
push ebx
push esi
push edi
push 7
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x690], ecx
pop eax
xor ebx, ebx
lea ecx, [ebp - 0x69c]
mov dword [ebp - 0x69c], eax
mov dword [ebp - 0x698], 0x18
mov dword [ebp - 0x694], ebx
mov dword [ebp - 0x678], ecx
push ebx
push eax
lea eax, [ebp - 0x420]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jl 0x100a036
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x674]
call sub.MFC42u.DLL_CString::CString_2
push 0x5c
lea ecx, [ebp - 0x674]
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::ReverseFind
mov edi, eax
cmp edi, 0xffffffff
je 0x100a027
push 0x1002328
lea ecx, [ebp - 0x680]
call sub.MFC42u.DLL_CString::CString_2
mov esi, eax
push edi
lea eax, [ebp - 0x68c]
push eax
lea ecx, [ebp - 0x674]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::Left
push esi
push eax
lea eax, [ebp - 0x688]
push eax
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_operator
push eax
lea ecx, [ebp - 0x674]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::operator
lea ecx, [ebp - 0x688]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x68c]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x680]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
lea eax, [ebp - 0x674]
push eax
lea ecx, [ebp - 0x67c]
call fcn.0101c24c
push 0x100231c
lea ecx, [ebp - 0x684]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::CString_2
push eax
lea ecx, [ebp - 0x67c]
mov byte [ebp - 4], 5
call fcn.0101c3f0
lea ecx, [ebp - 0x684]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::CString
lea eax, [ebp - 0x670]
push eax
push dword [ebp - 0x67c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100a019
test byte [ebp - 0x670], 2
je 0x1009fae
lea eax, [ebp - 0x644]
push 0x1002304
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x1009ffc
test byte [ebp - 0x670], 0x10
jne 0x1009ffc
push 0x10
call sub.MFC42u.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x6a0], ecx
cmp ecx, ebx
mov byte [ebp - 4], 6
je 0x1009fea
push dword [ebp - 0x674]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x644]
push eax
call fcn.01008b0b
jmp 0x1009fec
xor eax, eax
mov ecx, dword [ebp - 0x690]
push eax
mov byte [ebp - 4], 4
call fcn.0100950a
lea eax, [ebp - 0x670]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1009f8d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x67c]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x674]
call sub.MFC42u.DLL_CString::CString
add dword [ebp - 0x678], 4
mov eax, dword [ebp - 0x678]
mov eax, dword [eax]
cmp eax, ebx
jne 0x1009e6e
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
inc eax
pop ebx
call fcn.0101bddf
leave
ret
Function at 0x100a0ba
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x101d723
call fcn.0101caf8
sub esp, 0x218
mov eax, dword [0x1023fb4]
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov ebx, ecx
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x214], esi
push 0x2001f
push eax
push dword [ebx]
lea ecx, [ebp - 0x214]
mov dword [ebp - 4], esi
call fcn.0100985e
cmp eax, esi
jne 0x100a163
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x100a11a
lea eax, [ebp - 0x210]
push eax
call fcn.0100a0ba
cmp eax, esi
jne 0x100a162
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x214]
je 0x100a10a
call fcn.0100650c
push dword [ebp - 0x21c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.0100650c
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0101bddf
leave
ret 4