joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401580
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x401589
xor ecx, ecx
jne 0x401589
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shl eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4015d0
mov eax, dword [ebp - 0xc]
jmp 0x40162d
cmp dword [ebp - 4], 1
je 0x4015e3
cmp dword [ebp - 4], 2
je 0x4015e3
mov eax, 0xd
jmp 0x40162d
cmp dword [ebp + 0xc], 0
je 0x401621
cmp dword [ebp - 8], 0
je 0x401619
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x401610
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x401617
mov eax, 0xd
jmp 0x40162d
jmp 0x401621
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax], dx
mov ecx, dword [ebp - 8]
shr ecx, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40580c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov byte [ebp - 4], 0x13
mov byte [ebp - 3], 0x35
mov byte [ebp - 2], 0x86
mov byte [ebp - 1], 7
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
push ebx
call fcn.00445b80
mov esi, eax
pop ecx
test esi, esi
je 0x40585a
xor edx, edx
test ebx, ebx
jbe 0x40585a
sub edi, esi
mov eax, edx
and eax, 3
mov al, byte [ebp + eax - 4]
lea ecx, [edx + esi]
xor al, byte [edi + ecx]
inc edx
mov byte [ecx], al
cmp edx, ebx
jb 0x405844
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x405951
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
cmp ebx, esi
je 0x4059ae
push edi
push esi
push esi
push esi
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, esi
je 0x4059a6
push dword [ebp + 0xc]
push dword [ebp - 4]
push edi
call fcn.0040593a
add esp, 0xc
push edi
mov esi, eax
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 0x405be9
Capabilities:
Get file size

Disassembly:
push ebp
sub esp, 0x104
lea ebp, [esp - 4]
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp + 0x104], eax
push 0x44
mov eax, 0x49edf8
call fcn.00466e90
mov eax, dword [ebp + 0x110]
mov ebx, dword [ebp + 0x114]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x405cd3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push esi
push 4
push esi
push dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x405cca
push esi
push esi
push esi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, esi
je 0x405cc1
push 1
lea eax, [ebp - 0xd]
push eax
push ebx
lea ecx, [ebp - 0x50]
call fcn.00402580
mov dword [ebp - 4], esi
mov ecx, eax
call fcn.00405b9c
push eax
lea eax, [ebp]
push 0x104
push eax
call fcn.004677f1
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00401640
lea eax, [ebp]
push eax
push dword [ebp - 0x18]
push edi
call fcn.004058c4
add esp, 0xc
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.00466e81
add ebp, 0x108
leave
ret

Function at 0x4060a4
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x38c]
sub esp, 0x40c
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp + 0x388], eax
push ebx
push esi
mov esi, dword [ebp + 0x394]
xor ebx, ebx
mov byte [ebp - 0x79], bl
cmp esi, ebx
je 0x40611d
push ebx
lea eax, [ebp - 0x80]
push eax
push 0x400
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x80], 2
jb 0x406103
movzx eax, byte [ebp - 0x78]
cmp eax, 0xffffffff
jne 0x406103
movzx eax, byte [ebp - 0x77]
cmp eax, 0xfffffffe
jne 0x406103
mov byte [ebp - 0x79], 1
jmp 0x40611d
xor eax, eax
cmp dword [ebp - 0x80], ebx
jbe 0x40611d
cmp byte [ebp - 0x79], bl
jne 0x40611d
cmp byte [ebp + eax - 0x78], bl
sete byte [ebp - 0x79]
inc eax
cmp eax, dword [ebp - 0x80]
jb 0x40610a
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp + 0x388]
mov al, byte [ebp - 0x79]
pop esi
xor ecx, ebp
pop ebx
call fcn.00466e81
add ebp, 0x38c
leave
ret 4

Function at 0x406b5d
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 8
push esi
jb 0x406b6d
mov esi, dword [eax + 4]
jmp 0x406b70
lea esi, [eax + 4]
push esi
call fcn.004667d0
pop ecx
push 0
push dword [esp + 0x14]
add eax, eax
push eax
push esi
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
ret 0x10
Function at 0x409969
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push esi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x409a6a
cmp byte [ebp + 0xc], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
jne 0x409a1c
lea eax, [esi + 1]
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x409a6a
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and dword [ebp - 8], 0
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
test eax, eax
je 0x409a5f
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x4099ef
xor eax, eax
jmp 0x409a03
lea eax, [esi + esi]
call fcn.004681a0
mov eax, esp
push 3
push esi
push ebx
push eax
call fcn.00405ed5
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00408ec3
push ebx
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x409a6c
lea eax, [esi + 3]
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x409a6a
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and dword [ebp - 8], 0
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x409a5e
mov ecx, 0xfeff
mov eax, ebx
cmp word [ebx], cx
jne 0x409a03
lea eax, [ebx + 2]
jmp 0x409a03
push ebx
push 0
call edi
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.00466e81
leave
ret 0xc
Function at 0x40e2fc
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
call fcn.004056e6
mov ecx, eax
call fcn.00435e5d
mov edi, dword [esp + 0x10]
push edi
push dword [esp + 0x18]
mov esi, eax
shr esi, 0xa
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40e33d
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push edi
mov ecx, ebx
call fcn.0040db49
test eax, eax
jne 0x40e389
push dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jle 0x40e359
push esi
push edi
mov ecx, ebx
call fcn.0040db49
test eax, eax
jne 0x40e389
push 0x4c1c70
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
push esi
push 3
call fcn.004437ae
add esp, 0xc
test eax, eax
jge 0x40e389
push edi
push esi
push 4
call fcn.004437ae
add esp, 0xc
test eax, eax
jge 0x40e389
xor eax, eax
jmp 0x40e38c
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x41320d
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
cmp edi, ebx
jne 0x413236
push ebx
push ebx
call fcn.00466f9a
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0x10], eax
cmp eax, ebx
je 0x41322f
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi + 4], eax
cmp eax, ebx
je 0x41322f
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi], eax
cmp eax, ebx
je 0x41322f
push dword [esi + 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [esi]
call fcn.00468310
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x413e09
Capabilities:
Copy file
Create thread

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x30
mov eax, 0x4a146d
call fcn.00466e90
mov ebx, dword [ebp + 0x80c]
mov edi, dword [ebp + 0x810]
push ebx
mov esi, ecx
mov dword [ebp - 0x10], edi
call fcn.004137f5
test al, al
je 0x413e57
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x413f9e
xor eax, eax
push 0x7fe
mov word [ebp], ax
xor edi, edi
lea eax, [ebp + 2]
push edi
push eax
call fcn.00468220
add esp, 0xc
lea eax, [ebp]
push eax
push ebx
mov ecx, esi
call fcn.00413820
lea eax, [ebp]
lea ebx, [esi + 0x104]
push eax
mov ecx, ebx
call fcn.00402670
push dword [ebp - 0x10]
lea ecx, [esi + 0x138]
call fcn.00402670
push 0x2c
call fcn.00468137
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
cmp eax, edi
je 0x413ec5
mov ecx, ebx
call fcn.00402250
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
push 4
push esi
push eax
call fcn.00413c10
jmp 0x413ec7
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x16c], eax
lea eax, [ebp - 0x20]
push eax
push edi
push esi
push 0x413c56
push edi
push edi
mov dword [ebp - 0x20], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
push 4
mov dword [ebp - 0x10], ebx
call fcn.00445b80
pop ecx
push 0xff
push 0xffffffffffffffff
push edi
mov dword [eax], ebx
mov ebx, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov dword [ebp - 0x1c], eax
push eax
jmp 0x413f46
cmp dword [ebp - 0x38], 0x8032
jne 0x413f1e
mov ecx, dword [esi + 0x16c]
call fcn.00414131
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push edi
push edi
push edi
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x413f0a
push 0xff
push 0xffffffffffffffff
push edi
push dword [ebp - 0x1c]
push 1
call ebx
mov dword [ebp - 0x18], eax
cmp eax, 1
je 0x413f28
push dword [ebp - 0x1c]
call fcn.004667ea
mov esi, dword [esi + 0x16c]
pop ecx
cmp esi, edi
je 0x413f73
mov ecx, esi
call fcn.00413a9e
push esi
call fcn.004666eb
pop ecx
cmp dword [ebp - 0x18], 0xffffffff
jne 0x413f7d
xor eax, eax
jmp 0x413f9e
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x14], edi
setge al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.00466e81
add ebp, 0x804
leave
ret 8
Function at 0x415e6d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x28
mov eax, 0x4a1cb0
call fcn.00466ef9
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], esi
mov byte [ebp - 0x28], 0x49
mov byte [ebp - 0x27], 0x6e
mov byte [ebp - 0x26], 0x73
mov byte [ebp - 0x25], 0x74
mov byte [ebp - 0x24], 0x61
mov byte [ebp - 0x23], 0x6c
mov byte [ebp - 0x22], 0x6c
mov byte [ebp - 0x21], 0x53
mov byte [ebp - 0x20], 0x68
mov byte [ebp - 0x1f], 0x69
mov byte [ebp - 0x1e], 0x65
mov byte [ebp - 0x1d], 0x6c
mov byte [ebp - 0x1c], 0x64
mov byte [ebp - 0x1b], bl
cmp byte [ebp + 0xc], bl
je 0x415edf
mov byte [ebp - 0x1b], 0x20
mov byte [ebp - 0x1a], 0x57
mov byte [ebp - 0x19], 0x69
mov byte [ebp - 0x18], 0x7a
mov byte [ebp - 0x17], 0x61
mov byte [ebp - 0x16], 0x72
mov byte [ebp - 0x15], 0x64
mov byte [ebp - 0x14], bl
push 1
lea eax, [ebp - 0x29]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.0040a7da
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], 1
mov eax, esi
call fcn.00466f7c
ret 8
Function at 0x416c95
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x74
mov eax, 0x4a2107
call fcn.00466f2f
mov eax, dword [ebp + 8]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x54], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
push str.crypt32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
mov dword [ebp - 0x4c], edi
mov byte [ebp - 4], 1
cmp edi, ebx
jne 0x416cdf
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x4c]
call fcn.00416c1c
xor eax, eax
call fcn.00466f8b
ret 8
push str.CertCompareCertificate
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [ebp - 0x5c], eax
push str.CertAddSerializedElementToStore
push edi
call esi
mov dword [ebp - 0x60], eax
push str.CertFreeCertificateContext
push edi
call esi
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x5c], ebx
je 0x416cca
cmp dword [ebp - 0x60], ebx
je 0x416cca
cmp eax, ebx
je 0x416cca
push 1
lea eax, [ebp - 0x55]
push eax
lea ecx, [ebp - 0x48]
call fcn.00401850
mov byte [ebp - 4], 2
push dword [ebp - 0x54]
lea ecx, [ebp - 0x48]
call fcn.00402670
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x40]
jae 0x416d3d
lea eax, [ebp - 0x40]
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x50], edi
mov byte [ebp - 4], 3
cmp edi, ebx
jne 0x416d7d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
call fcn.00402cc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00401640
jmp 0x416cca
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
call fcn.00445b80
pop ecx
mov dword [ebp - 0x54], eax
xor ecx, ecx
cmp eax, ebx
setne cl
mov byte [ebp - 0x68], cl
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 4
push ebx
lea ecx, [ebp - 0x80]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x416dcb
mov byte [ebp - 4], 3
cmp byte [ebp - 0x68], bl
je 0x416d60
push dword [ebp - 0x54]
call fcn.004666eb
pop ecx
jmp 0x416d60
push ebx
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x7c]
call fcn.00416c69
mov byte [ebp - 4], 5
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x70]
push eax
push 0xffffffffffffffff
push ebx
push 4
push esi
mov edi, dword [ebp - 0x54]
push edi
push ebx
call dword [ebp - 0x60]
test eax, eax
jne 0x416e09
mov byte [ebp - 4], 6
mov byte [ebp - 4], 3
cmp byte [ebp - 0x68], bl
je 0x416d60
push edi
jmp 0x416dc3
cmp dword [ebp - 0x70], ebx
jne 0x416e14
mov byte [ebp - 4], 7
jmp 0x416df9
push dword [ebp - 0x74]
mov eax, dword [ebp - 0x7c]
push dword [eax + 0xc]
push 1
call dword [ebp - 0x5c]
mov esi, eax
mov byte [ebp - 4], 8
mov byte [ebp - 4], 3
cmp byte [ebp - 0x68], bl
je 0x416e38
push edi
call fcn.004666eb
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
call fcn.00402cc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00401640
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x4c]
call fcn.00416c1c
mov eax, esi
jmp 0x416cd7
Function at 0x417fcb
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x38c]
sub esp, 0x40c
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp + 0x388], eax
push ebx
push esi
mov esi, dword [ebp + 0x394]
xor ebx, ebx
mov byte [ebp - 0x79], bl
cmp esi, ebx
je 0x418044
push ebx
lea eax, [ebp - 0x80]
push eax
push 0x400
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x80], 2
jb 0x41802a
movzx eax, byte [ebp - 0x78]
cmp eax, 0xffffffff
jne 0x41802a
movzx eax, byte [ebp - 0x77]
cmp eax, 0xfffffffe
jne 0x41802a
mov byte [ebp - 0x79], 1
jmp 0x418044
xor eax, eax
cmp dword [ebp - 0x80], ebx
jbe 0x418044
cmp byte [ebp - 0x79], bl
jne 0x418044
cmp byte [ebp + eax - 0x78], bl
sete byte [ebp - 0x79]
inc eax
cmp eax, dword [ebp - 0x80]
jb 0x418031
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp + 0x388]
mov al, byte [ebp - 0x79]
pop esi
xor ecx, ebp
pop ebx
call fcn.00466e81
add ebp, 0x38c
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push esi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x419a0c
cmp byte [ebp + 0xc], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
jne 0x4199be
lea eax, [esi + 1]
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x419a0c
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and dword [ebp - 8], 0
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
test eax, eax
je 0x419a01
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x419991
xor eax, eax
jmp 0x4199a5
lea eax, [esi + esi]
call fcn.004681a0
mov eax, esp
push 3
push esi
push ebx
push eax
call fcn.00405ed5
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040872e
push ebx
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x419a0e
lea eax, [esi + 3]
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x419a0c
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and dword [ebp - 8], 0
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419a00
mov ecx, 0xfeff
mov eax, ebx
cmp word [ebx], cx
jne 0x4199a5
lea eax, [ebx + 2]
jmp 0x4199a5
push ebx
push 0
call edi
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.00466e81
leave
ret 0xc
Function at 0x41c225
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareInstallShieldISWI7.0SetupExeLog
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41c27c
lea eax, [ebp - 8]
push eax
push 0x4dc9a0
push 0
push 0
push 0x4b1810
push dword [ebp - 4]
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41c273
mov byte [0x4de9a4], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x41cd9e
Capabilities:
Identify system language via api

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x52]
push edi
mov byte [esi + 0xc], 0
mov byte [esi + 0xd], 0
call fcn.0041c547
test al, al
je 0x41cdc4
mov ax, word [edi]
mov byte [esi + 0xc], 1
mov word [esi + 0x50], ax
jmp 0x41ce3d
mov ax, word [esp + 0xc]
test ax, ax
jne 0x41cde0
cmp dword [esi + 0x4c], 4
jne 0x41cde0
mov ecx, esi
lea edi, [esi + 0x50]
call fcn.0041cb37
jmp 0x41cde3
lea edi, [esi + 0x50]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0041c547
test al, al
je 0x41cdf8
mov byte [esi + 0xd], 1
jmp 0x41ce3d
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0041c547
test al, al
jne 0x41ce3d
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0041c547
test al, al
jne 0x41ce3d
call fcn.00448678
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0041c547
test al, al
jne 0x41ce3d
mov ax, word [esi + 0x54]
mov word [edi], ax
pop edi
pop esi
ret 4
Function at 0x41e602
Capabilities:
Hide graphical window

Disassembly:
push dword [0x4dea20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41e632
push 0
push dword [0x4dea20]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4dea28]
mov ecx, dword [eax + 0x298]
push 0
call fcn.0043f95f
ret

Function at 0x41e633
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
push edi
lea eax, [ebp - 0x2c]
push eax
push dword [0x4dea20]
call esi
lea eax, [ebp - 0x6c]
push eax
xor ebx, ebx
push ebx
call esi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call edi
push eax
push ebx
call edi
push eax
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
mov dword [ebp - 4], 0x1e
mov dword [ebp - 8], eax
call fcn.00435d44
cmp dword [eax], 1
je 0x41e69d
cmp dword [eax + 4], ebx
je 0x41e6f2
push ebx
push 0x4b1d90
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41e6f2
lea eax, [ebp - 0x3c]
push eax
push edi
mov dword [ebp - 4], 0x46
call esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
lea esi, [ebp - 0x1c]
lea edi, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x1c]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_SubtractRect]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
sub esi, ebx
mov eax, esi
cdq
idiv dword [ebp - 4]
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
sub ecx, edi
push 5
push 0
push 0
sub ebx, eax
mov eax, ecx
cdq
idiv dword [ebp - 4]
sub ebx, dword [ebp - 8]
add ebx, esi
push ebx
sub edi, eax
sub edi, dword [ebp - 0xc]
add edi, ecx
push edi
push 0
push dword [0x4dea20]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret