joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005be70
Capabilities:
Encode data using xor
Get file size
Hash data with crc32
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008baed
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100b8560]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x8000080
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
mov byte [ebp - 0xd], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x1005bf88
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor edi, edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov dword [ebp - 0x28], edi
xor ebx, ebx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
test eax, eax
je 0x1005befb
lea ecx, [ebp - 0xe]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.1005b6d0
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
sub esi, edi
push esi
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1005bf55
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x14], eax
jne 0x1005bf55
or ecx, 0xffffffff
test esi, esi
je 0x1005bf4a
mov edx, edi
nop word [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100b80d0]
sub esi, 1
jne 0x1005bf30
mov eax, dword [ebp + 0xc]
not ecx
mov byte [ebp - 0xd], 1
mov dword [eax], ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x1005bf88
sub ebx, edi
mov eax, edi
cmp ebx, 0x1000
jb 0x1005bf7e
mov edi, dword [eax - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005bf9d
push ebx
push edi
call fcn.10060912
add esp, 8
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10065ac1
int3
Function at 0x1005ccd0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008bbed
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100b8560]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x2c], esi
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push 0x288
mov dword [ebp - 4], 0
call fcn.1006576e
mov edi, eax
add esp, 4
test edi, edi
je 0x1005ce04
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x1005cd66
push dword [ebp - 0x2c]
call fcn.1006576e
mov edi, eax
add esp, 4
test edi, edi
je 0x1005ce04
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x1005ce04
cmp dword [edi + 0x190], eax
jbe 0x1005cdd4
xor esi, esi
nop dword [eax]
nop word [eax + eax]
movzx eax, byte [edi + esi + 0x194]
push eax
push str._.2X
lea eax, [ebp - 0x30]
push 3
push eax
call fcn.1003e400
lea eax, [ebp - 0x30]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005cdb2
sub eax, edx
lea ecx, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.100298f0
inc esi
cmp esi, dword [edi + 0x190]
jb 0x1005cd90
mov esi, dword [ebp - 0x34]
push edi
call fcn.10065753
xorps xmm0, xmm0
add esp, 4
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
movups xmm0, xmmword [ebp - 0x28]
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
jmp 0x1005ce30
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 4
mov dword [esi + 0x14], 0xf
mov dword [esi], 0x656e6f6e
mov byte [esi + 4], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100608cb
mov esp, ebp
pop ebp
ret

Function at 0x1005d9e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1005da3b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1005da3b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x1005da2a
cmp esi, edx
jae 0x1005da3b
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x1005da18
cmp esi, edx
jae 0x1005da3b
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x1005db20
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ecx]
push edi
mov dword [ebp - 4], esi
mov eax, dword [esi]
cmp eax, 0x270
jne 0x1005db7d
lea edx, [esi + 8]
mov edi, eax
nop dword [eax]
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x1005db40
mov eax, dword [esi]
jmp 0x1005dc57
cmp eax, 0x4e0
jb 0x1005dc57
lea edi, [esi + 0x9c4]
mov esi, 0xe3
push ebx
mov ebx, dword [edi]
mov eax, ebx
lea edi, [edi + 4]
mov ebx, dword [edi]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub esi, 1
jne 0x1005db96
mov edi, dword [ebp - 4]
mov esi, 0x18c
add edi, 0xd50
mov ebx, dword [edi]
nop
mov eax, ebx
lea edi, [edi + 4]
mov ebx, dword [edi]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd50]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub esi, 1
jne 0x1005dbe0
mov esi, dword [ebp - 4]
pop ebx
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
mov dword [esi], 0
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1005e1f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1394
call fcn.10060e30
mov eax, dword [0x100b8560]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.10060561
mov dword [ebp - 8], 0xffffffff
mov ecx, 1
mov dword [ebp - 0x1388], eax
nop
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, ecx
mov dword [ebp + ecx*4 - 0x1388], eax
inc ecx
cmp ecx, 0x270
jb 0x1005e220
lea eax, [ebp - 0x138c]
mov dword [ebp - 0x138c], 0x270
mov dword [ebp - 0x1390], eax
lea ecx, [ebp - 0x1390]
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
sub eax, edi
cmp eax, 0xffffffff
jne 0x1005e27f
call fcn.1005db20
add eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100608cb
mov esp, ebp
pop ebp
ret
push esi
lea esi, [eax + 1]
call fcn.1005db20
mul esi
mov dword [ebp - 0x1394], eax
mov ecx, edx
cmp eax, esi
jae 0x1005e2c4
mov eax, esi
xor edx, edx
neg eax
div esi
push ebx
mov ebx, edx
cmp dword [ebp - 0x1394], ebx
jae 0x1005e2c3
nop dword [eax]
lea ecx, [ebp - 0x1390]
call fcn.1005db20
mul esi
mov ecx, edx
cmp eax, ebx
jb 0x1005e2b0
pop ebx
lea eax, [ecx + edi]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop edi
call fcn.100608cb
mov esp, ebp
pop ebp
ret
Function at 0x1005f8cd
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.1005f8a9
pop esi
leave
ret 8

Function at 0x10070461
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10060e30
mov eax, dword [0x100b8560]
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.1007bd97
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100704a3
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100705ff
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10088c60
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 + 0x1018edc8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10071908
mov ecx, dword [esi*4 + 0x1018edc8]
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 0x100705f8
cmp eax, dword [ecx + edi + 0x24]
jne 0x100705f8
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 0x100705f8
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10071908
add esp, 0x14
test edx, edx
jl 0x100705f8
jg 0x1007056e
test eax, eax
jb 0x100705f8
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100705f8
jl 0x10070588
cmp dword [ebp - 0x1008], eax
ja 0x100705f8
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100705a6
test ebx, ebx
je 0x100705df
cmp ecx, edi
jae 0x100705df
mov al, byte [ecx]
cmp al, 0xd
jne 0x100705c0
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100705cc
cmp byte [ecx + 1], 0xa
jne 0x100705cc
inc ecx
jmp 0x100705cc
movzx eax, al
movsx eax, byte [eax + 0x100b86d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100705a6
cmp edx, ebx
jne 0x100705a6
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100705fd
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100608cb
leave
ret
Function at 0x10071ddb
Capabilities:
Parse pe header

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

Function at 0x100738da
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100b8560]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x10097d70
push esi
call fcn.1007f415
pop ecx
pop ecx
test eax, eax
jne 0x10073908
xor al, al
jmp 0x10073985
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.1007361b
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x10073942
push dword [ebp - 0x210]
call fcn.10065753
xor al, al
jmp 0x10073983
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x10073948
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x10073968
push edx
call fcn.10073811
pop ecx
test al, al
je 0x10073933
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x10073976
mov bl, 1
push dword [ebp - 0x210]
call fcn.10065753
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100608cb
leave
ret

Function at 0x10074c07
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100b8560]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x10074c4a
call fcn.1006972a
mov dword [eax], 0xf
call fcn.1006973d
mov dword [eax], 0xd
call fcn.10065ab1
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100608cb
leave
ret
test eax, eax
jne 0x10074c51
inc eax
jmp 0x10074c3e
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x10074c3c
xor eax, eax
cmp ecx, 1
setne al
jmp 0x10074c3e
Function at 0x100769fd
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 + 0x1018edc8]
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 0x10076a3d
cmp byte [ebx], 0xa
jne 0x10076a3d
or byte [edi + eax + 0x28], 4
jmp 0x10076a42
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 0x10076b41
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10076b24
inc eax
cmp dl, 0xd
je 0x10076a6e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10076a94
cmp eax, ecx
jae 0x10076aa2
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 0x10076a56
jmp 0x10076b41
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 0x10076b1f
cmp dword [ebp - 0x10], 0
je 0x10076b1f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1018edc8]
test byte [eax + edi + 0x28], 0x48
je 0x10076af9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10076ae4
mov byte [esi], dl
jmp 0x10076af5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1018edc8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10076b41
cmp byte [ebp - 1], 0xa
jne 0x10076b08
cmp esi, ebx
jne 0x10076b08
mov byte [esi], 0xa
jmp 0x10076b40
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10071926
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10076b41
mov byte [esi], 0xd
jmp 0x10076b40
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1018edc8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10076b3e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10076b41
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10076b4a
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 + 0x1018edc8]
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 0x10076b90
cmp word [ebx], dx
jne 0x10076b90
or byte [eax + edi + 0x28], 4
jmp 0x10076b95
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 0x10076cf8
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 0x10076cd8
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10076bd6
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10076c0c
cmp eax, edx
jae 0x10076c1a
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 0x10076bb1
jmp 0x10076cf8
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 0x10076cd3
cmp dword [ebp - 0x18], 0
je 0x10076cd3
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1018edc8]
test byte [eax + edi + 0x28], 0x48
je 0x10076ca9
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 0x10076c6d
mov word [esi], cx
jmp 0x10076ca4
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1018edc8]
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 + 0x1018edc8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1018edc8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10076cf8
pop eax
cmp word [ebp - 4], ax
jne 0x10076cb9
cmp esi, ebx
jne 0x10076cb9
mov word [esi], ax
jmp 0x10076cf5
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10071926
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10076cf8
push 0xd
pop eax
jmp 0x10076cb4
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1018edc8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10076cf2
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10076cf8
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 0x1007a8bb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10099674
push 0x1009966c
push str.FlsAlloc
push 0x1f
call fcn.1007a726
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1007a8ef
push dword [ebp + 8]
mov ecx, esi
call dword [0x1008d3b0]
call esi
jmp 0x1007a8f5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1007a939
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10099684
push 0x1009967c
push str.FlsGetValue
push 0x21
call fcn.1007a726
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1007a970
push dword [ebp + 8]
mov ecx, esi
call dword [0x1008d3b0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1007a978
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1009968c
push 0x10099684
push str.FlsSetValue
push 0x22
call fcn.1007a726
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1007a9b2
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1008d3b0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1007e658
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1007e5d4
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1007e7c7
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1007e7c7
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1007e77c
jg 0x1007e6b4
test eax, eax
je 0x1007e772
push 1
push 0x1000
call fcn.1007a424
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1007e6d7
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1007e769
push 0x8000
push ebx
call fcn.1007e0d1
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1007e700
jg 0x1007e6fb
cmp ecx, 0x1000
jb 0x1007e700
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10077c67
add esp, 0x10
cmp eax, 0xffffffff
je 0x1007e745
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1007e6fb
jl 0x1007e72c
test ecx, ecx
jne 0x1007e6ed
push dword [ebp - 0xc]
push ebx
call fcn.1007e0d1
push esi
call fcn.10078429
add esp, 0xc
xor ebx, ebx
jmp 0x1007e7d5
cmp byte [edi + 0x24], 0
je 0x1007e75c
cmp dword [edi + 0x20], 5
jne 0x1007e75c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1007e767
mov ebx, dword [edi + 0x18]
jmp 0x1007e769
xor ebx, ebx
push esi
call fcn.10078429
pop ecx
jmp 0x1007e7d5
test ecx, ecx
jg 0x1007e73e
jl 0x1007e77c
test eax, eax
jae 0x1007e73e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10071926
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1007e79c
cmp byte [edi + 0x1c], 0
je 0x1007e73e
jmp 0x1007e7cd
push ebx
call fcn.1007e56a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1007e73e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1007e7d5
cmp byte [edi + 0x1c], 0
je 0x1007e7d2
mov ebx, dword [edi + 0x18]
jmp 0x1007e7d5
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10071926
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret