joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459010
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x53f100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x3b8
xor ebx, ebx
lea eax, [esi + 0x54]
push ebx
push eax
call fcn.004cca60
push 0x110
xor edi, edi
inc edi
lea eax, [ebp - 0x114]
push ebx
push eax
mov dword [esi + 0x40c], ebx
mov dword [esi + 0x410], edi
mov dword [esi + 0x414], edi
mov dword [esi + 0x454], ebx
mov dword [esi + 0x458], edi
mov dword [esi + 0x418], ebx
mov dword [esi + 0x438], ebx
mov dword [esi + 0x450], ebx
mov dword [esi + 0x420], ebx
mov dword [esi + 0x45c], ebx
mov dword [ebp - 0x118], 0x114
call fcn.004cca60
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x4590b3
cmp dword [ebp - 0x114], 5
jae 0x4590b5
xor edi, edi
mov ecx, dword [ebp - 4]
mov dword [esi + 0x41c], edi
pop edi
xor ecx, ebp
pop ebx
call fcn.004cb516
leave
ret
Function at 0x461950
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1b58
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x53f100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x544ef4], 2
jne 0x46198b
push str.C:FilesPreScan.db
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [0x544ef4], 0
mov esi, 0x50107c
je 0x46199e
mov esi, str.C:FilesPreScan.db
mov edi, 0x5451c0
call fcn.00499520
push 0x5451e8
mov dword [0x5451e4], 0
mov dword [0x5451e0], 0
call fcn.0042cb65
push 0x50107c
call fcn.004cbe7a
add esp, 4
push eax
push 0x50107c
mov ecx, 0x545200
call fcn.004253b1
push 0x5c
mov edi, 0x545000
mov dword [0x545204], 1
call fcn.0042c77d
mov eax, dword [eax]
push eax
push ecx
mov esi, esp
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
call fcn.004bcd4c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x461a1f
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, str.Adding_dir_to_avoid:__s
mov dword [ebp - 4], 0
test ecx, 0xffff0000
jne 0x461a5b
mov edx, ecx
movzx edi, dx
push edi
call fcn.004c4eeb
test eax, eax
je 0x461a75
push edi
push eax
mov ecx, esi
call fcn.00424e60
jmp 0x461a75
push str.Adding_dir_to_avoid:__s
call fcn.004cbe7a
add esp, 4
push eax
push str.Adding_dir_to_avoid:__s
mov ecx, esi
call fcn.004253b1
push ecx
mov dword [ebp - 4], 1
mov esi, esp
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x14], esi
call fcn.004bcd4c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x461a9f
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, str.General
mov byte [ebp - 4], 2
test ecx, 0xffff0000
jne 0x461ad8
mov edx, ecx
movzx edi, dx
push edi
call fcn.004c4eeb
test eax, eax
je 0x461af2
push edi
push eax
mov ecx, esi
call fcn.00424e60
jmp 0x461af2
push str.General
call fcn.004cbe7a
add esp, 4
push eax
push str.General
mov ecx, esi
call fcn.004253b1
mov byte [ebp - 4], 1
push 1
mov dword [ebp - 4], 0xffffffff
call fcn.0047d7f0
add esp, 0x10
push 0x5c
mov edi, 0x545000
call fcn.0042c77d
push eax
mov eax, 0x545060
call fcn.00424b98
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x465620
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
push ecx
mov byte [ebp - 1], 0
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [eax], edi
call fcn.004cc550
add esp, 4
mov ebx, eax
lea edx, [eax + 2]
jmp 0x465650
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x465650
sub eax, edx
sar eax, 1
cmp eax, 5
jb 0x4656a4
lea esi, [ebx + eax*2 - 0xa]
mov ecx, str._VAL_
mov eax, esi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x465696
cmp dx, di
je 0x465692
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x465696
add eax, 4
add ecx, 4
cmp dx, di
jne 0x465670
xor eax, eax
jmp 0x46569b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x4656a4
xor edx, edx
mov word [esi], dx
mov edx, dword [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 0xc]
push ecx
push edi
push ebx
push edx
call esi
cmp eax, 0xea
je 0x4656c6
cmp eax, edi
jne 0x465706
mov eax, dword [ebp - 8]
push eax
call fcn.004cc1d4
add esp, 4
lea ecx, [ebp - 8]
push ecx
mov edi, eax
mov eax, dword [ebp + 8]
push edi
lea edx, [ebp - 0xc]
push edx
push 0
push ebx
push eax
call esi
test eax, eax
jne 0x4656fd
mov esi, dword [ebp - 8]
call fcn.004a6710
mov ecx, dword [ebp + 0xc]
not eax
mov dword [ecx], eax
mov byte [ebp - 1], 1
push edi
call fcn.004cc0f7
add esp, 4
push ebx
call fcn.004cc0f7
mov al, byte [ebp - 1]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x465bb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4edef8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x53f100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.004bcd4c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x465bf7
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x10]
push str._r_n__s__r_n
push edx
mov dword [ebp - 0x14], 0
call fcn.004225ea
mov esi, dword [ebp - 0x10]
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x465c30
sub eax, edx
push 0
sar eax, 1
lea ecx, [ebp - 0x14]
push ecx
lea edx, [eax + eax]
mov eax, dword [0x545230]
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [0x545234]
test eax, eax
je 0x465cc1
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push ecx
push 0x545238
push 0x20006
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x465cc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 8]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.RegDiff_PostScan_ExportTitle:_failed_creating_ExportHive_SubKey__s__LE_d
call fcn.004247e9
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.General
mov byte [ebp - 4], 2
call fcn.004247e9
push 1
mov byte [ebp - 4], 1
call fcn.0047d7f0
add esp, 0x14
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x465ce1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x465d07
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x467610
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
xor eax, eax
lea ecx, [ebp - 4]
push ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
push 0x4ff07c
lea edx, [ebp - 0x28]
push edx
mov dword [ebp - 0x28], 0x14
mov dword [ebp - 0x24], 3
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], ebx
call dword [sym.imp.OLEAUT32.dll_OleCreateFontIndirect]
cmp eax, ebx
jl 0x46771d
push edi
lea eax, [ebp + 8]
push eax
push 1
push ebx
mov dword [ebp + 8], ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp + 8]
push 1
mov dword [ebp - 0xc], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x3c]
call eax
mov edi, eax
cmp edi, ebx
jl 0x467704
mov edx, dword [ebp + 8]
push esi
lea ecx, [ebp - 8]
push ecx
push edx
mov dword [ebp - 8], ebx
call dword [sym.imp.ole32.dll_GetHGlobalFromStream]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp + 0xc]
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push ecx
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, ebx
jne 0x4676db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x4676d7
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x4676f9
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
push ebx
lea edx, [ebp - 0x14]
push edx
push eax
push ecx
push esi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop esi
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x467730
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4edec0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x53f100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x10], esp
push ecx
push str.FileToIco__s_
push eax
call fcn.00478610
add esp, 0xc
call fcn.004675a0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.00425422
add esp, 8
lea esi, [eax + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edx, edx
cmp eax, 0xffffffff
setne dl
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
mov edi, edx
mov edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4677ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jne 0x467818
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4677e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x467807
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push 3
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x467841
mov edx, dword [ebp + 0xc]
push edx
push edi
call fcn.0049b340
add esp, 8
test eax, eax
jne 0x4678cf
push ecx
mov ecx, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x10], esp
push ecx
push str.FileToIco__s_:_trying_ExtractAssociatedIcon
push eax
call fcn.00478610
add esp, 0xc
call fcn.004675a0
mov eax, dword [ebp + 8]
add esp, 4
mov dword [ebp - 0x10], 0
cmp dword [eax - 4], 1
jle 0x467880
mov edx, dword [eax - 0xc]
push edx
lea ecx, [ebp + 8]
call fcn.0042254b
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_ExtractAssociatedIconW]
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004cbe5b
add esp, 8
test eax, eax
jl 0x4678e3
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx - 8]
jg 0x4678e3
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp + 8]
xor edx, edx
mov word [ecx + eax*2], dx
test esi, esi
je 0x4678cf
mov edx, dword [ebp + 0xc]
push edx
push esi
call fcn.00467610
add esp, 8
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
test edi, edi
je 0x4677be
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4677be
push 0x80070057
call fcn.00422000
int3
Function at 0x476e30
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x53f100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x476e85
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb516
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
push esi
push edx
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, ebx
je 0x476f33
lea eax, [ebp - 0x14]
push eax
push 0x20008
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x476f2c
mov edx, dword [ebp - 0x14]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea ecx, [ebp - 0x10]
push ecx
push ebx
push ebx
push 5
push edx
mov dword [ebp - 0x10], ebx
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x476f21
mov eax, dword [ebp - 0x10]
cmp eax, ebx
jbe 0x476f21
push eax
call fcn.004bc681
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x476f1e
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push ecx
push esi
push 5
push edx
call edi
test eax, eax
je 0x476f15
mov eax, dword [ebp - 0x20]
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov dword [ebp - 0x1c], eax
push esi
call fcn.004bc68c
add esp, 4
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
pop esi
xor ecx, ebp
pop ebx
call fcn.004cb516
mov esp, ebp
pop ebp
ret
Function at 0x476f50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.004cca60
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], ecx
add esp, 0xc
lea ecx, [ebp - 0x3c]
push ecx
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x477050
cmp dword [ebp + 0x10], 0
je 0x476fc6
mov edx, dword [ebp - 4]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test edi, edi
je 0x476fd5
mov eax, dword [ebp - 4]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test ebx, ebx
je 0x476fe0
mov ecx, dword [ebp - 4]
mov dword [ebx], ecx
jmp 0x476fea
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x477009
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x477028
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x477047
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47706f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47708e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4770ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x477320
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ed6d0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x53f100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, dword [eax]
push ecx
mov edi, esp
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x1c], edi
call fcn.004bcd4c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x47737e
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
test esi, esi
je 0x4773b7
test esi, 0xffff0000
jne 0x4773bb
movzx esi, si
push esi
call fcn.004c4eeb
test eax, eax
je 0x4773cd
push esi
push eax
mov ecx, edi
call fcn.00424e60
jmp 0x4773cd
xor eax, eax
jmp 0x4773c4
push esi
call fcn.004cbe7a
add esp, 4
push eax
push esi
mov ecx, edi
call fcn.004253b1
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 4], 0xffffffff
call fcn.0047e4b0
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 4], 1
call fcn.004774f0
add esp, 0xc
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
xor edi, edi
push edi
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov ebx, esp
push eax
xor esi, esi
call fcn.00425422
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 0x20], esp
mov ebx, esp
push eax
call fcn.00425422
add eax, 0x10
mov dword [ebx], eax
add esp, 4
mov ecx, esi
mov edx, edi
mov byte [ebp - 4], 2
call fcn.004770c0
mov esi, eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x477462
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x477488
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x477700
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ebed8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x53f100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
cmp word [0x5455d0], 0
mov dword [ebp - 0x10], 0
jne 0x477749
push 0x104
push 0x5455d0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
call fcn.004bcd4c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x477763
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov ecx, 0x5455d0
mov dword [ebp - 4], 0
test ecx, 0xffff0000
jne 0x4777b0
mov edx, ecx
movzx esi, dx
push esi
call fcn.004c4eeb
test eax, eax
je 0x4777ca
push esi
push eax
mov ecx, edi
call fcn.00424e60
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x5455d0
call fcn.004cbe7a
add esp, 4
push eax
push 0x5455d0
mov ecx, edi
call fcn.004253b1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4777e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ed690
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x53f100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x54189c]
cmp eax, 0xffffffff
jne 0x47796c
push ecx
mov esi, esp
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x18], esi
call fcn.004bcd4c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x477838
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, 0x4ff58c
mov dword [ebp - 4], 0
test ecx, 0xffff0000
jne 0x477874
mov edx, ecx
movzx edi, dx
push edi
call fcn.004c4eeb
test eax, eax
je 0x47788e
push edi
push eax
mov ecx, esi
call fcn.00424e60
jmp 0x47788e
push 0x4ff58c
call fcn.004cbe7a
add esp, 4
push eax
push 0x4ff58c
mov ecx, esi
call fcn.004253b1
push ecx
mov dword [ebp - 4], 1
mov esi, esp
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], esi
call fcn.004bcd4c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4778b8
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, str.mscoree.dll
mov byte [ebp - 4], 2
test ecx, 0xffff0000
jne 0x4778f1
mov edx, ecx
movzx edi, dx
push edi
call fcn.004c4eeb
test eax, eax
je 0x47790b
push edi
push eax
mov ecx, esi
call fcn.00424e60
jmp 0x47790b
push str.mscoree.dll
call fcn.004cbe7a
add esp, 4
push eax
push str.mscoree.dll
mov ecx, esi
call fcn.004253b1
push ecx
mov byte [ebp - 4], 3
mov eax, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.00477700
add esp, 4
lea edi, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.00477ed0
mov ecx, dword [ebp - 0x10]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edx, edx
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x10]
setne dl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov esi, edx
mov edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x477965
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov dword [0x54189c], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x477980
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x53f100]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
mov dword [ebp - 0x118], 0x114
call fcn.004cca60
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x4779e5
cmp dword [ebp - 0x114], 5
jne 0x4779e5
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb516
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.004cb516
mov esp, ebp
pop ebp
ret
Function at 0x477a00
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x53f100]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
mov dword [ebp - 0x118], 0x114
call fcn.004cca60
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x477a6e
cmp dword [ebp - 0x114], 6
jne 0x477a6e
cmp dword [ebp - 0x110], 0
jne 0x477a6e
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb516
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.004cb516
mov esp, ebp
pop ebp
ret