joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007dc40
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1007e030
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x101179b4], 0
jne 0x1007dc7d
cmp dword [0x101179b0], 0
je 0x1007dc7d
mov eax, dword [0x101179b0]
mov dword [0x101179b4], eax
cmp dword [0x101179b4], 0
je 0x1007dcfa
mov ecx, dword [0x101179b4]
cmp dword [ecx + 8], 0
je 0x1007dcfa
mov edx, dword [0x101179b4]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1007dcfa
mov ecx, dword [0x101179b4]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1007dcfa
mov eax, dword [0x101179b4]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x1007dcc9
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x1007dcd0
xor eax, eax
jmp 0x1007de19
mov ecx, dword [0x101179b4]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.10088c20
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x1007de19
mov edx, dword [0x101179b0]
mov dword [0x101179b4], edx
jmp 0x1007dd16
mov eax, dword [0x101179b4]
mov ecx, dword [eax + 4]
mov dword [0x101179b4], ecx
cmp dword [0x101179b4], 0
je 0x1007dd56
cmp dword [0x101179b4], 0
je 0x1007dd54
mov edx, dword [0x101179b4]
cmp dword [edx + 8], 0
je 0x1007dd54
mov eax, dword [0x101179b4]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x1007dd54
mov edx, dword [0x101179b4]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x1007dd54
jmp 0x1007dcae
jmp 0x1007dd08
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1007de20
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1007de17
mov eax, dword [ebp - 0x18]
mov dword [0x101179b4], eax
mov ecx, dword [0x101179b4]
mov dword [ecx], 0x52727464
mov edx, dword [0x101179b4]
mov dword [edx + 8], 0
mov eax, dword [0x101179b4]
mov ecx, dword [0x101179b0]
mov dword [eax + 4], ecx
mov edx, dword [0x101179b4]
mov dword [0x101179b0], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x101179b4]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x1007dde7
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x1007de07
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1007ddde
mov eax, dword [0x101179b4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1007dcae
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10081880
Capabilities:
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0x1c]
or eax, 4
mov dword [ebp - 8], eax
cmp dword [ebp + 0x34], 0
jne 0x1008189e
mov ecx, dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp + 0x34], ecx
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp + 0x28]
push eax
mov ecx, dword [ebp + 0x24]
push ecx
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp + 0x34]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x2c], 0
je 0x100818e4
push 0x10
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0x2c]
push ecx
call fcn.10088120
add esp, 0xc
cmp dword [ebp - 0xc], 0
jne 0x100818ee
xor eax, eax
jmp 0x1008194a
mov dword [ebp - 4], 0
cmp dword [ebp + 0x30], 0
je 0x1008190e
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x30]
mov dword [ebp + edx*4 - 0x14], eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.100822f0
test eax, eax
jne 0x10081933
push 0xffffffffffffffff
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
jmp 0x1008194a
mov eax, dword [ebp + 0x1c]
and eax, 4
jne 0x10081945
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
mov esp, ebp
pop ebp
ret 0x30
Function at 0x10081b70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0x26ac
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp dword [0x101179d8], 0
jne 0x10081bb3
mov dword [ebp - 8], 0x26b1
jmp 0x10081cc5
mov eax, dword [0x101179d8]
mov ecx, dword [eax + 4]
push ecx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x10081be3
mov dword [ebp - 8], 0x26ad
jmp 0x10081cc5
xor ecx, ecx
mov edx, dword [0x101179d8]
mov eax, dword [edx + 8]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10085c20
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], eax
mov ecx, dword [0x101179d8]
mov edx, dword [ecx]
sub edx, 0x10
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], 0
jmp 0x10081c2e
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [0x101179d8]
mov edx, dword [ebp - 0x10]
cmp edx, dword [ecx + 8]
jae 0x10081c98
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [0x101179d8]
lea ecx, [eax + edx + 0xc]
push ecx
call fcn.100803d0
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jge 0x10081c74
mov dword [ebp - 8], 0x26ae
jmp 0x10081cc5
mov edx, dword [ebp - 0xc]
mov eax, dword [0x101179d8]
lea ecx, [eax + edx + 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov dword [eax + edx*4], ecx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
lea eax, [edx + ecx + 1]
mov dword [ebp - 0xc], eax
jmp 0x10081c25
mov ecx, dword [0x101179d8]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.100822f0
test eax, eax
jne 0x10081cbe
mov dword [ebp - 8], 0x26af
jmp 0x10081cc5
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
je 0x10081ce4
mov edx, dword [ebp - 4]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.1008728f
add esp, 4
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10082060
Capabilities:
Query environment variable
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x47c
mov eax, dword [0x101114bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x418], 0
push 0x104
lea eax, [ebp - 0x20c]
push eax
push str.WINDIR
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x420], eax
cmp dword [ebp + 0xc], 1
jb 0x100820b3
cmp dword [ebp + 0xc], 0x1000
jbe 0x100820c5
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100822ab
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x418]
push ecx
call fcn.1007fae0
test eax, eax
jne 0x100820eb
jmp 0x100822ab
cmp dword [ebp - 0x420], 0
je 0x10082100
cmp dword [ebp - 0x420], 0x104
jb 0x1008210a
jmp 0x100822ab
push str._sysnative_rundll32.exe
push 0x104
lea edx, [ebp - 0x20c]
push edx
call fcn.10080370
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jge 0x10082139
jmp 0x100822ab
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 0x418]
lea eax, [edx + ecx + 0xc]
push eax
push str.rundll32.exe___hs__1
push 0x104
lea ecx, [ebp - 0x414]
push ecx
call fcn.100804f0
add esp, 0x10
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jge 0x1008217e
jmp 0x100822ab
push 0x10
push 0
lea edx, [ebp - 0x438]
push edx
call fcn.10088c20
add esp, 0xc
push 0x44
push 0
lea eax, [ebp - 0x47c]
push eax
call fcn.10088c20
add esp, 0xc
mov dword [ebp - 0x47c], 0x44
lea ecx, [ebp - 0x438]
push ecx
lea edx, [ebp - 0x47c]
push edx
push 0
push 0
push 4
push 0
push 0
push 0
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [ebp + 0x14]
test eax, eax
je 0x100822ab
mov edx, dword [ebp - 0x418]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x418]
push ecx
push 0x100f8804
mov edx, dword [ebp - 0x438]
push edx
call fcn.10081240
test eax, eax
jne 0x10082233
push 0xffffffffffffffff
mov eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0x438]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x434]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100822ab
mov eax, dword [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x434]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
mov edx, dword [ebp - 0x438]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x424], 0x1f4
lea eax, [ebp - 0x424]
push eax
mov ecx, dword [ebp - 0x438]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [ebp - 0x438]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x424], 0
je 0x100822a1
jmp 0x100822ab
mov dword [ebp - 0x428], 1
lea ecx, [ebp - 0x418]
push ecx
call fcn.1007ff70
mov eax, dword [ebp - 0x428]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10085c29
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10082660
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x10117a04], 0
je 0x10082676
xor eax, eax
jmp 0x10082892
cmp dword [0x10117a00], 0
je 0x10082689
mov eax, dword [0x10117a00]
jmp 0x10082892
push 0x24
push 0
push 0x101179dc
call fcn.10088c20
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x101179dc], eax
push 0
push 0
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x101179e0], eax
cmp dword [0x101179e0], 0
jne 0x1008272e
mov dword [0x10117a04], 1
cmp dword [0x101179e0], 0
je 0x100826e1
mov eax, dword [0x101179e0]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x101179e4], 0
mov dword [0x101179e8], 0
mov dword [0x101179ec], 0
mov dword [0x101179f0], 0
mov dword [0x101179f4], 0
mov dword [0x101179f8], 0
mov dword [0x101179fc], 0
xor eax, eax
jmp 0x10082892
push str.ImagehlpApiVersionEx
mov ecx, dword [0x101179e0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x101179e4], eax
push str.SymInitialize
mov edx, dword [0x101179e0]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x101179e8], eax
push str.SymSetOptions
mov eax, dword [0x101179e0]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x101179ec], eax
push str.SymGetOptions
mov ecx, dword [0x101179e0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x101179f0], eax
push str.SymLoadModule64
mov edx, dword [0x101179e0]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x101179f4], eax
push str.SymGetModuleInfo64
mov eax, dword [0x101179e0]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x101179f8], eax
push str.SymFromName
mov ecx, dword [0x101179e0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x101179fc], eax
push 8
push 0
lea edx, [ebp - 0xc]
push edx
call fcn.10088c20
add esp, 0xc
mov eax, 0xc
mov word [ebp - 0xc], ax
cmp dword [0x101179e4], 0
je 0x10082813
cmp dword [0x101179e8], 0
je 0x10082813
cmp dword [0x101179f4], 0
je 0x10082813
cmp dword [0x101179f8], 0
je 0x10082813
cmp dword [0x101179fc], 0
jne 0x10082818
jmp 0x100826c2
lea ecx, [ebp - 0xc]
push ecx
call dword [0x101179e4]
movzx edx, word [ebp - 0xc]
cmp edx, 0xc
jge 0x10082830
jmp 0x100826c2
push 0
push 0
mov eax, dword [0x101179dc]
push eax
call dword [0x101179e8]
test eax, eax
jne 0x10082849
jmp 0x100826c2
cmp dword [0x101179f0], 0
je 0x10082883
cmp dword [0x101179ec], 0
je 0x10082883
call dword [0x101179f0]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
and ecx, 0xfffffff8
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
or edx, 0x2704
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
call dword [0x101179ec]
mov dword [0x10117a00], 0x101179dc
mov eax, dword [0x10117a00]
mov esp, ebp
pop ebp
ret
Function at 0x100bd662
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10086390
mov eax, dword [0x101114bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.100cac06
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100bd6a4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100bd800
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100867d0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x101181b0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.100cfcbc
mov ecx, dword [esi*4 + 0x101181b0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x100bd7f9
cmp eax, dword [ecx + edi + 0x24]
jne 0x100bd7f9
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100bd7f9
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100cfcbc
add esp, 0x14
test edx, edx
jl 0x100bd7f9
jg 0x100bd76f
test eax, eax
jb 0x100bd7f9
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100bd7f9
jl 0x100bd789
cmp dword [ebp - 0x1008], eax
ja 0x100bd7f9
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100bd7a7
test ebx, ebx
je 0x100bd7e0
cmp ecx, edi
jae 0x100bd7e0
mov al, byte [ecx]
cmp al, 0xd
jne 0x100bd7c1
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100bd7cd
cmp byte [ecx + 1], 0xa
jne 0x100bd7cd
inc ecx
jmp 0x100bd7cd
movzx eax, al
movsx eax, byte [eax + 0x101116f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100bd7a7
cmp edx, ebx
jne 0x100bd7a7
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100bd7fe
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10085c29
leave
ret

Function at 0x100c3d0e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100c3d4d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100c3d4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100c3d4d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100c3d4d
cmp dword [ecx + 0x74], 0xe
jbe 0x100c3d4d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100cca69
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x101181b0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100ccaa9
cmp byte [ebx], 0xa
jne 0x100ccaa9
or byte [edi + eax + 0x28], 4
jmp 0x100ccaae
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x100ccbad
mov dl, byte [eax]
cmp dl, 0x1a
je 0x100ccb90
inc eax
cmp dl, 0xd
je 0x100ccada
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100ccb00
cmp eax, ecx
jae 0x100ccb0e
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x100ccac2
jmp 0x100ccbad
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100ccb8b
cmp dword [ebp - 0x10], 0
je 0x100ccb8b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x101181b0]
test byte [eax + edi + 0x28], 0x48
je 0x100ccb65
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100ccb50
mov byte [esi], dl
jmp 0x100ccb61
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x101181b0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100ccbad
cmp byte [ebp - 1], 0xa
jne 0x100ccb74
cmp esi, ebx
jne 0x100ccb74
mov byte [esi], 0xa
jmp 0x100ccbac
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100cfcda
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100ccbad
mov byte [esi], 0xd
jmp 0x100ccbac
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x101181b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100ccbaa
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100ccbad
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100ccbb6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x101181b0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100ccbfc
cmp word [ebx], dx
jne 0x100ccbfc
or byte [eax + edi + 0x28], 4
jmp 0x100ccc01
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x100ccd64
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x100ccd44
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100ccc42
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100ccc78
cmp eax, edx
jae 0x100ccc86
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x100ccc1d
jmp 0x100ccd64
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100ccd3f
cmp dword [ebp - 0x18], 0
je 0x100ccd3f
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x101181b0]
test byte [eax + edi + 0x28], 0x48
je 0x100ccd15
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x100cccd9
mov word [esi], cx
jmp 0x100ccd10
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x101181b0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x101181b0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x101181b0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100ccd64
pop eax
cmp word [ebp - 4], ax
jne 0x100ccd25
cmp esi, ebx
jne 0x100ccd25
mov word [esi], ax
jmp 0x100ccd61
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100cfcda
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100ccd64
push 0xd
pop eax
jmp 0x100ccd20
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x101181b0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100ccd5e
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100ccd64
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100ce1e9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100fcfbc
push 0x100fcfb4
push str.FlsAlloc
push 0x1f
call fcn.100cdeb7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100ce21d
push dword [ebp + 8]
mov ecx, esi
call dword [0x100ee334]
call esi
jmp 0x100ce223
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100ce267
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100fcfcc
push 0x100fcfc4
push str.FlsGetValue
push 0x21
call fcn.100cdeb7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100ce29e
push dword [ebp + 8]
mov ecx, esi
call dword [0x100ee334]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100ce2a6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100fcfd4
push 0x100fcfcc
push str.FlsSetValue
push 0x22
call fcn.100cdeb7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100ce2e0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100ee334]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100d21d6
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x101114bc]
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 0x100d2221
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.100d25e4
test al, al
jne 0x100d221b
sub edx, 2
cmp edx, edi
jne 0x100d2201
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x100d2243
lea eax, [edi + 2]
cmp edx, eax
je 0x100d2243
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.100d1e9d
add esp, 0x10
jmp 0x100d233d
push esi
lea ecx, [ebp - 0x255]
call fcn.100d25e4
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 0x100d2286
push dword [ebp - 0x25c]
jmp 0x100d2233
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 0x100d22c3
cmp word [ebp - 0x226], 0
je 0x100d22e4
cmp word [ebp - 0x226], ax
jne 0x100d22c3
cmp word [ebp - 0x224], 0
je 0x100d22e4
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.100d1e9d
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x100d2330
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x100d229d
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x100d2318
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x100d233d
push 0x100d18ed
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.100bde20
add esp, 0x10
jmp 0x100d230d
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.10085c29
leave
ret