joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4051d6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x42c080], 0x44
push eax
xor eax, eax
push 0x42c080
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405211
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x40529b
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
call fcn.0040553d
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x4052d1
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42ec88], eax
jmp 0x405456
mov dword [ebp + 8], ecx
push edi
and dword [ebp + 8], 1
je 0x4052ec
test eax, eax
je 0x405401
test cl, 2
je 0x405401
mov esi, 0x42b080
push ebx
push esi
call fcn.00405969
cmp dword [ebp + 8], 0
je 0x40530b
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405311
push ebx
call fcn.004054a3
push 0x409010
push ebx
call sub.KERNEL32.dll_lstrcatA
push ebx
call sub.KERNEL32.dll_lstrlenA
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x4053f7
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405487
cmp byte [eax], 0
je 0x405362
cmp byte [ebp - 0x18], 0
je 0x405362
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405378
mov al, byte [esi + 1]
test al, al
je 0x4053d6
cmp al, 0x2e
jne 0x405378
cmp byte [esi + 2], 0
je 0x4053d6
push esi
push edi
call fcn.00405969
test byte [ebp - 0x148], 0x10
je 0x40539d
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4053d6
push dword [ebp + 0xc]
push ebx
call fcn.0040529b
jmp 0x4053d6
push ebx
call fcn.00405621
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4053ce
test byte [ebp + 0xc], 4
je 0x4053c6
push ebx
push 0xfffffffffffffff1
call fcn.00404d1d
push 0
push ebx
call fcn.004056b7
jmp 0x4053d6
inc dword [0x42ec88]
jmp 0x4053d6
push ebx
push 0xfffffffffffffff2
call fcn.00404d1d
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405340
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405401
and byte [edi - 1], 0
xor esi, esi
pop edi
cmp dword [ebp + 8], esi
je 0x405456
cmp dword [ebp - 8], esi
jne 0x405416
inc dword [0x42ec88]
jmp 0x405456
push ebx
call fcn.00405c11
test eax, eax
je 0x405456
push ebx
call fcn.0040545c
push ebx
call fcn.00405621
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40544e
test byte [ebp + 0xc], 4
je 0x40540e
push ebx
push 0xfffffffffffffff1
call fcn.00404d1d
push esi
push ebx
call fcn.004056b7
jmp 0x405456
push ebx
push 0xffffffffffffffe5
call fcn.00404d1d
pop esi
pop ebx
leave
ret 8
Function at 0x40553d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42b480
push esi
call fcn.00405969
push esi
call fcn.004054f0
mov edi, eax
test edi, edi
jne 0x40555e
xor eax, eax
jmp 0x4055b0
push edi
call fcn.00405b78
test byte [0x42ec10], 0x80
je 0x405577
mov al, byte [edi]
test al, al
je 0x40555a
cmp al, 0x5c
je 0x40555a
sub edi, esi
jmp 0x40558f
call fcn.00405c11
test eax, eax
je 0x405589
test byte [eax], 0x10
je 0x40555a
push esi
call fcn.004054a3
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x40557b
call fcn.0040545c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405621
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40563d
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405640
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x40566f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4056b3
test edi, edi
jne 0x40567a
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4056ad
Function at 0x4056b7
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405c4f
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4056db
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405814
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x42c208], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x42c208
je 0x40571f
push 1
push 0
push esi
call fcn.00405640
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40581a
cmp eax, edi
jg 0x40581a
mov esi, 0x42bc80
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40581a
cmp eax, edi
jg 0x40581a
push esi
push ebp
push str._s_s_r_n
push 0x42b880
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42ec08]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.0040598b
push 4
push 0xc0000000
push esi
call fcn.00405640
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405814
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40580d
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40580d
cmp edi, dword [esp + 0x18]
jne 0x40580d
push str._Rename__r_n
push esi
call fcn.004055b5
test eax, eax
jne 0x405821
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405969
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x42b880
push eax
call fcn.00405601
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x42ec90]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409388
push eax
call fcn.004055b5
test eax, eax
je 0x4057d8
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405848
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x40583d
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x4057da
Function at 0x405850
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4058c1
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4058b0
cmp dword [ebp + 0x14], 1
je 0x4058b2
cmp dword [ebp + 0x14], 2
je 0x4058b2
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x40598b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jge 0x4059ac
mov ecx, dword [0x42e3dc]
lea eax, [edi*4 + 4]
sub ecx, eax
mov edi, dword [ecx]
mov eax, dword [0x42ec38]
mov ecx, dword [ebp + 8]
add edi, eax
mov eax, 0x42dba0
sub ecx, eax
mov ebx, eax
cmp ecx, 0x800
jae 0x405b52
mov ebx, dword [ebp + 8]
and dword [ebp + 8], 0
jmp 0x405b52
mov edx, ebx
sub edx, eax
cmp edx, 0x400
jge 0x405b5f
inc edi
cmp cl, 0xfc
jbe 0x405b45
movsx eax, byte [edi + 1]
movsx ecx, byte [edi]
mov esi, eax
mov edx, ecx
and esi, 0x7f
and edx, 0x7f
shl esi, 7
or esi, edx
mov edx, 0x8000
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], eax
or ecx, edx
or eax, edx
inc edi
mov dword [ebp - 0x10], ecx
inc edi
cmp byte [ebp + 0xf], 0xfe
mov dword [ebp - 8], eax
jne 0x405af0
cmp dword [0x42ec84], 0
push 2
pop esi
je 0x405a37
push 4
pop esi
mov eax, dword [ebp - 0x14]
test al, al
jns 0x405a6e
mov ecx, eax
and eax, 0x3f
add eax, dword [0x42ec38]
and ecx, 0x40
push ecx
push ebx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00405850
cmp byte [ebx], 0
jne 0x405ad7
push dword [ebp - 0xc]
push ebx
call fcn.0040598b
jmp 0x405ad2
cmp eax, 0x25
jne 0x405a81
push 0x400
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x405ad2
cmp eax, 0x24
jne 0x405ace
push 0x400
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor esi, esi
jmp 0x405ace
lea eax, [ebp - 4]
dec esi
push eax
push dword [ebp + esi*4 - 0x14]
push dword [0x42ec04]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405acb
push ebx
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 4]
mov dword [ebp + 0xc], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp + 0xc], 0
jne 0x405ad2
and byte [ebx], 0
test esi, esi
jne 0x405a96
cmp byte [ebx], 0
je 0x405ae8
cmp dword [ebp - 0xc], 0x1a
jne 0x405ae8
push str.MicrosoftInternet_ExplorerQuick_Launch
push ebx
call sub.KERNEL32.dll_lstrcatA
push ebx
call fcn.00405b78
jmp 0x405b36
cmp byte [ebp + 0xf], 0xfd
jne 0x405b24
cmp esi, 0x1d
jne 0x405b09
push dword [0x42ec04]
push ebx
call fcn.004058c7
jmp 0x405b1a
mov eax, esi
shl eax, 0xa
add eax, section..ndata
push eax
push ebx
call fcn.00405969
add esi, 0xffffffeb
cmp esi, 7
jae 0x405b36
jmp 0x405ae8
cmp byte [ebp + 0xf], 0xff
jne 0x405b36
or eax, 0xffffffff
sub eax, esi
push eax
push ebx
call fcn.0040598b
push ebx
call sub.KERNEL32.dll_lstrlenA
add ebx, eax
mov eax, 0x42dba0
jmp 0x405b52
jne 0x405b4f
mov cl, byte [edi]
mov byte [ebx], cl
inc ebx
inc edi
jmp 0x405b52
mov byte [ebx], cl
inc ebx
mov cl, byte [edi]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x4059d7
and byte [ebx], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x405b74
push eax
push dword [ebp + 8]
call fcn.00405969
leave
ret 8
Function at 0x405cbb
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c60c], 0
push esi
jne 0x405cf2
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405ccc
mov dword [ecx*4 + 0x42c608], eax
inc ecx
cmp ecx, 0x100
jl 0x405cc7
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405d23
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c608]
xor eax, esi
inc ecx
dec edx
jne 0x405d05
pop edi
not eax
pop esi
ret 0xc

Function at 0x19b6990
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x647000]
push edi
or ebp, 0xffffffff
jmp 0x19b69b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x19b69b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x19b69a8
mov eax, 1
add ebx, ebx
jne 0x19b69cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x19b69c0
jne 0x19b69dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x19b69c0
xor ecx, ecx
sub eax, 3
jb 0x19b69f0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x19b6a62
mov ebp, eax
add ebx, ebx
jne 0x19b69fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x19b6a08
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x19b6a2c
inc ecx
add ebx, ebx
jne 0x19b6a18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x19b6a0d
jne 0x19b6a29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x19b6a0d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x19b6a4c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x19b6a3d
jmp 0x19b69ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x19b6a4c
add edi, ecx
jmp 0x19b69ae
pop esi
mov edi, esi
mov ecx, 0x1cc70
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x19b6a6a
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x19b6a6f
lea edi, [esi + 0xab2000]
mov eax, dword [edi]
or eax, eax
je 0x19b6ad7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb31580]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb316ac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x19b6a95
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb316b0]
or eax, eax
je 0x19b6ad1
mov dword [ebx], eax
add ebx, 4
jmp 0x19b6ab2
call dword [esi + 0xb316c0]
mov ebp, dword [esi + 0xb316b4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x19b6b0b
sub esp, 0xffffff80
jmp 0x1458c90
Function at 0x401077
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, 0x44fb40
mov ecx, edi
call fcn.004017cc
mov esi, eax
test esi, esi
js 0x401139
push 0x43d420
push dword [ebp + 0xc]
call fcn.0042142a
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x401139
push 0
push dword [ebp + 8]
mov ecx, edi
call fcn.00401825
mov dword [ebp - 8], eax
test eax, eax
jne 0x4010c9
or eax, 0xffffffff
jmp 0x40113c
push 0x8000
call fcn.0041cef6
mov dword [ebp - 4], eax
pop ecx
test esi, esi
je 0x401117
jmp 0x4010e0
mov eax, dword [ebp - 4]
mov ecx, 0x8000
cmp esi, ecx
mov edi, ecx
mov ecx, 0x44fb40
cmovl edi, esi
push edi
push eax
push dword [ebp - 8]
call fcn.004019ea
push ebx
push edi
push 1
push dword [ebp - 4]
call fcn.00421679
add esp, 0x10
cmp eax, edi
jl 0x401112
sub esi, edi
jne 0x4010dd
mov edi, 0x44fb40
push dword [ebp - 8]
mov ecx, edi
call fcn.004017a3
push ebx
call fcn.004212e9
push dword [ebp - 4]
call fcn.0041c8aa
pop ecx
pop ecx
test esi, esi
jne 0x401139
xor eax, eax
jmp 0x40113c
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40606d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
or ecx, 0xffffffff
cmp dword [ebp + 0xc], edx
jle 0x406098
push esi
mov esi, dword [ebp + 8]
movsx eax, byte [edx + esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43d4c0]
inc edx
cmp edx, dword [ebp + 0xc]
jl 0x40607e
pop esi
not ecx
mov eax, ecx
pop ebp
ret 8

Function at 0x408d15
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.00408dca
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x408d31
or eax, 0xffffffff
jmp 0x408d53
push esi
push edi
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.00421679
push edi
mov esi, eax
call fcn.004212e9
add esp, 0x14
call fcn.00424fd8
mov eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x408e0f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x408e3d
cmp dword [ebp + 0xc], 0
je 0x408e3d
cmp dword [ebp + 0x10], 0
jg 0x408e28
xor eax, eax
pop ebp
ret
push dword [ebp + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.00425244
add esp, 0x10
pop ebp
ret
or eax, 0xffffffff
pop ebp
ret
Function at 0x40e51c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0041d380
push esi
push edi
call fcn.00404c25
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.0041cff4
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.00408cfd
push dword [ebp - 4]
lea eax, [edi + 0x368]
push eax
call fcn.0040a5e1
lea eax, [ebp - 4]
push eax
call fcn.00408d0a
add esp, 0x18
lea eax, [ebp - 0x1004]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x20
lea eax, [ebp - 0x2004]
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.0041ce7d
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2004]
push eax
call fcn.00408cfd
push dword [ebp - 4]
lea esi, [edi + 0x338]
push esi
call fcn.0040a5e1
push 0x5c
push dword [esi]
call fcn.0041c997
push dword [esi]
lea eax, [edi + 0x384]
push eax
call fcn.0040a5e1
push str.hsptv_
push dword [esi]
call fcn.004216f0
lea eax, [ebp - 4]
push eax
call fcn.00408d0a
push dword [esi]
lea eax, [edi + 0x388]
push eax
call fcn.0040a5e1
add esp, 0x40
pop edi
pop esi
leave
ret

Function at 0x40f483
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov ecx, dword [ebp + 0x10]
mov eax, ecx
shl eax, 2
push ebx
push esi
mov esi, dword [ebp + 0xc]
not eax
xor ebx, ebx
and eax, 8
or eax, 2
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp byte [esi], bl
je 0x40f515
push 0x3c
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.0041ea00
lea eax, [ebp - 4]
mov dword [ebp - 0x44], 0x3c
push eax
push esi
mov dword [ebp - 0x40], 0xc
mov dword [ebp - 0x3c], ebx
call fcn.00408cfd
mov dword [ebp - 0x38], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.00408cfd
add esp, 0x1c
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x28], 1
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
lea eax, [ebp - 4]
push eax
je 0x40f587
call fcn.00408d0a
lea eax, [ebp - 8]
push eax
call fcn.00408d0a
pop ecx
pop ecx
jmp 0x40f583
push eax
test cl, 0x10
je 0x40f53b
mov eax, 0x43d43e
push eax
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.00408cfd
pop ecx
pop ecx
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x40f572
test cl, 0x20
je 0x40f55d
mov eax, 0x43d43e
push eax
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.00408cfd
pop ecx
pop ecx
push eax
push str.print
jmp 0x40f532
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.00408cfd
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
lea eax, [ebp - 4]
push eax
call fcn.00408d0a
pop ecx
cmp esi, 0x20
jl 0x40f597
pop esi
pop ebx
leave
ret
call fcn.00408d0a
lea eax, [ebp - 8]
push eax
call fcn.00408d0a
pop ecx
pop ecx
push 0x44c354
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0xe
push eax
call fcn.0041ebdc
int3
Function at 0x40f5ad
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0041d380
mov ecx, dword [ebp + 8]
xor edx, edx
mov eax, ecx
mov byte [ebp - 0x1004], dl
push esi
sub eax, edx
je 0x40f673
sub eax, 1
je 0x40f666
sub eax, 1
je 0x40f652
sub eax, 1
je 0x40f63e
sub eax, 1
je 0x40f62e
sub eax, 1
je 0x40f624
sub eax, 1
je 0x40f613
test ecx, 0x10000
je 0x40f6cd
push edx
movzx eax, cx
push eax
lea eax, [ebp - 0x1004]
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
jmp 0x40f686
mov esi, dword [0x450a18]
add esi, 0x390
jmp 0x40f6c8
mov esi, 0x43d43e
jmp 0x40f6c8
mov eax, dword [0x450a18]
mov esi, dword [eax + 0x368]
jmp 0x40f6c8
push 0x1000
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x40f686
push 0x1000
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x40f686
mov eax, dword [0x450a18]
mov esi, dword [eax + 0x384]
jmp 0x40f6c8
lea eax, [ebp - 0x1004]
push 0x1000
push eax
call fcn.00423784
pop ecx
pop ecx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.00408cfd
mov eax, dword [0x450a18]
push dword [ebp + 8]
add eax, 0x338
push eax
call fcn.0040a5e1
lea eax, [ebp + 8]
push eax
call fcn.00408d0a
mov eax, dword [0x450a18]
push 0x5c
mov esi, dword [eax + 0x338]
push esi
call fcn.0041c997
add esp, 0x1c
mov eax, esi
pop esi
leave
ret
push 0x44c354
lea eax, [ebp - 4]
mov dword [ebp - 4], 3
push eax
call fcn.0041ebdc
int3
Function at 0x40f6e3
Capabilities:
Get hostname
Get memory capacity
Get session user name
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0x104
push edi
push 4
pop edi
test bl, 0x10
je 0x40f70a
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
test bl, 0x20
je 0x40f72f
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp + 0x10]
and ebx, 0xf
mov ecx, dword [ebp + ebx*4 - 0x48]
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], edi
jmp 0x40f844
push esi
sub ebx, 0
je 0x40f7a9
sub ebx, 1
je 0x40f799
sub ebx, 1
je 0x40f774
sub ebx, 1
je 0x40f75f
sub ebx, 0xd
je 0x40f75a
sub ebx, 1
je 0x40f755
xor eax, eax
jmp 0x40f843
mov eax, dword [ebp - 0x14]
jmp 0x40f76a
mov eax, dword [ebp - 0x10]
jmp 0x40f76a
mov eax, dword [0x450a18]
mov eax, dword [eax + 0x37c]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x40f83c
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp + 8]
push eax
push esi
call fcn.00408cfd
push dword [ebp + 8]
call fcn.00423120
add esp, 0xc
jmp 0x40f817
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
jmp 0x40f782
mov esi, dword [ebp + 0x10]
push str.Windows
push esi
call fcn.004216e0
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ebx, eax
mov ecx, 0x43db80
mov eax, 0x43db84
test ebx, ebx
cmovs ecx, eax
push ecx
push esi
call fcn.004216f0
mov eax, ebx
shr eax, 8
movzx eax, al
push eax
movzx eax, bl
push eax
lea eax, [ebp - 0xc8]
push str._ver_d._d
push eax
call fcn.00401b2f
lea eax, [ebp - 0xc8]
push eax
push esi
call fcn.004216f0
lea eax, [ebp + 8]
push eax
push esi
call fcn.00408cfd
push dword [ebp + 8]
call fcn.00423120
add esp, 0x2c
mov edi, eax
cmp esi, dword [ebp + 8]
je 0x40f82f
push edi
push dword [ebp + 8]
push esi
call fcn.0041e480
add esp, 0xc
mov byte [edi + esi], 0
lea eax, [ebp + 8]
push eax
call fcn.00408d0a
pop ecx
push 2
pop edi
mov ecx, dword [ebp + 0xc]
mov eax, esi
mov dword [ecx], edi
pop esi
pop edi
pop ebx
leave
ret