joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100570c0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [esp + 0x14]
test eax, eax
jg 0x100570e1
jl 0x100570d7
test esi, esi
jne 0x100570e1
pop esi
xor eax, eax
xor edx, edx
pop ebx
pop ecx
ret 0xc
cmp dword [ebx + 0x38], 0
push ebp
push edi
mov edi, esi
je 0x10057194
mov ebp, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
nop dword [eax]
mov ecx, ebx
call fcn.10055800
mov esi, eax
mov eax, edx
mov dword [esp + 0x10], eax
test eax, eax
jl 0x10057151
jg 0x10057119
test esi, esi
je 0x10057151
cmp ebp, eax
jg 0x10057129
jl 0x10057123
cmp edi, esi
jae 0x10057129
mov esi, edi
mov dword [esp + 0x10], ebp
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push dword [esp + 0x20]
call fcn.10086560
mov eax, dword [ebx + 0x2c]
add esp, 0xc
sub edi, esi
sbb ebp, dword [esp + 0x10]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x18]
jmp 0x10057170
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x10057180
mov eax, dword [esp + 0x18]
add edi, 0xffffffff
mov esi, 1
adc ebp, 0xffffffff
mov byte [eax], cl
add eax, esi
mov dword [esp + 0x18], eax
test ebp, ebp
jg 0x10057100
jl 0x10057180
test edi, edi
jne 0x10057100
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
sub eax, edi
pop edi
sbb edx, ebp
pop ebp
pop esi
pop ebx
pop ecx
ret 0xc
mov eax, dword [ebx + 0x1c]
mov ebp, dword [esp + 0x18]
mov edx, dword [eax]
test edx, edx
je 0x100571d9
mov eax, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
test eax, eax
je 0x100571e0
mov edi, dword [esp + 0x1c]
cmp eax, edi
cmovb esi, eax
push esi
push edx
push ebp
call fcn.10086560
mov eax, dword [ebx + 0x2c]
add ebp, esi
sub edi, esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x1c]
jmp 0x100571e0
lea eax, [ebx + 0x2c]
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x4c], 0
je 0x10057249
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1005720a
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [eax], edx
cmp edi, 0xfff
jbe 0x10057234
push dword [ebx + 0x4c]
push 0xfff
push 1
push ebp
call fcn.1009503d
add esp, 0x10
add ebp, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10057249
cmp edi, eax
ja 0x10057212
test edi, edi
je 0x10057249
push dword [ebx + 0x4c]
push edi
push 1
push ebp
call fcn.1009503d
add esp, 0x10
sub edi, eax
mov edx, dword [esp + 0x20]
sub esi, edi
pop edi
pop ebp
mov eax, esi
sbb edx, 0
pop esi
pop ebx
pop ecx
ret 0xc
Function at 0x10058650
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
push 0
lea edi, [ecx + 8]
mov dword [esp + 0x14], 0x46464952
push 4
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.10056da0
push 0
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov ecx, edi
call fcn.10056da0
push 0
push 4
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x45564157
push eax
mov ecx, edi
call fcn.10056da0
push 0
push 4
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x20746d66
push eax
mov ecx, edi
call fcn.10056da0
push 0
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x10
push eax
mov ecx, edi
call fcn.10056da0
push 0
push 2
lea eax, [esp + 0x14]
mov word [esp + 0x14], 1
push eax
mov ecx, edi
call fcn.10056da0
mov ebx, dword [esp + 0x28]
mov ecx, edi
movzx esi, bx
mov eax, esi
mov byte [esp + 0x28], bl
shr eax, 8
push 0
mov byte [esp + 0x2d], al
lea eax, [esp + 0x2c]
push 2
push eax
call fcn.10056da0
mov ecx, dword [esp + 0x24]
mov eax, ecx
shr eax, 8
mov byte [esp + 0x29], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x2a], al
mov eax, ecx
shr eax, 0x18
push 0
mov byte [esp + 0x2f], al
lea eax, [esp + 0x2c]
push 4
mov byte [esp + 0x30], cl
mov ecx, edi
push eax
call fcn.10056da0
mov ecx, dword [esp + 0x24]
imul ecx, ebx
mov dword [esp + 0x24], ecx
add ecx, ecx
mov byte [esp + 0x24], cl
mov eax, ecx
shr eax, 8
mov byte [esp + 0x25], al
mov eax, ecx
shr eax, 0x10
push 0
shr ecx, 0x18
mov byte [esp + 0x2a], al
lea eax, [esp + 0x28]
push 4
mov byte [esp + 0x2f], cl
mov ecx, edi
push eax
call fcn.10056da0
lea eax, [esi + esi]
mov ecx, edi
movzx eax, ax
mov byte [esp + 0x24], al
shr eax, 8
push 0
mov byte [esp + 0x29], al
lea eax, [esp + 0x28]
push 2
push eax
call fcn.10056da0
push 0
push 2
lea eax, [esp + 0x2c]
mov word [esp + 0x2c], 0x10
push eax
mov ecx, edi
call fcn.10056da0
push 0
push 4
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x61746164
push eax
mov ecx, edi
call fcn.10056da0
push 0
push 4
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0
push eax
mov ecx, edi
call fcn.10056da0
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x14
ret 8

Function at 0x1005a1e0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
je 0x1005a1ff
push eax
push dword [esp + 0xc]
push 1
push dword [esp + 0x10]
call fcn.1009503d
add esp, 0x10
xor edx, edx
ret 0xc
or eax, 0xffffffff
or edx, eax
ret 0xc
Function at 0x10063510
Capabilities:
Log keystrokes
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
add eax, 0xfffffff8
cmp eax, 0xd6
ja case.0x10063529.10
movzx eax, byte [eax + 0x100639a0]
jmp dword [eax*4 + 0x10063814]
mov eax, dword fs:[0x2c]
mov ecx, dword [0x102a73f4]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x102a6af4]
cmp eax, dword [ecx + 8]
jg 0x100637d6
mov eax, dword [esp + 8]
sar eax, 0x10
movzx ecx, al
xor eax, eax
cmp ecx, dword [0x102a6af0]
setne al
lea eax, [eax*4 + 0x26]
ret
mov eax, dword [esp + 8]
shr eax, 0x10
and eax, 0x100
neg eax
sbb eax, eax
and eax, 4
add eax, 0x27
ret
mov eax, dword [esp + 8]
shr eax, 0x10
and eax, 0x100
neg eax
sbb eax, eax
and eax, 4
add eax, 0x25
ret
mov eax, 0x28
ret
mov eax, 0x2c
ret
mov eax, 0x2d
ret
mov eax, 0x30
ret
mov eax, 0x34
ret
mov eax, 0x37
ret
mov eax, 0x38
ret
mov eax, 0x2e
ret
mov eax, 0x2f
ret
mov eax, 0x31
ret
mov eax, 0x32
ret
mov eax, 0x33
ret
mov eax, 0x35
ret
mov eax, 0x36
ret
mov eax, 0x24
ret
mov eax, 0x39
ret
mov eax, 0x3a
ret
mov eax, 0x3b
ret
mov eax, 0x3c
ret
mov eax, 0x3d
ret
mov eax, 0x3e
ret
mov eax, 0x3f
ret
mov eax, 0x40
ret
mov eax, 0x41
ret
mov eax, 0x42
ret
mov eax, 0x43
ret
mov eax, 0x44
ret
mov eax, 0x45
ret
mov eax, 0x46
ret
mov eax, 0x64
ret
mov eax, 0x55
ret
mov eax, 0x56
ret
mov eax, 0x57
ret
mov eax, 0x58
ret
mov eax, 0x59
ret
mov eax, 0x5a
ret
mov eax, 0x5b
ret
mov eax, 0x5c
ret
mov eax, 0x5d
ret
mov eax, 0x5e
ret
mov eax, 0x5f
ret
mov eax, 0x60
ret
mov eax, 0x61
ret
mov eax, 0x62
ret
mov eax, 0x63
ret
mov eax, 0x47
ret
mov eax, 0x48
ret
mov eax, 0x49
ret
mov eax, 0x4a
ret
mov eax, 0x4b
ret
mov eax, 0x4c
ret
mov eax, 0x4d
ret
mov eax, 0x4e
ret
mov eax, 0x4f
ret
mov eax, 0x50
ret
mov eax, 0x51
ret
mov eax, 0x52
ret
mov eax, 0x53
ret
mov eax, 0x54
ret
xor eax, eax
ret
mov eax, 0x19
ret
mov eax, 4
ret
mov eax, 0x11
ret
mov eax, 0x13
ret
mov eax, 0x18
ret
mov eax, 0x14
ret
mov eax, 8
ret
mov eax, 0xe
ret
mov eax, 0xf
ret
mov eax, 0x10
ret
mov eax, 0x12
ret
mov eax, 3
ret
mov eax, 5
ret
mov eax, 6
ret
mov eax, 7
ret
mov eax, 9
ret
mov eax, 0xa
ret
mov eax, 0xb
ret
mov eax, 0xc
ret
mov eax, 0x16
ret
mov eax, 0x17
ret
mov eax, 2
ret
mov eax, 0x15
ret
mov eax, 1
ret
mov eax, 0xd
ret
mov eax, 0x1a
ret
mov eax, 0x1b
ret
mov eax, 0x1c
ret
mov eax, 0x1d
ret
mov eax, 0x1e
ret
mov eax, 0x1f
ret
mov eax, 0x20
ret
mov eax, 0x21
ret
mov eax, 0x22
ret
mov eax, 0x23
ret
or eax, 0xffffffff
ret
push 0x102a6af4
call fcn.10084502
add esp, 4
cmp dword [0x102a6af4], 0xffffffff
jne 0x10063550
push 0
push 0xa0
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push 0x102a6af4
mov dword [0x102a6af0], eax
call fcn.100844b1
add esp, 4
jmp 0x10063550
Function at 0x10075270
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
push ebx
push ebp
push esi
mov eax, dword [ecx + 0x1c]
mov edx, dword [ecx + 4]
push edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x10], edx
push 4
push 0x80
mov dword [edi + 4], 0x80
mov dword [edi + 8], 0x40
mov ecx, dword [eax + 0xb74]
mov dword [edi], edx
mov dword [edi + 0xc], ecx
mov dword [edi + 0xa4], 0x80
mov eax, dword [eax + 4]
cdq
sub eax, edx
sar eax, 1
mov dword [edi + 0xb0], eax
call fcn.100956c6
mov dword [edi + 0x24], eax
lea eax, [edi + 0x10]
push 0x80
push eax
call fcn.10074820
add esp, 0x10
xor esi, esi
nop dword [eax]
movd xmm0, esi
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x101ec148]
mulsd xmm0, qword [0x1028a320]
call fcn.10096d40
mov eax, dword [edi + 0x24]
cvtsd2ss xmm0, xmm0
movss dword [eax + esi*4], xmm0
mov eax, dword [edi + 0x24]
movss xmm0, dword [eax + esi*4]
mulss xmm0, xmm0
movss dword [eax + esi*4], xmm0
inc esi
cmp esi, 0x80
jl 0x100752e0
mov dword [edi + 0x28], 2
lea esi, [edi + 0x34]
mov dword [edi + 0x2c], 4
mov dword [edi + 0x38], 4
mov dword [edi + 0x3c], 5
mov dword [edi + 0x48], 6
mov dword [edi + 0x4c], 6
mov dword [edi + 0x58], 9
mov dword [edi + 0x5c], 8
mov dword [edi + 0x68], 0xd
mov dword [edi + 0x6c], 8
mov dword [edi + 0x78], 0x11
mov dword [edi + 0x7c], 8
mov dword [edi + 0x88], 0x16
mov dword [edi + 0x8c], 8
mov dword [esp + 0x24], 7
nop word [eax + eax]
mov ebp, dword [esi - 8]
lea eax, [ebp*4]
push eax
call fcn.1009569a
add esp, 4
mov edi, eax
xor ebx, ebx
mov dword [esi - 4], edi
test ebp, ebp
jle 0x10075415
movd xmm1, ebp
cvtdq2pd xmm1, xmm1
movsd qword [esp + 0x14], xmm1
nop dword [eax]
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [0x1028a2e0]
divsd xmm0, xmm1
mulsd xmm0, qword [0x1028a320]
call fcn.10096d40
movsd xmm1, qword [esp + 0x14]
cvtsd2ss xmm0, xmm0
movss dword [edi + ebx*4], xmm0
mov edi, dword [esi - 4]
movss xmm0, dword [edi + ebx*4]
inc ebx
addss xmm0, dword [esi]
movss dword [esi], xmm0
cmp ebx, ebp
jl 0x100753d0
movss xmm0, dword [esi]
movsd xmm1, qword [0x1028a300]
cvtps2pd xmm0, xmm0
divsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movss dword [esi], xmm0
add esi, 0x10
sub dword [esp + 0x24], 1
jne 0x100753a0
mov ecx, dword [esp + 0x10]
push 0x90
lea eax, [ecx*8]
sub eax, ecx
push eax
call fcn.100956c6
mov edi, dword [esp + 0x28]
push 4
push dword [edi + 0xa4]
mov dword [edi + 0x98], eax
call fcn.100956c6
add esp, 0x10
mov dword [edi + 0xa0], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x1007e4f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x58]
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
or ebx, 0xffffffff
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x58], ecx
mov eax, dword [edi + 0x1c8]
lea ebp, [edi + 0x18]
mov ecx, dword [esp + 0x18]
lea esi, [edi + 8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], esi
nop dword [eax + eax]
lea eax, [esp + 0x24]
push eax
push ebp
call fcn.100cfe50
add esp, 8
test eax, eax
jns 0x1007e553
cdq
sub dword [esi], eax
lea eax, [edi + 8]
mov dword [esp + 0x18], eax
sbb dword [esi + 4], edx
mov esi, eax
jmp 0x1007e530
jne 0x1007e5e4
call fcn.1008e985
mov dword [eax], 0
cmp dword [edi + 0x2c0], 0
je 0x1007e6df
cmp dword [edi], 0
je 0x1007e6df
push 0x800
push ebp
call fcn.100cfb90
push dword [edi]
push 0x800
push 1
push eax
mov eax, dword [edi + 0x2c0]
call eax
mov esi, eax
add esp, 0x18
test esi, esi
jle 0x1007e5b8
push esi
push ebp
call fcn.100d0020
lea eax, [edi + 8]
add esp, 8
mov esi, eax
mov dword [esp + 0x18], eax
jmp 0x1007e530
jne 0x1007e5c8
call fcn.1008e985
cmp dword [eax], 0
jne 0x1007e6df
test esi, esi
je 0x1007e6df
js 0x1007e6df
lea eax, [edi + 8]
mov esi, eax
mov dword [esp + 0x18], eax
jmp 0x1007e530
mov ecx, dword [esi]
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 4]
cdq
add eax, dword [esp + 0x14]
mov dword [esi], eax
adc edx, ecx
mov dword [esi + 4], edx
test ecx, ecx
jl 0x1007e6df
jg 0x1007e60e
cmp dword [esp + 0x14], 0
jb 0x1007e6df
lea eax, [esp + 0x24]
push eax
call fcn.100cee60
add esp, 4
test eax, eax
jne 0x1007e6df
lea eax, [esp + 0x24]
push eax
call fcn.100cef90
add esp, 4
cmp eax, dword [esp + 0x20]
jne 0x1007e527
lea ecx, [esp + 0x24]
lea eax, [edi + 0x78]
push ecx
push eax
call fcn.100cf660
lea eax, [esp + 0x3c]
push eax
lea eax, [edi + 0x78]
push eax
call fcn.100cf620
add esp, 0x10
test eax, eax
je 0x1007e6ae
mov esi, dword [esp + 0x58]
lea ebp, [edi + 0x78]
jle 0x1007e691
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x60]
call fcn.101578a0
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x1007e691
cmp ebx, 0xffffffff
je 0x1007e68f
lea eax, [ecx + ebx]
sar eax, 2
cdq
add dword [esp + 0x10], eax
adc esi, edx
mov ebx, ecx
lea eax, [esp + 0x34]
push eax
push ebp
call fcn.100cf620
add esp, 8
test eax, eax
jne 0x1007e664
mov dword [esp + 0x58], esi
lea ebp, [edi + 0x18]
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
call fcn.100cef00
and eax, edx
add esp, 4
cmp eax, 0xffffffff
je 0x1007e527
lea eax, [esp + 0x24]
push eax
call fcn.100cef00
add esp, 4
sub eax, dword [esp + 0x10]
sbb edx, dword [esp + 0x58]
mov ecx, edx
jmp 0x1007e6e7
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
pop ebx
test ecx, ecx
jg 0x1007e70a
jl 0x1007e6f5
test eax, eax
jae 0x1007e70a
xorps xmm0, xmm0
movlpd qword [esp + 8], xmm0
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
add esp, 0x44
ret
mov edx, ecx
add esp, 0x44
ret
Function at 0x1008a0b4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10085110
mov eax, dword [0x102a0600]
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.1008e83e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1008a0f6
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1008a252
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10085140
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 + 0x102a7a88]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1009e6d3
mov ecx, dword [esi*4 + 0x102a7a88]
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 0x1008a24b
cmp eax, dword [ecx + edi + 0x24]
jne 0x1008a24b
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 0x1008a24b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1009e6d3
add esp, 0x14
test edx, edx
jl 0x1008a24b
jg 0x1008a1c1
test eax, eax
jb 0x1008a24b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1008a24b
jl 0x1008a1db
cmp dword [ebp - 0x1008], eax
ja 0x1008a24b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1008a1f9
test ebx, ebx
je 0x1008a232
cmp ecx, edi
jae 0x1008a232
mov al, byte [ecx]
cmp al, 0xd
jne 0x1008a213
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1008a21f
cmp byte [ecx + 1], 0xa
jne 0x1008a21f
inc ecx
jmp 0x1008a21f
movzx eax, al
movsx eax, byte [eax + 0x102a0880]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1008a1f9
cmp edx, ebx
jne 0x1008a1f9
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1008a250
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10084465
leave
ret

Function at 0x10098f05
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10098f44
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10098f44
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10098f44
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10098f44
cmp dword [ecx + 0x74], 0xe
jbe 0x10098f44
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100a0469
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 + 0x102a7a88]
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 0x100a04a9
cmp byte [ebx], 0xa
jne 0x100a04a9
or byte [edi + eax + 0x28], 4
jmp 0x100a04ae
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 0x100a05ad
mov dl, byte [eax]
cmp dl, 0x1a
je 0x100a0590
inc eax
cmp dl, 0xd
je 0x100a04da
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100a0500
cmp eax, ecx
jae 0x100a050e
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 0x100a04c2
jmp 0x100a05ad
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 0x100a058b
cmp dword [ebp - 0x10], 0
je 0x100a058b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x102a7a88]
test byte [eax + edi + 0x28], 0x48
je 0x100a0565
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100a0550
mov byte [esi], dl
jmp 0x100a0561
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x102a7a88]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100a05ad
cmp byte [ebp - 1], 0xa
jne 0x100a0574
cmp esi, ebx
jne 0x100a0574
mov byte [esi], 0xa
jmp 0x100a05ac
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1009e6f1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100a05ad
mov byte [esi], 0xd
jmp 0x100a05ac
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x102a7a88]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100a05aa
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100a05ad
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100a05b6
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 + 0x102a7a88]
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 0x100a05fc
cmp word [ebx], dx
jne 0x100a05fc
or byte [eax + edi + 0x28], 4
jmp 0x100a0601
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 0x100a0764
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 0x100a0744
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100a0642
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100a0678
cmp eax, edx
jae 0x100a0686
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 0x100a061d
jmp 0x100a0764
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 0x100a073f
cmp dword [ebp - 0x18], 0
je 0x100a073f
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x102a7a88]
test byte [eax + edi + 0x28], 0x48
je 0x100a0715
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 0x100a06d9
mov word [esi], cx
jmp 0x100a0710
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x102a7a88]
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 + 0x102a7a88]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x102a7a88]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100a0764
pop eax
cmp word [ebp - 4], ax
jne 0x100a0725
cmp esi, ebx
jne 0x100a0725
mov word [esi], ax
jmp 0x100a0761
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1009e6f1
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100a0764
push 0xd
pop eax
jmp 0x100a0720
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x102a7a88]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100a075e
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100a0764
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 0x100a1d67
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101f90ac
push 0x101f90a4
push str.FlsAlloc
push 0x1f
call fcn.100a1b92
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100a1d9b
push dword [ebp + 8]
mov ecx, esi
call dword [0x10169368]
call esi
jmp 0x100a1da1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100a1de5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101f90bc
push 0x101f90b4
push str.FlsGetValue
push 0x21
call fcn.100a1b92
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100a1e1c
push dword [ebp + 8]
mov ecx, esi
call dword [0x10169368]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100a1e24
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101f90c4
push 0x101f90bc
push str.FlsSetValue
push 0x22
call fcn.100a1b92
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100a1e5e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10169368]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]