joyce8/EMBER2024-capa huggingface dataset:
Function at 0x826840
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
lea eax, [ebx + 0x134]
push edi
lea esi, [ebx + 0x34]
mov dword [esp + 0x14], eax
xor edi, edi
mov ecx, dword [ebx + 0x1c]
mov ebp, edi
and ebp, 0xff
mov al, byte [ecx + ebp + 1]
test al, 3
je 0x826870
mov byte [edi + esi], 2
jmp 0x8268a7
test al, 4
je 0x82687a
mov byte [edi + esi], 0xd
jmp 0x8268a7
mov edx, dword [ebx + 0x240]
push edi
push ebx
call dword [edx + 4]
add esp, 8
cmp eax, 1
jle 0x826893
mov byte [edi + esi], 2
jmp 0x8268a7
mov eax, dword [ebx + 0x1c]
test byte [eax + ebp + 1], 0x17
jne 0x8268a3
mov byte [edi + esi], 0x19
jmp 0x8268a7
mov byte [edi + esi], 1
inc edi
cmp edi, 0x100
jb 0x826857
mov ecx, dword [esp + 0x14]
mov al, 7
mov byte [esi + 0x21], al
mov byte [esi + 0x3d], al
mov byte [esi + 0x3e], al
mov al, 0x10
mov byte [esi + 0x7c], al
mov byte [esi + 0x26], al
mov byte [esi + 0x24], 2
mov byte [esi + 0x5f], 2
mov byte [esi + 0x27], 9
mov byte [esi + 0x2e], 0xf
mov byte [esi + 0x3c], 8
mov byte [esi + 0x23], 0xa
mov byte [esi + 0x3b], 0x15
mov byte [esi + 0x3a], 0x16
mov byte [esi], 0x11
mov byte [esi + 0x5c], 0x12
mov byte [esi + 0x2f], 0x13
mov byte [esi + 0x2a], 0x14
mov byte [esi + 0x40], 0x17
mov byte [esi + 0x60], 0x1a
mov byte [esi + 0x22], 0x20
mov eax, esi
sub ecx, esi
mov edi, 0x100
mov dl, byte [eax]
cmp dl, 2
je 0x82691b
cmp dl, 0xd
je 0x82691b
xor edx, edx
jmp 0x826920
mov edx, 1
mov byte [ecx + eax], dl
inc eax
dec edi
jne 0x82690b
mov al, 0x1d
mov byte [esi + 0x58], al
mov byte [esi + 0x78], al
mov al, 0x1f
pop edi
mov byte [esi + 0x62], 0x1e
mov byte [esi + 0x4e], al
mov byte [esi + 0x6e], al
pop esi
pop ebp
pop ebx
ret

Function at 0x826940
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push ebx
push 0x4000
call fcn.00825200
mov esi, eax
add esp, 8
test esi, esi
jne 0x826961
pop edi
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esp + 0x10]
push ebx
push 0
push eax
call fcn.00827f90
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x826986
push esi
call fcn.00825290
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
ret
push ebp
push 0x4000
push esi
push edi
call fcn.0083ec0c
push ebx
push edi
mov ebp, eax
call fcn.00828000
push 0x8269c0
push ebp
push esi
call fcn.00829330
push esi
call fcn.00825290
add esp, 0x24
pop ebp
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x827cc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push 0x11fd200
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection_1]
mov eax, dword [0x11fd120]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue_1]
test eax, eax
jne 0x827d3b
push 0x4c
push 1
call fcn.0083c765
mov esi, eax
add esp, 8
test esi, esi
jne 0x827d03
push 0x11fd200
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
pop esi
mov al, bl
pop ebx
ret
mov ecx, dword [0x11fd120]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue_1]
mov eax, dword [0x11eea48]
inc eax
lea edx, [esi + 0xc]
mov dword [0x11eea48], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection_1]
lea eax, [esi + 4]
push 0
push eax
call fcn.0082b7f0
add esp, 8
mov byte [esi + 0x3c], 1
push 0x11fd200
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
pop esi
mov al, bl
pop ebx
ret

Function at 0x8281c0
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.0083c33d
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.0083ec0c
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x8282ba
call fcn.0083c33d
cmp dword [eax], 0
je 0x828207
call fcn.0083c33d
mov ebp, dword [eax]
jmp 0x82820a
or ebp, 0xffffffff
call fcn.00827d50
test esi, esi
mov dword [eax], ebp
jne 0x82821f
call fcn.0083c33d
cmp dword [eax], 4
je 0x82826f
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x828252
cmp esi, 0xffffffff
je 0x828294
test al, 6
je 0x828252
call fcn.00827d50
mov ecx, dword [eax]
push ecx
push ebx
call fcn.0082b820
add esp, 4
push eax
push 0x24
push 9
call fcn.008285a0
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x8282b2
test al, 6
je 0x828260
test ah, 2
je 0x8282b2
test esi, esi
jbe 0x8282be
test ah, 2
je 0x8282be
add dword [esp + 0x18], esi
sub edi, esi
call fcn.0083c33d
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.0083ec0c
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x8282ba
jmp 0x8281f4
call fcn.00827d50
mov eax, dword [eax]
push eax
push ebx
call fcn.0082b820
add esp, 4
push eax
push 0x24
push 2
call fcn.008285a0
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x20]
test al, 6
je 0x8282cb
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test ah, 2
je 0x8282d4
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x83eaa4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA_1]
cmp eax, 0xffffffff
jne 0x83eac4
call dword [sym.imp.KERNEL32.dll_GetLastError_1]
push eax
call fcn.0083c2ca
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x83eae7
test byte [esp + 8], 2
je 0x83eae7
call fcn.0083c33d
mov dword [eax], 0xd
call fcn.0083c346
mov dword [eax], 5
jmp 0x83eac0
xor eax, eax
ret
Function at 0x8509e8
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x850a20
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA_1]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0084ea72
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA_1]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0084ea4a
jmp 0x850a2c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x8520d6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x852118
call fcn.00857bcd
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA_1]
cmp eax, edi
je 0x852118
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource_1]
cmp eax, edi
jne 0x85210f
xor eax, eax
jmp 0x852120
push eax
call dword [sym.imp.KERNEL32.dll_LockResource_1]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00852126
pop edi
pop esi
pop ebx
ret 4

Function at 0x8580fd
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection_1]
cmp dword [esp + 0x10], 0
jne 0x85812b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue_1]
test eax, eax
je 0x858149
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00858063
jmp 0x858149
mov eax, dword [esi + 0x14]
test eax, eax
je 0x858149
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00858063
test edi, edi
mov eax, edi
jne 0x858133
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
pop esi
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10002880
Capabilities:
Delete service
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001e138
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1002a008]
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
test esi, esi
jne 0x100028b9
lea eax, [ecx + 0x57]
jmp 0x10002a0d
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x100028d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10002a0d
push 0xf01ff
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x100028f3
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push 0x22
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x28]
push str.SYSTEMCurrentControlSetServices_
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.10006100
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push esi
call fcn.10006250
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x34]
push ecx
push 0xf003f
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100029a6
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x2c]
push 4
push eax
push 4
push 0
push 0x100226a8
push dword [ebp - 0x34]
mov dword [ebp - 0x2c], 1
call esi
push 4
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 4
push eax
push 4
push 0
push 0x10022690
push dword [ebp - 0x34]
call esi
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x100029b3
push edi
call esi
push ebx
call esi
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x100029f9
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100029ef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100029ef
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1001ca7a
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
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.1001ca39
mov esp, ebp
pop ebp
ret
Function at 0x1000dc30
Capabilities:
Extract resource via kernel32 functions
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1002a008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 8
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x14], eax
mov ebx, edx
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov byte [ebp - 0xd], 1
jb 0x1000dc60
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x1000dd3a
cmp dword [edi + 0x14], 8
jb 0x1000dc79
mov edi, dword [edi]
mov eax, dword [ebp - 0x14]
push edi
movzx eax, ax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x1000dd3a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000dd3a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x1000dd3a
cmp dword [ebx + 0x14], 8
jb 0x1000dcbf
mov ebx, dword [ebx]
push 0
push 0x80000080
push 2
push 0
push 0
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000dd3a
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push edi
push dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x1000dd01
cmp edi, dword [ebp - 8]
je 0x1000dd05
mov byte [ebp - 0xd], 0
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
movzx ebx, byte [ebp - 0xd]
xor ecx, ecx
cmp eax, edi
push esi
cmovne ebx, ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001ca39
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001ca39
mov esp, ebp
pop ebp
ret
Function at 0x1000e0e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001f3e8
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x1002a008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x23c], esi
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x240], esi
mov dword [ebp - 0x220], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
push 0x20c
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], 1
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x1000e1ae
xor eax, eax
lea ecx, [ebp - 0x21c]
mov word [ebp - 0x12], ax
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000e190
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10006100
cmp dword [esi + 0x10], 0
je 0x1000e33e
push 4
xor eax, eax
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
lea ecx, [ebp - 0x238]
push str.Temp
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
call fcn.10006100
mov dword [ebp - 4], 1
lea eax, [ebp - 0x238]
push eax
mov edx, esi
lea ecx, [ebp - 0x258]
call fcn.10014e40
add esp, 4
mov edi, eax
mov byte [ebp - 4], 2
cmp esi, edi
je 0x1000e24d
mov ecx, esi
call fcn.100060a0
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x244]
cmp edx, 8
jb 0x1000e293
mov ecx, dword [ebp - 0x258]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000e289
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000e289
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1001ca7a
add esp, 8
xor eax, eax
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 7
mov word [ebp - 0x258], ax
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x1000e2f5
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000e2eb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000e2eb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1001ca7a
add esp, 8
xor eax, eax
mov dword [ebp - 0x228], 0
mov ecx, esi
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
call fcn.10013df0
test al, al
jne 0x1000e33e
mov ecx, esi
call fcn.10014320
test al, al
jne 0x1000e33e
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [esi + 0x10], 0
jb 0x1000e339
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001ca39
mov esp, ebp
pop ebp
ret
Function at 0x1000e8e0
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov eax, dword [esi + 4]
test eax, eax
jne 0x1000e903
push str.Ktmw32.dll
call edi
mov dword [esi + 4], eax
test eax, eax
je 0x1000ea13
cmp dword [esi + 8], 0
jne 0x1000e913
push str.Advapi32.dll
call edi
mov dword [esi + 8], eax
cmp dword [esi + 0xc], 0
jne 0x1000e923
push 0x10023a70
call edi
mov dword [esi + 0xc], eax
cmp dword [esi + 8], 0
je 0x1000ea13
cmp dword [esi + 0xc], 0
je 0x1000ea13
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateTransaction
push dword [esi + 4]
call edi
mov dword [esi + 0x10], eax
test eax, eax
je 0x1000ea13
push str.RollbackTransaction
push dword [esi + 4]
call edi
mov dword [esi + 0x14], eax
test eax, eax
je 0x1000ea13
push str.CommitTransaction
push dword [esi + 4]
call edi
mov dword [esi + 0x18], eax
test eax, eax
je 0x1000ea13
push str.RegCreateKeyTransactedW
push dword [esi + 8]
call edi
push str.RegDeleteKeyTransactedW
mov dword [esi + 0x1c], eax
push dword [esi + 8]
call edi
push str.RegOpenKeyTransactedW
mov dword [esi + 0x20], eax
push dword [esi + 8]
call edi
push str.DeleteFileTransactedW
mov dword [esi + 0x24], eax
push dword [esi + 0xc]
call edi
push str.CopyFileTransactedW
mov dword [esi + 0x28], eax
push dword [esi + 0xc]
call edi
push str.CreateDirectoryTransactedW
mov dword [esi + 0x2c], eax
push dword [esi + 0xc]
call edi
push str.MoveFileTransactedW
mov dword [esi + 0x30], eax
push dword [esi + 0xc]
call edi
push str.CreateFileTransactedW
mov dword [esi + 0x34], eax
push dword [esi + 0xc]
call edi
push str.RemoveDirectoryTransactedW
mov dword [esi + 0x38], eax
push dword [esi + 0xc]
call edi
push str.SetFileAttributesTransactedW
mov dword [esi + 0x3c], eax
push dword [esi + 0xc]
call edi
push 0
push 0
push 0
push 0
push 0
push 0
mov dword [esi + 0x40], eax
mov eax, dword [esi + 0x10]
push 0
call eax
mov dword [esi], eax
pop edi
pop esi
ret 0x10
Function at 0x1000ef20
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001f4e8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1002a008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi], 0
jne 0x1000f058
push 0xc
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x24]
push str.wintrust.dll
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
call fcn.10006100
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
call fcn.10015ac0
mov ecx, eax
call fcn.10015b80
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
cmp edx, 8
jb 0x1000efe0
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000efd6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000efd6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1001ca7a
add esp, 8
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
test ebx, ebx
jne 0x1000f011
mov dword [edi + 0x18], 3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminCalcHashFromFileHandle
push ebx
call esi
push str.CryptCATAdminAcquireContext
push ebx
mov dword [edi], eax
call esi
push str.CryptCATAdminEnumCatalogFromHash
push ebx
mov dword [edi + 4], eax
call esi
push str.CryptCATCatalogInfoFromContext
push ebx
mov dword [edi + 8], eax
call esi
push str.CryptCATAdminReleaseContext
push ebx
mov dword [edi + 0xc], eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push ebx
mov dword [edi + 0x10], eax
call esi
mov dword [edi + 0x14], 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 0x100151e0
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x1002a008]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, ecx
push pe_nt_image_headers32
push 0
lea eax, [esi + 4]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10015322
cmp dword [esi + 4], 6
push edi
ja 0x10015236
jne 0x100152be
cmp dword [esi + 8], 2
jb 0x100152be
push 0x10024028
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x100152be
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x100152be
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100152be
movups xmm0, xmmword [0x10024070]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x10024080]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x100152be
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x100152be
cmp word [edi + 2], ax
jbe 0x100152be
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push 0x10023ff0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x10024004
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x10015309
push pe_nt_image_headers32
lea eax, [esp + 0x10]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x10015309
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.1001ca39
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.1001ca39
add esp, 0x140
ret

Function at 0x10017980
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x1002a008]
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 0x10017a02
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 0x10017a02
test ecx, ecx
je 0x100179fe
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x100179c0
xor eax, eax
jmp 0x10017a07
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x10017a11
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001ca39
add esp, 0xc
ret 0xc
Function at 0x10017dd0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10020458
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x1002a008]
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, edx
mov esi, ecx
and edi, 0xffffb1af
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10017e0f
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push eax
call ebx
test eax, eax
je 0x10017e24
mov al, 1
jmp 0x10017ec9
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.10018be0
test al, al
je 0x10017e6e
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
test eax, eax
je 0x10017e6e
mov bl, 1
jmp 0x10017e70
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10017eb3
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10017ea9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10017ea9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1001ca7a
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov al, bl
mov dword [ebp - 0x14], 7
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.1001ca39
mov esp, ebp
pop ebp
ret