joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4142f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
xor esi, esi
test edi, edi
jle 0x41437a
push ebp
mov ebp, dword [esp + 0x18]
jmp 0x414315
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
inc cl
and ecx, 0xff
mov edi, ecx
mov dword [esp + 0xc], edi
mov ecx, dword [eax + edi*4 + 8]
mov dword [esp + 0x18], ecx
add cl, dl
mov edx, dword [esp + 0x18]
and ecx, 0xff
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + ecx*4 + 8]
mov dword [eax + edi*4 + 8], ecx
mov edi, dword [esp + 0x14]
add cl, dl
and ecx, 0xff
mov dword [eax + edi*4 + 8], edx
mov dl, byte [esi + ebp]
mov cl, byte [eax + ecx*4 + 8]
xor dl, cl
mov ecx, dword [esp + 0x1c]
mov byte [esi + ebp], dl
inc esi
cmp esi, ecx
jl 0x41430d
mov edx, dword [esp + 0xc]
mov ecx, edi
pop ebp
pop edi
mov dword [eax], edx
mov dword [eax + 4], ecx
pop esi
pop ecx
ret 0xc
pop edi
mov dword [eax], ecx
mov dword [eax + 4], edx
pop esi
pop ecx
ret 0xc

Function at 0x4143f0
Capabilities:
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x44dd21
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
mov eax, dword [0x46514c]
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x10], ebp
mov dword [ebp + 0x548], eax
xor ebx, ebx
lea edx, [ebp + 4]
xor ecx, ecx
mov dword [ebp], 0x454eac
mov dword [ebp + 0x858], 0xffffffff
mov dword [ebp + 0x85c], ebx
mov dword [edx], ecx
xor eax, eax
lea edi, [ebp + 0x10]
mov byte [esp + 0x14], bl
mov dword [edx + 4], ecx
push 1
push 0x1a
mov dword [esp + 0x128], ebx
mov dword [edx + 8], ecx
mov ecx, 0x107
rep stosd dword es:[edi], eax
lea edi, [ebp + 0x444]
mov ecx, 0x41
mov dword [ebp + 0x42c], ebx
mov dword [ebp + 0x430], ebx
mov dword [ebp + 0x434], ebx
mov dword [ebp + 0x438], ebx
mov dword [ebp + 0x43c], ebx
mov dword [ebp + 0x440], ebx
mov dword [ebp + 0x860], ebx
mov dword [ebp + 0x750], ebx
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp + 0x54c]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [ebp + 0x650]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x1d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, str.esafenet_out_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp + 0x548]
call fcn.0043ff85
lea ecx, [esp + 0x14]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x104
lea eax, [ebp + 0x444]
lea edx, [esp + 0x18]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x118]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x114
ret
Function at 0x414620
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push esi
mov esi, ecx
push edi
push 0x104
lea edi, [esi + 0x754]
push eax
push edi
call fcn.00423d60
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x858], eax
jne 0x414674
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
xor eax, eax
pop esi
add esp, 8
ret 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x85c], eax
je 0x4146fb
test eax, eax
je 0x4146fb
mov edx, dword [esi + 0x858]
lea ecx, [esp + 0xc]
add eax, 0xfffffff4
push 0
push ecx
push eax
push edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x414705
mov ecx, dword [esi + 0x858]
lea eax, [esp + 0x14]
push 0
lea edi, [esi + 4]
push eax
push 0xc
push edi
push ecx
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x14], 0xc
jne 0x414705
cmp dword [edi], 0x87321654
jne 0x414705
mov ecx, esi
call fcn.00414710
mov dword [esi + 0x860], eax
pop edi
pop esi
add esp, 8
ret 4
mov dword [esi + 0x85c], 0
pop edi
xor eax, eax
pop esi
add esp, 8
ret 4
Function at 0x414b90
Capabilities:
Delete file
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44dd5b
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x860], edi
jne 0x414bc2
xor eax, eax
jmp 0x414d7e
mov ebp, dword [esi + 0x85c]
mov ecx, dword [esi + 0x418]
mov eax, dword [esi + 0xc]
sub ebp, ecx
mov ecx, dword [esi + 0x430]
sub ebp, eax
mov eax, dword [esi + 0x42c]
sub ebp, 0xc
cmp ecx, edi
jle 0x414bf5
add eax, 0x28
mov edx, dword [eax]
add eax, 0x2c
sub ebp, edx
dec ecx
jne 0x414beb
mov ecx, dword [esi + 0x858]
lea eax, [esp + 0x28]
push edi
push eax
push edi
push ecx
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x414c1d
xor eax, eax
jmp 0x414d7e
push ebp
call fcn.0043b7dd
mov ebx, eax
add esp, 4
cmp ebx, edi
jne 0x414c42
push ebp
call fcn.0043b7dd
mov ebx, eax
add esp, 4
cmp ebx, edi
jne 0x414c42
xor eax, eax
jmp 0x414d7e
mov ecx, ebp
mov dword [esp + 0x10], edi
mov edx, ecx
xor eax, eax
mov edi, ebx
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esi + 0x858]
lea eax, [esp + 0x14]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp ebp, dword [esp + 0x10]
je 0x414c86
push ebx
call fcn.0043b806
add esp, 4
xor eax, eax
jmp 0x414d7e
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x140]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
sub edx, 4
rep movsb byte es:[edi], byte [esi]
or esi, 0xffffffff
lea edi, [esp + 0x2c]
mov ecx, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ecx + edx], al
lea ecx, [esp + 0x14]
call fcn.0043b811
push 0
lea eax, [esp + 0x30]
push 0x1001
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x144], 0
call fcn.0043b9c3
test eax, eax
jne 0x414d27
push ebx
call fcn.0043b806
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x138], esi
call fcn.0043b906
xor eax, eax
jmp 0x414d7e
push ebp
push ebx
lea ecx, [esp + 0x1c]
call fcn.0043bb1a
lea ecx, [esp + 0x14]
call fcn.0043bbbd
lea ecx, [esp + 0x14]
call fcn.0043bbde
push ebx
call fcn.0043b806
mov edi, dword [esp + 0x144]
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x2c]
push edi
push ecx
call fcn.004244e4
add esp, 8
lea ecx, [esp + 0x14]
mov dword [esp + 0x138], esi
call fcn.0043b906
mov eax, 1
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret 4
Function at 0x415480
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x44ddbb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2a8
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x41]
mov byte [esp + 0x40], bl
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x2d4]
mov dword [esp + 0x10], ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x2d0]
mov dword [esi + 0x868], ecx
push ecx
push eax
lea ecx, [esp + 0x14c]
mov dword [esi + 0x864], eax
call fcn.00410470
mov ebp, dword [esi + 0x85c]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x418]
sub ebp, ecx
mov ecx, dword [esi + 0x860]
sub ebp, eax
sub ebp, 0xc
cmp ecx, ebx
mov dword [esp + 0x2c0], ebx
je 0x415637
cmp ebp, ebx
je 0x415637
mov dword [esp + 0x38], eax
lea eax, [esi + 0x650]
push 0x24
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.00423d60
mov ebx, dword [esp + 0x2d8]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + ebx - 1], 0x5c
je 0x415556
push str.NC.
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edx, dword [esp + 0x2c8]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + edx - 1], 0x5c
je 0x41557c
push str.NC.
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push ebx
lea edx, [esp + 0x48]
push str._s_x08.tmp
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x40]
lea ecx, [esp + 0x14]
push 1
push eax
push ebp
push ecx
mov ecx, esi
call fcn.00414da0
test eax, eax
je 0x41560d
mov eax, dword [esi + 0x864]
test eax, eax
je 0x4155cd
mov edx, dword [esi + 0x868]
push edx
push 0
push 0xfffffffffffffffe
call eax
add esp, 0xc
test al, al
je 0x41560d
lea eax, [esp + 0x40]
lea ecx, [esp + 0x144]
push eax
call fcn.004105d0
test eax, eax
je 0x41560d
mov ecx, dword [esp + 0x2c8]
push ecx
lea ecx, [esp + 0x148]
call fcn.00410830
test eax, eax
je 0x41560d
lea ecx, [esp + 0x144]
call fcn.00410700
mov esi, 1
jmp 0x415611
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x144]
mov dword [esp + 0x2c0], 0xffffffff
call fcn.004104d0
mov eax, esi
jmp 0x415650
lea ecx, [esp + 0x144]
mov dword [esp + 0x2c0], 0xffffffff
call fcn.004104d0
xor eax, eax
mov ecx, dword [esp + 0x2b8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2b4
ret 0x10
Function at 0x416080
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44def0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
cmp byte [esi + 0xe4], 0xff
je 0x4160c4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov al, byte [ebp + 0xc]
xor ebx, ebx
cmp al, bl
mov dword [ebp - 0x14], 1
jne 0x416189
cmp dword [esi + 0x60], ebx
jne 0x4160f9
mov ecx, esi
call fcn.00415dc0
mov ecx, dword [esi + 0x68]
mov edx, dword [eax + 0x14]
cmp ecx, edx
je 0x416100
push 0xffffffffffffff9a
mov ecx, esi
call fcn.00415a10
jmp 0x416100
mov dword [ebp - 0x14], 0xffffffff
mov ecx, esi
call fcn.00415dc0
cmp word [eax + 0xe], 8
jne 0x416117
lea edx, [esi + 0x28]
push edx
call fcn.0042f0a0
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x416189
lea eax, [ebp + 0xc]
mov dword [ebp - 4], ebx
push eax
call fcn.00439bd7
mov eax, dword [eax]
lea ecx, [ebp + 0xc]
push ecx
mov ecx, esi
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x11c], bl
call fcn.00415dc0
mov ecx, eax
call fcn.0041a4f0
mov edx, dword [eax]
lea eax, [ebp - 0x12c]
push eax
push edi
mov dword [ebp - 0x128], edx
call fcn.0043c28d
mov ecx, esi
call fcn.00415dc0
mov ecx, dword [eax + 0x24]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x416182
mov dword [ebp - 0x14], 0xfffffffe
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xe8]
call fcn.00419240
lea ecx, [esi + 0x6c]
mov byte [esi + 0xe4], bl
call fcn.00418a00
mov ecx, esi
call fcn.004177d0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4167a0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x44dff8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push esi
push eax
lea ecx, [esp + 0x20]
call fcn.0043fe6a
push str.NC.
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0
call fcn.0043997d
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 8]
push ecx
push edx
call fcn.004164c0
mov ecx, dword [esp + 0x24]
mov eax, dword [eax]
push ecx
push eax
mov byte [esp + 0x24], 1
call fcn.0042344d
add esp, 0x10
or esi, 0xffffffff
test eax, eax
je 0x416821
mov edx, dword [esp + 0x1c]
push edx
call fcn.004168c0
add esp, 4
cmp eax, esi
sete al
test al, al
jne 0x416821
xor bl, bl
jmp 0x416823
mov bl, 1
lea ecx, [esp + 8]
mov byte [esp + 0x14], 0
call fcn.0043fdfc
test bl, bl
jne 0x41689c
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 8]
push eax
push ecx
call fcn.004164c0
mov eax, dword [eax]
mov byte [esp + 0x1c], 2
push eax
call fcn.004167a0
add esp, 0xc
lea ecx, [esp + 8]
test al, al
sete bl
mov byte [esp + 0x14], 0
call fcn.0043fdfc
test bl, bl
jne 0x41687c
mov edx, dword [esp + 0x1c]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x41689c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], esi
call fcn.0043fdfc
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], esi
call fcn.0043fdfc
mov ecx, dword [esp + 0xc]
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4168c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44e018
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
lea ecx, [esp + 4]
call fcn.0041bb76
mov esi, dword [esp + 0x30]
push 0
push esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
call fcn.0041bc39
test eax, eax
jne 0x416946
push esi
call fcn.00416990
add esp, 4
mov dword [esp + 0x28], 0xffffffff
test al, al
lea ecx, [esp + 4]
je 0x41692f
call fcn.0041bbb3
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
call fcn.0041bbb3
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
lea ecx, [esp + 4]
call fcn.0041be59
mov eax, dword [esp + 4]
push 0x10
lea ecx, [esp + 8]
call dword [eax + 0x38]
neg eax
sbb eax, eax
lea ecx, [esp + 4]
and al, 0xfe
mov dword [esp + 0x28], 0xffffffff
inc eax
mov esi, eax
call fcn.0041bbb3
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x417020
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
push ebx
lea ecx, [esp + 8]
push eax
push ecx
call fcn.00417050
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
lea ecx, [esp + 8]
sete bl
call fcn.0043fdfc
mov al, bl
pop ebx
ret

Function at 0x417450
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
push eax
mov ecx, dword [esi + 0x14]
push ecx
mov ecx, esi
call fcn.004175b0
mov edx, dword [esi + 0x18]
mov dword [esi + 0x14], eax
and eax, 0xff
mov ecx, esi
add eax, edx
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x18], eax
shr eax, 0x18
mov byte [esp + 8], al
mov eax, dword [esi + 0x1c]
mov edx, dword [esp + 8]
push edx
push eax
call fcn.004175b0
mov dword [esi + 0x1c], eax
pop esi
ret 4

Function at 0x418180
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44e39e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebx
xor ebx, ebx
push esi
test eax, eax
mov esi, ecx
mov dword [esp + 8], ebx
jne 0x4181c6
mov ecx, dword [esi + 0x1c]
lea edx, [esp + 0x18]
push edx
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ebx, 1
mov dword [esp + 8], ebx
mov eax, dword [eax]
mov dword [esp + 0x28], ebx
push eax
lea ecx, [esp + 0x10]
call fcn.0043fe6a
test bl, 1
mov dword [esp + 0x28], 3
je 0x4181ed
and ebx, 0xfffffffe
lea ecx, [esp + 0x18]
mov dword [esp + 8], ebx
call fcn.0043fdfc
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.004164c0
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
mov byte [esp + 0x38], 4
call fcn.00416590
add esp, 0x10
mov ecx, dword [0x46514c]
mov dword [esp + 0x38], ecx
mov al, byte [esp + 0x34]
mov byte [esp + 0x28], 6
test al, al
je 0x41823a
push 0x464eec
lea ecx, [esp + 0x3c]
call fcn.0043ff85
jmp 0x418250
mov edx, dword [esi + 0x4c]
lea eax, [esp + 0x38]
push edx
push 0x464ee4
push eax
call fcn.0043996a
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
call fcn.0044002b
push 0x4635a0
lea ecx, [esp + 0x38]
push eax
push ecx
mov byte [esp + 0x34], 7
call fcn.00440091
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x38]
push edx
push eax
push esi
mov byte [esp + 0x34], 8
call fcn.0044002b
or ebx, 2
mov dword [esp + 8], ebx
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 7
call fcn.0043fdfc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 6
call fcn.0043fdfc
lea ecx, [esp + 0x38]
mov byte [esp + 0x28], 5
call fcn.0043fdfc
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 4
call fcn.0043fdfc
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 3
call fcn.0043fdfc
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call fcn.0043fdfc
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x4185b0
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x44e418
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov ecx, dword [ecx + 0x1c]
lea edx, [esp + 4]
push ebx
push edx
mov eax, dword [ecx]
call dword [eax + 0x18]
mov eax, dword [eax]
mov dword [esp + 0x24], 0
push eax
lea eax, [esp + 8]
push eax
call fcn.00417050
mov eax, dword [eax]
add esp, 8
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
lea ecx, [esp + 4]
sete bl
call fcn.0043fdfc
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0xffffffff
call fcn.0043fdfc
test bl, bl
pop ebx
je 0x418640
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x18]
imul eax, dword [esp + 0xc]
imul eax, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x418cf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44e4b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.00418e90
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x30], eax
push 0
push eax
mov ecx, dword [ecx + 0x1c]
mov edx, dword [ecx]
call dword [edx + 0x28]
push 0
push 0x16
lea ecx, [esp + 0xc]
call fcn.004189c0
mov eax, dword [esi + 0x2c]
push 0x16
mov dword [esp + 0x1c], 0
mov ecx, dword [eax + 0x1c]
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [ecx]
call dword [edx + 0x34]
cmp eax, 0x16
je 0x418d56
push 0xffffffffffffff9b
mov ecx, esi
call fcn.00418fd0
mov eax, dword [esp + 8]
push edi
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov dx, word [eax + 4]
mov word [esi + 8], dx
mov cx, word [eax + 6]
mov word [esi + 0xa], cx
mov dx, word [eax + 8]
mov word [esi + 0xc], dx
mov cx, word [eax + 0xa]
mov word [esi + 0xe], cx
mov edx, dword [eax + 0xc]
mov dword [esi + 0x10], edx
mov ecx, dword [eax + 0x10]
mov dword [esi + 0x14], ecx
mov di, word [eax + 0x14]
lea ecx, [esp + 8]
call fcn.00418a00
mov dx, word [esi + 8]
mov ecx, dword [esi + 0x2c]
push edx
call fcn.00418660
mov ecx, dword [esi + 0x2c]
call fcn.00417d30
test eax, eax
jne 0x418dca
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x30]
add eax, edx
cmp ecx, eax
jae 0x418dca
push 0xffffffffffffff9b
mov ecx, esi
call fcn.00418fd0
test di, di
je 0x418dfd
and edi, 0xffff
push 0
push edi
lea ecx, [esi + 0x18]
call fcn.00418a30
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 0x1c]
push edi
push eax
mov ecx, dword [ecx + 0x1c]
mov edx, dword [ecx]
call dword [edx + 0x34]
cmp eax, edi
je 0x418dfd
push 0xffffffffffffff9b
mov ecx, esi
call fcn.00418fd0
mov ecx, dword [esi + 0x2c]
call fcn.00417d30
test eax, eax
pop edi
je 0x418e0e
xor eax, eax
jmp 0x418e1b
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
sub eax, edx
sub eax, ecx
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x418e2b
cmp word [esi + 0xe], ax
jne 0x418e36
cmp word [esi + 0xe], 0
jne 0x418e3f
test eax, eax
je 0x418e3f
push 0xffffffffffffff9b
mov ecx, esi
call fcn.00418fd0
mov ecx, dword [esi + 0x2c]
xor eax, eax
mov ax, word [esi + 0xa]
mov byte [esi + 0x3c], 1
push eax
call fcn.00417d50
mov eax, dword [esi + 0x10]
test eax, eax
je 0x418e60
mov ecx, esi
call fcn.00419030
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call fcn.004189f0
mov ecx, dword [esp + 0x10]
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x41a350
Capabilities:
Access peb ldr_data
Enumerate pe sections
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x44e678
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
push 0x2e
lea ecx, [esp + 0x1c]
call fcn.004189c0
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x30]
push 1
push 0x2e
push eax
mov ecx, edi
mov dword [esp + 0x34], 0
call fcn.00417b80
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov dx, word [eax + 4]
mov word [esi + 8], dx
mov cx, word [eax + 6]
mov word [esi + 0xa], cx
mov dx, word [eax + 8]
mov word [esi + 0xc], dx
mov cx, word [eax + 0xa]
mov word [esi + 0xe], cx
mov dx, word [eax + 0xc]
mov word [esi + 0x10], dx
mov cx, word [eax + 0xe]
mov word [esi + 0x12], cx
mov edx, dword [eax + 0x10]
mov dword [esi + 0x14], edx
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x18], ecx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x1c], edx
mov cx, word [eax + 0x20]
mov dx, word [eax + 0x22]
mov bx, word [eax + 0x1c]
mov bp, word [eax + 0x1e]
mov word [esp + 0x30], cx
mov word [esi + 0x20], dx
mov cx, word [eax + 0x24]
mov word [esi + 0x22], cx
mov edx, dword [eax + 0x26]
mov dword [esi + 0x24], edx
mov eax, dword [eax + 0x2a]
lea ecx, [esp + 0x14]
mov dword [esi + 0x28], eax
call fcn.00418a00
mov edx, dword [esi + 4]
mov ecx, 0x464f1c
cmp edx, dword [ecx]
je 0x41a43c
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.004189f0
xor al, al
jmp 0x41a4d4
mov ecx, edi
call fcn.00417f50
and ebx, 0xffff
push 0
push ebx
lea ecx, [esi + 0x38]
mov dword [esp + 0x18], eax
call fcn.00418a30
mov ecx, dword [edi + 0x1c]
mov eax, dword [esi + 0x3c]
push ebx
push eax
mov edx, dword [ecx]
call dword [edx + 0x34]
test bp, bp
je 0x41a48a
mov ebx, ebp
push 0
and ebx, 0xffff
lea ecx, [esi + 0x2c]
push ebx
call fcn.00418a30
mov ecx, dword [edi + 0x1c]
mov eax, dword [esi + 0x30]
push ebx
push eax
mov edx, dword [ecx]
call dword [edx + 0x34]
mov ebx, dword [esp + 0x30]
test bx, bx
je 0x41a4b1
and ebx, 0xffff
push 0
push ebx
lea ecx, [esi + 0x44]
call fcn.00418a30
mov ecx, dword [edi + 0x1c]
mov esi, dword [esi + 0x48]
push ebx
push esi
mov eax, dword [ecx]
call dword [eax + 0x34]
mov ecx, edi
call fcn.00417f50
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
cmp eax, ecx
lea ecx, [esp + 0x14]
sete bl
call fcn.004189f0
mov al, bl
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4