joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a740
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x70
mov esi, ecx
mov eax, dword [0x520014]
xor eax, ebp
mov dword [esp + 0x68], eax
mov dword [ecx], fcn.00421900
cmp dword [ecx + 0xc0], 0
je 0x41a790
push dword [esi + 0xc4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xea60
push dword [esi + 0xc0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x41a89f
cmp byte [esi + 0x12f], 0
jns 0x41a7a7
push dword [esi + 0x124]
call fcn.00489982
add esp, 4
cmp byte [esi + 0x123], 0
jns 0x41a7be
push dword [esi + 0x118]
call fcn.00489982
add esp, 4
mov ecx, dword [esi + 0x110]
mov dword [esi + 0x110], 0
test ecx, ecx
je 0x41a7d9
push 1
call fcn.00421930
cmp byte [esi + 0x10b], 0
jns 0x41a7f0
push dword [esi + 0x100]
call fcn.00489982
add esp, 4
cmp byte [esi + 0xbb], 0
jns 0x41a807
push dword [esi + 0xb0]
call fcn.00489982
add esp, 4
cmp byte [esi + 0xaf], 0
jns 0x41a81e
push dword [esi + 0xa4]
call fcn.00489982
add esp, 4
cmp byte [esi + 0xa3], 0
jns 0x41a835
push dword [esi + 0x98]
call fcn.00489982
add esp, 4
cmp byte [esi + 0x97], 0
jns 0x41a84c
push dword [esi + 0x8c]
call fcn.00489982
add esp, 4
cmp byte [esi + 0x8b], 0
jns 0x41a863
push dword [esi + 0x80]
call fcn.00489982
add esp, 4
cmp byte [esi + 0x7f], 0
jns 0x41a874
push dword [esi + 0x74]
call fcn.00489982
add esp, 4
lea ecx, [esi + 0x60]
call fcn.004d2b30
cmp byte [esi + 8], 0
je 0x41a88c
add esi, 0xc
mov ecx, esi
call fcn.004140d0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.0048a678
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [esp + 4]
push eax
push ebx
call fcn.004b86f0
add esp, 8
lea edi, [esp + 0x10]
mov ecx, edi
push ebx
push 0x1dd
push str.Installer
push 1
call fcn.004b84f0
lea ecx, [esp + 0x4c]
push 0x50499d
push str.Failed_to_wait_for_install_async_exit._Terminate_install_thread_
call fcn.004b45d0
mov ecx, edi
call fcn.004b8530
cmp byte [ebx + 0xb], 0
jns 0x41a8f7
push dword [esp + 4]
call fcn.00489982
add esp, 4
push 0
push dword [esi + 0xc0]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x41a790

Function at 0x41a950
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [ecx + 0xc4]
call edi
push dword [esi + 0xc8]
call edi
xor eax, eax
push eax
push eax
push esi
push 0x41a990
push eax
push eax
call fcn.00498690
add esp, 0x18
mov dword [esi + 0xc0], eax
pop esi
pop edi
pop ebp
ret
Function at 0x420a40
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x78
mov eax, dword [0x520014]
xor eax, ebp
mov dword [esp + 0x70], eax
call fcn.00410430
test al, al
je 0x420ac9
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
push 0x5057f0
push str.BROWSER_SETUP_RESOURCE
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x420ac9
mov ebx, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
xor ebx, ebx
test edi, edi
je 0x420acb
mov esi, eax
test eax, eax
je 0x420acb
mov eax, dword [ebp + 8]
lea ebx, [esp + 0x6c]
mov dword [ebx], 0xffffffff
push edi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push ebx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebx], esi
jne 0x420ae2
mov bl, 1
jmp 0x420acb
xor ebx, ebx
mov ecx, dword [esp + 0x70]
xor ecx, ebp
call fcn.0048a678
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edi, [esp + 4]
push eax
push edi
call fcn.004b86f0
add esp, 8
lea esi, [esp + 0x10]
mov ecx, esi
push edi
push 0x504
push str.ExtractBrowserSetupResource
push 1
call fcn.004b84f0
lea ecx, [esp + 0x4c]
push 0x504fd6
push str.Write_failed._Roll_back_write_operation.
call fcn.004b45d0
mov ecx, esi
call fcn.004b8530
cmp byte [edi + 0xb], 0
jns 0x420b3a
push dword [esp + 4]
call fcn.00489982
add esp, 4
xor ebx, ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x420acb

Function at 0x421060
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov dword [ecx], fcn.004210d0
cmp dword [ecx + 4], 0
je 0x42108a
cmp byte [esi + 0x14], 0
jne 0x421081
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, esi
pop esi
pop ebp
jmp fcn.004210f0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x42109f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], 0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4210b4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x4210c9
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 8], 0
pop esi
pop ebp
ret
Function at 0x4210f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x70
mov esi, ecx
mov eax, dword [0x520014]
xor eax, ebp
mov dword [esp + 0x68], eax
push 0x7530
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x421185
mov eax, dword [esi + 4]
test eax, eax
je 0x421133
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x421148
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], 0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x42115d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x421172
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 8], 0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.0048a678
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov byte [esi + 0x15], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [esp + 4]
push eax
push ebx
call fcn.004b86f0
add esp, 8
lea edi, [esp + 0x10]
mov ecx, edi
push ebx
push 0x6aa
push str.EnsureProcessFinished
push 1
call fcn.004b84f0
lea ecx, [esp + 0x4c]
push 0x50534d
push str.The_elevated_installer_hangs_and_must_be_forcibly_terminated.
call fcn.004b45d0
mov ecx, edi
call fcn.004b8530
cmp byte [ebx + 0xb], 0
jns 0x4211e1
push dword [esp + 4]
call fcn.00489982
add esp, 4
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x42111e
Function at 0x421d90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
call fcn.00470620
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea ecx, [esi + 0x10]
call fcn.00470620
lea ecx, [esi + 0x14]
mov eax, dword [ebp + 0x18]
cmp byte [eax + 0xb], 0
js 0x421dcc
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
movsd xmm0, qword [eax]
movsd qword [ecx], xmm0
jmp 0x421dd6
push dword [eax + 4]
push dword [eax]
call fcn.0046cbe0
lea edi, [ebp + 8]
mov byte [esi + 0x20], 1
mov ebx, dword [esi + 8]
cmp ebx, dword [esi + 0xc]
je 0x421df5
mov ecx, ebx
push edi
call fcn.004252f0
add ebx, 0x10
mov dword [esi + 8], ebx
jmp 0x421dfe
lea ecx, [esi + 4]
push edi
call fcn.004224f0
xor eax, eax
push eax
push eax
push esi
push 0x421f10
push eax
push eax
call fcn.00498690
add esp, 0x18
mov ecx, edi
call fcn.004252c0
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 0x14

Function at 0x422410
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov esi, ecx
mov ebx, dword [ebp + 8]
mov eax, dword [0x520014]
xor eax, ebp
mov dword [esp + 0x78], eax
xor eax, eax
dec eax
lea edi, [esp + 0x10]
mov dword [edi + 0x64], eax
mov dword [edi + 0x60], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [edi + 0x50], xmm0
movdqa xmmword [edi + 0x40], xmm0
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
mov ecx, edi
call fcn.004d1a90
cmp byte [ebx + 0xb], 0
jns 0x42246c
mov ebx, dword [ebx]
mov eax, dword [ebp + 0xc]
mov ecx, edi
push eax
push ebx
call fcn.004d1db0
test al, al
je 0x4224cb
mov edi, dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x10]
call fcn.004d2220
mov ebx, eax
test edi, edi
je 0x4224aa
test ebx, ebx
je 0x4224aa
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0xc]
cmp eax, edi
ja 0x4224cb
test ebx, ebx
je 0x4224b6
cmp byte [esi + 0x20], 0
jne 0x422489
jmp 0x4224cb
cmp byte [esi + 0x20], 0
je 0x4224cb
lea ecx, [esp + 0x10]
push 0
call fcn.00448530
mov ebx, eax
jmp 0x4224cd
xor ebx, ebx
lea ecx, [esp + 0x10]
call fcn.004483a0
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.0048a678
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x4254e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x520014]
xor eax, ebp
mov dword [ebp - 0x10], eax
movzx esi, cx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
push 0xa
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
xor esi, esi
test eax, eax
je 0x42557f
mov ebx, eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42557d
mov esi, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
je 0x42557d
mov edi, eax
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x425576
push ebx
push esi
push eax
call fcn.0048cc70
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea esi, [ebp - 0x14]
mov dword [esi], 0xffffffff
push esi
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov esi, dword [esi]
jmp 0x42557f
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048a678
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x425c70
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, dword [ebp + 0xc]
mov eax, dword [0x520014]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
dec eax
lea edi, [ebp - 0x1c]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
inc eax
mov ecx, edi
push eax
call fcn.004b4f10
mov eax, dword [edi]
mov ecx, dword [edi + 4]
sub ecx, eax
sar ecx, 1
push ecx
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi]
mov edi, dword [edi + 4]
add edi, 0xfffffffe
mov ebx, edi
mov dword [ebp - 0x20], eax
sub ebx, eax
js 0x425d43
sar ebx, 1
cmp ebx, 4
ja 0x425cd8
mov esi, dword [ebp + 8]
mov byte [esi + 0xb], bl
mov eax, esi
jmp 0x425cff
lea esi, [ebx + 8]
and esi, 0xfffffff8
js 0x425d4b
lea eax, [esi + esi]
push eax
call fcn.00489952
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
or esi, 0x80000000
mov dword [ecx + 8], esi
mov esi, ecx
mov dword [ecx + 4], ebx
mov ebx, dword [ebp - 0x20]
cmp ebx, edi
je 0x425d18
mov ecx, ebx
movzx edx, word [ecx]
mov word [eax], dx
add ecx, 2
add eax, 2
cmp edi, ecx
jne 0x425d08
mov word [eax], 0
test ebx, ebx
je 0x425d2f
mov dword [ebp - 0x18], ebx
push dword [ebp - 0x1c]
call fcn.00489982
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048a678
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 8]
call fcn.004c9f10
call fcn.0049d800
Function at 0x428550
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
movzx ebx, word [ebp + 0x10]
mov esi, dword [ebp + 0xc]
shr esi, 4
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
inc esi
movzx eax, si
push ebx
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x4285bd
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4285bd
mov edi, eax
mov ecx, dword [ebp + 0xc]
and ecx, 0xf
xor eax, eax
mov esi, dword [ebp + 8]
movzx ebx, word [edi]
test ebx, ebx
je 0x4285b0
cmp ecx, eax
je 0x4285d1
add edi, 2
lea edi, [edi + ebx*2]
jmp 0x4285b3
add edi, 2
inc eax
cmp eax, 0x10
jne 0x42859d
xor eax, eax
jmp 0x4285c2
xor eax, eax
mov esi, dword [ebp + 8]
mov dword [esi + 4], eax
mov dword [esi], eax
mov dword [esi + 8], eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
cmp bx, 4
ja 0x4285de
mov byte [esi + 0xb], bl
mov eax, esi
jmp 0x428607
lea esi, [ebx + 8]
and esi, 0xfffffff8
lea eax, [esi + esi]
push eax
call fcn.00489952
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
or esi, 0x80000000
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], esi
mov esi, dword [ebp + 8]
mov dword [esi + 4], ebx
add ebx, ebx
xor ecx, ecx
movzx edx, word [edi + ecx + 2]
mov word [eax + ecx], dx
add ecx, 2
cmp ebx, ecx
jne 0x42860b
mov word [eax + ecx], 0
jmp 0x4285ca

Function at 0x428630
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, dword [ebp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
push 0x5057f0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42868d
mov esi, eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42868d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x42868d
mov ebx, eax
cmp eax, 0xfffffff0
jae 0x4286d6
cmp ebx, 0xa
ja 0x42869c
mov esi, dword [ebp + 8]
mov byte [esi + 0xb], bl
mov eax, esi
jmp 0x4286be
xor eax, eax
mov esi, dword [ebp + 8]
mov dword [esi + 4], eax
mov dword [esi], eax
mov dword [esi + 8], eax
jmp 0x4286cf
lea esi, [ebx + 0x10]
and esi, 0xfffffff0
push esi
call fcn.00489952
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
or esi, 0x80000000
mov dword [ecx + 8], esi
mov esi, ecx
mov dword [ecx + 4], ebx
xor ecx, ecx
mov dl, byte [edi + ecx]
mov byte [eax + ecx], dl
inc ecx
cmp ebx, ecx
jne 0x4286c0
mov byte [eax + ecx], 0
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 8]
call fcn.004c9f10
int3
Function at 0x428b30
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movsx ecx, ax
cmp ecx, 0x41e
jg 0x428b6d
add eax, 0xfffffbfc
cmp ax, 0x15
ja case.0x428b5a.2
movzx eax, ax
jmp dword [eax*4 + 0x505ffc]
mov ecx, esi
push str.zh_TW
jmp 0x428c48
movzx eax, ax
cmp ecx, 0x442
jle 0x428b9e
cmp ecx, 0x815
jg 0x428bc7
cmp eax, 0x443
je 0x428c26
cmp eax, 0x804
jne case.0x428b5a.2
mov ecx, esi
push str.zh_CN
jmp 0x428c48
cmp eax, 0x41f
je 0x428c2f
cmp eax, 0x422
je 0x428c38
cmp eax, 0x43f
jne case.0x428b5a.2
mov ecx, esi
push 0x50584a
jmp 0x428c48
cmp eax, 0x816
je 0x428c41
cmp eax, 0xc0a
jne case.0x428b5a.2
mov ecx, esi
push 0x505826
jmp 0x428c48
mov ecx, esi
push 0x505853
jmp 0x428c48
mov ecx, esi
push 0x505850
jmp 0x428c48
mov ecx, esi
push 0x505823
jmp 0x428c48
mov ecx, esi
push 0x505829
jmp 0x428c48
mov ecx, esi
push 0x50582c
jmp 0x428c48
mov ecx, esi
push 0x50582f
jmp 0x428c48
mov ecx, esi
push str.pt_BR
jmp 0x428c48
mov ecx, esi
push 0x50581a
jmp 0x428c48
mov ecx, esi
push 0x50584d
jmp 0x428c48
mov ecx, esi
push 0x505820
jmp 0x428c48
mov ecx, esi
push 0x50581d
jmp 0x428c48
mov ecx, esi
push str.pt_PT
call fcn.004b43f0
mov eax, esi
pop esi
pop ebp
ret

Function at 0x429020
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov ebx, dword [ebp + 8]
mov esi, 0x208
push esi
call fcn.00489952
add esp, 4
mov edi, eax
push esi
push 0
push eax
call fcn.0048d770
add esp, 0xc
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
dec eax
cmp eax, 0x102
ja 0x42907b
mov edx, esi
add edx, esi
js 0x4290ec
mov ebx, edx
sar ebx, 1
cmp ebx, 4
ja 0x429087
mov eax, dword [ebp + 8]
mov byte [eax + 0xb], bl
mov ebx, eax
jmp 0x4290b9
xor eax, eax
mov dword [ebx + 4], eax
mov dword [ebx], eax
mov dword [ebx + 8], eax
jmp 0x4290d5
mov dword [ebp - 0x14], edx
lea eax, [ebx + 8]
and eax, 0xfffffff8
js 0x4290f4
mov dword [ebp - 0x10], eax
add eax, eax
push eax
call fcn.00489952
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp - 0x10]
or edx, 0x80000000
mov dword [ecx + 8], edx
mov dword [ecx + 4], ebx
mov ebx, ecx
mov edx, dword [ebp - 0x14]
lea ecx, [edi + esi*2]
cmp ecx, edi
je 0x4290d0
lea esi, [eax + esi*2]
push edx
push edi
push eax
call fcn.0048cc70
add esp, 0xc
mov eax, esi
mov word [eax], 0
test edi, edi
je 0x4290e2
push edi
call fcn.00489982
add esp, 4
mov eax, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 8]
call fcn.004c9f10
call fcn.0049d800
int3
Function at 0x429100
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [0x520014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
cmp byte [eax + 0xb], 0
jns 0x42911f
mov eax, dword [eax]
sub esp, 0x1c
movaps xmm0, xmmword [0x504680]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor ebx, ebx
cmp eax, 0xffffffff
je 0x42918e
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
movzx eax, byte [edi + 0xb]
mov ecx, edi
test al, al
jns 0x429165
mov eax, dword [edi + 4]
mov ecx, dword [edi]
lea edx, [ebp - 0x14]
push ebx
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42918a
mov eax, dword [ebp - 0x14]
movzx ecx, byte [edi + 0xb]
test cl, cl
jns 0x429185
mov ecx, dword [edi + 4]
cmp eax, ecx
sete bl
test esi, esi
je 0x429195
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048a678
mov eax, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4291b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x520014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
cmp byte [eax + 0xb], 0
jns 0x4291cf
mov eax, dword [eax]
sub esp, 0x1c
movaps xmm0, xmmword [0x5057e0]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp eax, 0xffffffff
je 0x42928b
xor edi, edi
push edi
mov dword [ebp - 0x24], esi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov esi, 0
test eax, eax
je 0x42924c
js 0x429324
push ebx
call fcn.00489952
add esp, 4
mov esi, eax
mov dword [ebp - 0x1c], eax
lea edi, [eax + ebx]
mov dword [ebp - 0x14], edi
push ebx
push 0
push eax
call fcn.0048d770
add esp, 0xc
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x20]
xor ecx, ecx
mov dword [eax], ecx
push ecx
push eax
push ebx
push esi
mov esi, dword [ebp - 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x42929a
cmp ebx, dword [ebp - 0x20]
jne 0x42929a
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov ecx, ebx
sub ecx, esi
cmp ecx, 0xfffffff0
jae 0x42931c
cmp ecx, 0xa
ja 0x4292a9
mov eax, dword [ebp + 8]
mov byte [eax + 0xb], cl
jmp 0x4292d5
xor eax, eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov dword [ecx + 8], eax
jmp 0x429300
xor eax, eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov dword [ecx + 8], eax
jmp 0x4292e9
lea edi, [ecx + 0x10]
and edi, 0xfffffff0
push edi
mov dword [ebp - 0x28], ecx
call fcn.00489952
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
or edi, 0x80000000
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], edi
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
mov dword [edi + 4], ecx
cmp esi, ebx
je 0x4292e3
mov cl, byte [esi]
mov byte [eax], cl
inc esi
inc eax
cmp ebx, esi
jne 0x4292d9
mov byte [eax], 0
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4292fc
mov dword [ebp - 0x18], eax
push eax
call fcn.00489982
add esp, 4
test esi, esi
je 0x429307
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048a678
mov eax, dword [ebp + 8]
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 8]
call fcn.004c9f10
lea ecx, [ebp - 0x1c]
call fcn.004b41f0
int3
Function at 0x429330
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [ebp + 0xc]
movzx ebx, byte [esi + 0xb]
mov eax, ebx
test bl, bl
jns 0x429347
mov eax, dword [esi + 4]
test eax, eax
je 0x4293a3
mov eax, 0x208
push eax
call fcn.00489952
add esp, 4
mov edi, eax
xor eax, eax
mov ecx, 0x208
push ecx
push eax
push edi
call fcn.0048d770
add esp, 0xc
test bl, bl
jns 0x429373
mov esi, dword [esi]
push edi
xor eax, eax
push eax
push 0x5058ec
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4293b5
mov ecx, 0x208
add ecx, edi
xor eax, eax
cmp word [edi + eax], 0
je 0x4293c4
add eax, 2
cmp eax, 0x208
jne 0x429390
jmp 0x4293c8
xor eax, eax
mov esi, dword [ebp + 8]
mov dword [esi + 4], eax
mov dword [esi], eax
mov dword [esi + 8], eax
jmp 0x429442
xor eax, eax
mov esi, dword [ebp + 8]
mov dword [esi + 4], eax
mov dword [esi], eax
mov dword [esi + 8], eax
jmp 0x429435
add eax, edi
mov ecx, eax
mov ebx, ecx
sub ebx, edi
js 0x42944c
sar ebx, 1
cmp ebx, 4
ja 0x4293df
mov esi, dword [ebp + 8]
mov byte [esi + 0xb], bl
mov ebx, esi
jmp 0x429410
mov dword [ebp - 0x10], ecx
lea esi, [ebx + 8]
and esi, 0xfffffff8
js 0x429454
lea eax, [esi + esi]
push eax
call fcn.00489952
add esp, 4
mov ecx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
or esi, 0x80000000
mov dword [eax + 8], esi
mov esi, eax
mov dword [eax + 4], ebx
mov ebx, ecx
mov ecx, dword [ebp - 0x10]
sub ecx, edi
je 0x429430
lea esi, [ecx - 2]
and esi, 0xfffffffe
and ecx, 0xfffffffe
push ecx
push edi
push ebx
call fcn.0048cc70
add esp, 0xc
add ebx, esi
add ebx, 2
mov esi, dword [ebp + 8]
mov word [ebx], 0
test edi, edi
je 0x429442
push edi
call fcn.00489982
add esp, 4
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 8]
call fcn.004c9f10
call fcn.0049d800
int3

Function at 0x429530
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [ecx + 0xb], 0
js 0x429542
je 0x429561
mov eax, esi
jmp 0x42954a
cmp dword [esi + 4], 0
je 0x429557
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [esi + 0xb], 0
jns 0x429561
push dword [esi]
call fcn.00489982
add esp, 4
pop esi
pop ebp
ret

Function at 0x42ab50
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x70
mov eax, dword [ebp + 8]
mov ecx, dword [0x520014]
xor ecx, ebp
mov dword [esp + 0x6c], ecx
test eax, eax
je 0x42ab8c
push eax
push 0x42abf0
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [esp + 0x6c]
xor ecx, ebp
call fcn.0048a678
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edi, [esp + 4]
push eax
push edi
call fcn.004b86f0
add esp, 8
lea esi, [esp + 0x10]
mov ecx, esi
push edi
push 0x393
push str.BringProcessWindowToTop
push 1
call fcn.004b84f0
lea ecx, [esp + 0x4c]
push 0x505a6c
push str.Failed_to_bring_process_window_to_top:_wrong_process_id
call fcn.004b45d0
mov ecx, esi
call fcn.004b8530
cmp byte [edi + 0xb], 0
jns 0x42ab7a
push dword [esp + 4]
call fcn.00489982
add esp, 4
jmp 0x42ab7a