joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450300
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x487dda
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov eax, dword [esp + 0x40]
test eax, eax
push esi
push edi
mov esi, ecx
jne 0x450347
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx]
lea edx, [esp + 0x14]
push edx
call dword [eax + 0x24]
mov eax, dword [eax]
mov ebx, 1
mov dword [esp + 0x38], ebx
mov dword [esp + 0xc], ebx
push eax
lea ecx, [esp + 0x14]
call fcn.00402080
test bl, 1
mov dword [esp + 0x38], 3
je 0x450383
mov eax, dword [esp + 0x14]
and ebx, 0xfffffffe
add eax, 0xfffffff0
mov dword [esp + 0xc], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x450383
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
call fcn.00447c60
mov byte [esp + 0x38], 4
call fcn.00477b74
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x48], eax
mov al, byte [esp + 0x44]
test al, al
mov byte [esp + 0x38], 5
je 0x4503c5
add esi, 0x2c
push esi
lea ecx, [esp + 0x4c]
call fcn.00401e70
jmp 0x4503ed
mov eax, dword [esi + 0x50]
inc eax
cmp eax, 0x64
push eax
jge 0x4503db
push str.z_.2d
lea eax, [esp + 0x50]
push eax
jmp 0x4503e5
push str.z_.3d
lea ecx, [esp + 0x50]
push ecx
call fcn.00406fa0
add esp, 0xc
mov esi, dword [esp + 0x48]
test esi, esi
jne 0x4503f9
xor eax, eax
jmp 0x450409
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x450400
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x2c]
call fcn.00401b80
push 0x2e
lea ecx, [esp + 0x28]
call fcn.0044fd50
mov edi, dword [esp + 0x40]
push edi
lea ecx, [esp + 0x1c]
call fcn.00449010
or ebx, 2
lea eax, [esi - 0x10]
mov dword [esp + 0xc], ebx
mov byte [esp + 0x38], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x450453
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 3
call fcn.00451870
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x450484
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x30]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 0xc
Function at 0x450bc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x487e88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov dword [esp + 0x14], ebx
mov byte [esp + 0x13], 1
call fcn.00477b74
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov al, byte [esp + 0x30]
or ebp, 0xffffffff
cmp al, bl
mov dword [esp + 0x24], ebx
jne 0x450c91
cmp dword [esi + 0x20], ebx
je 0x450c1f
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x30]
add ecx, eax
mov dword [esi + 0x48], ecx
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x450c36
mov edx, dword [esi + 0x40]
mov ecx, dword [esi + 0x1c]
mov edi, dword [ecx]
push eax
push edx
call dword [edi + 0x2c]
mov dword [esi + 0x30], ebx
cmp dword [esi + 0x20], 1
jne 0x450c46
mov ecx, esi
call fcn.0044fe70
mov dword [esi + 0x34], eax
cmp dword [esi + 0x20], 2
jne 0x450c91
cmp byte [esi + 0x4c], bl
je 0x450c91
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00450ab0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 1
call fcn.00401e70
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x24], bl
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x450c8d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [esp + 0x13], bl
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
jne 0x450cd7
mov ecx, dword [esi + 0x1c]
mov edx, dword [ecx]
lea eax, [esp + 0x18]
push eax
call dword [edx + 0x24]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 2
call fcn.00401e70
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x24], bl
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x450cd7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp byte [esp + 0x13], bl
je 0x450cf7
cmp byte [esi + 0x54], bl
jne 0x450cf7
cmp byte [esp + 0x30], bl
jne 0x450cef
mov ecx, esi
call fcn.00447400
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esi + 0x3c]
call fcn.0044b560
mov dword [esi + 0x50], ebp
mov dword [esi + 0x20], ebx
mov dword [esi + 0x1c], ebx
mov esi, dword [esp + 0x14]
add esi, 0xfffffff0
push esi
call fcn.00401730
mov edi, dword [esp + 0x30]
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov dword [esp + 0x24], ebp
lea ecx, [esi + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x450d39
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 8
Function at 0x451060
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
jne 0x451085
xor al, al
pop esi
ret
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
jne 0x4510a2
pop edi
xor al, al
pop esi
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], edi
pop edi
mov al, 1
pop esi
ret

Function at 0x4510b0
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
neg eax
sbb eax, eax
neg eax
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4510e3
xor al, al
ret
mov ecx, dword [esp + 8]
mov dword [ecx], eax
mov al, 1
ret

Function at 0x451240
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x451264
mov al, byte [esp + 0xc]
test al, al
je 0x451260
push esi
push 0x71
call fcn.00447370
xor al, al
pop esi
ret
mov al, 1
pop esi
ret

Function at 0x4512d0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x487ee8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [esp + 0x2c]
push ebx
push eax
lea ecx, [esp + 0xc]
call fcn.00447c60
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0
call fcn.004512a0
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
mov eax, dword [esp + 4]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45133a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0xffffffff
call fcn.00451870
mov ecx, dword [esp + 0x20]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x451360
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x487f10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [esp + 0x40]
push ebx
push esi
push edi
push eax
lea ecx, [esp + 0x28]
call fcn.00447c60
lea ecx, [esp + 0xc]
push ecx
xor ebx, ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x48], ebx
call fcn.004512a0
mov edi, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push edi
mov byte [esp + 0x58], 1
call esi
test eax, eax
jne 0x451442
push 0x492844
lea ecx, [esp + 0x10]
call fcn.00448770
push 0x5c
lea ecx, [esp + 0x10]
call fcn.004482f0
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
push edi
call esi
test eax, eax
jne 0x451442
lea eax, [edi - 0x10]
mov byte [esp + 0x44], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45141d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x24]
mov dword [esp + 0x44], 0xffffffff
call fcn.00451870
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
mov esi, dword [esp + 0x14]
imul esi, dword [esp + 0x18]
imul esi, dword [esp + 0x1c]
lea eax, [edi - 0x10]
mov dword [esp + 0x10], ebx
mov byte [esp + 0x44], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x451472
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x24]
mov dword [esp + 0x44], 0xffffffff
call fcn.00451870
mov ecx, dword [esp + 0x3c]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret

Function at 0x4514a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x487f30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [esp + 0x2c]
push ebx
push esi
push eax
lea ecx, [esp + 0x10]
call fcn.00447c60
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0
call fcn.004512a0
push 0x492844
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call fcn.00448770
push 0x5c
lea ecx, [esp + 0xc]
call fcn.004482f0
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 8]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelA]
test eax, eax
lea eax, [esi - 0x10]
setne bl
mov byte [esp + 0x2c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x451530
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00451870
mov ecx, dword [esp + 0x24]
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x451560
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
push 0
push 0
call ebp
mov esi, eax
test esi, esi
jne 0x451579
pop esi
xor al, al
pop ebp
ret
push ebx
push edi
push esi
call fcn.00477b14
add esp, 4
mov edi, eax
push edi
push esi
mov bl, 1
call ebp
test eax, eax
jne 0x4515a2
push edi
xor bl, bl
call fcn.00477b19
add esp, 4
pop edi
mov al, bl
pop ebx
pop esi
pop ebp
ret
mov ecx, dword [esp + 0x14]
push edi
call fcn.00402000
push edi
call fcn.00477b19
add esp, 4
pop edi
mov al, bl
pop ebx
pop esi
pop ebp
ret
Function at 0x458889
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x4588dc
call fcn.0047f391
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x4588dc
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x4588d2
xor eax, eax
jmp 0x4589f5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x45890c
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x45890c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x4589f2
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x458939
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00447270
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x4589f2
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x458982
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x458982
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x45897c
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00447270
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x4589e2
and dword [ebp + 0xc], 0
jmp 0x4589e2
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x4589e2
push 0xc
call fcn.00477ae9
mov esi, eax
test esi, esi
pop ecx
je 0x4589c4
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x4589c6
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x4589dd
push dword [ebp - 8]
call fcn.004723cb
jmp 0x4589e2
call fcn.004723a2
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x458947
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x461f78
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x461f95
call fcn.0046309f
mov dword [eax], 0x16
xor eax, eax
jmp 0x461fff
push esi
push 0x8c
push 1
call fcn.00460331
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x461fea
push esi
call fcn.00465cbe
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x461fc8
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x461ee3
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x461ffe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0046018b
test ebx, ebx
pop ecx
je 0x461ffc
push ebx
call fcn.004630b1
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x46249d
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.004606e0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x462538
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 [0x4aebec]
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 0x462538
cmp eax, 1
je 0x462559
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 0x462538
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x462505
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x462534
xor eax, eax
inc eax
jmp 0x462578
cmp edi, eax
jae 0x46253c
xor eax, eax
jmp 0x462578
cmp eax, esi
jae 0x462543
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 [0x4aebec]
jmp 0x46255c
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 0x4627f8
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x49a958
call fcn.0046434c
mov edi, 0x94
mov eax, edi
call fcn.004606e0
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 [0x4aebec], ecx
mov eax, dword [esi + 4]
mov dword [0x4aebf8], eax
mov edx, dword [esi + 8]
mov dword [0x4aebfc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4aebf0], esi
cmp ecx, 2
je 0x462858
or esi, 0x8000
mov dword [0x4aebf0], esi
shl eax, 8
add eax, edx
mov dword [0x4aebf4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x462893
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x462893
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4628ab
cmp eax, 0x20b
je 0x462898
mov dword [ebp - 0x1c], esi
jmp 0x4628bf
cmp dword [ecx + 0x84], 0xe
jbe 0x462893
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4628b9
cmp dword [ecx + 0x74], 0xe
jbe 0x462893
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004675a0
pop ecx
test eax, eax
jne 0x4628d3
push 0x1c
call fcn.004627d4
pop ecx
call fcn.00465eb8
test eax, eax
jne 0x4628e4
push 0x10
call fcn.004627d4
pop ecx
call fcn.0046b20d
mov dword [ebp - 4], esi
call fcn.0046861a
test eax, eax
jge 0x4628fd
push 0x1b
call fcn.004627af
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4b04f0], eax
call fcn.0046b0eb
mov dword [0x4aebd8], eax
call fcn.0046b049
test eax, eax
jge 0x462923
push 8
call fcn.004627af
pop ecx
call fcn.0046ae16
test eax, eax
jge 0x462934
push 9
call fcn.004627af
pop ecx
push 1
call fcn.00464f19
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x46294a
push eax
call fcn.004627af
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0046adb9
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x46296b
movzx eax, word [ebp - 0x40]
jmp 0x46296e
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0047049d
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x46298c
push edi
call fcn.00465046
call fcn.00465068
jmp 0x4629be
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00464387
ret
Function at 0x463595
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x4635b6
lea eax, [ebp - 4]
push eax
call fcn.004614c0
mov eax, dword [ebp - 4]
pop ecx
mov dword [ebp - 8], eax
lea edi, [ebp - 8]
lea eax, [edi + 4]
push eax
call fcn.00462ee0
test eax, eax
pop ecx
jne 0x4635d7
call fcn.0046309f
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x4636d8
mov cx, word [eax + 0x14]
add cx, 0x76c
mov word [ebp - 0x30], cx
mov cx, word [eax + 0x10]
inc cx
mov word [ebp - 0x2e], cx
mov cx, word [eax + 0xc]
mov word [ebp - 0x2a], cx
mov cx, word [eax + 8]
mov word [ebp - 0x28], cx
mov cx, word [eax + 4]
mov word [ebp - 0x26], cx
mov ax, word [eax]
and word [ebp - 0x22], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
call esi
test eax, eax
je 0x4636c9
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x4636c9
push edi
call fcn.00462ee0
test eax, eax
pop ecx
je 0x4636c9
mov cx, word [eax + 0x14]
add cx, 0x76c
mov word [ebp - 0x30], cx
mov cx, word [eax + 0x10]
inc cx
mov word [ebp - 0x2e], cx
mov cx, word [eax + 0xc]
mov word [ebp - 0x2a], cx
mov cx, word [eax + 8]
mov word [ebp - 0x28], cx
mov cx, word [eax + 4]
mov word [ebp - 0x26], cx
mov ax, word [eax]
and word [ebp - 0x22], 0
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
call esi
test eax, eax
je 0x4636c9
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x4636c9
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp + 8]
call fcn.00464695
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x4636c9
xor eax, eax
jmp 0x4636d7
call fcn.0046309f
mov dword [eax], 0x16
or eax, 0xffffffff
pop esi
pop edi
leave
ret
Function at 0x463712
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push 0x128
push 0x49a990
call fcn.0046434c
mov eax, dword [0x4aadb8]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
xor ebx, ebx
mov dword [ebp - 0x130], ebx
or dword [ebp - 0x12c], 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x46381f
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x134], esi
cmp esi, 0x104
jle 0x4637d0
mov dword [ebp - 4], ebx
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.004606e0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x138], edi
jmp 0x4637bd
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x46381f
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
cmp esi, ebx
je 0x46381f
mov al, byte [edi]
cmp al, 0x5c
je 0x4637de
cmp al, 0x2f
jne 0x4637e3
cmp al, byte [edi + 1]
je 0x463819
mov byte [ebp - 0x128], 0x3d
movzx eax, byte [edi]
push eax
call fcn.0046bd45
pop ecx
mov byte [ebp - 0x127], al
mov byte [ebp - 0x126], 0x3a
mov byte [ebp - 0x125], bl
push edi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x46381f
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004630b1
pop ecx
cmp dword [ebp - 0x130], ebx
je 0x46383b
push edi
call fcn.0046018b
pop ecx
mov eax, dword [ebp - 0x12c]
lea esp, [ebp - 0x144]
mov ecx, dword [ebp - 0x1c]
call fcn.0045f776
call fcn.00464387
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x463875
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004630b1
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x463898
test byte [esp + 8], 2
je 0x463898
call fcn.0046309f
mov dword [eax], 0xd
call fcn.004630a8
mov dword [eax], 5
jmp 0x463871
xor eax, eax
ret

Function at 0x464f83
Capabilities:
Terminate process

Disassembly:
push 8
push 0x49aa48
call fcn.0046434c
push 8
call fcn.00467744
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4aec2c], esi
jne 0x464fb7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4aec28], esi
mov al, byte [ebp + 0x10]
mov byte [0x4aec24], al
cmp dword [ebp + 0xc], edi
jne 0x465001
cmp dword [0x4b04e8], edi
je 0x464ff1
mov eax, dword [0x4b04e4]
sub eax, 4
mov dword [0x4b04e4], eax
cmp eax, dword [0x4b04e8]
jb 0x464ff1
mov eax, dword [eax]
cmp eax, edi
je 0x464fd2
call eax
jmp 0x464fd2
push 0x4a914c
mov eax, 0x4a9144
call fcn.00464f01
pop ecx
push 0x4a9158
mov eax, 0x4a9150
call fcn.00464f01
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x465032
cmp dword [ebp + 0x10], edi
jne 0x465040
mov dword [0x4aec2c], esi
push dword [ebp + 8]
call fcn.00464ebf
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x46503f
push 8
call fcn.0046768f
pop ecx
ret
call fcn.00464387
ret