joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4449cf
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x444a65
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x444a62
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x444a62
lea eax, [esi - 1]
push eax
push dword [0x62d88c]
call fcn.0045282b
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x444a64
mov ecx, dword [edi + 4]
add ecx, 4
pop esi
cmp word [ecx - 2], si
jne 0x444a52
mov edx, 0xfa01
cmp word [ecx], dx
je 0x444a5d
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x444a42
jmp 0x444a62
and dword [esp + 0x10], 0
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x444b0b
push eax
call esi
test al, al
jns 0x444b0b
push 0x11
call esi
test al, al
js 0x444b0b
push 0x10
call esi
test al, al
js 0x444b0b
push 0x12
call esi
test al, al
js 0x444b0b
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x444b0b
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call fcn.004254ee
add esp, 0xc
test eax, eax
je 0x444adf
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call fcn.004254ee
add esp, 0xc
test eax, eax
jne 0x444af6
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x444b4c
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call fcn.004d9831
pop ecx
pop ecx
test eax, eax
je 0x444b4c
test ebp, ebp
je 0x444b2f
push 0x11
call esi
test al, al
js 0x444b27
push 0x10
call esi
test al, al
js 0x444b27
push 0x12
call esi
test al, al
jns 0x444b2f
push 1
push ebp
call fcn.00444b58
test ebx, ebx
je 0x444b43
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x444b4c
test edi, edi
je 0x444b4c
mov eax, dword [edi + 8]
jmp 0x444b4e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x444e4b
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 0x444f93
xor ecx, ecx
cmp word [eax], cx
je 0x444f93
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call fcn.004d9fd2
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call fcn.00423dea
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x444ea4
cmp eax, 3
jne 0x444ede
cmp word [esp + 0xa], 0x3a
jne 0x444ede
cmp eax, 2
jne 0x444ec2
lea eax, [esp + 8]
push 0x506398
push eax
call fcn.004d9893
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x444f93
push 0xfffffffffffffffe
pop edi
jmp 0x444f93
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x444ef3
cmp ax, bx
jne 0x444efd
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x444ee6
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x444f3c
test byte [esp + 0x21c], 0x10
je 0x444f23
push 0xfffffffffffffffe
pop edi
jmp 0x444f33
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x444f91
cmp word [esp + 0x10], bp
jne 0x444f4a
cmp word [esp + 0x12], bp
je 0x444f69
cmp word [esp + 0x10], bx
jne 0x444f58
cmp word [esp + 0x12], bx
je 0x444f69
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x444f91
cmp word [esp + 0x12], ax
jne 0x444f91
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x444f7e
test al, 0x10
je 0x444f91
jmp 0x444f8e
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x444f91
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 0x444fc4
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x44503c
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.004d9fd2
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.00423dea
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x44501d
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x44501a
cmp ecx, 0x5c
je 0x44501a
cmp ecx, 0x2f
jne 0x445027
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x445007
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x44503e
xor eax, eax
leave
ret 4
Function at 0x445392
Capabilities:
Set file attributes

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x4453a0
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 8

Function at 0x4453a3
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x4453cc
test byte [esp + 8], 2
je 0x4453c0
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 0x4453ce
xor eax, eax
ret 8

Function at 0x445960
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp edi, 0xffffffff
jne 0x445979
push dword [0x62db10]
call fcn.004527ae
pop edi
ret 4
push esi
push edi
push dword [0x62db10]
call fcn.0045282b
mov esi, eax
test esi, esi
je 0x4459e3
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4459cf
cmp dword [esi + 0x14], 0
mov dword [esp + 0xc], 0
jne 0x4459be
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 [0x62ab80]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [0x62db10]
call fcn.004527dc
pop esi
pop edi
ret 4

Function at 0x4459f0
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 0x445a2c
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 0x445e90
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x445ef5
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x445eed
push dword [esp + 0x10]
push dword [0x62db10]
call fcn.0045282b
test eax, eax
je 0x445ee3
cmp dword [eax + 4], 0
je 0x445ed2
push edi
push esi
push eax
call fcn.004463b0
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 0x445f00
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x62db10]
call fcn.0045282b
mov esi, eax
test esi, esi
je 0x445f7f
cmp dword [esi + 4], 0
je 0x445f50
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.004464d0
test eax, eax
je 0x445f44
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 0x445f8a
cmp dword [esp + 8], 0
je 0x445f8a
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 0x4463b0
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 0x4464c7
cmp dword [edi + 0x14], 1
push ebx
push ebp
jne 0x4463fd
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 0x446486
mov ecx, dword [edi + 4]
sub ecx, eax
mov eax, esi
add ecx, dword [edi + 8]
sub eax, 1
je 0x44646f
sub eax, 1
je 0x446456
sub eax, 2
je 0x44643f
push esi
push dword [esp + 0x24]
push ecx
call fcn.00432350
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.004459f0
mov eax, dword [edi + 8]
cmp esi, eax
jl 0x4464b5
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 0x446427
xor eax, eax
pop edi
add esp, 8
ret 0xc
Function at 0x4464d0
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 0x4464f3
push ebx
call fcn.004459f0
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 0x446577
mov ecx, ebp
sub ecx, 1
je 0x446562
sub ecx, 1
je 0x44654b
sub ecx, 2
je 0x446536
push ebp
push eax
push dword [esp + 0x24]
call fcn.00432350
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.00432350
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 0x4465c0
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.00432350
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 0x446610
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push 0x1000
push 0
push dword [0x62ab80]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x4467a0
mov cl, byte [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov esi, edx
nop
cmp ebp, 0xffffffff
je 0x44665e
test ebp, ebp
je 0x446706
dec ebp
cmp dword [ebx + 4], 0
lea edi, [ebx + 4]
je 0x44667a
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.004464d0
mov dword [esp + 0x10], eax
jmp 0x446694
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 0x446709
test cl, cl
je 0x4466a8
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 0x4466e3
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x62ab80]
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 0x446706
cmp dword [esp + 0x28], 0
jne 0x446650
cmp cl, 0xd
je 0x446712
cmp cl, 0xa
jne 0x446650
dec esi
jmp 0x446783
lea edi, [ebx + 4]
cmp dword [esp + 0x28], 0
jne 0x446783
jmp 0x446715
lea edi, [ebx + 4]
cmp cl, 0xa
jne 0x44671d
dec esi
jmp 0x446783
cmp cl, 0xd
jne 0x446783
dec esi
cmp dword [edi], 0
je 0x44673b
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.004464d0
mov dword [esp + 0x10], eax
jmp 0x446751
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 0x446783
cmp dword [edi], 0
je 0x446762
inc dword [ebx + 0xc]
jmp 0x446783
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 0x4467b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push 0x1000
push 0
push dword [0x62ab80]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 8], edx
test edx, edx
je 0x44696f
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 0x446809
test ecx, ecx
je 0x4468cc
dec ecx
mov dword [esp + 0x30], ecx
cmp dword [ebx + 4], 0
lea ebp, [ebx + 4]
je 0x446825
push 2
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.004464d0
mov dword [esp + 0x10], eax
jmp 0x44683f
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 0x4468cf
test ax, ax
je 0x44685d
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 0x4468a4
mov eax, dword [esp + 0x1c]
add ecx, 0x800
add eax, 0x1000
mov dword [esp + 0x18], ecx
push eax
push edx
push 8
push dword [0x62ab80]
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 0x4468cf
cmp dword [esp + 0x2c], 0
jne 0x4467f3
cmp ax, 0xd
je 0x4468d6
cmp ax, 0xa
jne 0x4467f3
sub edi, 2
jmp 0x44694e
lea ebp, [ebx + 4]
cmp dword [esp + 0x2c], 0
jne 0x44694e
cmp ax, 0xa
jne 0x4468e1
sub edi, 2
jmp 0x44694e
cmp ax, 0xd
jne 0x44694e
sub edi, 2
cmp dword [ebp], 0
je 0x446903
push 2
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.004464d0
mov dword [esp + 0x10], eax
jmp 0x446919
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 0x44694e
cmp dword [ebp], 0
je 0x44692d
add dword [ebx + 0xc], 2
jmp 0x44694e
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 0x446980
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x62ab80]
mov dword [esp + 0x10], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x446ad0
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 0x4469cc
test edi, edi
je 0x446a3d
dec edi
push esi
push ebp
call fcn.00446b50
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4469df
xor cl, cl
jmp 0x4469e1
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 0x446a24
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x62ab80]
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 0x446a3d
test eax, eax
jne 0x4469c2
cmp cl, 0xd
je 0x446a41
cmp cl, 0xa
jne 0x4469c2
dec esi
jmp 0x446ab3
test eax, eax
jne 0x446ab3
cmp cl, 0xa
jne 0x446a49
dec esi
jmp 0x446ab3
cmp cl, 0xd
jne 0x446ab3
dec esi
cmp dword [ebp + 4], 0
je 0x446a68
push 1
lea eax, [esp + 0x17]
push eax
push ebp
call fcn.004464d0
mov dword [esp + 0x20], eax
jmp 0x446a7f
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 0x446ab3
cmp dword [ebp + 4], 0
je 0x446a91
inc dword [ebp + 0xc]
jmp 0x446ab3
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 0x446b50
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 0x446b77
push 1
lea eax, [esp + 0x10]
push eax
push edi
call fcn.004464d0
mov dword [esp + 4], eax
jmp 0x446b91
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 0x446c44
mov cl, byte [esp + 0xc]
test cl, cl
js 0x446bb6
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 0x446bc6
mov esi, 2
jmp 0x446be2
mov al, cl
and al, 0xf0
cmp al, 0xe0
jne 0x446bd5
mov esi, 3
jmp 0x446be2
mov al, cl
and al, 0xf8
cmp al, 0xf0
jne 0x446c30
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 0x446c0b
push ebx
push eax
push edi
call fcn.004464d0
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 0x449843
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 0x4498a0
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 0x4498a0
mov eax, dword [esi + 0x70]
test eax, eax
je 0x44987f
push ebx
push esi
call eax
push esi
push ebx
push dword [0x62ab80]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push dword [0x62db44]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x62db48], ebx
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x44999b
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0x62db44]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [ebp + 0x18]
cmp eax, dword [esi + 0xac]
je 0x4499c3
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 0x4499e6
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push dword [0x62db44]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov ecx, dword [ebx + 0x74]
cmp ecx, 2
je 0x449a14
cmp ecx, 3
je 0x449a14
cmp ecx, 8
je 0x449a14
cmp ecx, 0xc
jne 0x449ad8
xorps xmm0, xmm0
comiss xmm0, dword [ebp + 8]
movss dword [ebp - 4], xmm0
ja 0x449a34
movss xmm0, dword [0x50c520]
minss xmm0, dword [ebp + 8]
movss dword [ebp - 4], xmm0
push esi
mov esi, dword [ebx + 0xbc]
push edi
xor edi, edi
jmp 0x449a57
movss xmm1, dword [esi + 4]
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jnp 0x449a77
comiss xmm1, xmm0
ja 0x449a5d
mov edi, esi
mov esi, dword [esi]
test esi, esi
jne 0x449a40
jmp 0x449a7d
push 0x18
push 0
push dword [0x62ab80]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
test edx, edx
je 0x449a7d
mov dword [edx], esi
jmp 0x449a96
mov edx, esi
test edx, edx
jne 0x449aa9
push 0x18
push 0
push dword [0x62ab80]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
test edx, edx
je 0x449ad6
and dword [edx], 0
movss xmm0, dword [ebp - 4]
test edi, edi
je 0x449aa3
mov dword [edi], edx
jmp 0x449aa9
mov dword [ebx + 0xbc], edx
mov ecx, dword [ebp + 0xc]
movzx eax, cl
mov dword [edx + 8], eax
mov eax, ecx
sar eax, 8
movzx eax, al
mov dword [edx + 0xc], eax
mov eax, ecx
sar eax, 0x10
movzx eax, al
sar ecx, 0x18
mov dword [edx + 0x10], eax
movzx eax, cl
movss dword [edx + 4], xmm0
mov dword [edx + 0x14], eax
pop edi
pop esi
pop ebx
leave
ret 8