joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401460
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], 8
call sym._CreateToolhelp32Snapshot_8
sub esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x401516
mov dword [ebp - 0x234], 0x224
lea eax, [ebp - 0x234]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._Module32First_8
sub esp, 8
test eax, eax
setne al
test al, al
je 0x401508
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x234]
add eax, 0x20
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x4014e5
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0xc], eax
jmp 0x401508
lea eax, [ebp - 0x234]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._Module32Next_8
sub esp, 8
test eax, eax
setne al
test al, al
je 0x401508
jmp 0x4014be
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x401565
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x10]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x40
mov edx, dword [ebp + 0x14]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._VirtualProtectEx_20
sub esp, 0x14
test eax, eax
setne al
test al, al
je 0x401681
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x14]
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 0x14]
mov dword [esp + 0xc], edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov edx, dword [ebp + 0x14]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._VirtualProtectEx_20
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax]
mov dword [esp + 4], str.Escribiendo_en_la_direccin:
mov dword [esp], sym.imp.libstdc_6.dll_std::cout
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [esp], method.std.hex_std::ios_base_
mov ecx, eax
call sym.std::ostream::operator___std::ios_base____std::ios_base__
sub esp, 4
mov edx, eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
mov ecx, edx
call sym.std::ostream::operator___unsigned_int_
sub esp, 4
mov dword [esp + 4], str._el_valor:
mov dword [esp], eax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [esp], ebx
mov ecx, eax
call sym.std::ostream::operator___int_
sub esp, 4
mov dword [esp], sym.std::basic_ostream_char__std::char_traits_char____std::endl_char__std::char_traits_char____std::basic_ostream_char__std::char_traits_char____
mov ecx, eax
call sym.std::ostream::operator___std::ostream____std::ostream__
sub esp, 4
cmp dword [ebp - 0xc], 0
je 0x40167a
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0x14]
jne 0x40167a
mov eax, 1
jmp 0x401686
mov eax, 0
jmp 0x401686
mov eax, 0
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x40168b
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov dword [ebp - 0xc], 0
mov dword [esp + 4], 0
mov dword [esp], 2
call sym._CreateToolhelp32Snapshot_8
sub esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x401742
mov dword [ebp - 0x138], 0x128
lea eax, [ebp - 0x138]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._Process32First_8
sub esp, 8
test eax, eax
setne al
test al, al
je 0x401734
lea eax, [ebp - 0x138]
add eax, 0x24
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call method.bool_std::operator_char__std::char_traits_char___std.allocator_char____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__char_const_
test al, al
je 0x401711
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0xc], eax
jmp 0x401734
lea eax, [ebp - 0x138]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._Process32Next_8
sub esp, 8
test eax, eax
setne al
test al, al
je 0x401734
jmp 0x4016ea
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x402460
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408048
call sym._EnterCriticalSection_4
mov ebx, dword [0x408040]
sub esp, 4
test ebx, ebx
je 0x4024ab
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x4024a4
test esi, esi
je 0x4024a4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402480
mov dword [esp], 0x408048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402690
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4026e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4027b8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40271e
cmp eax, 4
jne 0x402740
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40272e
cmp edx, 4
je 0x40272e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402690
Function at 0x401329
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x401199
jmp 0x4013a3
jmp 0x4010df
jmp 0x401406
jmp 0x4011d1
jmp 0x40110e
push 1
push 0
push 3
call dword [sym.imp.KERNEL32.dll_SleepEx]
dec dword [esp]
jne 0x4011d3
add esp, 4
cmp bp, 0xfd00
jb 0x401358
push str.ghemeui.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
jne 0x401358
lea edx, str.ghemeui.DLL
mov byte [edx], 0x74
push edx
mov edx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call edx
mov dword [0x402204], eax
mov edx, dword [0x402204]
add edx, dword [edx + 0x3c]
add edx, 0xa4
push 0
push 4
push edx
push 0x40221f
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp dword [0x40221f], 0x1400
jb 0x401358
lea edx, [0xa8b4966f]
add edx, 0x578b7c05
push edx
jmp dword [esp]
push ebp
xor eax, eax
mov ebp, esp
lea esp, [esp - 0x60]
cmp bp, 0xfcff
jb 0x401358
lea esi, [0x402237]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
jmp 0x4011a5
mov esp, ebp
pop ebp
hlt
jmp 0x40111a
jmp 0x401134
jmp 0x401374
Function at 0x100038f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
test ebx, ebx
je 0x10003adc
push esi
lea esi, [ebx + 0x230]
mov ecx, esi
call fcn.10005660
mov eax, dword [esi + 0x44]
test eax, eax
je 0x1000391c
push eax
call fcn.1001791b
add esp, 4
push 0x58
push 0
push esi
call fcn.1000fa00
add esp, 0xc
lea ecx, [ebx + 0x1e0]
call fcn.100059a0
lea esi, [ebx + 0x78]
test esi, esi
je 0x1000397a
mov eax, dword [esi]
test eax, eax
je 0x1000394a
push eax
call fcn.1001791b
add esp, 4
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1000395a
push eax
call fcn.1001791b
add esp, 4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1000396a
push eax
call fcn.1001791b
add esp, 4
push 0x168
push 0
push esi
call fcn.1000fa00
add esp, 0xc
cmp dword [ebx + 0x48], 0
je 0x10003a4d
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x10003a4d
push ebp
xor ebp, ebp
test eax, eax
jle 0x10003a39
xor esi, esi
xor eax, eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
push edi
nop word [eax + eax]
mov ecx, dword [ebx + 0x48]
add ecx, eax
call fcn.10006340
mov edi, dword [ebx + 0x4c]
add edi, esi
je 0x10003a1c
cmp dword [edi], 0
je 0x100039f6
xor esi, esi
cmp dword [edi + 8], esi
jle 0x100039e8
nop dword [eax]
mov eax, dword [edi]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x100039e2
push eax
call fcn.1001791b
add esp, 4
inc esi
cmp esi, dword [edi + 8]
jl 0x100039d0
push dword [edi]
call fcn.1001791b
mov esi, dword [esp + 0x18]
add esp, 4
mov eax, dword [edi + 4]
test eax, eax
je 0x10003a06
push eax
call fcn.1001791b
add esp, 4
mov eax, dword [edi + 0xc]
test eax, eax
je 0x10003a16
push eax
call fcn.1001791b
add esp, 4
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov eax, dword [esp + 0x10]
inc ebp
add eax, 0x20
add esi, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
cmp ebp, dword [ebx + 0x34]
jl 0x100039b0
pop edi
push dword [ebx + 0x48]
call fcn.1001791b
push dword [ebx + 0x4c]
call fcn.1001791b
add esp, 8
pop ebp
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x10003a5d
push eax
call fcn.1001791b
add esp, 4
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x10003a6d
push eax
call fcn.1001791b
add esp, 4
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x10003a7d
push eax
call fcn.1001791b
add esp, 4
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x10003a8d
push eax
call fcn.1001791b
add esp, 4
lea esi, [ebx + 0x18]
test esi, esi
je 0x10003ab5
mov eax, dword [esi]
test eax, eax
je 0x10003aa3
push eax
call fcn.1001791b
add esp, 4
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movq qword [esi + 0x10], xmm0
mov dword [esi + 0x18], 0
mov eax, dword [ebx]
pop esi
test eax, eax
je 0x10003acc
mov ecx, dword [ebx + 0x290]
test ecx, ecx
je 0x10003acc
push eax
call ecx
add esp, 4
push 0x298
push 0
push ebx
call fcn.1000fa00
add esp, 0xc
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x1000dc00
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, edx
cmp edi, 8
jl 0x1000dcaf
push ebx
mov ebx, edi
shr ebx, 3
mov eax, ebx
neg eax
lea edi, [edi + eax*8]
nop
movzx eax, byte [esi]
movzx edx, byte [esi + 1]
shl eax, 8
or edx, eax
movzx eax, byte [esi + 2]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 3]
shl edx, 8
or edx, eax
xor ecx, edx
mov eax, ecx
shr eax, 0x10
movzx edx, al
mov eax, ecx
shr eax, 8
movzx eax, al
mov edx, dword [edx*4 + 0x1003a070]
xor edx, dword [eax*4 + 0x10039c70]
movzx eax, byte [esi + 6]
xor edx, dword [eax*4 + 0x10038c70]
movzx eax, byte [esi + 5]
xor edx, dword [eax*4 + 0x10039070]
movzx eax, byte [esi + 7]
xor edx, dword [eax*4 + 0x10038870]
movzx eax, byte [esi + 4]
add esi, 8
xor edx, dword [eax*4 + 0x10039470]
mov eax, ecx
shr eax, 0x18
xor edx, dword [eax*4 + 0x1003a470]
movzx eax, cl
xor edx, dword [eax*4 + 0x10039870]
mov ecx, edx
sub ebx, 1
jne 0x1000dc20
pop ebx
test edi, edi
je 0x1000dccf
movzx eax, byte [esi]
lea esi, [esi + 1]
mov edx, ecx
shl ecx, 8
shr edx, 0x18
xor edx, eax
xor ecx, dword [edx*4 + 0x10038870]
sub edi, 1
jne 0x1000dcb3
pop edi
mov eax, ecx
pop esi
ret
Function at 0x10017d5f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10026210
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.10019c55
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10017da1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10017efd
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10026160
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 + 0x10040f48]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1001c27f
mov ecx, dword [esi*4 + 0x10040f48]
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 0x10017ef6
cmp eax, dword [ecx + edi + 0x24]
jne 0x10017ef6
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 0x10017ef6
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001c27f
add esp, 0x14
test edx, edx
jl 0x10017ef6
jg 0x10017e6c
test eax, eax
jb 0x10017ef6
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10017ef6
jl 0x10017e86
cmp dword [ebp - 0x1008], eax
ja 0x10017ef6
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10017ea4
test ebx, ebx
je 0x10017edd
cmp ecx, edi
jae 0x10017edd
mov al, byte [ecx]
cmp al, 0xd
jne 0x10017ebe
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10017eca
cmp byte [ecx + 1], 0xa
jne 0x10017eca
inc ecx
jmp 0x10017eca
movzx eax, al
movsx eax, byte [eax + 0x10040240]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10017ea4
cmp edx, ebx
jne 0x10017ea4
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10017efb
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1000e65d
leave
ret

Function at 0x10018ee5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10018f24
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10018f24
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10018f24
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10018f24
cmp dword [ecx + 0x74], 0xe
jbe 0x10018f24
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001c2fb
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 + 0x10040f48]
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 0x1001c33b
cmp byte [ebx], 0xa
jne 0x1001c33b
or byte [edi + eax + 0x28], 4
jmp 0x1001c340
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 0x1001c43f
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1001c422
inc eax
cmp dl, 0xd
je 0x1001c36c
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1001c392
cmp eax, ecx
jae 0x1001c3a0
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 0x1001c354
jmp 0x1001c43f
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 0x1001c41d
cmp dword [ebp - 0x10], 0
je 0x1001c41d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10040f48]
test byte [eax + edi + 0x28], 0x48
je 0x1001c3f7
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1001c3e2
mov byte [esi], dl
jmp 0x1001c3f3
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10040f48]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1001c43f
cmp byte [ebp - 1], 0xa
jne 0x1001c406
cmp esi, ebx
jne 0x1001c406
mov byte [esi], 0xa
jmp 0x1001c43e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001c29d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1001c43f
mov byte [esi], 0xd
jmp 0x1001c43e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10040f48]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1001c43c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1001c43f
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001c448
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 + 0x10040f48]
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 0x1001c48e
cmp word [ebx], dx
jne 0x1001c48e
or byte [eax + edi + 0x28], 4
jmp 0x1001c493
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 0x1001c5f6
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 0x1001c5d6
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1001c4d4
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1001c50a
cmp eax, edx
jae 0x1001c518
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 0x1001c4af
jmp 0x1001c5f6
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 0x1001c5d1
cmp dword [ebp - 0x18], 0
je 0x1001c5d1
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10040f48]
test byte [eax + edi + 0x28], 0x48
je 0x1001c5a7
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 0x1001c56b
mov word [esi], cx
jmp 0x1001c5a2
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10040f48]
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 + 0x10040f48]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10040f48]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1001c5f6
pop eax
cmp word [ebp - 4], ax
jne 0x1001c5b7
cmp esi, ebx
jne 0x1001c5b7
mov word [esi], ax
jmp 0x1001c5f3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1001c29d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1001c5f6
push 0xd
pop eax
jmp 0x1001c5b2
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10040f48]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1001c5f0
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1001c5f6
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 0x1001e63d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001e6da
push ebx
push esi
call fcn.1001e606
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001e59a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001e687
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001e6d9
push edi
push eax
call fcn.1001ac39
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001e6a7
call fcn.100199b2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001e6d8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001e59a
add esp, 0x20
test eax, eax
jne 0x1001e6c6
push edi
call fcn.100199b2
jmp 0x1001e6ce
push ebx
call fcn.100199b2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1001e947
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002af30
push 0x1002af28
push str.FlsAlloc
push 0x1f
call fcn.1001e863
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001e97b
push dword [ebp + 8]
mov ecx, esi
call dword [0x10028114]
call esi
jmp 0x1001e981
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001e9c5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002af40
push 0x1002af38
push str.FlsGetValue
push 0x21
call fcn.1001e863
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001e9fc
push dword [ebp + 8]
mov ecx, esi
call dword [0x10028114]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001ea04
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002af48
push 0x1002af40
push str.FlsSetValue
push 0x22
call fcn.1001e863
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001ea3e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10028114]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]