joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f1280
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, eax
mov ecx, dword [ebp + 0xc]
neg edx
and edx, 3
dec edx
cmp edx, 3
ja case.default.0x4f1296
jmp dword [edx*4 + 0x4f1338]
mov dl, byte [eax]
cmp dl, cl
je 0x4f1335
test dl, dl
je 0x4f1335
inc eax
mov dl, byte [eax]
cmp dl, cl
je 0x4f1335
test dl, dl
je 0x4f1335
inc eax
mov dl, byte [eax]
cmp dl, cl
je 0x4f1335
test dl, dl
je 0x4f1335
inc eax
mov dl, byte [eax]
cmp dl, cl
je 0x4f1335
test dl, dl
je 0x4f1335
inc eax
mov edx, dword [eax]
push esi
movzx ecx, cl
push edi
imul edi, ecx, 0x1010101
mov ecx, edx
xor ecx, edi
lea esi, [ecx - 0x1010101]
not ecx
and esi, ecx
lea ecx, [edx - 0x1010101]
not edx
and ecx, edx
or esi, ecx
and esi, 0x80808080
jne 0x4f1328
mov edx, dword [eax + 4]
add eax, 4
mov ecx, edx
xor ecx, edi
lea esi, [ecx - 0x1010101]
not ecx
and esi, ecx
lea ecx, [edx - 0x1010101]
not edx
and ecx, edx
or esi, ecx
and esi, 0x80808080
je 0x4f1300
bsf ecx, esi
pop edi
mov dword [ebp + 8], ecx
sar ecx, 3
add eax, ecx
pop esi
pop ebp
ret

Function at 0x4f4c60
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push 1
call fcn.004f6de0
push dword [ebp + 8]
mov esi, eax
push 0
call fcn.004f6de0
add esp, 0x10
push 1
push dword [esi]
push dword [eax]
call dword [sym.imp.x_MoveFileExW]
pop esi
test eax, eax
je 0x4f4c92
xor eax, eax
pop ebp
ret
call dword [sym.imp.x_GetLastError]
push eax
call fcn.004f7664
add esp, 4
or eax, 0xffffffff
pop ebp
ret

Function at 0x4f5260
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push 0
call fcn.004f6de0
push dword [eax]
call fcn.00500b78
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4f529b
mov ecx, dword [0x586a70]
not ecx
and ecx, dword [ebp + 0xc]
test cl, 2
je 0x4f529b
push dword [ebp + 8]
call fcn.004f5410
add esp, 4
mov eax, esi
pop esi
pop ebp
ret

Function at 0x4f5300
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ff60a
Function at 0x4f5310
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
push 0
movdqu xmmword [ebp - 0x24], xmm0
movdqu xmmword [ebp - 0x14], xmm0
call fcn.004f6de0
add esp, 8
mov ebx, dword [eax]
lea eax, [ebp - 0x28]
push eax
push 0
push ebx
call dword [sym.imp.x_GetFileAttributesExW]
push eax
call fcn.004f5db0
neg eax
push ebx
sbb esi, esi
inc esi
call dword [ebp + 8]
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
jne 0x4f53d4
test esi, esi
jne 0x4f53d4
mov edi, dword [sym.imp.x_GetTickCount]
call edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push esi
push ebx
call dword [sym.imp.x_GetFileAttributesExW]
push eax
call fcn.004f5db0
add esp, 4
test eax, eax
jne 0x4f53d1
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
cmp dword [esi + 0x2b38], 0
je 0x4f53a3
mov eax, dword [esi + 0x2b38]
jmp 0x4f53a8
call fcn.004f7685
cmp dword [eax], 5
jne 0x4f53d1
call edi
sub eax, dword [ebp - 4]
cmp eax, 2
ja 0x4f53db
lea eax, [ebp - 0x28]
push eax
push 0
push ebx
call dword [sym.imp.x_GetFileAttributesExW]
push eax
call fcn.004f5db0
add esp, 4
test eax, eax
je 0x4f5392
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4f5b10
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
push 0
push 0x2000080
push 3
push 0
push 3
push 0x100
push dword [ebp + 8]
or edi, 0xffffffff
call fcn.004f6f60
push eax
call fcn.004f5de0
add esp, 0x20
mov dword [ebp - 4], eax
test eax, eax
je 0x4f5b9e
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
test esi, esi
jne 0x4f5b64
call dword [sym.imp.x_GetSystemTimeAsFileTime]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
jmp 0x4f5b7a
push esi
call fcn.004f7070
lea eax, [ebp - 0x14]
push eax
lea eax, [esi + 8]
push eax
call fcn.004f7070
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp - 4]
call dword [sym.imp.x_SetFileTime]
push eax
call fcn.004f5db0
add esp, 4
xor ecx, ecx
test eax, eax
cmovne edi, ecx
pop esi
lea eax, [ebp - 4]
push eax
call fcn.004f6f30
add esp, 4
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4f65e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp byte [ebx], 0
jne 0x4f660e
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x2b38]
test eax, eax
jne 0x4f6603
call fcn.004f7685
mov dword [eax], 2
xor eax, eax
pop ebx
pop ebp
ret
push ebx
push 0
call fcn.004f6de0
add esp, 8
push dword [eax]
call dword [sym.imp.x_GetFileAttributesW]
push eax
call fcn.004f5db0
add esp, 4
cmp eax, 0xffffffff
je 0x4f6609
test al, 0x10
jne 0x4f6655
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x2b38]
test eax, eax
jne 0x4f664a
call fcn.004f7685
mov dword [eax], 0x14
xor eax, eax
pop ebx
pop ebp
ret
push esi
push edi
push 1
push 0x1c
call fcn.004f76d9
push 1
push 0x128
mov edi, eax
call fcn.004f76d9
push ebx
mov esi, eax
call fcn.004f58d0
add esp, 0x14
mov dword [esi], eax
mov dword [edi], esi
mov eax, edi
mov dword [edi + 8], 0xffffffff
mov dword [edi + 0xc], 0x128
mov dword [edi + 0x10], 0x128
mov dword [edi + 4], 8
mov dword [edi + 0x14], 1
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4f66b0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x358
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov ebx, dword [esi]
cmp eax, 0xffffffff
jne 0x4f677d
mov ecx, dword [ebx]
lea edx, [ebp - 0x108]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4f66d7
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f66f0
sub ecx, edx
cmp byte [ebp + ecx - 0x109], 0x2f
je 0x4f6723
lea edi, [ebp - 0x108]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4f6710
mov ax, word [0x51644c]
mov word [edi], ax
lea edi, [ebp - 0x108]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4f6730
mov ax, word [0x516bc8]
mov word [edi], ax
lea eax, [ebp - 0x108]
push eax
push 0
call fcn.004f6de0
add esp, 8
lea ecx, [ebp - 0x358]
push ecx
push dword [eax]
call dword [sym.imp.x_FindFirstFileW]
push eax
call fcn.004f5db0
add esp, 4
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x4f67d2
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x358]
push ecx
push eax
call dword [sym.imp.x_FindNextFileW]
push eax
call fcn.004f5db0
add esp, 4
test eax, eax
jne 0x4f67d2
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
mov eax, dword [esi + 0x2b38]
test eax, eax
jne 0x4f67af
call fcn.004f7685
cmp dword [eax], 0x12
jne 0x4f67c9
mov eax, dword [esi + 0x2b38]
test eax, eax
jne 0x4f67c3
call fcn.004f7685
mov dword [eax], 0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
test byte [ebp - 0x358], 0x10
mov dword [ebx + 8], 0
sete al
mov dword [ebx + 0xc], 0
lea eax, [eax*4 + 4]
mov byte [ebx + 0x120], al
mov eax, pe_nt_image_headers32
mov word [ebx + 0x10], ax
lea eax, [ebp - 0x32c]
push eax
push 0
call fcn.004f6ba0
push 0x104
lea esi, [ebx + 0x14]
push dword [eax]
push esi
call fcn.004f6d50
add esp, 0x14
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4f6824
mov eax, dword fs:[0x2c]
sub esi, ecx
mov word [ebx + 0x12], si
mov eax, dword [eax]
mov eax, dword [eax + 0x2b38]
test eax, eax
jne 0x4f6848
call fcn.004f7685
pop edi
mov dword [eax], 0
lea eax, [ebx + 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4f6b30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x2c]
push dword [ebp + 8]
mov eax, dword [eax]
add eax, 0x2cf0
push eax
call fcn.004f6e30
add esp, 8
push dword [eax]
call dword [sym.imp.x_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret
Function at 0x508bbe
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x582ac0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.x_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00501308
mov dword [ebp - 0x14], eax
cmp dword [0x5879f8], esi
jne 0x508cb1
push 0x800
push esi
push 0x561c00
call dword [sym.imp.x_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x508c3e
call dword [sym.imp.x_GetLastError]
cmp eax, 0x57
jne 0x508d91
push esi
push esi
push 0x561c00
call dword [sym.imp.x_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x508d91
push 0x561c18
push edi
call dword [sym.imp.x_GetProcAddress]
test eax, eax
je 0x508d91
push eax
call ebx
push 0x561c24
push edi
mov dword [0x5879f8], eax
call dword [sym.imp.x_GetProcAddress]
push eax
call ebx
push 0x561c34
push edi
mov dword [0x5879fc], eax
call dword [sym.imp.x_GetProcAddress]
push eax
call ebx
push 0x561c48
push edi
mov dword [0x587a00], eax
call dword [sym.imp.x_GetProcAddress]
push eax
call ebx
mov dword [0x587a08], eax
test eax, eax
je 0x508cae
push 0x561c64
push edi
call dword [sym.imp.x_GetProcAddress]
push eax
call ebx
mov dword [0x587a04], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.x_IsDebuggerPresent]
test eax, eax
je 0x508cd6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x508cc9
push eax
call dword [sym.imp.x_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x508ceb
push 4
pop eax
jmp 0x508d93
cmp dword [ebp - 0x14], esi
je 0x508ceb
push dword [0x5879f8]
call dword [sym.imp.x_DecodePointer]
push 3
jmp 0x508cd0
mov eax, dword [0x587a04]
mov ebx, dword [sym.imp.x_DecodePointer]
cmp eax, edi
je 0x508d49
cmp dword [0x587a08], edi
je 0x508d49
push eax
call ebx
push dword [0x587a08]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x508d49
test eax, eax
je 0x508d49
call ecx
test eax, eax
je 0x508d3e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x508d3e
test byte [ebp - 8], 1
jne 0x508d49
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x508d79
mov eax, dword [0x5879fc]
cmp eax, edi
je 0x508d76
push eax
call ebx
test eax, eax
je 0x508d76
call eax
mov esi, eax
test esi, esi
je 0x508d76
mov eax, dword [0x587a00]
cmp eax, edi
je 0x508d76
push eax
call ebx
test eax, eax
je 0x508d76
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5879f8]
call ebx
test eax, eax
je 0x508d91
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x508d93
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00505912
mov esp, ebp
pop ebp
ret
Function at 0x10004bf0
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 0x10004c20
nop
cmp bl, 0x2f
je 0x10004c0a
cmp bl, 0x5c
jne 0x10004c18
push edi
mov byte [esi], 0
call fcn.10043925
add esp, 4
mov byte [esi], bl
mov bl, byte [esi + 1]
inc esi
test bl, bl
jne 0x10004c00
pop edi
pop esi
pop ebx
ret

Function at 0x1000cd70
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 0x1000cda8
lea eax, [edi + 1]
pop edi
pop esi
pop ebp
add esp, 0xc
ret
test ebp, ebp
je 0x1000cea2
push ebx
xor ebx, ebx
cmp edx, 7
jbe 0x1000ce0c
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 0x1000cdc0
xor ebp, ebp
cmp ebx, edx
jae 0x1000ce62
mov eax, edx
sub eax, ebx
cmp eax, 2
jb 0x1000ce53
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 0x1000ce30
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x10]
jae 0x1000ce5d
jmp 0x1000ce55
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 0x1000cdb1
pop ebx
shl ecx, 0x10
pop edi
lea eax, [esi + ecx]
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x10016360
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 0x100163fb
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 + 0x100776d0]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x100776d0]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x100776d0]
mov ecx, eax
movzx eax, cl
shr ecx, 8
mov eax, dword [eax*4 + 0x100776d0]
xor eax, dword [esi + 4]
add esi, 8
xor eax, ecx
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x100776d0]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x100776d0]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x100776d0]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x100776d0]
sub edx, 1
jne 0x10016382
test bl, 4
je 0x1001643c
xor eax, dword [esi]
sub ebx, 4
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x100776d0]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x100776d0]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x100776d0]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x100776d0]
add esi, 4
test ebx, ebx
je 0x1001645a
movzx edx, byte [esi]
lea esi, [esi + 1]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100776d0]
sub ebx, 1
jne 0x10016440
mov dword [edi], eax
pop edi
pop esi
pop ebx
ret

Function at 0x10023dcf
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10023e0e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10023e0e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10023e0e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10023e0e
cmp dword [ecx + 0x74], 0xe
jbe 0x10023e0e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10026a3c
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 + 0x1007d640]
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 0x10026a7c
cmp byte [ebx], 0xa
jne 0x10026a7c
or byte [edi + eax + 0x28], 4
jmp 0x10026a81
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 0x10026b80
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10026b63
inc eax
cmp dl, 0xd
je 0x10026aad
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10026ad3
cmp eax, ecx
jae 0x10026ae1
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 0x10026a95
jmp 0x10026b80
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 0x10026b5e
cmp dword [ebp - 0x10], 0
je 0x10026b5e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1007d640]
test byte [eax + edi + 0x28], 0x48
je 0x10026b38
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10026b23
mov byte [esi], dl
jmp 0x10026b34
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1007d640]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10026b80
cmp byte [ebp - 1], 0xa
jne 0x10026b47
cmp esi, ebx
jne 0x10026b47
mov byte [esi], 0xa
jmp 0x10026b7f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10048c31
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10026b80
mov byte [esi], 0xd
jmp 0x10026b7f
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1007d640]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10026b7d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10026b80
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10026b89
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 + 0x1007d640]
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 0x10026bcf
cmp word [ebx], dx
jne 0x10026bcf
or byte [eax + edi + 0x28], 4
jmp 0x10026bd4
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 0x10026d37
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 0x10026d17
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10026c15
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10026c4b
cmp eax, edx
jae 0x10026c59
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 0x10026bf0
jmp 0x10026d37
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 0x10026d12
cmp dword [ebp - 0x18], 0
je 0x10026d12
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1007d640]
test byte [eax + edi + 0x28], 0x48
je 0x10026ce8
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 0x10026cac
mov word [esi], cx
jmp 0x10026ce3
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1007d640]
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 + 0x1007d640]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1007d640]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10026d37
pop eax
cmp word [ebp - 4], ax
jne 0x10026cf8
cmp esi, ebx
jne 0x10026cf8
mov word [esi], ax
jmp 0x10026d34
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10048c31
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10026d37
push 0xd
pop eax
jmp 0x10026cf3
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1007d640]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10026d31
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10026d37
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 0x10029271
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.1005280f
pop ecx
pop ecx
test eax, eax
jne 0x1002929f
xor al, al
jmp 0x1002931c
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.10028ece
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x100292d9
push dword [ebp - 0x210]
call fcn.1004390a
xor al, al
jmp 0x1002931a
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x100292df
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x100292ff
push edx
call fcn.100291a8
pop ecx
test al, al
je 0x100292ca
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1002930d
mov bl, 1
push dword [ebp - 0x210]
call fcn.1004390a
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100172bf
leave
ret
Function at 0x1004d9d9
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.1004d6a7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004da0d
push dword [ebp + 8]
mov ecx, esi
call dword [0x1006e184]
call esi
jmp 0x1004da13
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1004da57
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.1004d6a7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004da8e
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 0x1004da96
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.1004d6a7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004dad0
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]