joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446310
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push 0xf0000040
push 1
lea edi, [esi + 4]
push 0
push 0
push esi
mov dword [esi], 0
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x44634e
mov eax, dword [esi]
push edi
push 0
push 0
push 0x8002
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop edi
pop esi
ret

Function at 0x446d20
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push eax
call dword [0x9f2290]
mov edi, eax
add esp, 4
test edi, edi
jne 0x446d43
pop edi
pop esi
ret
lea eax, [edi + 0xc]
push ebx
mov dword [edi], esi
mov dword [edi + 4], eax
mov ebx, dword [esi + 0xc]
mov edx, eax
add edx, ebx
mov ebx, dword [esp + 0x18]
mov dword [edi + 8], edx
mov ecx, dword [esi + 0x10]
cmp ebx, ecx
push ebp
jbe 0x446d8e
push eax
call dword [esi]
mov eax, dword [esp + 0x1c]
mov ecx, dword [edi + 4]
push ebx
push eax
push ecx
call dword [esi + 4]
mov ebx, dword [edi + 8]
mov eax, dword [esi + 0xc]
mov edx, dword [edi + 4]
add ebx, eax
push edx
push ebx
call dword [esi + 8]
mov eax, dword [esi + 0x14]
add esp, 0x18
mov dword [esp + 0x1c], eax
jmp 0x446d92
mov ebx, dword [esp + 0x18]
mov ecx, dword [edi + 4]
push ecx
call dword [esi]
mov edx, dword [edi + 8]
push edx
call dword [esi]
mov eax, dword [esp + 0x24]
add esp, 8
xor ebp, ebp
test eax, eax
jbe 0x446df8
mov dword [esp + 0x1c], eax
mov ebp, eax
mov al, byte [ebx]
mov cl, byte [0x9e9b4c]
xor al, cl
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], al
mov edx, dword [edi + 4]
push 1
push ecx
push edx
call dword [esi + 4]
mov al, byte [ebx]
mov dl, byte [0x9e9b4d]
xor al, dl
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], al
mov edx, dword [edi + 8]
push 1
push ecx
push edx
inc ebx
call dword [esi + 4]
mov eax, dword [esp + 0x34]
add esp, 0x18
dec eax
mov dword [esp + 0x1c], eax
jne 0x446db1
cmp ebp, dword [esi + 0x10]
jae 0x446e24
mov eax, dword [edi + 4]
push 1
push 0x9e9b4c
push eax
call dword [esi + 4]
mov ecx, dword [edi + 8]
push 1
push 0x9e9b4d
push ecx
call dword [esi + 4]
mov eax, dword [esi + 0x10]
add esp, 0x18
inc ebp
cmp ebp, eax
jb 0x446dfd
pop ebp
mov eax, edi
pop ebx
pop edi
pop esi
ret
Function at 0x44a3f0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x9f2274]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1000
call fcn.009b4dad
push 0x41
mov edi, eax
xor esi, esi
lea eax, [ebp - 0x48]
push esi
push eax
call fcn.009b2780
push 0x1000
push esi
push edi
call fcn.009b2780
add esp, 0x1c
xor ecx, ecx
nop
mov al, cl
add al, 0x41
mov byte [ebp + ecx - 0x48], al
inc ecx
cmp ecx, 0x1a
jl 0x44a430
xor ecx, ecx
mov al, cl
add al, 0x61
mov byte [ebp + ecx - 0x2e], al
inc ecx
cmp ecx, 0x1a
jl 0x44a440
xor ecx, ecx
mov al, cl
add al, 0x30
mov byte [ebp + ecx - 0x14], al
inc ecx
cmp ecx, 0xa
jl 0x44a450
mov ebx, dword [ebp + 0xc]
xor edx, edx
mov word [ebp - 0xa], 0x2f2b
test ebx, ebx
je 0x44a58d
mov ecx, dword [ebp + 8]
mov al, byte [ecx]
dec ebx
mov byte [ebp + edx - 0x50], al
inc ecx
mov al, byte [ebp - 0x4e]
inc edx
mov ah, byte [ebp - 0x4f]
mov byte [ebp - 0x4a], al
mov al, byte [ebp - 0x50]
mov dword [ebp + 8], ecx
mov byte [ebp - 0x55], ah
mov byte [ebp - 0x49], al
cmp edx, 3
jne 0x44a4e8
mov cl, byte [ebp - 0x49]
shr al, 2
and cl, 3
mov byte [ebp - 0x54], al
mov al, ah
shl cl, 4
shr al, 4
add cl, al
mov al, byte [ebp - 0x4a]
mov byte [ebp - 0x53], cl
mov cl, ah
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, byte [ebp - 0x4a]
and al, 0x3f
mov byte [ebp - 0x52], cl
mov byte [ebp - 0x51], al
xor eax, eax
nop dword [eax]
movzx ecx, byte [ebp + eax - 0x54]
inc eax
mov cl, byte [ebp + ecx - 0x48]
mov byte [esi + edi], cl
inc esi
cmp eax, 4
jl 0x44a4d0
mov ecx, dword [ebp + 8]
xor edx, edx
test ebx, ebx
jne 0x44a474
test edx, edx
je 0x44a58d
mov eax, edx
cmp edx, 3
jge 0x44a51a
cmp eax, 3
jae 0x44a5a0
mov byte [ebp + eax - 0x50], 0
inc eax
cmp eax, 3
jl 0x44a4fe
mov ah, byte [ebp - 0x4e]
mov cl, byte [ebp - 0x4f]
mov bl, byte [ebp - 0x50]
jmp 0x44a523
mov cl, byte [ebp - 0x55]
mov bl, byte [ebp - 0x49]
mov ah, byte [ebp - 0x4a]
mov al, bl
and bl, 3
shr al, 2
mov byte [ebp - 0x54], al
mov al, cl
shr al, 4
and cl, 0xf
shl bl, 4
add bl, al
shl cl, 2
mov al, ah
mov byte [ebp - 0x53], bl
shr al, 6
lea ebx, [edx + 1]
add cl, al
and ah, 0x3f
mov byte [ebp - 0x52], cl
xor ecx, ecx
mov byte [ebp - 0x51], ah
test ebx, ebx
jle 0x44a572
nop word [eax + eax]
movzx eax, byte [ebp + ecx - 0x54]
inc ecx
mov al, byte [ebp + eax - 0x48]
mov byte [esi + edi], al
inc esi
cmp ecx, ebx
jl 0x44a560
cmp edx, 3
jge 0x44a58d
mov eax, 3
lea ecx, [esi + edi]
sub eax, edx
push eax
push 0x3d
push ecx
call fcn.009b2780
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.009b16f2
mov esp, ebp
pop ebp
ret
call fcn.009b1617
int3
Function at 0x44a650
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
movups xmm0, xmmword [edx]
movups xmmword [edi + 0x44], xmm0
movups xmm0, xmmword [edx + 0x10]
movups xmmword [edi + 0x54], xmm0
movq xmm0, qword [esi]
movq qword [edi + 0x64], xmm0
mov eax, dword [esi + 8]
mov dword [edi + 0x6c], eax
mov dword [edi + 0x74], 0x61707865
mov dword [edi + 0x78], 0x3320646e
mov dword [edi + 0x7c], 0x79622d32
mov dword [edi + 0x80], 0x6b206574
movzx ecx, byte [edx + 3]
shl ecx, 8
movzx eax, byte [edx + 2]
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x84], ecx
movzx ecx, byte [edx + 7]
movzx eax, byte [edx + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x88], ecx
movzx ecx, byte [edx + 0xb]
movzx eax, byte [edx + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 8]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x8c], ecx
movzx ecx, byte [edx + 0xf]
movzx eax, byte [edx + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xc]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x90], ecx
movzx ecx, byte [edx + 0x13]
movzx eax, byte [edx + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x10]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x94], ecx
movzx ecx, byte [edx + 0x17]
movzx eax, byte [edx + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x14]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x98], ecx
movzx ecx, byte [edx + 0x1b]
movzx eax, byte [edx + 0x1a]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x19]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x18]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x9c], ecx
movzx ecx, byte [edx + 0x1f]
movzx eax, byte [edx + 0x1e]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x1c]
shl ecx, 8
or ecx, eax
mov dword [edi + 0xa4], 0
mov dword [edi + 0xa0], ecx
movzx ecx, byte [esi + 3]
movzx eax, byte [esi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi]
shl ecx, 8
or ecx, eax
mov dword [edi + 0xa8], ecx
movzx ecx, byte [esi + 7]
movzx eax, byte [esi + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 4]
shl ecx, 8
or ecx, eax
mov dword [edi + 0xac], ecx
movzx ecx, byte [esi + 0xb]
movzx eax, byte [esi + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 8]
shl ecx, 8
or ecx, eax
mov dword [edi + 0xb0], ecx
movq xmm0, qword [esi]
movq qword [edi + 0x64], xmm0
mov eax, dword [esi + 8]
mov dword [edi + 0x6c], eax
pop edi
pop esi
pop ebp
ret
Function at 0x98a6c0
Capabilities:
Get file size
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x9f2274]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.009b2780
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x20c]
add esp, 0xc
sub edx, ecx
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x98a700
mov edx, 0x9fec80
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x98a717
lea edi, [ebp - 0x20c]
sub edx, esi
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x98a730
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
nop dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push 0xa0000000
lea eax, [ebp - 0x20c]
push eax
call dword [0xa00bb0]
mov edi, eax
cmp edi, 0xffffffff
jne 0x98a79a
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x3c
jl 0x98a750
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009b16f2
mov esp, ebp
pop ebp
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], ebx
call fcn.009b4dad
add esp, 4
mov esi, eax
lea eax, [ebp - 0x210]
push 0
push eax
push dword [ebp - 0x214]
push esi
push edi
call dword [0xa00c44]
test eax, eax
je 0x98a812
cmp dword [ebp - 0x210], 0x100
jbe 0x98a812
cmp byte [esi], 0x4d
jne 0x98a812
cmp byte [esi + 1], 0x5a
jne 0x98a812
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x98a812
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
jne 0x98a812
cmp dword [eax + esi + 0x28], 0x1000
mov ecx, 1
cmove ebx, ecx
push dword [ebp - 0x214]
push 0
push esi
call fcn.009b2780
push esi
call fcn.009b4d92
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.009b16f2
mov esp, ebp
pop ebp
ret
Function at 0x990a50
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret

Function at 0x990d30
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x9f2274]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x50
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.009b2780
mov edi, dword [ebp + 8]
add esp, 0xc
mov esi, edi
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x990d60
mov edx, dword [ebp + 0xc]
sub esi, ecx
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x990d71
sub ecx, ebx
mov dword [ebp - 0x70], 0x67452301
push ecx
push edx
lea eax, [ebp - 0x78]
mov dword [ebp - 0x6c], 0xefcdab89
xorps xmm0, xmm0
mov dword [ebp - 0x68], 0x98badcfe
push eax
movlpd qword [ebp - 0x78], xmm0
mov dword [ebp - 0x64], 0x10325476
call fcn.00990b90
push esi
lea eax, [ebp - 0x78]
push edi
push eax
call fcn.00990b90
lea eax, [ebp - 0x78]
push eax
call fcn.00990920
xor eax, eax
mov dword [0x9ffa5c], 0
add esp, 0x1c
mov dword [0x9ffa60], 0
mov dword [0x9ffa64], 0
cmp eax, 0xa
mov dword [0x9ffa68], 0
mov dword [0x9ffa6c], 0
mov dword [0x9ffa70], 0
mov dword [0x9ffa74], 0
mov dword [0x9ffa78], 0
mov dword [0x9ffa7c], 0
mov dword [0x9ffa80], 0
jae 0x990ea2
mov byte [ebp + eax - 0x10], 0
inc eax
cmp eax, 0xa
jl 0x990e29
xor ebx, ebx
nop dword [eax + eax]
movzx eax, byte [ebp + ebx - 0x20]
push eax
lea eax, [ebp - 0x10]
push 0x9e80c4
push eax
call fcn.00990eb0
lea edx, [ebp - 0x10]
add esp, 0xc
mov esi, edx
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x990e60
mov edi, 0x9ffa5c
sub edx, esi
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x990e70
mov ecx, edx
inc ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp ebx, 0x10
jl 0x990e40
mov ecx, dword [ebp - 4]
mov eax, 0x9ffa5c
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.009b16f2
mov esp, ebp
pop ebp
ret
call fcn.009b1617
int3

Function at 0x990ef0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x9f2274]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x5c], 0xefcdab89
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
mov dword [ebp - 0x50], 0xc3d2e1f0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
test edi, edi
je 0x990f60
push 1
lea eax, [ebx + esi]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00992260
inc esi
add esp, 0xc
cmp esi, edi
jb 0x990f46
mov eax, dword [ebp - 0x64]
lea ecx, [ebp - 0x60]
push ecx
push eax
call fcn.00990f80
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.009b16f2
mov esp, ebp
pop ebp
ret
Function at 0x9910f0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], 0
mov dword [eax + 0x14], 0
pop ebp
ret
Function at 0x9b7fef
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x9b802e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x9b802e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x9b802e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x9b802e
cmp dword [ecx + 0x74], 0xe
jbe 0x9b802e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x9bf353
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.009b1780
mov eax, dword [0x9f2274]
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.009c36c5
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x9bf395
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x9bf4f1
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.009cd7e0
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 + 0xa00500]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.009c11f8
mov ecx, dword [esi*4 + 0xa00500]
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 0x9bf4ea
cmp eax, dword [ecx + edi + 0x24]
jne 0x9bf4ea
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 0x9bf4ea
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.009c11f8
add esp, 0x14
test edx, edx
jl 0x9bf4ea
jg 0x9bf460
test eax, eax
jb 0x9bf4ea
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x9bf4ea
jl 0x9bf47a
cmp dword [ebp - 0x1008], eax
ja 0x9bf4ea
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x9bf498
test ebx, ebx
je 0x9bf4d1
cmp ecx, edi
jae 0x9bf4d1
mov al, byte [ecx]
cmp al, 0xd
jne 0x9bf4b2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x9bf4be
cmp byte [ecx + 1], 0xa
jne 0x9bf4be
inc ecx
jmp 0x9bf4be
movzx eax, al
movsx eax, byte [eax + 0x9fc920]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x9bf498
cmp edx, ebx
jne 0x9bf498
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x9bf4ef
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.009b16f2
leave
ret

