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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x482ab3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x482a9a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x489440
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b71de
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00489d60
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4eb3ec
call fcn.004a84a2
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4894d3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004a84a2
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4894cc
push 0
mov ecx, eax
call fcn.00480560
mov dword [esi + 0xc], eax
jmp 0x4894d5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4894d5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x4aab32
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4aab6a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004a8bbc
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a8b94
jmp 0x4aab76
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4ac224
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4ac266
call fcn.004b1cd9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ac266
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ac25d
xor eax, eax
jmp 0x4ac26e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ac274
pop edi
pop esi
pop ebx
ret 4
Function at 0x4b2209
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b2237
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b2255
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b216f
jmp 0x4b2255
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b2255
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b216f
test edi, edi
mov eax, edi
jne 0x4b223f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401070
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc10
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4010c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401dfc
mov esp, ebp
pop ebp
ret 0x20
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x400
push esi
push 0x400
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0xc10]
push eax
call fcn.00402400
mov ecx, dword [ebp + 0x1c]
add esp, 0x14
mov eax, dword [ebp + 0x18]
test ecx, ecx
jg 0x40113a
jl 0x401101
test eax, eax
jae 0x40113a
mov esi, dword [ebp + 0x20]
mov edx, dword [ebp + 0x24]
push ecx
push eax
shld ecx, eax, 9
push ecx
shl eax, 9
mov ecx, esi
push eax
mov eax, edx
shrd ecx, eax, 1
shr eax, 1
push eax
push ecx
push edx
push esi
push dword [0x415f64]
lea eax, [ebp - 0x408]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push str._program_SECTOR_SIZE_IN_BYTES_512__file_sector_offset__I64d__filename__s__label_ffu_image__i__num_partition_sectors__I64d__physical_partition_number_0__size_in_KB__I64d__sparse_false__start_byte_hex_0x_I64x__start_sector_NUM_DISK_SECTORS_I64d____n
jmp 0x401171
mov esi, dword [ebp + 0x20]
mov edx, dword [ebp + 0x24]
push ecx
push eax
shld ecx, eax, 9
push ecx
shl eax, 9
mov ecx, esi
push eax
mov eax, edx
shrd ecx, eax, 1
shr eax, 1
push eax
push ecx
push edx
push esi
push dword [0x415f64]
lea eax, [ebp - 0x408]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push str._program_SECTOR_SIZE_IN_BYTES_512__file_sector_offset__I64d__filename__s__label_ffu_image__i__num_partition_sectors__I64d__physical_partition_number_0__size_in_KB__I64d__sparse_false__start_byte_hex_0x_I64x__start_sector__I64d____n
lea eax, [ebp - 0xc08]
push 0x800
push eax
call fcn.00401e0b
lea ecx, [ebp - 0xc08]
add esp, 0x3c
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401190
sub ecx, edx
lea edx, [ebp - 0xc0c]
push 0
push edx
push ecx
lea ecx, [ebp - 0xc08]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
inc dword [0x415f64]
xor ecx, ebp
pop edi
pop esi
call fcn.00401dfc
mov esp, ebp
pop ebp
ret 0x20
Function at 0x4011e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
movq xmm0, qword [str.__data__n]
mov al, byte [0x412fd4]
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ecx
movq qword [ebp - 0x10], xmm0
mov byte [ebp - 8], al
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401240
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401dfc
mov esp, ebp
pop ebp
ret 4
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x14]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00401dfc
mov esp, ebp
pop ebp
ret 4
Function at 0x401280
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x308
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x303]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0xff
push 0
push eax
mov byte [ebp - 0x304], 0
call fcn.00405db0
push 0xff
lea eax, [ebp - 0x203]
mov byte [ebp - 0x204], 0
push 0
push eax
call fcn.00405db0
push 0xff
lea eax, [ebp - 0x103]
mov byte [ebp - 0x104], 0
push 0
push eax
call fcn.00405db0
push str.__xml_version_1.0_____n_data__n
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.00401e0b
add esp, 0x30
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40133c
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401dfc
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x104]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401345
push 0
lea eax, [ebp - 0x308]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, ebx
lea edx, [ecx + 2]
jmp 0x401370
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401370
sub ecx, edx
lea eax, [ebp - 0x304]
sar ecx, 1
push ecx
push ebx
push 0x100
push eax
lea eax, [ebp - 0x308]
push eax
call fcn.00402400
mov ecx, edi
add esp, 0x14
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4013a1
sub ecx, edx
lea eax, [ebp - 0x204]
sar ecx, 1
push ecx
push edi
push 0x100
push eax
lea eax, [ebp - 0x308]
push eax
call fcn.00402400
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x304]
push eax
push str._____ffutoraw.exe__ffu__s__out__s_____n
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.00401e0b
lea ecx, [ebp - 0x104]
add esp, 0x28
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401400
push 0
lea eax, [ebp - 0x308]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401dfc
mov esp, ebp
pop ebp
ret 8
Function at 0x401440
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x140], 0xffffffff
jne 0x401474
mov eax, 6
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401dfc
mov esp, ebp
pop ebp
ret
mov ebx, dword [esi + 0x128]
xor eax, eax
imul ebx, dword [esi + 0x104]
push 0x4000
mov dword [ebp - 8], 0
add ebx, dword [esi + 0x138]
adc eax, dword [esi + 0x13c]
mov dword [ebp - 0xc], eax
call fcn.00401e5f
add esp, 4
mov dword [esi + 0x570], eax
lea edi, [esi + 0x144]
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp - 0xc]
mov dword [edi + 0xc], eax
lea eax, [ebp - 8]
push edi
push eax
push 0x200
lea eax, [esi + 0x16c]
mov dword [edi + 8], ebx
push eax
push dword [esi + 0x140]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4014fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401dfc
mov esp, ebp
pop ebp
ret
push dword [edi + 0x10]
add ebx, 0x200
adc dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp - 0xc]
mov dword [edi + 0xc], eax
lea eax, [ebp - 8]
push edi
push eax
push 0x200
lea eax, [esi + 0x370]
mov dword [edi + 8], ebx
push eax
push dword [esi + 0x140]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4014e5
push dword [edi + 0x10]
add ebx, 0x200
adc dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp - 0xc]
mov dword [edi + 0xc], eax
lea eax, [ebp - 8]
push edi
push eax
push 0x4000
mov dword [edi + 8], ebx
push dword [esi + 0x570]
push dword [esi + 0x140]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4014e5
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401dfc
mov esp, ebp
pop ebp
ret
Function at 0x40823d
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
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.00405a90
mov dword [ebp - 0x14], eax
cmp dword [0x415f38], esi
jne 0x408330
push 0x800
push esi
push 0x41040c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4082bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x408410
push esi
push esi
push 0x41040c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x408410
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x408410
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x415f38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x415f3c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x415f40], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x415f48], eax
test eax, eax
je 0x40832d
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x415f44], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x408355
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x408348
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40836a
push 4
pop eax
jmp 0x408412
cmp dword [ebp - 0x14], esi
je 0x40836a
push dword [0x415f38]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40834f
mov eax, dword [0x415f44]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4083c8
cmp dword [0x415f48], edi
je 0x4083c8
push eax
call ebx
push dword [0x415f48]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4083c8
test eax, eax
je 0x4083c8
call ecx
test eax, eax
je 0x4083bd
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 0x4083bd
test byte [ebp - 8], 1
jne 0x4083c8
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4083f8
mov eax, dword [0x415f3c]
cmp eax, edi
je 0x4083f5
push eax
call ebx
test eax, eax
je 0x4083f5
call eax
mov esi, eax
test esi, esi
je 0x4083f5
mov eax, dword [0x415f40]
cmp eax, edi
je 0x4083f5
push eax
call ebx
test eax, eax
je 0x4083f5
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x415f38]
call ebx
test eax, eax
je 0x408410
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x408412
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401dfc
mov esp, ebp
pop ebp
ret
Function at 0x46edd0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x46efb4
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4d000]
push edi
or ebp, 0xffffffff
jmp 0x46edfa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x46ee01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46edf0
mov eax, 1
add ebx, ebx
jne 0x46ee13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x46ee24
jne 0x46ee43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46ee43
dec eax
add ebx, ebx
jne 0x46ee30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x46ee08
add ebx, ebx
jne 0x46ee3f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x46ee95
xor ecx, ecx
sub eax, 3
jb 0x46ee5b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x46eeca
sar eax, 1
mov ebp, eax
jmp 0x46ee66
add ebx, ebx
jne 0x46ee66
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46ee34
inc ecx
add ebx, ebx
jne 0x46ee74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46ee34
add ebx, ebx
jne 0x46ee81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x46ee76
jne 0x46ee92
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46ee76
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x46eeb4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x46eea6
jmp 0x46edf6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x46eeb4
add edi, ecx
jmp 0x46edf6
pop esi
mov edi, esi
mov ecx, 0x3051
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x46eed2
cmp byte [edi], 0x14
jne 0x46eed2
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 0x46eed7
lea edi, [esi + 0x69000]
mov eax, dword [edi]
or eax, eax
je 0x46ef46
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6e0f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6e24c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46ef04
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6e250]
or eax, eax
je 0x46ef40
mov dword [ebx], eax
add ebx, 4
jmp 0x46ef21
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x46ef77
cmp al, 0xef
ja 0x46ef6a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x46ef4c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x46ef59
mov ebp, dword [esi + 0x6e254]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x46efab
sub esp, 0xffffff80
jmp fcn.00452774
Function at 0xd80370
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 0xd8038e
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 0xda9074
push ecx
mov edi, eax
call fcn.00d94198
mov esi, eax
add esp, 8
test esi, esi
jne 0xd803cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00d9402e
push esi
call fcn.00d93fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xd83850
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 0xd838ae
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 0xdae720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xd838ba
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.00d941e1
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 0xd838ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xdae720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xd8392a
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.00d95082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xd83957
mov word [eax], si
add eax, 2
push eax
call fcn.00d95030
add esp, 4
jmp 0xd83959
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 0xd838ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xd838b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xd840c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xda9458
push ecx
call fcn.00d941e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00d941e1
add esp, 0x10
jmp 0xd840d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00d9420b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00d93dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00d84050
mov eax, dword [0xdae728]
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 0xd8413b
push esi
call fcn.00d83fb0
add esp, 4
mov dword [0xdae728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xd8414c
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.00d83ff0
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 0xd87440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xd874b7
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 0xd8748e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xd87471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xd8747e
add edx, ecx
cmp ebx, edx
jb 0xd8748a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xd87467
xor ecx, ecx
jmp 0xd874a2
test eax, eax
jne 0xd87492
xor ecx, ecx
jmp 0xd874a2
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.00d873c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xd878f0
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 0xd87921
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 0xd87946
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 0xd8796e
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 0xd87993
push ecx
push esi
call fcn.00d874c0
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