joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004f2af
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1004f2f0
lea eax, [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x1004f2e6
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1004f2e4
push 0x18c8
call dword [sym.imp.USER32.dll_GetKeyboardType]
jmp 0x1004f2ee
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1004f358
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x1004f32e
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
test eax, eax
je 0x1004f32c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommState]
jmp 0x1004f358
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
test eax, eax
je 0x1004f358
push 0
push 0x23f1
push 0x2792
call fcn.1004e6e4
add esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0x10050cb9
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10050d74
lea eax, [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x10050d27
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x10050d25
push 0x24c2
push 0x1ea7
push 1
push 0x65a
push 0x3dbf
push 1
push 1
call fcn.1004e8e7
add esp, 0x1c
jmp 0x10050d72
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x10050d55
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 1
jge 0x10050d72
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x28]
call fcn.1002106f
mov dword [eax], 6
jmp 0x10050d4a
jmp 0x10050d9a
lea eax, [ebp + 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax]
test eax, eax
je 0x10050d94
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
jmp 0x10050d9a
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esp, ebp
pop ebp
ret
Function at 0x1006e085
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10077748]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1005eaf8
mov dword [ebp - 0x14], eax
cmp dword [0x1061b1b4], esi
jne 0x1006e178
push 0x800
push esi
push 0x10007668
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1006e105
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1006e258
push esi
push esi
push 0x10007668
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1006e258
push 0x10007680
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1006e258
push eax
call ebx
push 0x1000768c
push edi
mov dword [0x1061b1b4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x1000769c
push edi
mov dword [0x1061b1b8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100076b0
push edi
mov dword [0x1061b1bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1061b1c4], eax
test eax, eax
je 0x1006e175
push 0x100076cc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1061b1c0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1006e19d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1006e190
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1006e1b2
push 4
pop eax
jmp 0x1006e25a
cmp dword [ebp - 0x14], esi
je 0x1006e1b2
push dword [0x1061b1b4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1006e197
mov eax, dword [0x1061b1c0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1006e210
cmp dword [0x1061b1c4], edi
je 0x1006e210
push eax
call ebx
push dword [0x1061b1c4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1006e210
test eax, eax
je 0x1006e210
call ecx
test eax, eax
je 0x1006e205
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1006e205
test byte [ebp - 8], 1
jne 0x1006e210
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1006e240
mov eax, dword [0x1061b1b8]
cmp eax, edi
je 0x1006e23d
push eax
call ebx
test eax, eax
je 0x1006e23d
call eax
mov esi, eax
test esi, esi
je 0x1006e23d
mov eax, dword [0x1061b1bc]
cmp eax, edi
je 0x1006e23d
push eax
call ebx
test eax, eax
je 0x1006e23d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1061b1b4]
call ebx
test eax, eax
je 0x1006e258
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1006e25a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005bb6a
mov esp, ebp
pop ebp
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x40890f
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x4085d8
push ebx
pop ebx
call fcn.00408935
xor dword [eax], esi
add eax, 1
add edx, 0x28d24503
cmp eax, ecx
jne fcn.0040890f
ret
Function at 0x5e8b9a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
pushal
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
test eax, eax
je 0x5e8c38
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x5e8c38
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
cmp word [eax], 0x5a4d
jne 0x5e8c38
mov ebx, dword [eax + 0x3c]
add eax, ebx
cmp dword [eax], 0x4550
jne 0x5e8c38
mov ebx, dword [eax + 0x34]
mov dword [ebp - 0xc], ebx
mov ebx, dword [eax + 0x50]
mov dword [ebp - 8], ebx
push edi
push 4
push 0x2000
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [edi + 0x122d1cc1]
pop edi
test eax, eax
jne 0x5e8c2b
push edi
push 4
push 0x2000
push dword [ebp - 8]
push 0
call dword [edi + 0x122d1cc1]
pop edi
test eax, eax
je 0x5e8c38
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x14], eax
mov dword [ebp - 0x10], 1
popal
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x5e8cbd
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
pushal
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x14]
mov dword [ebp - 8], ebx
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov ebx, dword [eax + 0x3c]
add eax, ebx
lea ebx, [eax + 0x18]
movzx ecx, word [eax + 0x14]
add ebx, ecx
movzx ecx, word [eax + 6]
test ecx, ecx
je 0x5e8d69
push ecx
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0x10]
cmp ecx, edx
jae 0x5e8cfe
mov ecx, edx
mov dword [ebp - 4], ecx
mov eax, dword [ebx + 0xc]
add eax, dword [ebp - 8]
push ecx
push edi
push 4
push 0x1000
push dword [ebp - 4]
push eax
call dword [edi + 0x122d1cc1]
pop edi
pop ecx
test eax, eax
je 0x5e8d5c
push edi
mov edi, eax
xor eax, eax
push ecx
push edi
rep stosb byte es:[edi], al
pop edi
pop ecx
mov edx, dword [ebx + 0x10]
cmp ecx, edx
jl 0x5e8d3c
mov ecx, edx
mov esi, dword [ebx + 0x14]
add esi, dword [ebp - 0xc]
lea eax, [ebx + 0x10]
cmp dword [eax + 4], 0
je 0x5e8d51
rep movsb byte es:[edi], byte [esi]
pop edi
add ebx, 0x28
pop ecx
dec ecx
jmp 0x5e8ce5
pop ecx
mov dword [ebp - 0x10], 0
jmp 0x5e8d70
mov dword [ebp - 0x10], 1
popal
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x5e8f8a
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x14], eax
mov ebx, dword [eax + 0x3c]
add eax, ebx
lea ebx, [eax + 0x18]
movzx ecx, word [eax + 0x14]
add ebx, ecx
movzx ecx, word [eax + 6]
test ecx, ecx
je 0x5e9004
push ecx
mov ecx, dword [ebx + 0xc]
add ecx, dword [ebp - 0x14]
mov edx, dword [ebx + 0x24]
push edx
call fcn.005e8f2f
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [edi + 0x122d1d89]
pop edi
test eax, eax
jne 0x5e8ffa
pop ecx
jmp 0x5e900b
add ebx, 0x28
pop ecx
dec ecx
jmp 0x5e8fb3
mov dword [ebp - 0x18], 1
popal
mov eax, dword [ebp - 0x18]
leave
ret 4
Function at 0x5e91b1
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 0x18], 0
jne 0x5e9305
cmp dword [ebp + 0xc], 0
jne 0x5e9305
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [eax + 8]
cmp eax, 0xffffffff
je 0x5e91f8
sub eax, dword [ebp + 0x10]
js 0x5e9305
je 0x5e9305
cmp eax, dword [ebp + 0x14]
jl 0x5e9305
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
cmp word [eax], 0x5a4d
jne 0x5e9305
mov ebx, dword [eax + 0x3c]
add eax, ebx
cmp dword [eax], 0x4550
jne 0x5e9305
mov ebx, dword [eax + 0x50]
push edi
push 4
push 0x1000
push ebx
push 0
call dword [edi + 0x122d1cc1]
pop edi
test eax, eax
je 0x5e9305
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x14], ebx
pop ebx
lea eax, [ebp - 0x18]
push edi
push eax
lea eax, [edi + 0x124ad568]
push eax
call fcn.005e8219
pop edi
test eax, eax
je 0x5e9305
lea eax, [ebp - 0x18]
push edi
push eax
lea eax, [edi + 0x124ad56c]
push eax
call fcn.005e8219
pop edi
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov ebx, dword [eax + 0x3c]
add eax, ebx
mov eax, dword [eax + 0x54]
mov dword [ebp - 0xc], eax
push edi
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0x1c]
mov esi, dword [esi + 4]
rep movsb byte es:[edi], byte [esi]
pop edi
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
mov ebx, dword [eax + 0x3c]
add eax, ebx
lea ebx, [eax + 0x18]
movzx ecx, word [eax + 0x14]
add ebx, ecx
movzx ecx, word [eax + 6]
test ecx, ecx
je 0x5e92f8
push ecx
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
add eax, dword [ebp - 8]
test eax, eax
je 0x5e9305
push edi
mov edi, eax
xor eax, eax
push ecx
push edi
rep stosb byte es:[edi], al
pop edi
pop ecx
mov edx, dword [ebx + 0x10]
cmp ecx, edx
jl 0x5e92e5
mov ecx, edx
mov esi, dword [ebx + 0x14]
add esi, dword [ebp - 4]
rep movsb byte es:[edi], byte [esi]
pop edi
add ebx, 0x28
pop ecx
dec ecx
jmp 0x5e92b3
push dword [ebp + 8]
call fcn.005ea0a7
jmp 0x5e930c
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
leave
ret 0x14
Function at 0x5e9697
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
pushal
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x5e9786
mov ecx, eax
mov ebx, dword [ecx + 0x3c]
add ecx, ebx
mov ecx, dword [ecx + 0x7c]
test ecx, ecx
je 0x5e9786
mov dword [ebp - 4], ecx
mov ebx, eax
mov ecx, dword [ebx + 0x3c]
add ebx, ecx
mov ebx, dword [ebx + 0x78]
add ebx, eax
mov dword [ebp - 8], ebx
mov eax, dword [ebp + 0xc]
test eax, 0xffff0000
je 0x5e9732
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x5e9786
dec ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x20]
add eax, dword [ebp - 0xc]
push ecx
shl ecx, 2
add eax, ecx
mov eax, dword [eax]
add eax, dword [ebp - 0xc]
push edi
push dword [ebp + 0xc]
push eax
call dword [edi + 0x124ad6c8]
pop edi
pop ecx
test eax, eax
jne 0x5e96eb
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x24]
add eax, dword [ebp - 0xc]
shl ecx, 1
add eax, ecx
movzx ecx, word [eax]
jmp 0x5e9738
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebx + 0x10]
mov ebx, dword [ebp - 8]
mov eax, dword [ebx + 0x14]
cmp ecx, eax
jge 0x5e9786
mov eax, dword [ebp - 0xc]
mov edx, dword [ebx + 0x1c]
add edx, eax
shl ecx, 2
add edx, ecx
cmp dword [edx], 0
je 0x5e9786
mov ebx, dword [edx]
add eax, ebx
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 8]
jle 0x5e9786
sub eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jge 0x5e9786
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.005e95e0
mov dword [ebp - 0x10], eax
popal
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x4332d2
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
push ebx
push ebp
mov eax, edx
mov ebp, ecx
neg eax
mov dword [esp + 8], eax
test ebp, ebp
je 0x433376
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x433376
mov edx, dword [ebp]
mov ecx, ebx
inc edx
call fcn.0042ea1e
mov dword [esp + 0xc], eax
test eax, eax
jne 0x43337b
mov ecx, dword [ebp]
xor edx, edx
push esi
push edi
test ecx, ecx
jle 0x433336
mov edi, dword [ebx + 0xc]
mov ecx, ebp
call fcn.004332bc
mov ecx, ebx
mov esi, eax
call fcn.004332bc
xor esi, eax
and esi, dword [esp + 0x10]
xor dword [edi + edx*4], esi
inc edx
mov ecx, dword [ebp]
cmp edx, ecx
jl 0x433312
mov esi, dword [ebx]
cmp edx, esi
jge 0x433362
mov edi, dword [ebx + 0xc]
mov ecx, ebp
call fcn.004332bc
mov ecx, ebx
mov esi, eax
call fcn.004332bc
xor esi, eax
and esi, dword [esp + 0x10]
xor dword [edi + edx*4], esi
inc edx
mov esi, dword [ebx]
cmp edx, esi
jl 0x43333c
mov ecx, dword [ebp]
mov eax, esi
xor eax, ecx
and eax, dword [esp + 0x10]
xor eax, esi
pop edi
mov dword [ebx], eax
mov eax, dword [esp + 0x10]
pop esi
jmp 0x43337b
mov eax, 0xffffff53
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x44aded
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044ac6c

Function at 0x44e8a0
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044e20e

Function at 0x44e8ab
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044e449

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43201e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401038
Capabilities:
Get file size

Disassembly:
push esi
mov esi, ecx
call fcn.004010a3
xor eax, eax
push 0
cmp dword [esp + 0x14], eax
push 0x80
setne al
add eax, 3
xor ecx, ecx
push eax
mov eax, dword [esp + 0x18]
test eax, eax
sete cl
neg eax
sbb eax, eax
push 0
and eax, 0x40000000
push ecx
add eax, 0x80000000
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x401094
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 1
mov dword [esi + 8], eax
pop eax
jmp 0x40109f
push 0xc8
call fcn.00403494
pop ecx
pop esi
ret 0xc

Function at 0x4011b0
Capabilities:
Create directory

Disassembly:
mov eax, 0x408628
call fcn.004038d0
mov eax, 0x1018
call fcn.004038a0
push esi
push edi
lea ecx, [ebp - 0x18]
call fcn.00401000
xor esi, esi
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], esi
call fcn.00401000
cmp dword [ebp + 0x18], esi
mov byte [ebp - 4], 1
je 0x4011f8
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4011f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.00401038
test eax, eax
je 0x40129f
push 1
push 1
push dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
call fcn.00401038
test eax, eax
je 0x40129f
mov edi, dword [ebp + 0x14]
mov dword [ebp + 0x18], esi
cmp edi, esi
jne 0x401230
mov edi, dword [ebp - 0x10]
sub edi, dword [ebp + 0x10]
push dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
call fcn.00401187
push esi
lea ecx, [ebp - 0x24]
call fcn.00401187
cmp edi, esi
jbe 0x40129c
mov esi, edi
sub esi, dword [ebp + 0x18]
cmp esi, 0x1000
jbe 0x40125a
mov esi, 0x1000
lea eax, [ebp + 0x10]
lea ecx, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1024]
push esi
push eax
call fcn.004010bf
test eax, eax
je 0x4012c7
cmp dword [ebp + 0x10], esi
jne 0x4012c7
lea eax, [ebp + 0x10]
lea ecx, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1024]
push esi
push eax
call fcn.004010fb
test eax, eax
je 0x4012c7
cmp dword [ebp + 0x10], esi
jne 0x4012c7
add dword [ebp + 0x18], esi
cmp dword [ebp + 0x18], edi
jb 0x401248
push 1
pop esi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.0040102d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040102d
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
and byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.0040102d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040102d
xor eax, eax
jmp 0x4012b9
Function at 0x401322
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, 0x104
push edi
lea eax, [ebp - 0x104]
push esi
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x104]
lea eax, [edi + 0x5a0]
push esi
push ecx
push eax
call fcn.00403a20
mov ebx, str.VboxCommon_
push esi
lea eax, [edi + 0x5a0]
push ebx
push eax
call fcn.004038f0
lea eax, [edi + 0x5a0]
lea ecx, [edi + 0x6a4]
push esi
push eax
push ecx
call fcn.00403a20
push esi
lea eax, [edi + 0x6a4]
push str.VboxHelper.exe
push eax
call fcn.004038f0
lea ecx, [ebp - 0x104]
lea eax, [edi + 0x7a8]
push esi
push ecx
push eax
call fcn.00403a20
push esi
lea eax, [edi + 0x7a8]
push ebx
push eax
call fcn.004038f0
add esp, 0x48
lea eax, [edi + 0x7a8]
lea ecx, [edi + 0x8ac]
push esi
push eax
push ecx
call fcn.00403a20
push esi
lea eax, [edi + 0x8ac]
push str.VboxMIMEcheck.ocx
push eax
call fcn.004038f0
lea ecx, [ebp - 0x104]
lea eax, [edi + 0x9b0]
push esi
push ecx
push eax
call fcn.00403a20
push esi
push ebx
lea ebx, [edi + 0x9b0]
push ebx
call fcn.004038f0
lea eax, [edi + 0xab4]
push esi
push ebx
push eax
call fcn.00403a20
push esi
lea eax, [edi + 0xab4]
push str.VboxClient.exe
push eax
call fcn.004038f0
add esp, 0x48
lea eax, [ebp - 0x104]
lea ebx, [edi + 0xdc0]
push esi
push eax
push ebx
call fcn.00403a20
push esi
push str.VboxLicenses_
push ebx
call fcn.004038f0
push esi
lea eax, [edi + 0xec4]
push ebx
push eax
call fcn.00403a20
lea eax, [ebp - 0x104]
lea ebx, [edi + 0xbb8]
push esi
push eax
push ebx
call fcn.00403a20
push esi
push str.VboxData_
push ebx
call fcn.004038f0
push esi
lea eax, [edi + 0xcbc]
push ebx
push eax
call fcn.00403a20
add esp, 0x48
lea eax, [ebp - 0x104]
lea ebx, [edi + 0xfc8]
push esi
push eax
push ebx
call fcn.00403a20
push esi
push str.VboxCommonVbox.ini
push ebx
call fcn.004038f0
mov esi, dword [ebp + 8]
add esp, 0x18
test esi, esi
je 0x40151e
cmp byte [esi], 0
je 0x40151e
push str._REGISTERCOPY
push esi
call fcn.00408410
pop ecx
test eax, eax
pop ecx
jne 0x4014e1
push dword [ebp + 0xc]
lea ecx, [edi + 4]
call fcn.00402b28
test eax, eax
je 0x401510
mov ecx, edi
call fcn.00402014
push dword [ebp + 0xc]
mov ecx, edi
call fcn.0040160b
jmp 0x4014f9
push str._REGISTERONLY
push esi
call fcn.00408410
pop ecx
pop ecx
test eax, eax
mov ecx, edi
jne 0x4014fe
call fcn.00402014
push 1
pop eax
jmp 0x40153d
call fcn.00402014
push esi
lea ecx, [edi + 4]
call fcn.00402b28
test eax, eax
jne 0x401514
xor eax, eax
jmp 0x40153d
push esi
mov ecx, edi
call fcn.004016ab
jmp 0x401537
push dword [ebp + 0xc]
lea ecx, [edi + 4]
call fcn.00402b28
test eax, eax
je 0x401510
push dword [ebp + 0xc]
mov ecx, edi
call fcn.00401679
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
leave
ret 8