joyce8/EMBER2024-capa huggingface dataset:
Function at 0x523ec0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57dd25
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5edd38]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor al, al
mov byte [ebp - 0x4d], al
cmp dword [ebx + 0x10], 0
je 0x5240a7
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x523f07
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
je 0x5240a4
cmp dword [ebx + 0x14], 8
xorps xmm0, xmm0
movlpd qword [ebp - 0x48], xmm0
mov eax, ebx
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x4c], 0x3c
jb 0x523f4d
mov eax, dword [ebx]
lea ecx, [ebp - 0x4c]
push ecx
push 0
push dword [ebx + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x5240a4
cmp dword [ebp - 0x40], 4
jne 0x5240a4
mov eax, 0x1bb
cmp word [ebp - 0x34], ax
jne 0x5240a4
xor ecx, ecx
mov esi, 0x5f3ad0
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
jne 0x52407d
push 0x5f42f8
push 0x34
call fcn.0041beff
mov edi, eax
add esp, 8
mov dword [ebp - 0x54], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x52401d
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
lea esi, [edi + 0xc]
mov byte [ebp - 4], 1
mov dword [esi], 0
mov dword [esi + 4], 0
push 0x1c
mov dword [ebp - 0x58], esi
lfence
call fcn.00406a5e
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea eax, [edi + 0x1c]
mov byte [ebp - 4], 2
push eax
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0x10000
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, 0x5f3ad0
jmp 0x52401f
xor edi, edi
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x52407d
mov ecx, edi
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
je 0x52407d
lea eax, [edi + 0x1c]
mov dword [ebp - 4], 3
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [edi + 0xc]
lea esi, [edi + 0xc]
mov ecx, esi
push dword [eax + 4]
push esi
call fcn.004a5a90
push 0x1c
push dword [esi]
call fcn.00409f25
add esp, 8
mov ecx, edi
call fcn.0042f510
push 0x34
push edi
mov dword [ebp - 4], 0xffffffff
call fcn.00409f25
add esp, 8
xor ecx, ecx
xor eax, eax
mov edx, 0x5f3ad0
lock cmpxchg dword [edx], ecx
push ebx
mov ecx, eax
call fcn.004e05f0
movzx ecx, byte [ebp - 0x4d]
test al, al
mov edx, 1
cmovne ecx, edx
mov al, cl
jmp 0x5240a7
mov al, byte [ebp - 0x4d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401682
mov esp, ebp
pop ebp
ret
Function at 0x5246d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ddab
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x5edd38]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
xor edi, edi
test ecx, ecx
je 0x524905
mov eax, dword [0x5f41a8]
cmp ecx, eax
jne 0x524905
push ecx
push edi
push 0x401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x524905
lea eax, [ebp - 0x230]
push eax
call fcn.00524990
add esp, 4
mov dword [ebp - 4], edi
cmp dword [ebp - 0x220], edi
jne 0x524776
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 4], 1
cmp eax, 8
jb 0x5248e5
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.0040a2e0
jmp 0x5248e5
push 1
push 0x58f23c
lea ecx, [ebp - 0x230]
call fcn.0040ddb0
push 0xd
push str.AcroRdUWP.exe
lea ecx, [ebp - 0x230]
call fcn.0040ddb0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0053f340
add esp, 0xc
mov dword [ebp - 0x234], 0x104
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
test eax, eax
jne 0x524803
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 4], 2
cmp eax, 8
jb 0x5248e5
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.0040a2e0
jmp 0x5248e5
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0040c291
add esp, 8
test eax, eax
je 0x524859
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 4], 3
cmp eax, 8
jb 0x5248e5
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.0040a2e0
jmp 0x5248e5
push esi
call fcn.00478ea0
add esp, 4
test al, al
jne 0x52488d
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 4], 4
cmp eax, 8
jb 0x5248e5
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.0040a2e0
jmp 0x5248e5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp - 0x21c]
mov edi, 1
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x5248ec
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
mov dword [ebp - 4], 5
cmp edx, 0x1000
jb 0x5248db
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x524933
push edx
push ecx
call fcn.00409f25
add esp, 8
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], eax
mov word [ebp - 0x230], ax
push 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov eax, 0x5f41a8
xchg dword [eax], ecx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401682
mov esp, ebp
pop ebp
ret
call fcn.0054223b
int3
Function at 0x52ad40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x52ad71
lfence
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x52ad60
pop edi
mov eax, edx
pop esi
pop ebp
ret 8

Function at 0x52d8d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e6bc
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5edd38]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.BrokerMAPIObject.0
xor eax, eax
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov byte [edi + 0x14], 1
mov dword [edi + 0x18], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 7
mov word [edi + 0x1c], ax
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], 7
mov word [edi + 0x34], ax
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], 7
mov word [edi + 0x4c], ax
mov dword [edi + 0x74], eax
mov dword [edi + 0x78], 0xf
mov byte [edi + 0x64], al
mov dword [edi + 0x8c], eax
mov dword [edi + 0x90], 0xf
mov byte [edi + 0x7c], al
mov dword [edi + 0xa4], eax
mov dword [edi + 0xa8], 0xf
mov byte [edi + 0x94], al
push 0x5ba28c
mov byte [ebp - 4], 6
mov dword [edi + 0xac], eax
mov dword [edi + 0xb0], eax
mov dword [edi + 0xb4], eax
mov dword [edi + 0xb8], eax
mov dword [edi + 0xbc], eax
mov dword [edi + 0xc0], eax
mov dword [edi + 0xc4], eax
mov dword [edi + 0xc8], eax
mov dword [edi + 0xcc], eax
mov dword [edi + 0xd0], eax
mov dword [edi + 0xd4], eax
mov dword [edi + 0xd8], eax
mov dword [edi + 0xdc], eax
mov dword [edi + 0xe0], eax
call fcn.0042ec60
add esp, 4
mov dword [edi + 0xe0], eax
test eax, eax
je 0x52dac0
push 8
call fcn.00406a5e
mov ebx, eax
add esp, 4
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 7
test ebx, ebx
je 0x52da53
xorps xmm0, xmm0
push str.MAPIFreeBuffer
movq qword [ebx], xmm0
push dword [edi + 0xe0]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MAPIAllocateBuffer
push dword [edi + 0xe0]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx], eax
mov dword [ebx + 4], esi
jmp 0x52da55
xor ebx, ebx
push str.MAPIInitialize
push dword [edi + 0xe0]
mov byte [ebp - 4], 6
mov dword [edi + 0xac], ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MAPIUninitialize
push dword [edi + 0xe0]
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [edi + 4]
mov dword [edi + 8], eax
test esi, esi
je 0x52dac0
test eax, eax
je 0x52dac0
push 0
mov ecx, esi
call dword [0x5817c0]
call esi
test eax, eax
mov eax, edi
js 0x52dacc
mov dword [edi + 0xb8], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
mov dword [edi + 0xb8], 3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x52de90
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x574620
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5edd38]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0xdc]
mov dword [edi], vtable.BrokerMAPIObject.0
test ecx, ecx
je 0x52ded6
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x5817c0]
call esi
mov ecx, dword [edi + 0xd0]
test ecx, ecx
je 0x52def0
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x5817c0]
call esi
mov ecx, dword [edi + 0xd4]
test ecx, ecx
je 0x52df0a
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x5817c0]
call esi
mov ecx, dword [edi + 0xd8]
test ecx, ecx
je 0x52df24
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x5817c0]
call esi
mov ecx, dword [edi + 0xc4]
test ecx, ecx
je 0x52df3e
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x5817c0]
call esi
mov eax, dword [edi + 0xac]
test eax, eax
je 0x52df53
push 8
push eax
call fcn.00409f25
add esp, 8
mov eax, dword [edi + 0xbc]
test eax, eax
je 0x52df95
mov esi, dword [eax]
push 0
push 0
push 0
mov esi, dword [esi + 0x44]
mov ecx, esi
push eax
call dword [0x5817c0]
call esi
mov eax, dword [edi + 0xbc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x5817c0]
call esi
mov dword [edi + 0xb8], 1
jmp 0x52df9e
cmp dword [edi + 0xb8], 1
jne 0x52dfab
mov esi, dword [edi + 8]
mov ecx, esi
call dword [0x5817c0]
call esi
push dword [edi + 0xe0]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [edi + 0x94]
call fcn.0040ba20
lea ecx, [edi + 0x7c]
call fcn.0040ba20
lea ecx, [edi + 0x64]
call fcn.0040ba20
mov eax, dword [edi + 0x60]
mov dword [ebp - 4], 0
cmp eax, 8
jb 0x52dfee
inc eax
lea ecx, [edi + 0x4c]
push eax
push dword [edi + 0x4c]
call fcn.0040a2e0
xor eax, eax
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 7
mov word [edi + 0x4c], ax
mov eax, dword [edi + 0x48]
mov dword [ebp - 4], 1
cmp eax, 8
jb 0x52e01e
inc eax
lea ecx, [edi + 0x34]
push eax
push dword [edi + 0x34]
call fcn.0040a2e0
xor eax, eax
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 7
mov word [edi + 0x34], ax
mov eax, dword [edi + 0x30]
mov dword [ebp - 4], 2
cmp eax, 8
jb 0x52e04e
inc eax
lea ecx, [edi + 0x1c]
push eax
push dword [edi + 0x1c]
call fcn.0040a2e0
xor eax, eax
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 7
mov word [edi + 0x1c], ax
mov dword [edi], vtable.MapiBase.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x533140
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57eb98
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5edd38]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push edi
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005325c0
add esp, 0x18
cmp dword [edi], 6
mov dword [ebp - 4], 0
jne 0x5331bd
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 1
cmp eax, 8
jb 0x533262
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040a2e0
jmp 0x533262
cmp dword [ebp - 0x18], 0
je 0x53321e
cmp dword [esi + 0x14], 8
jb 0x5331cb
mov esi, dword [esi]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
push 0
push esi
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
jne 0x5331fa
mov eax, dword [ebx]
push ebx
mov esi, dword [eax + 0x40]
mov ecx, esi
call dword [0x5817c0]
call esi
test eax, eax
jne 0x53321e
mov dword [edi], 6
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 2
cmp eax, 8
jb 0x533262
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040a2e0
jmp 0x533262
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x533262
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
mov dword [ebp - 4], 3
cmp edx, 0x1000
jb 0x533258
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x53327e
push edx
push ecx
call fcn.00409f25
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401682
mov esp, ebp
pop ebp
ret
call fcn.0054223b
int3
Function at 0x5378a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x5378d1
lfence
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x5378c0
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x55830b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00558146

Function at 0x5617d0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ecx + 4]
push ebx
push esi
push edi
mov ebx, dword [eax + 0x3c]
xor esi, esi
add ebx, eax
mov dword [ebp - 4], eax
xor edi, edi
movzx ecx, word [ebx + 6]
cmp esi, ecx
jae 0x56182c
movzx eax, word [ebx + 0x14]
lea edx, [ebx + 0x18]
add eax, edi
add edx, eax
je 0x56182c
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 4]
add ecx, eax
neg eax
sbb eax, eax
and eax, ecx
cmp eax, dword [ebp + 8]
ja 0x561818
mov ecx, dword [edx + 8]
add ecx, eax
cmp ecx, dword [ebp + 8]
ja 0x56181e
inc esi
add edi, 0x28
jmp 0x5617e6
pop edi
pop esi
lfence
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40894d
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4085d8
and ecx, ecx
and edi, ecx
call fcn.00408971
or edi, edi
xor dword [esi], eax
sub edi, edi
add esi, 1
add edi, edi
sub edi, edi
cmp esi, edx
jne fcn.0040894d
ret

Function at 0x4021b2
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 0x84, 0
sub ebp, 0x82
mov esi, eax
mov cl, byte [0x404050]
mov edx, eax
mov ebx, eax
shl edx, cl
mov eax, 0x404054
add edx, dword [0x404050]
call fcn.004020f3
xor eax, eax
mov dword [ebp + 0x7e], eax
lea eax, [ebp + 0x7e]
push eax
mov eax, esi
or al, 0x40
mov edi, 0x4039aa
push eax
sub edi, fcn.00403144
push edi
push fcn.00403144
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp + 0x7e], 0
je 0x402229
mov eax, fcn.00403144
mov ebx, esi
mov edx, edi
call fcn.004020f3
mov edx, 0x1c000
mov eax, 0x404054
mov ebx, esi
call fcn.00402d42
lea edx, [ebp - 2]
mov eax, esi
mov dword [ebp - 2], 0
call fcn.0040151f
lea eax, [esi + 0x1c000]
lea edi, [esi + 1]
imul edi, eax
mov ebx, 0x404054
or bl, 1
xor edx, edx
mov eax, esi
div ebx
lea ebx, [ebp - 2]
add eax, 0x404054
mov edx, edi
call fcn.00403144
lea esp, [ebp + 0x82]
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret

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

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x503376
mov dword [0x50521c], 2
jmp 0x503bbc
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x50408c
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
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 [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c8f
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503cbc
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c8f
mov eax, dword [0x505250]
jmp 0x503cc9
call 0x502c0d
ret
Function at 0x401000
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x40d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push str.NCP004D
push 0x40bc58
push str._s_hs_sDevice_ParametersEDID_OVERRIDE
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.004023ca
add esp, 0x18
cmp eax, 0x100
jl 0x40105c
mov eax, dword [0x40ea38]
or eax, 0xfffffffe
mov dword [0x40ea38], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004020bf
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 0x108]
push ecx
push 0
push 2
push 0
push 0
push 0
lea edx, [ebp - 0x104]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401041
or dword [0x40ea38], 1
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
push edi
xor edi, edi
mov esi, 0x40b9d8
lea esp, [esp]
push edi
push 0x40bcac
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.004023ca
add esp, 0x10
cmp eax, 0x100
jge 0x401199
test edi, edi
je 0x401112
cmp byte [esi], 0
jne 0x401112
mov edx, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x401130
add eax, 0xfffffffe
cmp eax, 1
jbe 0x401137
mov eax, dword [ebp - 0x108]
mov esi, 0xfffffffe
or dword [0x40ea38], esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40115f
or dword [0x40ea38], esi
jmp 0x40115f
mov ecx, dword [ebp - 0x108]
push 0x80
push esi
push 3
push 0
lea eax, [ebp - 0x104]
push eax
push ecx
call ebx
test eax, eax
jne 0x401175
or dword [0x40ea38], 1
sub esi, 0xffffff80
inc edi
cmp esi, 0x40bbd8
jl 0x4010a0
mov edx, dword [ebp - 0x108]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40115f
or dword [0x40ea38], 0xfffffffe
mov ecx, dword [ebp - 4]
mov eax, dword [0x40ea38]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004020bf
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x108]
mov esi, 0xfffffffe
or dword [0x40ea38], esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40115f
or dword [0x40ea38], esi
jmp 0x40115f
mov edx, dword [ebp - 0x108]
mov esi, 0xfffffffe
or dword [0x40ea38], esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40115f
or dword [0x40ea38], esi
jmp 0x40115f
Function at 0x4011c0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x40d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push str.NCP004D
push 0x40bc58
push str._s_hs_sDevice_Parameters
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.004023ca
add esp, 0x18
cmp eax, 0x100
jl 0x40121c
mov eax, dword [0x40ea38]
or eax, 0xfffffffe
mov dword [0x40ea38], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004020bf
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x108]
push ecx
push 2
push 0
lea edx, [ebp - 0x104]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40125f
add eax, 0xfffffffe
cmp eax, 1
jbe 0x40124c
or dword [0x40ea38], 0xfffffffe
mov eax, dword [0x40ea38]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004020bf
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x108]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteTreeA]
push str.EDID_OVERRIDE
push eax
call esi
test eax, eax
je 0x4012b6
add eax, 0xfffffffe
cmp eax, 1
jbe 0x4012bd
mov ecx, dword [ebp - 0x108]
mov esi, 0xfffffffe
or dword [0x40ea38], esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4012fd
or dword [0x40ea38], esi
mov eax, dword [0x40ea38]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004020bf
mov esp, ebp
pop ebp
ret
or dword [0x40ea38], 1
mov edx, dword [ebp - 0x108]
push str.EDID
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x401311
add eax, 0xfffffffe
cmp eax, 1
jbe 0x401318
mov eax, dword [ebp - 0x108]
mov esi, 0xfffffffe
or dword [0x40ea38], esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4012fd
or dword [0x40ea38], esi
mov eax, dword [0x40ea38]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004020bf
mov esp, ebp
pop ebp
ret
or dword [0x40ea38], 1
mov ecx, dword [ebp - 0x108]
push str.EDID_RECOVERY
push ecx
call esi
test eax, eax
je 0x40133b
add eax, 0xfffffffe
cmp eax, 1
jbe 0x401342
or dword [0x40ea38], 0xfffffffe
jmp 0x401342
or dword [0x40ea38], 1
mov eax, dword [ebp - 0x108]
call fcn.00401e40
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004020bf
mov esp, ebp
pop ebp
ret
Function at 0x401360
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x40d004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push str.NCP004D
push 0x40bc58
push str._s_hs
mov ebx, 0x100
lea eax, [ebp - 0x104]
push ebx
push eax
call fcn.004023ca
add esp, 0x14
cmp eax, ebx
jl 0x4013b8
mov eax, dword [0x40ea38]
or eax, 0xfffffffe
mov dword [0x40ea38], eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004020bf
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x108]
push ecx
push 8
push 0
lea edx, [ebp - 0x104]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4013ea
add eax, 0xfffffffe
cmp eax, 1
jbe 0x4014dc
jmp 0x4014d5
mov eax, dword [ebp + 8]
sub eax, 0
push esi
push edi
je 0x4014a0
dec eax
je 0x40144c
dec eax
jne 0x4014c2
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
xor esi, esi
lea ebx, [ebx]
mov edx, dword [ebp - 0x108]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x104]
push ecx
push esi
push edx
mov dword [ebp - 0x10c], ebx
call edi
test eax, eax
jne 0x401490
lea eax, [ebp - 0x104]
push eax
call fcn.004011c0
add esp, 4
inc esi
jmp 0x401410
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
xor esi, esi
mov eax, dword [ebp - 0x108]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x10c]
push ecx
lea edx, [ebp - 0x104]
push edx
push esi
push eax
mov dword [ebp - 0x10c], ebx
call edi
test eax, eax
jne 0x401490
lea ecx, [ebp - 0x104]
push ecx
call section..text
add esp, 4
inc esi
jmp 0x401454
cmp eax, 0x103
je 0x4014c2
or dword [0x40ea38], 0xfffffffe
jmp 0x4014c2
mov edx, dword [ebp - 0x108]
push edx
lea ecx, [ebp - 0x104]
xor edx, edx
call fcn.00401df0
add esp, 4
cmp eax, 1
jne 0x4014c2
or dword [0x40ea38], eax
mov eax, dword [ebp - 0x108]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
test eax, eax
je 0x4014dc
or dword [0x40ea38], 0xfffffffe
mov ecx, dword [ebp - 4]
mov eax, dword [0x40ea38]
xor ecx, ebp
pop ebx
call fcn.004020bf
mov esp, ebp
pop ebp
ret