joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42fa00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
push ebp
push edi
mov ebp, ecx
xor edi, edi
mov eax, dword [eax]
and eax, 7
mov dword [esp + 0x10], ebp
cmp edx, 5
jae 0x42fa23
pop edi
xor eax, eax
pop ebp
add esp, 0xc
ret
push ebx
add edx, 0xfffffffc
or ebx, 0xffffffff
add edx, ebp
push esi
mov dword [esp + 0x10], edx
lea esi, [edi + ebp]
cmp esi, edx
jae 0x42fa47
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x42fa47
inc esi
cmp esi, edx
jb 0x42fa38
mov edi, esi
sub edi, ebp
mov ecx, edi
sub ecx, ebx
cmp esi, edx
jae 0x42fb52
cmp ecx, 3
jbe 0x42fa85
xor eax, eax
mov cl, byte [esi + 4]
mov ebx, edi
mov dword [esp + 0x14], ebx
test cl, cl
je 0x42fac1
cmp cl, 0xff
je 0x42fac1
mov edx, dword [esp + 0x10]
and eax, 3
add eax, eax
mov ecx, 1
or eax, 1
add edi, ecx
jmp 0x42fa31
dec ecx
shl eax, cl
and eax, 7
je 0x42fa5e
cmp byte [eax + 0x492d60], 0
je 0x42fab1
movzx ecx, byte [eax + 0x492d68]
mov edx, esi
sub edx, ecx
mov cl, byte [edx + 4]
test cl, cl
je 0x42faad
cmp cl, 0xff
jne 0x42fa5e
mov edx, dword [esp + 0x10]
and eax, 3
mov ebx, edi
add eax, eax
or eax, 1
inc edi
jmp 0x42fa31
movzx edx, cl
movzx ecx, byte [esi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 1]
shl edx, 8
or edx, ecx
nop
lea ebx, [edx + 5]
add ebx, edi
test eax, eax
je 0x42fb1a
movzx ebp, byte [eax + 0x492d68]
mov ecx, 0x18
shl ebp, 3
mov edx, ebx
sub ecx, ebp
shr edx, cl
test dl, dl
je 0x42fb07
cmp dl, 0xff
jne 0x42fb1a
mov ecx, 0x20
mov edx, 1
sub ecx, ebp
shl edx, cl
dec edx
xor edx, ebx
jmp 0x42fae0
mov ebp, dword [esp + 0x18]
mov ecx, ebx
mov edx, dword [esp + 0x10]
shr ecx, 0x18
and cl, 1
mov byte [esi + 1], bl
neg cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
mov ebx, dword [esp + 0x14]
shr ecx, 8
mov byte [esi + 2], cl
mov ecx, 5
add edi, ecx
jmp 0x42fa31
pop esi
pop ebx
cmp ecx, 3
jbe 0x42fb69
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [ecx], eax
mov eax, edi
pop edi
pop ebp
add esp, 0xc
ret
dec ecx
shl eax, cl
mov ecx, dword [esp + 0x1c]
and eax, 7
mov dword [ecx], eax
mov eax, edi
pop edi
pop ebp
add esp, 0xc
ret
Function at 0x442490
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x44249b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.004424b0
Function at 0x445270
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test edx, edx
jne 0x445277
xor eax, eax
ret
push esi
mov esi, dword [esp + 8]
not ecx
cmp esi, 8
jb 0x445337
push edi
mov edi, esi
shr edi, 3
nop dword [eax]
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x495820]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x495820]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x495820]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x495820]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x495820]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x495820]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x495820]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x495820]
sub edi, 1
jne 0x445290
pop edi
test esi, esi
je 0x44535a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x495820]
sub esi, 1
jne 0x445340
not ecx
mov eax, ecx
pop esi
ret
Function at 0x4456f0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x18]
test edi, edi
je 0x4457b0
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 0x445792
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 0x445754
push edi
push 0
push 0
push 0xf001f
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x445761
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.00456c60
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.00456c60
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 0x4457de
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 0x4459d0
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 0x445a25
mov ecx, dword [edi + 0x6c]
mov ebx, dword [edi + 0x68]
cmp ecx, ebx
jae 0x445a6f
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.00456c60
mov ecx, dword [edi + 0x58]
mov edx, esi
add dword [edi + 0x6c], ebx
add dword [edi + 0x54], ebx
push ebx
call fcn.00445270
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 0x445a68
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 0x445a6f
mov esi, dword [esp + 0xc]
mov edx, ebx
mov ecx, dword [edi + 0x58]
add dword [edi + 0x54], esi
push esi
call fcn.00445270
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 0x447500
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x4a9068]
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 0x447582
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 0x447582
test ecx, ecx
je 0x44757e
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x447540
xor eax, eax
jmp 0x447587
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x447591
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00454e67
add esp, 0xc
ret 0xc
Function at 0x4479f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483348
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4a9068]
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 0x447b67
test ecx, ecx
je 0x447b67
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x447b67
mov eax, dword [edi + 4]
lea esi, [edi + 4]
cmp eax, dword [esi + 4]
jne 0x447aa9
cmp ebx, 0x40
jb 0x447a85
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x447a7b
mov edx, dword [ecx + 0x3c]
lea eax, [edx + 0xf8]
cmp ebx, eax
jb 0x447a85
cmp dword [edx + ecx], 0x4550
mov byte [edi], 1
sete al
mov byte [edi + 1], al
jmp 0x447b67
mov word [edi], 1
jmp 0x447b67
lea eax, [ebp - 0x1d]
mov byte [ebp - 0x1d], 0
push eax
push esi
push ebx
mov ecx, esi
call fcn.00425ff0
push ebx
push dword [ebp - 0x24]
push dword [esi]
call fcn.00456c60
add esp, 0xc
jmp 0x447b67
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.004228c0
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.00425ff0
mov eax, dword [ebp - 0x1c]
push ebx
push dword [ebp - 0x24]
add eax, esi
push eax
call fcn.00456c60
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.004479f0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x447b67
mov ecx, dword [ebp - 0x14]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x447b48
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x447b85
push ecx
push edx
call fcn.00454ead
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.00454e67
mov esp, ebp
pop ebp
ret 8
call fcn.0045b472
int3
Function at 0x447bd0
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x120]
sub esp, 0x120
push 0xffffffffffffffff
push 0x483392
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4a9068]
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 0x447c14
call fcn.00447d60
cmp byte [0x4ab42c], 0
jne 0x447c27
mov eax, 0x80000001
jmp 0x447d3b
mov eax, dword [esi]
test eax, eax
jne 0x447c92
push 8
call fcn.00454e7d
mov edi, eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
push 1
call fcn.00454e7d
mov dword [edi + 4], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [ebp + 4]
push eax
call fcn.004571e0
add esp, 0x14
mov dword [ebp], 0x11c
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x447c81
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 0x447d2a
call fcn.0041b570
test al, al
jne 0x447ccc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi]
push eax
add ecx, 4
call fcn.0041b700
test al, al
je 0x447d2a
mov ecx, dword [esi]
add ecx, 4
call fcn.0041b090
call fcn.0041b570
test al, al
je 0x447d2a
push str.Advapi32.dll
lea ecx, [ebp - 0x28]
call fcn.004053e0
mov dword [ebp - 4], 2
lea eax, [ebp - 0x28]
push eax
call fcn.00419c50
mov ecx, eax
call fcn.00419d10
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405300
test edi, edi
je 0x447d2a
push str.RegOpenCurrentUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x447d2a
push dword [esi]
push 0x20019
call eax
test eax, eax
je 0x447d2a
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x447d39
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.00454e67
lea esp, [ebp + 0x120]
pop ebp
ret 4
Function at 0x449c60
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x4a9068]
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 0x449cc5
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 0x449ca0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x449cc5
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.00454e67
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.00454e67
add esp, 8
ret 4

Function at 0x449fe0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x4a9068]
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.004571e0
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 0x44a05e
cmp dword [esp + 0x14], 6
jb 0x44a05e
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x207
push eax
push esi
push str.Progid
mov edx, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
mov ecx, 0x80000001
call fcn.00449e50
add esp, 0xc
test al, al
je 0x44a05e
cmp word [esi], 0
jne 0x44a0b6
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.00449e50
add esp, 0xc
test al, al
je 0x44a08a
cmp word [esi], 0
jne 0x44a0b6
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.00449e50
add esp, 0xc
test al, al
je 0x44a0cb
cmp word [esi], 0
je 0x44a0cb
mov al, 1
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.00454e67
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x12c]
xor al, al
pop esi
xor ecx, esp
call fcn.00454e67
mov esp, ebp
pop ebp
ret
Function at 0x44a650
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x283c]
mov eax, 0x283c
call fcn.00455e10
push 0xffffffffffffffff
push 0x4839c8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4a9068]
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.004571e0
add esp, 0xc
mov eax, 0x22
mov word [ebp + 0x630], ax
test esi, esi
je 0x44a851
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 1
jl 0x44a851
push esi
call edi
cmp eax, 0xffa
jge 0x44a851
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp + 0x630]
push eax
call esi
push 0x498ee4
lea eax, [ebp + 0x630]
push eax
call esi
push 0x4986e4
lea ecx, [ebp - 0x2c]
call fcn.004053e0
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2c]
push eax
call fcn.00419c50
mov ecx, eax
call fcn.00419d10
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00405300
test esi, esi
je 0x44a851
push str.ShellExecuteW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x44a851
lea ecx, [ebp]
call fcn.0044a0e0
xor edi, edi
lea esi, [ebp]
cmp word [esi], 0
je 0x44a776
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 0x44a784
inc edi
add esi, 0x210
cmp edi, 3
jl 0x44a755
jmp 0x44a7a6
imul ebx, edi, 0x210
cmp dword [ebp + ebx + 0x208], 0
mov ebx, dword [ebp + ebx + 0x20c]
jne 0x44a79e
add ebx, 0x10
test ebx, ebx
jne 0x44a84d
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 0x44a848
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.004571e0
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 0x44a83e
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 0x44a848
inc esi
cmp esi, 2
jb 0x44a7e0
mov eax, ebx
jmp 0x44a853
mov ebx, 0x10
mov eax, ebx
jmp 0x44a853
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.00454e67
lea esp, [ebp + 0x283c]
pop ebp
ret
Function at 0x44df00
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4a9068]
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.004571e0
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x44df97
cmp dword [esp + 8], 6
jb 0x44df97
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.00454e67
add esp, 0x118
ret

Function at 0x44dfb0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483ef0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x4a9068]
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.004053e0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.00419c50
mov ecx, eax
call fcn.00419d10
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405300
push str.crypt32.dll
lea ecx, [ebp - 0x40]
call fcn.004053e0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.00419c50
mov ecx, eax
call fcn.00419d10
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00405300
test ebx, ebx
je 0x44e0c5
test esi, esi
je 0x44e0c5
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 0x44efd0
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 + 0x4ab7b0], al
movzx eax, byte [esp + ecx + 0x24]
shl al, 4
or al, byte [esp + edx + 0x34]
mov byte [esi + 0x4ab4b0], al
movzx eax, byte [esp + ecx + 0x44]
shl al, 4
or al, byte [esp + edx + 0x54]
mov byte [esi + 0x4ab6b0], al
movzx eax, byte [esp + ecx + 0x64]
shl al, 4
or al, byte [esp + edx + 0x74]
mov byte [esi + 0x4ab5b0], al
inc esi
cmp esi, 0x100
jl 0x44f0e0
pop esi
add esp, 0x80
ret
Function at 0x46b145
Capabilities:
Read file on windows

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

Function at 0x4732bd
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00472f7d

Function at 0x47a4f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x4a9068]
xor eax, esp
mov dword [esp + 0x414], eax
push edi
mov edi, dword [esp + 0x424]
lea eax, [esp + 8]
push 0x410
push 0
push eax
call fcn.004571e0
add esp, 0xc
mov dword [esp + 4], 0
lea eax, [esp + 4]
push eax
push dword [esp + 0x424]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x47a562
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x47a57a
mov eax, dword [esp + 4]
test eax, eax
je 0x47a562
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
pop edi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.00454e67
add esp, 0x418
ret
lea edx, [esp + 8]
push esi
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x47a582
sub edx, esi
lea eax, [esp + 0xc]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.00406a10
mov eax, dword [esp + 8]
pop esi
test eax, eax
je 0x47a5ae
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [esp + 0x418]
mov al, 1
pop edi
xor ecx, esp
call fcn.00454e67
add esp, 0x418
ret

Function at 0x47a5d0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4a9068]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.004571e0
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x47a637
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x47a620
jne 0x47a637
cmp dword [esp + 8], 0
jbe 0x47a637
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00454e67
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.00454e67
add esp, 0x118
ret

Function at 0x47a650
Capabilities:
Get session user name

Disassembly:
sub esp, 0x214
mov eax, dword [0x4a9068]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov esi, ecx
mov dword [esi], 0
cmp dword [0x4a99d0], 0
jne 0x47a6d2
push 0x20a
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004571e0
add esp, 0xc
mov dword [esp + 4], 0x104
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
lea ecx, [esp + 8]
mov word [esp + 0x20e], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47a6b3
sub ecx, edx
lea eax, [esp + 8]
sar ecx, 1
push ecx
push eax
mov ecx, 0x4a99c0
call fcn.00406a10
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00454e67
add esp, 0x214
ret