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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b109b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x8054
call fcn.004549e0
mov eax, dword [0x4e98d0]
xor eax, esp
mov dword [esp + 0x8050], eax
push ebx
push esi
push edi
mov eax, dword [0x4e98d0]
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 0x40841f
lea eax, [edi + 0x57]
jmp 0x4085c3
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.00408bb0
add esp, 8
test eax, eax
jne 0x4085c3
cmp dword [ebx + 0x18], 8
lea eax, [ebx + 4]
jb 0x408469
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 0x4085bd
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 0x4085b4
cmp dword [esp + 0x1c], 0
je 0x408546
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.00408d60
mov edi, eax
cmp edi, 2
je 0x4085ad
cmp edi, 0xfffffffb
jbe 0x408501
cmp edi, 0xfffffffd
jbe 0x408570
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 0x408568
cmp dword [esp + 0x14], ebx
jne 0x408563
cmp dword [esp + 0x28], 0
je 0x4084d0
cmp edi, 1
jne 0x408495
lea ecx, [esp + 0x18]
call fcn.0040a370
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
dec edi
neg edi
sbb edi, edi
and edi, 0xfffffffd
jmp 0x4085c5
or edi, 0xffffffff
jmp 0x408570
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4085c5
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4085c5
mov edx, dword [eax + 0x34]
test edx, edx
je 0x408599
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 0x4085c5
mov edi, 0xfffffffd
jmp 0x408570
lea ecx, [esp + 0x18]
call fcn.0040a370
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp esi, 0xffffffff
je 0x4085d6
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4085d6
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.004526a3
mov esp, ebp
pop ebp
ret 8
Function at 0x40bb10
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 0x40bb9c
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.004529d0
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 0x40bb6f
sub eax, esi
jmp 0x40bb71
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x40bb60
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 0x40bb8f
sub eax, esi
jmp 0x40bb91
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x40bb80
mov edx, dword [ebp - 4]
add edx, esi
mov ebx, dword [edi]
cmp dword [ebx + 4], 0
je 0x40bc58
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 0x40bbc9
xor eax, eax
jmp 0x40bc1c
sub eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x40bbe6
mov edx, dword [ebx]
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.0040c670
jmp 0x40bbfe
cmp eax, 2
jne 0x40bc04
mov edx, dword [ebx]
test edx, edx
jne 0x40bbf5
xor eax, eax
jmp 0x40bc01
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.0040cdd0
add esp, 4
mov dword [ebx + 0x30], eax
push dword [ebp - 4]
push dword [ebx]
push dword [ebp - 8]
call fcn.004529d0
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 0x40bc44
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 0x40bc58
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x40bb20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40fac3
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 0x40fb20
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 0x40fb18
push dword [ebp + 0xc]
push dword [ebp - 4]
push edi
call fcn.0040f9b8
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 0x40fca3
Capabilities:
Get file size

Disassembly:
push 0x148
mov eax, 0x49bd30
call fcn.00453742
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0xc0000000
push eax
mov dword [ebp - 0x150], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40fd9c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push esi
push 4
push esi
push edi
mov dword [ebp - 0x154], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
je 0x40fd95
push esi
push esi
push esi
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x14c], eax
test eax, eax
je 0x40fd8e
push 1
lea eax, [ebp - 0x145]
push eax
push dword [ebp - 0x150]
lea ecx, [ebp - 0x144]
call fcn.00404000
mov dword [ebp - 4], esi
mov ecx, eax
call fcn.0040fe7f
push eax
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.00453d2b
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x144]
call fcn.00401ac0
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x154]
push dword [ebp - 0x14c]
call fcn.0040fb67
add esp, 0xc
mov esi, eax
push dword [ebp - 0x14c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
call fcn.004536f1
ret

Function at 0x40fda4
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.00452087
mov edx, eax
pop ecx
test edx, edx
je 0x40fdea
push edi
xor edi, edi
test ebx, ebx
je 0x40fde9
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 0x40fdd3
pop edi
pop esi
mov eax, edx
pop ebx
leave
ret
Function at 0x412b16
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x4e98d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
test esi, esi
je 0x412b90
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 0x412b77
movzx eax, byte [ebp - 0x404]
cmp eax, 0xffffffff
jne 0x412b77
movzx eax, byte [ebp - 0x403]
cmp eax, 0xfffffffe
jne 0x412b77
inc bl
jmp 0x412b90
xor eax, eax
test ecx, ecx
je 0x412b90
test bl, bl
jne 0x412b90
cmp byte [ebp + eax - 0x404], bl
sete bl
inc eax
cmp eax, ecx
jb 0x412b7d
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.004526a3
leave
ret 4

Function at 0x412dba
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4e98d0]
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 0x412ec0
cmp byte [ebp + 0xc], 0
jne 0x412e6e
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 0x412ec0
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 0x412eb1
call fcn.00453df0
lea edi, [eax + 1]
pop ecx
cmp edi, 0x3fffffff
jle 0x412e3d
xor eax, eax
jmp 0x412e51
lea eax, [edi + edi]
call fcn.004549b0
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.00412186
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00414e6d
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x412ec2
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 0x412ec0
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 0x412eb0
mov ecx, 0xfeff
mov eax, esi
cmp word [esi], cx
jne 0x412e51
lea eax, [esi + 2]
jmp 0x412e51
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.004526a3
leave
ret 0xc

Function at 0x413a4d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x14], 8
jb 0x413a5c
mov esi, dword [esi]
push esi
call fcn.00453664
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 0x41d749
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 0x41d7bf
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x41d781
push 0
push 0
jmp 0x41d7c1
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi + 4], eax
test eax, eax
je 0x41d77b
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi], eax
test eax, eax
je 0x41d77b
push dword [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [esi]
call fcn.004529d0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
push ebx
push ebx
call fcn.00453682
int3
Function at 0x41e0e7
Capabilities:
Copy file
Create thread

Disassembly:
push 0x830
mov eax, 0x49eafe
call fcn.00453742
mov esi, ecx
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push edi
call fcn.0041e3a2
test al, al
je 0x41e117
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x41e2ae
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
call fcn.004526c0
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push edi
mov ecx, esi
call fcn.0041e2b6
lea ecx, [ebp - 0x810]
push ecx
lea ecx, [esi + 0xf4]
call fcn.00404ee0
mov eax, 0x4c8c5c
test ebx, ebx
cmovne eax, ebx
lea ecx, [esi + 0x124]
push eax
call fcn.00404ee0
push 0x2c
call fcn.004545d7
mov edi, eax
pop ecx
mov dword [ebp - 0x81c], edi
xor ebx, ebx
mov dword [ebp - 4], ebx
test edi, edi
je 0x41e19e
lea ecx, [esi + 0xf4]
call fcn.00403d20
push 4
push esi
push dword [eax]
mov ecx, edi
call fcn.0041dd73
jmp 0x41e1a0
mov eax, ebx
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x154], eax
lea eax, [ebp - 0x820]
push eax
push ebx
push esi
push 0x41e56f
push ebx
push ebx
mov dword [ebp - 0x820], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
push 4
mov dword [ebp - 0x81c], ebx
call fcn.00452087
mov dword [esp], 0x4ff
push 0xffffffffffffffff
push 0
push eax
push 1
mov dword [ebp - 0x818], eax
mov dword [eax], ebx
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov edi, eax
cmp edi, 1
jne 0x41e25a
mov ebx, dword [ebp - 0x818]
xor edi, edi
jmp 0x41e226
cmp dword [ebp - 0x838], 0x8032
jne 0x41e219
mov ecx, dword [esi + 0x154]
call fcn.0041f086
lea eax, [ebp - 0x83c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push edi
push edi
push edi
lea eax, [ebp - 0x83c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x41e202
push 0x4ff
push 0xffffffffffffffff
push edi
push ebx
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov edi, eax
cmp edi, 1
je 0x41e1fe
mov ebx, dword [ebp - 0x81c]
push dword [ebp - 0x818]
call fcn.0045367d
mov esi, dword [esi + 0x154]
pop ecx
test esi, esi
je 0x41e27e
mov ecx, esi
call fcn.0041dfad
push esi
call fcn.0045269e
pop ecx
cmp edi, 0xffffffff
jne 0x41e287
xor eax, eax
jmp 0x41e2ae
and dword [ebp - 0x814], 0
lea eax, [ebp - 0x814]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x814], eax
setge al
call fcn.004536f1
ret 8

Function at 0x420d9c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x28
mov eax, 0x49f91e
call fcn.00453742
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 0x420de1
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.004114b0
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], 1
mov eax, esi
call fcn.004536f1
ret 8
Function at 0x421529
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x5c
mov eax, 0x49fb9c
call fcn.004537ae
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.00402c40
mov byte [ebp - 4], 1
mov ecx, 0x4c8c5c
mov eax, ecx
test esi, esi
cmovne eax, esi
test eax, eax
cmovne ecx, eax
push ecx
lea ecx, [ebp - 0x40]
call fcn.004060d0
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 SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 2
test eax, eax
jne 0x4215bb
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00404bf0
mov byte [ebp - 4], 3
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x44]
call fcn.00401ac0
jmp 0x4216ee
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea ecx, [edi + 1]
push ecx
call fcn.00452087
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 0x42161c
mov byte [ebp - 4], 2
test bl, bl
je 0x421606
push esi
call fcn.0045269e
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00404bf0
mov byte [ebp - 4], 5
mov byte [ebp - 4], 0
jmp 0x4215ae
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 0x421670
mov byte [ebp - 4], 8
mov byte [ebp - 4], 2
test bl, bl
je 0x42165e
push esi
call fcn.0045269e
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00404bf0
mov byte [ebp - 4], 9
jmp 0x421616
cmp dword [ebp - 0x5c], 0
jne 0x42169e
mov byte [ebp - 4], 0xa
mov byte [ebp - 4], 2
test bl, bl
je 0x421689
push esi
call fcn.0045269e
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00404bf0
mov byte [ebp - 4], 0xb
jmp 0x421616
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 0x4216c4
push esi
call fcn.0045269e
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00404bf0
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00401ac0
mov eax, edi
jmp 0x4216f0
xor eax, eax
call fcn.00453700
ret 8
Function at 0x4248ce
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x4e98d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
test esi, esi
je 0x424948
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 0x42492f
movzx eax, byte [ebp - 0x404]
cmp eax, 0xffffffff
jne 0x42492f
movzx eax, byte [ebp - 0x403]
cmp eax, 0xfffffffe
jne 0x42492f
inc bl
jmp 0x424948
xor eax, eax
test ecx, ecx
je 0x424948
test bl, bl
jne 0x424948
cmp byte [ebp + eax - 0x404], bl
sete bl
inc eax
cmp eax, ecx
jb 0x424935
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.004526a3
leave
ret 4

Function at 0x424bc2
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4e98d0]
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 0x424cc8
cmp byte [ebp + 0xc], 0
jne 0x424c76
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 0x424cc8
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 0x424cb9
call fcn.00453df0
lea edi, [eax + 1]
pop ecx
cmp edi, 0x3fffffff
jle 0x424c45
xor eax, eax
jmp 0x424c59
lea eax, [edi + edi]
call fcn.004549b0
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.00412186
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00414cc4
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x424cca
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 0x424cc8
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 0x424cb8
mov ecx, 0xfeff
mov eax, esi
cmp word [esi], cx
jne 0x424c59
lea eax, [esi + 2]
jmp 0x424c59
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.004526a3
leave
ret 0xc
Function at 0x42860d
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 SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42866e
lea eax, [ebp - 8]
push eax
push 0x4eb8a8
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 [0x4eb88c]
push dword [ebp - 4]
test eax, eax
cmove ecx, edi
mov byte [0x4eb88c], cl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
leave
ret

Function at 0x428683
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.004290b7
test al, al
je 0x4286aa
mov ax, word [edi]
mov byte [esi + 0xc], 1
mov word [esi + 0x44], ax
jmp 0x428722
mov ax, word [ebp + 8]
test ax, ax
jne 0x4286c5
cmp dword [esi + 0x40], 4
jne 0x4286c5
mov ecx, esi
lea edi, [esi + 0x44]
call fcn.00428b71
jmp 0x4286c8
lea edi, [esi + 0x44]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.004290b7
test al, al
je 0x4286dd
mov byte [esi + 0xd], 1
jmp 0x428722
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.004290b7
test al, al
jne 0x428722
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.004290b7
test al, al
jne 0x428722
call fcn.00485310
push edi
mov ecx, esi
mov word [edi], ax
call fcn.004290b7
test al, al
jne 0x428722
mov ax, word [esi + 0x48]
mov word [edi], ax
pop edi
pop esi
pop ebp
ret 4