joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440aa0
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
mov byte [esi + edi - 1], 0
jne 0x440ad2
push 0x2e
push esi
call fcn.009b8ad0
add esp, 8
test eax, eax
je 0x440ad0
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret

Function at 0x440b20
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 0x20
push 0xf0000040
push 1
push 0
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esp + 0x18], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x440b49
add esp, 0x20
ret
mov eax, dword [esp + 0x2c]
xor ecx, ecx
mov dword [esp + 0xc], ecx
lea edx, [esp + 0x18]
mov dword [esp + 0x10], ecx
push edx
mov dword [esp + 0x18], ecx
push eax
mov dword [esp + 0x20], ecx
mov byte [esp + 0x14], 8
mov dword [esp + 0x24], ecx
mov byte [esp + 0x15], 2
mov dword [esp + 0x18], 0x6601
mov dword [esp + 0x1c], 8
call fcn.00440c20
lea ecx, [esp + 0x20]
push 8
push ecx
call fcn.00446260
mov ecx, dword [esp + 0x10]
add esp, 0x10
lea edx, [esp + 8]
lea eax, [esp + 0xc]
push edx
push 0
push 0
push 0x14
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x440bc8
mov edx, dword [esp]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
add esp, 0x20
ret
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov edx, dword [ecx]
mov dword [eax], edx
mov ecx, dword [ecx + 4]
mov edx, dword [esp + 4]
mov dword [eax + 4], ecx
lea ecx, [esp + 4]
push edx
mov edx, dword [esp + 0xc]
push ecx
push eax
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [esp]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 1
add esp, 0x20
ret
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 [0x9f8290]
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 [0x9efadc]
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 [0x9efadd]
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 0x9efadc
push eax
call dword [esi + 4]
mov ecx, dword [edi + 8]
push 1
push 0x9efadd
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 0x4495a0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x9f8274]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1000
call fcn.009ba50d
push 0x41
mov edi, eax
xor esi, esi
lea eax, [ebp - 0x48]
push esi
push eax
call fcn.009b7ee0
push 0x1000
push esi
push edi
call fcn.009b7ee0
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 0x4495e0
xor ecx, ecx
mov al, cl
add al, 0x61
mov byte [ebp + ecx - 0x2e], al
inc ecx
cmp ecx, 0x1a
jl 0x4495f0
xor ecx, ecx
mov al, cl
add al, 0x30
mov byte [ebp + ecx - 0x14], al
inc ecx
cmp ecx, 0xa
jl 0x449600
mov ebx, dword [ebp + 0xc]
xor edx, edx
mov word [ebp - 0xa], 0x2f2b
test ebx, ebx
je 0x44973d
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 0x449698
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 0x449680
mov ecx, dword [ebp + 8]
xor edx, edx
test ebx, ebx
jne 0x449624
test edx, edx
je 0x44973d
mov eax, edx
cmp edx, 3
jge 0x4496ca
cmp eax, 3
jae 0x449750
mov byte [ebp + eax - 0x50], 0
inc eax
cmp eax, 3
jl 0x4496ae
mov ah, byte [ebp - 0x4e]
mov cl, byte [ebp - 0x4f]
mov bl, byte [ebp - 0x50]
jmp 0x4496d3
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 0x449722
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 0x449710
cmp edx, 3
jge 0x44973d
mov eax, 3
lea ecx, [esi + edi]
sub eax, edx
push eax
push 0x3d
push ecx
call fcn.009b7ee0
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.009b6e52
mov esp, ebp
pop ebp
ret
call fcn.009b6d77
int3
Function at 0x449800
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 0x98d9d0
Capabilities:
Get file size
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x9f8274]
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.009b7ee0
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 0x98da10
mov edx, 0xa04480
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x98da27
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 0x98da40
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 [0xa067d8]
mov edi, eax
cmp edi, 0xffffffff
jne 0x98daaa
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x3c
jl 0x98da60
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009b6e52
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.009ba50d
add esp, 4
mov esi, eax
lea eax, [ebp - 0x210]
push 0
push eax
push dword [ebp - 0x214]
push esi
push edi
call dword [0xa0686c]
test eax, eax
je 0x98db22
cmp dword [ebp - 0x210], 0x100
jbe 0x98db22
cmp byte [esi], 0x4d
jne 0x98db22
cmp byte [esi + 1], 0x5a
jne 0x98db22
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x98db22
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
jne 0x98db22
cmp dword [eax + esi + 0x28], 0x1000
mov ecx, 1
cmove ebx, ecx
push dword [ebp - 0x214]
push 0
push esi
call fcn.009b7ee0
push esi
call fcn.009ba4f2
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.009b6e52
mov esp, ebp
pop ebp
ret
Function at 0x995310
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 0x9955f0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x9f8274]
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.009b7ee0
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 0x995620
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 0x995631
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.00995450
push esi
lea eax, [ebp - 0x78]
push edi
push eax
call fcn.00995450
lea eax, [ebp - 0x78]
push eax
call fcn.009951e0
xor eax, eax
mov dword [0xa0525c], 0
add esp, 0x1c
mov dword [0xa05260], 0
mov dword [0xa05264], 0
cmp eax, 0xa
mov dword [0xa05268], 0
mov dword [0xa0526c], 0
mov dword [0xa05270], 0
mov dword [0xa05274], 0
mov dword [0xa05278], 0
mov dword [0xa0527c], 0
mov dword [0xa05280], 0
jae 0x995762
mov byte [ebp + eax - 0x10], 0
inc eax
cmp eax, 0xa
jl 0x9956e9
xor ebx, ebx
nop dword [eax + eax]
movzx eax, byte [ebp + ebx - 0x20]
push eax
lea eax, [ebp - 0x10]
push 0x9edffc
push eax
call fcn.00995770
lea edx, [ebp - 0x10]
add esp, 0xc
mov esi, edx
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x995720
mov edi, 0xa0525c
sub edx, esi
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x995730
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 0x995700
mov ecx, dword [ebp - 4]
mov eax, 0xa0525c
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.009b6e52
mov esp, ebp
pop ebp
ret
call fcn.009b6d77
int3

Function at 0x9957b0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x9f8274]
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 0x995820
push 1
lea eax, [ebx + esi]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00996b20
inc esi
add esp, 0xc
cmp esi, edi
jb 0x995806
mov eax, dword [ebp - 0x64]
lea ecx, [ebp - 0x60]
push ecx
push eax
call fcn.00995840
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.009b6e52
mov esp, ebp
pop ebp
ret
Function at 0x9959b0
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 0x9bd75f
Capabilities:
Parse pe header

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

Function at 0x9c4ac3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.009b6ee0
mov eax, dword [0x9f8274]
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.009c8e35
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x9c4b05
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x9c4c61
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.009d2f40
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 + 0xa05d00]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.009c6968
mov ecx, dword [esi*4 + 0xa05d00]
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 0x9c4c5a
cmp eax, dword [ecx + edi + 0x24]
jne 0x9c4c5a
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 0x9c4c5a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.009c6968
add esp, 0x14
test edx, edx
jl 0x9c4c5a
jg 0x9c4bd0
test eax, eax
jb 0x9c4c5a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x9c4c5a
jl 0x9c4bea
cmp dword [ebp - 0x1008], eax
ja 0x9c4c5a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x9c4c08
test ebx, ebx
je 0x9c4c41
cmp ecx, edi
jae 0x9c4c41
mov al, byte [ecx]
cmp al, 0xd
jne 0x9c4c22
lea eax, [edi - 1]
cmp ecx, eax
jae 0x9c4c2e
cmp byte [ecx + 1], 0xa
jne 0x9c4c2e
inc ecx
jmp 0x9c4c2e
movzx eax, al
movsx eax, byte [eax + 0xa02920]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x9c4c08
cmp edx, ebx
jne 0x9c4c08
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x9c4c5f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.009b6e52
leave
ret

Function at 0x9c9564
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x9f3254
push 0x9f324c
push str.FlsAlloc
push 0x1f
call fcn.009c93e3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x9c9598
push dword [ebp + 8]
mov ecx, esi
call dword [0x9d6344]
call esi
jmp 0x9c959e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x9c95e2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x9f3264
push 0x9f325c
push str.FlsGetValue
push 0x21
call fcn.009c93e3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x9c9619
push dword [ebp + 8]
mov ecx, esi
call dword [0x9d6344]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x9c9621
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x9f326c
push 0x9f3264
push str.FlsSetValue
push 0x22
call fcn.009c93e3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x9c965b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x9d6344]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x9c97ef
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 + 0xa05d00]
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 0x9c982f
cmp byte [ebx], 0xa
jne 0x9c982f
or byte [edi + eax + 0x28], 4
jmp 0x9c9834
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 0x9c9933
mov dl, byte [eax]
cmp dl, 0x1a
je 0x9c9916
inc eax
cmp dl, 0xd
je 0x9c9860
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x9c9886
cmp eax, ecx
jae 0x9c9894
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 0x9c9848
jmp 0x9c9933
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 0x9c9911
cmp dword [ebp - 0x10], 0
je 0x9c9911
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0xa05d00]
test byte [eax + edi + 0x28], 0x48
je 0x9c98eb
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x9c98d6
mov byte [esi], dl
jmp 0x9c98e7
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0xa05d00]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x9c9933
cmp byte [ebp - 1], 0xa
jne 0x9c98fa
cmp esi, ebx
jne 0x9c98fa
mov byte [esi], 0xa
jmp 0x9c9932
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.009c6986
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x9c9933
mov byte [esi], 0xd
jmp 0x9c9932
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0xa05d00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x9c9930
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x9c9933
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret