joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454152
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00441d5b
and dword [ebp - 4], 0
cmp dword [0x4842f0], 0
mov ebx, eax
jne 0x454203
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4542b4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x470e54
push edi
call esi
test eax, eax
je 0x4542b4
push eax
call fcn.00441ce9
mov dword [esp], 0x470e44
push edi
mov dword [0x4842f0], eax
call esi
push eax
call fcn.00441ce9
mov dword [esp], 0x470e30
push edi
mov dword [0x4842f4], eax
call esi
push eax
call fcn.00441ce9
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4842f8], eax
call esi
push eax
call fcn.00441ce9
pop ecx
mov dword [0x484300], eax
test eax, eax
je 0x454203
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00441ce9
pop ecx
mov dword [0x4842fc], eax
mov eax, dword [0x4842fc]
cmp eax, ebx
je 0x45425b
cmp dword [0x484300], ebx
je 0x45425b
push eax
call fcn.00441d64
push dword [0x484300]
mov esi, eax
call fcn.00441d64
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x45425b
test edi, edi
je 0x45425b
call esi
test eax, eax
je 0x454252
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x454252
test byte [ebp - 0xc], 1
jne 0x45425b
or dword [ebp + 0x10], 0x200000
jmp 0x454294
mov eax, dword [0x4842f4]
cmp eax, ebx
je 0x454294
push eax
call fcn.00441d64
pop ecx
test eax, eax
je 0x454294
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x454294
mov eax, dword [0x4842f8]
cmp eax, ebx
je 0x454294
push eax
call fcn.00441d64
pop ecx
test eax, eax
je 0x454294
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4842f0]
call fcn.00441d64
pop ecx
test eax, eax
je 0x4542b4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4542b6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4015b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x4015b9
xor ecx, ecx
jne 0x4015b9
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 0x401600
mov eax, dword [ebp - 0xc]
jmp 0x40165d
cmp dword [ebp - 4], 1
je 0x401613
cmp dword [ebp - 4], 2
je 0x401613
mov eax, 0xd
jmp 0x40165d
cmp dword [ebp + 0xc], 0
je 0x401651
cmp dword [ebp - 8], 0
je 0x401649
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x401640
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x401647
mov eax, 0xd
jmp 0x40165d
jmp 0x401651
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 0x4058ac
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.004447d5
mov esi, eax
pop ecx
test esi, esi
je 0x4058fa
xor edx, edx
test ebx, ebx
jbe 0x4058fa
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 0x4058e4
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4059bf
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 0x405a1c
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 0x405a14
push dword [ebp + 0xc]
push dword [ebp - 4]
push edi
call fcn.00405960
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 0x405b7c
Capabilities:
Get file size

Disassembly:
push ebp
sub esp, 0x104
lea ebp, [esp - 4]
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp + 0x104], eax
push 0x44
mov eax, 0x49c438
call fcn.004646e0
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 0x405c66
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 0x405c5d
push esi
push esi
push esi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, esi
je 0x405c54
push 1
lea eax, [ebp - 0xd]
push eax
push ebx
lea ecx, [ebp - 0x50]
call fcn.004025c0
mov dword [ebp - 4], esi
mov ecx, eax
call fcn.00402d00
push eax
lea eax, [ebp]
push 0x104
push eax
call fcn.00465041
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00401670
lea eax, [ebp]
push eax
push dword [ebp - 0x18]
push edi
call fcn.00405901
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.004646d1
add ebp, 0x108
leave
ret

Function at 0x4060b9
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x38c]
sub esp, 0x40c
mov eax, dword [0x4d6080]
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 0x406132
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 0x406118
movzx eax, byte [ebp - 0x78]
cmp eax, 0xffffffff
jne 0x406118
movzx eax, byte [ebp - 0x77]
cmp eax, 0xfffffffe
jne 0x406118
mov byte [ebp - 0x79], 1
jmp 0x406132
xor eax, eax
cmp dword [ebp - 0x80], ebx
jbe 0x406132
cmp byte [ebp - 0x79], bl
jne 0x406132
cmp byte [ebp + eax - 0x78], bl
sete byte [ebp - 0x79]
inc eax
cmp eax, dword [ebp - 0x80]
jb 0x40611f
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.004646d1
add ebp, 0x38c
leave
ret 4

