joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401420
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push str.file_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov esi, 0x407b20
lea eax, [ebp - 0x108]
push dword [0x40770c]
push 0x105
push esi
push str.NOT_POSSIBLE_VALUE
push str.main
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [0x40770c]
mov edi, 0xea
lea eax, [ebp - 0x108]
push edi
push str.exeostype
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, edi
mov dword [0x407724], eax
jne 0x40149c
mov dword [0x407724], 6
push esi
call fcn.004016b2
test eax, eax
je 0x4014b8
push dword [0x407724]
push esi
call fcn.00401632
pop ecx
test eax, eax
pop ecx
jne 0x4014c9
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.004014cf
pop ecx
pop ecx
jmp 0x4014cb
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x4014cf
Capabilities:
Delete file
Read .ini file

Disassembly:
sub esp, 0x218
push ebx
push ebp
push esi
push edi
push 0x8000
mov dword [esp + 0x18], 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push dword [esp + 0x230]
call fcn.004016b2
mov ebp, dword [esp + 0x22c]
test eax, eax
je 0x401534
push dword [esp + 0x230]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
neg eax
dec eax
cmp eax, 0xffffffff
je 0x40162e
push dword [0x40770c]
push 0
push str.main
push ebp
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
and dword [esp + 0x10], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebx, 0x105
mov esi, str.NOT_POSSIBLE_VALUE
push dword [esp + 0x10]
lea eax, [esp + 0x124]
push str.alt_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x18]
push dword [0x40770c]
push ebx
push eax
lea eax, [esp + 0x12c]
push esi
push eax
push ebp
call edi
lea eax, [esp + 0x18]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4015ce
lea eax, [esp + 0x18]
push eax
call fcn.004016b2
test eax, eax
je 0x4015ce
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
neg eax
dec eax
cmp eax, 0xffffffff
je 0x4015c9
push dword [0x40770c]
lea eax, [esp + 0x124]
push 0
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x4015ce
and dword [esp + 0x14], 0
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 5
jl 0x401549
push 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp dword [esp + 0x14], 0
je 0x40161f
push dword [0x40770c]
lea eax, [esp + 0x1c]
push ebx
push eax
push esi
push 0x405100
push ebp
call edi
lea eax, [esp + 0x18]
push eax
call fcn.00401740
test eax, eax
pop ecx
jne 0x40161f
push dword [0x40770c]
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret
xor eax, eax
jmp 0x401623
Function at 0x401632
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
call fcn.004016b2
test eax, eax
je 0x4016ae
cmp dword [esp + 0x14], 6
jne 0x401657
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x401689
jmp 0x4016ae
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x4076f0], eax
jne 0x401690
push ebx
call edi
push 1
pop eax
pop edi
pop esi
pop ebx
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
push ebx
neg esi
sbb esi, esi
neg esi
dec esi
call edi
cmp esi, ebx
jl 0x401689
xor eax, eax
jmp 0x40168c

Function at 0x401740
Capabilities:
Delete directory

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x401757
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401759
xor eax, eax
test eax, eax
je 0x40176a
push eax
call fcn.00401970
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x401770
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404118
push 0x402a38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x407758], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x407754], ecx
shl ecx, 8
add ecx, edx
mov dword [0x407750], ecx
shr eax, 0x10
mov dword [0x40774c], eax
call fcn.00402900
test eax, eax
jne 0x4017da
push 0x1c
call fcn.00401940
add esp, 4
mov dword [ebp - 4], 0
call fcn.00402700
call fcn.004026f0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x407d54], eax
call fcn.004020b0
mov dword [0x407734], eax
test eax, eax
je 0x40180d
mov eax, dword [0x407d54]
test eax, eax
jne 0x401817
push 0xffffffffffffffff
call fcn.00401a10
add esp, 4
call fcn.00401e00
call fcn.00401d10
call fcn.004019e0
mov esi, dword [0x407d54]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x4018f6
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x40185e
test al, al
je 0x40185e
and eax, 0xff
push eax
call fcn.00401cb0
add esp, 4
test eax, eax
je 0x401838
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401838
cmp byte [esi], 0x22
jne 0x401867
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x401877
cmp al, 0x20
ja 0x401877
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401867
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x401898
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x40189d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00401a10
jmp 0x4018db
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x401867
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4018f6

Function at 0x401940
Capabilities:
Terminate process

Disassembly:
cmp dword [0x40773c], 1
jne 0x40194e
call fcn.00495000
mov eax, dword [esp + 4]
push eax
call fcn.00402b50
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401a50
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x407788]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x401a6f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x407784], 1
mov byte [0x407780], bl
jne 0x401ac9
mov ecx, dword [0x407d4c]
test ecx, ecx
je 0x401ab7
mov esi, dword [0x407d48]
sub esi, 4
cmp esi, ecx
jb 0x401ab7
mov eax, dword [esi]
test eax, eax
je 0x401ab0
call eax
mov ecx, dword [0x407d4c]
sub esi, 4
cmp esi, ecx
jae 0x401aa2
push 0x405014
push 0x405010
call fcn.00401b00
add esp, 8
push 0x40501c
push 0x405018
call fcn.00401b00
add esp, 8
test ebx, ebx
jne 0x401af0
push ebp
mov dword [0x407788], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x4020b0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x407898]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x4020f2
call edi
mov esi, eax
test esi, esi
je 0x4020dc
mov eax, 1
jmp 0x4020ed
call ebp
mov ebx, eax
test ebx, ebx
je 0x4021ff
mov eax, 2
mov dword [0x407898], eax
cmp eax, 1
jne 0x402192
test esi, esi
jne 0x40210b
call edi
mov esi, eax
test esi, esi
je 0x4021ff
cmp word [esi], 0
mov eax, esi
je 0x402125
add eax, 2
cmp word [eax], 0
jne 0x402113
add eax, 2
cmp word [eax], 0
jne 0x402113
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x402184
push edi
call fcn.00402d80
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x402184
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x402176
push ebx
call fcn.00402d30
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x4021ff
test ebx, ebx
jne 0x4021a3
call ebp
mov ebx, eax
test ebx, ebx
je 0x4021ff
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x4021bb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4021ab
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4021ab
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00402d80
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4021dd
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x402b50
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x405420
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x402b74
add eax, 8
inc ebp
cmp eax, 0x4054b0
jb 0x402b65
cmp ecx, dword [ebp*8 + 0x405420]
jne 0x402d1b
mov eax, dword [0x40773c]
cmp eax, 1
je 0x402cdd
test eax, eax
jne 0x402ba0
cmp dword [0x405110], 1
je 0x402cdd
cmp ecx, 0xfc
je 0x402d1b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402bdb
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x402c24
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x4043f8
add ebx, ecx
push ebx
call fcn.00403980
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4043d8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x405424]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004038f0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x407c40]
test eax, eax
je 0x402cee
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x402cf8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x405424]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x4177c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc000]
push edi
jmp 0x4177da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4177e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4177d0
mov eax, 1
add ebx, ebx
jne 0x4177f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4177e8
jne 0x417804
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4177e8
xor ecx, ecx
sub eax, 3
jb 0x417818
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41788a
mov ebp, eax
add ebx, ebx
jne 0x417823
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x417830
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x417854
inc ecx
add ebx, ebx
jne 0x417840
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x417835
jne 0x417851
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417835
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x417874
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x417865
jmp 0x4177d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x417874
add edi, ecx
jmp 0x4177d6
pop esi
mov edi, esi
mov ecx, 0xf7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x417892
cmp byte [edi], 0xe
jne 0x417892
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 0x417897
lea edi, [esi + 0x15000]
mov eax, dword [edi]
or eax, eax
je 0x41790f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x177c4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x17844]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4178c4
mov ecx, edi
jns 0x4178f3
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 + 0x1784c]
or eax, eax
je 0x417909
mov dword [ebx], eax
add ebx, 4
jmp 0x4178e1
call dword [esi + 0x17848]
mov ebp, dword [esi + 0x17850]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x417943
sub esp, 0xffffff80
jmp 0x406378
Function at 0xd5b370
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 0xd5b38e
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 0xd84074
push ecx
mov edi, eax
call fcn.00d6f198
mov esi, eax
add esp, 8
test esi, esi
jne 0xd5b3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00d6f02e
push esi
call fcn.00d6efb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xd5e850
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 0xd5e8ae
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 0xd89720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xd5e8ba
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.00d6f1e1
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 0xd5e8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xd89720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xd5e92a
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.00d70082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xd5e957
mov word [eax], si
add eax, 2
push eax
call fcn.00d70030
add esp, 4
jmp 0xd5e959
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 0xd5e8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xd5e8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xd5f0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xd84458
push ecx
call fcn.00d6f1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00d6f1e1
add esp, 0x10
jmp 0xd5f0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00d6f20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00d6edff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00d5f050
mov eax, dword [0xd89728]
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 0xd5f13b
push esi
call fcn.00d5efb0
add esp, 4
mov dword [0xd89728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xd5f14c
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.00d5eff0
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 0xd62440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xd624b7
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 0xd6248e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xd62471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xd6247e
add edx, ecx
cmp ebx, edx
jb 0xd6248a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xd62467
xor ecx, ecx
jmp 0xd624a2
test eax, eax
jne 0xd62492
xor ecx, ecx
jmp 0xd624a2
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.00d623c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xd628f0
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 0xd62921
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 0xd62946
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 0xd6296e
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 0xd62993
push ecx
push esi
call fcn.00d624c0
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 0xd63c00
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 0xd63c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xd63c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xd63c38
add edx, eax
cmp ebx, edx
jb 0xd63c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xd63c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xd63c50
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 0xd63c70
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 0xd63cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xd63c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xd63ca8
add edx, ecx
cmp ebx, edx
jb 0xd63cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xd63c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xd63f60
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.00d70145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xd63ffb
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 0xd63fdd
lea eax, [esp + 0x18]
push eax
jmp 0xd63fe2
push 0xd89720
call fcn.00d6ffd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xd63fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xd63f40
push 4
push ecx
push eax
call fcn.00d7043f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret