joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b9e6
Capabilities:
Access peb ldr_data

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x10]
mov edi, dword [ebp + 0x30]
mov esi, dword [esp + 0x18]
movzx ebx, word [esi]
mov eax, ebx
lea ecx, [eax - 0x41]
cmp ecx, 0x19
ja 0x44ba1e
add eax, 0x20
movzx edx, word [edi]
lea ecx, [edx - 0x41]
cmp ecx, 0x19
ja 0x44ba2c
add edx, 0x20
cmp eax, edx
jne 0x44ba3d
test bx, bx
je 0x44ba72
add esi, 2
add edi, 2
jmp 0x44ba0e
movzx ecx, word [esi]
lea eax, [ecx - 0x41]
cmp eax, 0x19
ja 0x44ba4b
add ecx, 0x20
movzx edx, word [edi]
lea eax, [edx - 0x41]
cmp eax, 0x19
ja 0x44ba59
add edx, 0x20
sub ecx, edx
je 0x44ba72
mov ebp, dword [ebp]
mov dword [esp + 0x10], ebp
cmp dword [ebp + 0x18], 0
jne 0x44ba07
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x44d430
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x44d44e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x44d443
pop esi
ret

Function at 0x44d510
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.0045b137
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x44d57a
push esi
lea edi, [eax + 0x400]
call fcn.0045b0dd
push edi
call fcn.0045b137
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x44d54a
push esi
xor edi, edi
call dword [0x54a560]
add esp, 4
test eax, eax
je 0x44d596
push eax
push esi
call fcn.00452290
add esp, 8
mov edi, eax
push esi
call fcn.0045b0dd
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x44da30
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x44dac2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x44dab4
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x44daac
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x44da75
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x44f500
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
push eax
call fcn.00452710
mov edi, dword [esp + 0x38]
xor ebp, ebp
push edi
mov ebx, eax
mov dword [esp + 0x18], ebp
call dword [0x54a560]
add esp, 8
test ebx, ebx
je 0x44f644
test eax, eax
je 0x44f644
inc eax
push eax
call fcn.0045b137
mov ebp, eax
or ecx, 0xffffffff
xor eax, eax
push 0x5c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0045b2f0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x44f572
mov byte [edi], 0
inc edi
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x44f631
push 0x400
mov dword [esp + 0x18], 0x400
mov dword [esp + 0x1c], 1
call fcn.0045b137
add esp, 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
push 0
push edi
push eax
call ebx
test eax, eax
je 0x44f5fa
cmp eax, 0xea
jne 0x44f61d
push esi
call fcn.0045b0dd
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0045b137
mov ecx, dword [esp + 0x24]
add esp, 8
lea edx, [esp + 0x14]
mov esi, eax
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push 0
push edi
push ecx
call ebx
test eax, eax
jne 0x44f5c5
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x44f608
cmp eax, 2
jne 0x44f61d
push esi
call dword [0x54a560]
push eax
push esi
call fcn.00452290
add esp, 0xc
mov dword [esp + 0x10], eax
push esi
call fcn.0045b0dd
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.0045b0dd
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
jne 0x44f66d
mov ebp, eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x44f679
mov esi, dword [esp + 0x40]
test esi, esi
je 0x44f679
push esi
call dword [0x54a560]
push eax
push esi
call fcn.00452290
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x44f690
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [esp + 0x11c]
push ebp
push esi
push edi
push eax
call fcn.00452710
mov edi, dword [esp + 0x138]
xor esi, esi
push edi
mov ebp, eax
mov dword [esp + 0x18], esi
call dword [0x54a560]
add esp, 8
test ebp, ebp
je 0x44f777
test eax, eax
je 0x44f777
inc eax
push ebx
push eax
call fcn.0045b137
mov ebx, eax
or ecx, 0xffffffff
xor eax, eax
push 0x5c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0045b2f0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x44f70b
mov byte [esi], 0
inc esi
lea eax, [esp + 0x10]
push eax
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x44f75f
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push esi
push ecx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x44f74c
cmp eax, 0xea
jne 0x44f754
mov dword [esp + 0x14], 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.0045b0dd
mov eax, dword [esp + 0x18]
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x114
ret
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x114
ret

Function at 0x44f790
Capabilities:
Get common file path
Get disk information

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x24c
test eax, eax
push esi
jne 0x44f7bb
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x44f7e8
pop esi
add esp, 0x24c
ret
mov esi, dword [esp + 0x258]
push esi
call dword [0x54a560]
add esp, 4
test eax, eax
jne 0x44f7d8
pop esi
add esp, 0x24c
ret
mov cl, byte [esi]
mov byte [esp + 9], 0x3a
mov byte [esp + 8], cl
mov byte [esp + 0xa], 0x5c
lea edx, [esp + 0x10c]
xor esi, esi
push 0x40
push edx
push esi
lea eax, [esp + 0x10]
push esi
push eax
lea ecx, [esp + 0x160]
push 0x104
lea edx, [esp + 0x20]
push ecx
push edx
mov byte [esp + 0x2b], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x44f83d
lea eax, [esp + 0x14c]
push eax
call dword [0x54a560]
lea ecx, [esp + 0x150]
push eax
push ecx
call fcn.00452290
add esp, 0xc
mov esi, eax
mov eax, esi
pop esi
add esp, 0x24c
ret
Function at 0x44f850
Capabilities:
Get common file path
Get disk size

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x114
test eax, eax
push esi
jne 0x44f875
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x44f8df
jmp 0x44f895
mov esi, dword [esp + 0x120]
push esi
call dword [0x54a560]
add esp, 4
test eax, eax
je 0x44f8df
mov cl, byte [esi]
mov byte [esp + 0x15], 0x3a
mov byte [esp + 0x14], cl
lea edx, [esp + 8]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 8]
push eax
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
mov byte [esp + 0x2a], 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x44f8df
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
imul edx, dword [esp + 4]
push 0x400
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
pop esi
add esp, 0x114
ret
or eax, 0xffffffff
pop esi
add esp, 0x114
ret

Function at 0x44f8f0
Capabilities:
Get common file path
Get disk size

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x11c
test eax, eax
push esi
jne 0x44f915
lea eax, [esp + 0x1c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x44f972
jmp 0x44f935
mov esi, dword [esp + 0x128]
push esi
call dword [0x54a560]
add esp, 4
test eax, eax
je 0x44f972
mov cl, byte [esi]
mov byte [esp + 0x1d], 0x3a
mov byte [esp + 0x1c], cl
lea edx, [esp + 0xc]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 8]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
mov byte [esp + 0x2e], 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x44f972
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, 0xa
call fcn.0045b320
pop esi
add esp, 0x11c
ret
or eax, 0xffffffff
pop esi
add esp, 0x11c
ret
Function at 0x44f980
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x140
push ebx
mov ebx, dword [esp + 0x154]
push ebp
push esi
mov esi, dword [ebx]
push edi
mov edi, dword [esp + 0x154]
xor ebp, ebp
test edi, edi
je 0x44fa00
push edi
call dword [0x54a560]
add esp, 4
test eax, eax
jbe 0x44fa00
test esi, esi
je 0x44f9be
cmp esi, 0xffffffff
je 0x44f9be
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebx], esi
je 0x44fa42
mov eax, dword [esp + 0x15c]
test eax, eax
je 0x44f9ec
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
je 0x44fa00
jmp 0x44f9fb
mov edx, dword [esp + 0x158]
mov eax, dword [esp + 0x10]
test edx, eax
je 0x44fa00
mov ebp, 1
test esi, esi
je 0x44fa42
cmp esi, 0xffffffff
je 0x44fa42
test ebp, ebp
jne 0x44fa79
mov eax, dword [esp + 0x15c]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x10]
push eax
push esi
je 0x44fa4f
call edi
test eax, eax
je 0x44fa42
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
jne 0x44fa79
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x44fa2a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x140
ret
call edi
test eax, eax
je 0x44fa42
mov ebx, dword [esp + 0x158]
test dword [esp + 0x10], ebx
jne 0x44fa79
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
test eax, eax
jne 0x44fa5c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
lea edx, [esp + 0x3c]
push edx
call dword [0x54a560]
inc eax
push eax
call fcn.0044c450
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret

Function at 0x44fae0
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret

Function at 0x450f40
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x450fa9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.0044c450
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x451e10
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x11c]
lea eax, [esp + 0x18]
mov ebx, edi
xor esi, esi
xor ecx, ecx
sub ebx, eax
mov eax, ecx
lea ebp, [esp + ecx + 0x18]
cdq
idiv dword [esp + 0x124]
mov eax, dword [esp + 0x120]
mov byte [ebx + ebp], cl
inc ecx
cmp ecx, 0x100
mov dl, byte [edx + eax]
mov byte [ebp], dl
jl 0x451e42
lea ebp, [esp + 0x18]
mov eax, edi
sub ebp, edi
mov dword [esp + 0x10], 0x100
mov cl, byte [eax]
xor edx, edx
mov dl, byte [eax + ebp]
mov byte [esp + 0x14], cl
mov ebx, dword [esp + 0x14]
add esi, edx
and ebx, 0xff
add esi, ebx
and esi, 0x800000ff
jns 0x451ea2
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [esi + edi]
mov byte [eax], dl
mov byte [esi + edi], cl
mov ecx, dword [esp + 0x10]
inc eax
dec ecx
mov dword [esp + 0x10], ecx
jne 0x451e79
xor al, al
mov byte [edi + 0x100], al
mov byte [edi + 0x101], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret

Function at 0x451f50
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x14]
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
xor esi, esi
mov byte [esp + 0x18], cl
test edi, edi
mov byte [esp + 8], dl
jle 0x451fec
mov edx, dword [esp + 0x10]
push ebx
push ebp
mov cl, byte [esp + 0x20]
mov bl, byte [esp + 0x10]
inc cl
mov byte [esp + 0x20], cl
mov ecx, dword [esp + 0x20]
and ecx, 0xff
lea edi, [ecx + eax]
mov cl, byte [ecx + eax]
add bl, cl
mov byte [esp + 0x10], bl
mov ebx, dword [esp + 0x10]
and ebx, 0xff
lea ebp, [ebx + eax]
mov bl, byte [ebx + eax]
mov byte [edi], bl
mov byte [ebp], cl
mov bl, byte [edi]
add bl, cl
and ebx, 0xff
mov cl, byte [ebx + eax]
mov bl, byte [esi + edx]
xor bl, cl
mov ecx, dword [esp + 0x1c]
mov byte [esi + edx], bl
inc esi
cmp esi, ecx
jl 0x451f7b
mov dl, byte [esp + 0x20]
mov cl, byte [esp + 0x10]
pop ebp
pop ebx
pop edi
mov byte [eax + 0x100], dl
mov byte [eax + 0x101], cl
pop esi
pop ecx
ret
pop edi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop esi
pop ecx
ret
Function at 0x45354b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x453577
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00459496
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x453588
push ebx
call fcn.00459490
add esp, 4
pop eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4535f0
mov ecx, dword [eax + 4]
mov ebx, dword [ebp + 0xc]
test ecx, ecx
je 0x4535f0
mov edx, ebx
mov esp, ecx
or bh, bl
cmp edx, 0xff
cmovbe edx, ebx
mov ebx, edx
and esp, 0xfffffffc
shl ebx, 0x10
sub ecx, esp
or bx, dx
cmp edx, 0xffff
cmovbe edx, ebx
lea ebx, [eax + 8]
test esp, esp
je 0x4535d1
add esp, ebx
xor dword [ebx], edx
add ebx, 4
cmp esp, ebx
jne 0x4535c8
test ecx, ecx
je 0x4535f0
xor byte [ebx], dl
test ecx, 2
je 0x4535f0
xor byte [ebx + 1], dh
test ecx, 1
je 0x4535f0
shr edx, 0x10
xor byte [ebx + 2], dl
leave
ret 8

Function at 0x45362b
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x80000301
push 0
push 0x7fff
push 1
mov ebx, 0x184
call fcn.00459ce0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x453677
push ebx
call fcn.00459490
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
push 0x7fff
push dword [ebp - 4]
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4536b1
push 0x4f
push 0x402e875
push 6
call fcn.0045949c
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4536c8
mov eax, 0
jmp 0x453721
push 0x80000301
push 0
push dword [ebp - 8]
push SysStringLen
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4536e5
mov eax, 0x54a87e
push eax
push 2
mov ebx, 0x134
call fcn.00459d20
add esp, 0x1c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x453711
push ebx
call fcn.00459490
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov eax, 1
jmp 0x453721
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x453732
push ebx
call fcn.00459490
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x457eba
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
inc eax
push dword [eax]
pop word [ebp - 4]
cmp dword [ebp - 4], 0xc25e
je 0x457eef
cmp dword [ebp - 4], 0xc35e
je 0x457eef
jmp 0x457ef2
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x457ed4
cmp dword [ebp - 4], 0xc25e
jne 0x457f92
push eax
mov dword [ebp - 0xc], esp
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push dword [ebp - 8]
push 0xffffffff
xor eax, eax
call dword [sym.imp.kernel32.dll_VirtualProtectEx]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x457f45
push 0x1c8
push 0x40100a7
push 6
call fcn.0045949c
add esp, 0xc
pop eax
push 0x9090c35e
pop dword [eax]
mov dword [ebp - 0xc], esp
mov eax, 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push 4
push dword [ebp - 8]
push 0xffffffff
xor eax, eax
call dword [sym.imp.kernel32.dll_VirtualProtectEx]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x457f92
push 0x261
push 0x40100a7
push 6
call fcn.0045949c
add esp, 0xc
mov esp, ebp
pop ebp
ret 4