Function at 0x406bd7
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 8
push esi
jb 0x406be7
mov esi, dword [eax + 4]
jmp 0x406bea
lea esi, [eax + 4]
push esi
call fcn.004640fc
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 0x4097d1
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4d6080]
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 0x4098d2
cmp byte [ebp + 0xc], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
jne 0x409884
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 0x4098d2
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 0x4098c7
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x409857
xor eax, eax
jmp 0x40986b
lea eax, [esi + esi]
call fcn.004659f0
mov eax, esp
push 3
push esi
push ebx
push eax
call fcn.00405d8e
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00408e88
push ebx
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x4098d4
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 0x4098d2
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 0x4098c6
mov ecx, 0xfeff
mov eax, ebx
cmp word [ebx], cx
jne 0x40986b
lea eax, [ebx + 2]
jmp 0x40986b
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.004646d1
leave
ret 0xc
Function at 0x40e493
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
call fcn.004057db
mov ecx, eax
call fcn.00435eeb
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 0x40e4d4
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push edi
mov ecx, ebx
call fcn.0040db71
test eax, eax
jne 0x40e520
push dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jle 0x40e4f0
push esi
push edi
mov ecx, ebx
call fcn.0040db71
test eax, eax
jne 0x40e520
push 0x4bdf40
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
push esi
push 3
call fcn.00442168
add esp, 0xc
test eax, eax
jge 0x40e520
push edi
push esi
push 4
call fcn.00442168
add esp, 0xc
test eax, eax
jge 0x40e520
xor eax, eax
jmp 0x40e523
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x4132d1
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 0x4132fa
push ebx
push ebx
call fcn.004647ea
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0x10], eax
cmp eax, ebx
je 0x4132f3
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi + 4], eax
cmp eax, ebx
je 0x4132f3
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi], eax
cmp eax, ebx
je 0x4132f3
push dword [esi + 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [esi]
call fcn.00465b60
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x413ecd
Capabilities:
Copy file
Create thread

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x30
mov eax, 0x49eaa5
call fcn.004646e0
mov ebx, dword [ebp + 0x80c]
mov edi, dword [ebp + 0x810]
push ebx
mov esi, ecx
mov dword [ebp - 0x10], edi
call fcn.004138b9
test al, al
je 0x413f1b
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x414062
xor eax, eax
push 0x7fe
mov word [ebp], ax
xor edi, edi
lea eax, [ebp + 2]
push edi
push eax
call fcn.00465a70
add esp, 0xc
lea eax, [ebp]
push eax
push ebx
mov ecx, esi
call fcn.004138e4
lea eax, [ebp]
lea ebx, [esi + 0x104]
push eax
mov ecx, ebx
call fcn.004026b0
push dword [ebp - 0x10]
lea ecx, [esi + 0x138]
call fcn.004026b0
push 0x2c
call fcn.00465987
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
cmp eax, edi
je 0x413f89
mov ecx, ebx
call fcn.00402290
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
push 4
push esi
push eax
call fcn.00413cd4
jmp 0x413f8b
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x16c], eax
lea eax, [ebp - 0x20]
push eax
push edi
push esi
push 0x413d1a
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.004447d5
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 0x41400a
cmp dword [ebp - 0x38], 0x8032
jne 0x413fe2
mov ecx, dword [esi + 0x16c]
call fcn.004141fa
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 0x413fce
push 0xff
push 0xffffffffffffffff
push edi
push dword [ebp - 0x1c]
push 1
call ebx
mov dword [ebp - 0x18], eax
cmp eax, 1
je 0x413fec
push dword [ebp - 0x1c]
call fcn.00464116
mov esi, dword [esi + 0x16c]
pop ecx
cmp esi, edi
je 0x414037
mov ecx, esi
call fcn.00413b62
push esi
call fcn.00463f3b
pop ecx
cmp dword [ebp - 0x18], 0xffffffff
jne 0x414041
xor eax, eax
jmp 0x414062
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.004646d1
add ebp, 0x804
leave
ret 8
Function at 0x415f36
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x28
mov eax, 0x49f2e8
call fcn.00464749
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 0x415fa8
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.0040ae09
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], 1
mov eax, esi
call fcn.004647cc
ret 8
Function at 0x416d5e
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x74
mov eax, 0x49f73f
call fcn.0046477f
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 0x416da8
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x4c]
call fcn.00416ce5
xor eax, eax
call fcn.004647db
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 0x416d93
cmp dword [ebp - 0x60], ebx
je 0x416d93
cmp eax, ebx
je 0x416d93
push 1
lea eax, [ebp - 0x55]
push eax
lea ecx, [ebp - 0x48]
call fcn.00401870
mov byte [ebp - 4], 2
push dword [ebp - 0x54]
lea ecx, [ebp - 0x48]
call fcn.004026b0
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x40]
jae 0x416e06
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 0x416e46
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
call fcn.00402da0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00401670
jmp 0x416d93
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
call fcn.004447d5
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 0x416e94
mov byte [ebp - 4], 3
cmp byte [ebp - 0x68], bl
je 0x416e29
push dword [ebp - 0x54]
call fcn.00463f3b
pop ecx
jmp 0x416e29
push ebx
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x7c]
call fcn.00416d32
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 0x416ed2
mov byte [ebp - 4], 6
mov byte [ebp - 4], 3
cmp byte [ebp - 0x68], bl
je 0x416e29
push edi
jmp 0x416e8c
cmp dword [ebp - 0x70], ebx
jne 0x416edd
mov byte [ebp - 4], 7
jmp 0x416ec2
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 0x416f01
push edi
call fcn.00463f3b
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
call fcn.00402da0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00401670
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x4c]
call fcn.00416ce5
mov eax, esi
jmp 0x416da0
Function at 0x41809c
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x38c]
sub esp, 0x40c
mov eax, dword [0x4d6080]
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 0x418115
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 0x4180fb
movzx eax, byte [ebp - 0x78]
cmp eax, 0xffffffff
jne 0x4180fb
movzx eax, byte [ebp - 0x77]
cmp eax, 0xfffffffe
jne 0x4180fb
mov byte [ebp - 0x79], 1
jmp 0x418115
xor eax, eax
cmp dword [ebp - 0x80], ebx
jbe 0x418115
cmp byte [ebp - 0x79], bl
jne 0x418115
cmp byte [ebp + eax - 0x78], bl
sete byte [ebp - 0x79]
inc eax
cmp eax, dword [ebp - 0x80]
jb 0x418102
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.004646d1
add ebp, 0x38c
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4d6080]
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 0x419add
cmp byte [ebp + 0xc], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
jne 0x419a8f
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 0x419add
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 0x419ad2
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x419a62
xor eax, eax
jmp 0x419a76
lea eax, [esi + esi]
call fcn.004659f0
mov eax, esp
push 3
push esi
push ebx
push eax
call fcn.00405d8e
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00408820
push ebx
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x419adf
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 0x419add
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 0x419ad1
mov ecx, 0xfeff
mov eax, ebx
cmp word [ebx], cx
jne 0x419a76
lea eax, [ebx + 2]
jmp 0x419a76
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.004646d1
leave
ret 0xc
Function at 0x41c2b1
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 0x41c308
lea eax, [ebp - 8]
push eax
push 0x4d7a00
push 0
push 0
push 0x4adb58
push dword [ebp - 4]
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41c2ff
mov byte [0x4d9a04], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x41ce2a
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.0041c685
test al, al
je 0x41ce50
mov ax, word [edi]
mov byte [esi + 0xc], 1
mov word [esi + 0x50], ax
jmp 0x41cec9
mov ax, word [esp + 0xc]
test ax, ax
jne 0x41ce6c
cmp dword [esi + 0x4c], 4
jne 0x41ce6c
mov ecx, esi
lea edi, [esi + 0x50]
call fcn.0041cbc3
jmp 0x41ce6f
lea edi, [esi + 0x50]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0041c685
test al, al
je 0x41ce84
mov byte [esi + 0xd], 1
jmp 0x41cec9
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0041c685
test al, al
jne 0x41cec9
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0041c685
test al, al
jne 0x41cec9
call fcn.00446b93
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0041c685
test al, al
jne 0x41cec9
mov ax, word [esi + 0x54]
mov word [edi], ax
pop edi
pop esi
ret 4