joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48285a
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4e54c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x482910
movzx eax, word [esi]
test ax, ax
je 0x482910
push edi
mov edi, esi
mov ecx, esi
cmp ax, 0x2f
je 0x48289a
cmp ax, 0x5c
jne 0x48289c
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x48288e
cmp edi, esi
je 0x4828e3
sub edi, esi
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push esi
push eax
call fcn.0049637a
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x482920
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.0048285a
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0049635a
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0049632b
add esp, 0x10
lea eax, [ebp - 0x414]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004906bc
mov esp, ebp
pop ebp
ret
call fcn.0049249b
int3

Function at 0x482ef5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x482f71
cmp dword [edi + 4], 0xffffffff
jne 0x482f71
push esi
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x4d33d8
push esi
call fcn.0049632b
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop esi
jne 0x482f43
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x482f43
mov eax, 0x2000000
jmp 0x482f76
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004853fb
add esp, 0x10
test eax, eax
jne 0x482f61
mov eax, dword [ebp - 4]
jmp 0x482f76
push eax
call fcn.00485b02
mov dword [edi], eax
mov eax, dword [0x4e9c2c]
pop ecx
jmp 0x482f76
mov eax, 0x1000000
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x485508
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
imul esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x48553c
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x485537
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x485563
mov edx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x14]
jbe 0x48554c
mov esi, dword [edi + 0x14]
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.00491450
add esp, 0xc
mov eax, esi
add dword [edi + 0x18], esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x4856d6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4856e4
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x48579f
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4c4c48]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4c4c48]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4c4c48]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4c4c48]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4c4c48]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4c4c48]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4c4c48]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4c4c48]
dec edi
jne 0x485702
pop edi
test esi, esi
je 0x4857b8
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4c4c48]
inc edx
dec esi
jne 0x4857a3
not ecx
pop esi
mov eax, ecx
pop ebx
pop ebp
ret
Function at 0x48cdea
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 8]
and edi, 7
je 0x48ce0e
cmp dword [esi + 8], edi
jge 0x48ce06
push esi
call fcn.004891f2
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x48ce34
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x48ce1a
mov dword [esi + 8], edx
jmp 0x48ce49
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x48ce3f
xor dl, dl
jmp 0x48ce44
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x48ce34
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x48ce83
push str.zlib_corrupt
call fcn.0048911b
add esp, 4
jmp 0x48cec3
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x48ce93
push str.read_past_buffer
jmp 0x48ce79
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x48cead
push edi
push ecx
push esi
call fcn.0048f951
add esp, 0xc
test eax, eax
je 0x48cec3
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.00491450
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x4ac3e0
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4e54c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0049c341
mov dword [ebp - 0x14], eax
cmp dword [0x4eaf20], esi
jne 0x4ac4d3
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4ac460
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4ac5b3
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4ac5b3
push 0x4cfe30
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4ac5b3
push eax
call ebx
push 0x4cfe3c
push edi
mov dword [0x4eaf20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4cfe4c
push edi
mov dword [0x4eaf24], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4eaf28], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4eaf30], eax
test eax, eax
je 0x4ac4d0
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4eaf2c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4ac4f8
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4ac4eb
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4ac50d
push 4
pop eax
jmp 0x4ac5b5
cmp dword [ebp - 0x14], esi
je 0x4ac50d
push dword [0x4eaf20]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4ac4f2
mov eax, dword [0x4eaf2c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4ac56b
cmp dword [0x4eaf30], edi
je 0x4ac56b
push eax
call ebx
push dword [0x4eaf30]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4ac56b
test eax, eax
je 0x4ac56b
call ecx
test eax, eax
je 0x4ac560
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4ac560
test byte [ebp - 8], 1
jne 0x4ac56b
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4ac59b
mov eax, dword [0x4eaf24]
cmp eax, edi
je 0x4ac598
push eax
call ebx
test eax, eax
je 0x4ac598
call eax
mov esi, eax
test esi, esi
je 0x4ac598
mov eax, dword [0x4eaf28]
cmp eax, edi
je 0x4ac598
push eax
call ebx
test eax, eax
je 0x4ac598
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4eaf20]
call ebx
test eax, eax
je 0x4ac5b3
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4ac5b5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004906bc
mov esp, ebp
pop ebp
ret
Function at 0x413d2b
Capabilities:
Encode data using xor

