joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fe40
Capabilities:
Log keystrokes via input method manager

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x4a4100]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push 0
mov ebx, ecx
push 0x800
push ebx
mov dword [esp + 0x1c], eax
call sub.IMM32.dll_ImmGetCompositionStringW
mov esi, eax
cmp esi, 2
jb 0x41fefc
lea eax, [esi + 2]
push eax
call fcn.0046f25a
add esp, 4
mov edi, eax
lea eax, [esi + 2]
push eax
push edi
push 0x800
push ebx
call sub.IMM32.dll_ImmGetCompositionStringW
shr esi, 1
xor ecx, ecx
mov word [edi + esi*2], cx
movzx eax, word [edi]
xor edx, edx
mov esi, edi
cmp dx, ax
je 0x41fef3
mov ebx, 0xfffffffe
mov dword [esp + 0x14], ebx
mov byte [esp + 0x18], cl
mov byte [esp + 0x19], cl
movzx eax, ax
mov ecx, dword [esp + 0x14]
push 0
mov word [esp + 0x1e], ax
mov edx, dword [esp + 0x1c]
sub esp, 0xc
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov eax, dword [esp + 0x1c]
push eax
add esi, 2
call fcn.0041f270
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
jne 0x41fec0
push edi
call fcn.0046f0ab
add esp, 4
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046f01c
mov esp, ebp
pop ebp
ret 4

Function at 0x41ff10
Capabilities:
Log keystrokes via input method manager

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x4a4100]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
push 0x800
push eax
mov dword [esp + 0x24], eax
call sub.IMM32.dll_ImmGetCompositionStringA
mov esi, eax
cmp esi, 1
jb 0x41fff2
lea ecx, [esi + esi*2 + 3]
push ecx
call fcn.0046f25a
add esp, 4
mov ebx, eax
mov eax, dword [esp + 0x14]
lea edx, [esi + 1]
push edx
push ebx
push 0x800
push eax
mov dword [esp + 0x20], ebx
lea edi, [ebx + esi + 1]
call sub.IMM32.dll_ImmGetCompositionStringA
push esi
push edi
push esi
push ebx
push 0
push 0
mov byte [ebx + esi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
ja 0x41ff92
mov esi, eax
xor ecx, ecx
mov word [edi + esi*2], cx
movzx eax, word [edi]
xor edx, edx
mov esi, edi
cmp dx, ax
je 0x41ffe9
mov edi, 0xfffffffe
mov ebx, edi
mov byte [esp + 0x20], cl
mov byte [esp + 0x21], cl
movzx eax, ax
mov edx, dword [esp + 0xc]
push 0
sub esp, 0xc
mov word [esp + 0x32], ax
mov ecx, dword [esp + 0x30]
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebx
push edx
add esi, 2
mov dword [eax + 8], ecx
call fcn.0041f270
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
jne 0x41ffb6
mov ebx, dword [esp + 0x10]
push ebx
call fcn.0046f0ab
add esp, 4
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046f01c
mov esp, ebp
pop ebp
ret 8
Function at 0x424bc0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 8
push esi
mov esi, ecx
cmp byte [esi + 0xf80], 0
push edi
mov edi, eax
jne 0x424be6
lea eax, [esi + 0xf78]
push eax
mov byte [esi + 0xf80], 1
call dword [sym.imp.USER32.dll_GetCursorPos]
cmp dword [esi + 0x8ac], 1
jne 0x424c0a
call fcn.00425b90
mov eax, esi
call fcn.00426ae0
mov ecx, dword [esi + 0xf60]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esi + 0xf4], 0
mov dword [esi + 0x8ac], 0xffffffff
jne 0x424cd3
movsx edx, di
shr edi, 0x10
lea ecx, [esp + 8]
mov dword [esp + 8], edx
mov edx, dword [esi + 8]
movsx eax, di
push ecx
push edx
mov dword [esp + 0x14], eax
call dword [sym.imp.USER32.dll_ClientToScreen]
lea edi, [esi + 0xb4]
push edi
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x424c67
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push eax
push ecx
mov eax, esi
call fcn.00424710
test eax, eax
jne 0x424c6c
mov eax, 4
mov edx, dword [edi]
mov ecx, dword [edi + 8]
mov dword [esi + 0xf4], eax
mov eax, dword [edi + 4]
mov dword [esi + 0xf8], edx
mov edx, dword [edi + 0xc]
mov dword [esi + 0xfc], eax
mov eax, dword [esp + 8]
mov dword [esi + 0x100], ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x108], eax
mov dword [esi + 0x110], eax
mov eax, dword [esi + 8]
push eax
mov dword [esi + 0x118], 1
mov dword [esi + 0x104], edx
mov dword [esi + 0x10c], ecx
mov dword [esi + 0x114], ecx
call dword [sym.imp.USER32.dll_SetCapture]
xor eax, eax
pop edi
pop esi
add esp, 8
ret 4
mov ecx, dword [esp + 0x14]
pop edi
mov dword [ecx], 0
xor eax, eax
pop esi
add esp, 8
ret 4
Function at 0x4257f0
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, eax
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, 1
mov word [esp + 0x1c], ax
lea eax, [esi + 3]
lea ebp, [ecx + 6]
imul ebp, eax
push 0
lea ebp, [ebp*4 + 0xc]
push ebp
push 0
push 4
push 0
mov edx, 0x20
push 0
mov dword [esp + 0x28], 0x28
mov word [esp + 0x36], dx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
lea esi, [esi + esi*2 + 0xc]
add esi, esi
mov ebx, eax
add esi, esi
push esi
push ebx
lea eax, [esp + 0x14]
push eax
push 0
lea ecx, [esp + 0x20]
push ecx
push 0
mov dword [edi + 0xe4], ebx
mov dword [esp + 0x24], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
xor edx, edx
cmp dword [esp + 0x18], edx
mov dword [edi + 0xe0], eax
mov eax, dword [esp + 0x14]
jle 0x4258dd
nop
xor ecx, ecx
test eax, eax
jle 0x4258d6
jmp 0x4258c0
mov eax, dword [esp + 0xc]
mov byte [eax + 3], 0x60
mov eax, dword [esp + 0x14]
add dword [esp + 0xc], 4
inc ecx
cmp ecx, eax
jl 0x4258c0
inc edx
cmp edx, dword [esp + 0x18]
jl 0x4258b0
push ebp
push 0
neg eax
push 0
add eax, eax
push 6
add eax, eax
push ebx
mov dword [edi + 0xd8], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [esp + 0x18]
add eax, esi
dec ecx
imul ecx, dword [esp + 0x14]
pop esi
lea edx, [eax + ecx*4]
pop ebp
mov dword [edi + 0xdc], edx
mov dword [edi + 0x8ac], 1
pop ebx
add esp, 0x30
ret
Function at 0x42bb70
Capabilities:
Delete file

Disassembly:
sub esp, 0x50
mov eax, dword [0x4a4100]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x5c]
push esi
push edi
mov ebx, ecx
push ebp
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebx + 0x14]
mov edi, dword [eax]
mov esi, dword [ebx]
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x10]
mov ebx, dword [ebx + 0x14]
mov eax, dword [ecx]
test esi, esi
je 0x42bbb3
cmp esi, eax
je 0x42bbb8
call fcn.0046f637
cmp edi, ebx
je 0x42bcef
xor edx, edx
push 0x3e
push edx
lea eax, [esp + 0x22]
push eax
mov word [esp + 0x24], dx
call fcn.00474b70
mov ecx, dword [esp + 0x20]
mov eax, ecx
push eax
inc ecx
push 0x4931e0
lea edx, [esp + 0x2c]
mov dword [esp + 0x28], ecx
call fcn.0042c720
add esp, 0x14
test esi, esi
jne 0x42bc11
call fcn.0046f637
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x42bc06
call fcn.0046f637
cmp dword [edi + 0x3c], 8
jb 0x42bc15
mov eax, dword [edi + 0x28]
jmp 0x42bc18
mov eax, dword [esi]
jmp 0x42bbfc
lea eax, [edi + 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push ebp
push eax
push 0x493650
lea ecx, [esp + 0x24]
push ecx
call ebx
test esi, esi
jne 0x42bc4c
call fcn.0046f637
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x42bc41
call fcn.0046f637
cmp dword [edi + 0x58], 8
jb 0x42bc50
mov eax, dword [edi + 0x44]
jmp 0x42bc53
mov eax, dword [esi]
jmp 0x42bc37
lea eax, [edi + 0x44]
push ebp
push eax
push str.partner_id
lea edx, [esp + 0x24]
push edx
call ebx
test esi, esi
jne 0x42bc81
call fcn.0046f637
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x42bc76
call fcn.0046f637
cmp dword [edi + 0x74], 8
jb 0x42bc85
mov eax, dword [edi + 0x60]
jmp 0x42bc88
mov eax, dword [esi]
jmp 0x42bc6c
lea eax, [edi + 0x60]
push ebp
push eax
push str.version
lea eax, [esp + 0x24]
push eax
call ebx
test esi, esi
jne 0x42bcb6
call fcn.0046f637
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x42bcab
call fcn.0046f637
cmp dword [edi + 0x20], 8
jb 0x42bcba
mov eax, dword [edi + 0xc]
jmp 0x42bcbd
mov eax, dword [esi]
jmp 0x42bca1
lea eax, [edi + 0xc]
push ebp
push eax
push str.time
lea ecx, [esp + 0x24]
push ecx
call ebx
test esi, esi
jne 0x42bceb
call fcn.0046f637
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x42bce0
call fcn.0046f637
mov edi, dword [edi]
mov ebx, dword [esp + 0x10]
jmp 0x42bba2
mov eax, dword [esi]
jmp 0x42bcd6
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0046f01c
add esp, 0x50
ret
Function at 0x42d2c0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x4bc
mov eax, dword [0x4a4100]
xor eax, esp
mov dword [esp + 0x4b8], eax
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x3c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call edi
xor ecx, ecx
add eax, 0x11
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046a020
mov ebp, eax
mov eax, dword [esi + 0x3c]
add esp, 4
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [esi + 0x20]
push ecx
push ebp
call fcn.0042dad0
push 0x2b4
lea edx, [esp + 0x20]
push 0
push edx
mov ebx, eax
mov dword [esp + 0x24], 1
call fcn.00474b70
add esp, 0x14
push 0x800
push 0x2b4
lea eax, [esp + 0x1c]
push eax
push 0
push ebp
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x42d403
mov eax, dword [esp + 0x1c]
test eax, 0x40000000
je 0x42d403
test eax, 0x10000000
jne 0x42d403
mov edx, dword [esi + 8]
mov eax, dword [edx + 0x10]
push 0x100
lea ecx, [esp + 0x2cc]
push ecx
push 0xac
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea edx, [esp + 0x2c8]
xor ecx, ecx
push edx
mov word [esp + 0x4ca], cx
call edi
push ebx
mov dword [esp + 0x14], eax
call edi
mov ecx, dword [esp + 0x10]
lea eax, [eax + ecx + 1]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046a020
mov edi, eax
push ebx
lea eax, [esp + 0x2d0]
push eax
push edi
call fcn.004702c7
mov esi, dword [esi + 0x78]
add esp, 0x10
push 4
push 0
push edi
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
mov esi, eax
call fcn.0046f324
xor ecx, ecx
add esp, 4
cmp esi, 6
sete cl
mov esi, ecx
jmp 0x42d407
mov esi, dword [esp + 0x10]
push ebp
call fcn.0046f011
mov ecx, dword [esp + 0x4cc]
add esp, 4
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebp
sete al
pop ebx
xor ecx, esp
call fcn.0046f01c
add esp, 0x4bc
ret
Function at 0x42d7f0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x6c4
mov eax, dword [0x4a4100]
xor eax, esp
mov dword [esp + 0x6c0], eax
mov eax, dword [esp + 0x6c8]
push ebp
mov ebp, dword [sym.imp.USER32.dll_LoadStringW]
push esi
push edi
mov esi, ecx
mov ecx, dword [esi + 0x78]
push 0x100
lea edx, [esp + 0x2d0]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 8]
push edx
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 0x10]
push 0xaa
push ecx
call ebp
mov ecx, dword [esi + 8]
push 0x100
xor edx, edx
lea eax, [esp + 0x4d0]
push eax
mov word [esp + 0x4d2], dx
mov edx, dword [ecx + 0x10]
push 0xab
push edx
call ebp
xor eax, eax
mov word [esp + 0x4ca], ax
push eax
mov eax, esi
call fcn.0042d430
mov esi, eax
xor ecx, ecx
cmp cx, word [esi]
jne 0x42d881
lea edi, [ecx + 1]
jmp 0x42d899
push esi
lea edx, [esp + 0x4d0]
push edx
lea eax, [esp + 0x2d4]
push eax
call fcn.0042d670
mov edi, eax
push esi
call fcn.0046f324
add esp, 4
test edi, edi
je 0x42d92f
push 0x2b4
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.00474b70
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esp, 0xc
lea edx, [esp + 0x2cc]
push edx
push ebx
call ebp
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [ebx + eax*2]
xor esi, esi
jmp 0x42d8e0
mov eax, dword [esi + 0x4a5f24]
push eax
push edi
call ebp
mov edx, dword [esp + 0x14]
push 0x800
push 0x2b4
lea ecx, [esp + 0x20]
push ecx
push 0
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
jne 0x42d949
add esi, 4
cmp esi, 0xc
jb 0x42d8e0
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x2cc]
push edx
push 0x47c
push 0x468
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x6cc]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0046f01c
add esp, 0x6c4
ret 4
mov dword [esp + 0xc], 1
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x4d0]
push ecx
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [ebx + eax*2]
xor esi, esi
mov edx, dword [esi + 0x4a5f24]
push edx
push edi
call ebp
mov ecx, dword [esp + 0x14]
push 0x800
push 0x2b4
lea eax, [esp + 0x20]
push eax
push 0
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
jne 0x42d9d2
add esi, 4
cmp esi, 0xc
jb 0x42d974
mov edx, dword [esp + 0xc]
push edx
lea eax, [esp + 0x4d0]
push eax
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ebx
push 0x47c
push 0x468
push ecx
jmp 0x42d929
mov eax, dword [esp + 0xc]
inc eax
cmp eax, 0x64
mov dword [esp + 0xc], eax
jle 0x42d951
jmp 0x42d92f
Function at 0x42f1c0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x487418
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x4a4100]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 0
call fcn.0042f150
test al, al
jne 0x42f230
mov eax, dword [esp + 0x18]
test eax, eax
je 0x42f219
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push str.NeedCreateDefaultHotKey
mov edi, 4
push esi
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42f26c
cmp dword [esp + 0x18], edi
je 0x42f28e
test esi, esi
je 0x42f277
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
mov edi, dword [esp + 0x10]
test esi, esi
je 0x42f29d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret

Function at 0x42f2c0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4873e8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4a4100]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
lea eax, [esp + 0x10]
mov dword [esp + 0x20], edi
call fcn.0042f150
test al, al
jne 0x42f30b
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x42f334
push eax
jmp 0x42f32e
mov esi, dword [esp + 0x10]
push 4
lea eax, [esp + 0x10]
push eax
push 4
push edi
push str.NeedCreateDefaultHotKey
push esi
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, edi
je 0x42f334
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
Function at 0x42f350
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x487418
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x4a4100]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov dword [esp + 0x10], 0x4c0007
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 0
call fcn.0042f150
test al, al
jne 0x42f3c9
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
test eax, eax
je 0x42f3b5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push str.HotKey
mov edi, 4
push esi
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42f3fd
cmp dword [esp + 0x18], edi
je 0x42f41f
test esi, esi
je 0x42f408
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x4c0007
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
mov edi, dword [esp + 0x10]
test esi, esi
je 0x42f42e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret

Function at 0x42f450
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4873b8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x4a4100]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
lea eax, [esp + 8]
mov dword [esp + 0x1c], 0
call fcn.0042f150
test al, al
jne 0x42f4a4
mov eax, dword [esp + 8]
test eax, eax
je 0x42f4d2
push eax
jmp 0x42f4cc
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 8]
push 4
lea ecx, [esp + 0x28]
push ecx
push 4
push 0
push str.HotKey
push esi
mov dword [esp + 0x3c], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x42f4d2
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x18
ret 4
Function at 0x42f970
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [esi]
push edi
push eax
push 0x200
xor edi, edi
push edi
push 4
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
cmp eax, edi
je 0x42fa3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x42f9df
mov eax, dword [esi + 4]
push 0x200
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
cmp eax, edi
je 0x42f9ce
cmp ebx, edi
je 0x42f9c1
mov edx, dword [eax]
mov dword [ebx], edx
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 8], edi
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], edi
xor eax, eax
pop edi
ret
cmp dword [ebx], edi
je 0x42fa1c
mov edx, dword [esi + 4]
push 0x200
push edi
push edi
push 0xf001f
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
cmp eax, edi
jne 0x42fa11
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], edi
xor eax, eax
pop edi
ret
mov ecx, dword [ebx]
mov dword [eax], ecx
mov eax, 1
pop edi
ret
mov eax, dword [esi + 8]
cmp eax, edi
je 0x42fa2d
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 8], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x42fa3e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], edi
xor eax, eax
pop edi
ret
Function at 0x4304c0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x48970e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4a4100]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
xor ebx, ebx
mov dword [edi + 4], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], eax
lea esi, [edi + 0x24]
push esi
mov dword [esp + 0x20], ebx
call fcn.00439120
mov byte [esp + 0x1c], 1
mov dword [edi], vtable.CSnapshotDialog.0
mov dword [esi], vtable.CSnapshotDialog.1.0
mov edx, dword [0x4a8008]
mov eax, dword [edx + 0xc]
mov ecx, 0x4a8008
call eax
add eax, 0x10
mov dword [edi + 0xfc], eax
push ecx
mov byte [esp + 0x20], 2
mov ecx, esp
mov dword [esp + 0x14], esp
push str.SmallTool_SnapshotDialog
call fcn.0040b010
lea esi, [edi + 0x128]
call fcn.0042f890
mov byte [esp + 0x1c], 3
push str.StartSnapShot
mov dword [edi + 0xe8], ebx
mov dword [edi + 0xec], ebx
mov dword [edi + 0xf0], ebx
mov dword [edi + 0xf4], ebx
mov dword [edi + 0xf8], ebx
mov byte [edi + 0x100], bl
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
movzx ecx, ax
lea esi, [esp + 0x10]
mov dword [edi + 0x104], ecx
mov dword [edi + 0x108], ebx
call fcn.00432ed0
mov eax, dword [eax]
push eax
push 1
push str.TrayIcon
push str.InstallStyle
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [edi + 0x120], eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4305dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [edi + 0x110], bl
mov dword [edi + 0x114], ebx
mov byte [edi + 0x118], bl
mov dword [edi + 0x11c], ebx
mov dword [edi + 0x124], ebx
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x430a20
Capabilities:
Hide graphical window

Disassembly:
mov al, byte [esi + 0x100]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push edi
test al, al
jne 0x430ad1
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x493d48
test ebp, ebp
je 0x430a49
mov bl, 1
jmp 0x430a4b
xor bl, bl
call fcn.0040b010
lea edi, [esi + 0x24]
call fcn.0043a030
mov dl, bl
mov ecx, eax
call fcn.0043c390
cmp byte [esi + 0x110], 0
mov dword [esi + 0xf8], ebp
je 0x430a9f
mov eax, dword [esi + 4]
push 0x42
push 0x87
push 0x10c
push 0
push 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
push 1
push 1
mov ecx, edi
call eax
pop edi
pop ebp
pop ebx
ret 4
mov ecx, dword [esi + 4]
push 0x82
push 0x87
push 0x10c
push 0
push 0
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [esi + 4]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esi + 0x110], 1
pop edi
pop ebp
pop ebx
ret 4
Function at 0x434df0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4896c0
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4a4100]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], eax
mov byte [esi + 0x14], bl
mov byte [esi + 0x15], bl
mov dword [esi + 8], 0x4aacd4
mov dword [esp + 0x18], ebx
mov dword [esi], vtable.CTextToolBar.0
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x28], vtable.CTextToolBar::CBtnMgr.0
lea edi, [esi + 0x160]
push edi
mov byte [esp + 0x1c], 1
call fcn.00413fb0
mov dword [edi], vtable.CTextToolBar::CInternalHeightComboBox.0
lea edi, [esi + 0x250]
push edi
mov byte [esp + 0x1c], 2
call fcn.0040bb80
push 0x40
lea ecx, [esi + 0x40]
push ebx
push ecx
mov dword [edi], vtable.CTextToolBar::CInternalFontComboBox.0
call fcn.00474b70
push 0x5c
lea edx, [esi + 0xd8]
push ebx
push edx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0x18], ebx
call fcn.00474b70
mov eax, dword [esi + 8]
mov dword [esi + 0x24], 0x11
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xc0], ebx
mov dword [esi + 0xc4], ebx
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xcc], ebx
mov dword [esi + 0xd0], ebx
mov dword [esi + 0xd4], ebx
mov dword [esi + 0x144], ebx
mov edi, dword [eax + 0x14]
add esp, 0x18
mov eax, esi
call fcn.00435420
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4