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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor al, al
mov esi, ecx
mov cl, 0x2e
mov byte [ebp - 1], al
mov dl, 0x4b
mov byte [ebp - 7], cl
mov dh, 0x49
mov byte [ebp - 1], 0
xor dl, cl
xor dh, cl
push edi
mov bl, 0x4d
mov byte [ebp - 5], dl
mov ah, 0x48
mov byte [ebp - 2], dh
xor al, cl
xor bl, cl
xor ah, cl
mov byte [ebp - 6], al
sub esp, 0x18
mov byte [ebp - 4], bl
mov edx, esp
mov byte [ebp - 3], ah
xorps xmm0, xmm0
lea ecx, [ebp - 6]
lea edi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1009a260
sub ecx, edi
lea eax, [ebp - 6]
push ecx
push eax
mov ecx, edx
call fcn.100047c0
movaps xmm0, xmmword [0x10165bb0]
xor ecx, ecx
movups xmmword [ebp - 0x1e], xmm0
mov dword [ebp - 0xe], 0x222c232b
mov word [ebp - 0xa], 0x1936
mov byte [ebp - 8], 0
mov al, byte ds:[ebp - 0x1e]
xor byte [ebp + ecx - 0x1d], al
inc ecx
cmp ecx, 0x15
jb 0x1009a293
sub esp, 0x18
mov byte [ebp - 8], 0
mov edx, esp
lea ecx, [ebp - 0x1d]
xorps xmm0, xmm0
lea edi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1009a2c8
sub ecx, edi
lea eax, [ebp - 0x1d]
push ecx
push eax
mov ecx, edx
call fcn.100047c0
mov ecx, esi
call fcn.100b38e0
mov dword [esi], 0x10165af8
mov eax, esi
pop edi
mov dword [esi + 0x200], 0
mov dword [esi + 0x204], 0
mov dword [esi + 0x208], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100ab540
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x2c]
sub esp, 0x1c
mov edx, dword [0x1024c214]
push edi
mov edx, dword [eax + edx*4]
mov edi, ecx
mov eax, dword [0x1024bc18]
cmp eax, dword [edx + 4]
jg 0x100ab62d
mov eax, dword [0x101f9008]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x68]
call eax
nop dword [eax + eax]
test al, al
je 0x100ab628
mov eax, dword [0x101f9018]
mov ecx, dword [eax + 0x10]
mov eax, dword [edi + 0xc]
cmp eax, dword [ecx + 0xc]
je 0x100ab628
movaps xmm0, xmmword [0x1015c840]
push ebx
push esi
sub esp, 0x10
movups xmmword [esp], xmm0
call fcn.100f96d0
mov eax, dword [0x101f9018]
mov edx, 0x64
mov ebx, dword [edi + 4]
add esp, 0x10
mov esi, dword [edi]
fstp qword [ebp - 8]
mov ecx, dword [eax + 0x10]
sub edx, dword [ecx + 0xc]
movd xmm0, edx
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [ebp - 8]
cvtpd2ps xmm0, xmm0
movss dword [ebp - 4], xmm0
cmp esi, ebx
je 0x100ab61d
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0xac]
movss xmm0, dword [ebp - 4]
sub esp, 0xc
mov ecx, dword [eax + 0x10]
movss dword [esp + 8], xmm0
movss dword [esp + 4], xmm0
movss dword [esp], xmm0
mov eax, dword [ecx]
call dword [eax + 0x2c]
add esi, 4
cmp esi, ebx
jne 0x100ab5e6
mov eax, dword [0x101f9018]
mov eax, dword [eax + 0x10]
pop esi
pop ebx
mov eax, dword [eax + 0xc]
mov dword [edi + 0xc], eax
pop edi
mov esp, ebp
pop ebp
ret
push 0x1024bc18
call fcn.100d69b1
add esp, 4
cmp dword [0x1024bc18], 0xffffffff
jne 0x100ab56c
mov eax, dword [0x101f9008]
xor edx, edx
movaps xmm0, xmmword [0x101662f0]
mov ecx, dword [eax + 0x34]
movups xmmword [ebp - 0x1b], xmm0
mov word [ebp - 0xb], 0x7e7d
mov byte [ebp - 9], 0
jmp 0x100ab668
mov al, byte [ebp - 0x1b]
xor byte [ebp + edx - 0x1a], al
inc edx
cmp edx, 0x11
jb 0x100ab668
mov byte [ebp - 9], 0
lea edx, [ebp - 0x1a]
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 0x1c]
call eax
push 0x1024bc18
mov dword [0x1024bc14], eax
call fcn.100d6960
add esp, 4
jmp 0x100ab56c
Function at 0x100b5420
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, eax
test edx, edx
je 0x100b54fb
mov eax, 0x5a4d
cmp word [edx], ax
jne 0x100b54fb
mov eax, dword [edx + 0x3c]
cmp dword [eax + edx], 0x4550
jne 0x100b54fb
mov eax, dword [eax + edx + 0x50]
xor ebx, ebx
mov esi, dword [ebp + 0xc]
add eax, edx
mov dword [ebp - 4], eax
cmp edx, eax
jae 0x100b54fb
mov ecx, 0x3f3f
mov al, byte [esi]
mov byte [ebp + 0xb], al
cmp al, 0x3f
je 0x100b54c6
movzx ecx, al
sub al, 0x30
cmp al, 9
ja 0x100b548b
add ecx, 0xffffffd0
jmp 0x100b5491
and ecx, 0xffffffdf
sub ecx, 0x37
mov al, byte [esi + 1]
movzx edi, al
sub al, 0x30
cmp al, 9
ja 0x100b54a2
add edi, 0xffffffd0
jmp 0x100b54a8
and edi, 0xffffffdf
sub edi, 0x37
movzx eax, byte [edx]
shl ecx, 4
or ecx, edi
cmp eax, ecx
mov ecx, 0x3f3f
je 0x100b54c6
test ebx, ebx
je 0x100b54f1
mov esi, dword [ebp + 0xc]
mov edx, ebx
xor ebx, ebx
jmp 0x100b54f1
test ebx, ebx
mov eax, edx
cmovne eax, ebx
cmp byte [esi + 2], 0
mov ebx, eax
je 0x100b5506
cmp word [esi], cx
je 0x100b54e5
cmp byte [ebp + 0xb], 0x3f
mov eax, 2
je 0x100b54ea
mov eax, 3
add esi, eax
cmp byte [esi], 0
je 0x100b5506
inc edx
cmp edx, dword [ebp - 4]
jb 0x100b5474
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x100bd498
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.1012c3f3
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x100bd4d7
sub eax, 1
je 0x100bd4d2
sub eax, 1
je 0x100bd4ce
xor eax, eax
leave
ret
push 3
jmp 0x100bd4d9
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x100bda5b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x100bda82
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x100bda85
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.100bda37
pop esi
leave
ret 8

Function at 0x100c749a
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edx
jbe 0x100c74bd
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x100c74ab
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x100d9f40
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10152436
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1023ec40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ebx, dword [ebp + 8]
lea edi, [esi + 0x2c]
mov dword [ebp + 8], edi
mov eax, dword [ebx]
mov dword [esi], eax
movzx eax, byte [ebx + 4]
mov byte [esi + 4], al
movzx eax, byte [ebx + 5]
mov byte [esi + 5], al
movzx eax, byte [ebx + 6]
mov byte [esi + 6], al
movzx eax, byte [ebx + 7]
mov byte [esi + 7], al
movzx eax, byte [ebx + 8]
mov byte [esi + 8], al
movzx eax, byte [ebx + 9]
mov byte [esi + 9], al
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x14]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x24]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
movzx eax, byte [ebx + 0x28]
mov byte [esi + 0x28], al
movzx eax, byte [ebx + 0x29]
mov byte [esi + 0x29], al
movzx eax, byte [ebx + 0x2a]
mov byte [esi + 0x2a], al
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov eax, dword [ebx + 0x30]
sub eax, dword [ebx + 0x2c]
je 0x100da02b
cmp eax, 0x7fffffff
ja 0x100da0ce
push eax
mov ecx, edi
call fcn.100db090
mov esi, dword [ebx + 0x30]
mov eax, dword [ebx + 0x2c]
sub esi, eax
mov edi, dword [edi]
push esi
push eax
push edi
call fcn.100ebb20
mov ecx, dword [ebp + 8]
lea eax, [esi + edi]
mov esi, dword [ebp - 0x10]
add esp, 0xc
mov dword [ecx + 4], eax
lea edi, [esi + 0x38]
mov dword [ebp - 4], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov eax, dword [ebx + 0x3c]
sub eax, dword [ebx + 0x38]
sar eax, 2
mov dword [ebp + 8], edi
test eax, eax
je 0x100da08c
cmp eax, 0x3fffffff
ja 0x100da0d3
push eax
mov ecx, edi
call fcn.100db1a0
mov esi, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x38]
sub esi, eax
mov edi, dword [edi]
push esi
push eax
push edi
call fcn.100ebb20
mov ecx, dword [ebp + 8]
add esp, 0xc
sar esi, 2
lea eax, [edi + esi*4]
mov esi, dword [ebp - 0x10]
mov dword [ecx + 4], eax
lea eax, [ebx + 0x44]
mov byte [ebp - 4], 1
lea ecx, [esi + 0x44]
push eax
call fcn.1000a900
lea eax, [ebx + 0x5c]
mov byte [ebp - 4], 2
push eax
lea ecx, [esi + 0x5c]
call fcn.1000a900
mov eax, dword [ebx + 0x74]
mov dword [esi + 0x74], eax
mov eax, dword [ebx + 0x78]
mov dword [esi + 0x78], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.100db4b0
call fcn.100db4d0
int3
Function at 0x100da7a0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov dword [esi], eax
movzx eax, byte [edi + 4]
mov byte [esi + 4], al
movzx eax, byte [edi + 5]
mov byte [esi + 5], al
movzx eax, byte [edi + 6]
mov byte [esi + 6], al
movzx eax, byte [edi + 7]
mov byte [esi + 7], al
movzx eax, byte [edi + 8]
mov byte [esi + 8], al
movzx eax, byte [edi + 9]
mov byte [esi + 9], al
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
lea ecx, [esi + 0x2c]
movzx eax, byte [edi + 0x28]
mov byte [esi + 0x28], al
movzx eax, byte [edi + 0x29]
mov byte [esi + 0x29], al
movzx eax, byte [edi + 0x2a]
mov byte [esi + 0x2a], al
lea eax, [edi + 0x2c]
push eax
call fcn.100da640
lea eax, [edi + 0x38]
lea ecx, [esi + 0x38]
cmp ecx, eax
je 0x100da838
mov edx, dword [eax]
mov eax, dword [eax + 4]
sub eax, edx
sar eax, 2
push eax
push edx
call fcn.100d8ba0
lea eax, [edi + 0x44]
lea ecx, [esi + 0x44]
cmp ecx, eax
je 0x100da854
cmp dword [eax + 0x14], 0xf
mov edx, dword [eax + 0x10]
jbe 0x100da84d
mov eax, dword [eax]
push edx
push eax
call fcn.10027780
lea eax, [edi + 0x5c]
lea ecx, [esi + 0x5c]
cmp ecx, eax
je 0x100da870
cmp dword [eax + 0x14], 0xf
mov edx, dword [eax + 0x10]
jbe 0x100da869
mov eax, dword [eax]
push edx
push eax
call fcn.10027780
mov eax, dword [edi + 0x74]
mov dword [esi + 0x74], eax
mov eax, dword [edi + 0x78]
mov dword [esi + 0x78], eax
mov eax, esi
pop edi
pop esi
pop ebp
ret 4

Function at 0x100dcca0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 1]
xor ecx, eax
movzx eax, byte [edx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 4]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 5]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 6]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 7]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
pop ebp
ret 4
Function at 0x100dfc80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
push edi
mov edi, ecx
mov eax, dword [esi]
mov dword [edi], eax
movzx eax, byte [esi + 4]
mov byte [edi + 4], al
movzx eax, byte [esi + 5]
mov byte [edi + 5], al
movzx eax, byte [esi + 6]
mov byte [edi + 6], al
movzx eax, byte [esi + 7]
mov byte [edi + 7], al
movzx eax, byte [esi + 8]
mov byte [edi + 8], al
movzx eax, byte [esi + 9]
mov byte [edi + 9], al
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], ecx
movzx eax, byte [esi + 0x28]
mov byte [edi + 0x28], al
movzx eax, byte [esi + 0x29]
mov byte [edi + 0x29], al
movzx eax, byte [esi + 0x2a]
mov byte [edi + 0x2a], al
mov edx, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x34], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x2c], 0
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], ecx
mov dword [edi + 0x34], edx
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x40]
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], ecx
mov dword [edi + 0x40], edx
movups xmmword [edi + 0x44], xmm0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
movups xmm0, xmmword [esi + 0x44]
movups xmmword [edi + 0x44], xmm0
movq xmm0, qword [esi + 0x54]
movq qword [edi + 0x54], xmm0
xorps xmm0, xmm0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0xf
mov byte [esi + 0x44], 0
movups xmmword [edi + 0x5c], xmm0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
movups xmm0, xmmword [esi + 0x5c]
movups xmmword [edi + 0x5c], xmm0
movq xmm0, qword [esi + 0x6c]
movq qword [edi + 0x6c], xmm0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0xf
mov byte [esi + 0x5c], 0
mov eax, dword [esi + 0x74]
mov dword [edi + 0x74], eax
mov eax, dword [esi + 0x78]
mov dword [edi + 0x78], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x100e4fc0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov al, byte [ebx + 0xc]
lea edx, [esi + 0x20]
test al, 0x60
je 0x100e4ff5
movzx eax, al
shr eax, 5
and eax, 3
mov ecx, dword [eax*8 + 0x1018c5d8]
or dword [edx], ecx
mov eax, dword [eax*8 + 0x1018c5dc]
or dword [edx + 4], eax
mov al, byte [ebx + 0xd]
lea edi, [ebx + 0xd]
test al, 3
je 0x100e5026
movzx ecx, al
and ecx, 3
mov eax, dword [ecx*8 + 0x1018c5f8]
or dword [edx], eax
mov eax, dword [ecx*8 + 0x1018c5fc]
lea ecx, [esi + 0x20]
or dword [edx + 4], eax
add ebx, 0xd
mov dword [ebp + 0xc], ecx
mov dword [ebp - 4], ebx
jmp 0x100e502e
mov dword [ebp + 0xc], edx
mov ebx, edi
mov dword [ebp - 4], edi
mov al, byte [edi]
test al, 0xc
je 0x100e5053
movzx ecx, al
shr ecx, 2
and ecx, 3
mov eax, dword [ecx*8 + 0x1018c618]
or dword [edx], eax
mov eax, dword [ecx*8 + 0x1018c61c]
or dword [edx + 4], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [esi + 0xc]
jmp dword [eax*4 + 0x100e54d0]
Function at 0x101184f8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100d7700
mov eax, dword [0x1023ec40]
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.10135877
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1011853a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10118696
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100d7540
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 + 0x1024cae0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.1013a780
mov ecx, dword [esi*4 + 0x1024cae0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x1011868f
cmp eax, dword [edi + ecx + 0x24]
jne 0x1011868f
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1011868f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1013a780
add esp, 0x14
test edx, edx
jl 0x1011868f
jg 0x10118605
test eax, eax
jb 0x1011868f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1011868f
jl 0x1011861f
cmp dword [ebp - 0x1008], eax
ja 0x1011868f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1011863d
test ebx, ebx
je 0x10118676
cmp ecx, edi
jae 0x10118676
mov al, byte [ecx]
cmp al, 0xd
jne 0x10118657
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10118663
cmp byte [ecx + 1], 0xa
jne 0x10118663
inc ecx
jmp 0x10118663
movzx eax, al
movsx eax, byte [eax + 0x1023ef40]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1011863d
cmp edx, ebx
jne 0x1011863d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10118694
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100d7a97
leave
ret

Function at 0x10137612
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101e4fac
push 0x101e4fa4
push str.FlsAlloc
push 0x1e
call fcn.101372e2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10137646
push dword [ebp + 8]
mov ecx, esi
call dword [0x10157350]
call esi
jmp 0x1013764c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x10137690
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101e4fbc
push 0x101e4fb4
push str.FlsGetValue
push 0x20
call fcn.101372e2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101376c7
push dword [ebp + 8]
mov ecx, esi
call dword [0x10157350]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x101394c2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.101390a9

Function at 0x101394cd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10139238

Function at 0x10139909
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x1024cae0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10139949
cmp byte [ebx], 0xa
jne 0x10139949
or byte [eax + edi + 0x28], 4
jmp 0x1013994e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x10139a4c
mov al, byte [edx]
cmp al, 0x1a
je 0x10139a2e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1013997d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x101399a2
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x101399ac
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x1013995f
jmp 0x10139a4c
push 0
lea eax, [ebp - 0xc]
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 0x10139a29
cmp dword [ebp - 0xc], 0
je 0x10139a29
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x1024cae0]
test byte [eax + edi + 0x28], 0x48
je 0x10139a03
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x101399ee
mov byte [esi], dl
jmp 0x101399ff
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1024cae0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10139a4c
cmp byte [ebp - 1], 0xa
jne 0x10139a12
cmp esi, ebx
jne 0x10139a12
mov byte [esi], 0xa
jmp 0x10139a4b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1013a79e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10139a4c
mov byte [esi], 0xd
jmp 0x10139a4b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x1024cae0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10139a48
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10139a4c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10139a55
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x1024cae0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10139a98
cmp word [esi], dx
jne 0x10139a98
or byte [edi + eax + 0x28], 4
jmp 0x10139a9d
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x10139bf0
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x10139bd0
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x10139adf
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10139b15
cmp eax, edx
jae 0x10139b21
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x10139ab7
jmp 0x10139bf0
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10139bcc
cmp dword [ebp - 0x14], 0
je 0x10139bcc
mov eax, dword [ebx*4 + 0x1024cae0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x10139ba4
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x10139b6d
mov word [esi], cx
jmp 0x10139ba0
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x1024cae0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x1024cae0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x1024cae0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x10139bf0
pop ebx
cmp word [ebp - 4], bx
jne 0x10139bb5
cmp esi, dword [ebp + 0xc]
jne 0x10139bb5
mov word [esi], bx
jmp 0x10139bed
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1013a79e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x10139bf0
push 0xd
jmp 0x10139be9
mov ecx, dword [ebx*4 + 0x1024cae0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10139be7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10139bf0
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret