joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4519c0
Capabilities:
Delete registry key

Disassembly:
push ebx
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4519c6
call fcn.004ad560
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.00453000
mov edx, dword [esp + 0x28]
lea ecx, [esp + 4]
call fcn.00453000
push dword [esp]
call fcn.00451b47
push dword [esp + 4]
mov edx, 0x538660
pop ecx
call fcn.00453330
je 0x451a95
cmp dword [0x15e7a98], 0
je 0x451a7b
mov eax, 0x537cbc
push eax
push 0xffffffff
call fcn.0048f410
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
je 0x451a79
mov eax, 0x54763a
push eax
push dword [esp + 0xc]
call fcn.0048f46a
mov dword [esp + 0xc], eax
push 0
mov ebx, dword [0x15e7a9c]
or ebx, 0xf003f
push ebx
mov eax, dword [0x15e7a8c]
push eax
push dword [0x15e7a94]
push dword [esp + 0x1c]
call fcn.0048f4c6
mov dword [esp + 0x10], eax
push dword [esp + 8]
call fcn.0048f350
jmp 0x451a90
mov eax, dword [0x15e7a8c]
push eax
push dword [0x15e7a94]
call sub.ADVAPI32.dll_RegDeleteKeyW
mov dword [esp + 0x10], eax
jmp 0x451b1e
lea eax, [esp + 0x18]
push eax
push dword [0x15e7a94]
push dword [esp + 0xc]
call sub.ADVAPI32.dll_RegConnectRegistryW
mov dword [esp + 0x14], eax
cmp dword [0x15e7a98], 0
je 0x451b0b
mov eax, 0x537cbc
push eax
push 0xffffffff
call fcn.0048f410
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
je 0x451b09
push 0
mov ebx, dword [0x15e7a9c]
or ebx, 0xf003f
push ebx
mov eax, dword [0x15e7a8c]
push eax
push dword [esp + 0x24]
mov eax, 0x54763a
push eax
push dword [esp + 0x1c]
call fcn.0048f523
mov dword [esp + 0x10], eax
push dword [esp + 8]
call fcn.0048f350
jmp 0x451b1e
mov eax, dword [0x15e7a8c]
push eax
push dword [esp + 0x1c]
call sub.ADVAPI32.dll_RegDeleteKeyW
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
and ebx, ebx
jne 0x451b2d
mov eax, 1
jmp 0x451b2f
xor eax, eax
push dword [esp + 4]
call fcn.004ad5c0
push dword [esp]
call fcn.004ad5c0
add esp, 0x1c
pop ebx
ret 8
Function at 0x451d49
Capabilities:
Get graphical window text

Disassembly:
push ebx
xor eax, eax
push eax
call fcn.004ad560
push dword [esp + 0xc]
call fcn.004533a0
mov ebx, dword [0x15e7ad4]
and ebx, ebx
jne 0x451d85
push 0
push 0
call sub.USER32.dll_FindWindowW
mov dword [0x15e7ad8], eax
mov dword [0x15e7ad4], 1
jmp 0x451d9a
push 2
push dword [0x15e7ad8]
call sub.USER32.dll_GetWindow
mov dword [0x15e7ad8], eax
mov ebx, dword [0x15e7ad8]
and ebx, ebx
je 0x451e34
push 0xfffffff0
push dword [0x15e7ad8]
call sub.USER32.dll_GetWindowLongW
mov ebx, eax
and ebx, 0x10000000
cmp ebx, 0x10000000
jne 0x451e32
push 0xffffffec
push dword [0x15e7ad8]
call sub.USER32.dll_GetWindowLongW
mov ebx, eax
and ebx, 0x80
cmp ebx, 0x80
je 0x451e32
push edx
call fcn.004ad3c0
pop edx
push eax
push edx
call fcn.004ad3c0
pop edx
push eax
push 0x100
call fcn.004aae10
lea eax, [esp + 4]
push eax
call fcn.004ad400
push 0x100
push dword [esp + 4]
push dword [0x15e7ad8]
call sub.USER32.dll_GetWindowTextW
push dword [esp]
mov edx, 0x5370c4
pop ecx
call fcn.00453330
jne 0x451e32
jmp 0x451e4c
jmp 0x451e3e
mov dword [0x15e7ad4], 0
mov ebx, dword [0x15e7ad8]
and ebx, ebx
jne 0x451d5b
mov edx, dword [esp]
push edx
call fcn.004ad3c0
pop edx
push eax
push edx
call fcn.004ad490
pop eax
push eax
call fcn.00453370
pop edx
add eax, edx
jmp 0x451e73
push dword [esp]
call fcn.004ad5c0
add esp, 4
pop ebx
ret

Function at 0x451e80
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
mov edx, 0x19
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x451e87
call fcn.004ad560
mov edx, dword [esp + 0x70]
lea ecx, [esp]
call fcn.00453000
lea eax, [esp + 4]
lea eax, [esp + 0x48]
lea ebp, [esp + 4]
mov dword [ebp], 0x44
mov dword [ebp + 0x2c], 1
mov ebx, dword [esp + 0x74]
and ebx, 2
and ebx, ebx
je 0x451ed6
lea ebp, [esp + 4]
mov word [ebp + 0x30], 0
jmp 0x451ee0
lea ebp, [esp + 4]
mov word [ebp + 0x30], 1
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x20]
push 0
call sub.KERNEL32.dll_CreateProcessW
mov dword [esp + 0x58], eax
cmp dword [esp + 0x58], 0
je 0x451f69
mov ebx, dword [esp + 0x74]
and ebx, 1
and ebx, ebx
je 0x451f60
lea ebp, [esp + 0x48]
push dword [ebp + 4]
pop eax
mov dword [esp + 0x5c], eax
push 1
call fcn.00497bd3
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x60]
call sub.KERNEL32.dll_GetExitCodeThread
mov ebx, dword [esp + 0x60]
cmp ebx, 0x103
je 0x451f5e
jmp 0x451f60
jmp 0x451f38
lea ebp, [esp + 0x48]
mov eax, dword [ebp]
jmp 0x451f6b
xor eax, eax
push dword [esp]
call fcn.004ad5c0
add esp, 0x64
pop ebx
pop ebp
ret 8
Function at 0x451f94
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
push ebx
mov edx, 0xd
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x451f9b
call fcn.004ad560
mov byte [esp], 0
lea eax, [esp + 4]
push eax
push 0x28
call sub.KERNEL32.dll_GetCurrentProcess
push eax
call sub.ADVAPI32.dll_OpenProcessToken
and eax, eax
je 0x452055
lea eax, [esp + 8]
lea eax, [esp + 8]
push eax
mov eax, 0x53f4b0
push eax
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueW
and eax, eax
je 0x45204c
lea eax, [esp + 0x10]
lea ebp, [esp + 0x10]
mov dword [ebp], 1
lea ebp, [esp + 8]
push dword [ebp]
lea ebp, [esp + 0x14]
push ebp
pop ebp
pop eax
mov dword [ebp + 4], eax
lea ebp, [esp + 8]
push dword [ebp + 4]
lea ebp, [esp + 0x14]
push ebp
pop ebp
pop eax
mov dword [ebp + 8], eax
push ebp
pop ebp
mov dword [ebp + 0xc], 2
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x24]
push eax
push 0x10
lea eax, [esp + 0x1c]
push eax
push 0
push dword [esp + 0x18]
call sub.ADVAPI32.dll_AdjustTokenPrivileges
push eax
pop eax
mov byte [esp], al
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
movsx eax, byte [esp]
movsx eax, al
jmp 0x452060
add esp, 0x34
pop ebx
pop ebp
ret

Function at 0x453c15
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x453cad
push edi
push 0x1661214
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x15e7bb4]
test edi, edi
je 0x453c81
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x453c7a
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x15e7bb4
call fcn.004ad2d7
pop ecx
pop ecx
jmp 0x453c7c
mov edi, dword [edi]
test edi, edi
jne 0x453c51
pop ebx
mov eax, dword [0x15e3be0]
mov esi, eax
inc eax
push 0x10
push 0x15e7bb4
mov dword [0x15e3be0], eax
call fcn.004ad317
pop ecx
pop ecx
push 0x1661214
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8

Function at 0x453cb5
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
push edi
call fcn.00453b88
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, 0x1661214
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x15e7bb4]
jmp 0x453ce6
cmp dword [esi + 0xc], edi
je 0x453cec
mov esi, dword [esi]
test esi, esi
jne 0x453cdf
jmp 0x453d04
add esi, 8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x15e7bb4
call fcn.004ad2d7
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret 4
Function at 0x453fc4
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x454019
push dword [esp + 0x10]
push 0x453f43
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x15e7bbc]
test esi, esi
je 0x454072
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x454011
cmp byte [esi + 0x10], 0
je 0x454011
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x453fed
jmp 0x454072
mov esi, dword [0x15e7bbc]
test esi, esi
je 0x454072
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x45406b
cmp byte [esi + 0x11], 0
je 0x454047
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x45405e
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x15e7bbc
call fcn.004ad2d7
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x454026
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x46e9aa
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x1661240]
call fcn.004ac994
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x46eaaa
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x46ea00
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x46e9f8
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x46ea40
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x46ea82
push 0x22
pop edx
cmp cx, dx
je 0x46ea32
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x46ea22
xor ecx, ecx
cmp word [eax], cx
je 0x46ea82
mov ecx, eax
add eax, 2
jmp 0x46ea84
test dx, dx
je 0x46ea8a
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x46ea32
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x46ea78
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x46ea82
cmp cx, dx
je 0x46ea75
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x46ea65
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x46ea4a
jmp 0x46ea32
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x46ea8c
xor edx, edx
cmp dword [ebp], ebx
jne 0x46ea95
test edi, edi
jne 0x46eab2
test edx, edx
je 0x46ea9a
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x46e9ee
test edi, edi
jne 0x46eac3
mov eax, ebx
jmp 0x46eac7
test esi, esi
je 0x46eac3
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x46eac7
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x46ec2c
Capabilities:
Read file on windows

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x46ec80
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push 0
push eax
mov eax, dword [esp + 0x20]
sub eax, esi
push eax
lea eax, [esi + ebp]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46ec6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x46ec7a
add esi, dword [esp + 0x10]
cmp esi, dword [esp + 0x18]
jl 0x46ec3f
jmp 0x46ec7e
add esi, dword [esp + 0x10]
pop ebp
pop ebx
mov eax, esi
pop esi
ret 0xc
Function at 0x46ec86
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
cmp dword [esp + 0x24], 0x18
mov ebx, eax
je 0x46ed45
cmp dword [esp + 0x24], 2
je 0x46ed45
push 0x2000
push ebp
push dword [0x15e7720]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
jmp 0x46ed14
cmp dword [esp + 0x18], 2
jne 0x46ed30
cmp dword [esp + 0x28], 0xffffffff
je 0x46ecd8
cmp ebp, dword [esp + 0x28]
jae 0x46ed30
add ebp, 2
test ebx, ebx
jne 0x46ecfd
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x15e7720]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x46ed30
cmp ax, 0xd
je 0x46ed14
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46ecc4
push dword [esp + 0x2c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.004fa630
jmp 0x46edd7
push eax
push 0
push dword [0x15e7720]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp dword [esp + 0x28], 0xffffffff
je 0x46ed63
cmp ebp, dword [esp + 0x28]
jae 0x46edbb
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46edbb
cmp dword [esp + 0x18], 1
jne 0x46edbb
inc ebp
test ebx, ebx
jne 0x46eda8
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x15e7720]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x46edbb
cmp al, 0xd
je 0x46ed56
mov byte [esi + edi], al
inc edi
dec ebx
jmp 0x46ed56
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x2c]
mov byte [esi + edi], 0
push esi
jne 0x46edd2
call fcn.004fa680
jmp 0x46edd7
call fcn.004fa5d0
push esi
push 0
push dword [0x15e7720]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x46f046
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x34
mov eax, dword [esp + 0x38]
push ebp
xor ebp, ebp
push edi
cmp dword [eax + 8], 1
mov edi, ebp
mov dword [esp + 0x10], edi
mov dword [esp + 8], ebp
jne 0x46f1e5
push esi
mov esi, dword [esp + 0x48]
test esi, esi
je 0x46f1e4
push ebx
push ebp
push pe_nt_image_headers32
push 3
push ebp
push 7
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x46f1e3
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x200000
push ebp
push dword [0x15e7720]
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x46f1dc
call fcn.004bf780
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x46f1c9
lea eax, [esp + 0x20]
push eax
push esi
call sub.MSVCRT.dll__wstat
push 0x1a4
push edi
call fcn.004bfc50
lea eax, [esp + 0x30]
push eax
push edi
call fcn.004bfdd0
mov esi, dword [esp + 0x60]
add esp, 0x18
mov eax, dword [esi + 0x20]
cmp dword [eax + 8], 1
je 0x46f115
cmp dword [eax + 8], 3
je 0x46f115
push dword [esp + 0x50]
push edi
call fcn.004bf520
pop ecx
pop ecx
jmp 0x46f133
push dword [esp + 0x50]
call fcn.004fa540
mov esi, eax
push esi
push edi
call fcn.004bfc40
pop ecx
pop ecx
push esi
call fcn.004fa530
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x14]
cdq
push edx
push eax
push edi
call fcn.004bfca0
push 0x8000
push edi
call fcn.004bfaf0
push edi
push dword [esi]
call fcn.004bff40
add esp, 0x1c
lea eax, [esp + 0x4c]
push 0
push eax
push 0x200000
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x4c]
test eax, eax
jle 0x46f1b0
mov edi, dword [esp + 0x10]
push eax
push ebp
push dword [esi]
call fcn.004bff00
add esp, 0xc
cmp eax, dword [esp + 0x4c]
jne 0x46f1a8
add edi, dword [esp + 0x4c]
lea eax, [esp + 0x4c]
push 0
push eax
push 0x200000
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x4c]
test eax, eax
jg 0x46f176
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x10], eax
jne 0x46f1c2
mov dword [esp + 0x18], 1
push edi
call fcn.004bf6b0
pop ecx
push ebp
push 0
push dword [0x15e7720]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
mov eax, edi
pop edi
pop ebp
add esp, 0x34
ret 0xc

Function at 0x46f29f
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
test esi, esi
je 0x46f301
cmp word [esi], di
je 0x46f301
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.004c0950
push dword [esp + 0x1c]
mov ebx, eax
push ebx
call dword [esp + 0x20]
push esi
push ebx
call fcn.004c0b60
add esp, 0x10
test eax, eax
jne 0x46f300
push 0x24
push 8
push dword [0x15e7720]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x14], edi
mov edi, ecx
mov dword [ecx], ebx
mov dword [ecx + 8], 1
mov dword [ecx + 0x20], eax
mov dword [eax + 4], ecx
pop ebx
mov eax, edi
pop edi
pop esi
ret 0x10
Function at 0x46f914
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
push edi
xor edi, edi
mov ebp, edi
cmp dword [esp + 0x10], edi
je 0x46f99a
push esi
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push 0x80000000
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x46f999
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push edi
push dword [0x15e7720]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x46f991
push ebp
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x18], ebx
jne 0x46f982
push ebx
push edi
push dword [esp + 0x1c]
call fcn.0046fdc2
mov ebp, eax
push edi
push 0
push dword [0x15e7720]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
pop edi
mov eax, ebp
pop ebp
ret 8

Function at 0x46f9a1
Capabilities:
Create thread

Disassembly:
push ecx
push ecx
push ebx
push ebp
push edi
push dword [esp + 0x18]
xor ebp, ebp
push dword [0x1661298]
mov ebx, ebp
call fcn.004acbd0
mov edi, eax
test edi, edi
je 0x46fa60
push esi
push dword [esp + 0x1c]
call fcn.0046fb41
mov esi, dword [edi + 8]
lea eax, [esp + 0x14]
push ebp
push ebp
push ebp
push eax
lea eax, [esp + 0x20]
mov dword [edi + 4], 1
mov ecx, dword [esi]
push eax
mov eax, dword [edi + 0xc]
cdq
sub eax, edx
sar eax, 1
push eax
push ebp
push esi
call dword [ecx + 0x2c]
pop esi
test eax, eax
jne 0x46fa23
mov eax, dword [edi + 0xc]
cdq
sub eax, edx
sar eax, 1
push eax
push dword [esp + 0x10]
push dword [edi]
call fcn.0046fd40
mov eax, dword [edi + 8]
add esp, 0xc
mov ecx, dword [eax]
push ebp
push ebp
push dword [esp + 0x18]
push dword [esp + 0x18]
push eax
call dword [ecx + 0x4c]
lea eax, [esp + 0x18]
push eax
push ebp
push edi
push 0x46fa6a
push 0x2000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x46fa49
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
mov eax, dword [edi + 8]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov ecx, dword [edi + 8]
push 1
push ebp
push ebp
mov edx, dword [ecx]
push ecx
call dword [edx + 0x30]
pop edi
pop ebp
mov eax, ebx
pop ebx
pop ecx
pop ecx
ret 4
Function at 0x48f170
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x165fef0], 0
jne 0x48f17e
call fcn.0048f0f0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x165fef4]
call esi
test eax, eax
jne 0x48f1a1
call fcn.0048f0f0
push dword [0x165fef4]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x48f1b0
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x48f210
mov ebx, 0x10
test edi, edi
jns 0x48f219
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x48f1e2
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x48f230
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x165fef0], 0
jne 0x48f23e
call fcn.0048f0f0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x165fef4]
call esi
mov edx, eax
test edx, edx
jne 0x48f265
call fcn.0048f0f0
push dword [0x165fef4]
call esi
mov edx, eax
mov ebx, dword [edx]
mov esi, dword [edx + 4]
mov ebp, dword [esp + 0x14]
inc ebp
mov edi, dword [edx + ebx*4 + 0x4c]
mov eax, dword [edx + ebx*4 + 8]
mov ecx, dword [edx + esi*4 + 8]
ror edi, 0xd
add edi, dword [edx + esi*4 + 0x4c]
dec esi
ror eax, 5
add eax, ecx
mov dword [edx + ebx*4 + 8], edi
mov dword [edx + ebx*4 + 0x4c], eax
dec ebx
jns 0x48f298
mov ebx, 0x10
test esi, esi
jns 0x48f2a1
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x48f2b0
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x491b14
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x166120c]
call fcn.004acbd0
mov ebx, eax
test ebx, ebx
je 0x491b78
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x491b3d
push dword [esp + 0xc]
push ebx
call eax
jmp 0x491b78
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.004ad720
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.004ad800
pop edi
pop esi
pop ebx
ret 8
Function at 0x492640
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x16615dc]
call fcn.004ac994
xor ebp, ebp
mov esi, eax
cmp dword [0x1660298], ebp
jne 0x49271c
xor ebx, ebx
inc ebx
mov dword [0x1660298], ebx
call fcn.004974ed
mov edi, 0xa4
push edi
push ebp
push 0x16602a0
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x16602a0], 0x13
lea eax, [esp + 0x10]
mov dword [0x16602a4], edi
mov dword [0x16602b0], 0x49258b
mov dword [0x16602b4], 0x4928b6
push eax
mov dword [0x1660308], 0x492566
mov dword [0x166030c], 0x492801
mov dword [0x16602ac], 0x492541
mov dword [0x1660330], 0x4925a6
mov dword [0x1660344], ebx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x49271c
cmp dword [esp + 0x20], ebx
je 0x492704
cmp dword [esp + 0x20], 2
jne 0x49271c
cmp dword [esp + 0x14], 5
jae 0x49270c
mov dword [0x1660344], ebp
jmp 0x49271c
jne 0x49271c
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0x1660344], eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
call fcn.0049c9d3
mov eax, dword [esp + 0x140]
push ebp
push dword [0x15e7724]
or eax, 0x50010000
push 0xffffffffffffffff
push dword [esi]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push eax
push ebp
push str.BUTTON
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x4927f2
push dword [esp + 0x128]
push dword [0x166120c]
call fcn.004acc0f
mov edi, dword [esp + 0x13c]
mov esi, eax
mov dword [esi + 0x10], edi
test edi, edi
je 0x4927c1
push edi
call fcn.004a7b36
test eax, eax
je 0x4927c1
push ebp
push ebp
push edi
call fcn.004a76f4
mov dword [esi + 0x18], eax
jmp 0x4927c4
mov dword [esi + 0x18], ebp
push 0x492290
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x16602a0
push ebx
push esi
push dword [esp + 0x134]
mov dword [0x166029c], eax
call fcn.00496b7a
mov ebx, eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x114
ret 0x1c

Function at 0x4944fc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push 0
push 0
push 0x1304
push dword [ebp]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x49456e
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
cmp ebx, 0xffffffff
jne 0x494525
mov ebx, eax
push dword [ebp]
call fcn.00493c7e
push ebx
push dword [ebp]
mov edi, eax
call fcn.00493c55
add esp, 0xc
mov esi, eax
push 0
push ebx
push 0x130c
push dword [ebp]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
push dword [ebp]
call fcn.0049458e
pop ecx
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret 8