joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c29f
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x45c3e7
xor ecx, ecx
cmp word [eax], cx
je 0x45c3e7
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call fcn.005053b0
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call fcn.0041d2ea
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x45c2f8
cmp eax, 3
jne 0x45c332
cmp word [esp + 0xa], 0x3a
jne 0x45c332
cmp eax, 2
jne 0x45c316
lea eax, [esp + 8]
push 0x51c398
push eax
call fcn.004f8d76
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x45c3e7
push 0xfffffffffffffffe
pop edi
jmp 0x45c3e7
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x45c347
cmp ax, bx
jne 0x45c351
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x45c33a
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x45c390
test byte [esp + 0x21c], 0x10
je 0x45c377
push 0xfffffffffffffffe
pop edi
jmp 0x45c387
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x45c3e5
cmp word [esp + 0x10], bp
jne 0x45c39e
cmp word [esp + 0x12], bp
je 0x45c3bd
cmp word [esp + 0x10], bx
jne 0x45c3ac
cmp word [esp + 0x12], bx
je 0x45c3bd
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x45c3e5
cmp word [esp + 0x12], ax
jne 0x45c3e5
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x45c3d2
test al, 0x10
je 0x45c3e5
jmp 0x45c3e2
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x45c3e5
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x45c3f6
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x45c41f
test byte [esp + 8], 2
je 0x45c413
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x45c421
xor eax, eax
ret 8
Function at 0x45c4b4
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebx
mov ebx, eax
mov eax, dword [0x1716d50]
push esi
push edi
test eax, eax
jne 0x45c4da
push fcn.0045c5e3
push 0x10
push 0x258
call fcn.00470447
mov dword [0x1716d50], eax
mov edi, dword [esp + 0x10]
push edi
push eax
call fcn.004703b3
mov esi, eax
test esi, esi
je 0x45c5db
cmp dword [esp + 0x14], ebx
mov eax, 0x51f268
push ebp
cmovne eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
test ebp, ebp
je 0x45c512
xor ecx, ecx
cmp word [ebp], cx
jne 0x45c51b
mov ebp, 0x53624c
mov dword [esp + 0x1c], ebp
push eax
call fcn.0041d2ea
push ebp
mov dword [esp + 0x20], eax
call fcn.0041d2ea
add eax, dword [esp + 0x20]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x1714814]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x45c5c8
push dword [esp + 0x14]
push ebp
call fcn.004f8d54
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x45c57b
mov eax, dword [esp + 0x14]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x45c57b
push 0x51c398
push ebp
call fcn.004f8d76
pop ecx
pop ecx
push dword [esp + 0x1c]
push ebp
call fcn.004f8d76
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x45c5a0
xor ecx, ecx
mov dword [esi + 4], ecx
jmp 0x45c5b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 2
jne 0x45c5b6
mov dword [esi + 4], 1
mov ebx, esi
push ebp
push ecx
push dword [0x1714814]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
jne 0x45c5da
cmp edi, 0xffffffff
cmove edi, esi
push edi
push dword [0x1716d50]
call fcn.00470326
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
ret 0xc

Function at 0x45c672
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x45c6ea
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.005053b0
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.0041d2ea
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x45c6cb
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x45c6c8
cmp ecx, 0x5c
je 0x45c6c8
cmp ecx, 0x2f
jne 0x45c6d5
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x45c6b5
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x45c6ec
xor eax, eax
leave
ret 4
Function at 0x45cc40
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp edi, 0xffffffff
jne 0x45cc59
push dword [0x1717714]
call fcn.004702f8
pop edi
ret 4
push esi
push edi
push dword [0x1717714]
call fcn.00470375
mov esi, eax
test esi, esi
je 0x45ccc3
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x45ccaf
cmp dword [esi + 0x14], 0
mov dword [esp + 0xc], 0
jne 0x45cc9e
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push ecx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
push dword [esi + 4]
push 0
push dword [0x1714814]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [0x1717714]
call fcn.00470326
pop esi
pop edi
ret 4

Function at 0x45ccd0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x45cd0c
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x45d190
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x45d1f5
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x45d1ed
push dword [esp + 0x10]
push dword [0x1717714]
call fcn.00470375
test eax, eax
je 0x45d1e3
cmp dword [eax + 4], 0
je 0x45d1d2
push edi
push esi
push eax
call fcn.0045d730
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc

Function at 0x45d200
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x1717714]
call fcn.00470375
mov esi, eax
test esi, esi
je 0x45d27f
cmp dword [esi + 4], 0
je 0x45d250
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.0045d850
test eax, eax
je 0x45d244
inc dword [esi + 0xc]
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45d28a
cmp dword [esp + 8], 0
je 0x45d28a
push 1
push 0
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 4
or eax, 0xffffffff
pop esi
add esp, 8
ret 4

Function at 0x45d4e0
Capabilities:
Write file on windows

Disassembly:
push dword [esp + 4]
push dword [0x1717714]
call fcn.00470375
test eax, eax
je 0x45d4fc
mov dword [esp + 4], eax
jmp fcn.0045d3d0
xor eax, eax
ret 0xc
Function at 0x45d730
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x10], 0
cmp dword [edi + 0x1c], 0
jne 0x45d847
cmp dword [edi + 0x14], 1
push ebx
push ebp
jne 0x45d77d
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0x10]
push 1
neg eax
cdq
push ecx
push eax
push dword [edi]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0xc]
push esi
mov esi, dword [esp + 0x24]
cmp eax, esi
jle 0x45d806
mov ecx, dword [edi + 4]
sub ecx, eax
mov eax, esi
add ecx, dword [edi + 8]
sub eax, 1
je 0x45d7ef
sub eax, 1
je 0x45d7d6
sub eax, 2
je 0x45d7bf
push esi
push dword [esp + 0x24]
push ecx
call fcn.0042b880
add esp, 0xc
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov ax, word [eax]
mov word [ecx], ax
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov al, byte [eax]
mov byte [ecx], al
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
push edi
call fcn.0045ccd0
mov eax, dword [edi + 8]
cmp esi, eax
jl 0x45d835
push 0
lea eax, [esp + 0x20]
push eax
push esi
push dword [esp + 0x2c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x1c]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov ecx, dword [edi + 4]
sub ecx, dword [edi + 0xc]
push esi
push dword [esp + 0x24]
add ecx, eax
jmp 0x45d7a7
xor eax, eax
pop edi
add esp, 8
ret 0xc
Function at 0x45d850
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
cmp dword [ebx + 0x14], 0
jne 0x45d873
push ebx
call fcn.0045ccd0
mov dword [ebx + 0x14], 1
mov dword [ebx + 0xc], 0
mov esi, dword [ebx + 0xc]
mov eax, dword [ebx + 0x10]
mov ebp, dword [esp + 0x20]
sub eax, esi
add eax, dword [ebx + 4]
mov dword [esp + 0x10], esi
cmp esi, ebp
jl 0x45d8f7
mov ecx, ebp
sub ecx, 1
je 0x45d8e2
sub ecx, 1
je 0x45d8cb
sub ecx, 2
je 0x45d8b6
push ebp
push eax
push dword [esp + 0x24]
call fcn.0042b880
add esp, 0xc
mov eax, ebp
sub dword [ebx + 0xc], ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
mov ecx, dword [eax]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov dword [eax], ecx
mov eax, ebp
sub dword [ebx + 0xc], ebp
pop ebp
pop ebx
pop ecx
ret 0xc
mov cx, word [eax]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov word [eax], cx
mov eax, ebp
sub dword [ebx + 0xc], ebp
pop ebp
pop ebx
pop ecx
ret 0xc
mov ecx, dword [esp + 0x1c]
mov dl, byte [eax]
mov eax, ebp
pop edi
pop esi
mov byte [ecx], dl
sub dword [ebx + 0xc], ebp
pop ebp
pop ebx
pop ecx
ret 0xc
push esi
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.0042b880
mov eax, dword [esp + 0x28]
add esp, 0xc
mov edx, dword [ebx + 8]
add eax, esi
mov ecx, dword [ebx]
sub ebp, esi
mov dword [esp + 0x1c], eax
push 0
cmp ebp, edx
jl 0x45d940
lea edx, [esp + 0x1c]
push edx
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x18]
pop edi
add eax, esi
mov dword [ebx + 0xc], 0
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
lea eax, [esp + 0x1c]
push eax
push edx
push dword [ebx + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [esp + 0x18]
cmp ebp, esi
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], esi
cmovle esi, ebp
push esi
push dword [ebx + 4]
push eax
call fcn.0042b880
sub dword [ebx + 0xc], esi
add esp, 0xc
mov eax, dword [esp + 0x10]
add eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x45d990
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push 0x1000
push 0
push dword [0x1714814]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x45db20
mov cl, byte [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov esi, edx
nop
cmp ebp, 0xffffffff
je 0x45d9de
test ebp, ebp
je 0x45da86
dec ebp
cmp dword [ebx + 4], 0
lea edi, [ebx + 4]
je 0x45d9fa
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.0045d850
mov dword [esp + 0x10], eax
jmp 0x45da14
push 0
lea eax, [esp + 0x14]
push eax
push 1
lea eax, [esp + 0x30]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
mov cl, byte [esp + 0x24]
cmp eax, 1
jne 0x45da89
test cl, cl
je 0x45da28
mov byte [esi], cl
inc esi
mov cl, byte [esp + 0x24]
mov eax, dword [esp + 0x14]
mov edi, esi
mov edx, dword [esp + 0x1c]
dec eax
sub edi, edx
cmp edi, eax
jle 0x45da63
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x1714814]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x24]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [edi + edx]
test cl, cl
je 0x45da86
cmp dword [esp + 0x28], 0
jne 0x45d9d0
cmp cl, 0xd
je 0x45da92
cmp cl, 0xa
jne 0x45d9d0
dec esi
jmp 0x45db03
lea edi, [ebx + 4]
cmp dword [esp + 0x28], 0
jne 0x45db03
jmp 0x45da95
lea edi, [ebx + 4]
cmp cl, 0xa
jne 0x45da9d
dec esi
jmp 0x45db03
cmp cl, 0xd
jne 0x45db03
dec esi
cmp dword [edi], 0
je 0x45dabb
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.0045d850
mov dword [esp + 0x10], eax
jmp 0x45dad1
push 0
lea eax, [esp + 0x14]
push eax
push 1
lea eax, [esp + 0x30]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x24], 0xa
je 0x45db03
cmp dword [edi], 0
je 0x45dae2
inc dword [ebx + 0xc]
jmp 0x45db03
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebx]
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x30]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
xor eax, eax
pop ebx
add esp, 0x10
ret 0x10
Function at 0x45db30
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push 0x1000
push 0
push dword [0x1714814]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 8], edx
test edx, edx
je 0x45dcef
mov ax, word [esp + 0x1c]
push ebp
push esi
push edi
mov edi, edx
mov dword [esp + 0x1c], 0x1000
mov dword [esp + 0x18], 0x7ff
mov ecx, dword [esp + 0x30]
cmp ecx, 0xffffffff
je 0x45db89
test ecx, ecx
je 0x45dc4c
dec ecx
mov dword [esp + 0x30], ecx
cmp dword [ebx + 4], 0
lea ebp, [ebx + 4]
je 0x45dba5
push 2
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.0045d850
mov dword [esp + 0x10], eax
jmp 0x45dbbf
push 0
lea eax, [esp + 0x14]
push eax
push 2
lea eax, [esp + 0x34]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
cmp eax, 2
mov ax, word [esp + 0x28]
jne 0x45dc4f
test ax, ax
je 0x45dbdd
mov word [edi], ax
add edi, 2
mov ax, word [esp + 0x28]
mov edx, dword [esp + 0x14]
mov esi, edi
mov ecx, dword [esp + 0x18]
sub esi, edx
sar esi, 1
cmp esi, ecx
jle 0x45dc24
mov eax, dword [esp + 0x1c]
add ecx, 0x800
add eax, 0x1000
mov dword [esp + 0x18], ecx
push eax
push edx
push 8
push dword [0x1714814]
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
mov ax, word [esp + 0x28]
mov dword [esp + 0x14], edx
lea edi, [edx + esi*2]
test ax, ax
je 0x45dc4f
cmp dword [esp + 0x2c], 0
jne 0x45db73
cmp ax, 0xd
je 0x45dc56
cmp ax, 0xa
jne 0x45db73
sub edi, 2
jmp 0x45dcce
lea ebp, [ebx + 4]
cmp dword [esp + 0x2c], 0
jne 0x45dcce
cmp ax, 0xa
jne 0x45dc61
sub edi, 2
jmp 0x45dcce
cmp ax, 0xd
jne 0x45dcce
sub edi, 2
cmp dword [ebp], 0
je 0x45dc83
push 2
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.0045d850
mov dword [esp + 0x10], eax
jmp 0x45dc99
push 0
lea eax, [esp + 0x14]
push eax
push 2
lea eax, [esp + 0x34]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [esp + 0x28], 0xa
je 0x45dcce
cmp dword [ebp], 0
je 0x45dcad
add dword [ebx + 0xc], 2
jmp 0x45dcce
push 1
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 0xfffffffe
push eax
push 0xfffffffffffffffe
push dword [ebx]
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, edi
sub ecx, dword [esp + 0x14]
sar ecx, 1
mov dword [eax], ecx
xor eax, eax
mov word [edi], ax
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
pop ebx
add esp, 0x14
ret 0x10
Function at 0x45dd00
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x1714814]
mov dword [esp + 0x10], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x45de50
mov eax, dword [esp + 0x1c]
mov cl, byte [esp + 3]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, edx
cmp edi, 0xffffffff
je 0x45dd4c
test edi, edi
je 0x45ddbd
dec edi
push esi
push ebp
call fcn.0045ded0
mov dword [esp + 0x20], eax
test eax, eax
jne 0x45dd5f
xor cl, cl
jmp 0x45dd61
mov cl, byte [esi]
mov edx, dword [esp + 0x1c]
add esi, eax
mov eax, dword [esp + 0x14]
mov ebx, esi
sub ebx, edx
mov byte [esp + 0x13], cl
add eax, 0xfffffffb
cmp ebx, eax
jle 0x45dda4
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x1714814]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [ebx + edx]
mov eax, dword [esp + 0x2c]
test cl, cl
je 0x45ddbd
test eax, eax
jne 0x45dd42
cmp cl, 0xd
je 0x45ddc1
cmp cl, 0xa
jne 0x45dd42
dec esi
jmp 0x45de33
test eax, eax
jne 0x45de33
cmp cl, 0xa
jne 0x45ddc9
dec esi
jmp 0x45de33
cmp cl, 0xd
jne 0x45de33
dec esi
cmp dword [ebp + 4], 0
je 0x45dde8
push 1
lea eax, [esp + 0x17]
push eax
push ebp
call fcn.0045d850
mov dword [esp + 0x20], eax
jmp 0x45ddff
push 0
lea eax, [esp + 0x24]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x45de33
cmp dword [ebp + 4], 0
je 0x45de11
inc dword [ebp + 0xc]
jmp 0x45de33
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebp]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10
Function at 0x45ded0
Capabilities:
Read file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [edi + 4], 0
je 0x45def7
push 1
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0045d850
mov dword [esp + 4], eax
jmp 0x45df11
push 0
lea eax, [esp + 8]
push eax
push 1
lea eax, [esp + 0x18]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 4]
cmp eax, 1
jne 0x45dfc4
mov cl, byte [esp + 0xc]
test cl, cl
js 0x45df36
mov eax, dword [esp + 0x10]
pop edi
mov byte [eax], cl
mov byte [eax + 1], 0
mov eax, 1
pop ecx
ret 8
mov al, cl
and al, 0xe0
push esi
cmp al, 0xc0
jne 0x45df46
mov esi, 2
jmp 0x45df62
mov al, cl
and al, 0xf0
cmp al, 0xe0
jne 0x45df55
mov esi, 3
jmp 0x45df62
mov al, cl
and al, 0xf8
cmp al, 0xf0
jne 0x45dfb0
mov esi, 4
mov eax, dword [esp + 0x14]
push ebx
lea ebx, [esi - 1]
mov byte [eax], cl
inc eax
cmp dword [edi + 4], 0
je 0x45df8b
push ebx
push eax
push edi
call fcn.0045d850
xor ecx, ecx
cmp eax, ebx
pop ebx
cmovne esi, ecx
mov eax, esi
pop esi
pop edi
pop ecx
ret 8
push 0
lea ecx, [esp + 0x10]
push ecx
push ebx
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0xc]
xor ecx, ecx
cmp eax, ebx
pop ebx
cmovne esi, ecx
mov eax, esi
pop esi
pop edi
pop ecx
ret 8
mov eax, dword [esp + 0x14]
pop esi
pop edi
mov word [eax], 0x3f
mov eax, 1
pop ecx
ret 8
xor eax, eax
pop edi
pop ecx
ret 8

Function at 0x460a4d
Capabilities:
Set thread local storage value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
push edi
mov edi, ebx
test esi, esi
je 0x460aaa
push esi
call dword [esi + 0x58]
mov ecx, dword [esi + 0x80]
mov edi, eax
mov dword [esi + 0x94], ecx
mov ecx, dword [esi + 0x84]
mov dword [esi + 0x98], ecx
test edi, edi
jne 0x460aaa
mov eax, dword [esi + 0x70]
test eax, eax
je 0x460a89
push ebx
push esi
call eax
push esi
push ebx
push dword [0x1714814]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push dword [0x1717748]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x171774c], ebx
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x460b0e
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x1717748]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 0x90]
add ecx, dword [esp + 8]
push ecx
mov ecx, dword [eax + 0x8c]
add ecx, dword [esp + 8]
push ecx
push eax
call dword [eax + 0x54]
ret 8

Function at 0x460cbe
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x1717748]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [esp + 0xc]
mov ecx, dword [eax + 0x90]
add ecx, dword [esp + 0xc]
push ecx
mov ecx, dword [eax + 0x8c]
add ecx, dword [esp + 0xc]
push ecx
push eax
call dword [eax + 0x50]
ret 0xc
Function at 0x460ceb
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0x1717748]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [ebp + 0x18]
cmp eax, dword [esi + 0xac]
je 0x460d13
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
push dword [ebp + 0x14]
mov eax, dword [esi + 0x90]
push dword [ebp + 0x10]
add eax, dword [ebp + 0xc]
push eax
mov eax, dword [esi + 0x8c]
add eax, dword [ebp + 8]
push eax
push esi
call dword [esi + 4]
pop esi
pop ebp
ret 0x14

Function at 0x460f0f
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x188
push 8
push dword [0x1714814]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x1717748]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0x171774c], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
push esi
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 2
mov dword [esi + 0x78], 0x3f
call fcn.00463eec
mov dword [esi + 0x58], 0x461ef2
mov eax, esi
mov dword [esi + 0x5c], 0x461f3e
mov dword [esi + 0x10], fcn.00461a2a
mov dword [esi + 0x30], 0x461805
mov dword [esi + 0x64], 0x461fd3
mov dword [esi + 0x60], 0x461f87
mov dword [esi + 0x34], 0x4612d0
mov dword [esi + 0x24], 0x4612a7
mov dword [esi + 0x28], 0x46127c
mov dword [esi + 0x2c], 0x4611d0
mov dword [esi + 0x44], 0x461cc2
mov dword [esi + 0x68], 0x460fd0
mov dword [esi + 0x6c], 0x4621d5
pop esi
ret 4