Function at 0x9c3df4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x9ed2c4
push 0x9ed2bc
push str.FlsAlloc
push 0x1f
call fcn.009c3c73
mov esi, eax
add esp, 0x10
test esi, esi
je 0x9c3e28
push dword [ebp + 8]
mov ecx, esi
call dword [0x9d034c]
call esi
jmp 0x9c3e2e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x9c3e72
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x9ed2d4
push 0x9ed2cc
push str.FlsGetValue
push 0x21
call fcn.009c3c73
mov esi, eax
add esp, 0x10
test esi, esi
je 0x9c3ea9
push dword [ebp + 8]
mov ecx, esi
call dword [0x9d034c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x9c3eb1
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x9ed2dc
push 0x9ed2d4
push str.FlsSetValue
push 0x22
call fcn.009c3c73
mov esi, eax
add esp, 0x10
test esi, esi
je 0x9c3eeb
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x9d034c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x9c407f
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 + 0xa00500]
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 0x9c40bf
cmp byte [ebx], 0xa
jne 0x9c40bf
or byte [edi + eax + 0x28], 4
jmp 0x9c40c4
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 0x9c41c3
mov dl, byte [eax]
cmp dl, 0x1a
je 0x9c41a6
inc eax
cmp dl, 0xd
je 0x9c40f0
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x9c4116
cmp eax, ecx
jae 0x9c4124
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 0x9c40d8
jmp 0x9c41c3
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 0x9c41a1
cmp dword [ebp - 0x10], 0
je 0x9c41a1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0xa00500]
test byte [eax + edi + 0x28], 0x48
je 0x9c417b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x9c4166
mov byte [esi], dl
jmp 0x9c4177
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0xa00500]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x9c41c3
cmp byte [ebp - 1], 0xa
jne 0x9c418a
cmp esi, ebx
jne 0x9c418a
mov byte [esi], 0xa
jmp 0x9c41c2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.009c1216
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x9c41c3
mov byte [esi], 0xd
jmp 0x9c41c2
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0xa00500]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x9c41c0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x9c41c3
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x9c41cc
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 + 0xa00500]
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 0x9c4212
cmp word [ebx], dx
jne 0x9c4212
or byte [eax + edi + 0x28], 4
jmp 0x9c4217
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 0x9c437a
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 0x9c435a
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x9c4258
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x9c428e
cmp eax, edx
jae 0x9c429c
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 0x9c4233
jmp 0x9c437a
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 0x9c4355
cmp dword [ebp - 0x18], 0
je 0x9c4355
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0xa00500]
test byte [eax + edi + 0x28], 0x48
je 0x9c432b
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 0x9c42ef
mov word [esi], cx
jmp 0x9c4326
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0xa00500]
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 + 0xa00500]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0xa00500]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x9c437a
pop eax
cmp word [ebp - 4], ax
jne 0x9c433b
cmp esi, ebx
jne 0x9c433b
mov word [esi], ax
jmp 0x9c4377
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.009c1216
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x9c437a
push 0xd
pop eax
jmp 0x9c4336
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0xa00500]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x9c4374
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x9c437a
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret