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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40dd3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40dd3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x4060bb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40d448]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00405456
and dword [ebp - 0x14], 0
cmp dword [0x42da78], 0
mov dword [ebp - 0x18], eax
jne 0x40616e
push 0x401de0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406216
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401dd4
push ebx
call edi
test eax, eax
je 0x406216
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x401dc4
push ebx
mov dword [0x42da78], eax
call edi
push eax
call esi
push 0x401db0
push ebx
mov dword [0x42da7c], eax
call edi
push eax
call esi
push 0x401d94
push ebx
mov dword [0x42da80], eax
call edi
push eax
call esi
mov dword [0x42da88], eax
test eax, eax
je 0x40616e
push 0x401d7c
push ebx
call edi
push eax
call esi
mov dword [0x42da84], eax
mov eax, dword [0x42da84]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4061c7
cmp dword [0x42da88], ecx
je 0x4061c7
push eax
call esi
push dword [0x42da88]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4061c7
test ebx, ebx
je 0x4061c7
call edi
test eax, eax
je 0x4061be
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4061be
test byte [ebp - 8], 1
jne 0x4061c7
or dword [ebp + 0x10], 0x200000
jmp 0x4061fa
mov eax, dword [0x42da7c]
cmp eax, dword [ebp - 0x18]
je 0x4061fa
push eax
call esi
test eax, eax
je 0x4061fa
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4061fa
mov eax, dword [0x42da80]
cmp eax, dword [ebp - 0x18]
je 0x4061fa
push eax
call esi
test eax, eax
je 0x4061fa
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42da78]
call esi
test eax, eax
je 0x406216
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406218
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406426
leave
ret

Function at 0x406426
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d448]
jne 0x406430
repz ret
jmp fcn.0040852d
Function at 0x409f70
Capabilities:
Copy file
Get uefi variable

Disassembly:
sub esp, 0xe3c
cmp dword [0x4a9600], 0x37
jne 0x409ff5
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
push 0x402a48
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea eax, [esp + 0x18]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
push 0
lea ecx, [esp + 0x23c]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
lea edx, [esp]
push edx
push 0
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
push 0
call dword [sym.imp.KERNEL32.dll_PulseEvent]
push 0
lea ecx, [esp + 0x63c]
push ecx
push 0x402a6c
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
mov edx, dword [0x4a9604]
mov ecx, dword [0x4a8ce4]
mov al, byte [edx + esi + 0x38d6]
mov byte [ecx + esi], al
add esp, 0xe3c
ret
Function at 0x8f2aa0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x8be015
lea edi, [esi - 0x4bd015]
push edi
jmp 0x8f2aba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x8f2ac1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8f2ab0
mov eax, 1
add ebx, ebx
jne 0x8f2ad3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8f2ae4
jne 0x8f2b03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8f2b03
dec eax
add ebx, ebx
jne 0x8f2af0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x8f2ac8
add ebx, ebx
jne 0x8f2aff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x8f2b55
xor ecx, ecx
sub eax, 3
jb 0x8f2b1b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8f2b8a
sar eax, 1
mov ebp, eax
jmp 0x8f2b26
add ebx, ebx
jne 0x8f2b26
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8f2af4
inc ecx
add ebx, ebx
jne 0x8f2b34
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8f2af4
add ebx, ebx
jne 0x8f2b41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x8f2b36
jne 0x8f2b52
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x8f2b36
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8f2b74
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8f2b66
jmp 0x8f2ab6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8f2b74
add edi, ecx
jmp 0x8f2ab6
pop esi
mov edi, esi
mov ecx, 0x1354
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x8f2b92
cmp byte [edi], 0x13
jne 0x8f2b92
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 0x8f2b97
lea edi, [esi + 0x4f0000]
mov eax, dword [edi]
or eax, eax
je 0x8f2c06
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4f29c0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4f2a88]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x8f2bc4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4f2a8c]
or eax, eax
je 0x8f2c00
mov dword [ebx], eax
add ebx, 4
jmp 0x8f2be1
call dword [esi + 0x4f2a9c]
mov ebp, dword [esi + 0x4f2a90]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x8f2c3a
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x452004]
jne 0x40100a
repz ret
jmp fcn.00401685

