joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10035d40
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], 0
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x10035d60
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_UnregisterWaitEx]
test eax, eax
je 0x10035d59
mov eax, dword [esi + 0x18]
test eax, eax
je 0x10035d9e
mov byte [eax + 5], 0
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x18], 0
test ecx, ecx
je 0x10035d9e
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x10035d9e
push ecx
call fcn.1011a1ea
add esp, 4
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.10008af0
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.100074c0
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10036150
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ecx]
mov ecx, dword [ecx + 4]
sub ecx, edi
sar ecx, 2
test ecx, ecx
je 0x100361be
push ebx
push esi
mov ebx, ecx
mov eax, dword [edi]
lea edi, [edi + 4]
movzx esi, cl
movzx edx, al
xor esi, edx
shr ecx, 8
mov dword [ebp - 4], eax
movzx eax, ah
xor ecx, dword [esi*4 + 0x10178730]
movzx edx, cl
xor edx, eax
shr ecx, 8
movzx eax, byte [ebp - 2]
xor ecx, dword [edx*4 + 0x10178730]
movzx edx, cl
xor edx, eax
shr ecx, 8
movzx eax, byte [ebp - 1]
xor ecx, dword [edx*4 + 0x10178730]
movzx edx, cl
xor edx, eax
shr ecx, 8
xor ecx, dword [edx*4 + 0x10178730]
dec ebx
jne 0x10036167
pop esi
pop ebx
mov eax, ecx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10036860
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
mov eax, dword [0x1018d0d0]
xor eax, esp
mov dword [esp + 0x408], eax
push ebx
mov ebx, dword [0x1018e6e8]
mov dword [esp + 4], 0
mov dword [esp + 4], ebx
push esi
push edi
cmp ebx, 0xffffffff
jne 0x100368cd
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ebx, eax
mov dword [esp + 0xc], ebx
cmp ebx, 0xffffffff
je 0x10036935
mov ecx, ebx
mov edx, 0x1018e6e8
or eax, 0xffffffff
lock cmpxchg dword [edx], ecx
cmp eax, 0xffffffff
je 0x100368cd
push ebx
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov ebx, dword [0x1018e6e8]
mov dword [esp + 0xc], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x10036935
push 0x400
push eax
lea eax, [esp + 0x18]
push eax
call fcn.1011a400
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x400
call fcn.101160b2
add esp, 4
lea esi, [esp + 0x10]
mov ebx, eax
mov ecx, 0x100
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x414]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret
call fcn.10023650
int3
Function at 0x10036940
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
mov eax, dword [0x1018d0d0]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [0x1018e6e8]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], 0
push edi
mov ecx, 0x100
mov dword [esp + 0xc], eax
mov esi, ebx
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.1011bfcc
add esp, 4
mov edi, 0x100
jmp 0x100369a0
mov esi, dword [0x1019436c]
xor dl, dl
test esi, esi
jle 0x100369d8
lea esp, [esp]
mov ecx, dword [esp + esi*4 + 0x10]
test ecx, ecx
je 0x100369d3
mov eax, dword [esi*4 + 0x10194370]
test eax, eax
je 0x100369d3
push ecx
mov dword [esp + esi*4 + 0x14], 0
call eax
add esp, 4
mov dl, 1
dec esi
test esi, esi
jg 0x100369b0
dec edi
test edi, edi
jle 0x100369e1
test dl, dl
jne 0x100369a0
push 0
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret

Function at 0x100392f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014622b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1018d0d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x101527bc
lea ecx, [esi + 0x10]
mov dword [esi + 4], 0
push 0xffffffffffffffff
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
push 0
push dword [ebp + 8]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.10001f90
mov ebx, dword [ebp + 0xc]
mov eax, 0x2aaaaaab
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov ecx, dword [ebx + 4]
sub ecx, dword [ebx]
imul ecx
lea ecx, [esi + 0x28]
mov dword [ebp - 4], 0
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
call fcn.1000ebd0
test al, al
je 0x100393b2
push dword [ebp + 8]
lea eax, [ebp + 0xb]
push eax
push dword [esi + 0x28]
push dword [ebx + 4]
push dword [ebx]
call fcn.10022ed0
add esp, 0x14
mov dword [esi + 0x2c], eax
mov dword [esi + 0x38], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1003c550
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push 0
push dword [ebp + 8]
mov dword [ebp - 4], 0x34
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x1003c5e8
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101160b2
add esp, 4
mov esi, eax
push esi
push edi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1003c5df
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x10178f30
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1003c5df
mov edx, dword [ebp - 8]
pop edi
pop esi
movzx eax, byte [edx + 8]
mov cl, byte [edx + 0xa]
and al, 0xf
shl cl, 4
add cl, al
movzx eax, byte [edx + 0xe]
mov byte [ebp + 0xa], al
mov ax, word [edx + 0xc]
mov byte [ebp + 0xb], cl
mov word [ebp + 8], ax
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4
push esi
call fcn.1011bfcc
add esp, 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x1003f090
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1018d0d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x214], eax
push esi
xor esi, esi
push esi
lea ecx, [ebx + 0x300]
call fcn.10053ec0
test eax, eax
je 0x1003f19c
push edi
lea eax, [ebx + 0x320]
push eax
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.1011c1a2
push 0x10152ef0
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.1011c136
add esp, 0x18
lea eax, [ebp - 0x210]
push esi
push 0x80
push 4
push esi
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1003f187
add ebx, 0x52c
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 2
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 0x214]
push 0xc
add eax, 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1003f179
push esi
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 0x214]
push 0x8f8
push dword [eax]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov ecx, 1
cmovne esi, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret 4
Function at 0x100426a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10146c63
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1018d0d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 4]
call fcn.10001580
mov ecx, dword [ebp + 8]
mov dword [esi], 0x10154730
push 0xffffffffffffffff
mov dword [ebp - 4], 0
mov eax, dword [ecx]
mov dword [esi + 8], eax
mov eax, dword [ecx + 4]
lea ecx, [esi + 0x14]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [esi + 0x10], eax
xor eax, eax
push eax
push dword [ebp + 0x10]
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
call fcn.1000bf70
mov eax, dword [ebp + 0x14]
mov byte [ebp - 4], 1
mov eax, dword [eax]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x18]
mov al, byte [eax]
mov byte [esi + 0x30], al
mov eax, dword [esi + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x10045c40
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x1018d0d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x62c], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
mov dword [ebp - 0x628], ebx
call fcn.1011a400
add esp, 0xc
test ebx, ebx
je 0x10045db5
lea eax, [ebp - 0x214]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x10045db5
mov eax, dword [0x10179104]
xor ebx, ebx
push esi
mov dword [ebp - 0xc], eax
lea esi, [ebp - 0x214]
mov ax, word [0x10179108]
push edi
mov word [ebp - 8], ax
mov ax, word [esi]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x624]
push 0x104
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x10045d85
lea edi, [ebp - 0x624]
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x10045cf0
sub edi, ecx
sar edi, 1
cmp edi, 0x104
jae 0x10045d85
push edi
lea eax, [ebp - 0x624]
push eax
push dword [ebp - 0x628]
call fcn.1011cb35
add esp, 0xc
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
je 0x10045d85
mov eax, dword [ebp - 0x628]
lea ecx, [eax + edi*2]
push ecx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x41c]
push 0x10153cec
push eax
call fcn.100425b0
add esp, 0x10
cmp word [ebp - 0x41c], 0
jne 0x10045d5a
xor ecx, ecx
jmp 0x10045d72
lea ecx, [ebp - 0x41c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10045d63
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x62c]
lea eax, [ebp - 0x41c]
push eax
call fcn.1000c2b0
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10045d85
test ebx, ebx
jne 0x10045d9d
cmp word [esi], bx
jne 0x10045cc2
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret 8
Function at 0x10047360
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.1011bf70
mov eax, dword [0x1018d0d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
push 0xffe
push eax
mov word [ebp - 0x1004], ax
mov edi, ecx
lea eax, [ebp - 0x1002]
push eax
call fcn.1011a400
add esp, 0xc
lea eax, [ebp - 0x1004]
push 0x400
push eax
push str.CHROME_DLL_PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x100473d8
push 1
push 0x10000000
push esi
mov ecx, edi
call fcn.100522d0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret 4
cmp word [ebp - 0x1004], 0
jne 0x100473e6
xor ecx, ecx
jmp 0x100473ff
lea ecx, [ebp - 0x1004]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100473f0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x1004]
mov ecx, esi
push eax
call fcn.1000c2b0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret 4
Function at 0x10047430
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014760b
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x1018d0d0]
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, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], 0x10168270
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
xor edi, edi
mov dword [ebp - 4], 0
xor bl, bl
test esi, esi
je 0x100474b4
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x224], esi
call fcn.10048160
mov bl, al
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.1011a400
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push esi
push dword [ebp + 0xc]
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x10047528
cmp word [ebp - 0x218], di
jne 0x100474f8
xor ecx, ecx
jmp 0x10047510
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10047501
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x22c]
lea eax, [ebp - 0x218]
push eax
call fcn.1000c2b0
mov edi, 1
test bl, bl
je 0x10047568
mov ecx, dword [ebp - 0x21c]
mov dword [ebp - 0x22c], 0
test ecx, ecx
je 0x1004755e
mov eax, dword [ecx]
call dword [eax]
push dword [ebp - 0x21c]
call fcn.1011a1ea
add esp, 4
mov dword [ebp - 0x21c], 0
jmp 0x10047568
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
test esi, esi
je 0x10047585
mov eax, dword [ebp - 0x228]
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x224], 0
call dword [eax + 4]
mov ecx, dword [ebp - 0x220]
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x228], 0x10168270
test ecx, ecx
je 0x100475bb
test eax, eax
je 0x100475b1
push ecx
push eax
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x220], 0
test eax, eax
je 0x100475d0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x224], 0
push dword [ebp - 0x21c]
call fcn.1011a1ea
add esp, 4
mov eax, edi
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.1011a3e5
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10047ec0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014775b
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x1018d0d0]
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, dword [ebp + 0xc]
mov dword [ebp - 0x240], 0
push 0
push 2
mov dword [ebp - 4], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, dword [ebp - 0x240]
mov edi, eax
cmp esi, edi
je 0x10047f81
test esi, esi
je 0x10047f52
cmp esi, 0xffffffff
je 0x10047f52
call fcn.10006540
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x240]
call fcn.10013580
push dword [ebp - 0x240]
call fcn.10013480
add esp, 0x14
xor esi, esi
mov dword [ebp - 0x240], esi
test edi, edi
je 0x10047f81
cmp edi, 0xffffffff
je 0x10047f81
mov dword [ebp - 0x240], edi
call fcn.10006540
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
call fcn.100134c0
mov esi, dword [ebp - 0x240]
add esp, 0x10
test esi, esi
je 0x10047fe4
cmp esi, 0xffffffff
je 0x10047fe4
push 0x228
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.1011a400
add esp, 0xc
mov dword [ebp - 0x23c], 0x22c
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x10047fde
mov esi, dword [ebp + 8]
mov edi, edi
cmp dword [ebp - 0x234], esi
je 0x1004803e
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x240]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10047fc0
mov esi, dword [ebp - 0x240]
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10048020
cmp esi, 0xffffffff
je 0x10048020
call fcn.10006540
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x240]
call fcn.10013580
push dword [ebp - 0x240]
call fcn.10013480
add esp, 0x14
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.1011a3e5
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x1004804a
mov eax, dword [ebp - 0x224]
mov dword [ebx], eax
mov esi, dword [ebp - 0x240]
mov bl, 1
jmp 0x10047fe6
Function at 0x10048e00
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101478f6
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1018d0d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0
call fcn.10010de0
xor eax, eax
mov dword [ebp - 0x14], 7
add esp, 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
mov eax, dword [0x1018f1b8]
test al, 1
jne 0x10048e7e
or eax, 1
mov dword [0x1018f1b8], eax
mov ecx, 0x1018f198
mov byte [ebp - 4], 1
call fcn.10042790
push 0x10151030
call fcn.1011a62e
add esp, 4
mov byte [ebp - 4], 0
lea eax, [ebp - 0x28]
mov ecx, 0x1018f198
push eax
call fcn.10047360
test eax, eax
jne 0x10048f15
push 5
push 0x10153c9c
lea ecx, [ebp - 0x28]
call fcn.1000c1d0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0xc
push str.safehost.log
lea ecx, [ebp - 0x28]
call fcn.1000c1d0
lea ecx, [ebp - 0x38]
call fcn.1000aa10
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x38], 1
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x2c], 0
call fcn.1000aa30
add esp, 4
lea ecx, [esi + 0x300]
push 3
call fcn.10053ec0
test eax, eax
je 0x10048f0b
push 0
jmp 0x10048f0d
push 1
call fcn.1000af30
add esp, 4
cmp dword [ebp - 0x14], 8
jb 0x10048f26
push dword [ebp - 0x28]
call fcn.1011a1ea
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret
Function at 0x10049700
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [esi], 0
jne 0x10049720
push str.wintrust.dll
call edi
mov dword [esi], eax
test eax, eax
je 0x10049849
cmp dword [esi + 4], 0
jne 0x10049738
push str.Crypt32.dll
call edi
mov dword [esi + 4], eax
test eax, eax
je 0x10049849
cmp dword [esi + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x10049758
push str.CryptCATAdminAcquireContext
push dword [esi]
call edi
mov dword [esi + 8], eax
test eax, eax
je 0x10049849
cmp dword [esi + 0xc], 0
jne 0x10049772
push str.CryptCATAdminReleaseContext
push dword [esi]
call edi
mov dword [esi + 0xc], eax
test eax, eax
je 0x10049849
cmp dword [esi + 0x14], 0
jne 0x1004978c
push str.CryptCATCatalogInfoFromContext
push dword [esi]
call edi
mov dword [esi + 0x14], eax
test eax, eax
je 0x10049849
cmp dword [esi + 0x10], 0
jne 0x100497a6
push str.CryptCATAdminReleaseCatalogContext
push dword [esi]
call edi
mov dword [esi + 0x10], eax
test eax, eax
je 0x10049849
cmp dword [esi + 0x18], 0
jne 0x100497c0
push str.CryptCATAdminCalcHashFromFileHandle
push dword [esi]
call edi
mov dword [esi + 0x18], eax
test eax, eax
je 0x10049849
cmp dword [esi + 0x1c], 0
jne 0x100497d6
push str.CryptCATAdminEnumCatalogFromHash
push dword [esi]
call edi
mov dword [esi + 0x1c], eax
test eax, eax
je 0x10049849
cmp dword [esi + 0x20], 0
jne 0x100497ec
push str.WinVerifyTrustEx
push dword [esi]
call edi
mov dword [esi + 0x20], eax
test eax, eax
je 0x10049849
cmp dword [esi + 0x24], 0
jne 0x10049802
push str.WTHelperProvDataFromStateData
push dword [esi]
call edi
mov dword [esi + 0x24], eax
test eax, eax
je 0x10049849
cmp dword [esi + 0x28], 0
jne 0x10049818
push str.WTHelperGetProvSignerFromChain
push dword [esi]
call edi
mov dword [esi + 0x28], eax
test eax, eax
je 0x10049849
cmp dword [esi + 0x2c], 0
jne 0x1004982e
push str.WTHelperGetProvCertFromChain
push dword [esi]
call edi
mov dword [esi + 0x2c], eax
test eax, eax
je 0x10049849
cmp dword [esi + 0x30], 0
jne 0x100498c1
push str.CertNameToStrW
push dword [esi + 4]
call edi
mov dword [esi + 0x30], eax
test eax, eax
jne 0x100498c1
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
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 dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
test eax, eax
je 0x100498ab
push eax
call edi
mov dword [esi], 0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x100498bc
push ecx
call edi
mov dword [esi + 4], 0
pop edi
xor eax, eax
pop esi
ret
push 0x40
lea eax, [esi + 0x34]
push 0
push eax
call fcn.1011a400
push 0x104
lea eax, [esi + 0x74]
push 0
push eax
call fcn.1011a400
add esp, 0x18
mov ecx, esi
call fcn.1004e1e0
pop edi
mov eax, 1
pop esi
ret
Function at 0x1004e1e0
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1220
call fcn.1011bf70
mov eax, dword [0x1018d0d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov dword [ebp - 0x1218], ecx
push 0x1000
lea eax, [ebp - 0x120c]
mov dword [ebp - 0x1210], esi
push esi
push eax
call fcn.1011a400
add esp, 0xc
lea eax, [ebp - 0x1220]
push eax
push 0x1000
lea eax, [ebp - 0x120c]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x1004e246
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1220]
shr eax, 2
push edi
xor edi, edi
mov dword [ebp - 0x121c], eax
test eax, eax
je 0x1004e33c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1004e270
mov eax, dword [ebp + edi*4 - 0x120c]
test eax, eax
je 0x1004e328
cmp eax, 8
jbe 0x1004e328
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1004e328
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x1004e325
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1011ce7e
lea eax, [ebp - 0x20c]
push str.windowsexplorer.exe
push eax
call fcn.1011c8a2
add esp, 0x10
test eax, eax
je 0x1004e325
lea eax, [ebp - 0x1214]
push eax
push 0xf00ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1004e325
mov edx, dword [ebp - 0x1218]
xor ecx, ecx
lea eax, [edx + 0x34]
cmp dword [eax], 0
je 0x1004e311
inc ecx
add eax, 4
cmp ecx, 0x10
jb 0x1004e301
jmp 0x1004e325
mov eax, dword [ebp - 0x1214]
mov dword [edx + ecx*4 + 0x34], eax
mov dword [ebp - 0x1210], 1
push esi
call ebx
inc edi
cmp edi, dword [ebp - 0x121c]
jb 0x1004e270
mov esi, dword [ebp - 0x1210]
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret

Function at 0x1004e350
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1004e3c1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x1004e38f
cmp eax, 2
jne 0x1004e3ab
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x1004e3bb
test ecx, ecx
je 0x1004e3b6
test cl, 1
jne 0x1004e3ab
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x1004e3bb
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc