joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42d930
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fdf66
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x525008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
je 0x42d96a
call fcn.0042dbb0
cmp byte [0x52730c], 0
jne 0x42d97d
mov eax, 0x80000001
jmp 0x42db8b
mov eax, dword [esi]
test eax, eax
jne 0x42d9fd
push 8
call fcn.004f6402
mov edi, eax
add esp, 4
mov dword [ebp - 0x140], edi
mov dword [ebp - 4], 0
push 1
call fcn.004f6402
add esp, 4
mov dword [edi + 4], eax
mov byte [eax], 0
lea eax, [ebp - 0x130]
push 0x118
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x134], 0x11c
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x42d9ec
cmp dword [ebp - 0x130], 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 0x42db7a
call fcn.004360e0
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test al, al
jne 0x42db17
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x144], eax
lea ecx, [ebp - 0x15c]
mov eax, dword [esi]
add eax, 4
mov byte [ebp - 0x139], 0
push str.Advapi32.dll
mov dword [ebp - 0x140], eax
call fcn.004037c0
mov dword [ebp - 4], 2
lea eax, [ebp - 0x15c]
push eax
call fcn.0042e610
mov ecx, eax
call fcn.0042e6d0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x15c]
call fcn.004037b0
test edi, edi
je 0x42db7a
push str.OpenProcessToken
push edi
call ebx
mov ebx, eax
test ebx, ebx
je 0x42db7a
push dword [ebp - 0x144]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x42db7a
lea eax, [ebp - 0x138]
mov dword [ebp - 0x138], 0
push eax
push 0x20008
push edi
call ebx
test eax, eax
je 0x42dade
push dword [ebp - 0x138]
mov ecx, dword [ebp - 0x140]
call fcn.00436640
mov bl, al
jmp 0x42dae4
mov bl, byte [ebp - 0x139]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov ecx, dword [ebp - 0x138]
test ecx, ecx
je 0x42dafa
push ecx
call edi
test bl, bl
je 0x42db7a
mov ecx, dword [esi]
add ecx, 4
call fcn.00435bf0
call fcn.004360e0
test al, al
je 0x42db7a
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Advapi32.dll
lea ecx, [ebp - 0x15c]
call fcn.004037c0
mov dword [ebp - 4], 3
lea eax, [ebp - 0x15c]
push eax
call fcn.0042e610
mov ecx, eax
call fcn.0042e6d0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x15c]
call fcn.004037b0
test edi, edi
je 0x42db7a
push str.RegOpenCurrentUser
push edi
call ebx
test eax, eax
je 0x42db7a
push dword [esi]
push 0x20019
call eax
test eax, eax
je 0x42db7a
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x42db89
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
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004f63f1
mov esp, ebp
pop ebp
ret 4
Function at 0x42dd70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fe016
mov eax, dword fs:[0]
push eax
sub esp, 0x64c
mov eax, dword [0x525008]
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 esi, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x654]
mov ebx, dword [ebp + 0xc]
call fcn.00403810
mov dword [ebp - 4], 0
mov eax, dword [0x527318]
mov dword [ebp - 0x63c], 0
mov dword [ebp - 0x63c], 0x527318
test eax, eax
je 0x42dddc
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 1
mov ecx, 0x527328
call fcn.00403760
test al, al
jne 0x42de1e
call fcn.00403840
lea ecx, [ebp - 0x654]
cmp ecx, eax
je 0x42deda
mov ecx, 0x527328
call fcn.00403840
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x42de15
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
jmp 0x42decf
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x42df7b
xor eax, eax
push 0x412
push eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x638]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x638]
push 0x208
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x42debc
test eax, eax
je 0x42debc
add eax, eax
cmp eax, 0x412
jae 0x42dfcd
xor ecx, ecx
mov word [ebp + eax - 0x638], cx
lea ecx, [ebp - 0x638]
call fcn.00403ba0
push eax
lea eax, [ebp - 0x638]
jmp 0x42dece
lea ecx, [ebp - 0x220]
call fcn.00403ba0
push eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x654]
call fcn.00403930
mov byte [ebp - 4], 0
mov eax, dword [0x527318]
test eax, eax
je 0x42deee
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
push edi
lea eax, [ebp - 0x654]
mov dword [ebp - 0x63c], 0
push eax
mov ecx, esi
call fcn.0042dd00
test al, al
je 0x42df13
mov bl, 1
jmp 0x42df9b
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x42df99
xor eax, eax
lea ecx, [ebp - 0x220]
mov word [ebp - 0x16], ax
call fcn.00403ba0
push eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x654]
call fcn.00403930
push ebx
push edi
lea eax, [ebp - 0x654]
mov ecx, esi
push eax
call fcn.0042dd00
mov bl, al
jmp 0x42df9b
mov byte [ebp - 4], 0
mov eax, dword [0x527318]
test eax, eax
je 0x42df8f
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x63c], 0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x654]
call fcn.004037b0
mov al, bl
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.004f63f1
mov esp, ebp
pop ebp
ret 8
call fcn.004f6a5a
int3
Function at 0x42f4b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x525008]
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 0x42f532
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 0x42f532
test ecx, ecx
je 0x42f52e
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x42f4f0
xor eax, eax
jmp 0x42f537
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x42f541
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004f63f1
add esp, 0xc
ret 0xc
Function at 0x42fff0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fe688
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x525008]
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 ebx, ecx
cmp byte [ebx], 0
mov esi, dword [ebp + 8]
mov dword [ebp - 0x24], esi
jne 0x430168
test esi, esi
je 0x430168
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x430168
mov eax, dword [ebx + 4]
lea ecx, [ebx + 4]
cmp eax, dword [ecx + 4]
jne 0x4300a5
cmp edi, 0x40
jb 0x430085
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x43007b
mov edx, dword [esi + 0x3c]
lea eax, [edx + 0xf8]
cmp edi, eax
jb 0x430085
cmp dword [edx + esi], 0x4550
mov byte [ebx], 1
sete al
mov byte [ebx + 1], al
jmp 0x430168
mov word [ebx], 1
jmp 0x430168
lea eax, [ebp - 0x1d]
mov byte [ebp - 0x1d], 0
push eax
push edi
call fcn.004131b0
push edi
push esi
push dword [ebx + 4]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x430168
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
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00413170
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x1d]
sub esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
push eax
mov byte [ebp - 0x1d], 0
lea eax, [esi + edi]
push eax
call fcn.004131b0
mov eax, dword [ebp - 0x1c]
push edi
push dword [ebp - 0x24]
add eax, esi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov edx, dword [ebp - 0x1c]
mov ecx, ebx
sub eax, edx
push eax
push edx
call fcn.0042fff0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x430168
mov ecx, dword [ebp - 0x14]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x430149
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x430149
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004f6432
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.004f63f1
mov esp, ebp
pop ebp
ret 8
Function at 0x433b10
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc2ff
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x525008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00401f80
mov esi, dword [ebp + 8]
mov edi, eax
push esi
mov ecx, edi
mov dword [ebp - 0x10], edi
call fcn.00404670
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
push ecx
lea ecx, [edi + 0x18]
call fcn.00404670
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.00404670
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.00404670
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.00404670
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.00404670
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4354b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x525008]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.004f6402
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x43550c
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.004f63f1
add esp, 0x120
ret
Function at 0x437e50
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x437e88
mov edx, dword [esp + 4]
test edx, edx
je 0x437e88
cmp dword [eax], 0xffffffff
je 0x437e88
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [ecx]
push edx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x437e88
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x437e90
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
push esi
push edi
test eax, eax
je 0x437eca
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x437eca
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x437eca
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push 0
push esi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x437eca
cmp edi, dword [esi]
jne 0x437eca
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc

Function at 0x437ee0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x525008]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
test eax, eax
je 0x437f43
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x437f43
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x437f1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x437f43
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.004f63f1
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004f63f1
add esp, 8
ret 4

Function at 0x438180
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc988
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x525008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
cmp esi, 0xffffffff
jne 0x4381b7
xor al, al
jmp 0x438229
and esi, 0xffffb1af
call fcn.00403840
cmp dword [eax + 0x14], 8
jb 0x4381ca
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4381da
mov al, 1
jmp 0x438229
lea ecx, [ebp - 0x28]
call fcn.00403810
mov dword [ebp - 4], 0
mov edx, ecx
mov ecx, ebx
call fcn.00438720
test al, al
je 0x438216
lea ecx, [ebp - 0x28]
call fcn.00403840
cmp dword [eax + 0x14], 8
jb 0x438206
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x438216
mov bl, 1
jmp 0x438218
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004037b0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f63f1
mov esp, ebp
pop ebp
ret
Function at 0x438250
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc988
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x525008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.00403840
cmp dword [eax + 0x14], 8
jb 0x438289
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4382db
lea ecx, [ebp - 0x28]
call fcn.00403810
mov dword [ebp - 4], 0
mov edx, ecx
mov ecx, ebx
call fcn.00438720
test al, al
je 0x4382cc
lea ecx, [ebp - 0x28]
call fcn.00403840
cmp dword [eax + 0x14], 8
jb 0x4382c3
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004037b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f63f1
mov esp, ebp
pop ebp
ret
Function at 0x438300
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ffa10
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x525008]
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 eax, ecx
mov dword [ebp - 0x2c], eax
call fcn.00403840
mov esi, eax
cmp dword [esi + 0x14], 8
jb 0x43833f
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x438353
mov al, 1
jmp 0x43845a
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x43835d
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x28]
call fcn.004037c0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00438250
mov ebx, eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004037b0
cmp ebx, 0xffffffff
jne 0x438395
xor al, al
jmp 0x43845a
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x43839f
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x28]
call fcn.004037c0
mov dword [ebp - 4], 1
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.00438180
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004037b0
test bl, bl
je 0x43838e
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4383d8
mov eax, dword [esi]
push eax
call edi
test eax, eax
jne 0x43834c
lea ecx, [ebp - 0x28]
call fcn.00403810
mov dword [ebp - 4], 2
mov edx, ecx
mov ecx, dword [ebp - 0x2c]
call fcn.00438720
test al, al
je 0x43841b
lea ecx, [ebp - 0x28]
call fcn.00403840
cmp dword [eax + 0x14], 8
jb 0x438410
mov eax, dword [eax]
push eax
call edi
test eax, eax
je 0x43841b
mov bl, 1
jmp 0x438449
cmp dword [esi + 0x14], 8
jb 0x438423
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x48]
call fcn.004037c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
mov edx, dword [ebp - 0x30]
call fcn.00438180
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.004037b0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004037b0
mov al, bl
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.004f63f1
mov esp, ebp
pop ebp
ret

Function at 0x438480
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x525008]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
lea eax, [esp + 4]
push esi
push edi
push 0x20c
push 0
push eax
mov esi, edx
mov edi, ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, esi
call fcn.00403840
mov edx, eax
cmp dword [edx + 0x14], 8
jb 0x4384c7
mov edx, dword [edx]
mov ecx, edi
call fcn.00403840
cmp dword [eax + 0x14], 8
jb 0x4384d6
mov eax, dword [eax]
lea ecx, [esp + 0xc]
push ecx
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x438523
xor eax, eax
lea ecx, [esp + 0xc]
mov word [esp + 0x216], ax
call fcn.00403ba0
push eax
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call fcn.00403930
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004f63f1
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f63f1
add esp, 0x210
ret
Function at 0x438e40
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x525008]
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 0x438ea5
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 0x438e80
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x438ea5
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.004f63f1
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004f63f1
add esp, 8
ret 4
Function at 0x43dd60
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x525008]
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 sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x43ddf7
cmp dword [esp + 8], 6
jb 0x43ddf7
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.004f63f1
add esp, 0x118
ret

Function at 0x43de10
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5003b0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x525008]
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.004037c0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.0042e610
mov ecx, eax
call fcn.0042e6d0
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004037b0
push str.crypt32.dll
lea ecx, [ebp - 0x40]
call fcn.004037c0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.0042e610
mov ecx, eax
call fcn.0042e6d0
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004037b0
test ebx, ebx
je 0x43df25
test esi, esi
je 0x43df25
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 0x448220
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, ecx
push esi
push edi
xor edi, edi
or edx, 0x100
mov ecx, edx
mov eax, edx
shr ecx, 7
add edx, edx
and ecx, 1
shr eax, 8
neg ecx
sar ecx, 4
and ecx, 0x7f
movzx esi, word [ebx + eax*2]
shr esi, 4
xor esi, ecx
add edi, dword [ebp + esi*4]
cmp edx, 0x10000
jb 0x448232
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x448270
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, 0x100
xor ebx, ebx
push edi
mov edi, dword [esp + 0x14]
mov ebp, ecx
or edx, esi
add edi, edi
mov ecx, esi
and ecx, edi
mov eax, edx
shr eax, 8
add ecx, esi
add eax, ecx
movzx ecx, word [ebp + eax*2]
mov eax, edx
shr eax, 7
add edx, edx
and eax, 1
shr ecx, 4
neg eax
sar eax, 4
and eax, 0x7f
xor ecx, eax
mov eax, dword [esp + 0x18]
add ebx, dword [eax + ecx*4]
mov ecx, edx
xor ecx, edi
not ecx
and esi, ecx
cmp edx, 0x10000
jb 0x448283
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret

Function at 0x448410
Capabilities:
Encode data using xor

Disassembly:
push ecx
xor eax, eax
mov dword [esp], ecx
push ebp
mov ebp, edx
push edi
lea edi, [eax + 1]
test ebp, ebp
je 0x448457
push ebx
mov ebx, dword [esp + 0x14]
push esi
movzx edx, word [ecx + edi*2]
mov esi, ebx
and esi, 1
shr edx, 4
mov ecx, esi
shr ebx, 1
neg ecx
add edi, edi
sar ecx, 4
or edi, esi
and ecx, 0x7f
xor edx, ecx
mov ecx, dword [esp + 0x1c]
add eax, dword [ecx + edx*4]
mov ecx, dword [esp + 0x10]
sub ebp, 1
jne 0x448427
pop esi
pop ebx
pop edi
pop ebp
pop ecx
ret