Function at 0x45a950
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x479808
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x54c858]
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], 0x41
mov dword [esp + 0x2c], 0x1a
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push 0x54b310
push edx
call fcn.00473bc4
mov esi, dword [esp + 0x34]
add esp, 0xc
test esi, esi
jne 0x45a9c8
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
add eax, 0xfffffffe
cmp eax, 3
ja case.default.0x45a9c1
jmp dword [eax*4 + 0x45aa4c]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, esi
jne case.default.0x45a9c1
push 3
call fcn.0045b83c
mov edi, dword [esp + 0x14]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [ebx], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebp
rep movsb byte es:[edi], byte [esi]
add ebx, 4
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
inc ecx
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], eax
jne 0x45a98f
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.0047498b
mov ecx, dword [esp + 0x18]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x4665a5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x54ba40]
jne 0x4665af
repz ret
jmp fcn.0046ca36
Function at 0x46745b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x54ba40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0045deb3
and dword [ebp - 0x14], 0
cmp dword [0x56f53c], 0
mov dword [ebp - 0x18], eax
jne 0x46750e
push 0x47f508
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4675b6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x47f4fc
push ebx
call edi
test eax, eax
je 0x4675b6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x47f4ec
push ebx
mov dword [0x56f53c], eax
call edi
push eax
call esi
push 0x47f4d8
push ebx
mov dword [0x56f540], eax
call edi
push eax
call esi
push 0x47f4bc
push ebx
mov dword [0x56f544], eax
call edi
push eax
call esi
mov dword [0x56f54c], eax
test eax, eax
je 0x46750e
push 0x47f4a4
push ebx
call edi
push eax
call esi
mov dword [0x56f548], eax
mov eax, dword [0x56f548]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x467567
cmp dword [0x56f54c], ecx
je 0x467567
push eax
call esi
push dword [0x56f54c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x467567
test ebx, ebx
je 0x467567
call edi
test eax, eax
je 0x46755e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x46755e
test byte [ebp - 8], 1
jne 0x467567
or dword [ebp + 0x10], 0x200000
jmp 0x46759a
mov eax, dword [0x56f540]
cmp eax, dword [ebp - 0x18]
je 0x46759a
push eax
call esi
test eax, eax
je 0x46759a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x46759a
mov eax, dword [0x56f544]
cmp eax, dword [ebp - 0x18]
je 0x46759a
push eax
call esi
test eax, eax
je 0x46759a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x56f53c]
call esi
test eax, eax
je 0x4675b6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4675b8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004665a5
leave
ret
Function at 0x471163
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x479b94
call fcn.0046c9cb
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x44], ebx
je 0x47125a
cmp byte [esi + 0x4a], bl
je 0x47125a
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 0xc]
movzx eax, ax
cmp di, ax
jne 0x47119f
xor al, al
jmp 0x47125c
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00470f29
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4711fd
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
mov ebx, dword [ebp - 0x1c]
add eax, ebx
push eax
push edx
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x18]
sub eax, 0
je 0x471202
dec eax
je 0x471206
dec eax
dec eax
je 0x471256
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00470499
mov al, bl
jmp 0x47125c
mov edx, dword [ebp - 0x2c]
jmp 0x4711c8
mov byte [esi + 0x4a], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x471212
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x471238
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x471225
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.0045befe
add esp, 0x10
cmp edi, eax
jne 0x4711eb
cmp byte [esi + 0x4a], 0
je 0x471256
test edi, edi
jne 0x4711ba
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00470e7b
jmp 0x4711ba
mov bl, 1
jmp 0x4711ed
mov al, 1
call fcn.0046ca15
ret