joyce8/EMBER2024-capa huggingface dataset:
Function at 0xaaf392
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.00aa9327
add esp, 4
and eax, 0xff
test eax, eax
je 0xaaf41b
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0x2cc
push 0
lea eax, [ebp - 0x2cc]
push eax
call fcn.00aba170
add esp, 0xc
mov dword [ebp - 0x2cc], 0x10001
lea ecx, [ebp - 0x2cc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0xaaf419
mov ecx, dword [ebp - 0x214]
cmp ecx, dword [ebp + 0xc]
jne 0xaaf419
jmp 0xaaf41b
jmp 0xaaf39b
mov esp, ebp
pop ebp
ret

Function at 0xaaf87c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
movsx eax, byte [0xad77f0]
test eax, eax
jne 0xaaf890
call fcn.00aaf7c4
xor ecx, ecx
mov cl, byte [0xad77ed]
test ecx, ecx
jne 0xaaf917
xor edx, edx
mov dl, byte [0xad77ec]
test edx, edx
jne 0xaaf917
cmp dword [0xad78f4], 0
je 0xaaf8f2
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0x180
mov ecx, dword [0xad78f4]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 4], eax
push 0
mov edx, dword [ebp - 4]
push edx
push 0x186
mov eax, dword [0xad78f4]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0xad78f4]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0xaaf917
push 0x10001
push 0xad77f0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0xaaf917
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esp, ebp
pop ebp
ret
Function at 0xab28fa
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0xab290a
xor eax, eax
jmp 0xab2ad3
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0xab2a8b
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0xad59a4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0xad59a4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0xad59a4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0xad59a4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0xad59a4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0xad59a4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0xad59a4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0xad59a4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 8
mov dword [ebp + 0x10], ecx
jmp 0xab2913
cmp dword [ebp + 0x10], 0
je 0xab2acd
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
mov eax, dword [ecx*4 + 0xad59a4]
xor eax, edx
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
cmp dword [ebp + 0x10], 0
jne 0xab2a91
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0xabc280
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0xad2fb8
cmp edx, dword [eax]
je 0xabc2a2
add eax, 8
inc ecx
cmp eax, 0xad3048
jl 0xabc293
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0xad2fb8]
jne 0xabc3d0
mov eax, dword [0xad7970]
cmp eax, 1
je 0xabc3aa
test eax, eax
jne 0xabc2d3
cmp dword [0xad2cf4], 1
je 0xabc3aa
cmp edx, 0xfc
je 0xabc3d0
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0xabc30a
lea eax, [ebp - 0x1a4]
push 0xad6dc0
push eax
call fcn.00aba5e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00aba360
inc eax
pop ecx
cmp eax, 0x3c
jbe 0xabc34d
lea eax, [ebp - 0x1a4]
push eax
call fcn.00aba360
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0xad6dbc
push edi
call fcn.00aba790
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0xad6da0
push eax
call fcn.00aba5e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00aba5f0
lea eax, [ebp - 0xa0]
push 0xad6d9c
push eax
call fcn.00aba5f0
push dword [esi + 0xad2fbc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00aba5f0
push 0x12010
lea eax, [ebp - 0xa0]
push 0xad6d74
push eax
call fcn.00abe848
add esp, 0x2c
pop edi
jmp 0xabc3d0
lea eax, [ebp + 8]
lea esi, [esi + 0xad2fbc]
push 0
push eax
push dword [esi]
call fcn.00aba360
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401126
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret

Function at 0x40119c
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
push 0x4632f1
push ecx
call fcn.0044b0c5
add esp, 8
xor esi, esi
test eax, eax
je 0x401229
mov edi, eax
push 2
push 0
push eax
call fcn.004494fd
add esp, 0xc
push edi
call fcn.0044984c
add esp, 4
test eax, eax
js 0x401220
mov ebp, eax
push edi
call fcn.0044cef6
add esp, 4
lea eax, [ebp + 1]
push eax
call dword [0x46f044]
add esp, 4
test eax, eax
je 0x401220
mov ebx, eax
push edi
push ebp
push 1
push eax
call fcn.0044c579
add esp, 0x10
test eax, eax
je 0x40120e
mov ebp, eax
push edi
call fcn.0044bed3
add esp, 4
test eax, eax
je 0x401230
push edi
call fcn.0044bd4e
add esp, 4
push ebx
call dword [0x46f040]
jmp 0x401226
push edi
call fcn.0044bd4e
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push edi
call fcn.0044bd4e
add esp, 4
mov byte [ebx + ebp], 0
mov esi, ebx
jmp 0x401229

Function at 0x40266e
Capabilities:
Hash data using djb2

Disassembly:
push ebx
push edi
push esi
test edx, edx
je 0x402696
mov edi, 0x1505
xor esi, esi
movzx ebx, byte [ecx + esi]
test ebx, ebx
je 0x40269d
mov eax, edi
shl eax, 5
add eax, edi
add eax, ebx
inc esi
mov edi, eax
cmp edx, esi
jne 0x40267c
jmp 0x40269f
mov eax, 0x1505
jmp 0x40269f
mov eax, edi
pop esi
pop edi
pop ebx
ret
Function at 0x40c098
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov ebp, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
mov edi, esp
mov ecx, 5
mov esi, 0x463640
rep movsd dword es:[edi], dword [esi]
cmp ebp, 0x40
jb 0x40c118
shr ebp, 6
xor ebx, ebx
mov esi, edx
xor edi, edi
movzx eax, byte [esi + edi]
mov dword [esp + edi + 0x14], eax
movzx ecx, byte [esi + edi + 1]
shl ecx, 8
or ecx, eax
mov dword [esp + edi + 0x14], ecx
movzx eax, byte [esi + edi + 2]
shl eax, 0x10
or eax, ecx
mov dword [esp + edi + 0x14], eax
movzx ecx, byte [esi + edi + 3]
shl ecx, 0x18
or ecx, eax
mov dword [esp + edi + 0x14], ecx
add edi, 4
cmp edi, 0x40
jne 0x40c0c3
mov ecx, esp
lea edx, [esp + 0x14]
call fcn.0040c1b2
inc ebx
lea edx, [esi + edi]
cmp ebx, ebp
jne 0x40c0bf
add esi, edi
mov edx, esi
mov ebp, dword [esp + 0x6c]
xor ebx, ebx
lea edi, [esp + 0x14]
xor eax, eax
mov ecx, 0x10
rep stosd dword es:[edi], eax
mov esi, ebp
and esi, 0x3f
je 0x40c14c
xor eax, eax
movzx edi, byte [edx + eax]
mov ecx, ebx
and cl, 0x18
shl edi, cl
mov ecx, eax
and ecx, 0xfffffffc
xor dword [esp + ecx + 0x14], edi
inc eax
add ebx, 8
cmp esi, eax
jne 0x40c130
lea ebx, [ebp*8]
mov ecx, ebx
and cl, 0x18
or cl, 7
xor eax, eax
inc eax
shl eax, cl
mov ecx, ebp
and ecx, 0x3c
xor dword [esp + ecx + 0x14], eax
cmp esi, 0x38
jb 0x40c184
mov ecx, esp
lea edi, [esp + 0x14]
mov edx, edi
call fcn.0040c1b2
xor eax, eax
mov ecx, 0xe
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x70]
lea edx, [esp + 0x14]
mov dword [edx + 0x38], ebx
shr ebp, 0x1d
mov dword [edx + 0x3c], ebp
mov ecx, esp
call fcn.0040c1b2
xor eax, eax
mov ecx, dword [esp + eax*4]
mov dword [esi + eax*4], ecx
inc eax
cmp eax, 5
jne 0x40c19e
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4137d8
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x4138d7
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
movzx edi, cx
shr ecx, 0x10
test esi, esi
je 0x4138d0
mov edx, 0x5e6ea9af
mov eax, esi
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov ebp, esi
sub ebp, eax
xor edx, edx
cmp ebp, 8
mov dword [esp], esi
jb 0x413881
xor esi, esi
mov eax, esi
movzx edx, byte [ebx + esi]
add edx, edi
add ecx, edx
movzx esi, byte [ebx + esi + 1]
add esi, edx
add ecx, esi
movzx edx, byte [ebx + eax + 2]
add edx, esi
add ecx, edx
movzx esi, byte [ebx + eax + 3]
add esi, edx
add ecx, esi
movzx edx, byte [ebx + eax + 4]
add edx, esi
add ecx, edx
movzx esi, byte [ebx + eax + 5]
add esi, edx
add ecx, esi
movzx edx, byte [ebx + eax + 6]
add edx, esi
add ecx, edx
movzx edi, byte [ebx + eax + 7]
add edi, edx
add ecx, edi
lea esi, [eax + 8]
add eax, 0xf
cmp eax, ebp
jb 0x413821
mov edx, ebp
and edx, 0x1ff8
add ebx, esi
mov esi, dword [esp]
mov eax, ebp
sub eax, edx
jbe 0x41389b
xor edx, edx
movzx esi, byte [ebx + edx]
add edi, esi
add ecx, edi
inc edx
cmp eax, edx
jne 0x413889
add ebx, eax
mov esi, dword [esp]
mov eax, edi
mov edx, 0x80078071
mul edx
shr edx, 0xf
imul eax, edx, 0xfff1
sub edi, eax
mov eax, ecx
mov edx, 0x80078071
mul edx
shr edx, 0xf
imul eax, edx, 0xfff1
sub ecx, eax
sub esi, ebp
mov ebp, 0x15b0
jne 0x413815
shl ecx, 0x10
or ecx, edi
jmp 0x4138da
xor ecx, ecx
inc ecx
mov eax, ecx
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4138e4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push edi
push esi
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
not ebx
cmp ecx, 4
jb 0x413959
mov eax, 0xff
mov esi, ebx
shr esi, 8
movzx edi, byte [edx]
and ebx, eax
xor ebx, edi
xor esi, dword [ebx*4 + 0x463870]
mov edi, esi
shr edi, 8
movzx ebx, byte [edx + 1]
and esi, eax
xor esi, ebx
xor edi, dword [esi*4 + 0x463870]
mov esi, edi
shr esi, 8
movzx ebx, byte [edx + 2]
and edi, eax
xor edi, ebx
xor esi, dword [edi*4 + 0x463870]
mov ebx, esi
shr ebx, 8
movzx edi, byte [edx + 3]
and esi, eax
xor esi, edi
xor ebx, dword [esi*4 + 0x463870]
add edx, 4
add ecx, 0xfffffffc
cmp ecx, 3
ja 0x4138ff
test ecx, ecx
je 0x41397d
xor esi, esi
mov eax, ebx
shr eax, 8
movzx edi, byte [edx + esi]
movzx ebx, bl
xor ebx, edi
xor eax, dword [ebx*4 + 0x463870]
inc esi
mov ebx, eax
cmp ecx, esi
jne 0x413961
jmp 0x41397f
mov eax, ebx
not eax
pop esi
pop edi
pop ebx
ret
Function at 0x41ad23
Capabilities:
Read file on windows

Disassembly:
push edi
push esi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
push esi
call fcn.0044987c
add esp, 4
test edi, edi
js 0x41ad57
mov ecx, dword [esp + 0x10]
xor eax, ecx
xor edx, edi
or edx, eax
je 0x41ad5b
push 0
push edi
push ecx
push esi
call fcn.00449537
add esp, 0x10
test eax, eax
je 0x41ad5b
xor eax, eax
jmp 0x41ad6e
push esi
push dword [esp + 0x20]
push 1
push dword [esp + 0x24]
call fcn.0044c579
add esp, 0x10
pop esi
pop edi
ret
Function at 0x41bb7f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
mov eax, 0x2040
call fcn.0043e2e0
cmp dword [ebp + 8], 0
je 0x41bc24
mov esi, dword [ebp + 0xc]
lea ebx, [esp + 0x3c]
push 0x2000
push 0
push ebx
call fcn.004414a0
add esp, 0xc
mov edx, esp
xor eax, eax
mov ecx, 0xe
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, esi
call fcn.0041b2f1
mov edi, 0xfffffffd
test eax, eax
jne 0x41bc3b
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edi, dword [ebp + 8]
mov dword [edi + 0x4e010], eax
mov dword [edi + 0x4e014], ecx
mov ecx, esi
mov edx, 0x464cd7
call fcn.0041799c
test eax, eax
je 0x41bc29
mov esi, eax
push esi
push 0x2000
push 1
push ebx
call fcn.0044c579
add esp, 0x10
test eax, eax
je 0x41bc30
push eax
push ebx
push edi
call fcn.0041baf1
add esp, 0xc
test eax, eax
jns 0x41bbf9
mov edi, 0xfffffff8
jmp 0x41bc32
xor edi, edi
dec edi
jmp 0x41bc3b
mov edi, 0xfffffff0
jmp 0x41bc3b
xor edi, edi
push esi
call fcn.0044bd4e
add esp, 4
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x42150c
Capabilities:
Create directory

Disassembly:
push edi
push esi
call fcn.0042110d
mov esi, eax
push eax
call fcn.0044b372
add esp, 4
mov edi, eax
push esi
call fcn.0044c77c
add esp, 4
mov eax, edi
pop esi
pop edi
ret
Function at 0x422919
Capabilities:
Get disk information

Disassembly:
push esi
push eax
xor eax, eax
mov esi, esp
mov dword [esi], eax
push eax
push eax
push eax
push eax
push esi
push eax
push eax
push 0x46536e
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov eax, dword [esi]
add esp, 4
pop esi
ret

Function at 0x423517
Capabilities:
Get hostname

Disassembly:
push edi
push esi
push eax
mov eax, 0x400
mov edi, esp
mov dword [edi], eax
push eax
call fcn.0044cb24
add esp, 4
mov esi, eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov eax, esi
add esp, 4
pop esi
pop edi
ret

Function at 0x42dc48
Capabilities:
Create process on windows
Query environment variable
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
call fcn.0040a878
mov dword [esp], 0x6077240
mov eax, 0x6077240
cmp eax, 0x39d9b856
jle 0x42dc8a
cmp eax, 0x39d9b857
je 0x42dc98
cmp eax, 0x626ecbae
jne 0x42dc5c
imul eax, dword [esp + 4], 0x9c
add eax, 0x2f
shr eax, 0xc
mov dword [esp + 4], eax
mov eax, 0xf67daab0
jmp 0x42dc5c
cmp eax, 0x6077240
jne 0x42dca4
mov eax, 0x39d9b857
jmp 0x42dc5c
call fcn.0041e91b
mov eax, 0x626ecbae
jmp 0x42dc5c
cmp eax, 0xf67daab0
jne 0x42dc5c
mov dword [esp], eax
add esp, 8
jmp fcn.004265b0
Function at 0x43e8ff
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43e93e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43e93e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43e93e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43e93e
cmp dword [ecx + 0x74], 0xe
jbe 0x43e93e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4488c9
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00448b20
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x448a41
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x448a41
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4489f0
jg 0x448922
test eax, eax
je 0x4489e6
push 1
push 0x1000
call fcn.00454ab0
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x448948
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4489dd
push 0x8000
push ebx
call fcn.0044accc
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x448974
jg 0x44896f
cmp ecx, 0x1000
jb 0x448974
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00454b44
add esp, 0x10
cmp eax, 0xffffffff
je 0x4489b9
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x44896f
jl 0x4489a0
test ecx, ecx
jne 0x448961
push dword [ebp - 0xc]
push ebx
call fcn.0044accc
push esi
call fcn.004529a4
add esp, 0xc
xor edi, edi
jmp 0x448a52
cmp byte [edi + 0x24], 0
je 0x4489d0
cmp dword [edi + 0x20], 5
jne 0x4489d0
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4489db
mov edi, dword [edi + 0x18]
jmp 0x4489dd
xor edi, edi
push esi
call fcn.004529a4
pop ecx
jmp 0x448a52
test ecx, ecx
jg 0x4489b2
jl 0x4489f0
test eax, eax
jae 0x4489b2
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0045563a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x448a13
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4489b2
jmp 0x448a4a
push ebx
call fcn.0045467c
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4489b2
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x448a52
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x448a4f
mov edi, dword [edi + 0x18]
jmp 0x448a52
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0045563a
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44990e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0043e2e0
mov eax, dword [0x46f790]
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.004494d6
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x449950
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x449aac
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00456f60
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 + 0x470be0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004556a3
mov ecx, dword [esi*4 + 0x470be0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x449aa5
cmp eax, dword [edi + ecx + 0x24]
jne 0x449aa5
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x449aa5
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004556a3
add esp, 0x14
test edx, edx
jl 0x449aa5
jg 0x449a1b
test eax, eax
jb 0x449aa5
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x449aa5
jl 0x449a35
cmp dword [ebp - 0x1008], eax
ja 0x449aa5
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x449a53
test ebx, ebx
je 0x449a8c
cmp ecx, edi
jae 0x449a8c
mov al, byte [ecx]
cmp al, 0xd
jne 0x449a6d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x449a79
cmp byte [ecx + 1], 0xa
jne 0x449a79
inc ecx
jmp 0x449a79
movzx eax, al
movsx eax, byte [eax + 0x46ff10]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x449a53
cmp edx, ebx
jne 0x449a53
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x449aaa
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0043ed58
leave
ret
Function at 0x44b750
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x46f790]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x466434
push esi
call fcn.00455e88
pop ecx
pop ecx
test eax, eax
jne 0x44b77e
xor al, al
jmp 0x44b7fb
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.0044b4e1
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x44b7b8
push dword [ebp - 0x210]
call fcn.0044c77c
xor al, al
jmp 0x44b7f9
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x44b7be
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x44b7de
push edx
call fcn.0044b6a1
pop ecx
test al, al
je 0x44b7a9
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x44b7ec
mov bl, 1
push dword [ebp - 0x210]
call fcn.0044c77c
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043ed58
leave
ret

Function at 0x451100
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x45112d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x45112d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x45147d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x467f24
push str.FlsAlloc
push 0x1e
call fcn.00451760
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4514b1
push dword [ebp + 8]
mov ecx, esi
call dword [0x46d528]
call esi
jmp 0x4514b7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4514fb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x467f48
push str.FlsGetValue
push 0x20
call fcn.00451760
mov esi, eax
add esp, 0x10
test esi, esi
je 0x451532
push dword [ebp + 8]
mov ecx, esi
call dword [0x46d528]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]