joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10015180
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003916c
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x10048100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 4], 0
call fcn.10012f60
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, eax
je 0x10015256
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.100198f0
add esp, 8
push 0
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
push eax
push str.LUNA_VNR_HOOKMAN_
push ecx
call fcn.1000f610
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.10010d60
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 2
test eax, eax
je 0x10015210
cmp eax, 0xffffffff
je 0x10015210
push eax
call dword [0x1003a638]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.10001670
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10015293
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
push 0x10
movups xmmword [ecx], xmm0
push str.already_injected
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.10002dc0
call fcn.10012db0
add esp, 0x18
mov ecx, dword [ebp + 0x20]
cmp ecx, 7
jbe 0x10015330
mov edx, dword [ebp + 0xc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10015326
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001534a
jmp 0x10015326
lea eax, [ebp + 0xc]
mov dword [ebp - 0x2c], esi
push eax
lea ecx, [ebp - 0x28]
call fcn.100050c0
push 0x1c
mov byte [ebp - 4], 3
call fcn.1001cf80
mov esi, eax
add esp, 4
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 4
test esi, esi
je 0x100152d0
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
mov dword [esi], ecx
lea ecx, [esi + 4]
push eax
call fcn.100050c0
jmp 0x100152d2
xor esi, esi
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 5
push eax
push 0
push esi
push 0x100100f0
push 0
push 0
call fcn.10026dc7
add esp, 0x18
mov dword [ebp - 0x34], eax
test eax, eax
je 0x10015356
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x1001534f
push ecx
push eax
call fcn.1001cb97
add esp, 8
test eax, eax
jne 0x1001534f
xorps xmm0, xmm0
lea ecx, [ebp - 0x2c]
movlpd qword [ebp - 0x34], xmm0
call fcn.10010e10
jmp 0x10015256
push ecx
push edx
call fcn.1001cfb0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001d2d8
mov esp, ebp
pop ebp
ret
call fcn.10021fdf
push 1
call fcn.1001bfa9
push 6
mov dword [ebp - 0x30], 0
call fcn.1001bfa9
int3
Function at 0x10015370
Capabilities:
Create thread
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100391c6
mov eax, dword fs:[0]
push eax
mov eax, 0x1444
call fcn.1001d2f0
mov eax, dword [0x10048100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x1004a398
mov dword [ebp - 0xa40], 0x1004a398
mov byte [ebp - 0xa3c], 0
call fcn.1001b9bb
add esp, 4
test eax, eax
jne 0x10015523
cmp dword [0x1004a3c4], 0x7fffffff
je 0x1001552a
mov byte [ebp - 0xa3c], 1
mov dword [ebp - 0xa38], 0x1004a378
mov dword [ebp - 4], eax
movzx eax, byte [ebp + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [ebp + 9]
xor ecx, eax
movzx eax, byte [ebp + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebp + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, 0x1004a378
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xa30]
push eax
call fcn.1000fe00
mov eax, dword [eax + 4]
test eax, eax
je 0x100154fb
cmp eax, dword [0x1004a37c]
je 0x100154fb
lea eax, [ebp + 8]
mov ecx, 0x1004a378
push eax
call fcn.100180d0
mov dword [ebp - 0x1450], 0
lea esi, [ebp + 0xc]
mov ecx, 0x282
mov dword [ebp - 0xa28], eax
lea edi, [ebp - 0x1448]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x284
lea esi, [ebp - 0x1450]
lea edi, [ebp - 0xa20]
rep movsd dword es:[edi], dword [esi]
push 0xa18
call fcn.1001cf80
add esp, 4
test eax, eax
je 0x100154ae
mov ecx, 0x286
lea esi, [ebp - 0xa28]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
jmp 0x100154b0
xor eax, eax
mov dword [ebp - 0xa34], eax
lea ecx, [ebp - 0xa2c]
mov byte [ebp - 4], 1
push ecx
push 0
push eax
push 0x10010070
push 0
push 0
call fcn.10026dc7
add esp, 0x18
mov dword [ebp - 0xa30], eax
test eax, eax
je 0x10015542
mov ecx, dword [ebp - 0xa2c]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x1001553b
push ecx
push eax
call fcn.1001cb97
add esp, 8
test eax, eax
jne 0x1001553b
push 0x1004a398
call fcn.1001b9cc
add esp, 4
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.1001d2d8
mov esp, ebp
pop ebp
ret
push 5
call fcn.1001bfa9
push 6
mov dword [0x1004a3c4], 0x7ffffffe
call fcn.1001bfa9
push 1
call fcn.1001bfa9
push 6
mov dword [ebp - 0xa2c], 0
call fcn.1001bfa9
int3
Function at 0x100156a0
Capabilities:
Create thread
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003923d
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x10048100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x1004a398
mov dword [ebp - 0x2c], 0x1004a398
mov byte [ebp - 0x28], 0
call fcn.1001b9bb
add esp, 4
test eax, eax
jne 0x1001580a
cmp dword [0x1004a3c4], 0x7fffffff
je 0x10015811
mov byte [ebp - 0x28], 1
mov dword [ebp - 0x24], 0x1004a378
mov dword [ebp - 4], eax
movzx eax, byte [ebp + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [ebp + 9]
xor ecx, eax
movzx eax, byte [ebp + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebp + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, 0x1004a378
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.1000fe00
mov eax, dword [eax + 4]
test eax, eax
je 0x100157ee
cmp eax, dword [0x1004a37c]
je 0x100157ee
lea eax, [ebp + 8]
mov ecx, 0x1004a378
push eax
call fcn.100180d0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
movups xmm0, xmmword [ebp - 0x20]
push 0x18
mov dword [ebp - 0x44], eax
movups xmmword [ebp - 0x3c], xmm0
call fcn.1001cf80
add esp, 4
test eax, eax
je 0x100157ad
movups xmm0, xmmword [ebp - 0x44]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [eax + 0x10], xmm0
jmp 0x100157af
xor eax, eax
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
push ecx
push 0
push eax
push 0x100101a0
push 0
push 0
call fcn.10026dc7
add esp, 0x18
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10015829
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x10015822
push ecx
push eax
call fcn.1001cb97
add esp, 8
test eax, eax
jne 0x10015822
push 0x1004a398
call fcn.1001b9cc
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
push 5
call fcn.1001bfa9
push 6
mov dword [0x1004a3c4], 0x7ffffffe
call fcn.1001bfa9
push 1
call fcn.1001bfa9
push 6
mov dword [ebp - 0x14], 0
call fcn.1001bfa9
int3
Function at 0x10037920
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003794d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003794d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40b450
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40a015
lea edi, [esi - 0x9015]
push edi
or ebp, 0xffffffff
jmp 0x40b472
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40b479
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40b468
mov eax, 1
add ebx, ebx
jne 0x40b48b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40b480
jne 0x40b49c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40b480
xor ecx, ecx
sub eax, 3
jb 0x40b4b0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40b522
mov ebp, eax
add ebx, ebx
jne 0x40b4bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40b4c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40b4ec
inc ecx
add ebx, ebx
jne 0x40b4d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40b4cd
jne 0x40b4e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40b4cd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40b50c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40b4fd
jmp 0x40b46e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40b50c
add edi, ecx
jmp 0x40b46e
pop esi
mov edi, esi
mov ecx, 0xb5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40b52a
cmp byte [edi], 1
jne 0x40b52a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40b52f
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x40b59e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb03c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40b55c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb040]
or eax, eax
je 0x40b598
mov dword [ebx], eax
add ebx, 4
jmp 0x40b579
call dword [esi + 0xb050]
mov ebp, dword [esi + 0xb044]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0xb5f9]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40b5ea
sub esp, 0xffffff80
jmp 0x401280
Function at 0x100040c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x100040f2
jl 0x100040e5
test ecx, ecx
jne 0x100040f2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x100041cf
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x2c]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
test eax, eax
je 0x10004122
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x10004124
xor eax, eax
cdq
mov dword [esp + 0x1c], edx
mov esi, eax
test edx, edx
jl 0x10004178
jg 0x10004135
test esi, esi
je 0x10004178
mov eax, dword [esp + 0x10]
cmp eax, edx
jg 0x10004149
jl 0x10004143
cmp ecx, esi
jae 0x10004149
mov esi, ecx
mov dword [esp + 0x1c], eax
push esi
push dword [esp + 0x1c]
push edi
call fcn.1000a0e0
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
sub ecx, esi
mov eax, dword [eax]
sbb edx, dword [esp + 0x1c]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x14]
jmp 0x1000419c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x100041b8
mov ecx, dword [esp + 0xc]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
lea eax, [ebx + 0x2c]
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
test edx, edx
jg 0x10004107
jl 0x100041b8
test ecx, ecx
jne 0x10004107
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x1000420d
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x1000420d
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.1000a0e0
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [esp + 0x18], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x10004277
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10004233
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 [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x10004262
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.1000ea58
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10004277
cmp edi, eax
ja 0x10004240
test edi, edi
je 0x10004277
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.1000ea58
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10006570
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100202a0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1002b080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.10008ad9
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.10007d79
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.10006510
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10007b72
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 0x10007b99
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x10007b9c
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.10007b4e
pop esi
leave
ret 8

Function at 0x10010438
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10010477
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10010477
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10010477
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10010477
cmp dword [ecx + 0x74], 0xe
jbe 0x10010477
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10014d8e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10009a40
mov eax, dword [0x1002b080]
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.10013406
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10014dd0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10014f2c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1001fa80
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 + 0x1002c9c0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10014917
mov ecx, dword [esi*4 + 0x1002c9c0]
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 0x10014f25
cmp eax, dword [ecx + edi + 0x24]
jne 0x10014f25
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 0x10014f25
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10014917
add esp, 0x14
test edx, edx
jl 0x10014f25
jg 0x10014e9b
test eax, eax
jb 0x10014f25
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10014f25
jl 0x10014eb5
cmp dword [ebp - 0x1008], eax
ja 0x10014f25
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10014ed3
test ebx, ebx
je 0x10014f0c
cmp ecx, edi
jae 0x10014f0c
mov al, byte [ecx]
cmp al, 0xd
jne 0x10014eed
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10014ef9
cmp byte [ecx + 1], 0xa
jne 0x10014ef9
inc ecx
jmp 0x10014ef9
movzx eax, al
movsx eax, byte [eax + 0x1002b328]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10014ed3
cmp edx, ebx
jne 0x10014ed3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10014f2a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10008a9a
leave
ret
Function at 0x100150f2
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 + 0x1002c9c0]
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 0x10015132
cmp byte [ebx], 0xa
jne 0x10015132
or byte [edi + eax + 0x28], 4
jmp 0x10015137
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 0x10015236
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10015219
inc eax
cmp dl, 0xd
je 0x10015163
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10015189
cmp eax, ecx
jae 0x10015197
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 0x1001514b
jmp 0x10015236
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 0x10015214
cmp dword [ebp - 0x10], 0
je 0x10015214
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1002c9c0]
test byte [eax + edi + 0x28], 0x48
je 0x100151ee
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100151d9
mov byte [esi], dl
jmp 0x100151ea
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1002c9c0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10015236
cmp byte [ebp - 1], 0xa
jne 0x100151fd
cmp esi, ebx
jne 0x100151fd
mov byte [esi], 0xa
jmp 0x10015235
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10014935
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10015236
mov byte [esi], 0xd
jmp 0x10015235
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1002c9c0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10015233
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10015236
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001523f
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 + 0x1002c9c0]
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 0x10015285
cmp word [ebx], dx
jne 0x10015285
or byte [eax + edi + 0x28], 4
jmp 0x1001528a
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 0x100153ed
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 0x100153cd
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100152cb
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10015301
cmp eax, edx
jae 0x1001530f
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 0x100152a6
jmp 0x100153ed
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 0x100153c8
cmp dword [ebp - 0x18], 0
je 0x100153c8
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1002c9c0]
test byte [eax + edi + 0x28], 0x48
je 0x1001539e
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 0x10015362
mov word [esi], cx
jmp 0x10015399
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1002c9c0]
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 + 0x1002c9c0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1002c9c0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100153ed
pop eax
cmp word [ebp - 4], ax
jne 0x100153ae
cmp esi, ebx
jne 0x100153ae
mov word [esi], ax
jmp 0x100153ea
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10014935
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100153ed
push 0xd
pop eax
jmp 0x100153a9
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1002c9c0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100153e7
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100153ed
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 0x10015e4f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024318
push 0x10024310
push str.FlsAlloc
push 0x1f
call fcn.10015d17
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015e83
push dword [ebp + 8]
mov ecx, esi
call dword [0x10021154]
call esi
jmp 0x10015e89
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10015ecd
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024328
push 0x10024320
push str.FlsGetValue
push 0x21
call fcn.10015d17
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015f04
push dword [ebp + 8]
mov ecx, esi
call dword [0x10021154]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10015f0c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024330
push 0x10024328
push str.FlsSetValue
push 0x22
call fcn.10015d17
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015f46
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10021154]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]