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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0f9d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x502054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], edx
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
cmp edi, 0xffffffff
je 0x496743
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov edx, dword [ebp + 8]
movlpd qword [ebp - 0x18], xmm0
test eax, eax
jb 0x49671e
ja 0x4966be
test edx, edx
je 0x49671e
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov ecx, edx
sub ecx, esi
sbb eax, ebx
test eax, eax
ja 0x4966de
jb 0x4966d8
cmp ecx, 0x10000
jae 0x4966de
mov edi, edx
sub edi, esi
jmp 0x4966e3
mov edi, 0x10000
push 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push ecx
mov eax, esi
add eax, dword [ebp - 0x1c]
push edi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp + 8]
test eax, eax
je 0x496726
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x496726
add esi, eax
mov eax, dword [ebp + 0xc]
adc ebx, 0
cmp ebx, eax
jb 0x4966c4
ja 0x496729
cmp esi, edx
jb 0x4966c4
jmp 0x496729
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
jmp 0x49672c
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 0x10]
cmp esi, edx
jne 0x496743
cmp ebx, eax
jne 0x496743
or esi, ebx
je 0x49673f
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov bl, 1
jmp 0x496745
xor bl, bl
mov dword [ebp - 4], 0xffffffff
cmp edi, 0xffffffff
je 0x496758
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x496b60
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d109d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x502054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x24], ebx
push 0xc
mov dword [ebp - 0x10], 0
call fcn.004a9d6b
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 1
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 1
mov byte [ebp - 4], 0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 2
push 0
push 0
push 3
push 0
push 7
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 3
cmp esi, 0xffffffff
je 0x496d0e
mov byte [ebp - 4], 4
push 0xc
call fcn.004a9d6b
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 5
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 1
mov byte [ebp - 4], 4
mov dword [ebx], eax
lea eax, [ebp - 0x30]
push eax
push esi
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x496ce8
mov ecx, dword [ebp - 0x30]
mov eax, ecx
and eax, dword [ebp - 0x2c]
cmp eax, 0xffffffff
je 0x496ce8
push ecx
sub esp, 8
lea ecx, [ebp - 0x14]
mov edx, esi
call fcn.00496530
add esp, 0xc
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 6
mov esi, dword [ebx]
add dword [esi + 8], 0xffffffff
jne 0x496ca2
cmp dword [esi + 4], 0
je 0x496ca2
push 0
push dword [esi]
call fcn.004b3b9e
mov dword [esi], eax
add esp, 8
mov eax, dword [ebp - 0x20]
mov dword [esi + 4], 0
mov eax, dword [eax]
inc dword [eax + 8]
mov dword [ebx], eax
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x14]
add dword [esi + 8], 0xffffffff
jne 0x496ce5
cmp dword [esi + 4], 0
je 0x496cd1
push 0
push dword [esi]
call fcn.004b3b9e
add esp, 8
mov dword [esi], eax
mov dword [esi + 4], 0
push 0xc
push dword [ebp - 0x14]
call fcn.004aa103
add esp, 8
mov dword [ebp - 0x14], 0
mov esi, dword [ebp - 0x18]
mov eax, 2
mov dword [ebp - 0x10], eax
and eax, 0xfffffffd
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 3
or eax, 1
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
test esi, esi
je 0x496d26
push esi
jmp 0x496d20
inc dword [edi + 8]
mov dword [ebx], edi
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
add dword [edi + 8], 0xffffffff
jne 0x496d5d
cmp dword [edi + 4], 0
je 0x496d4b
push 0
push dword [edi]
call fcn.004b3b9e
mov dword [edi + 4], 0
add esp, 8
mov dword [edi], eax
push 0xc
push edi
call fcn.004aa103
mov dword [ebp - 0x1c], 0
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x497200
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d11dd
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x502054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [0x514c6c]
cmp dword [edi], 0
je 0x4972d2
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x14], 0
test eax, eax
je 0x497262
push eax
call esi
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 1
push 1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
test eax, eax
jne 0x4972c1
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4972c1
cmp dword [ebp - 0x10], 0
je 0x4972c1
push dword [edi]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x4972c1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4972ac
push eax
call esi
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4972d2
push eax
call esi
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x497480
Capabilities:
Enumerate pe sections
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x1c], edi
ja 0x49749b
cmp dword [esi + 0x18], 0x40
ja 0x49749b
mov edi, 2
mov eax, edi
pop edi
pop esi
ret
push ebx
mov ebx, dword [esi + 0x14]
push 0x40
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x497595
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x497595
mov byte [esi + 0x20], 1
mov ecx, dword [ebx + 0x3c]
lea eax, [ecx + 0xf8]
cmp dword [esi + 0x1c], edi
jb 0x497590
ja 0x4974df
cmp dword [esi + 0x18], eax
jbe 0x497590
mov eax, dword [esi + 0x14]
add eax, ecx
push 0xf8
push eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x497595
mov ecx, dword [esi + 0x10]
cmp dword [ecx], 0x4550
jne 0x497595
mov eax, 0x2000
test word [ecx + 0x16], ax
jne 0x497519
mov byte [esi + 0x2c], 1
movzx eax, word [ecx + 0x18]
mov edx, 0x10b
cmp ax, dx
jne 0x497533
mov dword [esi + 0x28], 1
lea eax, [ecx + 0x78]
jmp 0x49754a
mov edx, 0x20b
cmp ax, dx
jne 0x49754d
mov dword [esi + 0x28], 2
lea eax, [ecx + 0x88]
mov dword [esi + 0xc], eax
cmp dword [esi + 0xc], edi
je 0x497595
movzx eax, word [ecx + 6]
mov dword [esi + 0x24], eax
test eax, eax
je 0x497595
movzx edx, word [ecx + 0x14]
lea eax, [eax + eax*4]
shl eax, 3
sub eax, dword [esi + 0x14]
add eax, 0x18
add eax, edx
add eax, ecx
cmp dword [esi + 0x1c], edi
jb 0x497590
ja 0x49757d
cmp dword [esi + 0x18], eax
jbe 0x497590
lea eax, [ecx + 0x18]
mov edi, 1
add eax, edx
mov dword [esi + 8], eax
mov eax, edi
pop ebx
pop edi
pop esi
ret
mov edi, 2
pop ebx
mov eax, edi
pop edi
pop esi
ret
Function at 0x497790
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [ecx + 0x10]
xor edx, edx
push ebx
push esi
push edi
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
mov edi, dword [ecx + 0x28]
add eax, ecx
test ebx, ebx
je 0x4977c8
nop dword [eax]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4977c0
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4977ce
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4977b0
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [eax + 0x14]
sub eax, esi
add eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x4977e0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov edx, dword [eax + 0x10]
push edi
xor edi, edi
movzx eax, word [edx + 0x14]
lea esi, [edx + 0x18]
movzx ebx, word [edx + 6]
add esi, eax
test ebx, ebx
je 0x49781d
mov edx, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jb 0x497815
mov eax, dword [esi + 8]
add eax, ecx
cmp edx, eax
jb 0x497828
inc edi
add esi, 0x28
cmp edi, ebx
jb 0x497805
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x14]
mov esi, dword [ebp - 4]
pop edi
add eax, dword [esi + 0x14]
sub eax, ecx
pop esi
add eax, edx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x497d60
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d14d5
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x502054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ebp + 0x10]
cmp edx, 0x64
ja 0x497f15
mov esi, dword [ebp + 0x20]
mov eax, dword [esi]
cmp eax, 0x4e20
jg 0x497f15
mov edi, dword [ebp + 8]
inc eax
mov dword [esi], eax
mov ecx, dword [edi + 4]
mov eax, dword [edi]
test ecx, ecx
jns 0x497dea
push esi
push dword [ebp + 0x1c]
and ecx, 0x7fffffff
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0xc]
add ecx, eax
push edx
push eax
push ecx
mov ecx, ebx
call fcn.00497f30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov esi, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
push esi
push eax
call fcn.00497ae0
add esp, 8
mov dword [ebp - 4], 0
mov ebx, 0xffffffff
mov eax, dword [edi + 4]
add eax, esi
mov dword [ebp + 0xc], eax
je 0x497edb
mov ecx, dword [ebp - 0x10]
xor esi, esi
mov edi, dword [eax]
mov ecx, dword [ecx + 0x10]
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
movzx ebx, word [ecx + 6]
add edx, eax
test ebx, ebx
je 0x497e4c
nop
mov ecx, dword [edx + 0xc]
cmp edi, ecx
jb 0x497e44
mov eax, dword [edx + 8]
add eax, ecx
cmp edi, eax
jb 0x497ec9
inc esi
add edx, 0x28
cmp esi, ebx
jb 0x497e30
xor esi, esi
mov edx, dword [ebp + 0x14]
lea ecx, [ebp + 0x20]
push 0x4eed2c
call fcn.00469b10
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
push ecx
mov edx, eax
lea ecx, [ebp + 0x14]
call fcn.00469ca0
add esp, 8
mov byte [ebp - 4], 2
push dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
push dword [ecx + 4]
push esi
push eax
call dword [ebp + 0x18]
mov byte [ebp + 0xf], al
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov edx, dword [ebp + 0x14]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x497ea9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp + 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x497edf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x497edf
mov eax, dword [ebp - 0x10]
sub ecx, dword [edx + 0x14]
mov esi, dword [eax + 0x14]
sub esi, ecx
add esi, edi
jmp 0x497e4e
mov byte [ebp + 0xf], 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x497efe
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp + 0xf]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4983c0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d166b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x502054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0xffffffff
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [ebp - 4], 1
lea ebx, [esi + 8]
mov dword [ebp - 0x14], ebx
mov dword [ebx], 0
mov byte [ebp - 4], 3
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x49846d
push 0
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov eax, dword [esi + 4]
cmp edi, eax
je 0x498442
test eax, eax
je 0x498442
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], edi
test edi, edi
je 0x49846d
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebx]
mov edi, eax
cmp edi, ecx
je 0x49846b
test ecx, ecx
je 0x49846b
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebx], edi
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4a3c20
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d35af
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x502054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x70], edi
push dword [ebp + 8]
mov dword [ebp - 0x74], edi
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x6c], 0
xorps xmm0, xmm0
movq qword [ebp - 0x58], xmm0
mov dword [ebp - 0x68], 0x67452301
mov dword [ebp - 0x64], 0xefcdab89
mov dword [ebp - 0x60], 0x98badcfe
mov dword [ebp - 0x5c], 0x10325476
call fcn.004a3da0
add esp, 4
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x68]
push eax
call fcn.004a3750
mov dword [ebp - 4], 2
mov ecx, edi
mov eax, dword [eax]
push dword [eax + 4]
mov edx, dword [eax]
call fcn.00495650
mov eax, 2
mov dword [ebp - 0x6c], 2
mov dword [ebp - 0x6c], eax
add esp, 4
and eax, 0xfffffffd
mov dword [ebp - 0x6c], eax
mov dword [ebp - 4], 1
or eax, 1
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x70]
add dword [esi + 8], 0xffffffff
jne 0x4a3d0d
cmp dword [esi + 4], 0
je 0x4a3cf9
push 0
push dword [esi]
call fcn.004b3b9e
add esp, 8
mov dword [esi], eax
mov dword [esi + 4], 0
push 0xc
push dword [ebp - 0x70]
call fcn.004aa103
add esp, 8
mov dword [ebp - 0x70], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a9913
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp esi, 8
jb 0x4a4699
mov eax, dword [edi]
push ebx
mov ebx, esi
shr ebx, 3
nop dword [eax + eax]
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4ebb60]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4ebb60]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4ebb60]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4ebb60]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4ebb60]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4ebb60]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4ebb60]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4ebb60]
sub ebx, 1
jne 0x4a45f0
pop ebx
mov dword [edi], eax
test esi, esi
je 0x4a46bf
nop dword [eax]
mov ecx, dword [edi]
lea edx, [edx + 1]
movzx eax, byte [edx - 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4ebb60]
mov dword [edi], ecx
sub esi, 1
jne 0x4a46a0
pop edi
pop esi
pop ebp
ret
Function at 0x4a84d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3c94
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x502054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 0
lea esi, [ebx + 4]
push esi
push 0
push 0
push 0
push 0
push str.FopdMonPort
call sub.FLTLIB.DLL_FilterConnectCommunicationPort
test eax, eax
jne 0x4a8608
push 4
push eax
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [ebx + 8], eax
test eax, eax
je 0x4a8608
xor al, al
mov byte [ebp - 0x11], al
xor edi, edi
mov dword [ebp - 0x1c], edi
cmp edi, 2
jae 0x4a85eb
push 0x20
call fcn.004a9d6b
add esp, 4
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x4a856f
mov ecx, eax
call fcn.004a7eb0
mov esi, eax
jmp 0x4a8571
xor esi, esi
mov byte [ebp - 4], 0
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + 8]
mov dword [esi + 0x1c], eax
mov ecx, dword [esi]
lea eax, [ecx + 0x220]
push eax
push 0x220
push ecx
push dword [ebx + 4]
call sub.FLTLIB.DLL_FilterGetMessage
mov ecx, esi
cmp eax, 0x800703e5
jne 0x4a85de
mov eax, dword [ebx + 4]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 8]
mov dword [esi + 8], eax
call fcn.004a8de0
push 0
push 0
push esi
push 0x4a81b0
push 0
push 0
call fcn.004b3b0d
add esp, 0x18
mov dword [esi + 4], eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebx + 0xc]
call fcn.004a8db0
mov byte [ebp - 0x11], 1
inc edi
jmp 0x4a8543
push 1
call fcn.004a8130
inc edi
jmp 0x4a8543
mov al, byte [ebp - 0x11]
test al, al
je 0x4a8608
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], 0xffffffff
jmp 0x4a8621
mov ecx, ebx
call fcn.004a8370
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4a9260
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3eae
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x502054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call fcn.00456f20
mov ecx, eax
test ecx, ecx
je 0x4a93a3
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
mov dword [ebp - 4], 0
push 0x800
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x400
mov byte [ebp - 0x18], 1
call fcn.004b37d1
mov edi, eax
add esp, 4
test edi, edi
je 0x4a92fc
push 0x800
push 0
push edi
call fcn.004abb60
add esp, 0xc
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 2
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
push eax
push eax
push eax
push eax
mov word [edi + 6], ax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov bl, byte [ebp - 0x10]
mov ch, byte [ebp - 0xf]
mov dl, byte [ebp - 0xe]
mov cl, byte [ebp - 0xd]
movzx eax, ch
movzx esi, bl
add esi, eax
mov byte [ebp - 0xd], bl
mov ebx, dword [ebp + 8]
movzx eax, dl
add esi, eax
mov byte [ebp - 0x10], cl
movzx eax, cl
add esi, eax
mov byte [ebp - 0xf], dl
push esi
push 0x4ee22c
push ebx
mov byte [ebp - 0xe], ch
call fcn.0047b960
push dword [ebp - 0x10]
push 0x4ee22c
push dword [ebp + 0xc]
call fcn.0047b960
mov byte [ebp - 4], 0
push edi
call fcn.004b377c
add esp, 0x1c
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00456c70
int3

Function at 0x4aadd6
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4aae15
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4aae15
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4aae15
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4aae15
cmp dword [ecx + 0x74], 0xe
jbe 0x4aae15
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4b8f31
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004aa810
mov eax, dword [0x502054]
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.004badea
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4b8f73
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4b90cf
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004aa540
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 + 0x5148d8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004bdaf9
mov ecx, dword [esi*4 + 0x5148d8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x4b90c8
cmp eax, dword [ecx + edi + 0x24]
jne 0x4b90c8
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b90c8
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004bdaf9
add esp, 0x14
test edx, edx
jl 0x4b90c8
jg 0x4b903e
test eax, eax
jb 0x4b90c8
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4b90c8
jl 0x4b9058
cmp dword [ebp - 0x1008], eax
ja 0x4b90c8
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4b9076
test ebx, ebx
je 0x4b90af
cmp ecx, edi
jae 0x4b90af
mov al, byte [ecx]
cmp al, 0xd
jne 0x4b9090
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4b909c
cmp byte [ecx + 1], 0xa
jne 0x4b909c
inc ecx
jmp 0x4b909c
movzx eax, al
movsx eax, byte [eax + 0x502300]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4b9076
cmp edx, ebx
jne 0x4b9076
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4b90cd
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004a9913
leave
ret

Function at 0x4b9947
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4e4444
push 0x4e443c
push str.FlsAlloc
push 0x1f
call fcn.004b97c6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b997b
push dword [ebp + 8]
mov ecx, esi
call dword [0x4d5400]
call esi
jmp 0x4b9981
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4b99c5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4e4454
push 0x4e444c
push str.FlsGetValue
push 0x21
call fcn.004b97c6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b99fc
push dword [ebp + 8]
mov ecx, esi
call dword [0x4d5400]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4b9a04
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4e445c
push 0x4e4454
push str.FlsSetValue
push 0x22
call fcn.004b97c6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b9a3e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4d5400]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]