joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100272e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
mov ebx, ecx
push ebp
push esi
xor esi, esi
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x14], ecx
push edi
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x10027302
mov esi, dword [ecx]
lea edx, [ecx + 4]
xor ecx, ecx
mov dword [esp + 0x20], ecx
test edx, edx
je 0x10027315
mov ecx, dword [edx]
mov dword [esp + 0x20], ecx
xor edi, edi
add edx, 4
je 0x1002731e
mov edi, dword [edx]
xor ebp, ebp
add edx, 4
je 0x10027327
mov ebp, dword [edx]
mov edx, dword [ebx + 8]
sub eax, 8
mov dword [esp + 0x10], edx
sub edi, dword [eax + 4]
sub esi, dword [eax]
test edx, edx
je 0x10027397
nop word [eax + eax]
sub eax, 8
mov dword [esp + 0x14], eax
mov eax, esi
mov esi, ebp
mov ebp, edi
mov edi, ecx
mov ecx, eax
mov dword [esp + 0x20], ecx
lea ebx, [eax*2 + 1]
imul ebx, eax
lea edx, [ebp*2 + 1]
mov eax, dword [esp + 0x14]
imul edx, ebp
sub edi, dword [eax + 4]
sub esi, dword [eax]
rol ebx, 5
movzx ecx, bl
and ecx, 0x1f
rol edx, 5
ror edi, cl
movzx ecx, dl
xor edi, edx
and ecx, 0x1f
ror esi, cl
mov ecx, dword [esp + 0x20]
xor esi, ebx
sub dword [esp + 0x10], 1
jne 0x10027340
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
sub ebp, dword [eax + 4]
sub ecx, dword [eax]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x100273b4
mov eax, dword [eax]
xor esi, eax
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
test edx, edx
je 0x100273be
mov dword [edx], esi
lea esi, [edx + 4]
test eax, eax
lea edx, [eax + 4]
cmove edx, eax
test edx, edx
je 0x100273cf
xor ecx, dword [edx]
test esi, esi
je 0x100273d5
mov dword [esi], ecx
add esi, 4
lea ecx, [edx + 4]
test edx, edx
cmove ecx, edx
test ecx, ecx
je 0x100273e6
xor edi, dword [ecx]
test esi, esi
je 0x100273ec
mov dword [esi], edi
add esi, 4
lea eax, [ecx + 4]
test ecx, ecx
cmove eax, ecx
test eax, eax
je 0x100273ff
mov eax, dword [eax]
xor ebp, eax
test esi, esi
je 0x10027405
mov dword [esi], ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x10027410
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov dword [esp], 0
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, dword [esi + 0x18]
test eax, eax
je 0x10027430
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
xor ebx, ebx
add eax, 4
je 0x10027439
mov ebx, dword [eax]
lea ecx, [eax + 4]
xor eax, eax
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x1002744c
mov eax, dword [ecx]
mov dword [esp + 0x18], eax
xor edx, edx
add ecx, 4
je 0x10027455
mov edx, dword [ecx]
mov ecx, dword [esi + 8]
push edi
mov edi, dword [ebp]
add edi, ebx
mov dword [esp + 0x14], ecx
mov ebx, dword [ebp + 4]
add ebp, 8
add ebx, edx
test ecx, ecx
je 0x100274c2
nop
lea edx, [edi*2 + 1]
imul edx, edi
lea eax, [ebx*2 + 1]
imul eax, ebx
rol edx, 5
rol eax, 5
mov esi, edx
xor esi, dword [esp + 0x10]
movzx ecx, al
and ecx, 0x1f
mov dword [esp + 0x10], edi
rol esi, cl
mov edi, eax
xor edi, dword [esp + 0x1c]
mov eax, ebx
mov ebx, dword [ebp]
movzx ecx, dl
add ebx, esi
and ecx, 0x1f
mov dword [esp + 0x1c], eax
rol edi, cl
add edi, dword [ebp + 4]
add ebp, 8
sub dword [esp + 0x14], 1
jne 0x10027470
add eax, dword [ebp + 4]
mov ecx, dword [ebp]
add ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x100274e0
mov eax, dword [eax]
xor ecx, eax
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
test edx, edx
je 0x100274ea
mov dword [edx], ecx
lea esi, [edx + 4]
test eax, eax
lea edx, [eax + 4]
cmove edx, eax
test edx, edx
je 0x100274fb
xor edi, dword [edx]
test esi, esi
je 0x10027501
mov dword [esi], edi
add esi, 4
lea ecx, [edx + 4]
test edx, edx
pop edi
cmove ecx, edx
mov edx, dword [esp + 0x18]
test ecx, ecx
je 0x10027517
xor edx, dword [ecx]
test esi, esi
je 0x1002751d
mov dword [esi], edx
add esi, 4
lea eax, [ecx + 4]
test ecx, ecx
cmove eax, ecx
test eax, eax
je 0x10027530
mov eax, dword [eax]
xor ebx, eax
test esi, esi
je 0x10027536
mov dword [esi], ebx
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x1003b600
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
mov edx, dword [esp + 0x10]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov edi, dword [esp + 0x1c]
cmp eax, 4
jb 0x1003b638
mov esi, eax
shr esi, 2
nop
mov ecx, dword [edi]
sub eax, 4
xor ecx, dword [edx]
add edi, 4
or ebx, ecx
add edx, 4
sub esi, 1
jne 0x1003b620
mov dword [esp + 0x24], eax
mov esi, ebx
mov ecx, ebx
shr esi, 8
xor ebp, ebp
or esi, ebx
shr ecx, 0x10
and esi, 0xff00
or esi, ecx
movzx ecx, bl
shr esi, 8
or esi, ecx
mov dword [esp + 0x10], esi
test eax, eax
je 0x1003b727
cmp eax, 8
jb 0x1003b708
mov ebx, eax
mov esi, edi
and ebx, 0xfffffff8
xorps xmm4, xmm4
sub esi, edx
xorps xmm3, xmm3
mov dword [esp + 0x14], esi
mov ecx, edx
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
nop dword [eax + eax]
movd xmm2, dword [eax + ecx]
lea ecx, [ecx + 8]
movd xmm1, dword [ecx - 8]
xorps xmm0, xmm0
punpcklbw xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
movd xmm1, dword [ecx - 4]
por xmm4, xmm2
punpcklbw xmm1, xmm0
movd xmm2, dword [edi + ebp + 4]
add ebp, 8
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
por xmm3, xmm2
cmp ebp, ebx
jb 0x1003b690
mov eax, dword [esp + 0x24]
por xmm3, xmm4
movaps xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd ecx, xmm3
or esi, ecx
cmp ebp, eax
jae 0x1003b727
sub edi, edx
lea ebx, [edx + ebp]
sub eax, ebp
movzx edx, byte [ebx + edi]
lea ebx, [ebx + 1]
movzx ecx, byte [ebx - 1]
xor edx, ecx
or esi, edx
sub eax, 1
jne 0x1003b713
pop edi
test esi, esi
pop esi
pop ebp
sete al
pop ebx
add esp, 8
ret
Function at 0x1003b740
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x1c
test eax, eax
je 0x1003b886
mov edx, dword [esp + 0x20]
push ebx
mov ebx, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x2c]
push edi
cmp eax, 4
jb 0x1003b783
mov edi, eax
shr edi, 2
mov ecx, dword [esi]
sub eax, 4
xor ecx, dword [ebx]
add esi, 4
mov dword [edx], ecx
add ebx, 4
add edx, 4
sub edi, 1
jne 0x1003b768
mov dword [esp + 0x38], eax
push ebp
xor ebp, ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
test eax, eax
je 0x1003b882
cmp eax, 0x40
jb 0x1003b85f
lea ecx, [ebx - 1]
lea edi, [edx - 1]
add ecx, eax
add edi, eax
cmp edx, ecx
ja 0x1003b7b5
cmp edi, ebx
jae 0x1003b85f
lea ecx, [esi - 1]
add ecx, eax
cmp edx, ecx
ja 0x1003b7c6
cmp edi, esi
jae 0x1003b85f
mov ecx, eax
lea edi, [edx + 0x10]
mov eax, edx
mov dword [esp + 0x18], edi
sub eax, ebx
and ecx, 0xffffffc0
mov dword [esp + 0x20], eax
mov edi, esi
sub edi, ebx
mov dword [esp + 0x28], ecx
mov eax, esi
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x20]
mov ecx, ebx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
movups xmm0, xmmword [ecx]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [eax + ecx - 0x40]
lea edi, [edi + 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x30]
movups xmmword [edx + ecx - 0x40], xmm1
movups xmm1, xmmword [ebx + edi - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x20]
movups xmmword [edi - 0x40], xmm1
movups xmm1, xmmword [esi + ebp + 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x10]
movups xmmword [edi - 0x30], xmm1
movups xmm1, xmmword [esi + ebp + 0x30]
add ebp, 0x40
pxor xmm1, xmm0
movups xmmword [edi - 0x20], xmm1
cmp ebp, dword [esp + 0x28]
jb 0x1003b800
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
cmp ebp, eax
jae 0x1003b882
sub esi, ebx
lea edi, [ebx + ebp]
sub edx, ebx
sub eax, ebp
nop dword [eax]
mov cl, byte [edi + esi]
lea edi, [edi + 1]
xor cl, byte [edi - 1]
mov byte [edi + edx - 1], cl
sub eax, 1
jne 0x1003b870
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x1003b890
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1003b961
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
cmp eax, 4
jb 0x1003b8c2
mov edi, eax
shr edi, 2
mov ecx, dword [edx]
sub eax, 4
xor dword [esi], ecx
add edx, 4
add esi, 4
sub edi, 1
jne 0x1003b8b0
push ebx
xor ebx, ebx
test eax, eax
je 0x1003b95e
cmp eax, 0x40
jb 0x1003b93e
lea ecx, [edx - 1]
lea edi, [esi - 1]
add ecx, eax
add edi, eax
cmp esi, ecx
ja 0x1003b8e4
cmp edi, edx
jae 0x1003b93e
push ebp
mov edi, eax
mov ebp, edx
and edi, 0xffffffc0
mov ecx, esi
sub ebp, esi
movups xmm0, xmmword [ecx]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [ecx + ebp - 0x40]
pxor xmm1, xmm0
movups xmmword [ecx - 0x40], xmm1
movups xmm0, xmmword [ecx - 0x30]
movups xmm1, xmmword [edx + ebx + 0x10]
pxor xmm1, xmm0
movups xmmword [ecx - 0x30], xmm1
movups xmm0, xmmword [ecx - 0x20]
movups xmm1, xmmword [edx + ebx + 0x20]
pxor xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
movups xmm0, xmmword [ecx - 0x10]
movups xmm1, xmmword [edx + ebx + 0x30]
add ebx, 0x40
pxor xmm1, xmm0
movups xmmword [ecx - 0x10], xmm1
cmp ebx, edi
jb 0x1003b8f0
pop ebp
cmp ebx, eax
jae 0x1003b95e
sub edx, esi
lea edi, [ebx + esi]
sub eax, ebx
nop dword [eax]
mov cl, byte [edi + edx]
lea edi, [edi + 1]
xor byte [edi - 1], cl
sub eax, 1
jne 0x1003b950
pop ebx
pop edi
pop esi
ret

Function at 0x100411c0
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.10041360
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10041284
cmp dword [ebp - 4], 0x50000000
jb 0x10041201
cmp dword [ebp - 4], 0x80000000
ja 0x10041201
mov dword [ebp - 4], 0x4fff0000
jmp 0x100411da
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10045000
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 0x10041227
jmp 0x10041284
cmp dword [ebp - 0x14], 0x10000
jne 0x1004126a
cmp dword [ebp - 0x18], 0x10000
jb 0x1004126a
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 0x1004125d
mov eax, dword [ebp - 8]
jmp 0x10041286
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1004127f
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10041360
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100411da
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10041290
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10041390
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1004134c
cmp dword [ebp - 4], 0x50000000
jb 0x100412cc
cmp dword [ebp - 4], 0x80000000
ja 0x100412cc
mov dword [ebp - 4], 0x80010000
jmp 0x100412a5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10045000
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 0x100412f2
jmp 0x1004134c
cmp dword [ebp - 0x14], 0x10000
jne 0x10041335
cmp dword [ebp - 0x18], 0x10000
jb 0x10041335
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 0x10041328
mov eax, dword [ebp - 8]
jmp 0x1004134e
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10041347
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10041390
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100412a5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10041d10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10098b70]
mov dword [ebp - 4], eax
jmp 0x10041d29
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10041d46
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x10041d20
mov esp, ebp
pop ebp
ret
Function at 0x10049ec0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10043710
mov eax, dword [0x10087700]
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.10051cb7
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10049f02
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1004a05e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10043460
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 + 0x10099148]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10054000
mov ecx, dword [esi*4 + 0x10099148]
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 0x1004a057
cmp eax, dword [ecx + edi + 0x24]
jne 0x1004a057
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 0x1004a057
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10054000
add esp, 0x14
test edx, edx
jl 0x1004a057
jg 0x10049fcd
test eax, eax
jb 0x1004a057
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1004a057
jl 0x10049fe7
cmp dword [ebp - 0x1008], eax
ja 0x1004a057
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1004a005
test ebx, ebx
je 0x1004a03e
cmp ecx, edi
jae 0x1004a03e
mov al, byte [ecx]
cmp al, 0xd
jne 0x1004a01f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1004a02b
cmp byte [ecx + 1], 0xa
jne 0x1004a02b
inc ecx
jmp 0x1004a02b
movzx eax, al
movsx eax, byte [eax + 0x10087978]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1004a005
cmp edx, ebx
jne 0x1004a005
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1004a05c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1004344b
leave
ret