Disassembly:
invalid
into
adc byte [esi + 0x4dfb97f0], dh
xchg edi, eax
popal
movsb byte es:[edi], byte [esi]
mov dh, 0x78
jns 0x413d1e
push ebp
jae 0x413c94
adc byte [esi - 0x137021b], cl
test eax, 0xc61a9877
not eax
cwde
and dh, byte [edi]
or eax, 0x7932c99d
push es
jmp 0x413d44
xor dword [eax + 0x6a], ebx
cld
mov byte [0x721d2ba9], al
aaa
iretd
out dx, al
fsub st(3), st(0)
daa
adc byte [ecx], 0x88
xchg ebp, eax
xor byte [edi + 0x43], ch
cmp dl, byte [eax]
xchg ecx, eax
add al, bh
jns 0x413cd3
push es
out dx, al
das
jmp 0x413dba
hlt
invalid

Function at 0x4569bb
Capabilities:
Authenticate hmac

Disassembly:
sbb dl, byte [edi - 0x56f9b1c8]
int3
pushal
dec eax
lcall 0xf2ae, 0xd1a812d3
ror dword [ebp - 0x49c632a4], 0x60
sti
push esi
inc edx
loope 0x456986
cmp eax, 0x45e40746
inc ebp
dec ebp
inc esp
mov cl, 0x5c
outsb dx, byte [esi]
daa
fdiv qword [esi]
pop eax
sub al, 0x8c
pop ebx
mov esp, 0x8c26e4e1
salc
cmp al, 0x17
pop ds
mov eax, dword [0x848e5fdd]
push esp
jb 0x456a6f
dec ebx
das
invalid
or byte [ecx - 0x1c], 0xc8
out 0, al
pop ebp
dec esp
mov ah, 0x7e
cmpsb byte [esi], byte es:[edi]
and dword [edx + edi], ecx
sbb dword [edi + 0x25], edi
test byte [esi], 0xf4
or esp, ecx
add dword [eax + edx*4 - 0x6921b844], edi
mov al, byte [esi - 0x603699e]
pop eax
push esi
retf

Function at 0x65782d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x65f398
cmp edx, dword [eax]
je 0x65784f
add eax, 8
inc ecx
cmp eax, 0x65f428
jl 0x657840
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x65f398]
jne 0x65797d
mov eax, dword [0xa5bcf4]
cmp eax, 1
je 0x657957
test eax, eax
jne 0x657880
cmp dword [0x65f2c4], 1
je 0x657957
cmp edx, 0xfc
je 0x65797d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x6578b7
lea eax, [ebp - 0x1a4]
push 0x65c9e0
push eax
call fcn.00658210
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.006586a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x6578fa
lea eax, [ebp - 0x1a4]
push eax
call fcn.006586a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65c9dc
push edi
call fcn.0065a570
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x65c9c0
push eax
call fcn.00658210
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00658220
lea eax, [ebp - 0xa0]
push 0x65c9bc
push eax
call fcn.00658220
push dword [esi + 0x65f39c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00658220
push 0x12010
lea eax, [ebp - 0xa0]
push 0x65c994
push eax
call fcn.0065a4e4
add esp, 0x2c
pop edi
jmp 0x65797d
lea eax, [ebp + 8]
lea esi, [esi + 0x65f39c]
push 0
push eax
push dword [esi]
call fcn.006586a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4023d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4114
call fcn.004159b0
mov eax, dword [0x41f004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x4108]
push esi
push edi
mov edi, 0x3c
mov esi, 0x57fee4
sub edi, eax
cmp byte [esi], 0
je 0x4024cd
push esi
push str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
lea eax, [ebp - 0x108]
push str._s_sConnection
push eax
call fcn.00401050
add esp, 0x10
lea eax, [ebp - 0x4110]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x108]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4024cd
mov byte [ebp - 0x4108], al
lea eax, [ebp - 0x410c]
push eax
lea eax, [ebp - 0x4108]
mov dword [ebp - 0x410c], 0x3fff
push eax
push 0
push 0
push str.Name
push dword [ebp - 0x4110]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4024b1
mov eax, dword [ebp - 0x410c]
cmp eax, 0x3fff
jae 0x4024f0
mov byte [ebp + eax - 0x4108], 0
lea edx, [edi + esi]
lea eax, [ebp - 0x4108]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x4024a2
jmp 0x4024c5
lea eax, [ebp - 0x108]
push eax
push str.GetInterfaceNames:_error_for___s__n
call fcn.00403f40
add esp, 8
push dword [ebp - 0x4110]
call ebx
add esi, 0x384
cmp esi, 0x6df7e4
jl 0x402402
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403f9d
mov esp, ebp
pop ebp
ret
call fcn.004040cf
int3
Function at 0x4030d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x41f004]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ecx]
push esi
mov esi, edx
push edi
cmp al, 4
jne 0x4030f4
mov edx, str.ipv4
jmp 0x403101
cmp al, 6
jne 0x40322e
mov edx, str.ipv6
mov eax, dword [ecx + 4]
cmp eax, 0x240
jae 0x403117
mov dword [ecx + 4], 0x240
mov eax, 0x240
push eax
push esi
push edx
lea eax, [ebp - 0x108]
push str.C:Windows_system32_netsh.exe_interface__s_set_interface_interface__s__mtu_u
push eax
call fcn.00401050
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
push str.QCMTU_SetMTU:_calling___s__n
call fcn.00403f40
add esp, 8
mov dword [ebp - 0x168], 0x44
lea eax, [ebp - 0x11c]
xorps xmm0, xmm0
movups xmmword [ebp - 0x11c], xmm0
push eax
lea eax, [ebp - 0x168]
movlpd qword [ebp - 0x164], xmm0
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
lea eax, [ebp - 0x108]
movlpd qword [ebp - 0x15c], xmm0
push eax
push 0
movlpd qword [ebp - 0x154], xmm0
movlpd qword [ebp - 0x14c], xmm0
movlpd qword [ebp - 0x144], xmm0
movlpd qword [ebp - 0x13c], xmm0
movlpd qword [ebp - 0x134], xmm0
movlpd qword [ebp - 0x12c], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
test edi, edi
jne 0x4031d2
push str.QCMTU_SetMTU:_CreateProcess_failure_n
call fcn.00403f40
add esp, 4
push 0xffffffffffffffff
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x11c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x118]
call esi
push dword [ebp - 0x10c]
push str.QCMTU_SetMTU:_exit_0x_X_n
call fcn.00403f40
add esp, 8
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403f9d
mov esp, ebp
pop ebp
ret
push str.QCMTU_SetMTU:_error:_invalid_IP_version_n
call fcn.00403f40
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
call fcn.00403f9d
mov esp, ebp
pop ebp
ret
Function at 0x403f40
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x408
mov eax, dword [0x41f004]
xor eax, esp
mov dword [esp + 0x404], eax
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [esp + 0xc]
push 0xffffffffffffffff
push 0x400
push eax
call fcn.00401000
push dword [eax + 4]
push dword [eax]
call fcn.0040867a
add esp, 0x20
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.00403f9d
mov esp, ebp
pop ebp
ret
Function at 0xd03370
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 0xd0338e
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 0xd2c074
push ecx
mov edi, eax
call fcn.00d17198
mov esi, eax
add esp, 8
test esi, esi
jne 0xd033cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00d1702e
push esi
call fcn.00d16fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xd06850
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 0xd068ae
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 0xd31720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xd068ba
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.00d171e1
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 0xd068ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xd31720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xd0692a
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.00d18082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xd06957
mov word [eax], si
add eax, 2
push eax
call fcn.00d18030
add esp, 4
jmp 0xd06959
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 0xd068ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xd068b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xd070c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xd2c458
push ecx
call fcn.00d171e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00d171e1
add esp, 0x10
jmp 0xd070d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00d1720b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00d16dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00d07050
mov eax, dword [0xd31728]
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 0xd0713b
push esi
call fcn.00d06fb0
add esp, 4
mov dword [0xd31728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xd0714c
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.00d06ff0
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 0xd0a440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xd0a4b7
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 0xd0a48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xd0a471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xd0a47e
add edx, ecx
cmp ebx, edx
jb 0xd0a48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xd0a467
xor ecx, ecx
jmp 0xd0a4a2
test eax, eax
jne 0xd0a492
xor ecx, ecx
jmp 0xd0a4a2
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.00d0a3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xd0a8f0
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 0xd0a921
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 0xd0a946
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 0xd0a96e
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 0xd0a993
push ecx
push esi
call fcn.00d0a4c0
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