joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2b001859
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x2b03bee0]
jne 0x2b001863
repz ret
jmp fcn.2b02c235

Function at 0x2b004abc
Capabilities:
Create thread

Disassembly:
push esi
push 0
push 0
mov esi, ecx
push esi
push 0x2b004ae4
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov dword [esi + 0x28], eax
test eax, eax
jne 0x2b004ae2
mov ecx, esi
pop esi
jmp fcn.2b004af5
pop esi
ret

Function at 0x2b011f5d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x2b011f6c
pop dword [ebp - 0x18]
mov eax, 0x5f9248a8
sub eax, 0x3491293c
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xdf75ea5a
sub dword [ebp - 0x28], 0x9123a50f
mov dword [ebp - 0x24], 0xea05a26e
sub dword [ebp - 0x24], 0xb7d25629
mov dword [ebp - 0x20], 0x17d29a54
sub dword [ebp - 0x20], 0xcb865626
mov dword [ebp - 0x1c], 0x26b87ad9
sub dword [ebp - 0x1c], 0x26b87ad9
lea eax, [ebp - 0x28]
push eax
mov eax, 0xfffb8a5b
sub eax, 0xd4f889d7
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x5489c65b
sub dword [ebp - 0x28], 0xe0175d05
mov dword [ebp - 0x24], 0xf6cff718
sub dword [ebp - 0x24], 0xb56395a3
mov dword [ebp - 0x20], 0x990e9705
add dword [ebp - 0x20], 0xca60d567
mov dword [ebp - 0x1c], 0x7768c248
sub dword [ebp - 0x1c], 0x7768c248
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0xae1beec0
add eax, 0x7ce711d0
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x46e13
push 0
call eax
mov ecx, 0x57f8
mov ebx, eax
mov edx, 0x2b04ae00
add edx, dword [ebp - 0x18]
mov edi, 0xf97b0cba
sub edi, 0x3254dd9c
add dword [ebp - 0x14], ecx
mov esi, dword [edx]
add dword [ebp - 0x14], eax
xor esi, edi
sub dword [ebp - 0x14], ebx
mov dword [ebx], esi
sub dword [ebp - 8], 0x2db3b9fa
add ebx, 0xa33bcdc2
add ebx, 0x5cc43242
add edx, 0x4c9acb29
sub edx, 0x4c9acb25
loop 0x2b012082
add eax, 0xd0e8971c
add eax, 0x2f18bb97
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x2b000000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x409450
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4094a2
test eax, edx
je 0x4094a5
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x409465
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40948b
add ecx, 4
js 0x40947b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409488
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4094b1
test edx, edx
jne 0x409458
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x485d30
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x485eeb
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.004059e4
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
mov ecx, 0x485f04
call fcn.00405578
mov eax, ebx
call fcn.00421694
mov edi, eax
dec edi
test edi, edi
jl 0x485de8
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.00421668
mov edx, dword [0x47ee70]
call fcn.004044d0
test al, al
je 0x485de4
push dword [ebp - 8]
mov edx, esi
mov eax, ebx
call fcn.00421668
lea edx, [ebp - 0x14]
call fcn.0049514c
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.004059e4
push dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004055f4
inc esi
dec edi
jne 0x485d96
movzx eax, byte [0x485f08]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x485f14
mov eax, dword [ebp - 8]
call fcn.0040f104
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
call fcn.004052f8
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.0049514c
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x485f04
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x360]
call fcn.0049514c
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x485f04
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x485f04
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x485f20
call fcn.0040aec0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485ef2
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.00405284
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00405284
lea eax, [ebp - 0x14]
call fcn.00405260
lea eax, [ebp - 0x10]
call fcn.00405260
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405284
ret
Function at 0x4aedd0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x4025c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401a00
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x2c]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov ecx, 7
lea edi, [ebp - 0x4c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x68], ebx
call fcn.0040a54c
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edi, eax
call esi
lea ecx, [ebp - 0x50]
push ecx
push 0xf00ff
push edi
call fcn.0040a640
call esi
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x68]
push 0x40ac8c
push eax
call edi
push eax
lea ecx, [ebp - 0x64]
push 0x409388
push ecx
call edi
push eax
call fcn.0040a5a4
call esi
lea edx, [ebp - 0x68]
lea eax, [ebp - 0x64]
push edx
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
lea ecx, [ebp - 0x5c]
lea edx, [ebp - 0x48]
mov dword [ebp - 0x4c], 1
push ecx
push edx
push 8
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x50]
push ecx
lea edx, [ebp - 0x4c]
push 0x1c
push edx
push ebx
push eax
mov dword [ebp - 0x40], 2
call fcn.0040a5f4
call esi
push 0x4aeed3
jmp 0x4aeed2
ret
Function at 0x4016d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x54
mov eax, dword [0x5382cc]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x5c]
push esi
push edi
mov edi, edx
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea edx, [esp + 8]
lea eax, [esp + 0x18]
call fcn.00403730
mov esi, dword [esp + 0x60]
lea edx, [esp + 0x18]
mov eax, edx
xor ecx, ecx
sub esi, edx
sub edi, eax
lea ebx, [ebx]
lea eax, [esp + ecx + 0x18]
mov dl, byte [esi + eax]
xor dl, byte [eax]
inc ecx
cmp ecx, 0x30
mov byte [edi + eax], dl
jl 0x401720
mov ecx, dword [esp + 0x58]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.004b48bf
add esp, 0x54
ret

Function at 0x4017b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x80
push ebx
push ebp
push esi
mov ebx, eax
push edi
mov ecx, 0x20
mov esi, ebx
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
mov edx, 0x50e9c0
sub edx, ebx
lea esi, [ecx + 0x1f]
mov edi, dword [edx + eax]
add edi, dword [eax]
add eax, 4
add ecx, edi
movzx edi, cl
mov dword [eax - 4], edi
shr ecx, 8
sub esi, 1
jne 0x4017d5
sub ecx, 0xffffff80
add dword [ebx + 0x7c], ecx
mov edx, dword [ebx + 0x7c]
shr edx, 7
and edx, 1
lea edi, [esp + 0x10]
lea ebp, [esp + 0x14]
neg edx
xor ecx, ecx
sub edi, ebx
lea eax, [ebx + 8]
sub ebp, ebx
nop
mov esi, dword [eax - 8]
mov ebx, dword [esp + ecx*4 + 0x10]
xor ebx, esi
and ebx, edx
xor ebx, esi
mov esi, dword [eax - 4]
mov dword [eax - 8], ebx
mov ebx, dword [esp + ecx*4 + 0x14]
xor ebx, esi
and ebx, edx
xor ebx, esi
mov esi, dword [eax]
mov dword [eax - 4], ebx
mov ebx, dword [edi + eax]
xor ebx, esi
and ebx, edx
xor ebx, esi
mov esi, dword [eax + 4]
mov dword [eax], ebx
mov ebx, dword [eax + ebp]
xor ebx, esi
and ebx, edx
xor ebx, esi
mov dword [eax + 4], ebx
add ecx, 4
add eax, 0x10
cmp ecx, 0x20
jb 0x401810
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret

Function at 0x402470
Capabilities:
Encrypt data using curve25519

Disassembly:
sub esp, 0x1a4
mov eax, dword [0x5382cc]
xor eax, esp
mov dword [esp + 0x1a0], eax
mov eax, dword [esp + 0x1a8]
push 0x20
push eax
lea ecx, [esp + 0x188]
push ecx
call fcn.004b4be0
mov dl, byte [esp + 0x1ab]
and byte [esp + 0x18c], 0xf8
and dl, 0x3f
or dl, 0x40
add esp, 0xc
mov byte [esp + 0x19f], dl
xor eax, eax
lea esp, [esp]
movzx ecx, byte [eax + edi]
mov dword [esp + eax*4], ecx
inc eax
cmp eax, 0x20
jb 0x4024c0
lea edx, [esp + 0x180]
push edx
lea eax, [esp + 4]
push eax
call fcn.00401be0
lea ecx, [esp + 0x88]
push ecx
mov eax, ecx
call fcn.00402080
lea edx, [esp + 0x8c]
push edx
lea eax, [esp + 0x110]
push eax
lea edx, [esp + 0x14]
call fcn.00401870
add esp, 0x14
lea eax, [esp + 0x100]
call fcn.004017b0
xor eax, eax
jmp 0x402520
mov cl, byte [esp + eax*4 + 0x100]
mov byte [esi + eax], cl
inc eax
cmp eax, 0x20
jb 0x402520
mov ecx, dword [esp + 0x1a0]
xor ecx, esp
xor eax, eax
call fcn.004b48bf
add esp, 0x1a4
ret
Function at 0x402550
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
sub esp, 0x44
push ebx
push esi
push edi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0xc], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x10], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x18], edx
mov edx, dword [eax + 0x14]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 0x24]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x30], edx
mov edx, dword [eax + 0x2c]
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x38], edx
mov edx, dword [eax + 0x34]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x40], edx
mov edx, dword [eax + 0x3c]
mov dword [esp + 0x44], ecx
mov ecx, dword [eax + 0x40]
mov dword [esp + 0x48], edx
xor edx, edx
mov esi, 0x50e978
mov dword [esp + 0x4c], ecx
mov ecx, eax
sub esi, eax
lea edi, [edx + 0x11]
lea ebx, [ebx]
mov ebx, dword [esi + ecx]
add ebx, dword [ecx]
add ecx, 4
add edx, ebx
movzx ebx, dl
mov dword [ecx - 4], ebx
shr edx, 8
sub edi, 1
jne 0x4025e0
mov edx, dword [eax + 0x40]
shr edx, 7
lea esi, [esp + 0xc]
neg edx
sub esi, eax
mov edi, 0x11
jmp 0x402610
mov ecx, dword [eax]
mov ebx, dword [esi + eax]
xor ebx, ecx
and ebx, edx
xor ebx, ecx
mov dword [eax], ebx
add eax, 4
sub edi, 1
jne 0x402610
pop edi
pop esi
pop ebx
add esp, 0x44
ret
Function at 0x402fc0
Capabilities:
Encode data using xor
Encrypt data using aes

Disassembly:
push esi
mov esi, ecx
test esi, esi
je 0x40315e
test eax, eax
je 0x40315e
mov dword [eax + 0xf0], 0xa
mov ecx, dword [esi]
push edi
mov edx, ecx
ror edx, 8
and edx, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or edx, ecx
mov dword [eax], edx
mov edx, dword [esi + 4]
mov edi, edx
ror edi, 8
and edi, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or edi, edx
mov dword [eax + 4], edi
mov edx, dword [esi + 8]
mov edi, edx
ror edi, 8
and edi, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or edi, edx
mov dword [eax + 8], edi
mov edx, dword [esi + 0xc]
lea ecx, [eax + 4]
mov esi, edx
ror esi, 8
and esi, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or esi, edx
mov dword [eax + 0xc], esi
mov edx, esi
shr edx, 0x10
and edx, 0xff
mov edx, dword [edx*4 + 0x50d050]
xor edx, 0x1000000
mov edi, esi
shr edi, 8
and edi, 0xff
mov edi, dword [edi*4 + 0x50d450]
and edi, 0xff0000
and edx, 0xff000000
xor edx, edi
mov edi, esi
shr edi, 0x18
movzx edi, byte [edi*4 + 0x50cc50]
xor edx, edi
mov edi, esi
and edi, 0xff
mov edi, dword [edi*4 + 0x50c850]
and edi, 0xff00
xor edx, edi
xor edx, dword [eax]
mov edi, dword [ecx]
xor edi, edx
mov dword [eax + 0x10], edx
mov edx, dword [eax + 8]
xor edx, edi
mov dword [eax + 0x18], edx
xor edx, esi
mov dword [eax + 0x14], edi
mov dword [eax + 0x1c], edx
mov esi, 0x50e954
jmp 0x4030d0
mov edx, dword [ecx + 0x18]
add ecx, 0x10
mov eax, edx
shr eax, 8
mov edi, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x50d450]
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x50d050]
and eax, 0xff0000
and edi, 0xff000000
xor eax, edi
mov edi, edx
and edx, 0xff
mov edx, dword [edx*4 + 0x50c850]
shr edi, 0x18
movzx edi, byte [edi*4 + 0x50cc50]
xor eax, edi
and edx, 0xff00
xor eax, edx
xor eax, dword [ecx - 4]
add esi, 4
xor eax, dword [esi - 4]
mov dword [ecx + 0xc], eax
mov edx, dword [ecx]
xor edx, eax
mov dword [ecx + 0x10], edx
mov eax, dword [ecx + 4]
xor eax, edx
mov dword [ecx + 0x14], eax
mov edx, dword [ecx + 8]
xor edx, eax
mov dword [ecx + 0x18], edx
cmp esi, 0x50e978
jne 0x4030d0
pop edi
xor eax, eax
pop esi
ret
or eax, 0xffffffff
pop esi
ret
Function at 0x404060
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x5382cc]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x6c]
xor ecx, ecx
push esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
push eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.00407bc0
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.00407c60
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.004b48bf
add esp, 0x68
ret
Function at 0x404750
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x6c
mov eax, dword [0x5382cc]
xor eax, esp
mov dword [esp + 0x68], eax
push esi
lea eax, [esp + 8]
mov esi, edx
push eax
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
call fcn.004066f0
add esp, 8
test eax, eax
jne 0x4047bb
pop esi
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.004b48bf
add esp, 0x6c
ret
mov eax, dword [esp + 0x74]
test eax, eax
jbe 0x4047d0
push esi
lea ecx, [esp + 0x14]
call fcn.00407bc0
add esp, 4
lea esi, [esp + 0x10]
mov ecx, ebx
call fcn.00407c60
test edi, edi
je 0x4047ee
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp ecx, dword [esp + 8]
sete al
mov dword [edi], eax
mov ecx, dword [esp + 0x6c]
pop esi
xor ecx, esp
mov eax, 1
call fcn.004b48bf
add esp, 0x6c
ret

Function at 0x404830
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x64
mov eax, dword [0x5382cc]
xor eax, esp
mov dword [esp + 0x5c], eax
xor eax, eax
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
push edi
lea eax, [esp + 8]
mov edi, ecx
push eax
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.004068e0
add esp, 4
test eax, eax
jne 0x40488e
pop edi
pop esi
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.004b48bf
add esp, 0x64
ret
lea esi, [esp + 8]
mov ecx, ebx
call fcn.00407c60
mov ecx, dword [esp + 0x64]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.004b48bf
add esp, 0x64
ret

Function at 0x4048b0
Capabilities:
Hash data using sha256

Disassembly:
sub esp, 0x74
mov eax, dword [0x5382cc]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x78]
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
push edi
lea ecx, [esp + 8]
push ecx
push eax
mov dword [esp + 0x10], 0x6a09e667
mov dword [esp + 0x14], 0xbb67ae85
mov dword [esp + 0x18], 0x3c6ef372
mov dword [esp + 0x1c], 0xa54ff53a
mov dword [esp + 0x20], 0x510e527f
mov dword [esp + 0x24], 0x9b05688c
mov dword [esp + 0x28], 0x1f83d9ab
mov dword [esp + 0x2c], 0x5be0cd19
call fcn.004069c0
add esp, 8
test eax, eax
jne 0x40492f
pop edi
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004b48bf
add esp, 0x74
ret
mov eax, esi
lea edi, [esp + 8]
call fcn.004077a0
mov ecx, dword [esp + 0x74]
pop edi
xor ecx, esp
mov eax, 1
call fcn.004b48bf
add esp, 0x74
ret

Function at 0x405260
Capabilities:
Read file on windows

Disassembly:
push ecx
push 0
lea eax, [esp + 4]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40528b
push 0x50ea8c
mov eax, 0x50ea8c
call fcn.004086c0
add esp, 4
xor eax, eax
pop ecx
ret
mov eax, 1
cmp esi, dword [esp]
je 0x4052a4
push 0x50ea8c
call fcn.00408730
add esp, 4
xor eax, eax
pop ecx
ret
Function at 0x405b40
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x5382cc]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
push ebx
push ebp
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ebx
cmp eax, ebx
jne 0x405b73
mov dword [esp + 0x10], 0xffffffff
jmp 0x405b79
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push ebx
push ebx
push ebp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x405ba7
push 0x50ea8c
mov eax, 0x50ea8c
call fcn.004086c0
add esp, 4
jmp 0x405c87
push 0
lea edx, [esp + 0x1c]
push edx
push 8
lea eax, [esp + 0x30]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405bd7
push 0x50ea8c
mov eax, 0x50ea8c
call fcn.004086c0
add esp, 4
jmp 0x405c87
mov eax, 8
cmp dword [esp + 0x18], eax
je 0x405bf9
mov eax, 1
push 0x50ea8c
call fcn.00408730
add esp, 4
jmp 0x405c87
cmp dword [esp + 0x40], ebx
je 0x405c35
mov ebx, eax
cmp dword [esp + 0x10], eax
jae 0x405c1b
mov eax, 5
push 0x50ea8c
call fcn.00408730
add esp, 4
jmp 0x405c87
mov ecx, dword [esp + 0x24]
mov dx, word [esp + 0x28]
mov dword [esi], ecx
mov cx, word [esp + 0x2a]
mov word [esi + 4], dx
mov word [esi + 6], cx
jmp 0x405c7f
mov esi, dword [esp + 0x24]
cmp esi, dword [esp + 0x10]
jbe 0x405c43
mov ebx, esi
jmp 0x405c07
mov edx, dword [esp + 0x38]
xor ebx, ebx
push ebx
push ebx
push ebp
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x405c6c
push 0x50ea8c
mov eax, 0x50ea8c
call fcn.004086c0
add esp, 4
jmp 0x405c87
mov ecx, dword [esp + 0x20]
mov edx, edi
call fcn.00405260
test eax, eax
je 0x405c87
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x405c91
mov dword [eax], ebx
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b48bf
add esp, 0x28
ret
Function at 0x406570
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, eax
mov eax, dword [esi]
mov edi, dword [esi + 0x18]
lea ecx, [esp + 0x10]
push ecx
xor ebp, ebp
push eax
xor ebx, ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x4065b6
push 0x50ea8c
mov eax, 0x50ea8c
call fcn.004086c0
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 0xb4]
xor edx, edx
sub ebx, edi
mov edi, dword [esp + 0x14]
sbb edi, edx
sub ebx, 0x298
sbb edi, ebp
xor eax, eax
cmp edi, eax
jl 0x406648
jg 0x4065de
cmp ebx, ecx
jb 0x406648
mov ebp, dword [esi]
push 0
push 0
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x40660d
push 0x50ea8c
mov eax, 0x50ea8c
call fcn.004086c0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x1c]
mov esi, 0x298
mov edx, ebp
call fcn.00405260
test eax, eax
je 0x406603
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40662e
mov dword [eax], ebx
mov dword [eax + 4], edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x406655
mov ecx, 1
mov word [eax], cx
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x406655
xor edx, edx
mov word [eax], dx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
Function at 0x406f00
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x1c
mov eax, dword [0x5382cc]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
push ebp
xor ebp, ebp
mov dword [esp + 0xc], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], ebp
cmp eax, ebp
je 0x407040
cmp dword [esp + 0x28], ebp
je 0x407040
push ebx
push 0x2800
call fcn.004b55bf
mov ebx, eax
add esp, 4
cmp ebx, ebp
jne 0x406f63
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004b48bf
add esp, 0x1c
ret
push esi
push edi
xor edi, edi
jmp 0x406f70
push edi
push str..PhysicalDrive_d
mov ecx, 0x2800
call fcn.004050f0
add esp, 8
push ebp
push 0x80
push 3
push ebp
push 3
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x407016
xor eax, eax
push 0x2800
push ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
call fcn.004b47e0
add esp, 0xc
push ebp
lea eax, [esp + 0x18]
push eax
push 0x2800
push ebx
push 0xc
lea ecx, [esp + 0x30]
push ecx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x407009
mov eax, dword [ebx + 0x18]
cmp eax, ebp
jbe 0x407009
mov edx, dword [esp + 0x18]
add eax, ebx
push eax
mov eax, dword [esp + 0x38]
push edx
push str.DISKID:
call fcn.00406c90
add esp, 0xc
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], ebp
jne 0x407020
inc edi
cmp edi, 0x10
jl 0x406f70
push ebx
call fcn.004b54e2
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004b48bf
add esp, 0x1c
ret
mov ecx, dword [esp + 0x1c]
pop ebp
xor ecx, esp
or eax, 0xffffffff
call fcn.004b48bf
add esp, 0x1c
ret