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

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x18]
test edi, edi
je 0x445930
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
push ebx
mov ebx, dword [esp + 0x18]
push ebp
lea ecx, [eax + ebx]
cmp ecx, edx
jb 0x445912
lea edi, [edx + edx]
push 0
cmp edi, ecx
cmovbe edi, ecx
push edi
push 0
push 4
push 0
push 0xffffffffffffffff
mov dword [esp + 0x34], edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
je 0x4458d4
push edi
push 0
push 0
push 0xf001f
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x4458e1
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop ebx
pop edi
mov eax, 0x300
pop esi
pop ecx
ret 8
push dword [esi + 0x20]
push dword [esi + 0x18]
push edi
call fcn.004576b0
add esp, 0xc
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x18], edi
mov dword [esi + 4], ebp
push ebx
push dword [esp + 0x1c]
lea ecx, [edi + eax]
push ecx
call fcn.004576b0
add esp, 0xc
mov eax, ebx
add dword [esi + 0x1c], ebx
pop ebp
pop ebx
pop edi
pop esi
pop ecx
ret 8
mov eax, dword [esi]
test eax, eax
je 0x44595e
push 0
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
push ecx
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 8
pop edi
mov dword [esi + 0xc], 0x1000000
xor eax, eax
pop esi
pop ecx
ret 8

Function at 0x445b50
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x64]
test edx, edx
je 0x445ba5
mov ecx, dword [edi + 0x6c]
mov ebx, dword [edi + 0x68]
cmp ecx, ebx
jae 0x445bef
mov esi, dword [esp + 0x14]
lea eax, [ecx + edx]
sub ebx, ecx
cmp ebx, dword [esp + 0x18]
cmova ebx, dword [esp + 0x18]
push ebx
push eax
push esi
call fcn.004576b0
mov ecx, dword [edi + 0x58]
mov edx, esi
add dword [edi + 0x6c], ebx
add dword [edi + 0x54], ebx
push ebx
call fcn.004453f0
add esp, 0x10
mov dword [edi + 0x58], eax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret 8
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x445be8
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push 0
push ecx
push dword [esp + 0x20]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x445bef
mov esi, dword [esp + 0xc]
mov edx, ebx
mov ecx, dword [edi + 0x58]
add dword [edi + 0x54], esi
push esi
call fcn.004453f0
add esp, 4
mov dword [edi + 0x58], eax
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
ret 8
mov dword [edi + 0xc], 0x1000000
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 8
Function at 0x447690
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x4a8098]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
cmp dword [ebp + 0x10], 0xffffffff
mov edi, dword [esp + 0x20]
je 0x447712
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x447712
test ecx, ecx
je 0x44770e
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x4476d0
xor eax, eax
jmp 0x447717
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x447721
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00455748
add esp, 0xc
ret 0xc
Function at 0x447b80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4833f8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4a8098]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x24], ecx
jne 0x447cf7
test ecx, ecx
je 0x447cf7
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x447cf7
mov eax, dword [edi + 4]
lea esi, [edi + 4]
cmp eax, dword [esi + 4]
jne 0x447c39
cmp ebx, 0x40
jb 0x447c15
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x447c0b
mov edx, dword [ecx + 0x3c]
lea eax, [edx + 0xf8]
cmp ebx, eax
jb 0x447c15
cmp dword [edx + ecx], 0x4550
mov byte [edi], 1
sete al
mov byte [edi + 1], al
jmp 0x447cf7
mov word [edi], 1
jmp 0x447cf7
lea eax, [ebp - 0x1d]
mov byte [ebp - 0x1d], 0
push eax
push esi
push ebx
mov ecx, esi
call fcn.00425eb0
push ebx
push dword [ebp - 0x24]
push dword [esi]
call fcn.004576b0
add esp, 0xc
jmp 0x447cf7
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
push esi
call fcn.00422780
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x1d]
sub esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
push eax
push ecx
mov byte [ebp - 0x1d], 0
lea eax, [esi + ebx]
push eax
call fcn.00425eb0
mov eax, dword [ebp - 0x1c]
push ebx
push dword [ebp - 0x24]
add eax, esi
push eax
call fcn.004576b0
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov edx, dword [ebp - 0x1c]
mov ecx, edi
sub eax, edx
push eax
push edx
call fcn.00447b80
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x447cf7
mov ecx, dword [ebp - 0x14]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x447cd8
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x447d15
push ecx
push edx
call fcn.0045578e
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00455748
mov esp, ebp
pop ebp
ret 8
call fcn.0045bec2
int3
Function at 0x447d60
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x120]
sub esp, 0x120
push 0xffffffffffffffff
push 0x483442
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4a8098]
xor eax, ebp
mov dword [ebp + 0x11c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
je 0x447da4
call fcn.00447ef0
cmp byte [0x4aa83c], 0
jne 0x447db7
mov eax, 0x80000001
jmp 0x447ecb
mov eax, dword [esi]
test eax, eax
jne 0x447e22
push 8
call fcn.0045575e
mov edi, eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
push 1
call fcn.0045575e
mov dword [edi + 4], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [ebp + 4]
push eax
call fcn.00457c30
add esp, 0x14
mov dword [ebp], 0x11c
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x447e11
cmp dword [ebp + 4], 6
mov eax, dword [edi + 4]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0xffffffff
mov dword [esi], edi
mov dword [edi], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x447eba
call fcn.0041b480
test al, al
jne 0x447e5c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi]
push eax
add ecx, 4
call fcn.0041b610
test al, al
je 0x447eba
mov ecx, dword [esi]
add ecx, 4
call fcn.0041afa0
call fcn.0041b480
test al, al
je 0x447eba
push str.Advapi32.dll
lea ecx, [ebp - 0x28]
call fcn.004053c0
mov dword [ebp - 4], 2
lea eax, [ebp - 0x28]
push eax
call fcn.00419b70
mov ecx, eax
call fcn.00419c30
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004052e0
test edi, edi
je 0x447eba
push str.RegOpenCurrentUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x447eba
push dword [esi]
push 0x20019
call eax
test eax, eax
je 0x447eba
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x447ec9
mov dword [eax], 0x80000001
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x11c]
xor ecx, ebp
call fcn.00455748
lea esp, [ebp + 0x120]
pop ebp
ret 4
Function at 0x448790
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xfffffffffffffffe
push 0x4a5c00
push 0x457550
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4a8098]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.00406730
mov dword [ebp - 0x24], 0
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x4487fd
mov eax, dword [eax]
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.00407680
add esp, 8
mov edx, esi
call fcn.004488e0
mov bl, al
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x448837
test bl, bl
jne 0x4488b5
mov ecx, esi
call fcn.00406730
mov dword [ebp - 0x20], 0
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x448858
mov eax, dword [eax]
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.00407680
push 0x410
push 0
lea eax, [ebp]
push eax
call fcn.00457c30
add esp, 0x14
push 0x207
lea eax, [ebp]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp]
push eax
call fcn.004076b0
add esp, 4
push eax
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.004069f0
mov ecx, esi
call fcn.00405290
movzx ebx, bl
mov ecx, 1
test al, al
cmove ebx, ecx
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.00455748
lea esp, [ebp + 0x414]
pop ebp
ret
mov edx, dword [esp + 4]
jmp 0x448790
Function at 0x448a80
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xfffffffffffffffe
push 0x4a5c00
push 0x457550
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4a8098]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.00406730
mov dword [ebp - 0x24], 0
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x4487fd
mov eax, dword [eax]
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.00407680
add esp, 8
mov edx, esi
call fcn.004488e0
mov bl, al
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x448837
test bl, bl
jne 0x4488b5
mov ecx, esi
call fcn.00406730
mov dword [ebp - 0x20], 0
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x448858
mov eax, dword [eax]
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.00407680
push 0x410
push 0
lea eax, [ebp]
push eax
call fcn.00457c30
add esp, 0x14
push 0x207
lea eax, [ebp]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp]
push eax
call fcn.004076b0
add esp, 4
push eax
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.004069f0
mov ecx, esi
call fcn.00405290
movzx ebx, bl
mov ecx, 1
test al, al
cmove ebx, ecx
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.00455748
lea esp, [ebp + 0x414]
pop ebp
ret
mov edx, dword [esp + 4]
jmp 0x448790
Function at 0x44a060
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x4a8098]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x44a0c5
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44a0a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x44a0c5
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00455748
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.00455748
add esp, 8
ret 4

Function at 0x44a3e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x4a8098]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
push 0x110
lea eax, [esp + 0x18]
mov esi, ecx
push 0
push eax
call fcn.00457c30
add esp, 0xc
mov dword [esp + 0x10], 0x114
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x44a45e
cmp dword [esp + 0x14], 6
jb 0x44a45e
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x207
push eax
push esi
push 0x49afe0
mov edx, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
mov ecx, 0x80000001
call fcn.0044a250
add esp, 0xc
test al, al
je 0x44a45e
cmp word [esi], 0
jne 0x44a4b6
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.http_shellopencommand
mov ecx, 0x80000000
call fcn.0044a250
add esp, 0xc
test al, al
je 0x44a48a
cmp word [esi], 0
jne 0x44a4b6
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.SoftwareClasses.html
mov ecx, 0x80000001
call fcn.0044a250
add esp, 0xc
test al, al
je 0x44a4cb
cmp word [esi], 0
je 0x44a4cb
mov al, 1
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.00455748
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x12c]
xor al, al
pop esi
xor ecx, esp
call fcn.00455748
mov esp, ebp
pop ebp
ret
Function at 0x44aaa0
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x283c]
mov eax, 0x283c
call fcn.00456860
push 0xffffffffffffffff
push 0x483a48
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4a8098]
xor eax, ebp
mov dword [ebp + 0x2838], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x2000
xor ebx, ebx
lea eax, [ebp + 0x630]
push ebx
push eax
call fcn.00457c30
add esp, 0xc
mov eax, 0x22
mov word [ebp + 0x630], ax
test esi, esi
je 0x44aca1
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 1
jl 0x44aca1
push esi
call edi
cmp eax, 0xffa
jge 0x44aca1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp + 0x630]
push eax
call esi
push 0x498aac
lea eax, [ebp + 0x630]
push eax
call esi
push 0x4982a0
lea ecx, [ebp - 0x2c]
call fcn.004053c0
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2c]
push eax
call fcn.00419b70
mov ecx, eax
call fcn.00419c30
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004052e0
test esi, esi
je 0x44aca1
push str.ShellExecuteW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x44aca1
lea ecx, [ebp]
call fcn.0044a4e0
xor edi, edi
lea esi, [ebp]
cmp word [esi], 0
je 0x44abc6
push 1
push 0
lea eax, [ebp + 0x630]
push eax
push esi
push str.open
push 0
call dword [ebp - 0x10]
cmp eax, 0x20
ja 0x44abd4
inc edi
add esi, 0x210
cmp edi, 3
jl 0x44aba5
jmp 0x44abf6
imul ebx, edi, 0x210
cmp dword [ebp + ebx + 0x208], 0
mov ebx, dword [ebp + ebx + 0x20c]
jne 0x44abee
add ebx, 0x10
test ebx, ebx
jne 0x44ac9d
mov edi, dword [ebp - 0x10]
lea eax, [ebp + 0x630]
push 1
push 0
push 0
push eax
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x44ac98
mov dword [ebp - 0x14], str._programfiles_x86__Internet_Exploreriexplore.exe
xor esi, esi
mov dword [ebp - 0x10], str._programfiles_Internet_Exploreriexplore.exe
nop dword [eax + eax]
push 0x208
lea eax, [ebp + 0x2630]
push 0
push eax
call fcn.00457c30
add esp, 0xc
lea eax, [ebp + 0x2630]
push 0x103
push eax
push dword [ebp + esi*4 - 0x14]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp + 0x2630]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44ac8e
push 1
push 0
lea eax, [ebp + 0x630]
push eax
lea eax, [ebp + 0x2630]
push eax
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x44ac98
inc esi
cmp esi, 2
jb 0x44ac30
mov eax, ebx
jmp 0x44aca3
mov ebx, 0x10
mov eax, ebx
jmp 0x44aca3
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2838]
xor ecx, ebp
call fcn.00455748
lea esp, [ebp + 0x283c]
pop ebp
ret
Function at 0x44e350
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4a8098]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, ecx
mov dword [esp + 4], 0x114
push 0x110
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov byte [esi], 0
call fcn.00457c30
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x44e3e7
cmp dword [esp + 8], 6
jb 0x44e3e7
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.00455748
add esp, 0x118
ret

Function at 0x44e400
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483f70
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x4a8098]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.wintrust.dll
lea ecx, [ebp - 0x28]
call fcn.004053c0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.00419b70
mov ecx, eax
call fcn.00419c30
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004052e0
push str.crypt32.dll
lea ecx, [ebp - 0x40]
call fcn.004053c0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.00419b70
mov ecx, eax
call fcn.00419c30
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004052e0
test ebx, ebx
je 0x44e515
test esi, esi
je 0x44e515
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminCalcHashFromFileHandle
push ebx
call esi
push str.CryptCATAdminAcquireContext
push ebx
mov dword [edi + 4], eax
call esi
push str.CryptCATAdminEnumCatalogFromHash
push ebx
mov dword [edi + 8], eax
call esi
push str.CryptCATCatalogInfoFromContext
push ebx
mov dword [edi + 0xc], eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push ebx
mov dword [edi + 0x10], eax
call esi
push str.CryptCATAdminReleaseContext
push ebx
mov dword [edi + 0x14], eax
call esi
push str.WTHelperProvDataFromStateData
push ebx
mov dword [edi + 0x18], eax
call esi
push str.WTHelperGetProvSignerFromChain
push ebx
mov dword [edi + 0x1c], eax
call esi
push str.WinVerifyTrust
push ebx
mov dword [edi + 0x20], eax
call esi
push str.CertNameToStrW
push dword [ebp - 0x10]
mov dword [edi + 0x24], eax
call esi
mov dword [edi + 0x28], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44f420
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x80
push esi
mov dword [esp + 4], 0x10d040e
xor esi, esi
mov dword [esp + 8], 0x80b0f02
mov dword [esp + 0xc], 0xc060a03
mov dword [esp + 0x10], 0x7000905
mov dword [esp + 0x14], 0xe08010f
mov dword [esp + 0x18], 0x4030b06
mov dword [esp + 0x1c], 0xd020709
mov dword [esp + 0x20], 0xa05000c
mov dword [esp + 0x24], 0xe09000a
mov dword [esp + 0x28], 0x50f0306
mov dword [esp + 0x2c], 0x70c0d01
mov dword [esp + 0x30], 0x802040b
mov dword [esp + 0x34], 0x30e0d07
mov dword [esp + 0x38], 0xa090600
mov dword [esp + 0x3c], 0x5080201
mov dword [esp + 0x40], 0xf040c0b
mov dword [esp + 0x44], 0x1040c02
mov dword [esp + 0x48], 0x60b0a07
mov dword [esp + 0x4c], 0xf030508
mov dword [esp + 0x50], 0x90e000d
mov dword [esp + 0x54], 0xf0a010c
mov dword [esp + 0x58], 0x8060209
mov dword [esp + 0x5c], 0x4030d00
mov dword [esp + 0x60], 0xb05070e
mov dword [esp + 0x64], 0xe020b04
mov dword [esp + 0x68], 0xd08000f
mov dword [esp + 0x6c], 0x7090c03
mov dword [esp + 0x70], 0x1060a05
mov dword [esp + 0x74], 0x408020d
mov dword [esp + 0x78], 0x10b0f06
mov dword [esp + 0x7c], 0xe03090a
mov dword [esp + 0x80], 0x70c0005
nop dword [eax]
mov ecx, esi
mov edx, esi
sar ecx, 4
and edx, 0xf
movzx eax, byte [esp + ecx + 4]
shl al, 4
or al, byte [esp + edx + 0x14]
mov byte [esi + 0x4aab90], al
movzx eax, byte [esp + ecx + 0x24]
shl al, 4
or al, byte [esp + edx + 0x34]
mov byte [esi + 0x4aa890], al
movzx eax, byte [esp + ecx + 0x44]
shl al, 4
or al, byte [esp + edx + 0x54]
mov byte [esi + 0x4aaa90], al
movzx eax, byte [esp + ecx + 0x64]
shl al, 4
or al, byte [esp + edx + 0x74]
mov byte [esi + 0x4aa990], al
inc esi
cmp esi, 0x100
jl 0x44f530
pop esi
add esp, 0x80
ret
Function at 0x46bcb5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046bb34

Function at 0x4740fe
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00473dbe
Function at 0x401300
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401317
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401348
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x401344
cmp esi, eax
jae 0x401348
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x401334
cmp esi, eax
jb 0x40134e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x405510
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x408f62
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x40e01c]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [0x40e01c]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
push 0x105
lea eax, [esp + 0x10]
mov dword [esp + 0x228], 0
push 0
push eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
call fcn.00406450
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x228], 0
push esi
mov dword [esp + 0xc], 1
call fcn.00406500
mov eax, esi
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.004080ae
add esp, 0x224
ret