joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406d58
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x43b03c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x406df6
push 0x431ea4
push 4
push eax
call fcn.004186d6
push eax
call fcn.00406c87
add esp, 0x10
push ebx
push edi
call fcn.00418583
mov edi, dword [eax]
call fcn.00418583
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.004161d0
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.00418583
cmp dword [eax], ebx
je 0x406e0d
call fcn.00418583
push dword [eax]
call fcn.00406cb3
pop ecx
jmp 0x406e14
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x406d9e
jmp 0x406e9b
call fcn.00418583
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
je 0x406e97
cmp dword [ebp - 0x11c], esi
jae 0x406e97
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x15c]
push ebx
push eax
mov dword [ebp - 0x160], 0x40
call fcn.00415a70
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x406e86
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x406e86
lea ecx, [ebp - 0x160]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x406e86
push ebx
push ebx
push esi
jmp 0x406e8f
push ebx
push ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x406e99
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004152b4
leave
ret

Function at 0x40986e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x409892
cmp dword [edi + 0x54], 0
jne 0x409892
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0040a591
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040982f
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x40fb87
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40fbce
call fcn.0040a591
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40fbce
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40fbea
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040f701
mov esi, eax
test edi, edi
je 0x40fbe8
test ebx, ebx
je 0x40fbe8
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4152b4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43b03c]
jne 0x4152be
repz ret
jmp fcn.0041c63c
Function at 0x416ce6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x416d17
call fcn.00418596
mov dword [eax], esi
call fcn.00418583
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0041dcde
add esp, 0x14
push 0x16
pop eax
jmp 0x416d6c
test dword [ebp + 0xc], 0xfffffff9
jne 0x416cf3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x416d44
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004185a9
pop ecx
call fcn.00418583
mov eax, dword [eax]
jmp 0x416d6c
test al, 0x10
jne 0x416d6a
test al, 1
je 0x416d6a
test byte [ebp + 0xc], 2
je 0x416d6a
call fcn.00418596
mov dword [eax], 5
call fcn.00418583
mov dword [eax], 0xd
jmp 0x416d3b
xor eax, eax
pop esi
pop ebp
ret

Function at 0x42a9b5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041c023
and dword [ebp - 4], 0
cmp dword [0x43fa08], 0
mov ebx, eax
jne 0x42aa66
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42ab17
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4356ac
push edi
call esi
test eax, eax
je 0x42ab17
push eax
call fcn.0041bfb1
mov dword [esp], 0x43569c
push edi
mov dword [0x43fa08], eax
call esi
push eax
call fcn.0041bfb1
mov dword [esp], 0x435688
push edi
mov dword [0x43fa0c], eax
call esi
push eax
call fcn.0041bfb1
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43fa10], eax
call esi
push eax
call fcn.0041bfb1
pop ecx
mov dword [0x43fa18], eax
test eax, eax
je 0x42aa66
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041bfb1
pop ecx
mov dword [0x43fa14], eax
mov eax, dword [0x43fa14]
cmp eax, ebx
je 0x42aabe
cmp dword [0x43fa18], ebx
je 0x42aabe
push eax
call fcn.0041c02c
push dword [0x43fa18]
mov esi, eax
call fcn.0041c02c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42aabe
test edi, edi
je 0x42aabe
call esi
test eax, eax
je 0x42aab5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42aab5
test byte [ebp - 0xc], 1
jne 0x42aabe
or dword [ebp + 0x10], 0x200000
jmp 0x42aaf7
mov eax, dword [0x43fa0c]
cmp eax, ebx
je 0x42aaf7
push eax
call fcn.0041c02c
pop ecx
test eax, eax
je 0x42aaf7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42aaf7
mov eax, dword [0x43fa10]
cmp eax, ebx
je 0x42aaf7
push eax
call fcn.0041c02c
pop ecx
test eax, eax
je 0x42aaf7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43fa08]
call fcn.0041c02c
pop ecx
test eax, eax
je 0x42ab17
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42ab19
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4026c0
Capabilities:
Hash data with md5

Disassembly:
mov dword [ecx + 4], 0
mov dword [ecx], 0
mov dword [ecx + 8], 0x67452301
mov dword [ecx + 0xc], 0xefcdab89
mov dword [ecx + 0x10], 0x98badcfe
mov dword [ecx + 0x14], 0x10325476
ret

Function at 0x4028c0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push esi
push dword [ebp + 8]
mov esi, ecx
mov dword [esp + 0x10], 0
push edx
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
call fcn.004026f0
push esi
lea ecx, [esp + 0xc]
call fcn.00402820
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402920
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov ebx, 0xcbf29ce4
push edi
mov edi, 0x84222325
test esi, esi
je 0x402969
movzx eax, byte [ecx]
inc ecx
push eax
mov dword [ebp - 4], ecx
call fcn.00498bd8
add esp, 4
cdq
xor edx, ebx
xor eax, edi
push 0x100
push 0x1b3
push edx
push eax
call fcn.00471e30
mov ecx, dword [ebp - 4]
mov edi, eax
mov ebx, edx
sub esi, 1
jne 0x402937
mov eax, edi
mov edx, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403b10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov edx, dword [ebp + 0xc]
sub esp, 0x404
or eax, 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test edx, edx
je 0x403b4a
nop
movzx ecx, byte [esi]
lea esi, [esi + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4ced00]
sub edx, 1
jne 0x403b30
mov ecx, dword [edi + 8]
not eax
cmp ecx, eax
sete bl
je 0x403b84
push eax
push ecx
lea eax, [esp + 0x18]
push str._CRC_mismatch:_expected_0x_08x__actual_0x_08x._
push eax
call fcn.0043a7b0
mov edx, eax
add esp, 0x10
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403b71
sub ecx, esi
push ecx
mov ecx, dword [ebp + 0x10]
push edx
call fcn.0043d0c0
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4046b0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
push edi
mov edi, ecx
mov dword [ebp - 0x54], 0
push esi
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x50], 0x67452301
lea ecx, [edi + 8]
mov dword [ebp - 0x4c], 0xefcdab89
mov dword [ebp - 0x48], 0x98badcfe
mov dword [ebp - 0x44], 0x10325476
call fcn.00439c60
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0xc]
mov dword [ebp + 8], esi
test ecx, ecx
je 0x404727
push ecx
lea edx, [ebp + 8]
push edx
push 0
push 0
mov edx, eax
call fcn.0042ff50
add esp, 0x10
test al, al
je 0x40471c
cmp dword [ebp + 8], esi
je 0x404741
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [edi]
push esi
push 0
push 0
push eax
call fcn.00414d20
test al, al
je 0x40471c
cmp dword [ebp + 8], esi
jne 0x40471c
push esi
push dword [edi + 0xc]
lea ecx, [ebp - 0x58]
call fcn.004026f0
push dword [ebp + 0xc]
lea ecx, [ebp - 0x58]
call fcn.00402820
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x404cc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
shr edi, 2
mov esi, 0xeeeeeeee
test edi, edi
je 0x404d19
mov eax, dword [ebp + 8]
nop dword [eax]
movzx ecx, al
lea ebx, [ebx + 4]
add esi, dword [ecx*4 + 0x4ce7f8]
mov ecx, esi
shl ecx, 5
add ecx, 3
lea edx, [esi + eax]
xor edx, dword [ebx - 4]
add ecx, edx
mov dword [ebx - 4], edx
add esi, ecx
mov ecx, eax
not ecx
shr eax, 0xb
shl ecx, 0x15
add ecx, 0x11111111
or eax, ecx
sub edi, 1
jne 0x404ce0
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x404d20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
shr edi, 2
mov esi, 0xeeeeeeee
test edi, edi
je 0x404d7a
mov eax, dword [ebp + 8]
nop dword [eax]
mov edx, dword [ebx]
lea ebx, [ebx + 4]
movzx ecx, al
add esi, dword [ecx*4 + 0x4ce7f8]
lea ecx, [esi + eax]
xor ecx, edx
mov dword [ebx - 4], ecx
mov ecx, esi
shl ecx, 5
add ecx, 3
add ecx, edx
add esi, ecx
mov ecx, eax
not ecx
shr eax, 0xb
shl ecx, 0x15
add ecx, 0x11111111
or eax, ecx
sub edi, 1
jne 0x404d40
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x404d80
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov eax, 0x7fed7fed
mov edi, 0xeeeeeeee
mov cl, byte [esi]
inc esi
test cl, cl
je 0x404dd0
shl ebx, 8
nop dword [eax + eax]
movzx ecx, cl
lea esi, [esi + 1]
add eax, edi
mov cl, byte [ecx + 0x4cd6f8]
movzx edx, cl
lea ecx, [ebx + edx]
xor eax, dword [ecx*4 + 0x4cd7f8]
mov ecx, edi
shl ecx, 5
add ecx, edx
add ecx, edi
lea edi, [eax + 3]
add edi, ecx
mov cl, byte [esi - 1]
test cl, cl
jne 0x404da0
pop edi
pop esi
pop ebx
ret
Function at 0x406880
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b37e7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
push edi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
lea ecx, [esi + 0x6c]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
lea ebx, [esi + 0x78]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
lea edi, [esi + 0x84]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 4
mov dword [esi + 0x90], eax
test al, al
jns 0x4069cb
push ecx
push dword [esi + 0x5c]
call fcn.00441270
mov eax, dword [esi + 0x90]
test al, 0x40
je 0x4069e0
push ebx
push dword [esi + 0x5c]
mov ecx, ebx
call fcn.00440650
mov eax, dword [esi + 0x90]
test eax, 0x100
je 0x4069f9
lea ecx, [esi + 0x60]
push ecx
push dword [esi + 0x5c]
call fcn.004407b0
mov eax, dword [esi + 0x90]
test eax, 0x1000
je 0x406a12
mov eax, dword [esi + 0x5c]
mov ecx, edi
add eax, 7
push edi
shr eax, 3
push eax
call fcn.00440540
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x40ad30
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b3700
push eax
mov dword fs:[0], esp
sub esp, 0x15c
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x128]
shr ecx, 9
call fcn.00406530
mov ecx, eax
mov edx, 0x200
mov eax, dword [esi + 0x128]
shl edx, cl
cmp edx, eax
je 0x40add0
push eax
lea eax, [ebp - 0x168]
push str.m_options.sectorsize___d
push eax
call fcn.00439c20
add esp, 0xc
mov dword [ebp - 0x14], 0x4e9108
mov ecx, 0x4e9108
mov edx, eax
call fcn.00432940
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
cmp eax, 1
jne 0x40adbf
push 0
push 0x4c87fe
push edx
push str._512u____log2i__m_options.sectorsize___512______m_options.sectorsize
call fcn.0042d5c0
add esp, 0x10
mov ecx, 0x4e9108
mov dword [ebp - 4], 0xffffffff
call fcn.00432950
movzx eax, word [esi + 0x44]
cmp eax, 3
ja case.default.0x40add9
jmp dword [eax*4 + 0x40af98]
mov edi, 0x20
jmp 0x40ae52
mov edi, 0x2c
jmp 0x40ae52
mov edi, 0xd0
jmp 0x40ae52
push ecx
mov ecx, str.false
call fcn.0042d880
add esp, 4
mov ecx, 0x4e9108
mov dword [ebp - 0x14], 0x4e9108
call fcn.00432940
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
cmp eax, 1
jne 0x40ae3c
push 0
push 0x4c87fe
push 0x4c87fe
push str.false
call fcn.0042d5c0
add esp, 0x10
mov ecx, 0x4e9108
mov dword [ebp - 4], 0xffffffff
call fcn.00432950
mov edi, 0x44
lea ecx, [esi + 0x38]
lea eax, [ecx + 0xd0]
lea edx, [ebp - 0xe8]
cmp edx, eax
jae 0x40ae7c
lea eax, [ebp - 0x18]
cmp eax, ecx
jbe 0x40ae7c
push 0xd0
push ecx
mov eax, edx
push eax
call fcn.0048a330
jmp 0x40ae8e
push 0xd0
push ecx
lea eax, [ebp - 0xe8]
push eax
call fcn.00488cb0
mov ecx, dword [esi + 0x128]
add esp, 0xc
mov eax, dword [esi + 0x64]
shr ecx, 9
mov dword [ebp - 0xe8], 0x1a51504d
mov dword [ebp - 0xe4], edi
mov dword [ebp - 0xe0], eax
call fcn.00406530
cmp word [ebp - 0xdc], 2
mov word [ebp - 0xda], ax
mov eax, dword [esi + 0x58]
mov dword [ebp - 0xc8], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0xc4], eax
mov eax, dword [esi + 0x64]
mov dword [ebp - 0xbc], eax
mov eax, dword [esi + 0x68]
mov dword [ebp - 0xb8], eax
mov eax, dword [esi + 0x74]
mov dword [ebp - 0xac], eax
mov eax, dword [esi + 0x78]
mov dword [ebp - 0xa8], eax
mov eax, dword [esi + 0x6c]
mov dword [ebp - 0xb4], eax
mov eax, dword [esi + 0x70]
mov dword [ebp - 0xb0], eax
jb 0x40af73
push 0xc0
lea eax, [ebp - 0xe8]
mov dword [ebp - 0x13c], 0
push eax
lea ecx, [ebp - 0x140]
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x138], 0x67452301
mov dword [ebp - 0x134], 0xefcdab89
mov dword [ebp - 0x130], 0x98badcfe
mov dword [ebp - 0x12c], 0x10325476
call fcn.004026f0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x140]
call fcn.00402820
mov ecx, dword [esi + 0x20]
lea eax, [ebp - 0xe8]
push edi
push 0
push 0
push eax
call fcn.00414dc0
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40ade0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b3700
push eax
mov dword fs:[0], esp
sub esp, 0x15c
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x128]
shr ecx, 9
call fcn.00406530
mov ecx, eax
mov edx, 0x200
mov eax, dword [esi + 0x128]
shl edx, cl
cmp edx, eax
je 0x40add0
push eax
lea eax, [ebp - 0x168]
push str.m_options.sectorsize___d
push eax
call fcn.00439c20
add esp, 0xc
mov dword [ebp - 0x14], 0x4e9108
mov ecx, 0x4e9108
mov edx, eax
call fcn.00432940
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
cmp eax, 1
jne 0x40adbf
push 0
push 0x4c87fe
push edx
push str._512u____log2i__m_options.sectorsize___512______m_options.sectorsize
call fcn.0042d5c0
add esp, 0x10
mov ecx, 0x4e9108
mov dword [ebp - 4], 0xffffffff
call fcn.00432950
movzx eax, word [esi + 0x44]
cmp eax, 3
ja case.default.0x40add9
jmp dword [eax*4 + 0x40af98]
mov edi, 0x20
jmp 0x40ae52
mov edi, 0x2c
jmp 0x40ae52
mov edi, 0xd0
jmp 0x40ae52
push ecx
mov ecx, str.false
call fcn.0042d880
add esp, 4
mov ecx, 0x4e9108
mov dword [ebp - 0x14], 0x4e9108
call fcn.00432940
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
cmp eax, 1
jne 0x40ae3c
push 0
push 0x4c87fe
push 0x4c87fe
push str.false
call fcn.0042d5c0
add esp, 0x10
mov ecx, 0x4e9108
mov dword [ebp - 4], 0xffffffff
call fcn.00432950
mov edi, 0x44
lea ecx, [esi + 0x38]
lea eax, [ecx + 0xd0]
lea edx, [ebp - 0xe8]
cmp edx, eax
jae 0x40ae7c
lea eax, [ebp - 0x18]
cmp eax, ecx
jbe 0x40ae7c
push 0xd0
push ecx
mov eax, edx
push eax
call fcn.0048a330
jmp 0x40ae8e
push 0xd0
push ecx
lea eax, [ebp - 0xe8]
push eax
call fcn.00488cb0
mov ecx, dword [esi + 0x128]
add esp, 0xc
mov eax, dword [esi + 0x64]
shr ecx, 9
mov dword [ebp - 0xe8], 0x1a51504d
mov dword [ebp - 0xe4], edi
mov dword [ebp - 0xe0], eax
call fcn.00406530
cmp word [ebp - 0xdc], 2
mov word [ebp - 0xda], ax
mov eax, dword [esi + 0x58]
mov dword [ebp - 0xc8], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0xc4], eax
mov eax, dword [esi + 0x64]
mov dword [ebp - 0xbc], eax
mov eax, dword [esi + 0x68]
mov dword [ebp - 0xb8], eax
mov eax, dword [esi + 0x74]
mov dword [ebp - 0xac], eax
mov eax, dword [esi + 0x78]
mov dword [ebp - 0xa8], eax
mov eax, dword [esi + 0x6c]
mov dword [ebp - 0xb4], eax
mov eax, dword [esi + 0x70]
mov dword [ebp - 0xb0], eax
jb 0x40af73
push 0xc0
lea eax, [ebp - 0xe8]
mov dword [ebp - 0x13c], 0
push eax
lea ecx, [ebp - 0x140]
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x138], 0x67452301
mov dword [ebp - 0x134], 0xefcdab89
mov dword [ebp - 0x130], 0x98badcfe
mov dword [ebp - 0x12c], 0x10325476
call fcn.004026f0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x140]
call fcn.00402820
mov ecx, dword [esi + 0x20]
lea eax, [ebp - 0xe8]
push edi
push 0
push 0
push eax
call fcn.00414dc0
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40ade7
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b3700
push eax
mov dword fs:[0], esp
sub esp, 0x15c
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x128]
shr ecx, 9
call fcn.00406530
mov ecx, eax
mov edx, 0x200
mov eax, dword [esi + 0x128]
shl edx, cl
cmp edx, eax
je 0x40add0
push eax
lea eax, [ebp - 0x168]
push str.m_options.sectorsize___d
push eax
call fcn.00439c20
add esp, 0xc
mov dword [ebp - 0x14], 0x4e9108
mov ecx, 0x4e9108
mov edx, eax
call fcn.00432940
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
cmp eax, 1
jne 0x40adbf
push 0
push 0x4c87fe
push edx
push str._512u____log2i__m_options.sectorsize___512______m_options.sectorsize
call fcn.0042d5c0
add esp, 0x10
mov ecx, 0x4e9108
mov dword [ebp - 4], 0xffffffff
call fcn.00432950
movzx eax, word [esi + 0x44]
cmp eax, 3
ja case.default.0x40add9
jmp dword [eax*4 + 0x40af98]
mov edi, 0x20
jmp 0x40ae52
mov edi, 0x2c
jmp 0x40ae52
mov edi, 0xd0
jmp 0x40ae52
push ecx
mov ecx, str.false
call fcn.0042d880
add esp, 4
mov ecx, 0x4e9108
mov dword [ebp - 0x14], 0x4e9108
call fcn.00432940
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
cmp eax, 1
jne 0x40ae3c
push 0
push 0x4c87fe
push 0x4c87fe
push str.false
call fcn.0042d5c0
add esp, 0x10
mov ecx, 0x4e9108
mov dword [ebp - 4], 0xffffffff
call fcn.00432950
mov edi, 0x44
lea ecx, [esi + 0x38]
lea eax, [ecx + 0xd0]
lea edx, [ebp - 0xe8]
cmp edx, eax
jae 0x40ae7c
lea eax, [ebp - 0x18]
cmp eax, ecx
jbe 0x40ae7c
push 0xd0
push ecx
mov eax, edx
push eax
call fcn.0048a330
jmp 0x40ae8e
push 0xd0
push ecx
lea eax, [ebp - 0xe8]
push eax
call fcn.00488cb0
mov ecx, dword [esi + 0x128]
add esp, 0xc
mov eax, dword [esi + 0x64]
shr ecx, 9
mov dword [ebp - 0xe8], 0x1a51504d
mov dword [ebp - 0xe4], edi
mov dword [ebp - 0xe0], eax
call fcn.00406530
cmp word [ebp - 0xdc], 2
mov word [ebp - 0xda], ax
mov eax, dword [esi + 0x58]
mov dword [ebp - 0xc8], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0xc4], eax
mov eax, dword [esi + 0x64]
mov dword [ebp - 0xbc], eax
mov eax, dword [esi + 0x68]
mov dword [ebp - 0xb8], eax
mov eax, dword [esi + 0x74]
mov dword [ebp - 0xac], eax
mov eax, dword [esi + 0x78]
mov dword [ebp - 0xa8], eax
mov eax, dword [esi + 0x6c]
mov dword [ebp - 0xb4], eax
mov eax, dword [esi + 0x70]
mov dword [ebp - 0xb0], eax
jb 0x40af73
push 0xc0
lea eax, [ebp - 0xe8]
mov dword [ebp - 0x13c], 0
push eax
lea ecx, [ebp - 0x140]
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x138], 0x67452301
mov dword [ebp - 0x134], 0xefcdab89
mov dword [ebp - 0x130], 0x98badcfe
mov dword [ebp - 0x12c], 0x10325476
call fcn.004026f0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x140]
call fcn.00402820
mov ecx, dword [esi + 0x20]
lea eax, [ebp - 0xe8]
push edi
push 0
push 0
push eax
call fcn.00414dc0
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret