joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e558
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x60ea17
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e609
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e5f2
test esi, esi
jbe 0x41e609
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088e4
test eax, eax
jne 0x41e5e4
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e609
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e5c1
jmp 0x41e609
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e609
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x60ea1e
ret
Function at 0x41ee60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x60f40f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41ee9b
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41eeb4
lea eax, [ebp - 0x10]
mov edx, dword [0x628268]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41eec7
lea eax, [ebp - 0x10]
mov edx, dword [0x628268]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41eed3
adc edx, 0
mov edx, dword [edx*4 + 0x6270e8]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x41efe1
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d74
test eax, eax
je 0x41efd4
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41efd4
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dd4
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d74
test eax, eax
je 0x41efd4
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41efd4
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41efd4
cmp dx, 0x150
ja 0x41efd4
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d74
test eax, eax
je 0x41efd4
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41efd4
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41eff9
inc ebx
cmp ebx, 0x19
jne 0x41ee8d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x60f416
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x10002030
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1003a024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x373
xor esi, esi
nop word [eax + eax]
mov eax, 0xaaaaaaab
mov ecx, esi
mul esi
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
mov eax, edi
shl ecx, 3
shr eax, cl
xor byte [esi + 0x1003aa68], al
inc esi
ror edi, 0x1f
cmp esi, 0xa8d27
jl 0x10002050
mov edi, dword [0x1003aa68]
test edi, edi
jne 0x1000208d
mov edx, 0x10032cac
jmp 0x1000223d
mov edx, 0x10032cc0
mov ecx, 0x100e3e18
call fcn.100081c0
push edi
mov ecx, eax
call fcn.10005330
push eax
call fcn.10008740
add esp, 4
push 0
call fcn.10013308
add esp, 4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], edx
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.100108f1
add esp, 8
test eax, eax
jne 0x1000210e
mov edx, str.Current_system_time:
mov ecx, 0x100e3e18
call fcn.100081c0
push dword [ebp - 0x34]
mov ecx, eax
call fcn.100056f0
mov ecx, eax
call fcn.10008470
push dword [ebp - 0x38]
mov ecx, eax
call fcn.100056f0
mov ecx, eax
call fcn.10008470
push dword [ebp - 0x3c]
mov ecx, eax
call fcn.100056f0
jmp 0x1000211d
mov edx, str.Failed_to_get_local_time.
mov ecx, 0x100e3f00
call fcn.100081c0
push eax
call fcn.10008740
add esp, 4
push 0x10032cd4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
push str.NtAllocateVirtualMemory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40
mov esi, eax
mov dword [ebp - 0x18], 0
push 0x3000
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
push 0
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
jne 0x10002238
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10002238
push edi
push 0x1003aa6c
push eax
call fcn.1000cd20
add esp, 0xc
mov edx, 0x10032d00
mov ecx, 0x100e3e18
call fcn.100081c0
push eax
call fcn.10008740
add esp, 4
push str.NtCreateThreadEx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp - 0x18]
mov edi, eax
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push 0
push 0
push 0
push 0
push 0x1003aa68
push esi
push eax
push 0
push 0x1fffff
lea eax, [ebp - 0xc]
push eax
call edi
mov esi, eax
test esi, esi
je 0x10002213
mov edx, str.syscall
mov ecx, 0x100e3f00
call fcn.100081c0
push esi
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + eax + 0x14]
and ecx, 0xfffff9ff
or ecx, 0x800
mov dword [edx + eax + 0x14], ecx
mov ecx, eax
call fcn.10005510
jmp 0x10002247
push 0xffffffffffffffff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000b724
mov esp, ebp
pop ebp
ret
mov edx, 0x10032d48
mov ecx, 0x100e3f00
call fcn.100081c0
push eax
call fcn.10008740
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.1000b724
mov esp, ebp
pop ebp
ret
Function at 0x10002270
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10029e2d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x1003a024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea edi, [ebp - 0x3c]
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], 5
sub ecx, edi
xorps xmm0, xmm0
movq qword [ebp - 0x20], xmm0
mov edi, ecx
movaps xmm0, xmmword [0x10033050]
xor eax, eax
xor esi, esi
sar edi, 2
xor edx, edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], ecx
movups xmmword [ebp - 0x3c], xmm0
test edi, edi
je 0x1000231d
push edi
lea ecx, [ebp - 0x20]
call fcn.100097b0
push dword [ebp - 0x28]
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x3c]
push eax
push esi
call fcn.1000cd20
mov eax, dword [ebp - 0x18]
lea edx, [esi + edi*4]
add esp, 0xc
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
cmp esi, edx
je 0x10002341
mov ecx, esi
nop word [eax + eax]
mov eax, dword [ecx]
xor eax, 0x2a
add eax, 0x2a
mov dword [ecx], eax
add ecx, 4
cmp ecx, edx
jne 0x10002330
mov edi, edx
xor eax, eax
sub edi, esi
xor ecx, ecx
add edi, 3
shr edi, 2
cmp esi, edx
cmova edi, eax
mov eax, esi
test edi, edi
je 0x100023a9
cmp edi, 8
jb 0x100023a9
and edi, 0xfffffff8
xorps xmm1, xmm1
xorps xmm2, xmm2
nop dword [eax + eax]
movups xmm0, xmmword [eax]
add ecx, 8
paddd xmm1, xmm0
movups xmm0, xmmword [eax + 0x10]
add eax, 0x20
paddd xmm2, xmm0
cmp ecx, edi
jne 0x10002370
paddd xmm1, xmm2
movaps xmm0, xmm1
psrldq xmm0, 8
paddd xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
paddd xmm1, xmm0
movd ecx, xmm1
cmp eax, edx
je 0x100023b9
nop dword [eax]
add ecx, dword [eax]
add eax, 4
cmp eax, edx
jne 0x100023b0
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0xd
sub ecx, eax
jne 0x100023e0
mov edx, str.Target_function_called__n
mov ecx, 0x100e3e18
call fcn.100081c0
test esi, esi
je 0x10002410
mov ecx, dword [ebp - 0x24]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10002406
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000242e
push ecx
push esi
call fcn.1000bc55
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1000b724
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.10013e93
int3
Function at 0x100036f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [ecx + 0x1384], 0xffffffff
lea edi, [ecx + 8]
mov dword [ecx + 4], edx
mov esi, 1
nop dword [eax]
mov eax, edx
lea edi, [edi + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi - 4], edx
cmp esi, 0x270
jb 0x10003710
pop edi
pop esi
mov dword [ecx], 0x270
mov eax, ecx
pop ebp
ret 4
Function at 0x100046c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
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 0x100046f2
jl 0x100046e5
test ecx, ecx
jne 0x100046f2
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 0x100047b2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.10006e20
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x1000475e
jg 0x1000471d
test esi, esi
je 0x1000475e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x10004735
mov eax, dword [esp + 0x10]
jl 0x1000472f
cmp eax, esi
jae 0x10004735
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.1000cd20
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x1000477f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x1000479b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x10004704
jl 0x1000479b
test ecx, ecx
jne 0x10004704
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
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 0x100047f6
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x100047f6
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.1000cd20
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x10004867
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1000481c
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 0x10004852
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.10013800
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10004867
cmp edi, eax
ja 0x10004830
test edi, edi
je 0x10004867
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.10013800
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 0x1000a6b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
mov eax, dword [esi]
cmp eax, 0x270
jne 0x1000a70d
lea edx, [esi + 8]
mov edi, eax
nop dword [eax]
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x1000a6d0
mov eax, dword [esi]
jmp 0x1000a7e7
cmp eax, 0x4e0
jb 0x1000a7e7
lea edi, [esi + 0x9c4]
mov esi, 0xe3
push ebx
mov ebx, dword [edi]
mov eax, ebx
lea edi, [edi + 4]
mov ebx, dword [edi]
mov ecx, ebx
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub esi, 1
jne 0x1000a726
mov edi, dword [ebp - 4]
mov esi, 0x18c
add edi, 0xd50
mov ebx, dword [edi]
nop
mov eax, ebx
lea edi, [edi + 4]
mov ebx, dword [edi]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd50]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub esi, 1
jne 0x1000a770
mov esi, dword [ebp - 4]
pop ebx
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
mov dword [esi], 0
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100102ab
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002ef94
push 0x1002ef8c
push str.FlsAlloc
push 0x1f
call fcn.1001bc76
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001be3f
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002b160]
call esi
jmp 0x1001be45
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001be89
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002efa4
push 0x1002ef9c
push str.FlsGetValue
push 0x21
call fcn.1001bc76
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001bec0
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002b160]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001bec8
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002efac
push 0x1002efa4
push str.FlsSetValue
push 0x22
call fcn.1001bc76
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001bf02
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002b160]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001c648
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1000c680
mov eax, dword [0x1003a024]
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.10016ace
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1001c68a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1001c7e6
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10027c90
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 + 0x100e4778]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1001de46
mov ecx, dword [esi*4 + 0x100e4778]
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 0x1001c7df
cmp eax, dword [ecx + edi + 0x24]
jne 0x1001c7df
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 0x1001c7df
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001de46
add esp, 0x14
test edx, edx
jl 0x1001c7df
jg 0x1001c755
test eax, eax
jb 0x1001c7df
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1001c7df
jl 0x1001c76f
cmp dword [ebp - 0x1008], eax
ja 0x1001c7df
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1001c78d
test ebx, ebx
je 0x1001c7c6
cmp ecx, edi
jae 0x1001c7c6
mov al, byte [ecx]
cmp al, 0xd
jne 0x1001c7a7
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1001c7b3
cmp byte [ecx + 1], 0xa
jne 0x1001c7b3
inc ecx
jmp 0x1001c7b3
movzx eax, al
movsx eax, byte [eax + 0x1003a428]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1001c78d
cmp edx, ebx
jne 0x1001c78d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1001c7e4
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1000b724
leave
ret
Function at 0x1001d2de
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 + 0x100e4778]
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 0x1001d31e
cmp byte [ebx], 0xa
jne 0x1001d31e
or byte [edi + eax + 0x28], 4
jmp 0x1001d323
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 0x1001d422
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1001d405
inc eax
cmp dl, 0xd
je 0x1001d34f
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1001d375
cmp eax, ecx
jae 0x1001d383
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 0x1001d337
jmp 0x1001d422
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 0x1001d400
cmp dword [ebp - 0x10], 0
je 0x1001d400
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100e4778]
test byte [eax + edi + 0x28], 0x48
je 0x1001d3da
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1001d3c5
mov byte [esi], dl
jmp 0x1001d3d6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100e4778]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1001d422
cmp byte [ebp - 1], 0xa
jne 0x1001d3e9
cmp esi, ebx
jne 0x1001d3e9
mov byte [esi], 0xa
jmp 0x1001d421
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001de64
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1001d422
mov byte [esi], 0xd
jmp 0x1001d421
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100e4778]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1001d41f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1001d422
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001d42b
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 + 0x100e4778]
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 0x1001d471
cmp word [ebx], dx
jne 0x1001d471
or byte [eax + edi + 0x28], 4
jmp 0x1001d476
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 0x1001d5d9
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 0x1001d5b9
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1001d4b7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1001d4ed
cmp eax, edx
jae 0x1001d4fb
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 0x1001d492
jmp 0x1001d5d9
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 0x1001d5b4
cmp dword [ebp - 0x18], 0
je 0x1001d5b4
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100e4778]
test byte [eax + edi + 0x28], 0x48
je 0x1001d58a
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 0x1001d54e
mov word [esi], cx
jmp 0x1001d585
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100e4778]
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 + 0x100e4778]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100e4778]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1001d5d9
pop eax
cmp word [ebp - 4], ax
jne 0x1001d59a
cmp esi, ebx
jne 0x1001d59a
mov word [esi], ax
jmp 0x1001d5d6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1001de64
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1001d5d9
push 0xd
pop eax
jmp 0x1001d595
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100e4778]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1001d5d3
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1001d5d9
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret