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

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x1006e777
push eax
mov dword [esi + 4], 0
mov dword [esi], 0
call fcn.1005cde0
add esp, 4
mov dword [esi + 8], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1006e79c
push eax
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
call fcn.1005cde0
add esp, 4
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x20]
test eax, eax
je 0x1006e7c1
push eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
call fcn.1005cde0
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov eax, dword [esi + 0x44]
test eax, eax
je 0x1006e802
push eax
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
call fcn.1005cde0
add esp, 4
mov dword [esi + 0x44], 0
mov eax, dword [esi + 0x50]
test eax, eax
je 0x1006e827
push eax
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
call fcn.1005cde0
add esp, 4
mov dword [esi + 0x50], 0
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x1006e84c
push eax
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
call fcn.1005cde0
add esp, 4
mov dword [esi + 0x5c], 0
lea ecx, [esi + 0x78]
pop esi
jmp fcn.1006a2d0
Function at 0x10085fb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edx, dword [esi + 8]
mov edi, edx
and edi, 7
je 0x10085fdf
cmp edx, edi
jge 0x10085fcf
push esi
call fcn.1007fdd0
add esp, 4
mov eax, dword [esi + 0xc]
mov ecx, edi
shr eax, cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
mov dword [esi + 0xc], eax
xor eax, eax
mov ecx, edx
test edx, edx
jle 0x10086008
mov edx, dword [esi + 0xc]
push ebx
mov bl, dl
nop dword [eax]
mov byte [ebp + eax + 8], bl
sub ecx, 8
shr edx, 8
inc eax
mov dword [esi + 0xc], edx
mov bl, dl
test ecx, ecx
jg 0x10085ff0
mov dword [esi + 8], ecx
pop ebx
test ecx, ecx
jns 0x1008602b
mov ecx, dword [0x103e91b0]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0xc], str.zlib_corrupt
pop edi
xor eax, eax
pop esi
pop ebp
ret
cmp eax, 4
jge 0x1008604c
mov edi, dword [esi + 4]
mov ecx, dword [esi]
cmp ecx, edi
jb 0x1008603d
xor dl, dl
jmp 0x10086042
mov dl, byte [ecx]
inc ecx
mov dword [esi], ecx
mov byte [ebp + eax + 8], dl
inc eax
cmp eax, 4
jl 0x10086035
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
jne 0x1008600c
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x1008609a
mov ecx, dword [0x103e91b0]
mov eax, dword fs:[0x2c]
pop edi
pop esi
mov eax, dword [eax + ecx*4]
mov dword [eax + 0xc], str.read_past_buffer
xor eax, eax
pop ebp
ret
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x100860b8
push edi
push ecx
push esi
call fcn.1008a210
add esp, 0xc
test eax, eax
je 0x10086025
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.100b8180
add dword [esi], edi
add esp, 0xc
add dword [esi + 0x10], edi
mov eax, 1
pop edi
pop esi
pop ebp
ret
Function at 0x1008b0a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
cmp byte [esi], 0
jne 0x1008b100
mov ecx, 0x78f461
movd xmm1, ecx
mov ecx, 0x78f463
movd xmm0, ecx
pxor xmm0, xmm1
movd ecx, xmm0
cmp edx, ecx
jne 0x1008b0e8
mov ecx, dword [0x103dd5f8]
test ecx, ecx
je 0x1008b0df
mov dword [esi + 4], ecx
jmp 0x1008b0fd
movsx ecx, byte [eax + 1]
mov dword [esi + 4], ecx
jmp 0x1008b100
mov ecx, 0x78f46f
movd xmm0, ecx
pxor xmm0, xmm1
movd ecx, xmm0
cmp edx, ecx
jne 0x1008b100
mov byte [esi], 1
cmp dword [esi + 4], 0
lea edi, [esi + 4]
je 0x1008b199
lea ecx, [eax + edx]
xor esi, esi
cmp eax, ecx
mov dword [ebp + 8], ecx
cmova edx, esi
test edx, edx
je 0x1008b188
cmp edx, 0x40
jb 0x1008b188
mov ecx, dword [edi]
movsx ecx, cl
movd xmm0, ecx
lea ecx, [eax - 1]
punpcklbw xmm0, xmm0
add ecx, edx
punpcklwd xmm0, xmm0
pshufd xmm1, xmm0, 0
cmp eax, edi
ja 0x1008b146
cmp ecx, edi
jae 0x1008b188
and edx, 0xffffffc0
nop dword [eax]
movups xmm0, xmmword [eax]
add esi, 0x40
pxor xmm0, xmm1
movups xmmword [eax], xmm0
movups xmm0, xmmword [eax + 0x10]
pxor xmm0, xmm1
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [eax + 0x20]
pxor xmm0, xmm1
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [eax + 0x30]
pxor xmm0, xmm1
movups xmmword [eax + 0x30], xmm0
add eax, 0x40
cmp esi, edx
jb 0x1008b150
mov edx, dword [ebp + 8]
cmp eax, edx
jae 0x1008b199
nop
mov cl, byte [edi]
xor byte [eax], cl
inc eax
cmp eax, edx
jb 0x1008b190
pop edi
pop esi
pop ebp
ret 8
Function at 0x1008d360
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x103dda04]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 2
mov dword [ebp - 0x234], esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x228
mov edi, eax
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.100b8700
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1008d3d9
mov ebx, dword [ebp + 0xc]
nop
cmp dword [ebp - 0x228], ebx
je 0x1008d427
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1008d3c0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
push eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x100ea2b4
mov ecx, esi
call fcn.10031d00
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b684e
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], 0
lea ecx, [ebp - 0x20c]
mov dword [esi + 0x14], 0
lea edx, [ecx + 2]
xor eax, eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1008d460
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
jmp 0x1008d40d
Function at 0x100ab0f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x103dda04]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0x40
push 0xa
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x10]
sub eax, edi
mov byte [edi], 0xe9
sub eax, 5
mov dword [edi + 1], eax
lea eax, [edi + 5]
push 0x90
push eax
call fcn.100b8700
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 0xa
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.100b684e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100ab7d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x103dda04]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push 0x40
push ebx
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push esi
mov esi, dword [ebp - 0x10]
push esi
call fcn.100b8180
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.100b684e
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100ab8c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x103dda04]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 8]
je 0x100ab911
lea eax, [ebp - 8]
push eax
push 0x40
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov al, byte [ebp + 0xc]
mov byte [ebx], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b684e
mov esp, ebp
pop ebp
ret 0x10
mov al, byte [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov byte [ebx], al
xor ecx, ebp
pop ebx
call fcn.100b684e
mov esp, ebp
pop ebp
ret 0x10

Function at 0x100ab930
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x103dda04]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
je 0x100ab981
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
mov dword [edi], ebx
push eax
push dword [ebp - 8]
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b684e
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
mov dword [edi], ebx
xor ecx, ebp
pop edi
pop ebx
call fcn.100b684e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100ad870
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 1
mov edx, ecx
xor edx, 0xedb88320
test bl, 1
cmove edx, ecx
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov ecx, edx
shr ecx, 1
mov eax, ecx
xor eax, 0xedb88320
test dl, 1
cmove eax, ecx
mov dword [ebp + ebx*4 - 0x400], eax
inc ebx
cmp ebx, 0x100
jl 0x100ad884
or eax, 0xffffffff
test esi, esi
je 0x100ad94a
nop
movzx ecx, byte [edi]
lea edi, [edi + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ebp + ecx*4 - 0x400]
sub esi, 1
jne 0x100ad930
pop edi
pop esi
not eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100b19d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.100b1b80
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x100b1a9d
mov edx, dword [ebp - 4]
cmp edx, dword [0x103dd960]
jb 0x100b1a1a
mov eax, dword [ebp - 4]
cmp eax, dword [0x103dd964]
ja 0x100b1a1a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x100b19ea
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.100b8700
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x100b1a40
jmp 0x100b1a9d
cmp dword [ebp - 0x14], 0x10000
jne 0x100b1a83
cmp dword [ebp - 0x18], 0x10000
jb 0x100b1a83
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100b1a76
mov eax, dword [ebp - 8]
jmp 0x100b1a9f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100b1a98
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.100b1b80
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100b19ea
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100b1ab0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.100b1bb0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x100b1b75
mov edx, dword [ebp - 4]
cmp edx, dword [0x103dd960]
jb 0x100b1af5
mov eax, dword [ebp - 4]
cmp eax, dword [0x103dd964]
ja 0x100b1af5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x100b1ac5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.100b8700
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x100b1b1b
jmp 0x100b1b75
cmp dword [ebp - 0x14], 0x10000
jne 0x100b1b5e
cmp dword [ebp - 0x18], 0x10000
jb 0x100b1b5e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100b1b51
mov eax, dword [ebp - 8]
jmp 0x100b1b77
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100b1b70
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.100b1bb0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100b1ac5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100c7a01
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100b68e0
mov eax, dword [0x103dda04]
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.100bc0ce
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100c7a43
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100c7b9f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100b6b00
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 + 0x103e9930]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.100d688d
mov ecx, dword [esi*4 + 0x103e9930]
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 0x100c7b98
cmp eax, dword [ecx + edi + 0x24]
jne 0x100c7b98
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 0x100c7b98
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100d688d
add esp, 0x14
test edx, edx
jl 0x100c7b98
jg 0x100c7b0e
test eax, eax
jb 0x100c7b98
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100c7b98
jl 0x100c7b28
cmp dword [ebp - 0x1008], eax
ja 0x100c7b98
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100c7b46
test ebx, ebx
je 0x100c7b7f
cmp ecx, edi
jae 0x100c7b7f
mov al, byte [ecx]
cmp al, 0xd
jne 0x100c7b60
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100c7b6c
cmp byte [ecx + 1], 0xa
jne 0x100c7b6c
inc ecx
jmp 0x100c7b6c
movzx eax, al
movsx eax, byte [eax + 0x103ddc68]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100c7b46
cmp edx, ebx
jne 0x100c7b46
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100c7b9d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100b684e
leave
ret

Function at 0x100ced9f
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1029d3f8
push 0x1029d3f0
push str.FlsAlloc
push 0x1f
call fcn.100d2530
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100d26f9
push dword [ebp + 8]
mov ecx, esi
call dword [0x100e83bc]
call esi
jmp 0x100d26ff
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100d2743
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1029d408
push 0x1029d400
push str.FlsGetValue
push 0x21
call fcn.100d2530
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100d277a
push dword [ebp + 8]
mov ecx, esi
call dword [0x100e83bc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100d2782
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1029d410
push 0x1029d408
push str.FlsSetValue
push 0x22
call fcn.100d2530
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100d27bc
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100e83bc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100d5d25
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 + 0x103e9930]
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 0x100d5d65
cmp byte [ebx], 0xa
jne 0x100d5d65
or byte [edi + eax + 0x28], 4
jmp 0x100d5d6a
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 0x100d5e69
mov dl, byte [eax]
cmp dl, 0x1a
je 0x100d5e4c
inc eax
cmp dl, 0xd
je 0x100d5d96
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100d5dbc
cmp eax, ecx
jae 0x100d5dca
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 0x100d5d7e
jmp 0x100d5e69
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 0x100d5e47
cmp dword [ebp - 0x10], 0
je 0x100d5e47
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x103e9930]
test byte [eax + edi + 0x28], 0x48
je 0x100d5e21
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100d5e0c
mov byte [esi], dl
jmp 0x100d5e1d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x103e9930]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100d5e69
cmp byte [ebp - 1], 0xa
jne 0x100d5e30
cmp esi, ebx
jne 0x100d5e30
mov byte [esi], 0xa
jmp 0x100d5e68
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100d68ab
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100d5e69
mov byte [esi], 0xd
jmp 0x100d5e68
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x103e9930]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100d5e66
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100d5e69
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100d5e72
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 + 0x103e9930]
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 0x100d5eb8
cmp word [ebx], dx
jne 0x100d5eb8
or byte [eax + edi + 0x28], 4
jmp 0x100d5ebd
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 0x100d6020
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 0x100d6000
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100d5efe
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100d5f34
cmp eax, edx
jae 0x100d5f42
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 0x100d5ed9
jmp 0x100d6020
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 0x100d5ffb
cmp dword [ebp - 0x18], 0
je 0x100d5ffb
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x103e9930]
test byte [eax + edi + 0x28], 0x48
je 0x100d5fd1
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 0x100d5f95
mov word [esi], cx
jmp 0x100d5fcc
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x103e9930]
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 + 0x103e9930]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x103e9930]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100d6020
pop eax
cmp word [ebp - 4], ax
jne 0x100d5fe1
cmp esi, ebx
jne 0x100d5fe1
mov word [esi], ax
jmp 0x100d601d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100d68ab
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100d6020
push 0xd
pop eax
jmp 0x100d5fdc
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x103e9930]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100d601a
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100d6020
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret