joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a20
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46eda8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4937f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
lea eax, [ebp - 0x71]
push eax
push ecx
lea ecx, [ebp - 0x40]
call fcn.004025e0
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0
call fcn.00401670
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x401a73
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov eax, dword [ebp - 0x48]
lea edi, [ebp - 0x48]
mov eax, dword [eax + 4]
add edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push dword [ebp - 0x54]
call fcn.00442234
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 4
push dword [ebp - 0x4c]
call edi
cmp dword [ebp - 0x58], 8
jb 0x401ac2
push dword [ebp - 0x6c]
call edi
xor eax, eax
mov word [ebp - 0x6c], ax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x58], 7
mov dword [ebp - 0x5c], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x70]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [0x49a839], 0
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jne 0x401b6d
push 0
push 0
push 0
push esi
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x7c], 0
call eax
push 0
lea eax, [ebp - 0x7c]
push eax
push 2
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401b3b
cmp dword [ebp - 0x7c], 2
jne 0x401b3b
mov eax, 0xfeff
cmp word [ebp - 0x78], ax
sete al
mov byte [0x49a839], al
jmp 0x401b40
mov al, byte [0x49a839]
test al, al
jne 0x401b61
push 0
lea eax, [ebp - 0x84]
push eax
push 2
lea eax, [ebp - 0x80]
push eax
push esi
mov dword [ebp - 0x80], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov byte [0x49a839], 1
push 2
push 0
push 0
push esi
call eax
cmp dword [ebp - 0x28], 8
push 0
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x3c]
cmovae ecx, dword [ebp - 0x3c]
add eax, eax
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x401ba8
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x401ba8
push esi
call eax
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x18]
mov eax, dword [eax + 4]
add esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
push dword [ebp - 0x24]
call fcn.00442234
add esp, 4
push dword [ebp - 0x1c]
call edi
cmp dword [ebp - 0x28], 8
jb 0x401bd6
push dword [ebp - 0x3c]
call edi
xor eax, eax
mov word [ebp - 0x3c], ax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x40]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004412b3
mov esp, ebp
pop ebp
ret
Function at 0x4065c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46f22b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x8054
call fcn.00443170
mov eax, dword [0x4937f0]
xor eax, esp
mov dword [esp + 0x8050], eax
push ebx
push esi
push edi
mov eax, dword [0x4937f0]
xor eax, esp
push eax
lea eax, [esp + 0x8068]
mov dword fs:[0], eax
mov dword [esp + 0x50], ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
or esi, 0xffffffff
mov dword [esp + 0x58], eax
xor edi, edi
mov dword [esp + 0x54], esi
mov dword [esp + 0x8070], edi
test eax, eax
jne 0x40662f
lea eax, [edi + 0x57]
jmp 0x4067d3
sub esp, 8
lea ecx, [esp + 0x20]
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
call fcn.004068c0
add esp, 8
test eax, eax
jne 0x4067d3
cmp dword [ebx + 0x18], 8
lea eax, [ebx + 4]
jb 0x406679
mov eax, dword [eax]
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x4067cd
mov esi, eax
mov dword [esp + 0x54], esi
mov eax, dword [esp + 0x50]
push dword [eax + 4]
lea eax, [esp + 0x20]
push eax
push 0x4000
lea eax, [esp + 0x68]
push eax
call dword [esp + 0x68]
test eax, eax
je 0x4067c4
cmp dword [esp + 0x1c], 0
je 0x406756
lea eax, [esp + 0x5c]
mov dword [esp + 0x18], eax
lea ebx, [ebx]
lea eax, [esp + 0x405c]
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0x4000
mov dword [esp + 0x24], eax
call fcn.00406a40
mov edi, eax
cmp edi, 2
je 0x4067bd
cmp edi, 0xfffffffb
jbe 0x406711
cmp edi, 0xfffffffd
jbe 0x406780
push 0
mov ebx, 0x4000
sub ebx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
push eax
push ebx
lea eax, [esp + 0x4068]
push eax
push dword [esp + 0x20]
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406778
cmp dword [esp + 0x14], ebx
jne 0x406773
cmp dword [esp + 0x28], 0
je 0x4066e0
cmp edi, 1
jne 0x4066a5
lea ecx, [esp + 0x18]
call fcn.00408070
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
dec edi
neg edi
sbb edi, edi
and edi, 0xfffffffd
jmp 0x4067d5
or edi, 0xffffffff
jmp 0x406780
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4067d5
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4067d5
mov edx, dword [eax + 0x34]
test edx, edx
je 0x4067a9
push edx
push dword [esp + 0x44]
call ecx
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
add esp, 8
push eax
push dword [esp + 0x44]
call ecx
add esp, 8
mov dword [esp + 0x34], 0
jmp 0x4067d5
mov edi, 0xfffffffd
jmp 0x406780
lea ecx, [esp + 0x18]
call fcn.00408070
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp esi, 0xffffffff
je 0x4067e6
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4067e6
push esi
call eax
mov eax, edi
mov ecx, dword [esp + 0x8068]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x8050]
xor ecx, esp
call fcn.004412b3
mov esp, ebp
pop ebp
ret 8
Function at 0x406a40
Capabilities:
Compress data via zlib inflate or deflate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, ecx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x407fe1
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x407fe1
cmp dword [eax + 0xc], 0
je 0x407fe1
cmp dword [eax], 0
jne 0x406a7a
cmp dword [eax + 4], 0
jne 0x407fe1
cmp dword [ecx], 0xb
jne 0x406a85
mov dword [ecx], 0xc
mov edx, dword [eax + 0xc]
push ebx
mov ebx, dword [eax + 4]
mov dword [ebp - 0x24], edx
mov edx, dword [eax + 0x10]
push esi
mov esi, dword [ecx + 0x3c]
mov dword [ebp - 0x1c], edx
mov edx, dword [ecx + 0x38]
push edi
mov edi, dword [eax]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ecx]
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x3c], ebx
cmp eax, 0x1c
ja 0x407ea0
mov dword [ebp - 0x40], 0x1f
jmp 0x406ad0
jmp dword [eax*4 + 0x407fec]
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffe
mov esp, ebp
pop ebp
ret
Function at 0x4082f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x2c]
mov edi, edi
mov edx, dword [edi + 0x3c]
sub edx, dword [edi + 0x74]
mov eax, dword [edi + 0x2c]
sub edx, dword [edi + 0x6c]
add eax, 0xfffffefa
add eax, esi
mov dword [ebp - 4], edx
cmp dword [edi + 0x6c], eax
jb 0x40837c
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.004415a0
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], esi
sub dword [edi + 0x6c], esi
add esp, 0xc
sub dword [edi + 0x5c], esi
lea ecx, [eax + edx*2]
mov edi, edi
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x40834f
sub eax, esi
jmp 0x408351
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x408340
mov eax, dword [edi + 0x40]
mov edx, esi
lea ecx, [eax + esi*2]
nop
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x40836f
sub eax, esi
jmp 0x408371
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x408360
mov edx, dword [ebp - 4]
add edx, esi
mov ebx, dword [edi]
cmp dword [ebx + 4], 0
je 0x408438
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 4]
cmp eax, edx
mov ecx, eax
cmova ecx, edx
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x4083a9
xor eax, eax
jmp 0x4083fc
sub eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x4083c6
mov edx, dword [ebx]
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.00408ed0
jmp 0x4083de
cmp eax, 2
jne 0x4083e4
mov edx, dword [ebx]
test edx, edx
jne 0x4083d5
xor eax, eax
jmp 0x4083e1
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.00409580
add esp, 4
mov dword [ebx + 0x30], eax
push dword [ebp - 4]
push dword [ebx]
push dword [ebp - 8]
call fcn.004415a0
mov eax, dword [ebp - 4]
add dword [ebx], eax
add esp, 0xc
add dword [ebx + 8], eax
add dword [edi + 0x74], eax
mov ebx, dword [edi + 0x74]
cmp ebx, 3
jb 0x408424
mov eax, dword [edi + 0x38]
add eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
movzx edx, byte [eax]
mov dword [edi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x54]
mov dword [edi + 0x48], edx
cmp ebx, 0x106
jae 0x408438
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x408300
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409560
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x40956b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.00409580
Function at 0x40b804
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push esi
push 4
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
je 0x40b861
push edi
push esi
push esi
push esi
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x40b859
push dword [ebp + 0xc]
push dword [ebp - 4]
push edi
call fcn.0040b776
add esp, 0xc
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40b8a8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 4], 0x7863513
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
push ebx
call fcn.00440f4f
mov edx, eax
pop ecx
test edx, edx
je 0x40b8ee
push edi
xor edi, edi
test ebx, ebx
je 0x40b8ed
sub esi, edx
mov eax, edi
and eax, 3
lea ecx, [edi + edx]
mov al, byte [ebp + eax - 4]
xor al, byte [esi + ecx]
inc edi
mov byte [ecx], al
cmp edi, ebx
jb 0x40b8d7
pop edi
pop esi
mov eax, edx
pop ebx
leave
ret

Function at 0x40d359
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x4937f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
test esi, esi
je 0x40d3d3
push 0
lea eax, [ebp - 0x408]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x408]
cmp ecx, 2
jb 0x40d3ba
movzx eax, byte [ebp - 0x404]
cmp eax, 0xffffffff
jne 0x40d3ba
movzx eax, byte [ebp - 0x403]
cmp eax, 0xfffffffe
jne 0x40d3ba
inc bl
jmp 0x40d3d3
xor eax, eax
test ecx, ecx
je 0x40d3d3
test bl, bl
jne 0x40d3d3
cmp byte [ebp + eax - 0x404], bl
sete bl
inc eax
cmp eax, ecx
jb 0x40d3c0
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004412b3
leave
ret 4
Function at 0x40d5d9
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4937f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x40d6df
cmp byte [ebp + 0xc], 0
jne 0x40d68d
lea eax, [edi + 1]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x40d6df
and dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push edi
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
je 0x40d6d0
call fcn.00442830
lea edi, [eax + 1]
pop ecx
cmp edi, 0x3fffffff
jle 0x40d65c
xor eax, eax
jmp 0x40d670
lea eax, [edi + edi]
call fcn.00443140
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.0040c9e3
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040eb41
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x40d6e1
lea eax, [edi + 3]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x40d6df
and dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push edi
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40d6cf
mov ecx, 0xfeff
mov eax, esi
cmp word [esi], cx
jne 0x40d670
lea eax, [esi + 2]
jmp 0x40d670
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004412b3
leave
ret 0xc

Function at 0x40e230
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x14], 8
jb 0x40e23f
mov esi, dword [esi]
push esi
call fcn.0041692b
pop ecx
push 0
push dword [ebp + 0x10]
add eax, eax
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebp
ret 0x10
Function at 0x414df7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
mov dword [esi + 8], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x414e7a
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x414e2f
push 0
push 0
jmp 0x414e7c
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi + 4], eax
test eax, eax
je 0x414e29
lea edi, [eax + 0x40]
push edi
call fcn.00440f4f
pop ecx
mov dword [esi], eax
test eax, eax
je 0x414e29
push edi
push 0
push eax
call fcn.004412d0
add esp, 0xc
push dword [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [esi]
call fcn.004415a0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
push ebx
push ebx
call fcn.00442239
int3

Function at 0x41769f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x28
mov eax, 0x4632b7
call fcn.004422f9
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x28], 0x74736e49
mov dword [ebp - 0x24], 0x536c6c61
mov dword [ebp - 0x20], 0x6c656968
mov word [ebp - 0x1c], 0x64
cmp byte [ebp + 0xc], bl
je 0x4176e4
mov dword [ebp - 0x1b], 0x7a695720
mov dword [ebp - 0x17], 0x647261
push 1
lea eax, [ebp - 0x29]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.0040c452
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], 1
mov eax, esi
call fcn.004422a8
ret 8
Function at 0x417ce5
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x5c
mov eax, 0x4634cd
call fcn.00442365
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
push 1
lea eax, [ebp - 0x49]
push eax
lea ecx, [ebp - 0x44]
call fcn.00402580
mov byte [ebp - 4], 1
mov ecx, 0x47c998
mov eax, ecx
test esi, esi
cmovne eax, esi
test eax, eax
cmovne ecx, eax
push ecx
lea ecx, [ebp - 0x40]
call fcn.00405070
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 2
test eax, eax
jne 0x417d77
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00403440
mov byte [ebp - 4], 3
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x44]
call fcn.00401580
jmp 0x417eaa
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea ecx, [edi + 1]
push ecx
call fcn.00440f4f
pop ecx
mov esi, eax
xor ebx, ebx
test esi, esi
setne bl
mov byte [ebp - 0x64], bl
mov dword [ebp - 0x60], esi
mov byte [ebp - 4], 4
push 0
lea eax, [ebp - 0x68]
push eax
push edi
push esi
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x417dd8
mov byte [ebp - 4], 2
test bl, bl
je 0x417dc2
push esi
call fcn.00441040
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00403440
mov byte [ebp - 4], 5
mov byte [ebp - 4], 0
jmp 0x417d6a
xor ecx, ecx
mov dword [ebp - 0x58], ecx
mov byte [ebp - 4], 6
mov eax, dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
push eax
push 0xffffffffffffffff
push ecx
push 4
push edi
push esi
push ecx
call dword [sym.imp.CRYPT32.dll_CertAddSerializedElementToStore]
test eax, eax
jne 0x417e2c
mov byte [ebp - 4], 8
mov byte [ebp - 4], 2
test bl, bl
je 0x417e1a
push esi
call fcn.00441040
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00403440
mov byte [ebp - 4], 9
jmp 0x417dd2
cmp dword [ebp - 0x5c], 0
jne 0x417e5a
mov byte [ebp - 4], 0xa
mov byte [ebp - 4], 2
test bl, bl
je 0x417e45
push esi
call fcn.00441040
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00403440
mov byte [ebp - 4], 0xb
jmp 0x417dd2
push dword [ebp - 0x50]
mov eax, dword [ebp - 0x58]
push dword [eax + 0xc]
push 1
call dword [sym.imp.CRYPT32.dll_CertCompareCertificate]
mov edi, eax
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 2
test bl, bl
je 0x417e80
push esi
call fcn.00441040
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00403440
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00401580
mov eax, edi
jmp 0x417eac
xor eax, eax
call fcn.004422b7
ret 8
Function at 0x41c3f4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
inc edi
push edi
push 0
push str.SoftwareInstallShieldISWI7.0SetupExeLog
push SysFreeString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41c455
lea eax, [ebp - 8]
push eax
push 0x495608
push 0
push 0
push str.SetupLogFileName
push dword [ebp - 4]
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ecx, byte [0x4955fc]
push dword [ebp - 4]
test eax, eax
cmove ecx, edi
mov byte [0x4955fc], cl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
leave
ret

Function at 0x41c458
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x46]
push edi
mov word [esi + 0xc], 0
call fcn.0041ceea
test al, al
je 0x41c47f
mov ax, word [edi]
mov byte [esi + 0xc], 1
mov word [esi + 0x44], ax
jmp 0x41c4f7
mov ax, word [ebp + 8]
test ax, ax
jne 0x41c49a
cmp dword [esi + 0x40], 4
jne 0x41c49a
mov ecx, esi
lea edi, [esi + 0x44]
call fcn.0041c946
jmp 0x41c49d
lea edi, [esi + 0x44]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0041ceea
test al, al
je 0x41c4b2
mov byte [esi + 0xd], 1
jmp 0x41c4f7
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0041ceea
test al, al
jne 0x41c4f7
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0041ceea
test al, al
jne 0x41c4f7
call fcn.004567e8
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0041ceea
test al, al
jne 0x41c4f7
mov ax, word [esi + 0x48]
mov word [edi], ax
pop edi
pop esi
pop ebp
ret 4
Function at 0x41d9f1
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x4937f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
push dword [0x497774]
call ebx
lea eax, [ebp - 0x64]
push eax
push 0
call ebx
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call esi
push eax
push 0
call esi
push eax
xor esi, esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
mov ecx, edi
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x68], 0x1e
mov dword [ebp - 0x70], eax
call fcn.004353aa
cmp dword [eax], 1
je 0x41da69
cmp dword [eax + 4], esi
je 0x41dabe
push esi
push 0x4719e8
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41dabe
lea eax, [ebp - 0x34]
push eax
push esi
mov dword [ebp - 0x68], 0x46
call ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
lea esi, [ebp - 0x14]
lea edi, [ebp - 0x54]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x54]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x14]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_SubtractRect]
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 8]
sub esi, ecx
mov eax, esi
cdq
idiv dword [ebp - 0x68]
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0xc]
sub ebx, edi
push 5
push 0
push 0
sub ecx, eax
mov eax, ebx
cdq
idiv dword [ebp - 0x68]
sub ecx, dword [ebp - 0x70]
add ecx, esi
push ecx
sub edi, eax
sub edi, dword [ebp - 0x6c]
add edi, ebx
push edi
push 0
push dword [0x497774]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.004412b3
leave
ret

Function at 0x41e0e1
Capabilities:
Hide graphical window

Disassembly:
push dword [0x497774]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41e112
push 0
push dword [0x497774]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x49777c]
push 0
mov ecx, dword [ecx + 0x264]
call fcn.0043c9b5
ret
Function at 0x41f717
Capabilities:
Delete directory
Delete file

Disassembly:
push 4
mov eax, 0x465008
call fcn.004422c6
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 1
mov esi, dword [edi + 0x30]
jmp 0x41f74c
cmp dword [esi + 0x18], 8
jb 0x41f73f
mov eax, dword [esi + 4]
jmp 0x41f742
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esi, 0x30
cmp esi, dword [edi + 0x34]
jne 0x41f734
lea eax, [edi + 4]
cmp dword [eax + 0x14], 8
jb 0x41f75c
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [ebp - 4], 0
lea ecx, [edi + 0x30]
call fcn.00410425
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], edi
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.00401580
call fcn.00442294
ret