Function at 0x1004f4ab
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1004f4ea
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1004f4ea
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1004f4ea
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1004f4ea
cmp dword [ecx + 0x74], 0xe
jbe 0x1004f4ea
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1005313c
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 + 0x10099148]
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 0x1005317c
cmp byte [ebx], 0xa
jne 0x1005317c
or byte [edi + eax + 0x28], 4
jmp 0x10053181
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 0x10053280
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10053263
inc eax
cmp dl, 0xd
je 0x100531ad
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100531d3
cmp eax, ecx
jae 0x100531e1
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 0x10053195
jmp 0x10053280
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 0x1005325e
cmp dword [ebp - 0x10], 0
je 0x1005325e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10099148]
test byte [eax + edi + 0x28], 0x48
je 0x10053238
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10053223
mov byte [esi], dl
jmp 0x10053234
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10099148]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10053280
cmp byte [ebp - 1], 0xa
jne 0x10053247
cmp esi, ebx
jne 0x10053247
mov byte [esi], 0xa
jmp 0x1005327f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1005401e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10053280
mov byte [esi], 0xd
jmp 0x1005327f
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10099148]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1005327d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10053280
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10053289
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 + 0x10099148]
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 0x100532cf
cmp word [ebx], dx
jne 0x100532cf
or byte [eax + edi + 0x28], 4
jmp 0x100532d4
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 0x10053437
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 0x10053417
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10053315
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1005334b
cmp eax, edx
jae 0x10053359
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 0x100532f0
jmp 0x10053437
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 0x10053412
cmp dword [ebp - 0x18], 0
je 0x10053412
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10099148]
test byte [eax + edi + 0x28], 0x48
je 0x100533e8
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 0x100533ac
mov word [esi], cx
jmp 0x100533e3
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10099148]
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 + 0x10099148]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10099148]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10053437
pop eax
cmp word [ebp - 4], ax
jne 0x100533f8
cmp esi, ebx
jne 0x100533f8
mov word [esi], ax
jmp 0x10053434
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1005401e
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10053437
push 0xd
pop eax
jmp 0x100533f3
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10099148]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10053431
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10053437
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 0x100555f2
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10076c08
push 0x10076c00
push str.FlsAlloc
push 0x1f
call fcn.1005550e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10055626
push dword [ebp + 8]
mov ecx, esi
call dword [0x100621c8]
call esi
jmp 0x1005562c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10055670
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10076c18
push 0x10076c10
push str.FlsGetValue
push 0x21
call fcn.1005550e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100556a7
push dword [ebp + 8]
mov ecx, esi
call dword [0x100621c8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100556af
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.1INF
push 0x10076c18
push str.FlsSetValue
push 0x22
call fcn.1005550e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100556e9
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100621c8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10059415
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100594b2
push ebx
push esi
call fcn.100593de
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10054a18
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1005945f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100594b1
push edi
push eax
call fcn.10050ae5
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1005947f
call fcn.10050aab
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100594b0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10054a18
add esp, 0x20
test eax, eax
jne 0x1005949e
push edi
call fcn.10050aab
jmp 0x100594a6
push ebx
call fcn.10050aab
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret