joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405cf0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
push ebx
push esi
push edi
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [esp + 0x10]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405d30
mov ecx, dword [str.Fonts_]
mov edx, dword [0x4266ac]
mov ebx, dword [ebp + 8]
mov dword [edi], ecx
mov eax, ebx
mov dword [edi + 4], edx
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405d50
lea edi, [esp + 0x10]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405d60
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405d80
mov esi, dword [str..ttf]
mov al, byte [0x4266a4]
mov dword [edi], esi
mov byte [edi + 4], al
xor eax, eax
mov byte [esp + 0x118], 0
mov ecx, 0x40
lea edi, [esp + 0x119]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x118]
stosb byte es:[edi], al
mov eax, ebx
sub edx, ebx
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x405dc0
lea edi, [esp + 0x118]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405dd2
mov cl, byte [0x4266a4]
lea edx, [esp + 0x118]
mov dword [edi], esi
push edx
mov byte [edi + 4], cl
call dword [sym.imp.GDI32.dll_RemoveFontResourceA]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406540
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x424740
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
push edi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
je 0x4065e8
push str.DllRegisterServer
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
neg esi
sbb esi, esi
push ebp
neg esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
je 0x4065e8
call fcn.0041df45
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
push edi
lea eax, [esp + 0x10]
push str.Regsvr32.exe__s__s
push eax
mov byte [esp + 0x24], 1
call fcn.00402050
mov esi, dword [esp + 0x18]
add esp, 0xc
push 5
push esi
call dword [sym.imp.KERNEL32.dll_WinExec]
lea eax, [esi - 0x10]
mov byte [esp + 0x18], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4065e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40660a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x406900
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x424790
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionFonts
lea ecx, [esp + 0x18]
call fcn.00402560
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov esi, dword [esp + 0x28]
push esi
lea ecx, [esp + 0xc]
call fcn.00402560
push str..ttf
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
mov ebx, 1
push ecx
mov byte [esp + 0x2c], bl
call fcn.004053f0
add esp, 0xc
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 2
call fcn.004016b0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x20], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406995
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406a4e
push esi
lea ecx, [esp + 0x10]
call fcn.00402560
push 0xb
push str.__TrueType_
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 3
call fcn.00403f50
mov eax, dword [esp + 8]
cmp dword [eax - 4], ebx
mov esi, dword [eax - 0xc]
jle 0x4069f4
mov edx, esi
push edx
lea ecx, [esp + 0xc]
call fcn.00401270
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
push esi
push eax
mov eax, dword [esp + 0x14]
push ebx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x406a21
push 0
push str.reg_font_error
push str.cant_write_reg
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x20], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406a4e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.GDI32.dll_AddFontResourceA]
push 0
push 0
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov byte [esp + 0x20], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop esi
pop ebx
jg 0x406a8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406ab5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x408970
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x40897b
xor eax, eax
ret
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
cmp edi, 8
not esi
jb 0x408a73
mov ebp, edi
shr ebp, 3
xor edx, edx
mov dl, byte [ecx]
mov eax, esi
shr eax, 8
sub edi, 8
xor edx, esi
and edx, 0xff
mov esi, dword [edx*4 + 0x427d50]
xor edx, edx
mov dl, byte [ecx + 1]
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x427d50]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x427d50]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x427d50]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x427d50]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x427d50]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x427d50]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x427d50]
shr eax, 8
xor eax, esi
inc ecx
dec ebp
mov esi, eax
jne 0x408996
test edi, edi
je 0x408a92
xor eax, eax
mov al, byte [ecx]
xor eax, esi
and eax, 0xff
mov ebp, dword [eax*4 + 0x427d50]
shr esi, 8
xor esi, ebp
inc ecx
dec edi
jne 0x408a77
pop edi
mov eax, esi
pop esi
not eax
pop ebp
ret

Function at 0x408aa0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
mov ecx, dword [edx]
xor eax, eax
mov al, byte [esp + 8]
push esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x427d50]
shr ecx, 8
xor eax, ecx
mov ecx, dword [edx + 4]
mov dword [edx], eax
and eax, 0xff
add eax, ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
mov esi, dword [eax*4 + 0x427d50]
shr ecx, 8
xor ecx, esi
mov dword [edx + 8], ecx
pop esi
ret

Function at 0x408b00
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
mov esi, dword [esp + 8]
mov edx, dword [esi + 8]
mov eax, edx
and eax, 0xfffd
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
mov al, byte [esp + 0xc]
shr ecx, 8
xor al, cl
xor ecx, ecx
push edi
mov edi, dword [esi]
mov cl, al
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x427d50]
shr edi, 8
xor ecx, edi
mov edi, dword [esi + 4]
mov dword [esi], ecx
and ecx, 0xff
add ecx, edi
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 4], ecx
shr ecx, 0x18
xor ecx, edx
and ecx, 0xff
mov edi, dword [ecx*4 + 0x427d50]
shr edx, 8
xor edx, edi
pop edi
mov dword [esi + 8], edx
pop esi
ret
Function at 0x408f90
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
mov cl, byte [ebx]
push ebp
mov ebp, dword [esp + 0x10]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x408fd1
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408fc6
mov byte [ebx + 8], 1
mov eax, dword [esp + 0x10]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
push esi
lea esi, [edx + eax]
cmp esi, ecx
push edi
jbe 0x408fe4
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x14]
mov edi, dword [esp + 0x14]
add esi, edx
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x1c]
pop edi
add ecx, eax
pop esi
xor edx, edx
div ebp
pop ebp
mov dword [ebx + 0x1c], ecx
pop ebx
ret

Function at 0x40a040
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov al, byte [esi]
test al, al
push edi
je 0x40a0fc
mov ebx, esi
mov ecx, esi
cmp al, 0x2f
je 0x40a068
cmp al, 0x5c
jne 0x40a06a
mov ebx, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x40a060
cmp ebx, esi
mov eax, ebx
je 0x40a0a9
sub eax, esi
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 8]
mov byte [esp + eax + 0x10], 0
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0040a040
add esp, 8
lea eax, [ebx + 1]
jmp 0x40a0ac
mov edi, dword [ebp + 8]
lea esi, [esp + 0x118]
mov ecx, edi
sub esi, edi
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x40a0b7
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a0c3
lea edi, [esp + 0x118]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40a0d4
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea ecx, [esp + 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ba70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
cmp edi, ebx
je 0x40ba84
cmp dword [edi + 0x18], ebx
jne 0x40ba8f
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x7c], ebx
je 0x40ba9d
push edi
call fcn.004099e0
add esp, 4
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push edi
call fcn.004097e0
add esp, 0x10
test eax, eax
je 0x40bac4
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 8
ret
push esi
push 0x84
call fcn.0040f29d
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x40bb05
push 0x4000
call fcn.0040f29d
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add esp, 4
cmp eax, ebx
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
jne 0x40bb11
push esi
call fcn.0040f2af
add esp, 4
pop esi
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 8
ret
mov dword [esi + 0x40], ebx
mov edx, dword [edi + 0x34]
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp edx, ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x40bb5f
lea eax, [esi + 4]
push eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00408d80
add esp, 4
test eax, eax
jne 0x40bb5f
mov dword [esi + 0x40], 1
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0x44]
mov dword [esi + 0x5c], edx
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov ecx, dword [edi + 0x30]
shr ecx, 3
test cl, 1
je 0x40bb89
mov dl, byte [edi + 0x39]
mov byte [esi + 0x80], dl
jmp 0x40bb92
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
mov cl, byte [esi + 0x6c]
neg cl
push ebp
mov ebp, dword [esp + 0x20]
lea ebx, [esi + 0x70]
mov dword [ebx], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
sbb ecx, ecx
and ecx, 0xc
test ebp, ebp
mov dword [esi + 0x7c], ecx
je 0x40bbd6
nop
xor eax, eax
mov al, byte [ebp]
test al, al
je 0x40bbd6
push eax
push ebx
call fcn.00408aa0
add esp, 8
inc ebp
jne 0x40bbc0
mov edx, dword [edi + 0x78]
mov eax, dword [esp + 0x14]
lea ecx, [edx + eax + 0x1e]
pop ebp
mov dword [esi + 0x3c], ecx
mov dword [esi + 8], 0
mov dword [edi + 0x7c], esi
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x40be80
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx], 0
jne 0x40bf4f
cmp dword [ebx + 4], 0xffffffff
jne 0x40bf4f
push edi
lea edi, [ebx + 0x13c]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40beb0
sub eax, edx
mov al, byte [eax + ebx + 0x13b]
cmp al, 0x5c
je 0x40bee1
cmp al, 0x2f
je 0x40bee1
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40bed0
mov ax, word [0x426504]
mov word [edi], ax
mov edi, dword [esp + 0x14]
cmp edi, 1
push esi
mov esi, dword [esp + 0x10]
jne 0x40bf0c
push 1
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40bf0c
pop esi
pop edi
mov eax, 0x2000000
pop ebx
ret 0xc
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edi
push edx
push esi
call fcn.00408e40
add esp, 0x10
test eax, eax
jne 0x40bf2e
mov eax, dword [esp + 0x18]
pop esi
pop edi
pop ebx
ret 0xc
push eax
call fcn.0040b870
add esp, 4
xor ecx, ecx
test eax, eax
setne cl
pop esi
mov dword [ebx], eax
pop edi
pop ebx
dec ecx
and ecx, 0x200
mov eax, ecx
ret 0xc
mov eax, 0x1000000
pop ebx
ret 0xc
Function at 0x40c840
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
push esi
lea eax, [esp + 4]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40c8a8
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov edx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40c893
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret

Function at 0x40cb60
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
test ebx, ebx
je 0x40ccd9
cmp byte [ebx], 0
je 0x40ccd9
mov ecx, dword [esp + 0x218]
test ecx, ecx
mov eax, str.open
je 0x40cb94
mov eax, 0x4284dc
push ebp
mov ebp, dword [esp + 0x218]
push esi
push ebp
push 0
push 0
push ebx
push eax
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40cccd
lea eax, [esp + 0xc]
push eax
push str..htm
push 0x80000000
call fcn.0040c840
add esp, 0xc
test eax, eax
jne 0x40cccd
push edi
lea edi, [esp + 0x10]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40cbe0
mov ecx, dword [str._shellopencommand]
mov edx, dword [0x4284c4]
mov eax, dword [0x4284c8]
mov dword [edi], ecx
mov ecx, dword [0x4284cc]
mov dword [edi + 4], edx
mov edx, dword [0x4284d0]
mov dword [edi + 8], eax
lea eax, [esp + 0x10]
mov dword [edi + 0xc], ecx
push eax
mov ecx, eax
push ecx
push 0x80000000
mov dword [edi + 0x10], edx
call fcn.0040c840
add esp, 0xc
test eax, eax
jne 0x40cccc
lea edx, [esp + 0x10]
push str.__1_
push edx
call fcn.0040f698
add esp, 8
test eax, eax
jne 0x40cc72
lea eax, [esp + 0x10]
push 0x4284b4
push eax
call fcn.0040f698
add esp, 8
test eax, eax
jne 0x40cc72
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40cc63
sub eax, edx
lea eax, [esp + eax + 0xf]
jmp 0x40cc75
mov byte [eax], 0
mov edi, eax
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40cc78
mov cx, word [0x4284b0]
mov word [edi], cx
mov ecx, ebx
mov esi, ebx
mov edi, edi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40cc90
sub ecx, esi
mov edx, ecx
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40cca0
mov ecx, edx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [0x4300b0]
push ebp
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
mov eax, 0x24
pop ebx
add esp, 0x208
ret
Function at 0x40d2e0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4249a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x8c]
test eax, eax
jne 0x40d406
push ebx
call fcn.00423063
mov ebx, dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f89
push 0
call ebx
test eax, eax
mov dword [ebp + 0x8c], eax
jne 0x40d405
push esi
call fcn.0041df45
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0x104
or eax, ecx
mov dword [esp + 0x18], 0
jge 0x40d36e
push 0x104
lea ecx, [esp + 0x10]
call fcn.004013f0
mov esi, dword [esp + 0xc]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test esi, esi
jne 0x40d382
xor eax, eax
jmp 0x40d396
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d387
sub eax, edx
js 0x40d416
cmp eax, dword [esi - 8]
jg 0x40d416
push edi
push 0xd
mov dword [esi - 0xc], eax
push str.winhlp32.exe
lea ecx, [esp + 0x18]
mov byte [eax + esi], 0
call fcn.00403f50
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40d3e1
push 0x6a
push esi
call ebx
test eax, eax
je 0x40d3da
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [ebp + 0x8c], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
jg 0x40d404
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop esi
pop ebx
mov ecx, dword [esp + 8]
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret
push 0x80070057
call fcn.004010d0
int3

Function at 0x40ef5d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40ef7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041116d
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40efa0
test byte [esp + 8], 2
je 0x40efa0
call fcn.0041115b
mov dword [eax], 0xd
call fcn.00411164
mov dword [eax], 5
jmp 0x40ef79
xor eax, eax
ret
Function at 0x40f320
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040f510
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40f3bb
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4339a0]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40f3bb
cmp eax, 1
je 0x40f3dc
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40f3bb
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40f388
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40f3b7
xor eax, eax
inc eax
jmp 0x40f3fb
cmp edi, eax
jae 0x40f3bf
xor eax, eax
jmp 0x40f3fb
cmp eax, esi
jae 0x40f3c6
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4339a0]
jmp 0x40f3df
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40fc8d
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x42a408
call fcn.00410898
mov edi, 0x94
mov eax, edi
call fcn.0040f510
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4339a0], ecx
mov eax, dword [esi + 4]
mov dword [0x4339ac], eax
mov edx, dword [esi + 8]
mov dword [0x4339b0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4339a4], esi
cmp ecx, 2
je 0x40fced
or esi, 0x8000
mov dword [0x4339a4], esi
shl eax, 8
add eax, edx
mov dword [0x4339a8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40fd28
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40fd28
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40fd40
cmp eax, 0x20b
je 0x40fd2d
mov dword [ebp - 0x1c], esi
jmp 0x40fd54
cmp dword [ecx + 0x84], 0xe
jbe 0x40fd28
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40fd4e
cmp dword [ecx + 0x74], 0xe
jbe 0x40fd28
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0041294b
pop ecx
test eax, eax
jne 0x40fd68
push 0x1c
call fcn.0040fc69
pop ecx
call fcn.00411c68
test eax, eax
jne 0x40fd79
push 0x10
call fcn.0040fc69
pop ecx
call fcn.0041497a
mov dword [ebp - 4], esi
call fcn.0041477c
test eax, eax
jge 0x40fd92
push 0x1b
call fcn.0040fc44
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x435270], eax
call fcn.0041465a
mov dword [0x43398c], eax
call fcn.004145b8
test eax, eax
jge 0x40fdb8
push 8
call fcn.0040fc44
pop ecx
call fcn.00414385
test eax, eax
jge 0x40fdc9
push 9
call fcn.0040fc44
pop ecx
push 1
call fcn.00410700
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40fddf
push eax
call fcn.0040fc44
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00414328
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40fe00
movzx eax, word [ebp - 0x40]
jmp 0x40fe03
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0041942c
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40fe21
push edi
call fcn.0041082d
call fcn.0041084f
jmp 0x40fe53
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004108d3
ret