joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b040
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d6d8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x49d22c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
test esi, esi
je 0x43b214
push str.__set_log_lev0
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x43b095
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 4]
jmp 0x43b214
push str.__set_log_lev1
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x43b0b3
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 4]
jmp 0x43b214
push str.__set_log_lev2
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x43b0d1
mov eax, dword [edi]
mov ecx, edi
push 2
call dword [eax + 4]
jmp 0x43b214
push str.__set_log_lev3
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x43b0ef
mov eax, dword [edi]
mov ecx, edi
push 3
call dword [eax + 4]
jmp 0x43b214
push str.__reload_log_switch
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x43b214
lea eax, [edi + 4]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x43b114
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [edi + 0x2c]
mov dword [edi + 0x1c], 3
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], ecx
jb 0x43b147
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
cmp ecx, 8
jae 0x43b15f
movups xmm0, xmmword [eax]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 7
movups xmmword [ebp - 0x28], xmm0
jmp 0x43b19d
mov esi, ecx
mov eax, 0x7ffffffe
or esi, 7
lea ecx, [ebp - 0x28]
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.00406140
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x2c]
push eax
call fcn.00450c90
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
push 0x484dac
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0043bc30
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43b1cb
mov dword [edi + 0x1c], 0
cmp dword [edi + 0x28], 0
je 0x43b204
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x43b204
push str._______log_reload_switch
lea ecx, [ebp - 0x4c]
call fcn.0041cca0
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x4c]
push edx
mov byte [ebp - 4], 2
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x4c]
call fcn.00402f90
lea ecx, [ebp - 0x28]
call fcn.00402f90
lea ecx, [ebp - 0x34]
call fcn.0043aae0
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.0043c91d
mov esp, ebp
pop ebp
ret 4
Function at 0x43b5b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d797
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x49d22c]
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, ecx
mov ebx, dword [ebp + 8]
lea esi, [edi + 4]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esi
test esi, esi
je 0x43b5fa
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, ebx
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43b606
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [edi + 0x2c]
call fcn.00406710
cmp dword [edi + 0x28], 0
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x44], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x24], eax
jne 0x43b673
push 0x48
call fcn.0043c645
mov ebx, eax
add esp, 4
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 1
test ebx, ebx
je 0x43b667
push 0x48
push 0
push ebx
call fcn.00451790
add esp, 0xc
mov ecx, ebx
push dword [ebp + 0x14]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.0043a8d0
jmp 0x43b669
xor eax, eax
mov ebx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
mov dword [edi + 0x28], eax
xor eax, eax
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0x10], eax
mov ecx, ebx
mov dword [ebp - 0x14], 7
sete al
lea edx, [ecx + 2]
lea eax, [eax*2 + 1]
mov dword [edi + 0x1c], eax
xor eax, eax
mov word [ebp - 0x28], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43b6a0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.00406710
push 3
push 0x484dac
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00409940
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43b6ef
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], eax
cmp dword [edi + 0x28], 0
je 0x43b73e
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x43b73e
push 0x10
xor eax, eax
mov dword [ebp - 0x40], 0
push str._______log_start
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
call fcn.00406710
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x50]
push edx
mov byte [ebp - 4], 3
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x50]
call fcn.00402f90
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x43b774
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43b76a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43b7b1
push edx
push ecx
call fcn.0043c675
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test esi, esi
je 0x43b793
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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.0043c91d
mov esp, ebp
pop ebp
ret 0x14
call fcn.00454cb9
int3
Function at 0x43c050
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d898
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x49d22c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.0043c645
mov edi, eax
add esp, 4
test edi, edi
je 0x43c0f3
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00419654
add esp, 4
mov dword [edi + 4], eax
jmp 0x43c0f5
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.00401c10
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
call dword [edx + 0x30]
movzx edi, ax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x43c155
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x43c155
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov word [esi + 0x40], di
jne 0x43c179
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x43c19b
cmp byte [ebp + 0xc], 0
je 0x43c188
push esi
call fcn.00419bc4
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x43c1a7
mov esi, str.ios_base::badbit_set
jmp 0x43c1b7
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.00407570
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.00402b70
push 0x496bec
lea eax, [ebp - 0x30]
push eax
call fcn.00450870
int3
Function at 0x43db10
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x86c
mov eax, dword [0x49d22c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.00451790
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00451790
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00451790
push 0x250
lea eax, [ebp - 0x86c]
push 0
push eax
call fcn.00451790
add esp, 0x30
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ecx, 0x4c5cf8
lea esi, [ebp - 0x20c]
mov edx, 0x104
sub esi, ecx
nop word [eax + eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x43dbce
movzx eax, word [esi + ecx]
test ax, ax
je 0x43dbce
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x43dbb0
lea eax, [ecx - 2]
test edx, edx
push 0x104
cmovne eax, ecx
xor ecx, ecx
push 0x4c5cf8
mov word [eax], cx
call fcn.00464999
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x20c]
add esp, 8
push str..dll
push eax
lea eax, [ebp - 0x61c]
push eax
call esi
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x43dcd4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop
test dword [ebp - 0x86c], 0xffffffef
je 0x43dcb4
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00451790
add esp, 0xc
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call esi
lea eax, [ebp - 0x414]
push eax
call fcn.00432d30
add esp, 4
test eax, eax
jne 0x43dca3
mov esi, 0x49d248
lea eax, [ebp - 0x840]
push eax
push dword [esi]
call fcn.00455106
add esp, 8
test eax, eax
je 0x43dca3
add esi, 4
cmp esi, 0x49d250
jl 0x43dc81
jmp 0x43dcb4
lea eax, [ebp - 0x840]
mov ecx, 0x4c5f04
push eax
call fcn.0043ef60
lea eax, [ebp - 0x86c]
push eax
push edi
call ebx
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
jne 0x43dc30
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
push 0x104
push 0x4c5af0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
pop edi
pop esi
test eax, eax
je 0x43dd2a
push str.NtOpenFile
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c5f00], eax
test eax, eax
je 0x43dd2a
push 0x43dd40
push 0x4c5f00
call fcn.0043e380
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043c91d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0043c91d
mov esp, ebp
pop ebp
ret
Function at 0x43e7b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x49d22c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp dword [0x4c5f30], edi
jne 0x43e7e5
push 0x4c5f34
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4c5f30], 1
push 0x4c5f34
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x4c5f4c]
test esi, esi
je 0x43e8ce
mov eax, dword [ebx]
cmp dword [esi + 8], eax
je 0x43e811
mov esi, dword [esi + 0x70]
test esi, esi
jne 0x43e800
jmp 0x43e8ce
test esi, esi
je 0x43e8ce
push dword [esi + 4]
push dword [esi]
call fcn.0043e9f0
add esp, 8
mov dword [ebp - 8], edi
lea eax, [ebp - 8]
push eax
push 0x40
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x43e8c9
mov eax, dword [esi + 4]
xor ecx, ecx
mov edx, dword [esi]
test eax, eax
je 0x43e861
nop dword [eax]
mov al, byte [esi + ecx + 0x4c]
mov byte [ecx + edx], al
inc ecx
mov eax, dword [esi + 4]
cmp ecx, eax
jb 0x43e850
mov edx, dword [esi]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esi]
mov edi, 1
mov dword [ebx], eax
mov ecx, dword [esi + 0x6c]
test ecx, ecx
je 0x43e898
mov eax, dword [esi + 0x70]
mov dword [ecx + 0x70], eax
mov ecx, dword [esi + 0x70]
test ecx, ecx
je 0x43e8a5
mov eax, dword [esi + 0x6c]
mov dword [ecx + 0x6c], eax
cmp dword [0x4c5f4c], esi
jne 0x43e8b5
mov eax, dword [esi + 0x70]
mov dword [0x4c5f4c], eax
dec dword [0x4c5f54]
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
call fcn.0043e8f0
push 0x4c5f34
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043c91d
mov esp, ebp
pop ebp
ret

Function at 0x43e8f0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0xf
mov dword [ebp - 4], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor esi, esi
cmp dword [0x4c5f5c], esi
jbe 0x43e946
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x4c5f58]
push dword [eax + esi*4]
call ebx
mov eax, dword [0x4c5f58]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [0x4c5f5c]
jb 0x43e924
pop ebx
push dword [0x4c5f58]
call fcn.00454da0
add esp, 4
mov dword [0x4c5f58], 0
mov dword [0x4c5f5c], 0
push dword [ebp - 4]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43ed40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [eax], 0
je 0x43edc2
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, 0x7fed7fed
mov dword [ebp + 8], 0xeeeeeeee
movzx eax, word [ebx]
test ax, ax
je 0x43edb8
shl dword [ebp + 0xc], 8
push esi
nop dword [eax]
push eax
call fcn.00469121
movzx esi, ax
lea ebx, [ebx + 2]
mov eax, dword [ebp + 0xc]
xor edx, edx
add eax, esi
add edi, dword [ebp + 8]
mov ecx, 0x500
add esp, 4
div ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 4]
xor edi, dword [eax + edx*4]
mov eax, dword [ebp + 8]
mov ecx, eax
shl ecx, 5
add eax, 3
add ecx, esi
add eax, ecx
movzx ecx, word [ebx]
add eax, edi
mov dword [ebp + 8], eax
mov eax, ecx
test cx, cx
jne 0x43ed70
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x47195c
Capabilities:
Set environment variable

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

Function at 0x471b8c
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00471a91
Function at 0x575370
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 0x57538e
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 0x59e074
push ecx
mov edi, eax
call fcn.00589198
mov esi, eax
add esp, 8
test esi, esi
jne 0x5753cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0058902e
push esi
call fcn.00588fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x578850
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 0x5788ae
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 0x5a3720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x5788ba
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.005891e1
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 0x5788ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x5a3720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x57892a
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.0058a082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x578957
mov word [eax], si
add eax, 2
push eax
call fcn.0058a030
add esp, 4
jmp 0x578959
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 0x5788ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x5788b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x578ff0
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 0x579080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x5790c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x59e458
push ecx
call fcn.005891e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.005891e1
add esp, 0x10
jmp 0x5790d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0058920b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00588dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00579050
mov eax, dword [0x5a3728]
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 0x57913b
push esi
call fcn.00578fb0
add esp, 4
mov dword [0x5a3728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x57914c
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.00578ff0
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 0x57c440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x57c4b7
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 0x57c48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x57c471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x57c47e
add edx, ecx
cmp ebx, edx
jb 0x57c48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x57c467
xor ecx, ecx
jmp 0x57c4a2
test eax, eax
jne 0x57c492
xor ecx, ecx
jmp 0x57c4a2
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.0057c3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x57c8f0
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 0x57c921
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 0x57c946
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 0x57c96e
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 0x57c993
push ecx
push esi
call fcn.0057c4c0
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
Function at 0x57dc00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0x57dc4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x57dc2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x57dc38
add edx, eax
cmp ebx, edx
jb 0x57dc46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x57dc21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x57dc50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0x57dc70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
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 0x57dcb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x57dc9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x57dca8
add edx, ecx
cmp ebx, edx
jb 0x57dcb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x57dc91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x57df60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.0058a145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x57dffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x57dfdd
lea eax, [esp + 0x18]
push eax
jmp 0x57dfe2
push 0x5a3720
call fcn.00589fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x57dfb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x57df40
push 4
push ecx
push eax
call fcn.0058a43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret