joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402a47
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x446f70]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402adb
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a98
cmp dword [ebp + 0x10], ebx
jne 0x402acf
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a47
test eax, eax
jne 0x402aaa
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a7f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405e8f
cmp eax, ebx
je 0x402ae2
push ebx
push dword [0x446f70]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402adb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x446f70], ebx
jne 0x402ad8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ad8
jmp 0x402adb
Function at 0x402e6c
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402e89
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402e98
mov ebx, 0x417c70
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402ead
mov ecx, dword [0x446f18]
add ecx, eax
push ecx
call fcn.00403091
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.0040305f
test eax, eax
je 0x40300a
test byte [ebp + 0x17], 0x80
je 0x402ff3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x413be0
mov dword [ebp - 0xc], eax
call fcn.00405f6f
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x403055
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402efd
mov esi, dword [ebp + 0x14]
mov edi, 0x413c70
push esi
push edi
call fcn.0040305f
test eax, eax
je 0x40300a
sub dword [ebp + 0x14], esi
mov dword [0x413bf8], edi
mov dword [0x413bfc], esi
mov eax, dword [ebp - 8]
mov ecx, 0x413be0
mov dword [0x413c00], ebx
mov dword [0x413c04], eax
call fcn.00405f8f
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x402feb
mov esi, dword [0x413c00]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x446f74], 1
mov edi, eax
je 0x402f9f
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x402f6c
cmp dword [ebp + 0x14], 0
jne 0x402f9f
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00404e71
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x402fe0
cmp dword [ebp + 0x10], eax
jne 0x402fc8
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402fef
cmp dword [ebp - 0x10], esi
jne 0x402fef
add dword [ebp - 4], esi
jmp 0x402fd4
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x413c00]
cmp dword [ebp - 0x14], 1
jne 0x402f20
jmp 0x403055
cmp dword [ebp + 0x14], eax
jg 0x402ef0
jmp 0x403055
push 0xfffffffffffffffc
jmp 0x40300c
push 0xfffffffffffffffe
jmp 0x40300c
test edi, edi
je 0x40304a
cmp dword [ebp + 0x14], esi
jge 0x402fff
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.0040305f
test eax, eax
jne 0x403052
push 0xfffffffffffffffd
pop eax
jmp 0x403058
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x40301a
mov esi, dword [ebp + 0x14]
mov edi, 0x413c70
push esi
push edi
call fcn.0040305f
test eax, eax
je 0x40300a
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402fef
cmp esi, dword [ebp + 0x10]
jne 0x402fef
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x40300f
jmp 0x403055
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405334
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x43dcc8], 0x44
push eax
xor eax, eax
push 0x43dcc8
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 0x40536f
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4053f9
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.004057ed
mov edi, eax
cmp edi, 0xffffffff
je 0x40543a
test byte [esp + 0x10], 1
push esi
je 0x40541c
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405422
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40542b
xor eax, eax
inc eax
jmp 0x40543c
test byte [esp + 0x10], 4
jne 0x40543a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405441
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.004056ff
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405480
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x446f48], eax
jmp 0x40560a
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x40549a
test eax, eax
je 0x4055b8
test bl, 2
je 0x4055b8
mov esi, 0x439cc8
push edi
push esi
call fcn.00405b64
cmp dword [ebp + 8], 0
je 0x4054b9
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4054bf
push edi
call fcn.00405658
cmp byte [edi], 0
jne 0x4054cd
cmp byte [0x439cc8], 0x5c
jne 0x4054d8
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4055ae
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.0040563c
cmp byte [eax], 0
je 0x40551e
cmp byte [ebp - 0x1c], 0
je 0x40551e
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405534
mov al, byte [esi + 1]
test al, al
je 0x40558d
cmp al, 0x2e
jne 0x405534
cmp byte [esi + 2], 0
je 0x40558d
push esi
push ebx
call fcn.00405b64
test byte [ebp - 0x14c], 0x10
je 0x405559
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40558d
push dword [ebp + 0xc]
push edi
call fcn.00405441
jmp 0x40558d
push dword [ebp - 4]
push edi
call fcn.004053f9
test eax, eax
jne 0x405585
cmp dword [ebp - 4], eax
je 0x40557d
push edi
push 0xfffffffffffffff1
call fcn.00404e71
push 0
push edi
call fcn.00405a18
jmp 0x40558d
inc dword [0x446f48]
jmp 0x40558d
push edi
push 0xfffffffffffffff2
call fcn.00404e71
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4054fc
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4055b8
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40560a
cmp dword [ebp - 0xc], esi
jne 0x4055cc
inc dword [0x446f48]
jmp 0x40560a
push edi
call fcn.00405e68
test eax, eax
je 0x40560a
push edi
call fcn.00405611
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004053f9
test eax, eax
jne 0x405602
cmp dword [ebp - 4], esi
je 0x4055c4
push edi
push 0xfffffffffffffff1
call fcn.00404e71
push esi
push edi
call fcn.00405a18
jmp 0x40560a
push edi
push 0xffffffffffffffe5
call fcn.00404e71
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4056ff
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x43bcc8
push esi
call fcn.00405b64
push esi
call fcn.004056aa
mov edi, eax
test edi, edi
jne 0x405720
xor eax, eax
jmp 0x405772
push edi
call fcn.00405dcf
test byte [0x446ed8], 0x80
je 0x405739
mov al, byte [edi]
test al, al
je 0x40571c
cmp al, 0x5c
je 0x40571c
sub edi, esi
jmp 0x405751
call fcn.00405e68
test eax, eax
je 0x40574b
test byte [eax], 0x10
je 0x40571c
push esi
call fcn.00405658
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x40573d
call fcn.00405611
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 0x4057ed
Capabilities:
Check if file exists
Get file attributes
Set file attributes

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

Function at 0x405812
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 0x405841
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x409368]
dec edi
mov dword [ebp + 8], eax
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 0x405886
test edi, edi
jne 0x40584c
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405880
Function at 0x40588a
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, 0x43e250
push 0x409384
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
mov ebx, 0x400
je 0x4058d9
push 1
push 0
push esi
call fcn.00405812
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x405a12
cmp eax, ebx
jg 0x405a12
mov esi, 0x43e650
push ebx
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x405a12
cmp eax, ebx
jg 0x405a12
push esi
push edi
push str._s_s_r_n
push 0x43de50
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x446ed0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405b86
push 4
push 0xc0000000
push esi
call fcn.00405812
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x405a12
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 0x405a0b
lea eax, [esp + 0x10]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405a0b
cmp edi, dword [esp + 0x10]
jne 0x405a0b
push str._Rename__r_n
push esi
call fcn.00405777
test eax, eax
jne 0x4059a1
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4059d6
add eax, 0xa
push 0x40936c
push eax
call fcn.00405777
mov ebp, eax
test ebp, ebp
je 0x4059d2
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4059c3
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4059bd
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x4059d8
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
add eax, esi
push 0x43de50
push eax
call fcn.004057cd
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
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]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x405a4b
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 0x405abc
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x2000
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 0x405aab
cmp dword [ebp + 0x14], 1
je 0x405aad
cmp dword [ebp + 0x14], 2
je 0x405aad
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405f01
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43ea54], 0
push esi
jne 0x405f38
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 0x405f12
mov dword [ecx*4 + 0x43ea50], eax
inc ecx
cmp ecx, 0x100
jl 0x405f0d
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f69
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 + 0x43ea50]
xor eax, esi
inc ecx
dec edx
jne 0x405f4b
pop edi
not eax
pop esi
ret 0xc
Function at 0x405899
Capabilities:
Query environment variable

Disassembly:
push 0x210
mov eax, 0x571f24
call fcn.00545eb8
mov ebx, ecx
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, eax
test edi, edi
je 0x40596f
cmp word [edi], ax
je 0x40596f
mov esi, 0x104
lea eax, [ebp - 0x218]
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x4058eb
push edi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.0054de7c
add esp, 0xc
lea ecx, [ebp - 0x218]
call fcn.0040a1be
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.0040583f
mov esi, eax
test esi, esi
jne 0x40596f
push 0x38
call fcn.00414956
mov esi, eax
pop ecx
mov dword [ebp - 0x21c], esi
and dword [ebp - 4], 0
test esi, esi
je 0x40594a
lea eax, [ebp - 0x218]
mov byte [esi], 1
push eax
lea ecx, [esi + 4]
call fcn.00402e40
mov byte [ebp - 4], 1
lea ecx, [esi + 0x20]
and dword [esi + 0x1c], 0
call fcn.00403b70
mov byte [ebp - 4], 0
jmp 0x40594c
xor esi, esi
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x21c], esi
test esi, esi
je 0x40596f
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebx + 0x40]
call fcn.00407fbd
mov esi, dword [ebp - 0x21c]
mov eax, esi
call fcn.00545e62
ret 4
Function at 0x4068e3
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x57223d
call fcn.00545eb8
mov ebx, ecx
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], esi
cmp dword [ebx + 0x2e4], esi
jle 0x4069c1
cmp eax, 0xffffffff
je 0x4069c1
push str.____Queued_Lines_End_____r_n
lea ecx, [ebp - 0x2c]
call fcn.00402e40
mov dword [ebp - 4], 1
lea edi, [ebx + 0x2d4]
push eax
mov ecx, edi
call fcn.00408326
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00402d80
jmp 0x4069b8
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.004089b1
mov edx, eax
mov ecx, dword [edx]
test ecx, ecx
jne 0x406958
xor eax, eax
jmp 0x40695a
mov eax, dword [ecx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
mov esi, dword [eax + ecx*4]
mov ecx, esi
call fcn.00402ea0
push 0
lea ecx, [ebp - 0x38]
push ecx
mov eax, dword [eax]
mov ecx, esi
add eax, eax
push eax
call fcn.00402d20
push eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [ebp - 0x30]
test eax, eax
je 0x406997
add esi, dword [ebp - 0x38]
mov dword [ebp - 0x30], esi
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
dec ecx
and ecx, dword [edi + 0xc]
mov ecx, dword [eax + ecx*4]
call fcn.00402d80
sub dword [edi + 0x10], 1
jne 0x4069b5
and dword [edi + 0xc], 0
jmp 0x4069b8
inc dword [edi + 0xc]
cmp dword [ebx + 0x2e4], 0
ja 0x406941
mov eax, esi
call fcn.00545e62
ret 8
Function at 0x4072bd
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x5ddf64]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
xor esi, esi
mov ebx, ecx
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x407345
lea eax, [ebp - 0x408]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push edi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x40733e
test dword [ebp - 0x408], 0xfffffffc
jbe 0x40733e
add ebx, 0xbc
push 0x104
push ebx
push dword [ebp + esi*4 - 0x404]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [ebp - 0x408]
inc esi
shr eax, 2
cmp esi, eax
jb 0x40731d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00545662
mov esp, ebp
pop ebp
ret 4
Function at 0x407358
Capabilities:
Accept command line arguments

Disassembly:
push 0xc0
mov eax, 0x57236a
call fcn.00545eb8
mov ebx, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x58]
push str.Module_File_Name:
mov dword [ebp - 0xc8], eax
call fcn.00402e40
and dword [ebp - 4], 0
lea ecx, [ebp - 0xa0]
push str.____Command_Line:
call fcn.00402e40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
push str.____File_Version:
call fcn.00402e40
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
push str.______Process_ID:
call fcn.00402e40
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
push str.________Built_on:
call fcn.00402e40
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
push str.___Log_File_Name:__
call fcn.00402e40
mov byte [ebp - 4], 5
lea edi, [ebx + 0xbc]
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
lea ecx, [ebp - 0x58]
call fcn.00402d30
push 0x14
call fcn.00414956
pop ecx
mov dword [ebp - 0xcc], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x40741d
push edi
mov ecx, eax
call fcn.004137d0
mov esi, eax
jmp 0x40741f
xor esi, esi
mov byte [ebp - 4], 5
test esi, esi
je 0x40744a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
lea ecx, [ebp - 0x40]
test eax, eax
je 0x407438
push eax
jmp 0x40743d
push str._no_version_info_
call fcn.00402d30
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
lea eax, [ebp - 0xc4]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x407480
push dword [ebp - 0xa4]
push str.___ld_bytes_
push 0x104
push edi
call fcn.004042da
add esp, 0x10
lea ecx, [ebp - 0x58]
push edi
call fcn.00402d30
lea ecx, [ebp - 0x58]
call fcn.00402d20
mov esi, dword [ebp - 0xc8]
mov edi, 0x40000000
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.004071ed
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0xa0]
call fcn.00402d30
lea ecx, [ebp - 0xa0]
call fcn.00402d20
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.004071ed
lea ecx, [ebp - 0x40]
call fcn.00402d20
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.004071ed
push 0xffffffffffffffff
push 0
lea eax, [ebx + 0x54]
push eax
lea ecx, [ebp - 0x88]
call fcn.004037a0
lea ecx, [ebp - 0x88]
call fcn.00402d20
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.004071ed
push 0xffffffffffffffff
push 0
lea eax, [ebx + 0x38]
push eax
lea ecx, [ebp - 0x70]
call fcn.004037a0
lea ecx, [ebp - 0x70]
call fcn.00402d20
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.004071ed
mov ecx, esi
call fcn.0040a46b
push eax
lea ecx, [ebp - 0x28]
call fcn.00402d30
push 0x5bac08
lea ecx, [ebp - 0x28]
call fcn.00402d30
lea ecx, [ebp - 0x28]
call fcn.00402d20
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.004071ed
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.00402d80
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.00402d80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
call fcn.00402d80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00402d80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa0]
call fcn.00402d80
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00402d80
call fcn.00545e62
ret 4
Function at 0x4075b1
Capabilities:
Get common file path

Disassembly:
push 0x248
mov eax, 0x5723a8
call fcn.00545eb8
mov edi, ecx
mov dword [ebp - 0x250], edi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4077b1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4075de
mov al, byte [eax]
jmp 0x4075e1
mov al, byte [esi + 0x18]
test al, al
je 0x4077b1
mov ecx, esi
call fcn.0040a46b
lea ecx, [ebp - 0x248]
mov ebx, eax
call fcn.00403b70
and dword [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00403b70
mov byte [ebp - 4], 1
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsFileSpecW]
add edi, 0xbc
test eax, eax
je 0x407647
push edi
xor eax, eax
push eax
push eax
push 0x8023
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push edi
lea ecx, [ebp - 0x248]
call fcn.00403000
push ebx
lea ecx, [ebp - 0x230]
jmp 0x407677
push ebx
push 0x104
push edi
call fcn.0054de7c
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x230]
call fcn.00403000
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push edi
lea ecx, [ebp - 0x248]
call fcn.00403000
test dword [esi + 0x10], 0x20000
je 0x4076d7
push edi
push 0
lea ecx, [ebp - 0x230]
call fcn.00402d20
push eax
lea ecx, [ebp - 0x248]
call fcn.00402d20
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4076d7
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x4076d7
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x4076d7
lea eax, [ebp - 0x218]
add ecx, 4
push eax
call fcn.00403000
mov ecx, esi
call fcn.0040a46b
mov ebx, eax
push ebx
mov dword [ebp - 0x24c], ebx
call fcn.0054da73
pop ecx
test eax, eax
je 0x407755
xor eax, eax
test dword [esi + 0x10], 0x10000
push eax
push 0x80
je 0x407706
push 2
jmp 0x407708
push 4
push eax
push eax
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407755
lea eax, [ebp - 0x254]
push eax
push edi
push 0x104
push 0
push dword [ebp - 0x24c]
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x40774e
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x40774e
add ecx, 4
push edi
call fcn.00403000
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test dword [esi + 0xc], 0x40000000
je 0x407783
mov edi, dword [ebp - 0x250]
mov ecx, edi
push esi
call fcn.00407358
test dword [esi + 0x10], 0x100000
je 0x407783
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov ecx, edi
call fcn.004072bd
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40778f
mov byte [eax], 0
jmp 0x407793
mov byte [esi + 0x18], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00402d80
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00402d80
call fcn.00545e62
ret 4