joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008e80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x10008ea0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esp, ebp
pop ebp
ret

Function at 0x100094d0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x100d9180]
xor eax, ebp
mov dword [ebp - 4], eax
movaps xmm1, xmmword [0x100bd9a0]
xor eax, eax
movaps xmm0, xmmword [0x100bda40]
movd ecx, xmm1
movups xmmword [ebp - 0x18], xmm0
mov dword [ebp - 8], 0x464a46
movsx ecx, cl
movups xmmword [ebp - 0x28], xmm1
movd xmm0, ecx
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm1, xmm0, 0
nop word [eax + eax]
movups xmm0, xmmword [ebp + eax - 0x27]
xorps xmm0, xmm1
movups xmmword [ebp + eax - 0x27], xmm0
add eax, 0x10
cmp eax, 0x20
jb 0x10009520
cmp eax, 0x22
jae 0x1000954d
nop word [eax + eax]
mov cl, byte [ebp - 0x28]
xor byte [ebp + eax - 0x27], cl
inc eax
cmp eax, 0x22
jb 0x10009540
push esi
push 0
push 0x80
push 4
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x27]
mov byte [ebp - 5], 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
push 0x4b0
push 0x100d7010
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1006638a
mov esp, ebp
pop ebp
ret

Function at 0x10009690
Capabilities:
Create process on windows
Encode data using xor
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x100d9180]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.10068bc0
add esp, 0xc
lea eax, [ebp - 0x108]
push 0
push 0x29
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10068bc0
movaps xmm0, xmmword [0x100bda60]
add esp, 0xc
movups xmmword [ebp - 0x220], xmm0
mov byte [ebp - 0x210], 0
xor ecx, ecx
nop dword [eax]
mov al, byte [ebp - 0x220]
xor byte [ebp + ecx - 0x21f], al
inc ecx
cmp ecx, 0xf
jb 0x10009700
lea eax, [ebp - 0x108]
mov byte [ebp - 0x210], 0
push eax
lea eax, [ebp - 0x21f]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.100094a0
xorps xmm0, xmm0
mov dword [ebp - 0x254], 0
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x244], 0
add esp, 0xc
mov dword [ebp - 0x24c], eax
movlpd qword [ebp - 0x23c], xmm0
mov cl, 0x20
movlpd qword [ebp - 0x234], xmm0
xor eax, eax
movlpd qword [ebp - 0x22c], xmm0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x25c], 0x3c
mov dword [ebp - 0x258], 0x40
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x240], 5
mov dword [ebp - 0x220], 0x45540220
mov dword [ebp - 0x21c], 0x50005453
mov dword [ebp - 0x218], 0x4d415241
mov word [ebp - 0x214], 2
nop
xor byte [ebp + eax - 0x21f], cl
inc eax
cmp eax, 0xc
jae 0x100097e5
mov cl, byte [ebp - 0x220]
jmp 0x100097d0
lea eax, [ebp - 0x21f]
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006638a
mov esp, ebp
pop ebp
ret
Function at 0x1000ac10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x100efaa4], 0
jne 0x1000ac53
push dword [0x100efaa8]
mov byte [0x100efaa4], 1
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 4]
push eax
push 0
push 3
push 0x1000b220
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x100efaa8], eax
mov esp, ebp
pop ebp
ret

Function at 0x1000ac60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.10015150
test al, al
je 0x1000ad21
call fcn.10011fb0
test al, al
je 0x1000ad21
cmp byte [ebp + 8], 0
jne 0x1000acc8
lea eax, [ebp - 0xc]
push eax
call fcn.1008e0b6
push 0x19f105
call fcn.10011470
mov ecx, 0xffffff88
add esp, 8
sub ecx, dword [ebp - 0xc]
add eax, ecx
test eax, eax
jle 0x1000acc8
imul eax, eax, 0x3e8
push 0
push eax
push 0x378
call fcn.1000bce0
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov esp, ebp
pop ebp
ret
cmp byte [0x100efaa4], 0
je 0x1000acda
push 0
push 0x2710
jmp 0x1000acb3
push 0x378
call fcn.1000bce0
push eax
call dword [sym.imp.USER32.dll_KillTimer]
push dword [0x100efaa8]
mov byte [0x100efaa4], 1
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 4]
push eax
push 0
push 2
push 0x1000b220
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x100efaa8], eax
mov esp, ebp
pop ebp
ret
Function at 0x1000bda0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x100d9180]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov dword [ebp - 0x4c], 0x41494a26
mov cl, 0x26
mov dword [ebp - 0x48], 0x4a420379
mov dword [ebp - 0x44], 0x525e5208
xor eax, eax
mov byte [ebp - 0x40], 0
xor byte [ebp + eax - 0x4b], cl
inc eax
cmp eax, 0xb
jae 0x1000bde4
mov cl, byte [ebp - 0x4c]
jmp 0x1000bdd5
push edx
lea eax, [ebp - 0x4b]
mov byte [ebp - 0x40], 0
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.1000bc60
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [0x100efab4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006638a
mov esp, ebp
pop ebp
ret

Function at 0x10014a90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov byte [0x100efac1], 0
call fcn.100117c0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x10014ad0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x100182f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push 1
push 0x10018320
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret

Function at 0x1002b080
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x1002b0a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
ret

Function at 0x1002e630
Capabilities:
Encode data using xor

Disassembly:
mov edx, ecx
push esi
mov esi, 3
lea eax, [edx + 2]
nop dword [eax + eax]
movzx ecx, byte [edx]
lea eax, [eax + 5]
xor byte [eax - 6], cl
movzx ecx, byte [edx]
xor byte [eax - 5], cl
movzx ecx, byte [edx]
xor byte [eax - 4], cl
movzx ecx, byte [edx]
xor byte [eax - 3], cl
movzx ecx, byte [edx]
xor byte [eax - 2], cl
sub esi, 1
jne 0x1002e640
pop esi
mov byte [edx + 0x10], 0
lea eax, [edx + 1]
ret

Function at 0x1002fb00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0x1002a360
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret

Function at 0x10032fe0
Capabilities:
Create process on windows

Disassembly:
push 0
push 0
push str._c_net_stop_w32time__w32tm__config__syncfromflags:manual__manualpeerlist:_0.it.pool.ntp.org_1.it.pool.ntp.org_2.it.pool.ntp.org_3.it.pool.ntp.org___net_start_w32time__w32tm__config__update__w32tm__resync__rediscover
push 0x100bdee0
push str.runas
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret
Function at 0x10033400
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x100d9180]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov bh, 0x56
mov byte [ebp - 8], 0
mov dl, 0x33
mov byte [ebp - 0x10], bh
mov al, 5
mov byte [ebp - 8], 0
mov ah, 0x26
mov dword [ebp - 0x20], 0x25321c57
mov cl, 0x3a
mov dword [ebp - 0x1c], 0x643b3239
mov bl, dl
mov dword [ebp - 0x18], 0x3b337965
xor cl, bh
mov word [ebp - 0x14], 0x3b
mov ch, 0x13
mov byte [ebp - 0xe], cl
mov dh, 0x2e
xor al, bh
xor ah, bh
mov byte [ebp - 0xf], al
xor dl, bh
mov byte [ebp - 0xb], ah
xor bl, bh
mov byte [ebp - 0xd], dl
xor ch, bh
mov byte [ebp - 0xc], bl
xor dh, bh
mov byte [ebp - 0xa], ch
mov byte [ebp - 9], dh
mov cl, 0x57
xor eax, eax
nop
xor byte [ebp + eax - 0x1f], cl
inc eax
cmp eax, 0xc
jae 0x1003347f
mov cl, byte [ebp - 0x20]
jmp 0x10033470
lea eax, [ebp - 0xf]
mov byte [ebp - 0x13], 0
push eax
lea eax, [ebp - 0x1f]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100efc18], eax
mov cl, 0x35
mov byte [ebp - 0x10], 5
mov al, 0x34
xor al, byte [ebp - 0x10]
mov ah, 0x3c
mov byte [ebp - 0xf], al
mov dh, ah
mov al, byte [ebp - 0x10]
mov dl, 0x3d
xor ah, al
mov byte [ebp - 7], 0
mov ch, 0x32
mov byte [ebp - 0xb], ah
mov bl, 0x36
mov byte [ebp - 7], 0
mov bh, 0x37
xor cl, al
xor dl, al
mov byte [ebp - 0xe], cl
xor bl, al
mov byte [ebp - 0xd], dl
xor ch, al
mov byte [ebp - 0xc], bl
xor dh, al
mov byte [ebp - 0xa], ch
xor bh, al
mov byte [ebp - 9], dh
lea eax, [ebp - 0xf]
mov byte [ebp - 8], bh
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntA]
mov ecx, dword [ebp - 4]
mov dword [0x100efc1c], eax
xor ecx, ebp
mov eax, dword [0x100efa04]
pop ebx
mov dword [eax*8 + 0x100ef988], 0x100efc1c
mov dword [eax*8 + 0x100ef98c], 0x100331a0
inc eax
mov dword [0x100efa04], eax
mov al, 1
call fcn.1006638a
mov esp, ebp
pop ebp
ret
Function at 0x10048750
Capabilities:
Allocate or change rwx memory
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xe64]
test eax, eax
je 0x1004877a
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [esi + 0xe64], 0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10048897
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x10048890
push 0x40
push 0x1000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi + 0xe64], eax
test eax, eax
je 0x10048890
push 0
lea ecx, [ebp + 8]
push ecx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10048890
cmp dword [ebp + 8], ebx
jne 0x10048890
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.10048a60
test al, al
je 0x10048897
movzx eax, word [esi + 0x4e]
lea edx, [esi + 0x154]
mov ebx, eax
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x3c]
lea ecx, [ecx + 0x1f]
lea ecx, [eax + ecx*8]
mov eax, dword [esi + 0xe64]
add eax, ecx
mov dword [esi + 0xb40], ecx
mov dword [esi + 0xb44], eax
mov eax, dword [edx]
test eax, eax
jne 0x1004883f
mov eax, dword [esi + 0x14c]
sub eax, ecx
xor edi, edi
mov dword [esi + 0xb48], eax
xor eax, eax
cmp ax, bx
jae 0x1004887c
lea ecx, [esi + 0xb50]
mov eax, dword [edx]
lea edx, [edx + 0x28]
mov dword [ecx - 4], eax
lea ecx, [ecx + 0xc]
mov eax, dword [edx - 0x28]
inc edi
add eax, dword [esi + 0xe64]
mov dword [ecx - 0xc], eax
mov eax, dword [edx - 0x2c]
mov dword [ecx - 8], eax
movzx eax, word [esi + 0x4e]
cmp edi, eax
jl 0x10048856
mov ecx, esi
call fcn.10048b30
test al, al
je 0x10048897
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 4
Function at 0x10048a60
Capabilities:
Parse pe header

Disassembly:
push ebx
mov ebx, ecx
push esi
push edi
mov edx, dword [ebx + 0xe64]
movups xmm0, xmmword [edx]
lea eax, [edx + 0x40]
movups xmmword [ebx], xmm0
movups xmm0, xmmword [edx + 0x10]
movups xmmword [ebx + 0x10], xmm0
movups xmm0, xmmword [edx + 0x20]
movups xmmword [ebx + 0x20], xmm0
movups xmm0, xmmword [edx + 0x30]
mov dword [ebx + 0x40], eax
movups xmmword [ebx + 0x30], xmm0
mov ecx, dword [ebx + 0x3c]
lea eax, [ecx - 0x40]
mov dword [ebx + 0x44], eax
lea esi, [ecx + edx]
lea eax, [ebx + 0x48]
mov ecx, 0x3e
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x5a4d
cmp word [ebx], cx
jne 0x10048aff
cmp dword [eax], 0x4550
jne 0x10048aff
cmp word [ebx + 0x4e], 0x40
ja 0x10048aff
push 0xa00
lea esi, [ebx + 0x140]
push 0
push esi
call fcn.10068bc0
movzx eax, word [ebx + 0x4e]
mov ecx, dword [ebx + 0xe64]
add ecx, 0xf8
lea eax, [eax + eax*4]
shl eax, 3
push eax
mov eax, dword [ebx + 0x3c]
add eax, ecx
push eax
push esi
call fcn.10068e60
add esp, 0x18
mov al, 1
pop edi
pop esi
pop ebx
ret
test edx, edx
je 0x10048b1b
push 0x8000
push 0
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebx + 0xe64], 0
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x10048da0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.100480d0
mov ecx, edi
call fcn.100479f0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10048de5
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 4]
push 0
push eax
push 0x40
push edi
push ebx
call esi
push 0
lea eax, [ebp - 4]
push eax
push dword [edi + 0x44]
push dword [edi + 0x40]
push ebx
call esi
mov eax, dword [edi + 0x3c]
sub eax, dword [edi + 0x44]
sub eax, 0x40
mov dword [ebp + 8], eax
test eax, eax
jle 0x10048e50
push eax
call fcn.100664df
push dword [ebp + 8]
mov esi, eax
push 0
push esi
call fcn.10068bc0
add esp, 0x10
lea eax, [ebp - 0xc]
push 0
push eax
push dword [ebp + 8]
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push ebx
call eax
push 1
push esi
call fcn.100664d1
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 8
push 0
lea eax, [ebp - 4]
push eax
push 0xf8
lea eax, [edi + 0x48]
push eax
push ebx
call esi
push 0
lea eax, [ebp - 4]
push eax
movzx eax, word [edi + 0x4e]
lea eax, [eax + eax*4]
shl eax, 3
push eax
lea eax, [edi + 0x140]
push eax
push ebx
call esi
push 0
lea eax, [ebp - 4]
push eax
push dword [edi + 0xb48]
push dword [edi + 0xb44]
push ebx
call esi
xor eax, eax
mov dword [ebp + 8], 0
cmp ax, word [edi + 0x4e]
jae 0x10048f2d
lea esi, [edi + 0xb50]
add edi, 0x154
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [edi]
sub edi, eax
test edi, edi
jle 0x10048efa
push edi
call fcn.100664df
push edi
mov esi, eax
push 0
push esi
call fcn.10068bc0
add esp, 0x10
lea eax, [ebp - 0x14]
push 0
push eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push esi
push ebx
call eax
push 1
push esi
call fcn.100664d1
mov esi, dword [ebp - 0xc]
add esp, 8
push 0
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x10]
add esi, 0xc
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 8]
inc ecx
add edi, 0x28
mov dword [ebp + 8], ecx
movzx eax, word [eax + 0x4e]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], esi
cmp ecx, eax
jl 0x10048eb7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1004af3b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x10052f59
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov edx, 0x811c9dc5
xor ecx, ecx
movzx eax, byte [esi + ecx]
xor eax, edx
imul edx, eax, 0x1000193
inc ecx
cmp ecx, 4
jb 0x10052f67
mov eax, edx
xor edx, edx
div dword [ebp + 0xc]
pop esi
mov eax, edx
pop ebp
ret

Function at 0x100561a7
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov edx, 0x811c9dc5
xor ecx, ecx
movzx eax, byte [esi + ecx]
xor eax, edx
imul edx, eax, 0x1000193
inc ecx
cmp ecx, 4
jb 0x100561b5
mov eax, edx
xor edx, edx
div dword [ebp + 0xc]
pop esi
mov eax, edx
pop ebp
ret

Function at 0x1005c170
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bbd3c
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x100d9180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov ebx, str.advapi32.dll
push 0x800
push eax
push ebx
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1005c1e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1005c26a
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x1005c26a
push str.RegisterTraceGuidsW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.1004b5a5
mov dword [esp], str.UnregisterTraceGuids
push edi
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.1004b5a5
mov dword [esp], str.TraceEvent
push edi
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.1004b5a5
mov dword [esp], str.GetTraceLoggerHandle
push edi
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.1004b5a5
mov dword [esp], str.GetTraceEnableLevel
push edi
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.1004b5a5
mov dword [esp], str.GetTraceEnableFlags
push edi
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.1004b5a5
pop ecx
mov dword [esi + 0x14], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1009014b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1009018a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1009018a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1009018a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1009018a
cmp dword [ecx + 0x74], 0xe
jbe 0x1009018a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1009a3a5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100c3044
push 0x100c303c
push str.FlsAlloc
push 0x1f
call fcn.1009a073
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1009a3d9
push dword [ebp + 8]
mov ecx, esi
call dword [0x100bd42c]
call esi
jmp 0x1009a3df
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1009a423
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100c3054
push 0x100c304c
push str.FlsGetValue
push 0x21
call fcn.1009a073
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1009a45a
push dword [ebp + 8]
mov ecx, esi
call dword [0x100bd42c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1009a462
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.SunMonTueWedThuFriSat
push 0x100c3054
push str.FlsSetValue
push 0x22
call fcn.1009a073
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1009a49c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100bd42c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1009e898
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x100d9180]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x1009e8e3
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.1009eca6
test al, al
jne 0x1009e8dd
sub edx, 2
cmp edx, edi
jne 0x1009e8c3
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x1009e905
lea eax, [edi + 2]
cmp edx, eax
je 0x1009e905
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.1009e55f
add esp, 0x10
jmp 0x1009e9ff
push esi
lea ecx, [ebp - 0x255]
call fcn.1009eca6
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1009e948
push dword [ebp - 0x25c]
jmp 0x1009e8f5
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x1009e985
cmp word [ebp - 0x226], 0
je 0x1009e9a6
cmp word [ebp - 0x226], ax
jne 0x1009e985
cmp word [ebp - 0x224], 0
je 0x1009e9a6
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.1009e55f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x1009e9f2
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x1009e95f
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x1009e9da
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x1009e9ff
push 0x1009dfaf
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.100ac910
add esp, 0x10
jmp 0x1009e9cf
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006638a
leave
ret