joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46281f
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3d4]
sub esp, 0x454
mov eax, dword [0x4bea34]
xor eax, ebp
mov dword [ebp + 0x3d0], eax
push edi
push 0x104
lea eax, [ebp - 0x44]
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x462858
mov al, 1
jmp 0x462976
lea eax, [ebp + 0x1c8]
push eax
lea ecx, [ebp - 0x44]
call fcn.004626e8
test al, al
pop ecx
je 0x462851
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
push 0x4a0558
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 0x45], 1
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x4c], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x462973
push ebx
push esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx esi, word [ebp - 0x70]
movzx eax, word [ebp - 0x6e]
imul esi, esi, 0x64
add esi, eax
movzx eax, word [ebp - 0x6a]
imul esi, esi, 0x64
push 4
pop ebx
add esi, eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x50]
push eax
push edi
lea eax, [ebp + 0x1c8]
push eax
push dword [ebp - 0x4c]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4628fd
cmp dword [ebp - 0x50], ebx
jne 0x4628fd
cmp dword [ebp - 0x54], esi
jbe 0x4628fd
mov byte [ebp - 0x45], al
jmp 0x462968
lea eax, [ebp + 0x1c8]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp dword [ebp + 0x3dc], edi
je 0x462968
mov eax, dword [ebp - 0x70]
lea esi, [ebp - 0x70]
lea edi, [ebp - 0x80]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
shr eax, 0x10
movsd dword es:[edi], dword [esi]
add eax, 6
cmp ax, 0xc
movsd dword es:[edi], dword [esi]
jbe 0x462936
add ax, 0xfff4
inc word [ebp - 0x80]
movzx ecx, word [ebp - 0x80]
imul ecx, ecx, 0x64
movzx eax, ax
add ecx, eax
mov eax, dword [ebp - 0x7c]
imul ecx, ecx, 0x64
shr eax, 0x10
push ebx
add ecx, eax
lea eax, [ebp - 0x60]
push eax
push ebx
push 0
lea eax, [ebp + 0x1c8]
push eax
push dword [ebp - 0x4c]
mov dword [ebp - 0x60], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov al, byte [ebp - 0x45]
mov ecx, dword [ebp + 0x3d0]
xor ecx, ebp
pop edi
call fcn.00470af5
add ebp, 0x3d4
leave
ret

Function at 0x46298c
Capabilities:
Query or enumerate registry value

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
push 0
push dword [esp + 0x14]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4629b3
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
ret
xor al, al
ret
Function at 0x462a22
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x4bea34]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push 0x118
lea eax, [ebp - 0x7c]
push 0
push eax
mov dword [ebp - 0x80], 0x11c
call fcn.00471300
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x462a84
cmp dword [ebp - 0x7c], 5
jb 0x462a84
jbe 0x462a74
mov byte [esi], 1
mov al, 1
jmp 0x462a86
cmp dword [ebp - 0x78], 1
jb 0x462a84
cmp word [ebp + 0x94], 1
jae 0x462a70
xor al, al
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.00470af5
add ebp, 0xa0
leave
ret

Function at 0x462a9b
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4bea34]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
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]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x462afa
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x462afa
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x10], 1
pop ebx
sete al
xor ecx, ebp
call fcn.00470af5
leave
ret

Function at 0x462b19
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4bea34]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x2001f
push ebx
mov esi, str.test
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
push ebx
push ebx
movsd dword es:[edi], dword [esi]
push str.SoftwareGoogleUpdateClients8A69D345_D564_463c_AFF1_A69D9E530F96
push reloc.OLEAUT32.dll_SysReAllocString
movsw word es:[edi], word [esi]
mov byte [ebp - 0x11], bl
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x462bb2
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0x10]
push eax
push 1
push ebx
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x462b99
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
mov byte [ebp - 0x11], 1
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp dword [ebp - 0x1c], 1
jne 0x462ba9
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x11]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00470af5
leave
ret
Function at 0x465260
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4905c8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
mov eax, dword [0x4bea34]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
fldz
mov edx, dword [ecx + 0x74]
xor eax, eax
fstp qword [esp + 0x18]
mov dword [esp + 8], 0x4c3600
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], 5
mov byte [esp + 0xc], al
mov dword [esp + 0x10], eax
lea esi, [ecx + 0x20]
mov ecx, esi
mov dword [esp + 0x40], eax
call fcn.00468040
push eax
lea ecx, [esp + 0xc]
call fcn.00464360
push 1
mov ecx, esi
call fcn.004685b0
cmp dword [esp + 0x30], 3
lea ecx, [esp + 8]
je 0x4652f9
call fcn.0046c890
neg eax
push str.unary__
push eax
mov ecx, esi
call fcn.004681e0
jmp 0x465311
call fcn.0046ca30
fmul qword [0x49c748]
sub esp, 8
mov ecx, esi
fstp qword [esp]
call fcn.00468280
lea ecx, [esp + 8]
mov dword [esp + 0x40], 0xffffffff
call fcn.004033ae
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x3c
ret

Function at 0x467d10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4904e1
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
mov eax, dword [0x4bea34]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0xc], ebx
fldz
mov eax, dword [ecx + 0x74]
fstp qword [esp + 0x24]
mov dword [esp + 0x14], 0x4c3600
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 5
mov byte [esp + 0x18], bl
mov dword [esp + 0x1c], ebx
mov esi, dword [esp + 0x84]
mov eax, 1
mov dword [esp + 0x7c], eax
mov dword [esi], 0x4c3600
mov dword [esp + 0xc], eax
lea eax, [esp + 0x44]
push eax
call fcn.00467b10
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x80], 2
call fcn.00464360
lea ecx, [esp + 0x44]
mov byte [esp + 0x7c], 1
call fcn.004033ae
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call fcn.0046c900
mov eax, dword [eax]
mov ecx, dword [eax]
push ecx
add eax, 8
push eax
mov ecx, esi
mov byte [esp + 0x84], 3
call fcn.00467ef0
mov eax, dword [esp + 0x10]
cmp eax, 0x4c3600
mov byte [esp + 0x7c], 1
je 0x467def
push eax
call fcn.004708c5
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x7c], bl
call fcn.004033ae
mov eax, esi
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x74
ret 4
Function at 0x4693e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x490783
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4bea34]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
push ebx
call fcn.00468fa0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [esp + 0x18], ebx
mov dword [ecx], 0x4c3600
or eax, 0xffffffff
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x4a3b8c
mov byte [esp + 0x20], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], bl
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
call fcn.00467ef0
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x469470
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x490908
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bea34]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [esp + 0x28]
test esi, esi
jne 0x4694b0
push esi
push esi
push esi
push 2
call fcn.0046a7d0
xor al, al
jmp 0x46963a
call fcn.00468810
push 2
or eax, 0xffffffff
push 0
push esi
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
call fcn.004757fa
push esi
call fcn.004760a0
push 0
push 0
push esi
mov edi, eax
call fcn.004757fa
add esp, 0x1c
test edi, edi
jg 0x4694f7
push 0
push 0
push 0
push 0xd
mov ecx, ebx
call fcn.0046a7d0
xor al, al
jmp 0x46963a
mov dword [esp + 0x14], 0x4c3600
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0
call fcn.00467e50
lea eax, [edi + 1]
push eax
call fcn.004708e3
push esi
push 1
mov ebp, eax
push edi
push ebp
mov byte [ebp], 0
call fcn.00477818
add esp, 0x14
cmp eax, 1
je 0x46956d
push ebp
call fcn.004708c5
add esp, 4
push 0
push 0
push 0
push 2
mov ecx, ebx
call fcn.0046a7d0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
cmp eax, 0x4c3600
je 0x469566
push eax
call fcn.004708c5
add esp, 4
xor al, al
jmp 0x46963a
mov byte [edi + ebp], 0
cmp byte [ebp], 0
mov eax, ebp
mov esi, ebp
je 0x4695e2
jmp 0x469580
mov cl, byte [esi]
cmp cl, 0xa
jne 0x4695a0
mov ecx, esi
sub ecx, eax
add ecx, 1
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00467fe0
add esi, 1
mov eax, esi
jmp 0x4695dd
cmp cl, 0xd
jne 0x4695da
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x4695b8
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00467fe0
push 1
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 0xa
call fcn.00467fe0
cmp byte [esi + 1], 0xa
jne 0x469599
add esi, 2
mov eax, esi
jmp 0x4695dd
add esi, 1
cmp byte [esi], 0
jne 0x469580
sub esi, eax
je 0x4695f1
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.00467fe0
push ebp
call fcn.004708c5
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov eax, dword [ebx]
mov eax, dword [eax + 8]
add esp, 4
push ecx
push 0
add edx, 8
push edx
mov ecx, ebx
call eax
cmp byte [ebx + 0x2c], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
jne 0x469556
cmp eax, 0x4c3600
je 0x469638
push eax
call fcn.004708c5
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x46f4b1
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4bea34]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0046f3f0
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00471300
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x46f500
cmp dword [ebp - 0x1c], 5
jb 0x46f518
jmp 0x46f514
cmp dword [ebp - 0x10], 1
jne 0x46f518
cmp dword [ebp - 0x1c], 4
ja 0x46f514
jne 0x46f518
cmp dword [ebp - 0x18], 0
jbe 0x46f518
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x49d488
call fcn.004059d8
test eax, eax
jge 0x46f539
mov byte [0x4c443c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00470af5
add ebp, 0x78
leave
ret

Function at 0x46f8d6
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4c369c], 0
push esi
jne 0x46f849
call fcn.0046f774
test eax, eax
je 0x46f88c
mov eax, dword [0x4c369c]
cmp eax, 1
jne 0x46f86a
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x46f88c
pop esi
ret
push eax
call dword [0x4c36a4]
test eax, eax
jne 0x46f8d4
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x46f890
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4c369c]
call dword [0x4c36a4]
mov edi, eax
test edi, edi
je 0x46f8b7
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x46f8d3
lea edi, [esi + 0xff0]
push esi
push dword [0x4c369c]
call dword [0x4c36a0]
add esi, 0x10
cmp esi, edi
jb 0x46f8bd
mov eax, esi
pop edi
pop esi
ret
jmp 0x46f836

Function at 0x470af5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4bea34]
jne 0x470aff
repz ret
jmp fcn.0047dd1a
Function at 0x47757c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4775b9
cmp dword [ebp + 0x14], edi
je 0x4775b9
cmp ecx, edi
jne 0x4775c0
call fcn.00479f1b
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00471207
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4775d4
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4775f5
cmp ebx, 0xffffffff
je 0x4775e4
push ebx
push edi
push ecx
call fcn.00471300
add esp, 0xc
cmp esi, edi
je 0x4775a1
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4775a1
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x477611
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x477618
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x477709
test word [esi + 0xc], 0x10c
je 0x47766c
mov eax, dword [esi + 4]
test eax, eax
je 0x47766c
jl 0x47776a
cmp ebx, eax
mov edi, ebx
jb 0x47763d
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x477711
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00470e64
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x477701
cmp ebx, dword [ebp - 0xc]
jb 0x4776d9
cmp dword [ebp - 0xc], 0
je 0x477696
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x47768b
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x477692
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4776a1
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4776a1
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x47773d
push eax
push dword [ebp - 8]
push esi
call fcn.00484c4b
pop ecx
push eax
call fcn.0047912a
add esp, 0xc
test eax, eax
je 0x47777c
cmp eax, 0xffffffff
je 0x47776a
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x477701
push esi
call fcn.00484b2b
cmp eax, 0xffffffff
pop ecx
je 0x47776e
cmp dword [ebp - 4], 0
je 0x47773d
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x477620
mov eax, dword [ebp + 0x14]
jmp 0x4775bb
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x477728
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00471300
add esp, 0xc
call fcn.00479f1b
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4775b1
cmp dword [ebp + 0xc], 0xffffffff
je 0x477753
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00471300
add esp, 0xc
call fcn.00479f1b
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4775b1
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4775bb
or dword [esi + 0xc], 0x10
jmp 0x47776e
Function at 0x4780ce
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4780fb
call fcn.00479f2e
mov dword [eax], esi
call fcn.00479f1b
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00471207
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4780d7
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47812a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00479f41
pop ecx
call fcn.00479f1b
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x478151
test al, 1
je 0x478151
test byte [esp + 0xc], 2
je 0x478151
call fcn.00479f2e
mov dword [eax], 5
call fcn.00479f1b
mov dword [eax], 0xd
jmp 0x478121
xor eax, eax
pop esi
ret

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x478704
call fcn.00479f2e
mov dword [eax], esi
call fcn.00479f1b
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00471207
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x478722
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00479f41
pop ecx
jmp 0x4786ff
test byte [esp + 0xc], 0x80
je 0x47872e
and eax, 0xfffffffe
jmp 0x478731
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x478713
xor eax, eax
pop esi
ret
Function at 0x47e6f9
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4bf3e8]
je 0x47e714
inc edi
cmp edi, 0x17
jb 0x47e705
cmp edi, 0x17
jae 0x47e894
push ebp
push 3
call fcn.0048b6c6
cmp eax, 1
pop ecx
je 0x47e860
push 3
call fcn.0048b6c6
test eax, eax
pop ecx
jne 0x47e748
cmp dword [0x4bea30], 1
je 0x47e860
cmp ebx, 0xfc
je 0x47e893
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4c3d60
push ebp
call fcn.0047de1e
add esp, 0xc
test eax, eax
je 0x47e77e
push esi
push esi
push esi
push esi
push esi
call fcn.0047110b
add esp, 0x14
push 0x104
mov esi, 0x4c3d79
push esi
push 0
mov byte [0x4c3e7d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x47e7c2
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0047de1e
add esp, 0xc
test eax, eax
je 0x47e7c2
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0047110b
add esp, 0x14
push esi
call fcn.00471240
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x47e807
push esi
call fcn.00471240
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4c4074
push 0x49e6cc
sub ecx, eax
push ecx
push eax
call fcn.0048a78f
add esp, 0x14
test eax, eax
je 0x47e807
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0047110b
add esp, 0x14
jmp 0x47e809
xor esi, esi
push 0x49e6c8
push ebx
push ebp
call fcn.0048a71e
add esp, 0xc
test eax, eax
je 0x47e829
push esi
push esi
push esi
push esi
push esi
call fcn.0047110b
add esp, 0x14
push dword [edi*8 + 0x4bf3ec]
push ebx
push ebp
call fcn.0048a71e
add esp, 0xc
test eax, eax
je 0x47e84b
push esi
push esi
push esi
push esi
push esi
call fcn.0047110b
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0048b509
add esp, 0xc
jmp 0x47e893
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x47e893
cmp ebp, 0xffffffff
je 0x47e893
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4bf3ec]
push dword [esi]
call fcn.00471240
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x48b509
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0047d4ff
xor ebx, ebx
cmp dword [0x4c4410], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x48b5df
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x48b6bf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x48b6bf
push eax
call fcn.0047d491
mov dword [esp], 0x49fa08
push edi
mov dword [0x4c4410], eax
call esi
push eax
call fcn.0047d491
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4c4414], eax
call esi
push eax
call fcn.0047d491
mov dword [0x4c4418], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0047b78e
test eax, eax
pop ecx
pop ecx
je 0x48b5ad
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0047110b
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x48b5df
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0047d491
cmp eax, ebx
pop ecx
mov dword [0x4c4420], eax
je 0x48b5df
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0047d491
pop ecx
mov dword [0x4c441c], eax
mov eax, dword [0x4c441c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x48b664
cmp dword [0x4c4420], ecx
je 0x48b664
push eax
call fcn.0047d508
push dword [0x4c4420]
mov esi, eax
call fcn.0047d508
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x48b664
cmp edi, ebx
je 0x48b664
call esi
cmp eax, ebx
je 0x48b631
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x48b631
test byte [ebp - 0x18], 1
jne 0x48b664
lea eax, [ebp - 0x10]
push eax
call fcn.0047b7c5
test eax, eax
pop ecx
je 0x48b64c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0047110b
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x48b65b
or dword [ebp + 0x10], 0x200000
jmp 0x48b69f
or dword [ebp + 0x10], 0x40000
jmp 0x48b69f
mov eax, dword [0x4c4414]
cmp eax, dword [ebp - 8]
je 0x48b69f
push eax
call fcn.0047d508
cmp eax, ebx
pop ecx
je 0x48b69f
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x48b69f
mov eax, dword [0x4c4418]
cmp eax, dword [ebp - 8]
je 0x48b69f
push eax
call fcn.0047d508
cmp eax, ebx
pop ecx
je 0x48b69f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4c4410]
call fcn.0047d508
cmp eax, ebx
pop ecx
je 0x48b6bf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x48b6c1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret