joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4315ce
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov eax, dword [0x5107c0]
xor eax, esp
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x3c]
push ebx
mov ebx, dword [esp + 0x34]
and edx, 0xffffff
push ebp
push esi
mov esi, dword [esp + 0x40]
xor ebp, ebp
push edi
mov edi, dword [esp + 0x48]
and edx, 0xffffff
movzx eax, dl
mov ecx, edx
xor eax, ebp
shr ecx, 7
shl edx, 0x11
movzx eax, byte [eax + 0x502d18]
shl eax, 4
add eax, edi
mov dword [esp + ebp*4 + 0x10], eax
mov eax, edi
shr eax, 0xf
shl edi, 0x11
or edx, eax
or edi, ecx
inc ebp
cmp ebp, 0xa
jl 0x4315f8
push 9
pop edi
push dword [esp + edi*4 + 0x10]
push ebx
call fcn.00430d3d
sub esi, eax
dec edi
mov edx, esi
mov esi, ebx
pop ecx
pop ecx
mov ebx, edx
jns 0x431630
mov ecx, dword [esp + 0x38]
xor eax, eax
pop edi
or eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b35e5
add esp, 0x2c
ret

Function at 0x43165e
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov eax, dword [0x5107c0]
xor eax, esp
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x3c]
push ebx
mov ebx, dword [esp + 0x34]
and edx, 0xffffff
push ebp
push esi
mov esi, dword [esp + 0x44]
xor ebp, ebp
push edi
mov edi, dword [esp + 0x44]
and edx, 0xffffff
movzx eax, dl
mov ecx, edx
xor eax, ebp
shr ecx, 7
shl edx, 0x11
movzx eax, byte [eax + 0x502d18]
shl eax, 4
add eax, esi
mov dword [esp + ebp*4 + 0x10], eax
mov eax, esi
shr eax, 0xf
shl esi, 0x11
or edx, eax
or esi, ecx
inc ebp
cmp ebp, 0xa
jl 0x431688
xor esi, esi
push dword [esp + esi*4 + 0x10]
push ebx
call fcn.00430d3d
inc esi
pop ecx
pop ecx
lea edx, [edi + eax]
mov edi, ebx
mov ebx, edx
cmp esi, 0xa
jl 0x4316bf
mov ecx, dword [esp + 0x38]
xor eax, eax
xor edx, dword [esp + 0x44]
or eax, edi
xor eax, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b35e5
add esp, 0x2c
ret

Function at 0x4316f7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x51d648], 0
jne 0x43175b
xor ecx, ecx
mov dword [ebp - 4], ecx
push ebx
mov bl, byte [ecx + 0x502d18]
mov al, bl
movzx ecx, cl
xor al, 0xc9
rol al, 2
movzx edx, al
mov al, bl
xor al, 0x2b
shl edx, 8
ror al, 3
movzx eax, al
add edx, eax
mov al, bl
xor al, 0x65
shl edx, 8
rol al, 1
movzx eax, al
add edx, eax
movzx eax, bl
xor ecx, eax
shl edx, 8
add edx, ecx
mov ecx, dword [ebp - 4]
mov dword [ecx*4 + 0x51d648], edx
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, 0x100
jl 0x43170a
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4325a2
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push ebx
push esi
push edi
mov ebx, dword [edx]
xor edi, edi
mov esi, dword [edx + 4]
cmp dword [esp + 0x18], edi
jbe 0x4325e1
push ebp
mov ebp, dword [esp + 0x18]
movzx ecx, byte [edi + ebp]
movzx eax, bl
shrd ebx, esi, 8
xor ecx, eax
shr esi, 8
xor ebx, dword [ecx*8 + 0x4d3c50]
xor esi, dword [ecx*8 + 0x4d3c54]
inc edi
cmp edi, dword [esp + 0x1c]
jb 0x4325bb
pop ebp
pop edi
mov dword [edx + 4], esi
pop esi
mov dword [edx], ebx
pop ebx
ret
Function at 0x436110
Capabilities:
Get common file path

Disassembly:
sub esp, 0x2a0
mov eax, dword [0x5107c0]
xor eax, esp
mov dword [esp + 0x29c], eax
mov eax, dword [esp + 0x2ac]
push ebx
push ebp
mov ebp, dword [esp + 0x2ac]
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x24]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea esi, [esp + 0x24]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x436153
mov eax, dword [esp + 0x2b8]
sub esi, ecx
movzx eax, ax
push eax
push 0x6421fa66
push 0x560519bd
push 0x98260219
sar esi, 1
mov dword [esp + 0x20], eax
call fcn.00401c27
add esp, 0xc
push eax
lea eax, [esp + 0x2c]
lea eax, [eax + esi*2]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
call esi
add esp, 0xc
mov dword [esp + 0x18], 0xc
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 1
push ebx
push 0x4000080
push 2
push eax
push 3
push 0xc0000000
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4361dd
xor al, al
jmp 0x43625f
push dword [esp + 0x10]
push 0x123fee8e
push 0x201b0d5c
push 0xee38166a
call fcn.00401c27
add esp, 0xc
push eax
push ebp
push 0x4662c8f9
push 0x74462b33
push 0xba653035
call fcn.00401c27
add esp, 0xc
push eax
lea eax, [esp + 0x34]
push eax
call esi
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x40]
push ebp
push eax
call fcn.004364ba
add esp, 0x24
test eax, eax
je 0x436256
lea eax, [esp + 0x10]
push eax
push edi
call fcn.004367ab
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x436256
push dword [esp + 0x14]
push esi
call fcn.00436543
push esi
mov bl, al
call fcn.0040746c
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [esp + 0x2ac]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b35e5
add esp, 0x2a0
ret
Function at 0x436278
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x260]
sub esp, 0x2e0
mov eax, dword [0x5107c0]
xor eax, ebp
mov dword [ebp + 0x25c], eax
push esi
mov esi, dword [ebp + 0x268]
push edi
push 0xf62b260f
push 0xc40fc5dd
push 0xa2cdde3
call fcn.00401c27
add esp, 0xc
push eax
push esi
push 0xb9d09bd2
push 0x8bf4783f
push 0x45d760e3
call fcn.00401c27
add esp, 0xc
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x40
xor edi, edi
lea eax, [ebp - 0x7c]
xorps xmm0, xmm0
push edi
push eax
movdqu xmmword [ebp - 0x3c], xmm0
call fcn.004b6030
add esp, 0x1c
mov dword [ebp - 0x80], 0x44
xor eax, eax
mov dword [ebp - 0x54], edi
inc eax
mov word [ebp - 0x50], ax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push edi
push 0x8000000
push edi
push edi
push edi
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x43634b
cmp dword [ebp + 0x26c], 0
je 0x43633b
push dword [ebp + 0x26c]
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call esi
mov ecx, dword [ebp + 0x25c]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004b35e5
lea esp, [ebp + 0x260]
pop ebp
ret
Function at 0x436364
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x5107c0]
xor eax, esp
mov dword [esp + 0x110], eax
push ebp
push esi
mov esi, dword [esp + 0x120]
xor eax, eax
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersion_
mov word [esi], ax
lea eax, [esp + 0x1c]
push eax
call fcn.004b4a31
push 0xeda3731e
push 0xdf8790d1
lea edi, [esp + 0x28]
push 0x11a48a55
add edi, eax
call fcn.00401bfa
add esp, 0x14
sub edi, eax
mov cl, byte [eax]
mov byte [edi + eax], cl
inc eax
test cl, cl
jne 0x4363b5
lea eax, [esp + 0xc]
xor ebp, ebp
push eax
push 1
push ebp
lea eax, [esp + 0x24]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x43649a
mov eax, dword [esp + 0x128]
lea edi, [eax + eax]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], edi
push eax
push esi
lea eax, [esp + 0x1c]
push eax
push ebp
push 0xbbfef3a4
push 0x89da1076
push 0x47f90ae6
call fcn.00401c27
add esp, 0xc
push eax
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x436441
push esi
push 0x9a9b24fc
push 0xa8bfc732
push 0x669cdd82
call fcn.00401c27
add esp, 0xc
push eax
call fcn.004ba473
pop ecx
pop ecx
xor eax, eax
mov dword [esp + 0x10], edi
mov word [esi], ax
lea eax, [esp + 0x10]
push eax
push esi
lea eax, [esp + 0x1c]
push eax
push ebp
push 0xefbdb47d
push 0xdd9957b0
push 0x13ba4d68
call fcn.00401c27
add esp, 0xc
push eax
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x436490
push 0x5c
push esi
call fcn.004b3fe0
pop ecx
pop ecx
test eax, eax
je 0x436490
xor ecx, ecx
mov word [eax + 2], cx
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x11c]
xor eax, eax
cmp word [esi], bp
pop edi
pop esi
setne al
pop ebp
xor ecx, esp
call fcn.004b35e5
add esp, 0x114
ret

Function at 0x4364ba
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
push 0x40
xor esi, esi
lea eax, [ebp - 0x50]
xorps xmm0, xmm0
push esi
push eax
movdqu xmmword [ebp - 0x10], xmm0
call fcn.004b6030
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x28], 0x100
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x1c], esi
push esi
push 0x8000000
push 1
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x43653b
cmp dword [ebp + 0x14], esi
je 0x43652b
push dword [ebp + 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4367ab
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ecx
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
xor edi, edi
push edi
push edi
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4367e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4367e9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x436841
cmp dword [esp + 0xc], edi
jne 0x4367de
push ebp
lea eax, [ebx + 1]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
jne 0x436814
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x436840
push edi
lea eax, [esp + 0x18]
push eax
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x436837
cmp dword [esp + 0x14], ebx
jne 0x436837
mov eax, dword [esp + 0x20]
mov edi, ebp
mov dword [eax], ebx
jmp 0x43683e
push ebp
call fcn.0040746c
pop ecx
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
pop ecx
pop ecx
ret
Function at 0x436ba2
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
mov eax, dword [0x5107c0]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
push ebx
push ebp
push esi
movzx edx, byte [eax + 2]
movzx ecx, byte [eax + 4]
movzx ebx, byte [eax]
movzx esi, byte [eax + 1]
or ebx, 0x100
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, edx
and edx, 7
push edi
lea ecx, [ecx*2 + 8]
sub ecx, edx
mov edx, 0xff
mov eax, ecx
shr eax, 8
and eax, edx
movzx edi, byte [eax + 0x4d5da8]
movzx eax, cl
movzx eax, byte [eax + 0x4d5da8]
shl eax, 8
or edi, eax
mov eax, ecx
shr eax, 0x10
and eax, edx
shl edi, 8
shr ecx, 0x18
movzx eax, byte [eax + 0x4d5da8]
or edi, eax
movzx eax, byte [ecx + 0x4d5da8]
shl edi, 8
or edi, eax
mov eax, dword [esp + 0x34]
xor ebp, ebp
movzx eax, al
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], eax
mov al, byte [esi + 0x4d5aa8]
mov ecx, ebx
xor al, byte [ebx + 0x4d5ba8]
and ebx, 1
movzx esi, al
mov eax, edi
shr ecx, 1
shr eax, 0xb
mov dword [esp + 0x18], ecx
mov ecx, edi
shr ecx, 0x13
xor cl, al
shl ebx, 8
mov eax, edi
xor ebx, esi
shr eax, 0xa
xor cl, al
mov eax, edi
shr eax, 7
xor cl, al
shr edi, 8
movzx edx, cl
movzx ecx, byte [esi + 0x4d5da8]
mov eax, edx
mov esi, dword [esp + 0x18]
shl eax, 0x18
or edi, eax
mov eax, dword [esp + 0x20]
xor eax, edx
add eax, ebp
add eax, ecx
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x24], al
shr eax, 8
inc ecx
mov dword [esp + 0x14], eax
mov ebp, eax
mov dword [esp + 0x10], ecx
cmp ecx, 5
jl 0x436c44
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x1c]
pop edi
movzx eax, byte [ecx + 4]
mov al, byte [eax + str.3s_ckv_6n.f]
xor al, byte [ecx + 3]
xor al, byte [esp + 0x24]
mov byte [esi + 4], al
movzx eax, byte [ecx + 3]
mov al, byte [eax + str.3s_ckv_6n.f]
xor al, byte [esp + 0x23]
xor al, byte [ecx + 2]
mov byte [esi + 3], al
movzx eax, byte [ecx + 2]
mov al, byte [eax + str.3s_ckv_6n.f]
xor al, byte [ecx + 1]
xor al, byte [esp + 0x22]
mov byte [esi + 2], al
movzx eax, byte [ecx + 1]
mov al, byte [eax + str.3s_ckv_6n.f]
xor al, byte [ecx]
xor al, byte [esp + 0x21]
mov byte [esi + 1], al
movzx eax, byte [ecx]
mov ecx, dword [esp + 0x28]
mov al, byte [eax + str.3s_ckv_6n.f]
xor al, byte [esi + 4]
xor al, byte [esp + 0x20]
mov byte [esi], al
movzx eax, byte [esi + 4]
mov al, byte [eax + str.3s_ckv_6n.f]
xor al, byte [esi + 3]
xor al, byte [esp + 0x24]
mov byte [esi + 4], al
movzx eax, byte [esi + 3]
mov al, byte [eax + str.3s_ckv_6n.f]
xor al, byte [esi + 2]
xor al, byte [esp + 0x23]
mov byte [esi + 3], al
movzx eax, byte [esi + 2]
mov al, byte [eax + str.3s_ckv_6n.f]
xor al, byte [esi + 1]
xor al, byte [esp + 0x22]
mov byte [esi + 2], al
movzx eax, byte [esi + 1]
mov al, byte [eax + str.3s_ckv_6n.f]
xor al, byte [esi]
xor al, byte [esp + 0x21]
mov byte [esi + 1], al
movzx eax, byte [esi]
mov al, byte [eax + str.3s_ckv_6n.f]
xor al, byte [esp + 0x20]
mov byte [esi], al
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b35e5
add esp, 0x20
ret
Function at 0x43c63e
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x51da84], 0
push ebx
push esi
push edi
jne 0x43c68f
xor ebx, ebx
inc ebx
xor esi, esi
mov dword [0x51da84], ebx
mov eax, esi
push 8
cdq
pop edi
mov ecx, eax
shrd eax, edx, 1
and ecx, ebx
shr edx, 1
or ecx, 0
je 0x43c675
xor eax, 0xac4bc9b5
xor edx, 0x95ac9329
dec edi
jne 0x43c65b
mov dword [esi*8 + 0x51da88], eax
mov dword [esi*8 + 0x51da8c], edx
inc esi
cmp esi, 0x100
jl 0x43c655
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
test edi, edi
je 0x43c6cd
mov esi, dword [esp + 0x18]
movzx edx, byte [ebx]
xor edx, dword [esi]
mov eax, dword [esi]
and edx, 0xff
mov ecx, dword [esi + 4]
shrd eax, ecx, 8
xor eax, dword [edx*8 + 0x51da88]
shr ecx, 8
xor ecx, dword [edx*8 + 0x51da8c]
inc ebx
mov dword [esi], eax
mov dword [esi + 4], ecx
dec edi
jne 0x43c69f
pop edi
pop esi
pop ebx
ret

Function at 0x43cfc7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
mov eax, dword [0x5107c0]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push esi
mov ebx, ecx
push edi
mov dword [esp + 0xc], ebx
call fcn.0043c9dd
mov edi, eax
test edi, edi
je 0x43d09e
mov eax, dword [edi + 0x14]
xor esi, esi
sub eax, dword [edi + 0x10]
push ebp
push 0x18
cdq
pop ecx
idiv ecx
test eax, eax
je 0x43d028
mov ecx, dword [edi + 0x10]
mov ebp, dword [esp + 0x64]
add ecx, 4
push 0x18
pop ebx
cmp dword [ecx], ebp
je 0x43d021
mov eax, dword [edi + 0x14]
inc esi
sub eax, dword [edi + 0x10]
add ecx, ebx
cdq
idiv ebx
cmp esi, eax
jb 0x43d00d
mov ebx, dword [esp + 0x10]
push 0x18
pop ecx
and dword [ebx + 0x80], 0
xor eax, eax
and dword [ebx + 0x88], 0
inc eax
mov dword [ebx + 0x70], eax
mov word [ebx + 0x86], ax
mov eax, dword [edi + 0x14]
sub eax, dword [edi + 0x10]
cdq
idiv ecx
cmp esi, eax
jae 0x43d0cd
mov eax, dword [edi + 0x10]
imul ecx, esi, 0x18
mov esi, dword [ecx + eax + 0x14]
lea eax, [edi + 0x1c]
push esi
lea ecx, [ebx + 0x70]
mov dword [ebx + 0x8c], 1
mov dword [ebx + 0x7c], eax
call fcn.0043ce8f
lea eax, [esi + 1]
mov word [ebx + 0x48], ax
mov ecx, dword [ebx + 0x6c]
push ebx
call fcn.0043ad03
mov ecx, dword [esp + 0x5c]
neg al
pop ebp
pop edi
pop esi
sbb al, al
pop ebx
xor ecx, esp
inc al
call fcn.004b35e5
add esp, 0x50
ret 4
push 8
pop ecx
xor eax, eax
mov dword [esp + 0x10], 0xc
push 9
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
pop ecx
push 0x4ea698
lea eax, [esp + 0x38]
lea esi, [esp + 0x14]
lea edi, [esp + 0x38]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.004b7500
or dword [ebx + 0x78], 0xffffffff
lea edi, [esp + 0x18]
and dword [ebx + 0x74], 0
lea esi, [esp + 0x14]
and dword [ebx + 0x7c], 0
xor eax, eax
push 8
pop ecx
push 9
mov dword [esp + 0x18], 0xa
rep stosd dword es:[edi], eax
pop ecx
push 0x4ea698
lea eax, [esp + 0x3c]
lea edi, [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.004b7500
int3
Function at 0x43d109
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
mov eax, dword [0x5107c0]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push esi
mov esi, dword [esp + 0x60]
mov ebx, ecx
push edi
push esi
mov dword [esp + 0x10], ebx
call fcn.0043c8d4
mov edi, eax
test edi, edi
je 0x43d1f0
test esi, esi
jle 0x43d13f
mov word [ebx + 0x84], si
mov eax, dword [edi + 0x24]
xor esi, esi
sub eax, dword [edi + 0x20]
push ebp
push 0x18
cdq
pop ecx
idiv ecx
test eax, eax
je 0x43d17a
mov ecx, dword [edi + 0x20]
mov ebp, dword [esp + 0x64]
add ecx, 4
push 0x18
pop ebx
cmp dword [ecx], ebp
je 0x43d173
mov eax, dword [edi + 0x24]
inc esi
sub eax, dword [edi + 0x20]
add ecx, ebx
cdq
idiv ebx
cmp esi, eax
jb 0x43d15f
mov ebx, dword [esp + 0x10]
push 0x18
pop ecx
and dword [ebx + 0x80], 0
xor eax, eax
and dword [ebx + 0x88], 0
inc eax
mov dword [ebx + 0x70], eax
mov word [ebx + 0x86], ax
mov eax, dword [edi + 0x24]
sub eax, dword [edi + 0x20]
cdq
idiv ecx
cmp esi, eax
jae 0x43d21f
mov eax, dword [edi + 0x20]
imul ecx, esi, 0x18
mov esi, dword [ecx + eax + 0x14]
lea eax, [edi + 0x2c]
push esi
lea ecx, [ebx + 0x70]
mov dword [ebx + 0x8c], 3
mov dword [ebx + 0x7c], eax
call fcn.0043ce8f
lea eax, [esi + 1]
mov word [ebx + 0x48], ax
mov ecx, dword [ebx + 0x6c]
push ebx
call fcn.0043ad03
mov ecx, dword [esp + 0x5c]
neg al
pop ebp
pop edi
pop esi
sbb al, al
pop ebx
xor ecx, esp
inc al
call fcn.004b35e5
add esp, 0x50
ret 8
push 8
pop ecx
xor eax, eax
mov dword [esp + 0x10], 0xc
push 9
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
pop ecx
push 0x4ea698
lea eax, [esp + 0x38]
lea esi, [esp + 0x14]
lea edi, [esp + 0x38]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.004b7500
or dword [ebx + 0x78], 0xffffffff
lea edi, [esp + 0x18]
and dword [ebx + 0x74], 0
lea esi, [esp + 0x14]
and dword [ebx + 0x7c], 0
xor eax, eax
push 8
pop ecx
push 9
mov dword [esp + 0x18], 0xa
rep stosd dword es:[edi], eax
pop ecx
push 0x4ea698
lea eax, [esp + 0x3c]
lea edi, [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.004b7500
int3
Function at 0x43f35d
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
and dword [esp + 8], 0
push ebx
push ebp
xor ebp, ebp
add eax, dword [esp + 0x28]
push esi
push edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov eax, ebp
xor esi, esi
sar eax, 1
mov dword [esp + 0x10], eax
mov eax, ebp
and eax, 1
xor edi, edi
mov dword [esp + 0x24], eax
mov ebx, eax
lea eax, [esp + 0x10]
push eax
call fcn.0043f2f9
mov eax, dword [esp + 0x20]
pop ecx
sar esi, 8
movzx eax, byte [eax + edi]
movzx ecx, byte [eax + 0x4d53a8]
mov eax, dword [esp + 0x34]
movzx eax, byte [edi + eax]
xor ecx, eax
mov eax, dword [esp + 0x10]
xor eax, 0x1fe00
sar eax, 9
sub ecx, eax
sub ecx, ebx
mov ebx, ecx
movzx eax, bl
shl eax, 0x11
sar ebx, 8
or esi, eax
and ebx, 1
inc edi
cmp edi, 4
jl 0x43f392
mov ebp, dword [esp + 0x1c]
push 4
mov dword [esp + 0x18], esi
pop esi
lea eax, [esp + 0x10]
push eax
call fcn.0043f2f9
lea eax, [esp + 0x18]
push eax
call fcn.0043f337
mov eax, dword [esp + 0x1c]
sar eax, 0x11
pop ecx
add ebx, eax
movzx eax, byte [esi + ebp]
pop ecx
mov ecx, dword [esp + 0x10]
xor ecx, 0x1fe00
sar ecx, 9
add ebx, ecx
movzx ecx, byte [eax + 0x4d53a8]
mov eax, dword [esp + 0x34]
movzx eax, byte [esi + eax]
xor ecx, eax
movzx eax, bl
cmp eax, ecx
jne 0x43f43d
sar ebx, 8
inc esi
cmp esi, 7
jl 0x43f3ea
mov ebp, dword [esp + 0x20]
cmp esi, 7
jne 0x43f4e8
push 6
pop esi
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0043f283
pop ecx
pop ecx
dec esi
jne 0x43f44d
mov esi, dword [esp + 0x10]
mov eax, esi
mov edi, dword [esp + 0x14]
mov edx, edi
sar eax, 9
not eax
sar edx, 0x11
add eax, dword [esp + 0x24]
add edx, eax
mov eax, dword [esp + 0x1c]
and edx, 0xff
movzx eax, byte [eax]
movzx ecx, byte [eax + 0x4d53a8]
mov eax, dword [esp + 0x34]
movzx eax, byte [eax]
xor ecx, eax
cmp edx, ecx
jne 0x43f4e8
mov ebx, dword [esp + 0x30]
inc ebx
test ebx, ebx
jle 0x43f4c1
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0043f283
pop ecx
pop ecx
dec ebx
jne 0x43f4a5
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
test esi, 0x100
je 0x43f4e8
mov ecx, dword [esp + 0x18]
test edi, 0x200000
je 0x43f4ec
mov eax, dword [esp + 0x38]
inc ecx
mov dword [esp + 0x18], ecx
mov dword [eax], esi
mov eax, dword [esp + 0x3c]
mov dword [eax], edi
jmp 0x43f4ec
mov ecx, dword [esp + 0x18]
inc ebp
mov dword [esp + 0x20], ebp
cmp ebp, 0x40000
jl 0x43f37b
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x18
ret
Function at 0x43fd46
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5107c0]
xor eax, ebp
mov dword [ebp - 4], eax
xor edx, edx
lea eax, [ebp - 0x14]
push edx
push eax
push 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], edx
push eax
push edx
push edx
push 0x2d1080
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004b35e5
mov esp, ebp
pop ebp
ret

Function at 0x43fd87
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x88
mov eax, dword [0x5107c0]
xor eax, ebp
mov dword [ebp + 0x70], eax
push ebx
push esi
push 0x10
push 0xfac3c797
push 0x504432
call fcn.00401cab
push dword [ebp + 0x7c]
push eax
lea eax, [ebp + 0x30]
push eax
call fcn.004b4a31
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
xor ebx, ebx
xor edx, edx
mov ecx, ebx
inc edx
shl edx, cl
test esi, edx
je 0x43fe0b
lea eax, [ebx + 0x41]
mov word [ebp - 0x13], 0x3a
mov byte [ebp - 0x14], al
lea eax, [ebp - 0x10]
push 0x40
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 0x11], 0
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x43fe0b
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004b9d79
pop ecx
pop ecx
test eax, eax
je 0x43fe24
inc ebx
cmp ebx, 0x20
jl 0x43fdc9
mov al, 0x41
mov ecx, dword [ebp + 0x70]
pop esi
xor ecx, ebp
pop ebx
call fcn.004b35e5
lea esp, [ebp + 0x74]
pop ebp
ret
lea eax, [ebx + 0x41]
jmp 0x43fe13