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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, edx
shr eax, 4
xor eax, ecx
and eax, 0xf0f0f0f
xor ecx, eax
shl eax, 4
xor edx, eax
mov eax, edx
shr eax, 0x10
xor eax, ecx
and eax, 0xffff
xor ecx, eax
shl eax, 0x10
xor edx, eax
mov eax, ecx
shr eax, 2
xor eax, edx
and eax, 0x33333333
xor edx, eax
shl eax, 2
xor ecx, eax
mov eax, ecx
shr eax, 8
xor eax, edx
and eax, 0xff00ff
xor edx, eax
shl eax, 8
xor eax, ecx
rol eax, 1
mov ecx, eax
xor ecx, edx
and ecx, 0xaaaaaaaa
push ebx
xor eax, ecx
xor ecx, edx
push esi
rol ecx, 1
push edi
mov edi, 0x5552e48
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 8
mov esi, eax
ror esi, 4
xor esi, dword [edi]
push 0x3f
mov ecx, esi
shr ecx, 0x18
and ecx, 0x3f
mov edx, dword [ecx*4 + 0x55436b0]
mov ebx, esi
shr ebx, 0x10
and ebx, 0x3f
or edx, dword [ebx*4 + 0x55438b0]
mov ecx, esi
shr ecx, 8
and ecx, 0x3f
or edx, dword [ecx*4 + 0x5543ab0]
and esi, 0x3f
or edx, dword [esi*4 + 0x5543cb0]
mov esi, dword [edi + 4]
xor esi, eax
mov ecx, esi
shr ecx, 0x18
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x55437b0]
mov ebx, esi
shr ebx, 0x10
and ebx, 0x3f
or ecx, dword [ebx*4 + 0x55439b0]
mov ebx, esi
shr ebx, 8
and ebx, 0x3f
or ecx, dword [ebx*4 + 0x5543bb0]
add edi, 0x10
mov ebx, ecx
pop ecx
and esi, ecx
or ebx, dword [esi*4 + 0x5543db0]
or ebx, edx
xor dword [ebp - 4], ebx
mov esi, dword [ebp - 4]
ror esi, 4
xor esi, dword [edi - 8]
mov edx, esi
shr edx, 0x18
and edx, ecx
mov edx, dword [edx*4 + 0x55436b0]
mov ebx, esi
shr ebx, 0x10
and ebx, ecx
or edx, dword [ebx*4 + 0x55438b0]
mov ebx, esi
shr ebx, 8
and ebx, ecx
or edx, dword [ebx*4 + 0x5543ab0]
and esi, ecx
or edx, dword [esi*4 + 0x5543cb0]
mov esi, dword [edi - 4]
xor esi, dword [ebp - 4]
mov ebx, esi
shr ebx, 0x18
and ebx, ecx
mov ebx, dword [ebx*4 + 0x55437b0]
mov ecx, esi
shr ecx, 0x10
and ecx, 0x3f
or ebx, dword [ecx*4 + 0x55439b0]
mov ecx, esi
shr ecx, 8
and ecx, 0x3f
or ebx, dword [ecx*4 + 0x5543bb0]
and esi, 0x3f
or ebx, dword [esi*4 + 0x5543db0]
or ebx, edx
xor eax, ebx
dec dword [ebp - 8]
jne 0x1002ed67
ror eax, 1
mov edx, eax
xor edx, dword [ebp - 4]
pop edi
and edx, 0xaaaaaaaa
xor eax, edx
xor edx, dword [ebp - 4]
ror edx, 1
mov ecx, edx
shr ecx, 8
xor ecx, eax
and ecx, 0xff00ff
xor eax, ecx
shl ecx, 8
xor edx, ecx
mov ecx, edx
shr ecx, 2
xor ecx, eax
and ecx, 0x33333333
xor eax, ecx
shl ecx, 2
xor edx, ecx
mov ecx, eax
shr ecx, 0x10
xor ecx, edx
and ecx, 0xffff
xor edx, ecx
shl ecx, 0x10
xor eax, ecx
mov ecx, eax
shr ecx, 4
xor ecx, edx
and ecx, 0xf0f0f0f
mov esi, ecx
shl esi, 4
xor esi, eax
mov eax, dword [ebp + 8]
mov dword [eax], esi
xor ecx, edx
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 4
Function at 0x100316e8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
mov dword [ebp - 8], edi
cmp eax, ecx
jb 0x10031777
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.1003a582
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
sub eax, 2
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x10031735
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
sub eax, 2
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x10031758
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x1003188e
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
cmp ecx, edx
jbe 0x1003179f
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jne 0x100317a9
xor eax, eax
jmp 0x100317e1
sub ecx, dword [ebp - 4]
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
cmp dword [ecx + 0x18], 1
jne 0x100317cb
push dword [ebp - 4]
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
call fcn.1003959e
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
push dword [ebp - 4]
push dword [edi]
push eax
call fcn.1003a582
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edx, dword [esi + 0x74]
cmp edx, 3
jb 0x10031809
mov edi, dword [esi + 0x6c]
add edi, dword [esi + 0x38]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edi]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edi + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edx, 0x106
jae 0x1003181d
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x100316f3
mov ecx, dword [esi + 0x16c0]
mov eax, dword [esi + 0x3c]
cmp ecx, eax
jae 0x1003188e
mov edi, dword [esi + 0x6c]
add edi, edx
cmp ecx, edi
jae 0x1003185d
sub eax, edi
mov ebx, eax
mov eax, 0x102
cmp ebx, eax
jbe 0x10031842
mov ebx, eax
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call fcn.1003a588
add esp, 0xc
add ebx, edi
mov dword [esi + 0x16c0], ebx
jmp 0x1003188e
lea edx, [edi + 0x102]
cmp ecx, edx
jae 0x1003188e
sub edi, ecx
add edi, 0x102
sub eax, ecx
cmp edi, eax
jbe 0x10031877
mov edi, eax
mov eax, dword [esi + 0x38]
push edi
add eax, ecx
push 0
push eax
call fcn.1003a588
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebx
leave
ret
Function at 0x1003a550
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
xor eax, 0xffffffff
test ecx, ecx
mov esi, dword [ebp + 8]
je 0x1003a579
xor al, byte [esi]
movzx edx, al
shr eax, 8
mov edx, dword [edx*4 + 0x5543100]
inc esi
xor eax, edx
dec ecx
jne 0x1003a564
xor eax, 0xffffffff
pop esi
leave
ret 0xc
Function at 0x10001d90
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100287db
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x10037080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x444]
call fcn.100058e0
push str..plugin_filter.ini
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x414]
cmp dword [ebp - 0x430], 0xf
lea eax, [ebp - 0x444]
push 0x400
cmova eax, dword [ebp - 0x444]
push ecx
push eax
push str.MinGoldAmount
push str.Misc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xorps xmm0, xmm0
mov dword [ebp - 0x41c], 0
lea ecx, [ebp - 0x414]
mov dword [ebp - 0x418], 0
movups xmmword [ebp - 0x42c], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001e30
sub ecx, edx
lea eax, [ebp - 0x414]
push ecx
push eax
lea ecx, [ebp - 0x42c]
call fcn.100060f0
mov byte [ebp - 4], 2
call fcn.10010efa
cmp dword [ebp - 0x418], 0xf
lea esi, [ebp - 0x42c]
mov edi, eax
lea eax, [ebp - 0x44c]
cmova esi, dword [ebp - 0x42c]
push 0xa
push eax
push esi
mov dword [edi], 0
call fcn.100118ff
add esp, 0xc
mov dword [ebp - 0x448], eax
cmp esi, dword [ebp - 0x44c]
je 0x10001fb7
cmp dword [edi], 0x22
je 0x10001fc1
jmp 0x10001f0a
mov ecx, dword [ebp - 0x418]
cmp ecx, 0xf
jbe 0x10001f44
mov edx, dword [ebp - 0x42c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10001f3a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10001fcb
push ecx
push edx
call fcn.1000b88e
add esp, 8
mov ecx, dword [ebp - 0x430]
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0xf
mov byte [ebp - 0x42c], 0
cmp ecx, 0xf
jbe 0x10001f95
mov edx, dword [ebp - 0x444]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10001f8b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10001fcb
push ecx
push edx
call fcn.1000b88e
add esp, 8
mov eax, dword [ebp - 0x448]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1000b84b
mov esp, ebp
pop ebp
ret
push str.invalid_stoi_argument
call fcn.1000ad51
push str.stoi_argument_out_of_range
call fcn.1000ad91
call fcn.100127aa
int3
Function at 0x10005540
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp edx, eax
je 0x100056da
cmp dword [edx + 0x1c], 0xf
mov eax, dword [ecx + 4]
push esi
mov dword [ebp - 0x18], eax
mov esi, edx
mov eax, dword [ecx + 0xc]
push edi
mov dword [ebp - 0x14], eax
lea edi, [edx + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x10]
jbe 0x1000557b
mov edi, dword [edi]
xor edx, edx
push ebx
mov ebx, 0x811c9dc5
test eax, eax
je 0x100055a4
mov ecx, eax
nop dword [eax]
movzx eax, byte [edx + edi]
inc edx
xor eax, ebx
imul ebx, eax, 0x1000193
cmp edx, ecx
jb 0x10005590
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x18]
mov ecx, dword [ebp - 0x14]
and eax, ebx
lea eax, [ecx + eax*8]
mov ecx, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], eax
nop dword [eax]
mov edi, esi
mov ebx, esi
mov esi, dword [esi]
lea ecx, [edi + 8]
call fcn.100034d0
push 0x38
push edi
call fcn.1000b88e
mov eax, dword [ebp - 4]
add esp, 8
dec dword [eax + 8]
cmp ebx, dword [ebp - 0x1c]
je 0x10005609
mov eax, dword [ebp + 0xc]
cmp esi, eax
jne 0x100055c0
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 8]
jne 0x100055f8
mov edx, dword [ebp - 0xc]
mov dword [edx], esi
mov ecx, dword [ebp - 8]
pop ebx
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 8]
jne 0x1000561b
mov ecx, dword [ebp - 0x18]
mov dword [edx], ecx
jmp 0x1000561e
mov ecx, dword [ebp - 8]
mov dword [edx + 4], ecx
mov ecx, dword [ebp + 0xc]
cmp esi, ecx
je 0x100056cd
nop dword [eax]
cmp dword [esi + 0x1c], 0xf
lea edi, [esi + 8]
mov ebx, dword [edi + 0x10]
jbe 0x1000563e
mov edi, dword [edi]
xor ecx, ecx
mov edx, 0x811c9dc5
test ebx, ebx
je 0x10005664
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x10005650
mov eax, dword [ebp - 4]
and edx, dword [eax + 0x18]
mov eax, dword [ebp - 0x14]
lea eax, [eax + edx*8]
mov dword [ebp + 8], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov edi, esi
mov ebx, esi
mov esi, dword [esi]
lea ecx, [edi + 8]
call fcn.100034d0
push 0x38
push edi
call fcn.1000b88e
mov eax, dword [ebp - 4]
add esp, 8
dec dword [eax + 8]
cmp ebx, dword [ebp - 0x1c]
je 0x100056b7
mov eax, dword [ebp + 0xc]
cmp esi, eax
jne 0x10005676
mov ecx, dword [ebp + 8]
pop ebx
pop edi
mov dword [ecx], esi
mov ecx, dword [ebp - 8]
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
mov dword [ecx + 4], edx
mov ecx, dword [ebp + 0xc]
cmp esi, ecx
jne 0x10005630
mov eax, dword [ebp - 8]
pop ebx
pop edi
mov dword [eax], esi
mov dword [esi + 4], eax
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x10005a40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, ecx
mov dword [ebp - 4], eax
mov esi, edi
cmp dword [edi + 0x14], 0xf
mov ebx, dword [edi + 0x10]
jbe 0x10005a5c
mov esi, dword [edi]
xor ecx, ecx
mov edx, 0x811c9dc5
test ebx, ebx
je 0x10005a7b
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x10005a67
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0xc]
and ecx, edx
mov edx, dword [ebp - 4]
mov esi, dword [eax + ecx*8 + 4]
mov edx, dword [edx + 4]
mov dword [ebp + 0xc], edx
cmp esi, edx
jne 0x10005aa9
mov eax, dword [ebp + 8]
xor esi, esi
test esi, esi
pop edi
cmove esi, edx
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [eax + ecx*8]
lea eax, [esi + 8]
push eax
push edi
call fcn.10006a20
test al, al
je 0x10005ad9
nop word [eax + eax]
cmp esi, ebx
je 0x10005ad7
mov esi, dword [esi + 4]
lea eax, [esi + 8]
push eax
push edi
call fcn.10006a20
test al, al
jne 0x10005ac0
jmp 0x10005ad9
xor esi, esi
mov eax, dword [ebp + 8]
test esi, esi
mov edx, dword [ebp + 0xc]
cmove esi, edx
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100064d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push esi
mov esi, 1
mov dword [ebp - 0x10], ebx
mov eax, esi
shl eax, cl
push edi
cmp edx, eax
ja 0x1000664a
lea eax, [edx - 1]
or eax, esi
bsr ecx, eax
mov eax, dword [ebx + 4]
push eax
mov dword [ebp + 8], eax
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [ebx + 0xc]
lea eax, [esi + esi]
push eax
call fcn.10006660
lea eax, [esi - 1]
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x18], eax
mov esi, dword [ebx + 4]
mov eax, dword [ebp + 8]
mov esi, dword [esi]
mov edi, esi
cmp esi, eax
je 0x10006625
cmp dword [esi + 0x1c], 0xf
lea ecx, [esi + 8]
mov edi, dword [edi]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
jbe 0x10006551
mov edx, dword [ecx]
mov dword [ebp - 4], edx
xor edx, edx
mov ebx, 0x811c9dc5
cmp dword [ecx + 0x10], edx
jbe 0x1000657a
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 8]
movzx ecx, byte [edx + eax]
inc edx
xor ecx, ebx
imul ebx, ecx, 0x1000193
cmp edx, edi
jb 0x10006563
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0xc]
and edx, ebx
lea ecx, [ecx + edx*8]
mov dword [ebp - 4], ecx
cmp dword [ecx], eax
jne 0x10006599
mov dword [ecx], esi
mov dword [ecx + 4], esi
jmp 0x1000661b
mov ebx, dword [ecx + 4]
lea eax, [ebx + 8]
push eax
lea eax, [esi + 8]
push eax
call fcn.10006a20
test al, al
jne 0x100065d3
mov ebx, dword [ebx]
cmp ebx, esi
je 0x100065cb
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], esi
jmp 0x10006618
mov eax, dword [ebp - 4]
cmp dword [eax], ebx
je 0x100065fb
nop word [eax + eax]
mov ebx, dword [ebx + 4]
lea eax, [ebx + 8]
push eax
lea eax, [esi + 8]
push eax
call fcn.10006a20
test al, al
je 0x1000662e
mov eax, dword [ebp - 4]
cmp dword [eax], ebx
jne 0x100065e0
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax], esi
mov eax, dword [ebp + 8]
mov esi, edi
cmp edi, eax
jne 0x10006535
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 4]
mov ebx, dword [ebx]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
jmp 0x10006618
push str.invalid_hash_bucket_count
call fcn.1000ad71
int3
Function at 0x100161e0
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002cdd8
push 0x1002cdd0
push str.FlsAlloc
push 0x1f
call fcn.1001a4d2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001a63e
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002914c]
call esi
jmp 0x1001a644
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001a688
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002cde8
push 0x1002cde0
push str.FlsGetValue
push 0x21
call fcn.1001a4d2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001a6bf
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002914c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001a6c7
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002cdf0
push 0x1002cde8
push str.FlsSetValue
push 0x22
call fcn.1001a4d2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001a701
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002914c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001b11d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1000c740
mov eax, dword [0x10037080]
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.10016ea2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1001b15f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1001b2bb
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100281d0
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 + 0x100388a8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1001bf1e
mov ecx, dword [esi*4 + 0x100388a8]
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 0x1001b2b4
cmp eax, dword [ecx + edi + 0x24]
jne 0x1001b2b4
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 0x1001b2b4
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001bf1e
add esp, 0x14
test edx, edx
jl 0x1001b2b4
jg 0x1001b22a
test eax, eax
jb 0x1001b2b4
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1001b2b4
jl 0x1001b244
cmp dword [ebp - 0x1008], eax
ja 0x1001b2b4
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1001b262
test ebx, ebx
je 0x1001b29b
cmp ecx, edi
jae 0x1001b29b
mov al, byte [ecx]
cmp al, 0xd
jne 0x1001b27c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1001b288
cmp byte [ecx + 1], 0xa
jne 0x1001b288
inc ecx
jmp 0x1001b288
movzx eax, al
movsx eax, byte [eax + 0x10037328]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1001b262
cmp edx, ebx
jne 0x1001b262
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1001b2b9
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1000b84b
leave
ret
Function at 0x1001b3b6
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 + 0x100388a8]
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 0x1001b3f6
cmp byte [ebx], 0xa
jne 0x1001b3f6
or byte [edi + eax + 0x28], 4
jmp 0x1001b3fb
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 0x1001b4fa
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1001b4dd
inc eax
cmp dl, 0xd
je 0x1001b427
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1001b44d
cmp eax, ecx
jae 0x1001b45b
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 0x1001b40f
jmp 0x1001b4fa
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 0x1001b4d8
cmp dword [ebp - 0x10], 0
je 0x1001b4d8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100388a8]
test byte [eax + edi + 0x28], 0x48
je 0x1001b4b2
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1001b49d
mov byte [esi], dl
jmp 0x1001b4ae
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100388a8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1001b4fa
cmp byte [ebp - 1], 0xa
jne 0x1001b4c1
cmp esi, ebx
jne 0x1001b4c1
mov byte [esi], 0xa
jmp 0x1001b4f9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001bf3c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1001b4fa
mov byte [esi], 0xd
jmp 0x1001b4f9
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100388a8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1001b4f7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1001b4fa
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret