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 0x471328
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x49d850]
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.0044265d
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 [0x4a6881], 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 [0x4a6881], al
jmp 0x401b40
mov al, byte [0x4a6881]
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 [0x4a6881], 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.0044265d
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.004416c3
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 0x4717ab
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x8054
call fcn.00443590
mov eax, dword [0x49d850]
xor eax, esp
mov dword [esp + 0x8050], eax
push ebx
push esi
push edi
mov eax, dword [0x49d850]
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.004416c3
mov esp, ebp
pop ebp
ret 8
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.004419b0
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.004419b0
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 0x40b808
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 0x40b865
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 0x40b85d
push dword [ebp + 0xc]
push dword [ebp - 4]
push edi
call fcn.0040b77a
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 0x40b8ac
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.0044135b
mov edx, eax
pop ecx
test edx, edx
je 0x40b8f2
push edi
xor edi, edi
test ebx, ebx
je 0x40b8f1
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 0x40b8db
pop edi
pop esi
mov eax, edx
pop ebx
leave
ret

Function at 0x40e30e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x14], 8
jb 0x40e31d
mov esi, dword [esi]
push esi
call fcn.00442644
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 0x41547a
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 0x4154fd
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x4154b2
push 0
push 0
jmp 0x4154ff
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi + 4], eax
test eax, eax
je 0x4154ac
lea edi, [eax + 0x40]
push edi
call fcn.0044135b
pop ecx
mov dword [esi], eax
test eax, eax
je 0x4154ac
push edi
push 0
push eax
call fcn.004416e0
add esp, 0xc
push dword [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [esi]
call fcn.004419b0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
push ebx
push ebx
call fcn.00442662
int3
Function at 0x415b95
Capabilities:
Copy file
Create thread

Disassembly:
push 0x830
mov eax, 0x463964
call fcn.00442722
mov esi, ecx
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push edi
call fcn.00415e50
test al, al
je 0x415bc5
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x415d5c
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
call fcn.004416e0
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push edi
mov ecx, esi
call fcn.00415d64
lea ecx, [ebp - 0x810]
push ecx
lea ecx, [esi + 0xf4]
call fcn.00403640
mov eax, 0x483e18
test ebx, ebx
cmovne eax, ebx
lea ecx, [esi + 0x124]
push eax
call fcn.00403640
push 0x2c
call fcn.00443181
mov edi, eax
pop ecx
mov dword [ebp - 0x81c], edi
xor ebx, ebx
mov dword [ebp - 4], ebx
test edi, edi
je 0x415c4c
lea ecx, [esi + 0xf4]
call fcn.004035c0
push 4
push esi
push dword [eax]
mov ecx, edi
call fcn.0041589c
jmp 0x415c4e
mov eax, ebx
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x154], eax
lea eax, [ebp - 0x820]
push eax
push ebx
push esi
push 0x416017
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.0044135b
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 0x415d08
mov ebx, dword [ebp - 0x818]
xor edi, edi
jmp 0x415cd4
cmp dword [ebp - 0x838], 0x8032
jne 0x415cc7
mov ecx, dword [esi + 0x154]
call fcn.0041680c
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 0x415cb0
push 0x4ff
push 0xffffffffffffffff
push edi
push ebx
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov edi, eax
cmp edi, 1
je 0x415cac
mov ebx, dword [ebp - 0x81c]
push dword [ebp - 0x818]
call fcn.0044265d
mov esi, dword [esi + 0x154]
pop ecx
test esi, esi
je 0x415d2c
mov ecx, esi
call fcn.00415a86
push esi
call fcn.0044144c
pop ecx
cmp edi, 0xffffffff
jne 0x415d35
xor eax, eax
jmp 0x415d5c
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.004426d1
ret 8

Function at 0x417cd5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x28
mov eax, 0x46411f
call fcn.00442722
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 0x417d1a
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.0040c5cb
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], 1
mov eax, esi
call fcn.004426d1
ret 8
Function at 0x41831c
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x5c
mov eax, 0x464335
call fcn.0044278e
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, 0x483e18
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 SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 2
test eax, eax
jne 0x4183ae
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 0x4184e1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea ecx, [edi + 1]
push ecx
call fcn.0044135b
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 0x41840f
mov byte [ebp - 4], 2
test bl, bl
je 0x4183f9
push esi
call fcn.0044144c
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 0x4183a1
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 0x418463
mov byte [ebp - 4], 8
mov byte [ebp - 4], 2
test bl, bl
je 0x418451
push esi
call fcn.0044144c
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00403440
mov byte [ebp - 4], 9
jmp 0x418409
cmp dword [ebp - 0x5c], 0
jne 0x418491
mov byte [ebp - 4], 0xa
mov byte [ebp - 4], 2
test bl, bl
je 0x41847c
push esi
call fcn.0044144c
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00403440
mov byte [ebp - 4], 0xb
jmp 0x418409
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 0x4184b7
push esi
call fcn.0044144c
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 0x4184e3
xor eax, eax
call fcn.004426e0
ret 8
Function at 0x419b09
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x49d850]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
test esi, esi
je 0x419b83
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 0x419b6a
movzx eax, byte [ebp - 0x404]
cmp eax, 0xffffffff
jne 0x419b6a
movzx eax, byte [ebp - 0x403]
cmp eax, 0xfffffffe
jne 0x419b6a
inc bl
jmp 0x419b83
xor eax, eax
test ecx, ecx
je 0x419b83
test bl, bl
jne 0x419b83
cmp byte [ebp + eax - 0x404], bl
sete bl
inc eax
cmp eax, ecx
jb 0x419b70
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.004416c3
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x49d850]
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 0x419edf
cmp byte [ebp + 0xc], 0
jne 0x419e8d
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 0x419edf
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 0x419ed0
call fcn.00442c50
lea edi, [eax + 1]
pop ecx
cmp edi, 0x3fffffff
jle 0x419e5c
xor eax, eax
jmp 0x419e70
lea eax, [edi + edi]
call fcn.00443560
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.0040cc1b
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040ee51
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x419ee1
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 0x419edf
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 0x419ecf
mov ecx, 0xfeff
mov eax, esi
cmp word [esi], cx
jne 0x419e70
lea eax, [esi + 2]
jmp 0x419e70
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.004416c3
leave
ret 0xc
Function at 0x41c58a
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 0x41c5eb
lea eax, [ebp - 8]
push eax
push 0x49f668
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 [0x49f64c]
push dword [ebp - 4]
test eax, eax
cmove ecx, edi
mov byte [0x49f64c], cl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
leave
ret

Function at 0x41c5ee
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.0041d080
test al, al
je 0x41c615
mov ax, word [edi]
mov byte [esi + 0xc], 1
mov word [esi + 0x44], ax
jmp 0x41c68d
mov ax, word [ebp + 8]
test ax, ax
jne 0x41c630
cmp dword [esi + 0x40], 4
jne 0x41c630
mov ecx, esi
lea edi, [esi + 0x44]
call fcn.0041cadc
jmp 0x41c633
lea edi, [esi + 0x44]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0041d080
test al, al
je 0x41c648
mov byte [esi + 0xd], 1
jmp 0x41c68d
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0041d080
test al, al
jne 0x41c68d
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0041d080
test al, al
jne 0x41c68d
call fcn.00457203
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0041d080
test al, al
jne 0x41c68d
mov ax, word [esi + 0x48]
mov word [edi], ax
pop edi
pop esi
pop ebp
ret 4
Function at 0x41dafd
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x49d850]
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 [0x4a17d4]
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.004355e7
cmp dword [eax], 1
je 0x41db75
cmp dword [eax + 4], esi
je 0x41dbca
push esi
push 0x477cb0
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41dbca
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 [0x4a17d4]
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.004416c3
leave
ret

Function at 0x41e1ed
Capabilities:
Hide graphical window

Disassembly:
push dword [0x4a17d4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41e21e
push 0
push dword [0x4a17d4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x4a17dc]
push 0
mov ecx, dword [ecx + 0x264]
call fcn.0043ce79
ret