Function at 0x407b30
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.004023ae
and dword [ebp - 4], 0
cmp dword [0x453cf4], 0
mov ebx, eax
jne 0x407be1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407c92
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407c92
push eax
call fcn.0040233c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x453cf4], eax
call esi
push eax
call fcn.0040233c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x453cf8], eax
call esi
push eax
call fcn.0040233c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x453cfc], eax
call esi
push eax
call fcn.0040233c
pop ecx
mov dword [0x453d04], eax
test eax, eax
je 0x407be1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040233c
pop ecx
mov dword [0x453d00], eax
mov eax, dword [0x453d00]
cmp eax, ebx
je 0x407c39
cmp dword [0x453d04], ebx
je 0x407c39
push eax
call fcn.004023b7
push dword [0x453d04]
mov esi, eax
call fcn.004023b7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407c39
test edi, edi
je 0x407c39
call esi
test eax, eax
je 0x407c30
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407c30
test byte [ebp - 0xc], 1
jne 0x407c39
or dword [ebp + 0x10], 0x200000
jmp 0x407c72
mov eax, dword [0x453cf8]
cmp eax, ebx
je 0x407c72
push eax
call fcn.004023b7
pop ecx
test eax, eax
je 0x407c72
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407c72
mov eax, dword [0x453cfc]
cmp eax, ebx
je 0x407c72
push eax
call fcn.004023b7
pop ecx
test eax, eax
je 0x407c72
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x453cf4]
call fcn.004023b7
pop ecx
test eax, eax
je 0x407c92
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407c94
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4027c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x110]
mov esi, ecx
push eax
push 0
call dword [0x4230ac]
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x4029e5
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x4029e5
push 0x44
lea eax, [ebp - 0x158]
push 0
push eax
call 0x40f860
add esp, 0xc
lea eax, [ebp - 0x16c]
xorps xmm0, xmm0
movups xmmword [ebp - 0x16c], xmm0
push eax
lea eax, [ebp - 0x158]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x110]
push eax
call dword [0x42307c]
test eax, eax
je 0x4029e5
push 4
push 0x1000
push 4
push 0
call dword [0x423094]
mov ebx, eax
push ebx
mov dword [ebp - 0x178], ebx
mov dword [ebx], 0x10007
push dword [ebp - 0x168]
call dword [0x423058]
test eax, eax
je 0x4029e5
push 0
push 4
lea eax, [ebp - 0x15c]
push eax
mov eax, dword [ebx + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x16c]
call dword [0x423068]
mov eax, dword [edi + 0x34]
cmp dword [ebp - 0x15c], eax
jne 0x4028e1
push 0x4281c0
push 0x4281d8
call dword [0x423030]
push eax
call dword [0x42305c]
push dword [ebp - 0x15c]
push dword [ebp - 0x16c]
call eax
mov eax, dword [edi + 0x34]
push 0x40
push 0x3000
push dword [edi + 0x50]
push eax
push dword [ebp - 0x16c]
call dword [0x423060]
mov dword [ebp - 0x174], eax
test eax, eax
je 0x4029e5
push 0
push dword [edi + 0x54]
push esi
push eax
push dword [ebp - 0x16c]
call dword [0x4230a4]
xor eax, eax
mov dword [ebp - 0x170], 0
cmp ax, word [edi + 6]
jae 0x40297e
xor ebx, ebx
nop dword [eax]
lea ecx, [ebx + esi]
add ecx, dword [esi + 0x3c]
push 0
push dword [ecx + 0x108]
mov eax, dword [ecx + 0x10c]
add eax, esi
push eax
mov eax, dword [ecx + 0x104]
add eax, dword [ebp - 0x174]
push eax
push dword [ebp - 0x16c]
call dword [0x4230a4]
mov ecx, dword [ebp - 0x170]
lea ebx, [ebx + 0x28]
movzx eax, word [edi + 6]
inc ecx
mov dword [ebp - 0x170], ecx
cmp ecx, eax
jl 0x402930
mov ebx, dword [ebp - 0x178]
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [ebx + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x16c]
call dword [0x4230a4]
mov eax, dword [edi + 0x28]
add eax, dword [ebp - 0x174]
push ebx
mov dword [ebx + 0xb0], eax
push dword [ebp - 0x168]
call dword [0x423084]
push dword [ebp - 0x168]
call dword [0x42302c]
push 0x8000
push 0
push esi
call dword [0x42309c]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call 0x40e38c
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push esi
call dword [0x42309c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call 0x40e38c
mov esp, ebp
pop ebp
ret
Function at 0xd6b370
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 0xd6b38e
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 0xd94074
push ecx
mov edi, eax
call fcn.00d7f198
mov esi, eax
add esp, 8
test esi, esi
jne 0xd6b3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00d7f02e
push esi
call fcn.00d7efb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xd6e850
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 0xd6e8ae
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 0xd99720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xd6e8ba
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.00d7f1e1
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 0xd6e8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xd99720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xd6e92a
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.00d80082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xd6e957
mov word [eax], si
add eax, 2
push eax
call fcn.00d80030
add esp, 4
jmp 0xd6e959
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 0xd6e8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xd6e8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xd6f0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xd94458
push ecx
call fcn.00d7f1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00d7f1e1
add esp, 0x10
jmp 0xd6f0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00d7f20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00d7edff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00d6f050
mov eax, dword [0xd99728]
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 0xd6f13b
push esi
call fcn.00d6efb0
add esp, 4
mov dword [0xd99728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xd6f14c
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.00d6eff0
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 0xd72440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xd724b7
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 0xd7248e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xd72471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xd7247e
add edx, ecx
cmp ebx, edx
jb 0xd7248a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xd72467
xor ecx, ecx
jmp 0xd724a2
test eax, eax
jne 0xd72492
xor ecx, ecx
jmp 0xd724a2
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.00d723c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xd728f0
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 0xd72921
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 0xd72946
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 0xd7296e
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 0xd72993
push ecx
push esi
call fcn.00d724c0
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 0xd73c00
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 0xd73c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xd73c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xd73c38
add edx, eax
cmp ebx, edx
jb 0xd73c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xd73c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xd73c50
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 0xd73c70
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 0xd73cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xd73c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xd73ca8
add edx, ecx
cmp ebx, edx
jb 0xd73cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xd73c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xd73f60
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.00d80145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xd73ffb
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 0xd73fdd
lea eax, [esp + 0x18]
push eax
jmp 0xd73fe2
push 0xd99720
call fcn.00d7ffd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xd73fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xd73f40
push 4
push ecx
push eax
call fcn.00d8043f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xd74310
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.00d80145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xd743ab
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 0xd7438d
lea eax, [esp + 0x18]
push eax
jmp 0xd74392
push 0xd99720
call fcn.00d7ffd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xd74360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xd73f40
push 4
push ecx
push eax
call fcn.00d8043f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret