joyce8/EMBER2024-capa huggingface dataset:
Function at 0x298068a3
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x298529aa
call fcn.29802379
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x38], ebx
je 0x298069b3
cmp byte [edi + 0x3d], bl
je 0x298069b3
mov eax, dword [edi]
push 0xffffffffffffffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x298583e0]
mov ecx, edi
call esi
cmp eax, 0xffffffff
jne 0x298068e4
xor al, al
jmp 0x298069b5
push ebx
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
call fcn.2980706a
mov dword [ebp - 4], ebx
mov esi, dword [ebp - 0x14]
cmp esi, 0x10
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
add eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x38]
lea eax, [edi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, ebx
je 0x2980693d
sub eax, 1
je 0x29806940
dec eax
sub eax, 1
jne 0x298069a0
inc eax
jmp 0x2980699e
mov byte [edi + 0x3d], bl
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp esi, 0x10
mov edx, dword [ebp - 0x2c]
cmovae eax, ecx
sub edx, eax
mov dword [ebp - 0x30], edx
je 0x2980697c
push dword [edi + 0x4c]
cmp esi, 0x10
lea eax, [ebp - 0x28]
push edx
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov edx, dword [ebp - 0x30]
add esp, 0x10
cmp edx, eax
jne 0x2980699c
mov esi, dword [ebp - 0x14]
cmp byte [edi + 0x3d], 0
je 0x2980699a
test edx, edx
jne 0x29806902
push ebx
push 8
lea ecx, [ebp - 0x28]
call fcn.29806fa0
jmp 0x298068ff
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 4
call fcn.298283b4
mov al, bl
jmp 0x298069b5
mov al, 1
call fcn.29802cf8
ret
Function at 0x298076c0
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x29852b5e
call fcn.29802379
mov ebx, ecx
or edi, 0xffffffff
cmp dword [ebp + 8], edi
jne 0x298076dd
xor eax, eax
jmp 0x29807843
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
test eax, eax
je 0x29807711
mov eax, dword [ebx + 0x30]
mov ecx, ebx
mov edx, dword [ebx + 0x20]
mov esi, dword [eax]
add esi, dword [edx]
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
cmp eax, esi
jae 0x29807711
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
mov ecx, dword [ebp + 8]
mov byte [eax], cl
mov eax, ecx
jmp 0x29807843
cmp dword [ebx + 0x4c], 0
je 0x29807841
mov ecx, ebx
call fcn.29806d41
xor ecx, ecx
cmp dword [ebx + 0x38], ecx
jne 0x29807745
push dword [ebx + 0x4c]
mov ebx, dword [ebp + 8]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x29807841
mov eax, dword [ebp + 8]
push ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
lea ecx, [ebp - 0x28]
push 8
mov byte [ebp - 0x29], al
mov dword [ebp - 0x14], 0xf
call fcn.2980706a
and dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp esi, 0x10
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
add eax, edx
push eax
push ecx
mov ecx, dword [ebx + 0x38]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x29]
push eax
lea eax, [ebx + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x29807832
cmp eax, 1
jg 0x29807817
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp esi, 0x10
mov edx, dword [ebp - 0x30]
cmovae eax, ecx
sub edx, eax
mov dword [ebp - 0x34], edx
je 0x298077e8
push dword [ebx + 0x4c]
cmp esi, 0x10
lea eax, [ebp - 0x28]
push edx
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov edx, dword [ebp - 0x34]
add esp, 0x10
cmp edx, eax
jne 0x29807832
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x29]
mov byte [ebx + 0x3d], 1
cmp dword [ebp - 0x38], eax
jne 0x29807812
test edx, edx
jne 0x2980776a
cmp dword [ebp - 0x18], 0x20
jae 0x29807832
push edx
push 8
lea ecx, [ebp - 0x28]
call fcn.29806fa0
jmp 0x29807767
mov edi, dword [ebp + 8]
jmp 0x29807832
cmp eax, 3
jne 0x29807832
push dword [ebx + 0x4c]
movsx eax, byte [ebp - 0x29]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
pop ecx
cmovne edi, dword [ebp + 8]
pop ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 5
call fcn.298283b4
mov eax, edi
call fcn.29802cf8
ret 4
Function at 0x298283b4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x298283c3
pop dword [ebp - 8]
mov eax, 0x89ab9ebd
add eax, 0x9fd6e506
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xf6cb7392
add dword [ebp - 0x18], 0x5786d1b9
mov dword [ebp - 0x14], 0x7e3cf8c1
add dword [ebp - 0x14], 0xb3f65384
mov dword [ebp - 0x10], 0x379c51ba
sub dword [ebp - 0x10], 0xeb500d8c
mov dword [ebp - 0xc], 0x2d4adade
sub dword [ebp - 0xc], 0x2d4adade
lea eax, [ebp - 0x18]
push eax
mov eax, 0xa7a6afbd
sub eax, 0x7e212efd
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x250cf202
sub dword [ebp - 0x18], 0xb09a88ac
mov dword [ebp - 0x14], 0x11f3c9ab
add dword [ebp - 0x14], 0x2f7897ca
mov dword [ebp - 0x10], 0x4322a318
sub dword [ebp - 0x10], 0xdfb336ac
mov dword [ebp - 0xc], 0x3f657162
add dword [ebp - 0xc], 0xc09a8e9e
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x47ba9
push 0
call eax
mov ecx, 0x8973f439
add ecx, 0x768c53d1
xor edx, edx
add edx, eax
mov edi, 0xe288ab61
add edi, 0x4700da9f
add edi, dword [ebp - 8]
mov esi, 0x8411cfa7
sub dword [ebp - 4], 0x3f36c3af
mov ebx, dword [edi]
sub dword [ebp - 4], edi
add ebx, esi
xor dword [ebp - 4], 0x2bd1153d
mov dword [edx], ebx
xor dword [ebp - 4], eax
add edx, 4
add edi, 0x4d33ebaf
sub edi, 0x4d33ebab
loop 0x298284dc
add eax, 0x112fb
mov ebx, eax
add eax, 5
mov ecx, 0xcfc4fa6e
add ecx, 0x59bb0592
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x405c83
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4345c0
call fcn.004339e0
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00407553
mov esi, dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 1
je 0x405caf
push edi
call esi
cmp eax, 0xffffffff
jne 0x405cf1
test ebx, ebx
je 0x405cee
lea ecx, [ebp - 0x18]
call fcn.004028e9
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.0040765c
test al, al
push dword [ebp - 0x18]
je 0x405ce8
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401abd
pop ecx
mov eax, esi
jmp 0x405cf1
call fcn.00401abd
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x406306
Capabilities:
Get disk information

Disassembly:
mov eax, 0x434664
call fcn.004339e0
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call fcn.0041c900
mov edi, dword [sym.imp.kernel32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x14], ebx
je 0x4063d4
mov eax, SysReAllocString
cmp ebx, eax
ja 0x406342
mov eax, ebx
add eax, eax
push eax
call fcn.004066d0
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
push esi
push ebx
call edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x10], ebx
je 0x4063cd
cmp ebx, dword [ebp - 0x14]
ja 0x4063cd
lea ecx, [ebp - 0x2c]
call fcn.004028e9
test ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], edi
jbe 0x4063b5
push 2
xor eax, eax
pop ebx
cmp word [esi + ebx - 2], 0
jne 0x4063aa
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.004066d0
mov ecx, dword [ebp - 0x18]
lea eax, [edi + 1]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x1c], ebx
call fcn.0040150c
mov eax, ebx
inc edi
inc ebx
inc ebx
cmp edi, dword [ebp - 0x10]
jb 0x406380
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x2c]
call fcn.00401abd
push esi
call fcn.00401abd
cmp dword [ebp - 0x14], ebx
pop ecx
pop ecx
sete al
jmp 0x4063d6
push esi
call fcn.00401abd
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4066d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x4066df
pop dword [ebp - 0x38]
mov eax, 0x60aa254d
sub eax, 0x6069be6e
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x3b586
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0x5e3b9669
add ecx, 0xa1c4b457
xor esi, esi
add esi, eax
mov edx, 0xa4063fbc
sub edx, 0xa3c179bc
add edx, dword [ebp - 0x38]
mov ebx, 0xbd550a43
sub ebx, 0x77cb4bbf
mov edi, dword [edx]
add edi, ebx
sub dword [ebp - 0x20], edx
mov dword [esi], edi
xor dword [ebp - 0x14], 0x3b87d238
add esi, 0x12f19492
sub esi, 0x12f1948e
add edx, 0x57bc3f8f
sub edx, 0x57bc3f8b
loop 0x40673b
add eax, 0x11dd3
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xa4d0054b
add ecx, 0x5b6ffab5
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x407601
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x407610
pop dword [ebp - 0x1c]
mov eax, 0x614c750d
sub eax, 0x610bfefd
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x39b30
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0xa7277698
add ecx, 0x58d8d30d
xor edi, edi
add edi, eax
mov ebx, 0x413bc4
add ebx, dword [ebp - 0x1c]
mov edx, 0x43f6969c
sub edx, 0x72db5ccc
xor dword [ebp - 0x18], 0x5c5eb6e3
mov esi, dword [ebx]
xor dword [ebp - 0x18], esi
sub esi, edx
xor dword [ebp - 0x18], 0xf6781227
mov dword [edi], esi
xor dword [ebp - 8], 0xdd077688
add edi, 0xa04051b0
sub edi, 0xa04051ac
add ebx, 0x2b4adf64
add ebx, 0xd4b520a0
loop 0x407666
add eax, 0xf567db80
add eax, 0xa993de7
mov ebx, eax
add eax, 0x137f9239
add eax, 0xec806dcc
mov ecx, 0x400000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x10004a90
Capabilities:
Create directory

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov bl, byte [edi + 1]
lea esi, [edi + 1]
test bl, bl
je 0x10004ac0
nop
cmp bl, 0x2f
je 0x10004aaa
cmp bl, 0x5c
jne 0x10004ab8
push edi
mov byte [esi], 0
call fcn.10042605
add esp, 4
mov byte [esi], bl
mov bl, byte [esi + 1]
inc esi
test bl, bl
jne 0x10004aa0
pop edi
pop esi
pop ebx
ret

Function at 0x1000c7a0
Capabilities:
Compute adler32 checksum

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
mov eax, 0x5e6ea9af
push esi
push edi
mov edi, edx
movzx esi, cx
mul ebp
shr ecx, 0x10
shr edx, 0xb
imul eax, edx, 0x15b0
mov edx, ebp
sub edx, eax
mov dword [esp + 0xc], edx
test edi, edi
jne 0x1000c7d8
lea eax, [edi + 1]
pop edi
pop esi
pop ebp
add esp, 0xc
ret
test ebp, ebp
je 0x1000c8d2
push ebx
xor ebx, ebx
cmp edx, 7
jbe 0x1000c83c
mov ebp, 7
sub ebp, edi
nop
movzx eax, byte [edi]
add ebx, 8
add esi, eax
movzx eax, byte [edi + 1]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 2]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 3]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 4]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 5]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 6]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 7]
add edi, 8
add ecx, esi
add esi, eax
add ecx, esi
lea eax, [edi + ebp]
cmp eax, edx
jb 0x1000c7f0
xor ebp, ebp
cmp ebx, edx
jae 0x1000c892
mov eax, edx
sub eax, ebx
cmp eax, 2
jb 0x1000c883
sub edx, ebx
sub edx, 2
shr edx, 1
inc edx
lea eax, [ebx + edx*2]
mov ebx, ebp
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [edi]
add esi, eax
movzx eax, byte [edi + 1]
add ebp, esi
add edi, 2
add esi, eax
add ebx, esi
sub edx, 1
jne 0x1000c860
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x10]
jae 0x1000c88d
jmp 0x1000c885
mov ebx, ebp
movzx eax, byte [edi]
add esi, eax
add ecx, esi
inc edi
lea eax, [ebx + ebp]
add ecx, eax
mov eax, 0x80078071
mov ebp, dword [esp + 0x20]
mul esi
shr edx, 0xf
imul eax, edx, 0xffff000f
add esi, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
mov edx, 0x15b0
add ecx, eax
sub ebp, dword [esp + 0x10]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x10], edx
jne 0x1000c7e1
pop ebx
shl ecx, 0x10
pop edi
lea eax, [esi + ecx]
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x10015520
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, edx
push edi
mov edi, ecx
mov eax, dword [edi]
cmp ebx, 8
jb 0x100155bb
mov edx, ebx
shr edx, 3
mov ecx, edx
neg ecx
lea ebx, [ebx + ecx*8]
xor eax, dword [esi]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x100775f0]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x100775f0]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x100775f0]
mov ecx, eax
movzx eax, cl
shr ecx, 8
mov eax, dword [eax*4 + 0x100775f0]
xor eax, dword [esi + 4]
add esi, 8
xor eax, ecx
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x100775f0]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x100775f0]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x100775f0]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x100775f0]
sub edx, 1
jne 0x10015542
test bl, 4
je 0x100155fc
xor eax, dword [esi]
sub ebx, 4
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x100775f0]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x100775f0]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x100775f0]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x100775f0]
add esi, 4
test ebx, ebx
je 0x1001561a
movzx edx, byte [esi]
lea esi, [esi + 1]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100775f0]
sub ebx, 1
jne 0x10015600
mov dword [edi], eax
pop edi
pop esi
pop ebx
ret

Function at 0x10022aaf
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10022aee
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10022aee
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10022aee
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10022aee
cmp dword [ecx + 0x74], 0xe
jbe 0x10022aee
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1002571b
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 + 0x1007d700]
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 0x1002575b
cmp byte [ebx], 0xa
jne 0x1002575b
or byte [edi + eax + 0x28], 4
jmp 0x10025760
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 0x1002585f
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10025842
inc eax
cmp dl, 0xd
je 0x1002578c
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100257b2
cmp eax, ecx
jae 0x100257c0
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 0x10025774
jmp 0x1002585f
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 0x1002583d
cmp dword [ebp - 0x10], 0
je 0x1002583d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1007d700]
test byte [eax + edi + 0x28], 0x48
je 0x10025817
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10025802
mov byte [esi], dl
jmp 0x10025813
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1007d700]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1002585f
cmp byte [ebp - 1], 0xa
jne 0x10025826
cmp esi, ebx
jne 0x10025826
mov byte [esi], 0xa
jmp 0x1002585e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10048d7c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1002585f
mov byte [esi], 0xd
jmp 0x1002585e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1007d700]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1002585c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1002585f
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10025868
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 + 0x1007d700]
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 0x100258ae
cmp word [ebx], dx
jne 0x100258ae
or byte [eax + edi + 0x28], 4
jmp 0x100258b3
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 0x10025a16
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 0x100259f6
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100258f4
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1002592a
cmp eax, edx
jae 0x10025938
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 0x100258cf
jmp 0x10025a16
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 0x100259f1
cmp dword [ebp - 0x18], 0
je 0x100259f1
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1007d700]
test byte [eax + edi + 0x28], 0x48
je 0x100259c7
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 0x1002598b
mov word [esi], cx
jmp 0x100259c2
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1007d700]
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 + 0x1007d700]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1007d700]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10025a16
pop eax
cmp word [ebp - 4], ax
jne 0x100259d7
cmp esi, ebx
jne 0x100259d7
mov word [esi], ax
jmp 0x10025a13
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10048d7c
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10025a16
push 0xd
pop eax
jmp 0x100259d2
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1007d700]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10025a10
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10025a16
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 0x10027f50
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1007c008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x1006f344
push esi
call fcn.1005294f
pop ecx
pop ecx
test eax, eax
jne 0x10027f7e
xor al, al
jmp 0x10027ffb
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.10027bad
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x10027fb8
push dword [ebp - 0x210]
call fcn.100425ea
xor al, al
jmp 0x10027ff9
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x10027fbe
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x10027fde
push edx
call fcn.10027e87
pop ecx
test al, al
je 0x10027fa9
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x10027fec
mov bl, 1
push dword [ebp - 0x210]
call fcn.100425ea
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10015fa5
leave
ret
Function at 0x1004db19
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1007057c
push 0x10070574
push str.FlsAlloc
push 0x1f
call fcn.1004d7e7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004db4d
push dword [ebp + 8]
mov ecx, esi
call dword [0x1006e184]
call esi
jmp 0x1004db53
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1004db97
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1007058c
push 0x10070584
push str.FlsGetValue
push 0x21
call fcn.1004d7e7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004dbce
push dword [ebp + 8]
mov ecx, esi
call dword [0x1006e184]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1004dbd6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10070594
push 0x1007058c
push str.FlsSetValue
push 0x22
call fcn.1004d7e7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004dc10
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1006e184]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]