joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4445d0
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.00446300
mov edi, dword [esp + 0x138]
xor esi, esi
push edi
mov ebp, eax
mov dword [esp + 0x18], esi
call dword [0x5a448c]
add esp, 8
test ebp, ebp
je 0x4446b7
test eax, eax
je 0x4446b7
inc eax
push ebx
push eax
call fcn.0044e977
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.0044eb30
mov esi, eax
add esp, 0xc
test esi, esi
je 0x44464b
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 0x44469f
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 0x44468c
cmp eax, 0xea
jne 0x444694
mov dword [esp + 0x14], 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.0044e91d
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 0x4446d0
Capabilities:
Get common file path
Get disk information

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x24c
test eax, eax
push esi
jne 0x4446fb
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x444728
pop esi
add esp, 0x24c
ret
mov esi, dword [esp + 0x258]
push esi
call dword [0x5a448c]
add esp, 4
test eax, eax
jne 0x444718
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 0x44477d
lea eax, [esp + 0x14c]
push eax
call dword [0x5a448c]
lea ecx, [esp + 0x150]
push eax
push ecx
call fcn.00445e80
add esp, 0xc
mov esi, eax
mov eax, esi
pop esi
add esp, 0x24c
ret
Function at 0x444790
Capabilities:
Get common file path
Get disk size

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x114
test eax, eax
push esi
jne 0x4447b5
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x44481f
jmp 0x4447d5
mov esi, dword [esp + 0x120]
push esi
call dword [0x5a448c]
add esp, 4
test eax, eax
je 0x44481f
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 0x44481f
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 0x444830
Capabilities:
Get common file path
Get disk size

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x11c
test eax, eax
push esi
jne 0x444855
lea eax, [esp + 0x1c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4448b2
jmp 0x444875
mov esi, dword [esp + 0x128]
push esi
call dword [0x5a448c]
add esp, 4
test eax, eax
je 0x4448b2
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 0x4448b2
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, 0xa
call fcn.0044eb60
pop esi
add esp, 0x11c
ret
or eax, 0xffffffff
pop esi
add esp, 0x11c
ret
Function at 0x4448c0
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 0x444940
push edi
call dword [0x5a448c]
add esp, 4
test eax, eax
jbe 0x444940
test esi, esi
je 0x4448fe
cmp esi, 0xffffffff
je 0x4448fe
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 0x444982
mov eax, dword [esp + 0x15c]
test eax, eax
je 0x44492c
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
je 0x444940
jmp 0x44493b
mov edx, dword [esp + 0x158]
mov eax, dword [esp + 0x10]
test edx, eax
je 0x444940
mov ebp, 1
test esi, esi
je 0x444982
cmp esi, 0xffffffff
je 0x444982
test ebp, ebp
jne 0x4449b9
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 0x44498f
call edi
test eax, eax
je 0x444982
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
jne 0x4449b9
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x44496a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x140
ret
call edi
test eax, eax
je 0x444982
mov ebx, dword [esp + 0x158]
test dword [esp + 0x10], ebx
jne 0x4449b9
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
test eax, eax
jne 0x44499c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
lea edx, [esp + 0x3c]
push edx
call dword [0x5a448c]
inc eax
push eax
call fcn.00441d00
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 0x444a20
Capabilities:
Get file attributes

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

Function at 0x445100
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 0x445192
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x445184
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 0x44517c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x445145
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 0x445320
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 0x445389
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.00441d00
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 0x446f7b
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 0x446fa7
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0044cec6
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 0x446fb8
push ebx
call fcn.0044cec0
add esp, 4
pop eax
mov dword [ebp - 4], eax
test eax, eax
je 0x447020
mov ecx, dword [eax + 4]
mov ebx, dword [ebp + 0xc]
test ecx, ecx
je 0x447020
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 0x447001
add esp, ebx
xor dword [ebx], edx
add ebx, 4
cmp esp, ebx
jne 0x446ff8
test ecx, ecx
je 0x447020
xor byte [ebx], dl
test ecx, 2
je 0x447020
xor byte [ebx + 1], dh
test ecx, 1
je 0x447020
shr edx, 0x10
xor byte [ebx + 2], dl
leave
ret 8

Function at 0x44705b
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.0044d710
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4470a7
push ebx
call fcn.0044cec0
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 0x4470e1
push 0x4f
push 0x402e875
push 6
call fcn.0044cecc
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4470f8
mov eax, 0
jmp 0x447151
push 0x80000301
push 0
push dword [ebp - 8]
push 0x80000004
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x447115
mov eax, 0x5a47aa
push eax
push 2
mov ebx, 0x134
call fcn.0044d750
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 0x447141
push ebx
call fcn.0044cec0
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov eax, 1
jmp 0x447151
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x447162
push ebx
call fcn.0044cec0
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x44b8ea
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 0x44b91f
cmp dword [ebp - 4], 0xc35e
je 0x44b91f
jmp 0x44b922
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x44b904
cmp dword [ebp - 4], 0xc25e
jne 0x44b9c2
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 0x44b975
push 0x1c8
push 0x40100a7
push 6
call fcn.0044cecc
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 0x44b9c2
push 0x261
push 0x40100a7
push 6
call fcn.0044cecc
add esp, 0xc
mov esp, ebp
pop ebp
ret 4

Function at 0x44e380
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x46d048
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x5a6758]
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 0x5a5238
push edx
call fcn.00467404
mov esi, dword [esp + 0x34]
add esp, 0xc
test esi, esi
jne 0x44e3f8
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
add eax, 0xfffffffe
cmp eax, 3
ja case.default.0x44e3f1
jmp dword [eax*4 + 0x44e47c]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, esi
jne case.default.0x44e3f1
push 3
call fcn.0044f07c
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 0x44e3bf
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.004681d0
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 0x459de5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5a5940]
jne 0x459def
repz ret
jmp fcn.00460276
Function at 0x45ac9b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5a5940]
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.004516f3
and dword [ebp - 0x14], 0
cmp dword [0x5c33dc], 0
mov dword [ebp - 0x18], eax
jne 0x45ad4e
push 0x4734a8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x45adf6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x47349c
push ebx
call edi
test eax, eax
je 0x45adf6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x47348c
push ebx
mov dword [0x5c33dc], eax
call edi
push eax
call esi
push 0x473478
push ebx
mov dword [0x5c33e0], eax
call edi
push eax
call esi
push 0x47345c
push ebx
mov dword [0x5c33e4], eax
call edi
push eax
call esi
mov dword [0x5c33ec], eax
test eax, eax
je 0x45ad4e
push 0x473444
push ebx
call edi
push eax
call esi
mov dword [0x5c33e8], eax
mov eax, dword [0x5c33e8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x45ada7
cmp dword [0x5c33ec], ecx
je 0x45ada7
push eax
call esi
push dword [0x5c33ec]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x45ada7
test ebx, ebx
je 0x45ada7
call edi
test eax, eax
je 0x45ad9e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x45ad9e
test byte [ebp - 8], 1
jne 0x45ada7
or dword [ebp + 0x10], 0x200000
jmp 0x45adda
mov eax, dword [0x5c33e0]
cmp eax, dword [ebp - 0x18]
je 0x45adda
push eax
call esi
test eax, eax
je 0x45adda
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x45adda
mov eax, dword [0x5c33e4]
cmp eax, dword [ebp - 0x18]
je 0x45adda
push eax
call esi
test eax, eax
je 0x45adda
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5c33dc]
call esi
test eax, eax
je 0x45adf6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x45adf8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00459de5
leave
ret
Function at 0x4649a3
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x46d3d6
call fcn.0046020b
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x44], ebx
je 0x464a9a
cmp byte [esi + 0x4a], bl
je 0x464a9a
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 0xc]
movzx eax, ax
cmp di, ax
jne 0x4649df
xor al, al
jmp 0x464a9c
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.00464769
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x464a3d
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 0x464a42
dec eax
je 0x464a46
dec eax
dec eax
je 0x464a96
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00463cd9
mov al, bl
jmp 0x464a9c
mov edx, dword [ebp - 0x2c]
jmp 0x464a08
mov byte [esi + 0x4a], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x464a52
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x464a78
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x464a65
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.0044f73e
add esp, 0x10
cmp edi, eax
jne 0x464a2b
cmp byte [esi + 0x4a], 0
je 0x464a96
test edi, edi
jne 0x4649fa
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.004646bb
jmp 0x4649fa
mov bl, 1
jmp 0x464a2d
mov al, 1
call fcn.00460255
ret
Function at 0x464aa2
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x46d3a9
call fcn.0046020b
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x464ac4
xor eax, eax
jmp 0x464c37
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor ebx, ebx
cmp ecx, ebx
je 0x464af2
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x464af2
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 2]
mov dword [esi], ecx
mov word [eax], di
mov ax, di
jmp 0x464c37
cmp dword [esi + 0x54], ebx
je 0x464c32
mov ecx, esi
call fcn.00463abd
cmp dword [esi + 0x44], ebx
jne 0x464b22
push dword [esi + 0x54]
push edi
call fcn.00463f5d
pop ecx
test al, al
pop ecx
movzx eax, di
jne 0x464c37
jmp 0x464c32
movzx eax, di
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00464769
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x464bdf
lea eax, [ebp - 0x2c]
mov edx, eax
add eax, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push eax
push edx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2e]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x14]
xor ebx, ebx
inc ebx
test eax, eax
js 0x464c27
cmp eax, ebx
jg 0x464be7
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x464b91
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x34]
sub edi, eax
je 0x464bb6
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x464ba4
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push ebx
push eax
call fcn.0044f73e
add esp, 0x10
cmp edi, eax
jne 0x464c27
lea eax, [ebp - 0x30]
mov byte [esi + 0x4a], bl
cmp dword [ebp - 0x38], eax
jne 0x464c16
test edi, edi
jne 0x464b43
cmp dword [ebp - 0x1c], 0x20
push edi
lea ecx, [ebp - 0x2c]
jae 0x464c2c
push 8
call fcn.004646bb
jmp 0x464b43
mov edx, dword [ebp - 0x2c]
jmp 0x464b55
cmp eax, 3
jne 0x464c27
push dword [esi + 0x54]
push dword [ebp - 0x30]
call fcn.00463f5d
movzx esi, word [ebp + 8]
pop ecx
pop ecx
test al, al
jne 0x464c06
mov esi, 0xffff
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00463cd9
mov ax, si
jmp 0x464c37
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00463cd9
mov ax, word [ebp + 8]
jmp 0x464c37
push 0
lea ecx, [ebp - 0x2c]
push ebx
call fcn.00463cd9
mov eax, 0xffff
call fcn.00460255
ret 4
Function at 0x4010b0
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x403004]
xor eax, ebp
mov dword [ebp - 4], eax
movaps xmm0, xmmword [str.GetModuleHandleANtQueryInformatiGetCurrentProcesTerminateProcess]
movups xmmword [ebp - 0x4c], xmm0
push ebx
movaps xmm0, xmmword [0x402130]
movups xmmword [ebp - 0x60], xmm0
push esi
movaps xmm0, xmmword [0x402120]
push edi
mov dword [ebp - 0x14], 0x64616f4c
mov dword [ebp - 0x10], 0x7262694c
mov dword [ebp - 0xc], 0x41797261
mov byte [ebp - 8], 0
mov byte [ebp - 0x3c], 0
mov byte [ebp - 0x50], 0
movups xmmword [ebp - 0x38], xmm0
mov word [ebp - 0x28], 0x73
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x68], eax
mov esi, dword [ebp - 0x68]
mov edx, dword [esi]
cmp edx, esi
je 0x40114b
nop dword [eax]
nop word [eax + eax]
movzx ecx, word [edx + 0x14]
mov eax, dword [edx + 0x18]
cmp dword [eax + ecx - 0xc], 0x320033
je 0x4011e6
mov edx, dword [edx]
cmp edx, esi
jne 0x401130
xor esi, esi
mov eax, dword [esi + 0x3c]
xor edx, edx
cmp dword [eax + esi + 0x7c], edx
je 0x4011fd
mov eax, dword [eax + esi + 0x78]
test eax, eax
je 0x4011fd
mov ecx, dword [eax + esi + 0x24]
mov ebx, dword [eax + esi + 0x20]
add ecx, esi
mov edi, dword [eax + esi + 0x18]
add ebx, esi
mov dword [ebp - 0x6c], ecx
mov ecx, dword [eax + esi + 0x1c]
add ecx, esi
mov dword [ebp - 0x64], ecx
xor ecx, ecx
dec edi
mov eax, dword [ebx + ecx*4]
add eax, esi
cmp byte [eax], 0x47
jne 0x4011df
cmp byte [eax + 1], 0x65
jne 0x4011df
cmp byte [eax + 2], 0x74
jne 0x4011df
cmp byte [eax + 3], 0x50
jne 0x4011df
cmp byte [eax + 4], 0x72
jne 0x4011df
cmp byte [eax + 5], 0x6f
jne 0x4011df
cmp byte [eax + 6], 0x63
jne 0x4011df
cmp byte [eax + 7], 0x41
jne 0x4011df
cmp byte [eax + 8], 0x64
jne 0x4011df
cmp byte [eax + 9], 0x64
jne 0x4011df
cmp byte [eax + 0xa], 0x72
jne 0x4011df
cmp byte [eax + 0xb], 0x65
jne 0x4011df
cmp byte [eax + 0xc], 0x73
jne 0x4011df
cmp byte [eax + 0xd], 0x73
je 0x4011ee
inc ecx
cmp ecx, edi
jbe 0x401187
jmp 0x4011fd
mov esi, dword [edx + 8]
jmp 0x40114d
mov eax, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x64]
movzx eax, word [eax + ecx*2]
mov edx, dword [edx + eax*4]
add edx, esi
lea eax, [ebp - 0x14]
mov dword [0x403384], edx
push eax
push esi
call edx
lea eax, [ebp - 0x4c]
push eax
push esi
call dword [0x403384]
mov dword [0x403380], eax
lea eax, [ebp - 0x60]
push eax
push esi
call dword [0x403384]
mov dword [0x403388], eax
lea eax, [ebp - 0x38]
push eax
push esi
call dword [0x403384]
mov dword [0x40337c], eax
lea eax, [ebp - 0x24]
push eax
push esi
mov dword [ebp - 0x24], 0x61657243
mov dword [ebp - 0x20], 0x68546574
mov dword [ebp - 0x1c], 0x64616572
mov byte [ebp - 0x18], 0
call dword [0x403384]
mov dword [ebp - 0x64], eax
push 0
nop
push 0
nop
push 0
nop
push section..text
nop
push 0
nop
push 0
call dword [ebp - 0x64]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0040128e
mov esp, ebp
pop ebp
ret
Function at 0x401a99
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401ad8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401ad8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401ad8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401ad8
cmp dword [ecx + 0x74], 0xe
jbe 0x401ad8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret