joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431640
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x44edd1
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x466d98]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x466d98]
xor eax, esp
push eax
lea eax, [esp + 0xac]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
call fcn.0042eff0
xor ebx, ebx
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
lea edi, [esi + 0xc]
mov ecx, edi
mov dword [esp + 0xb4], ebx
call fcn.0042f010
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
lea edi, [esi + 0x18]
mov ecx, edi
mov byte [esp + 0xb4], 1
call fcn.0042f030
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
lea edi, [esi + 0x24]
mov ecx, edi
mov byte [esp + 0xb4], 2
call fcn.00404e60
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
lea edi, [esi + 0x30]
mov ecx, edi
mov byte [esp + 0xb4], 3
call fcn.00404e60
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
lea ecx, [esi + 0x40]
mov edi, 1
mov dword [esi + 0x3c], edi
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push 0x45734d
mov byte [esp + 0xbc], 4
mov byte [ecx + 4], bl
call fcn.00405b30
push 0x94
lea eax, [esp + 0x18]
push ebx
push eax
mov byte [esp + 0xc0], 5
call fcn.00435580
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x24]
cmp eax, 2
jne 0x431769
mov ecx, esi
mov dword [esi + 0x3c], edi
call fcn.00430b50
mov edx, dword [esp + 0xbc]
push edx
mov ecx, esi
call fcn.00430750
jmp 0x431770
cmp eax, edi
jne 0x431770
mov dword [esi + 0x3c], ebx
mov eax, esi
mov ecx, dword [esp + 0xac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.00433d68
add esp, 0xa8
ret 4
Function at 0x4317a0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x44ee08
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x466d98]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x466d98]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov edi, dword [esp + 0x68]
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
call fcn.0041afc0
test eax, eax
je 0x431946
push edi
call fcn.00419390
add esp, 4
test eax, eax
je 0x431946
xor ebx, ebx
mov eax, edi
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x431820
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x24]
call fcn.00405b30
push 1
push 0x4573b4
lea ecx, [esp + 0x24]
mov dword [esp + 0x68], ebx
call fcn.00403d10
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x431850
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x24]
call fcn.00403d10
mov ebp, dword [esp + 0x78]
cmp ebp, ebx
je 0x4318bf
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x4318bf
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
jae 0x431885
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x3c]
push edx
call fcn.004195e0
add esp, 8
push ebx
push esi
lea ecx, [esp + 0x40]
call fcn.00417580
cmp eax, 0xffffffff
lea ecx, [esp + 0x38]
je 0x4318ba
call fcn.00403ce0
lea ecx, [esp + 0x1c]
call fcn.00403ce0
jmp 0x431946
call fcn.00403ce0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
and eax, 0xfffffff8
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp ebp, ebx
mov eax, dword [esp + 0x20]
je 0x4318f3
cmp dword [esp + 0x34], 0x10
jae 0x4318e6
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x14]
push ecx
push eax
call fcn.00419540
jmp 0x431924
mov ebx, 0x10
cmp dword [esp + 0x34], ebx
jae 0x431902
lea eax, [esp + 0x20]
push eax
call fcn.0041e060
mov eax, dword [esp + 0x24]
add esp, 4
cmp dword [esp + 0x34], ebx
jae 0x431919
lea eax, [esp + 0x20]
mov edx, dword [esp + 0x14]
push edx
push eax
call fcn.004194f0
add esp, 8
or esi, 7
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [esp + 0x34], 0x10
jb 0x431946
mov eax, dword [esp + 0x20]
push eax
call fcn.00433d63
add esp, 4
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00433d68
add esp, 0x50
ret
Function at 0x431d80
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x44ee86
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x466d98]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
push esi
push edi
mov eax, dword [0x466d98]
xor eax, esp
push eax
lea eax, [esp + 0xfc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x10c]
xor ebx, ebx
xor edi, edi
cmp esi, ebx
je 0x431e7f
cmp byte [esi], bl
je 0x431e7f
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x431f33
push 0x40
lea eax, [esp + 0xbc]
push ebx
push eax
call fcn.00435580
movsx ecx, byte [esi]
push ecx
lea edx, [esp + 0xc8]
push str.._c:
push edx
call fcn.0043455d
add esp, 0x18
push ebx
push 0x80
push 3
push ebx
push 3
push bind
lea eax, [esp + 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x431f33
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 8
lea edx, [esp + 0x1c]
push edx
push ebx
push ebx
push 0x2d0c14
push esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x431e73
cmp byte [esp + 0x14], bl
jne 0x431e6e
cmp byte [esp + 0x16], bl
je 0x431e73
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x431f33
push 1
push 2
lea ecx, [esp + 0x40]
call fcn.00404370
lea eax, [esp + 0x38]
push 0x4549fc
push eax
mov dword [esp + 0x10c], ebx
call fcn.004073a0
add esp, 8
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x3c]
call fcn.004044d0
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0x104], 1
jb 0x431eca
mov eax, dword [eax + 4]
jmp 0x431ecd
add eax, 4
push eax
push str.IsUSBHardDrives
push 0x1ba
push str..ywSMPpubDeviceOnlyId.cpp
push 0xf0000000
call fcn.004075e0
mov ecx, eax
call fcn.0041f2e0
cmp dword [esp + 0x34], esi
jb 0x431f01
mov edx, dword [esp + 0x20]
push edx
call fcn.00433d63
add esp, 4
lea ecx, [esp + 0x84]
mov dword [esp + 0x104], 0xffffffff
call fcn.00404450
lea eax, [esp + 0x84]
push eax
mov dword [esp + 0x88], vtable.std::ios_base.0
call fcn.004339e9
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0xfc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.00433d68
add esp, 0xf8
ret
Function at 0x433d68
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x466d98]
jne 0x433d72
repz ret
jmp fcn.0043a81b

Function at 0x435b7e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x435bab
call fcn.0043852b
mov dword [eax], esi
call fcn.00438518
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004346fa
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x435b87
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x435bda
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043853e
pop ecx
call fcn.00438518
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x435c01
test al, 1
je 0x435c01
test byte [esp + 0xc], 2
je 0x435c01
call fcn.0043852b
mov dword [eax], 5
call fcn.00438518
mov dword [eax], 0xd
jmp 0x435bd1
xor eax, eax
pop esi
ret
Function at 0x435d07
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x435d44
cmp dword [ebp + 0x14], edi
je 0x435d44
cmp ecx, edi
jne 0x435d4b
call fcn.00438518
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004346fa
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x435d5f
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x435d80
cmp ebx, 0xffffffff
je 0x435d6f
push ebx
push edi
push ecx
call fcn.00435580
add esp, 0xc
cmp esi, edi
je 0x435d2c
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x435d2c
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x435d9c
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x435da3
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x435e94
test word [esi + 0xc], 0x10c
je 0x435df7
mov eax, dword [esi + 4]
test eax, eax
je 0x435df7
jl 0x435ef5
cmp ebx, eax
mov edi, ebx
jb 0x435dc8
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x435e9c
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00434427
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x435e8c
cmp ebx, dword [ebp - 0xc]
jb 0x435e64
cmp dword [ebp - 0xc], 0
je 0x435e21
mov ecx, bind
xor edx, edx
cmp ebx, ecx
jbe 0x435e16
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x435e1d
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x435e2c
mov eax, bind
cmp ebx, eax
ja 0x435e2c
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x435ec8
push eax
push dword [ebp - 8]
push esi
call fcn.00441568
pop ecx
push eax
call fcn.00441fca
add esp, 0xc
test eax, eax
je 0x435f07
cmp eax, 0xffffffff
je 0x435ef5
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x435e8c
push esi
call fcn.004418e9
cmp eax, 0xffffffff
pop ecx
je 0x435ef9
cmp dword [ebp - 4], 0
je 0x435ec8
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x435dab
mov eax, dword [ebp + 0x14]
jmp 0x435d46
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x435eb3
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00435580
add esp, 0xc
call fcn.00438518
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x435d3c
cmp dword [ebp + 0xc], 0xffffffff
je 0x435ede
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00435580
add esp, 0xc
call fcn.00438518
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x435d3c
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x435d46
or dword [esi + 0xc], 0x10
jmp 0x435ef9
Function at 0x43d7d1
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x467780]
je 0x43d7ec
inc edi
cmp edi, 0x17
jb 0x43d7dd
cmp edi, 0x17
jae 0x43d96c
push ebp
push 3
call fcn.004472e7
cmp eax, 1
pop ecx
je 0x43d938
push 3
call fcn.004472e7
test eax, eax
pop ecx
jne 0x43d820
cmp dword [0x466d94], 1
je 0x43d938
cmp ebx, 0xfc
je 0x43d96b
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x468d78
push ebp
call fcn.0043859f
add esp, 0xc
test eax, eax
je 0x43d856
push esi
push esi
push esi
push esi
push esi
call fcn.004345fe
add esp, 0x14
push 0x104
mov esi, 0x468d91
push esi
push 0
mov byte [0x468e95], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43d89a
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0043859f
add esp, 0xc
test eax, eax
je 0x43d89a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004345fe
add esp, 0x14
push esi
call fcn.00438f50
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43d8df
push esi
call fcn.00438f50
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x46908c
push 0x45619c
sub ecx, eax
push ecx
push eax
call fcn.00443c8d
add esp, 0x14
test eax, eax
je 0x43d8df
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004345fe
add esp, 0x14
jmp 0x43d8e1
xor esi, esi
push 0x456198
push ebx
push ebp
call fcn.00443c1c
add esp, 0xc
test eax, eax
je 0x43d901
push esi
push esi
push esi
push esi
push esi
call fcn.004345fe
add esp, 0x14
push dword [edi*8 + 0x467784]
push ebx
push ebp
call fcn.00443c1c
add esp, 0xc
test eax, eax
je 0x43d923
push esi
push esi
push esi
push esi
push esi
call fcn.004345fe
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0044712a
add esp, 0xc
jmp 0x43d96b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x43d96b
cmp ebp, 0xffffffff
je 0x43d96b
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x467784]
push dword [esi]
call fcn.00438f50
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x44712a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0043bf6f
xor ebx, ebx
cmp dword [0x4692d0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x447200
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4472e0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4472e0
push eax
call fcn.0043bf01
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4692d0], eax
call esi
push eax
call fcn.0043bf01
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4692d4], eax
call esi
push eax
call fcn.0043bf01
mov dword [0x4692d8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0043c9a1
test eax, eax
pop ecx
pop ecx
je 0x4471ce
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004345fe
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x447200
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0043bf01
cmp eax, ebx
pop ecx
mov dword [0x4692e0], eax
je 0x447200
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043bf01
pop ecx
mov dword [0x4692dc], eax
mov eax, dword [0x4692dc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x447285
cmp dword [0x4692e0], ecx
je 0x447285
push eax
call fcn.0043bf78
push dword [0x4692e0]
mov esi, eax
call fcn.0043bf78
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x447285
cmp edi, ebx
je 0x447285
call esi
cmp eax, ebx
je 0x447252
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x447252
test byte [ebp - 0x18], 1
jne 0x447285
lea eax, [ebp - 0x10]
push eax
call fcn.0043c9d8
test eax, eax
pop ecx
je 0x44726d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004345fe
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x44727c
or dword [ebp + 0x10], 0x200000
jmp 0x4472c0
or dword [ebp + 0x10], 0x40000
jmp 0x4472c0
mov eax, dword [0x4692d4]
cmp eax, dword [ebp - 8]
je 0x4472c0
push eax
call fcn.0043bf78
cmp eax, ebx
pop ecx
je 0x4472c0
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4472c0
mov eax, dword [0x4692d8]
cmp eax, dword [ebp - 8]
je 0x4472c0
push eax
call fcn.0043bf78
cmp eax, ebx
pop ecx
je 0x4472c0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4692d0]
call fcn.0043bf78
cmp eax, ebx
pop ecx
je 0x4472e0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4472e2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x60f370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x60f38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x638074
push ecx
mov edi, eax
call fcn.00623198
mov esi, eax
add esp, 8
test esi, esi
jne 0x60f3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0062302e
push esi
call fcn.00622fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x612850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x6128ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x63d720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x6128ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.006231e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x6128ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x63d720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x61292a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00624082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x612957
mov word [eax], si
add eax, 2
push eax
call fcn.00624030
add esp, 4
jmp 0x612959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x6128ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x6128b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x612ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x613080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x6130c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x638458
push ecx
call fcn.006231e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.006231e1
add esp, 0x10
jmp 0x6130d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0062320b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00622dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00613050
mov eax, dword [0x63d728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x61313b
push esi
call fcn.00612fb0
add esp, 4
mov dword [0x63d728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x61314c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00612ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x616440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x6164b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x61648e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x616471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x61647e
add edx, ecx
cmp ebx, edx
jb 0x61648a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x616467
xor ecx, ecx
jmp 0x6164a2
test eax, eax
jne 0x616492
xor ecx, ecx
jmp 0x6164a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.006163c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x6168f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x616921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x616946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x61696e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x616993
push ecx
push esi
call fcn.006164c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret