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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x80]
mov dword [esp + 0x38], ecx
mov ecx, 0x65a271ac
mov ebx, dword [esp + 0x74]
mov edi, dword [esp + 0x78]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x34], eax
call dbg.std::locale::id::_M_id() const
mov edx, dword [esi + 0x6c]
mov ecx, dword [edx + 4]
cmp eax, dword [edx + 8]
jae 0x6593eaca
mov eax, dword [ecx + eax*4]
test eax, eax
je 0x6593eaca
mov eax, dword [eax + 8]
mov edx, dword [esp + 0x88]
lea ebp, [esp + 0x44]
mov dword [esp + 0x44], 0
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x48], 0
mov eax, dword [eax + 0x10]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 0x4c], 0
call fcn.65940ac0
mov ecx, ebp
sub esp, 0x24
mov esi, eax
mov ebx, edx
mov eax, dword [esp + 0x88]
mov dword [esp], eax
call dbg.std::__time_get_state::_M_finalize_state(tm*)
sub esp, 4
cmp ebx, 0xffffffff
sete dl
test esi, esi
setne al
and al, dl
mov ebp, eax
jne 0x6593eaa8
cmp dword [esp + 0x34], 0xffffffff
sete al
test edi, edi
je 0x6593ea5e
test al, al
jne 0x6593ea80
cmp dl, al
jne 0x6593ea6c
mov eax, dword [esp + 0x84]
or dword [eax], 2
add esp, 0x5c
mov eax, esi
mov edx, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x1c
mov ecx, dword [edi + 0xc]
xor eax, eax
cmp dword [edi + 8], ecx
jb 0x6593ea5e
mov eax, dword [edi]
mov byte [esp + 0x34], dl
mov ecx, edi
call dword [eax + 0x24]
movzx edx, byte [esp + 0x34]
cmp eax, 0xffffffff
sete al
jmp 0x6593ea5e
mov eax, dword [esi + 0xc]
cmp dword [esi + 8], eax
jae 0x6593eab8
xor edx, edx
jmp 0x6593ea4e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
cmp eax, 0xffffffff
jne 0x6593eab0
mov edx, ebp
xor esi, esi
jmp 0x6593ea4e
call dbg.std::__throw_bad_cast()
nop
Function at 0x6596fbf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, ecx
push edi
push esi
push ebx
sub esp, 0x4c
mov esi, dword [esp + 0x70]
mov ecx, dword [esp + 0x60]
mov ebx, dword [esp + 0x64]
mov edx, dword [esp + 0x6c]
mov edi, dword [esi + 0xc]
mov eax, edi
and eax, 0xffffffb5
or eax, 8
mov dword [esi + 0xc], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x68]
mov dword [esp], ecx
mov ecx, ebp
mov dword [esp + 4], ebx
xor bx, bx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call method.std::istreambuf_iterator_wchar_t__std::char_traits_wchar_t____std::num_get_wchar_t__std::istreambuf_iterator_wchar_t__std::char_traits_wchar_t_____._M_extract_int_unsigned_long__std::istreambuf_iterator_wchar_t__std::char_traits_wchar_t_____std::is
sub esp, 0x1c
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
movzx eax, word [esp + 0x2c]
mov dword [esp + 0x28], edx
mov ecx, edx
mov edx, ebx
mov ebx, dword [esp + 0x3c]
or edx, eax
mov eax, dword [esp + 0x78]
mov dword [esi + 0xc], edi
mov dword [eax], ebx
add esp, 0x4c
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret 0x1c
Function at 0x65975060
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x80]
mov dword [esp + 0x38], ecx
mov ecx, 0x65a271ac
mov ebx, dword [esp + 0x74]
mov edi, dword [esp + 0x78]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x34], eax
call dbg.std::locale::id::_M_id() const
mov edx, dword [esi + 0x6c]
mov ecx, dword [edx + 4]
cmp eax, dword [edx + 8]
jae 0x659751ba
mov eax, dword [ecx + eax*4]
test eax, eax
je 0x659751ba
mov eax, dword [eax + 8]
mov edx, dword [esp + 0x88]
lea ebp, [esp + 0x44]
mov ecx, dword [esp + 0x38]
mov eax, dword [eax + 8]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
call fcn.65976f30
mov ecx, ebp
sub esp, 0x24
mov esi, eax
mov ebx, edx
mov eax, dword [esp + 0x88]
mov dword [esp], eax
call dbg.std::__time_get_state::_M_finalize_state(tm*)
sub esp, 4
cmp ebx, 0xffffffff
sete dl
test esi, esi
setne al
and al, dl
mov ebp, eax
jne 0x65975198
cmp dword [esp + 0x34], 0xffffffff
sete al
test edi, edi
je 0x6597514e
test al, al
jne 0x65975170
cmp dl, al
jne 0x6597515c
mov eax, dword [esp + 0x84]
or dword [eax], 2
add esp, 0x5c
mov eax, esi
mov edx, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x1c
mov ecx, dword [edi + 0xc]
xor eax, eax
cmp dword [edi + 8], ecx
jb 0x6597514e
mov eax, dword [edi]
mov byte [esp + 0x34], dl
mov ecx, edi
call dword [eax + 0x24]
movzx edx, byte [esp + 0x34]
cmp eax, 0xffffffff
sete al
jmp 0x6597514e
mov eax, dword [esi + 0xc]
cmp dword [esi + 8], eax
jae 0x659751a8
xor edx, edx
jmp 0x6597513e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
cmp eax, 0xffffffff
jne 0x659751a0
mov edx, ebp
xor esi, esi
jmp 0x6597513e
call dbg.std::__throw_bad_cast()
nop
Function at 0x659751c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x80]
mov dword [esp + 0x38], ecx
mov ecx, 0x65a271ac
mov ebx, dword [esp + 0x74]
mov edi, dword [esp + 0x78]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x34], eax
call dbg.std::locale::id::_M_id() const
mov edx, dword [esi + 0x6c]
mov ecx, dword [edx + 4]
cmp eax, dword [edx + 8]
jae 0x6597531a
mov eax, dword [ecx + eax*4]
test eax, eax
je 0x6597531a
mov eax, dword [eax + 8]
mov edx, dword [esp + 0x88]
lea ebp, [esp + 0x44]
mov dword [esp + 0x44], 0
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x48], 0
mov eax, dword [eax + 0x10]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 0x4c], 0
call fcn.65976f30
mov ecx, ebp
sub esp, 0x24
mov esi, eax
mov ebx, edx
mov eax, dword [esp + 0x88]
mov dword [esp], eax
call dbg.std::__time_get_state::_M_finalize_state(tm*)
sub esp, 4
cmp ebx, 0xffffffff
sete dl
test esi, esi
setne al
and al, dl
mov ebp, eax
jne 0x659752f8
cmp dword [esp + 0x34], 0xffffffff
sete al
test edi, edi
je 0x659752ae
test al, al
jne 0x659752d0
cmp dl, al
jne 0x659752bc
mov eax, dword [esp + 0x84]
or dword [eax], 2
add esp, 0x5c
mov eax, esi
mov edx, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x1c
mov ecx, dword [edi + 0xc]
xor eax, eax
cmp dword [edi + 8], ecx
jb 0x659752ae
mov eax, dword [edi]
mov byte [esp + 0x34], dl
mov ecx, edi
call dword [eax + 0x24]
movzx edx, byte [esp + 0x34]
cmp eax, 0xffffffff
sete al
jmp 0x659752ae
mov eax, dword [esi + 0xc]
cmp dword [esi + 8], eax
jae 0x65975308
xor edx, edx
jmp 0x6597529e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
cmp eax, 0xffffffff
jne 0x65975300
mov edx, ebp
xor esi, esi
jmp 0x6597529e
call dbg.std::__throw_bad_cast()
nop
Function at 0x659b0360
Capabilities:
Read file on windows

Disassembly:
push ebp
sub esp, 0x58
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], ecx
mov dword [esp], eax
mov dword [esp + 0x34], dbg.__gxx_personality_sj0
mov dword [esp + 0x38], 0x65a11150
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], 0x659b0405
mov dword [esp + 0x44], esp
call dbg._Unwind_SjLj_Register
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov dword [esp + 0x20], 1
mov dword [esp], eax
call sym._fileno
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
mov dword [esp], eax
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
call sym._read
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x659b03f0
lea eax, [esp + 0x1c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
mov eax, dword [esp + 0x14]
add esp, 0x58
pop ebp
ret 8
mov dword [esp + 0x20], 0xffffffff
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
jne 0x659b03d3
jmp 0x659b0394
Function at 0x65a0ec80
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x7c
lea esi, [esp + 0x1c]
mov dword [esp + 0x34], dbg.__gxx_personality_sj0
mov dword [esp], esi
mov dword [esp + 0x38], 0x65a11110
call dbg._Unwind_SjLj_Register
mov ebp, dword [0x65a2622c]
test ebp, ebp
jne 0x65a0ee75
mov dword [esp], str.GLIBCXX_TUNABLES
mov dword [0x65a26598], 0
mov dword [0x65a2659c], 0
mov dword [0x65a265a0], 0
call sym._getenv
mov dword [esp + 0x58], 8
mov dword [esp + 0x5c], str.obj_size
mov ebx, eax
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 9
mov dword [esp + 0x68], str.obj_count
mov dword [esp + 0x6c], 0x40
test eax, eax
jne 0x65a0ed36
jmp 0x65a0ee44
mov dword [esp], ebx
mov dword [esp + 4], 0x3a
call sym._strchr
mov ebx, eax
test eax, eax
je 0x65a0edb0
xor eax, eax
cmp byte [ebx], 0x3a
sete al
add ebx, eax
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
xor eax, 0x62696c67
xor edx, 0x2e787863
or eax, edx
jne 0x65a0ed20
mov eax, dword [ebx + 7]
mov edx, dword [ebx + 0xb]
xor eax, 0x5f68652e
xor edx, 0x6c6f6f70
or eax, edx
jne 0x65a0ed20
cmp byte [ebx + 0xf], 0x2e
jne 0x65a0ed20
lea ebp, [ebx + 0x10]
mov dword [esp + 8], 8
mov dword [esp + 4], ebp
mov dword [esp], str.obj_size
call sym._memcmp
test eax, eax
jne 0x65a0ed98
cmp byte [ebx + 0x18], 0x3d
je 0x65a0ee8c
mov edi, dword [esp + 0x64]
test edi, edi
jne 0x65a0edff
mov ebx, ebp
jmp 0x65a0ed20
mov eax, dword [esp + 0x6c]
mov edx, 0x100
mov ecx, 6
cmp eax, edx
cmovle edx, eax
mov eax, dword [esp + 0x60]
test eax, eax
cmove eax, ecx
add eax, 0x2c
imul eax, edx
lea ebx, [eax*4]
mov dword [0x65a265a0], ebx
test ebx, ebx
jne 0x65a0ee53
mov dword [esp], sym.___tcf_0
call sym._atexit
mov dword [esp], esi
call sym.__Unwind_SjLj_Unregister
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 9
mov dword [esp + 4], ebp
cmp edi, eax
mov dword [esp], str.obj_count
cmovbe eax, edi
mov dword [esp + 8], eax
call sym._memcmp
test eax, eax
jne 0x65a0eda0
cmp edi, 8
jbe 0x65a0eda0
cmp byte [ebx + 0x19], 0x3d
mov eax, 9
lea edi, [esp + 0x64]
je 0x65a0ee95
mov ebx, ebp
jmp 0x65a0ed20
mov dword [0x65a265a0], 0x3200
mov ebx, 0x3200
mov dword [esp], ebx
call sym._malloc
mov dword [0x65a2659c], eax
test eax, eax
je 0x65a0eed3
xor edx, edx
mov dword [0x65a26598], eax
mov dword [eax], ebx
mov dword [eax + 4], edx
jmp 0x65a0ede3
mov dword [esp], 0x65a26580
xor edi, edi
mov dword [esp + 0x20], edi
call dbg.__gthr_win32_mutex_init_function
jmp 0x65a0ecb1
mov eax, 8
lea edi, [esp + 0x58]
lea edx, [esp + 0x54]
xor ebx, ebx
lea eax, [ebp + eax + 1]
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._strtoul
mov ebx, dword [esp + 0x54]
movzx edx, byte [ebx]
cmp dl, 0x3a
je 0x65a0eec3
test dl, dl
jne 0x65a0ed20
test eax, eax
js 0x65a0ed20
mov dword [edi + 8], eax
jmp 0x65a0ed20
xor ecx, ecx
mov dword [0x65a265a0], ecx
jmp 0x65a0ede3
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
jmp fcn.00401219

Function at 0x4efc1d
Capabilities:
Encode data using xor

Disassembly:
fnsave dword [edx + 0x45fc4cf2]
xchg ecx, eax
or eax, 0xbb37b85
inc ecx
push es
cmp esi, dword [ecx - 0x65]
stc
adc edi, ebx
add al, 0x72
adc ah, byte [edx + 0x231e16ad]
and ebx, dword [ecx + 0x1d]
push esi
invalid
add al, byte [eax]
mov edi, 0x82abd34e
dec esp
mov eax, dword [0xf2cc67d4]
loop 0x4efbd1
loop 0x4efbd1
in eax, dx
inc eax
stosd dword es:[edi], eax
pop ds
xor ebp, dword [eax]
cld
popal
sti
sti
add bl, ch
jp 0x4efc11
sti
push ss
or al, byte [edi]
pushfd
adc cl, byte [edi + 0x53b02190]
out 0x16, eax
cmpsb byte [esi], byte es:[edi]
add bl, byte [eax - 0x6d23b0a9]
inc edx
ljmp 0x63da

Function at 0x65782d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x65f398
cmp edx, dword [eax]
je 0x65784f
add eax, 8
inc ecx
cmp eax, 0x65f428
jl 0x657840
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x65f398]
jne 0x65797d
mov eax, dword [0xa5bcf4]
cmp eax, 1
je 0x657957
test eax, eax
jne 0x657880
cmp dword [0x65f2c4], 1
je 0x657957
cmp edx, 0xfc
je 0x65797d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x6578b7
lea eax, [ebp - 0x1a4]
push 0x65c9e0
push eax
call fcn.00658210
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.006586a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x6578fa
lea eax, [ebp - 0x1a4]
push eax
call fcn.006586a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65c9dc
push edi
call fcn.0065a570
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x65c9c0
push eax
call fcn.00658210
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00658220
lea eax, [ebp - 0xa0]
push 0x65c9bc
push eax
call fcn.00658220
push dword [esi + 0x65f39c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00658220
push 0x12010
lea eax, [ebp - 0xa0]
push 0x65c994
push eax
call fcn.0065a4e4
add esp, 0x2c
pop edi
jmp 0x65797d
lea eax, [ebp + 8]
lea esi, [esi + 0x65f39c]
push 0
push eax
push dword [esi]
call fcn.006586a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10003700
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x1000371e
push 0
push 0
push 0
push 0x10003600
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
Function at 0x100050d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001df00
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
lea eax, [ecx + 4]
mov dword [ebp - 0x14], ecx
lea ebx, [ecx + 0x24]
mov dword [ecx], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
lea edi, [ecx + 0x28]
mov dword [ebp - 0x14], eax
push 8
mov dword [eax], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
call fcn.10005fe4
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.100071c1
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov dword [eax + 0x34], esi
call fcn.10005230
mov eax, dword [ebp - 0x10]
lea edx, [eax + 8]
lea ecx, [eax + 0x14]
lea esi, [eax + 4]
mov dword [eax + 0x10], edx
mov dword [eax + 0xc], esi
mov esi, eax
mov dword [eax + 0x1c], ecx
mov dword [eax], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [eax + 0x48], 0
mov byte [eax + 0x3d], 0
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], edi
mov esi, dword [ebp - 0x14]
mov dword [edx], 0
mov edx, dword [0x1002ac44]
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [edi], 0
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [0x1002ac40]
mov dword [ebx], 0
mov dword [eax + 0x4c], 0
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], edx
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100066b9
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x100066ee
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x100066eb
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x100066f7
add edx, 0x28
cmp edx, esi
jne 0x100066d9
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x100066f4

Function at 0x1000df84
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100222e8
push 0x100222e0
push str.FlsAlloc
push 0x1f
call fcn.1001356d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100136d9
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001f15c]
call esi
jmp 0x100136df
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10013723
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100222f8
push 0x100222f0
push str.FlsGetValue
push 0x21
call fcn.1001356d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001375a
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001f15c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10013762
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10022300
push 0x100222f8
push str.FlsSetValue
push 0x22
call fcn.1001356d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001379c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001f15c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10013fc8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1001d9a0
mov eax, dword [section..data]
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.10011c91
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1001400a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10014166
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1001d9d0
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 + 0x1002a800]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10014dc9
mov ecx, dword [esi*4 + 0x1002a800]
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 0x1001415f
cmp eax, dword [ecx + edi + 0x24]
jne 0x1001415f
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 0x1001415f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10014dc9
add esp, 0x14
test edx, edx
jl 0x1001415f
jg 0x100140d5
test eax, eax
jb 0x1001415f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1001415f
jl 0x100140ef
cmp dword [ebp - 0x1008], eax
ja 0x1001415f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1001410d
test ebx, ebx
je 0x10014146
cmp ecx, edi
jae 0x10014146
mov al, byte [ecx]
cmp al, 0xd
jne 0x10014127
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10014133
cmp byte [ecx + 1], 0xa
jne 0x10014133
inc ecx
jmp 0x10014133
movzx eax, al
movsx eax, byte [eax + 0x10029308]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1001410d
cmp edx, ebx
jne 0x1001410d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10014164
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10005fd1
leave
ret
Function at 0x10014261
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 + 0x1002a800]
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 0x100142a1
cmp byte [ebx], 0xa
jne 0x100142a1
or byte [edi + eax + 0x28], 4
jmp 0x100142a6
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 0x100143a5
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10014388
inc eax
cmp dl, 0xd
je 0x100142d2
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100142f8
cmp eax, ecx
jae 0x10014306
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 0x100142ba
jmp 0x100143a5
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 0x10014383
cmp dword [ebp - 0x10], 0
je 0x10014383
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1002a800]
test byte [eax + edi + 0x28], 0x48
je 0x1001435d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10014348
mov byte [esi], dl
jmp 0x10014359
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1002a800]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100143a5
cmp byte [ebp - 1], 0xa
jne 0x1001436c
cmp esi, ebx
jne 0x1001436c
mov byte [esi], 0xa
jmp 0x100143a4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10014de7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100143a5
mov byte [esi], 0xd
jmp 0x100143a4
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1002a800]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100143a2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100143a5
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret