joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428930
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x4fe358], ecx
mov eax, 1
nop dword [eax + eax]
mov ecx, dword [eax*4 + 0x4fe354]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul ecx, edx, 0x6c078965
add ecx, eax
mov dword [eax*4 + 0x4fe358], ecx
inc eax
cmp eax, 0x270
jl 0x428940
mov dword [0x4fa384], 1
mov dword [0x4fe354], 1
ret

Function at 0x428980
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [0x4fe354], 0
push ebx
push ebp
push esi
push edi
mov esi, 0x4fe358
jne 0x42899f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
call fcn.00428930
mov eax, dword [0x4fe358]
mov ebx, 0xe3
mov dword [0x4fa384], 0x270
mov dword [0x4fed18], 0x4fe358
nop dword [eax]
mov edi, dword [esi + 4]
mov ecx, edi
xor ecx, eax
and ecx, 0x7ffffffe
xor ecx, eax
mov eax, edi
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edi
xor ecx, dword [esi + 0x634]
mov dword [esi], ecx
add esi, 4
sub ebx, 1
jne 0x4289c0
mov ebp, 0x18c
nop word [eax + eax]
mov ebx, dword [esi + 4]
lea esi, [esi + 4]
mov ecx, ebx
mov eax, ebx
xor ecx, edi
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, edi
mov edi, ebx
shr ecx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x390]
mov dword [esi - 4], ecx
sub ebp, 1
jne 0x428a00
mov eax, dword [0x4fe358]
mov ecx, ebx
xor ecx, eax
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, ebx
shr ecx, 1
neg eax
pop edi
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x38c]
mov dword [esi], ecx
pop esi
pop ebp
pop ebx
ret

Function at 0x428a70
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub dword [0x4fa384], 1
jne 0x428a7e
call fcn.00428980
mov eax, dword [0x4fed18]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4fed18], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret

Function at 0x428ac0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub dword [0x4fa384], 1
jne 0x428ace
call fcn.00428980
mov eax, dword [0x4fed18]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4fed18], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4f1540]
mulsd xmm0, qword [0x4f13b8]
ret

Function at 0x4291d0
Capabilities:
Write clipboard data

Disassembly:
cmp byte [ecx + 0x17], 0
jne 0x4291d9
mov ecx, dword [ecx + 0xc]
cmp byte [ecx + 0x17], 2
jne 0x4291fa
cmp dword [0x4fda78], 0
je 0x4291fa
mov dword [esp + 4], 1
mov ecx, 0x4fda6c
jmp fcn.00406230
mov al, byte [ecx + 0x15]
and al, 0x86
cmp byte [esp + 4], 0
mov byte [ecx + 0x15], al
je 0x42920e
or al, 1
mov byte [ecx + 0x15], al
mov eax, 1
ret 4
Function at 0x42d3d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [0x4f8988]
push ebx
push ebp
add eax, 4
imul eax, eax, 0xe8
push esi
push edi
push eax
push dword [0x4fb84c]
call fcn.004c4e40
add esp, 8
mov dword [0x4fb84c], eax
test eax, eax
jne 0x42d3ff
pop edi
pop esi
pop ebp
pop ebx
ret
mov esi, dword [0x4f898c]
mov edi, eax
push 0x404820
push 0x4ef6d80
push 0xe
push dword [0x4fb968]
mov ecx, 0x3a
mov dword [0x4f898c], eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
call edi
cmp dword [0x4fddd8], 0
jne 0x42d440
mov ebp, 1
jmp 0x42d543
mov eax, dword [0x4f898c]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [eax + 0xcc], 0
call esi
cmp byte [0x4fb845], 0
mov ecx, dword [0x4f898c]
mov dword [ecx + 0xbc], eax
mov dword [ecx + 0xc0], 0x64
jne 0x42d48d
push 0x4046f0
push 0x64
push 0xb
push dword [0x4fb968]
call edi
test eax, eax
setne byte [0x4fb845]
mov byte [0x4fe0b9], 1
call esi
inc dword [0x4fb950]
mov ecx, dword [0x4fa314]
mov dword [0x4fe0dc], eax
mov dword [0x4fe0d8], eax
cmp ecx, dword [0x4fa318]
jne 0x42d4bf
call fcn.004065b0
mov ecx, dword [0x4fa314]
cmp ecx, dword [0x4fa310]
jb 0x42d4d4
mov eax, dword [0x4fde14]
mov dword [ecx], eax
mov ecx, dword [0x4fa314]
add ecx, 0xc
mov dword [0x4fa314], ecx
push 0
push 0
mov dword [ecx], 0
mov dword [ecx + 4], str.Auto_execute
mov dword [ecx + 8], 0
mov ecx, dword [0x4fddd8]
push 1
call fcn.00442f20
sub dword [0x4fa314], 0xc
mov ebp, eax
dec dword [0x4fb950]
cmp byte [0x4fb845], 0
je 0x42d53c
push 0xb
push dword [0x4fb968]
call dword [sym.imp.USER32.dll_KillTimer]
movzx ecx, byte [0x4fb845]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov byte [0x4fb845], cl
mov byte [0x4fe0b9], 0
mov ebx, dword [0x4f898c]
mov eax, dword [ebx + 0xe4]
test eax, eax
je 0x42d598
cmp dword [eax + 8], 6
jne 0x42d567
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebx + 0xe4]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x42d57d
push ecx
call fcn.004c4247
mov eax, dword [ebx + 0xe4]
add esp, 4
push 0x10
push eax
call fcn.004c0915
mov dword [ebx + 0xe4], 0
add esp, 8
mov ebx, dword [0x4f898c]
mov ecx, ebx
call fcn.00404930
push 1
push 0
mov byte [ebx + 0xcc], 1
mov ecx, 0x3a
mov esi, ebx
mov edi, 0x4fb850
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x4fb94c]
push 0xffffffffffffffff
push 0x4e33f8
mov word [ebx + 0xcc], 0x101
mov dword [ebx + 0xc0], 0
mov byte [ebx + 0xce], 0
mov dword [ebx + 0x2c], connect
call fcn.004b01a0
cmp word [0x4fc454], 0
mov esi, 1
jne 0x42d635
cmp dword [0x4fc43c], 0
jne 0x42d635
cmp dword [0x4fb988], 0
jne 0x42d635
cmp dword [0x4fb984], 0
jne 0x42d635
cmp byte [0x4fb979], 0
jne 0x42d635
test ebp, ebp
mov ecx, 6
push 0
cmove ecx, esi
push ecx
mov ecx, 0x4fda88
call fcn.0042d8c0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x42d7c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x328
cmp dword [0x4fb9d4], 0
push esi
push edi
mov esi, ecx
jne 0x42d856
push 0x104
lea eax, [esp + 0x12c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [esp + 0xc], 1
mov edi, eax
jne 0x42d870
mov edx, dword [edi]
lea ecx, [esp + 0x128]
nop word [eax + eax]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x42d846
test ax, ax
je 0x42d842
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x42d846
add ecx, 4
add edx, 4
test ax, ax
jne 0x42d820
xor eax, eax
jmp 0x42d84b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x42d870
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push dword [0x4fb99c]
push str._restart
jmp 0x42d8a5
push dword [esi + 0x618]
lea eax, [esp + 0x14]
push str._restart___s_
push 0x114
push eax
call fcn.004aba90
add esp, 0x10
lea eax, [esp + 0x10]
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push dword [0x4fb99c]
push eax
push dword [esi + 0x624]
mov ecx, 0x4fda88
call fcn.0044eac0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x43c4e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x108
lea eax, [esp]
push esi
push edi
push dword [esp + 0x11c]
push dword [esp + 0x11c]
push 0x4ecd7c
push 0x105
push eax
call fcn.004aba90
add esp, 0x14
mov edi, eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, dword [esp + 0x114]
cmp eax, 0xffffffff
je 0x43c55e
test al, 0x10
je 0x43c55e
lea eax, [edi + 0x102]
push eax
call fcn.004c4e35
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x43c55e
lea ecx, [edi + 1]
push ecx
lea ecx, [esp + 0xc]
push ecx
push eax
call fcn.004c2440
add esp, 0xc
mov dword [esi + 4], edi
pop edi
pop esi
add esp, 0x108
ret 0xc
pop edi
mov dword [esi], 0x4e3371
pop esi
add esp, 0x108
ret 0xc
Function at 0x44e2e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2004
call fcn.004db810
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
test ebx, ebx
je 0x44e3ea
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x44e320
mov esi, dword [edi + 0x38c]
test esi, esi
jne 0x44e320
mov ecx, dword [edi + 0x14c]
movzx eax, word [edi + 0x150]
jmp 0x44e328
movzx ecx, word [esi + 2]
movzx eax, word [esi + 4]
push dword [ebp + 0xc]
movzx eax, ax
push eax
mov eax, dword [0x4fc474]
push dword [eax + ecx*4]
lea eax, [esp + 0x1c]
push str._s___d__:___Warning:__s_n
push 0x2000
push eax
call fcn.004aba90
lea ecx, [esp + 0x28]
add esp, 0x18
add ecx, eax
mov eax, dword [ebp + 0x10]
cmp byte [eax], 0
je 0x44e375
push eax
lea eax, [esp + 0x2014]
push str._____Specifically:__s_n
sub eax, ecx
push eax
push ecx
call fcn.004aba90
add esp, 0x10
lea eax, [esp + 0x10]
cmp ebx, 3
jne 0x44e396
push 0x4eb984
push 0
push eax
mov ecx, edi
call fcn.0044d700
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push eax
mov ecx, 0x4fa310
call fcn.0040b1a0
test al, al
jne 0x44e3b0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp ebx, 2
jne 0x44e3ea
test esi, esi
jne 0x44e3da
mov esi, dword [edi + 0x38c]
test esi, esi
jne 0x44e3da
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.0044dd10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, esi
push 1
push eax
call fcn.0044d920
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x44e8a0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x1f4
push ebx
mov ebx, dword [esp + 0x1fc]
push ebp
push esi
push edi
mov ebp, ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x44e8d0
push 0x64
lea ecx, [esp + 0x9c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x44e8d8
mov byte [esp + 0x98], 0
mov esi, dword [0x4fe078]
mov byte [esp + 0x18], 0
test esi, esi
je 0x44e9a3
nop dword [eax + eax]
cmp byte [esi + 0x11], 0
je 0x44e952
mov eax, dword [0x51f88c]
mov edx, dword [esi]
test al, 1
jne 0x44e917
push 0
or eax, 1
mov ecx, 0x51f890
push 0
mov dword [0x51f88c], eax
call fcn.0042b9c0
mov eax, dword [0x4fde18]
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x44e929
mov eax, dword [esi]
mov eax, dword [eax + 4]
jmp 0x44e93d
cmp ecx, dword [0x51f890]
jne 0x44e938
mov eax, dword [esi]
mov eax, dword [eax + 4]
jmp 0x44e93d
mov eax, str.Object
push eax
push 0x4ede44
lea eax, [esp + 0x20]
push 0x7d
push eax
call fcn.004abae0
add esp, 0x10
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x44e8f0
cmp byte [esp + 0x18], 0
je 0x44e9a3
lea ecx, [esp + 0x18]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44e967
sub ecx, edx
cmp ecx, 0x7b
jbe 0x44e997
mov esi, 0x7f
lea edi, [esp + 0x18]
sub esi, ecx
add edi, ecx
push esi
push 0x4ea7c8
push edi
call fcn.004cc440
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x44e9a3
cmp byte [esp + ecx + 0x17], 0x20
jne 0x44e9a3
mov byte [esp + ecx + 0x17], 0
mov cl, 1
call fcn.0041d080
lea edx, [esp + 0x100]
mov cl, al
call fcn.0041d420
mov ecx, dword [0x4fb84c]
mov edi, eax
mov esi, dword [0x4fb950]
cmp byte [ecx + 0xd8], 0
je 0x44e9df
cmp byte [0x4fe0b9], 0
jne 0x44e9df
mov ecx, 1
jmp 0x44e9e1
xor ecx, ecx
mov eax, dword [0x4fb93c]
mov edx, 0x4e89b8
sub eax, ecx
mov dword [esp + 0x14], 0x4e89b4
cmp dword [0x4fb984], 0
mov ecx, edx
push edi
push dword [0x4fb96c]
cmovne ecx, dword [esp + 0x1c]
mov edi, 0x4e3371
cmp dword [0x4fb988], 0
push esi
cmovne edx, dword [esp + 0x20]
cmp esi, 1
push eax
mov eax, str.__preempted:_they_will_resume_when_the_current_thread_finishes_
cmovle eax, edi
xor edi, edi
push eax
cmp esi, 1
lea eax, [esi - 1]
cmovle eax, edi
push eax
lea eax, [esp + 0x30]
push eax
push dword [0x4fe080]
lea eax, [esp + 0xb8]
push dword [0x4fe084]
push ecx
push edx
push eax
push str.Window:__s_r_nKeybd_hook:__s_r_nMouse_hook:__s_r_nEnabled_Timers:__u_of__u___s__r_nInterrupted_threads:__d_s_r_nPaused_threads:__d_of__d___d_layers__r_nModifiers__GetKeyState___now____s_r_n
push 0xfffe
push ebx
call fcn.004aba90
add ebx, eax
mov edx, ebp
add esp, 0x3c
sub edx, ebx
add edx, 0xfffe
mov ecx, ebx
call fcn.004131d0
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44ea80
sub ecx, edx
mov eax, str._r_nPress__F5__to_refresh.
add ebx, ecx
cmp dword [0x4fb980], edi
mov ecx, str._r_nKey_History_has_been_disabled_via_KeyHistory_0.
cmove eax, ecx
sub ebp, ebx
push eax
add ebp, 0xfffe
push ebp
push ebx
call fcn.004aba90
add esp, 0xc
add eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1f4
ret 8
Function at 0x455370
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
push edi
push dword [esp + 0x20]
mov esi, ecx
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.00464440
mov edi, eax
test edi, edi
je 0x455464
mov edx, dword [esp + 0x10]
mov ecx, edi
call fcn.004b1e50
mov ebx, eax
test ebx, ebx
je 0x455464
push 0
push edi
mov byte [esp + 0x28], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
test esi, esi
je 0x4553e6
cmp esi, dword [0x4fda50]
je 0x4553e6
mov ecx, edi
call fcn.004b2300
test al, al
jne 0x4553e6
push 1
push esi
push dword [0x4fda50]
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x20]
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
test eax, eax
je 0x455443
mov ecx, dword [0x4fb94c]
push 1
push 0
push 0xffffffffffffffff
push 0x4e33f8
call fcn.004b01a0
mov eax, dword [0x4f898c]
cmp dword [eax + 0x58], 0xffffffff
jle 0x455443
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4fda50], eax
je 0x455430
mov eax, dword [0x4f898c]
push dword [eax + 0x58]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x455443
mov ecx, dword [0x4f898c]
mov edx, 1
mov ecx, dword [ecx + 0x58]
call fcn.004018a0
cmp byte [esp + 0x20], 0
je 0x455459
push 0
push esi
push dword [0x4fda50]
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop edi
pop esi
mov eax, 1
pop ebx
ret 0x14
mov eax, dword [0x4f898c]
test byte [eax + 0xe0], 1
jne 0x45548e
mov ecx, dword [0x4fb94c]
push 1
push 0
push 0xffffffffffffffff
push 0x4e37f8
call fcn.004b01a0
pop edi
pop esi
pop ebx
ret 0x14
push 0x4e3371
push 0
push 0x4e37f8
mov ecx, esi
call fcn.0044d4a0
pop edi
pop esi
pop ebx
ret 0x14
Function at 0x457200
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
mov esi, dword [0x4fd110]
push edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.00464440
mov ebx, eax
test ebx, ebx
je 0x457230
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea edi, [eax + 1]
jmp 0x457235
mov edi, 1
push 1
push 0
lea eax, [edi - 1]
mov ecx, esi
push eax
push 0
call fcn.004b01a0
cmp eax, 1
je 0x457253
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
mov ecx, esi
test ebx, ebx
je 0x4572d8
push edi
push 0
push 1
call fcn.00401670
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [esi + 0x17], 0
mov ebx, eax
jne 0x457278
mov edi, dword [esi + 0xc]
jmp 0x45727a
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x457292
test byte [edi + 0x15], 8
je 0x45728d
mov ecx, edi
call fcn.004014d0
add edi, 0xc
jmp 0x457297
mov edi, 0x4ff514
mov dword [edi], ebx
cmp byte [esi + 0x17], 0
jne 0x4572a4
mov edi, dword [esi + 0xc]
jmp 0x4572a6
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x4572be
test byte [edi + 0x15], 8
je 0x4572b9
mov ecx, edi
call fcn.004014d0
add edi, 0xc
jmp 0x4572c3
mov edi, 0x4ff514
cmp dword [edi], 0
jne 0x457314
push 0
push 1
mov ecx, esi
call fcn.00401670
mov byte [eax], 0
jmp 0x457314
push 0
push 1
call fcn.00401670
mov byte [eax], 0
cmp byte [esi + 0x17], 0
jne 0x4572ef
mov edi, dword [esi + 0xc]
jmp 0x4572f1
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x457309
test byte [edi + 0x15], 8
je 0x457304
mov ecx, edi
call fcn.004014d0
add edi, 0xc
jmp 0x45730e
mov edi, 0x4ff514
mov dword [edi], 0
cmp byte [esi + 0x17], 0
jne 0x45731d
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x45733e
cmp dword [0x4fda78], 0
je 0x45733e
push 1
mov ecx, 0x4fda6c
call fcn.00406230
pop edi
pop esi
pop ebx
ret 0x10
and byte [esi + 0x15], 0x86
mov eax, 1
pop edi
pop esi
pop ebx
ret 0x10

Function at 0x4573d0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x8e68
call fcn.004db810
push esi
mov esi, ecx
lea ecx, [esp + 4]
push edi
call fcn.0044f5f0
push dword [ebp + 0x14]
xor eax, eax
mov byte [esp + 0xc39], 1
push dword [ebp + 0x10]
cmp edx, 6
push dword [ebp + 0xc]
cmove eax, esi
push dword [ebp + 8]
mov dword [esp + 0xc68], eax
push dword [0x4f898c]
call fcn.004b24d0
test eax, eax
je 0x45742f
lea eax, [esp + 8]
push eax
push 0x4b1810
call dword [sym.imp.USER32.dll_EnumWindows]
cmp byte [esi + 0x17], 0
mov edi, dword [esp + 0xc38]
jne 0x45743f
mov esi, dword [esi + 0xc]
mov cl, byte [esi + 0x15]
test cl, 2
je 0x457458
and cl, 0x3d
mov byte [esi + 0x15], cl
mov ecx, dword [esi]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov cl, byte [esi + 0x15]
mov eax, edi
and cl, 0x9b
cdq
or cl, 0x18
mov dword [esi], eax
mov dword [esi + 4], edx
mov byte [esi + 0x15], cl
jge 0x457481
mov ecx, esi
call fcn.004014d0
and byte [esi + 0x15], 0x8f
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x4fb974], 0
je 0x457491
mov ecx, esi
call fcn.004014d0
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x458380
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x8000
call fcn.004db810
push esi
mov esi, dword [0x4fd110]
lea eax, [esp + 4]
push edi
push 0x7fff
push eax
push dword [esp + 0x8014]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
push 1
cmp edi, 0x7fff
jb 0x458445
push 1
lea ecx, [edi - 1]
push ecx
push 0
mov ecx, esi
call fcn.004b01a0
test eax, eax
jne 0x4583d7
pop edi
pop esi
add esp, 0x8000
ret 4
push edi
push 0
push 1
mov ecx, esi
call fcn.00401670
push eax
push dword [esp + 0x8014]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x458402
push eax
push 1
mov ecx, esi
call fcn.00401670
mov byte [eax], 0
cmp byte [esi + 0x17], 0
jne 0x45840b
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x458431
cmp dword [0x4fda78], 0
je 0x458431
push 1
mov ecx, 0x4fda6c
call fcn.00406230
pop edi
pop esi
add esp, 0x8000
ret 4
and byte [esi + 0x15], 0x86
mov eax, 1
pop edi
pop esi
add esp, 0x8000
ret 4
push 0
test edi, edi
lea eax, [esp + 0x10]
mov ecx, 0x4e3371
cmove eax, ecx
mov ecx, esi
push edi
push eax
call fcn.004b01a0
pop edi
pop esi
add esp, 0x8000
ret 4
Function at 0x45b700
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x121c
call fcn.004db810
push ebx
push ebp
push esi
push edi
mov eax, ecx
mov byte [esp + 0x13], dl
push eax
push dword [0x4fe0b0]
mov dword [esp + 0x1c], eax
lea ebx, [esp + 0x230]
push str.__s_s
mov eax, ebx
mov ebp, 0x4e3371
push 0x800
push eax
call fcn.004aba90
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
add esp, 0x14
lea ecx, [esi + 1]
cmp ecx, 0x800
jg 0x45b76d
lea eax, [esp + 0x229]
push eax
call edi
cmp eax, 0xffffffff
je 0x45b76d
mov edi, dword [0x4fe0b0]
jmp 0x45b81b
xor esi, esi
lea eax, [esp + 0x18]
push esi
push ecx
push eax
push ecx
call fcn.004acdc0
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x45b7a4
test esi, esi
jne 0x45b7a4
mov esi, 0x100
lea eax, [esp + 0x18]
push esi
push ecx
push eax
push ecx
call fcn.004acdc0
mov edx, eax
add esp, 0x10
test edx, edx
je 0x45b785
xor ecx, ecx
nop word [eax + eax]
mov al, byte [esp + ecx + 0x18]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x11f], al
test al, al
jne 0x45b7b0
test edx, edx
je 0x45b8be
push dword [esp + 0x14]
lea eax, [esp + 0x124]
push eax
push str.__s_s
lea eax, [esp + 0x234]
push 0x800
push eax
call fcn.004aba90
mov esi, eax
add esp, 0x14
lea ecx, [esi + 1]
cmp ecx, 0x800
jg 0x45b8be
lea eax, [esp + 0x229]
push eax
call edi
cmp eax, 0xffffffff
je 0x45b8be
lea edi, [esp + 0x120]
cmp byte [esp + 0x13], 0
mov word [esp + esi + 0x228], 0x22
je 0x45b894
push 0x4ee7c8
push edi
push str.__s_s
lea eax, [esp + 0xa34]
push 0x800
push eax
call fcn.004aba90
mov esi, eax
add esp, 0x14
lea ecx, [esi + 1]
cmp ecx, 0x800
jg 0x45b87f
lea eax, [esp + 0xa29]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x45b87f
mov word [esp + esi + 0xa28], 0x22
lea ebx, [esp + 0xa28]
jmp 0x45b88d
cmp edi, dword [0x4fe0b0]
jne 0x45b894
mov ebx, dword [0x4fe0ac]
lea ebp, [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
push ebx
mov ecx, 0x4fda88
call fcn.0044eac0
test eax, eax
setne al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x121c
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x121c
ret
Function at 0x45f880
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x118
push ebx
push edi
mov edi, dword [0x4fd110]
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
mov ecx, dword [ebp + 8]
xor edx, edx
push 0
call fcn.0041d8d0
mov bh, al
add esp, 0xc
test bh, bh
jne 0x45f91a
mov ecx, dword [ebp + 8]
lea edx, [esp + 0xc]
push 0
call fcn.00477660
add esp, 4
test eax, eax
jne 0x45f8e1
push 1
push eax
push 0xffffffffffffffff
push 0x4e3371
mov ecx, edi
call fcn.004b01a0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x10]
push 0
push ecx
mov ecx, eax
mov dword [esp + 0x20], 0
call fcn.00477980
add esp, 8
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.004af9d0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
mov bl, byte [eax]
movzx eax, bl
test eax, 0xffffff80
jne 0x45f93b
push 2
push eax
call fcn.004c7451
add esp, 8
test eax, eax
je 0x45f93b
and bl, 0xdf
mov al, bl
cmp al, 0x50
je 0x45f94f
xor ecx, ecx
mov edx, 2
cmp al, 0x54
cmovne edx, ecx
jmp 0x45f954
mov edx, 1
mov cl, bh
call fcn.004778e0
push 1
test al, al
mov edx, 0x4ee9c8
push 0
mov ecx, 0x4ea7bc
cmove ecx, edx
push 0xffffffffffffffff
push ecx
mov ecx, edi
call fcn.004b01a0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x45f980
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
push ebx
push esi
push edi
push 1
push 0
push 0xffffffffffffffff
mov esi, ecx
mov ecx, dword [0x4fd110]
push 0
call fcn.004b01a0
mov eax, dword [ebp + 8]
test eax, eax
je 0x45fac7
cmp byte [eax], 0
je 0x45fac7
push 0x103
push eax
lea eax, [esp + 0x30]
push eax
call fcn.004cc440
lea ecx, [esp + 0x34]
mov byte [esp + 0x137], 0
add esp, 0xc
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45f9e0
sub ecx, edx
cmp byte [esp + ecx + 0x27], 0x5c
je 0x45fa05
lea eax, [ecx + 1]
cmp eax, 0x104
jae 0x45fac7
mov word [esp + ecx + 0x28], 0x5c
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x45fac7
cmp byte [ebp + 0xc], 0
je 0x45fa37
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
jmp 0x45fa3f
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ecx, dword [0x4fb94c]
push 1
push 0
push 0xffffffffffffffff
shrd ebx, edi, 0x14
push 0x4e33f8
shr edi, 0x14
call fcn.004b01a0
mov esi, dword [0x4fd110]
cmp byte [esi + 0x17], 0
jne 0x45fa6b
mov esi, dword [esi + 0xc]
mov al, byte [esi + 0x15]
test al, 2
je 0x45fa82
and al, 0x3d
mov byte [esi + 0x15], al
mov eax, dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov al, byte [esi + 0x15]
and al, 0x9b
mov dword [esi], ebx
or al, 0x18
mov dword [esi + 4], edi
mov byte [esi + 0x15], al
jge 0x45faa9
mov ecx, esi
call fcn.004014d0
and byte [esi + 0x15], 0x8f
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [0x4fb974], 0
je 0x45fab9
mov ecx, esi
call fcn.004014d0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4f898c]
test byte [eax + 0xe0], 1
jne 0x45faf4
mov ecx, dword [0x4fb94c]
push 1
push 0
push 0xffffffffffffffff
push 0x4e37f8
call fcn.004b01a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x4e3371
push 0
push 0x4e37f8
mov ecx, esi
call fcn.0044d4a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8