joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a0fa8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4a1013
cmp byte [ebx + 0xd3], 0
jne 0x4a1013
push 0x100
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.USER32.DLL_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00458094
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4a1000
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4a1020
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00457f58
jmp 0x4a1020
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00457f58
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4a2848
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4a28b6
mov eax, esi
call fcn.004c27d4
test al, al
je 0x4a28b6
mov eax, dword [ebx + 0x84]
call fcn.004c2428
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x4a28b6
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4a28aa
push 0
mov eax, dword [ebx + 0x84]
call fcn.004c2428
push eax
call sub.USER32.DLL_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004b93fc
jmp 0x4a28b6
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004a2680
pop esi
pop ebx
ret
Function at 0x4b6a44
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x5796c4], 0
je 0x4b6b85
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x573c70]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x4b6b85
mov eax, dword [0x5796c8]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x5796c4]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4b6b54
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x5796c4]
call fcn.00426188
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4b6b4c
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1ea], 0
je 0x4b6b4c
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x5c]
test al, al
je 0x4b6b4c
mov eax, dword [ebp - 0x14]
call fcn.004c2428
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x4b6b4c
push ebp
call fcn.004b6a00
pop ecx
test al, al
jne 0x4b6b4c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.004566b8
test al, al
je 0x4b6b4c
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.004566b8
cmp byte [ebp - 1], 0
je 0x4b6b4c
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.0043a000
test al, al
je 0x4b6b4c
mov edx, dword [ebp - 0x14]
mov eax, dword [0x5796c8]
call fcn.004b6158
inc edi
dec ebx
jne 0x4b6aa9
mov eax, dword [0x5796c8]
cmp dword [eax + 8], 0
jle 0x4b6b6c
mov eax, dword [0x5796c8]
call fcn.004b6210
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4b6b85
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004b6864
pop ecx
test al, al
jne 0x4b6b85
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4befd4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.USER32.DLL_GetMessagePos
call fcn.00439fe8
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.004b900c
test ebx, ebx
jne 0x4bf027
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.004bee50
mov ebx, eax
test ebx, ebx
je 0x4bf11d
cmp esi, ebx
je 0x4bf050
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x4bf065
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x4bf09d
add eax, 0xffffff5f
sub eax, 2
jb 0x4bf0b5
dec eax
sub eax, 2
jb 0x4bf0c9
dec eax
sub eax, 2
jb 0x4bf0bf
jmp 0x4bf0d3
add eax, 0xfffffdff
sub eax, 2
jb 0x4bf0b5
dec eax
sub eax, 2
jb 0x4bf0c9
dec eax
sub eax, 2
jb 0x4bf0bf
jmp 0x4bf0d3
mov byte [esp + 0x120], 0
jmp 0x4bf0db
mov byte [esp + 0x120], 2
jmp 0x4bf0db
mov byte [esp + 0x120], 1
jmp 0x4bf0db
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.USER32.DLL_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.0049554c
mov esi, eax
call fcn.004b5844
or si, ax
mov word [esp + 0x121], si
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.004ba9cc
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x4bf11f
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x55a288
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x55a2a4
call fcn.0055b400
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x55a2c3
test bl, 1
je 0x55a2c3
call fcn.00561970
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x55e114
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.00559028
add esp, 8
lea ecx, [ebp - 0x200]
push ecx
call fcn.005590d8
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.005590d8
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x57245d
lea ecx, [ebp - 0x200]
push ecx
call fcn.00559028
add esp, 8
push 0xa
lea ecx, [ebp - 0x200]
push ecx
call fcn.005590d8
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov eax, dword [ebx]
push eax
call fcn.0055f5b4
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x55e225
push esi
call fcn.005590d8
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.005590d8
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.00558230
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x55e1fc
xor eax, eax
jmp 0x55e2ac
push esi
call fcn.005590d8
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.005590d8
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.00558f57
add esp, 0xc
jmp 0x55e265
mov edi, dword [ebx + 0x24]
push edi
call fcn.005590d8
pop ecx
push eax
push esi
call fcn.005590d8
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.005590d8
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.00558250
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x55e265
xor eax, eax
jmp 0x55e2ac
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.00559028
add esp, 8
push 0x57245f
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.00559028
add esp, 8
lea ecx, [ebp - 0x200]
push ecx
mov eax, dword [ebx + 0x24]
push eax
call fcn.00559028
add esp, 8
push 0x572461
mov edx, dword [ebx + 0x24]
push edx
call fcn.00559028
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x561904
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
jne 0x561931
jmp 0x561968
call fcn.005618b4
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.005590d8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.005590d8
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x5619ec
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x572a9c], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x561ac6
cmp dword [0x572a98], 0
jne 0x561ac6
cmp dword [0x572c98], 0
je 0x561a80
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.005613bc
add esp, 8
mov ebx, eax
test eax, eax
jne 0x561a66
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.005613bc
add esp, 8
mov ebx, eax
test eax, eax
jne 0x561a66
lea ebx, [ebp - 0x84]
jmp 0x561a67
inc ebx
call fcn.005619a4
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x561b01
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x572aa0
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.005590d8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x572aa3
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x561b01
cmp dword [0x572a98], 0
je 0x561ae0
cmp dword [0x572a98], 0xffffffff
je 0x561b01
push esi
call dword [0x572a98]
pop ecx
mov eax, dword [0x572a9c]
test eax, eax
je 0x561b01
cmp dword [0x572a9c], 0xffffffff
je 0x561b01
cmp byte [eax], 0
je 0x561b01
push esi
push eax
call fcn.00561904
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x562398
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x57a624], 0
jne 0x562419
cmp dword [0x57a644], 0
jne 0x5623c8
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x57a644], eax
test eax, eax
jne 0x5623c8
push str.GetEnvironmentStrings_failed
call fcn.00561b18
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x57a644]
jmp 0x5623dc
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.005590d8
pop ecx
mov edi, eax
test eax, eax
jne 0x5623d4
lea edi, [ebp + 1]
push edi
call fcn.00558230
pop ecx
mov ebx, eax
mov dword [0x57a628], ebx
test ebx, ebx
jne 0x562406
xor eax, eax
jmp 0x5624dc
push edi
mov edx, dword [0x57a644]
push edx
push ebx
call fcn.00558d70
add esp, 0xc
jmp 0x562439
xor esi, esi
mov ebx, dword [0x57a624]
jmp 0x562433
push eax
call fcn.005590d8
pop ecx
test eax, eax
jne 0x56242f
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x562423
lea ebx, [esi + 4]
push 4
mov dword [0x57a62c], ebx
inc ebx
push ebx
call fcn.00558194
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x56245c
xor eax, eax
jmp 0x5624dc
cmp dword [0x57a624], 0
jne 0x56248d
xor esi, esi
mov ebx, dword [0x57a628]
mov eax, dword [esp]
mov ebp, eax
jmp 0x56247e
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.005590d8
pop ecx
mov edi, eax
test eax, eax
jne 0x562474
jmp 0x5624be
xor esi, esi
mov ebx, dword [0x57a624]
mov eax, dword [esp]
mov edi, eax
jmp 0x5624b8
push eax
call fcn.005590d8
pop ecx
test eax, eax
je 0x5624ad
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x5624b1
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x56249c
mov eax, dword [0x57a624]
test eax, eax
je 0x5624ce
push eax
call fcn.00558240
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x57a624], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x43b659
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x43b3c1
sub ebx, ebx
sub edx, edx
sub edx, 0x567edf1d
call fcn.0043b6a2
add edx, 1
sub esp, 4
mov dword [esp], 0xb9aaa1ff
mov ebx, dword [esp]
add esp, 4
add ebx, ebx
xor dword [ecx], edi
mov edx, ebx
sub ebx, ebx
inc ecx
inc edx
dec edx
cmp ecx, eax
jne fcn.0043b659
push 0xa60beeaa
pop edx
and edx, edx
ret

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0x413310
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
mov eax, dword [0x5c6150]
xor eax, esp
mov dword [esp + 0x74], eax
push esi
mov esi, ecx
xor eax, eax
xor ecx, ecx
mov dword [esp + 8], esi
push edi
test edx, edx
je 0x413339
mov eax, dword [edx]
mov ecx, dword [edx + 4]
push 2
push ecx
push eax
call dword [sym.imp.USER32.dll_MonitorFromPoint]
lea ecx, [esp + 0x54]
mov dword [esp + 0x54], 0x28
push ecx
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
mov edi, dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x413373
movups xmm0, xmmword [esp + 0x68]
movups xmmword [esp + 0x10], xmm0
movups xmmword [esi], xmm0
jmp 0x4133f4
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov edi, eax
call esi
mov esi, dword [esp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
movups xmm0, xmmword [esp + 0x10]
push 0
push str.Shell_TrayWnd
movups xmmword [esi], xmm0
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x4133ee
lea ecx, [esp + 0x44]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [sym.imp.USER32.dll_IntersectRect]
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
call edi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_SubtractRect]
jmp 0x4133f4
mov edi, dword [sym.imp.USER32.dll_IntersectRect]
call fcn.004594a0
cmp byte [eax + 0xa8c], 0
je 0x413438
xorps xmm0, xmm0
movups xmmword [esp + 0x20], xmm0
movups xmmword [esp + 0x30], xmm0
call fcn.004594a0
movups xmm0, xmmword [eax + 0xadc]
lea eax, [esp + 0x30]
push eax
push esi
lea eax, [esp + 0x28]
push eax
movups xmmword [esp + 0x3c], xmm0
call edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x413438
mov dword [esi + 0xc], eax
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
xor ecx, esp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret
Function at 0x413710
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push 0x591e94
push ecx
call fcn.004e29ed
mov edi, eax
add esp, 8
test edi, edi
jne 0x413732
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 2
push 0
push edi
call fcn.004e2850
push edi
call fcn.004e247a
mov esi, eax
push esi
call fcn.004e1b5b
push 0
push 0
push edi
mov ebx, eax
call fcn.004e2850
push edi
push 1
push esi
push ebx
call fcn.004e2c2e
push edi
call fcn.004e24fb
mov eax, 0x5a4d
add esp, 0x34
cmp ax, word [ebx]
je 0x41378c
push ebx
mov byte [ebp - 1], 1
call fcn.004e1b56
mov al, byte [ebp - 1]
add esp, 4
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x3c]
add ecx, ebx
cmp dword [ecx], 0x4550
jne 0x413775
movzx eax, word [ecx + 0x14]
mov edx, 0xf0
cmp dx, ax
je 0x413775
lea esi, [ecx + 0x18]
add esi, eax
cmp dword [ecx + 0x84], 0
mov dword [ebp - 8], esi
jbe 0x41388d
movzx eax, word [ecx + 6]
mov edx, esi
push dword [ecx + 0x80]
mov ecx, ebx
mov dword [ebp - 0xc], eax
push eax
call fcn.004136b0
mov edi, eax
add esp, 8
mov eax, dword [edi + 0xc]
test eax, eax
je 0x41388d
push eax
push dword [ebp - 0xc]
mov edx, esi
mov ecx, ebx
call fcn.004136b0
add esp, 8
test eax, eax
je 0x41387f
push 0x591e6c
push eax
call fcn.004eea49
add esp, 8
test eax, eax
jne 0x41387f
mov eax, dword [edi]
test eax, eax
jne 0x413816
mov eax, dword [edi + 0x10]
push eax
push dword [ebp - 0xc]
mov edx, esi
mov ecx, ebx
call fcn.004136b0
mov esi, eax
add esp, 8
test esi, esi
je 0x41387c
push dword [edi + 0x10]
mov edx, dword [ebp - 8]
mov ecx, ebx
push dword [ebp - 0xc]
call fcn.004136b0
add esp, 8
test eax, eax
je 0x41387c
mov eax, dword [esi]
test eax, eax
je 0x41387c
js 0x413872
mov edx, dword [ebp - 8]
mov ecx, ebx
push eax
push dword [ebp - 0xc]
call fcn.004136b0
add eax, 2
push 0x591e7c
push eax
call fcn.004eea49
add esp, 0x10
test eax, eax
je 0x413775
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
jne 0x413849
mov esi, dword [ebp - 8]
mov eax, dword [edi + 0x20]
add edi, 0x14
test eax, eax
jne 0x4137e3
push ebx
mov byte [ebp - 1], 0
call fcn.004e1b56
mov al, byte [ebp - 1]
add esp, 4
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x414f20
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5c6150]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004d9fe0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x414f8d
mov eax, dword [ebp - 0x114]
cmp eax, 5
jae 0x414f7d
cmp eax, 4
jne 0x414f8d
cmp dword [ebp - 0x110], 0x5a
jb 0x414f8d
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret
Function at 0x4167d0
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
cmp byte [edi + 0x6fa], 0
jne 0x4168df
cmp dword [edi + 0x7e8], 0
je 0x4168d0
lea esi, [edi + 0x6b4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [ebp + 8], 0
je 0x416842
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi + 0x7e8]
call fcn.0043d770
push 0
push 0
push 0x10
push dword [edi + 4]
mov dword [edi + 0x7e8], 0
call dword [sym.imp.USER32.dll_PostMessageW]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov eax, dword [edi + 0x7e8]
cmp byte [eax + 0x90], 0
jne 0x41686b
push 4
push 0x593308
push str._fTnx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x416834
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi + 0x7e8]
call fcn.0043d770
push 0
push 0
push dword [edi + 0xa08]
mov dword [edi + 0x7e8], 0
push 0x41f420
push 0
push 0
call fcn.004e380e
add esp, 0x18
mov ebx, eax
push 0
push 0
push 0x10
push dword [edi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
test ebx, ebx
je 0x4168c2
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
pop ebp
ret 4
push 0
push 0
push 0x10
push dword [edi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x416930
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x5c6150]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
mov esi, ecx
cmp dword [esi + 0x6ac], 0
je 0x416999
push 5
push dword [esi + 0x5c]
mov dword [esi + 0x6ac], 0
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [esp + 4]
push eax
push dword [esi + 0x5c]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 8]
push 0x12
add eax, 0x29
push eax
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0xc]
push eax
push 0
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esp + 0x14]
pop esi
xor ecx, esp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret 4
Function at 0x4194f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x419561
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x41952f
cmp eax, 2
jne 0x41954b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x41955b
test ecx, ecx
je 0x419556
test cl, 1
jne 0x41954b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x41955b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x41b790
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x5c6150]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x98], eax
cmp dword [esi + 0x120], 0
je 0x41b7cd
mov dword [esi + 0x120], 0
lea edi, [esi + 8]
mov dword [esi + 4], 0
push 1
mov ecx, edi
call fcn.00450b00
cmp byte [edi + 0x114], 0
je 0x41b7ee
add edi, 4
jmp 0x41b7f0
mov edi, dword [edi]
xor eax, eax
mov word [edi + 4], ax
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x88]
push eax
push 1
push 0
push dword [ebp - 0x8c]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41b8a4
push 0x80
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.004d9fe0
add esp, 0xc
mov dword [ebp - 0x90], 0x80
lea eax, [ebp - 0x90]
mov dword [ebp - 0x94], 1
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x94]
push eax
push 0
push dword [ebp - 0x98]
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41b898
lea eax, [ebp - 0x84]
push eax
push 0x5971f4
push esi
call fcn.00450580
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret