joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40669c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4066ca
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4066d1
cmp ebx, dword [eax + 4]
jae 0x4066d1
xor eax, eax
jmp 0x4068c1
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4066e2
xor eax, eax
inc eax
jmp 0x4068c0
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4066f8
cmp ecx, edx
jae 0x40683d
cmp dword [eax + 4], 0
je 0x406701
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4066e9
cmp dword [ebp + 8], 0
je 0x406723
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40683d
cmp eax, esi
jae 0x40683d
mov eax, dword [0x411678]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x406748
cmp dword [esi*4 + 0x411680], edi
je 0x406841
inc esi
cmp esi, eax
jl 0x406736
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4068bd
cmp dword [ebp - 8], 0x1000000
jne 0x4068bd
test byte [ebp - 0xc], 0xcc
je 0x4067c6
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4068bd
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4068bd
cmp word [eax + 0x18], 0x10b
jne 0x4068bd
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4068bd
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4067c6
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4067c6
test byte [ecx + 0x27], 0x80
jne 0x40683d
push 1
push 0x4116c0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4066da
mov ecx, dword [0x411678]
test ecx, ecx
mov edx, ecx
jle 0x4067fa
lea eax, [ecx*4 + 0x41167c]
cmp dword [eax], edi
je 0x4067fa
dec edx
sub eax, 4
test edx, edx
jg 0x4067ee
test edx, edx
jne 0x40682b
push 0xf
pop ebx
cmp ecx, ebx
jg 0x406807
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40681f
lea eax, [edx*4 + 0x411680]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40680d
cmp ecx, 0x10
jge 0x40682b
inc ecx
mov dword [0x411678], ecx
push 0
push 0x4116c0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4066da
xor eax, eax
jmp 0x4068c0
test esi, esi
jle 0x4066da
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4116c0
call ebx
test eax, eax
jne 0x4066da
cmp dword [esi*4 + 0x411680], edi
je 0x406897
mov eax, dword [0x411678]
lea esi, [eax - 1]
test esi, esi
jl 0x406885
cmp dword [esi*4 + 0x411680], edi
je 0x406881
dec esi
jns 0x406875
test esi, esi
jge 0x406895
cmp eax, 0x10
jge 0x406890
inc eax
mov dword [0x411678], eax
lea esi, [eax - 1]
jmp 0x406897
je 0x4068af
xor ecx, ecx
test esi, esi
jl 0x4068af
lea eax, [ecx*4 + 0x411680]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40689d
push 0
push 0x4116c0
call ebx
jmp 0x4066da
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407531
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x411a84]
push edi
jae 0x407708
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x411aa0]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x407708
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x4075dc
test dl, 2
jne 0x4075dc
test dl, 0x48
je 0x4075a6
cmp byte [eax + 5], 0xa
je 0x4075a6
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4075ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x4075d7
mov dword [0x411548], ecx
jmp 0x40770f
cmp eax, 0x6d
jne 0x4075e3
xor eax, eax
jmp 0x40771c
push eax
call fcn.0040558a
pop ecx
jmp 0x407719
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x407703
test eax, eax
je 0x407616
cmp byte [ebx], 0xa
jne 0x407616
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x40761f
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x4076fd
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x4076ed
cmp al, 0xd
je 0x407651
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x4076df
dec ecx
cmp dword [ebp - 8], ecx
jae 0x40766b
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x407666
add dword [ebp - 8], 2
jmp 0x4076bf
mov dword [ebp - 8], eax
jmp 0x4076db
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407693
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4076db
cmp dword [ebp - 0x10], 0
je 0x4076db
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4076b4
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4076bf
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4076de
cmp ebx, dword [ebp + 0xc]
jne 0x4076c4
cmp byte [ebp - 1], 0xa
jne 0x4076c4
mov byte [ebx], 0xa
jmp 0x4076de
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040833d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4076df
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x407635
jmp 0x4076fd
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4076fd
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x40771c
and dword [0x411548], 0
mov dword [0x411544], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407b54
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x40e084]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40e560]
je 0x407b8b
inc eax
cmp eax, 0x13
jb 0x407b7c
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40e560]
jne 0x407cae
mov eax, dword [0x411534]
cmp eax, 1
je 0x407c89
cmp eax, edx
jne 0x407bbb
cmp dword [0x40e0a4], 1
je 0x407c89
cmp ecx, 0xfc
je 0x407cae
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407bf1
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00408bf0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.004086c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x407c25
mov eax, edi
push eax
call fcn.004086c0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x40c11c
push edi
call fcn.00404630
add esp, 0x10
push edi
call fcn.004086c0
push dword [esi + 0x40e564]
mov ebx, eax
call fcn.004086c0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00408300
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00408bf0
push edi
push ebx
call fcn.00408c00
push 0x40c118
push ebx
call fcn.00408c00
push dword [esi + 0x40e564]
push ebx
call fcn.00408c00
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00408e3d
add esp, 0x2c
jmp 0x407cae
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x40e564]
push dword [esi]
call fcn.004086c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.00404231
add ebp, 0x90
leave
ret
Function at 0x408e3d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x411808], ebx
push esi
push edi
jne 0x408ebd
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x408ef8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x411808], eax
je 0x408ef8
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x41180c], eax
call esi
cmp dword [0x411550], 2
mov dword [0x411810], eax
jne 0x408ebd
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x411818], eax
je 0x408ebd
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x411814], eax
mov eax, dword [0x411814]
test eax, eax
je 0x408f02
call eax
test eax, eax
je 0x408ee9
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x411818]
test eax, eax
je 0x408ee9
test byte [ebp - 8], 1
jne 0x408f02
cmp dword [0x41155c], 4
jb 0x408efc
or byte [ebp + 0x12], 0x20
jmp 0x408f21
xor eax, eax
jmp 0x408f31
or byte [ebp + 0x12], 4
jmp 0x408f21
mov eax, dword [0x41180c]
test eax, eax
je 0x408f21
call eax
mov ebx, eax
test ebx, ebx
je 0x408f21
mov eax, dword [0x411810]
test eax, eax
je 0x408f21
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x411808]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409ab9
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00408300
mov eax, dword [0x40e084]
push ebx
mov ebx, dword [ebp + 8]
xor eax, ebp
push esi
xor esi, esi
cmp ebx, dword [0x411a84]
mov dword [ebp - 4], eax
jae 0x409c04
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x411aa0]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x409c04
push 1
push esi
push ebx
call fcn.00405a0d
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x409c0e
push 2
push esi
push ebx
call fcn.00405a0d
add esp, 0xc
cmp eax, 0xffffffff
je 0x409c0e
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x409bae
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004098b0
push 0x8000
push ebx
call fcn.0040a3c8
add esp, 0x14
mov dword [ebp - 0x100c], eax
mov eax, 0x1000
cmp edi, eax
jge 0x409b6a
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.0040499d
add esp, 0xc
cmp eax, 0xffffffff
je 0x409b88
sub edi, eax
test edi, edi
jg 0x409b5f
jmp 0x409b9e
cmp dword [0x411548], 5
jne 0x409b9b
mov dword [0x411544], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push ebx
call fcn.0040a3c8
pop ecx
pop ecx
jmp 0x409bee
jge 0x409bee
push 0
push dword [ebp + 0xc]
push ebx
call fcn.00405a0d
push ebx
call fcn.0040856a
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x409bee
mov dword [0x411544], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x411548], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.00405a0d
add esp, 0xc
mov eax, esi
pop edi
jmp 0x409c11
mov dword [0x411544], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00404231
leave
ret
Function at 0x409f0f
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00408300
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x409faa
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x411550]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x409faa
cmp eax, 1
je 0x409fcb
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x409faa
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x409f77
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x409fa6
xor eax, eax
inc eax
jmp 0x409fea
cmp edi, eax
jae 0x409fae
xor eax, eax
jmp 0x409fea
cmp eax, esi
jae 0x409fb5
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x411550]
jmp 0x409fce
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a89e
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x40a8b7
or eax, 0xffffffff
jmp 0x40a918
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x40a914
push 0x3d
push esi
call fcn.0040aa9f
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x40a914
cmp esi, eax
je 0x40a914
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x411570]
sete cl
cmp eax, dword [0x411574]
mov dword [ebp - 4], ecx
jne 0x40a8fa
mov edi, eax
call fcn.0040a83d
mov dword [0x411570], eax
cmp eax, ebx
jne 0x40a953
cmp dword [ebp + 0xc], ebx
je 0x40a91c
cmp dword [0x411578], ebx
je 0x40a91c
call fcn.00409c5e
test eax, eax
je 0x40a953
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x40a925
xor eax, eax
jmp 0x40a917
push 4
call fcn.0040461c
cmp eax, ebx
pop ecx
mov dword [0x411570], eax
je 0x40a914
mov dword [eax], ebx
cmp dword [0x411578], ebx
jne 0x40a953
push 4
call fcn.0040461c
cmp eax, ebx
pop ecx
mov dword [0x411578], eax
je 0x40a914
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x411570]
sub edi, esi
push esi
call fcn.0040a7f0
mov edi, eax
test edi, edi
pop ecx
jl 0x40a9ba
cmp dword [ebx], 0
je 0x40a9ba
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00404489
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x40a99a
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x40a9fb
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x40a991
mov eax, edi
shl eax, 2
push eax
push dword [0x411570]
call fcn.00409919
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x40a9fb
jmp 0x40a9f6
cmp dword [ebp - 4], 0
jne 0x40aa62
test edi, edi
jge 0x40a9ca
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x411570]
call fcn.00409919
test eax, eax
pop ecx
pop ecx
je 0x40a914
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x411570], eax
cmp dword [ebp + 0xc], 0
je 0x40aa4d
push esi
call fcn.004086c0
inc eax
inc eax
push eax
call fcn.0040461c
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x40aa4d
push esi
push edi
call fcn.00408bf0
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x40aa46
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.00404489
pop ecx
cmp dword [ebp - 4], 0
je 0x40aa5a
push esi
call fcn.00404489
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x40a917
push esi
call fcn.00404489
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x40a921
Function at 0x40ac16
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40ac43
test byte [esp + 8], 0x80
je 0x40ac31
and eax, 0xfffffffe
jmp 0x40ac34
or eax, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x40ac54
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040558a
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x4032a0
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x405076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x405258], eax
mov dword [0x4051e0], 0x402b80
mov dword [0x4051dc], 2
jmp 0x4032d0
mov dword [0x4051e4], 0
mov dword [0x4051e8], 0
mov dword [0x4051d8], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4051ec], eax
mov dword [0x405200], 0x404080
mov dword [0x4051f8], 0xf
mov dword [0x40506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4051f0], eax
mov dword [0x405204], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4051f4], eax
push 0x4051d8
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x40506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405250], eax
push 5
push dword [0x405250]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405250]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x4033a3
push 0
push 0
push 0
push 0x405208
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x4033d0
push 0x405208
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x405208
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x4033a3
mov eax, dword [0x405210]
jmp 0x4033dd
call 0x402474
ret
Function at 0x402120
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, 0x200
mov dl, byte [eax]
xor dl, 0x55
mov byte [eax], dl
inc eax
dec ecx
jne 0x402129
ret 4
Function at 0x407545
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x415004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x418d04], 0
je 0x407573
xor eax, eax
cmp dword [0x418d10], eax
setne al
jmp 0x4076ac
push esi
push edi
push 0x90
xor esi, esi
lea eax, [ebp - 0x94]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetVersionExA]
xor eax, eax
cmp dword [ebp - 0x88], 2
push 0x401820
sete al
mov dword [0x418d00], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x407674
push 0x401830
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x418d20], eax
test eax, eax
je 0x407674
push 0x401844
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x418d1c], eax
test eax, eax
je 0x407674
push 0x401858
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x418d18], eax
test eax, eax
je 0x407674
push 0x401868
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x418d14], eax
test eax, eax
je 0x407674
push 0x40187c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x418d0c], eax
test eax, eax
je 0x407674
push 0x401890
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x418d08], eax
test eax, eax
je 0x407674
cmp dword [0x418d00], esi
je 0x40765a
push 0x4018a4
jmp 0x40765f
push 0x4018b4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x418d10], eax
test eax, eax
je 0x407674
xor esi, esi
inc esi
jmp 0x40769e
mov dword [0x418d20], esi
mov dword [0x418d1c], esi
mov dword [0x418d18], esi
mov dword [0x418d14], esi
mov dword [0x418d10], esi
mov dword [0x418d0c], esi
mov dword [0x418d08], esi
pop edi
mov eax, esi
mov dword [0x418d04], 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413bf0
mov esp, ebp
pop ebp
ret
Function at 0x40a58d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x104
mov eax, dword [0x415004]
xor eax, esp
mov dword [esp + 0x100], eax
push ebx
push esi
push edi
xor eax, eax
mov dword [esp + 0xc], 4
lea edi, [esp + 0x20]
mov ebx, ecx
stosd dword es:[edi], eax
xor esi, esi
mov ecx, dword [ebp + 8]
mov dword [esp + 0x18], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esp + 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push esi
push esi
push 0x401aec
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, esi
cmp dword [ebx + 0x171c], esi
jbe 0x40a725
lea esi, [ebx + 0x55c]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x40a712
mov eax, dword [ebx + eax*4 + 0x2318]
mov dword [esp + 0x14], eax
lea eax, [edi + 1]
push eax
push 0x401b0c
lea eax, [esp + 0x48]
push 0x64
push eax
call fcn.0040a741
add esp, 0x10
lea eax, [esp + 0x10]
xor ecx, ecx
push ecx
push eax
push ecx
push 0x20019
push ecx
push ecx
push ecx
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x38]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
jne 0x40a712
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x10
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0x401b20
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 4
push eax
mov eax, dword [esp + 0x18]
add eax, 0x2b74
push eax
push 0
push 0
push 0x401b38
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x20]
xor ecx, ecx
mov eax, dword [eax + ecx*4]
cmp eax, dword [edx + ecx*4 + 0x43c]
lea eax, [esp + 0x20]
jne 0x40a6c5
inc ecx
cmp ecx, 4
jne 0x40a6ad
jmp 0x40a6e1
xor ecx, ecx
mov eax, dword [eax + ecx*4]
lea edx, [esp + 0x30]
cmp eax, dword [edx + ecx*4]
mov edx, dword [esp + 0x14]
jne 0x40a708
inc ecx
lea eax, [esp + 0x20]
cmp ecx, 4
jne 0x40a6c7
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 4
push eax
lea eax, [edx + 0x2b78]
push eax
push 0
push 0
push 0x401b50
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
add esi, 0x234
cmp edi, dword [ebx + 0x171c]
jb 0x40a5fe
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00413bf0
mov esp, ebp
pop ebp
ret 4