joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409b0c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x1d
push 0xe
lea eax, [ebp - 0x20]
push eax
push 0xb
push 0x15
lea edx, [ebp - 0x10]
lea edi, [ebp - 0x48]
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 0x48], 0xd8
mov byte [ebp - 0x47], 0xe
mov byte [ebp - 0x46], 0xe9
mov byte [ebp - 0x45], 0xc5
mov byte [ebp - 0x44], 0x60
mov byte [ebp - 0x43], 0x29
mov byte [ebp - 0x42], 0x94
mov byte [ebp - 0x41], 0xc7
mov byte [ebp - 0x40], 0xa2
mov byte [ebp - 0x3f], 0x60
mov byte [ebp - 0x3e], 0x85
mov byte [ebp - 0x3d], 0x36
mov byte [ebp - 0x3c], 0xa6
mov byte [ebp - 0x3b], 0xe1
mov byte [ebp - 0x3a], 0x94
mov byte [ebp - 0x39], 0xaa
mov byte [ebp - 0x38], 0x58
mov byte [ebp - 0x37], 0x4c
mov byte [ebp - 0x36], 0x7c
mov byte [ebp - 0x35], 0xb1
mov byte [ebp - 0x34], 0x1a
mov byte [ebp - 0x10], 0xce
mov byte [ebp - 0xf], 0x2d
mov byte [ebp - 0xe], 0x16
mov byte [ebp - 0xd], 0xe5
mov byte [ebp - 0xc], 0x6a
mov byte [ebp - 0xb], 0x54
mov byte [ebp - 0xa], 0xae
mov byte [ebp - 9], 0xc6
mov byte [ebp - 8], 0xaf
mov byte [ebp - 7], 0x90
mov byte [ebp - 6], 0x1c
mov byte [ebp - 0x20], 0xf8
mov byte [ebp - 0x1f], 0x24
mov byte [ebp - 0x1e], 6
mov byte [ebp - 0x1d], 0xd4
mov byte [ebp - 0x1c], 0x6e
mov byte [ebp - 0x1b], 0x56
mov byte [ebp - 0x1a], 0xb6
mov byte [ebp - 0x19], 0xe7
mov byte [ebp - 0x18], 0xb8
mov byte [ebp - 0x17], 0x4c
mov byte [ebp - 0x16], 0x81
mov byte [ebp - 0x15], 0x3a
mov byte [ebp - 0x14], 0xc7
mov byte [ebp - 0x13], 0x7c
mov byte [ebp - 0x30], 0xf8
mov byte [ebp - 0x2f], 0x24
mov byte [ebp - 0x2e], 6
mov byte [ebp - 0x2d], 0xd4
mov byte [ebp - 0x2c], 0x6e
mov byte [ebp - 0x2b], 0x56
mov byte [ebp - 0x2a], 0xb6
mov byte [ebp - 0x29], 0xe7
mov byte [ebp - 0x28], 0xb8
mov byte [ebp - 0x27], 0x4c
mov byte [ebp - 0x26], 0x81
mov byte [ebp - 0x25], 0x3a
mov byte [ebp - 0x24], 0xc7
mov byte [ebp - 0x23], 0x7c
call fcn.004054e7
add esp, 0x14
test eax, eax
je 0x409c35
xor eax, eax
inc eax
jmp 0x409c49
push 0xe
push 0x1d
pop ecx
lea edi, [ebp - 0x30]
call fcn.00405fe7
neg eax
sbb eax, eax
pop ecx
neg eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0047548a
leave
ret
Function at 0x409c56
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x1e
push 0xc
push 0x22
lea ebx, [ebp - 0x18]
lea edi, [ebp - 0x3c]
mov byte [ebp - 0x3c], 0xdb
mov byte [ebp - 0x3b], 0xa
mov byte [ebp - 0x3a], 0xb1
mov byte [ebp - 0x39], 0xc4
mov byte [ebp - 0x38], 0xab
mov byte [ebp - 0x37], 0x80
mov byte [ebp - 0x36], 0xbd
mov byte [ebp - 0x35], 0x58
mov byte [ebp - 0x34], 0x22
mov byte [ebp - 0x33], 0x68
mov byte [ebp - 0x32], 0xf7
mov byte [ebp - 0x31], 0x60
mov byte [ebp - 0x30], 0x51
mov byte [ebp - 0x2f], 0x8e
mov byte [ebp - 0x2e], 0x4c
mov byte [ebp - 0x2d], 0x5b
mov byte [ebp - 0x2c], 0xff
mov byte [ebp - 0x2b], 0x47
mov byte [ebp - 0x2a], 0xa1
mov byte [ebp - 0x29], 0x99
mov byte [ebp - 0x28], 0x23
mov byte [ebp - 0x27], 0x28
mov byte [ebp - 0x26], 0x98
mov byte [ebp - 0x25], 0xb1
mov byte [ebp - 0x24], 0xb6
mov byte [ebp - 0x23], 0x92
mov byte [ebp - 0x22], 0x4a
mov byte [ebp - 0x21], 0xf3
mov byte [ebp - 0x20], 0x7f
mov byte [ebp - 0x1f], 0x69
mov byte [ebp - 0x1e], 0x8d
mov byte [ebp - 0x1d], 0x88
mov byte [ebp - 0x1c], 0x1e
mov byte [ebp - 0x1b], 0x90
mov byte [ebp - 0x18], 0xdb
mov byte [ebp - 0x17], 0xff
mov byte [ebp - 0x16], 0xb6
mov byte [ebp - 0x15], 0xc7
mov byte [ebp - 0x14], 0xc6
mov byte [ebp - 0x13], 0xa0
mov byte [ebp - 0x12], 0xdb
mov byte [ebp - 0x11], 0x63
mov byte [ebp - 0x10], 0x27
mov byte [ebp - 0xf], 0x8e
mov byte [ebp - 0xe], 0xf0
mov byte [ebp - 0xd], 0xee
mov byte [ebp - 0xc], 0xd6
mov byte [ebp - 0xb], 0xe
mov byte [ebp - 0xa], 0x99
mov byte [ebp - 9], 0xd5
mov byte [ebp - 8], 0xcc
mov byte [ebp - 7], 0xa4
mov byte [ebp - 6], 0x6b
call fcn.00405f5c
add esp, 0xc
test eax, eax
je 0x409d59
xor eax, eax
inc eax
jmp 0x409d6d
push 7
push 0x1e
pop ecx
lea edi, [ebp - 0xc]
call fcn.00405fe7
neg eax
sbb eax, eax
pop ecx
neg eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0047548a
leave
ret
Function at 0x409eb1
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x20
push 0xb
lea eax, [ebp - 0x10]
push eax
push 4
push 0x1e
lea edx, [ebp - 0x40]
lea edi, [ebp - 0x3c]
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 0x3c], 0xe2
mov byte [ebp - 0x3b], 3
mov byte [ebp - 0x3a], 0x41
mov byte [ebp - 0x39], 0xc3
mov byte [ebp - 0x38], 0x40
mov byte [ebp - 0x37], 0x2d
mov byte [ebp - 0x36], 0xe
mov byte [ebp - 0x35], 0x79
mov byte [ebp - 0x34], 0x21
mov byte [ebp - 0x33], 0x53
mov byte [ebp - 0x32], 0xd6
mov byte [ebp - 0x31], 0xad
mov byte [ebp - 0x30], 0x2e
mov byte [ebp - 0x2f], 0xa9
mov byte [ebp - 0x2e], 0xb0
mov byte [ebp - 0x2d], 0xd5
mov byte [ebp - 0x2c], 0x9d
mov byte [ebp - 0x2b], 0x39
mov byte [ebp - 0x2a], 3
mov byte [ebp - 0x29], 0x5c
mov byte [ebp - 0x28], 0x52
mov byte [ebp - 0x27], 0x1c
mov byte [ebp - 0x26], 0xce
mov byte [ebp - 0x25], 0x48
mov byte [ebp - 0x24], 0xe8
mov byte [ebp - 0x23], 0xf1
mov byte [ebp - 0x22], 0xcf
mov byte [ebp - 0x21], 0xa5
mov byte [ebp - 0x20], 0x8a
mov byte [ebp - 0x1f], 0x38
mov byte [ebp - 0x40], 0xd3
mov byte [ebp - 0x3f], 0x1d
mov byte [ebp - 0x3e], 0x6d
mov byte [ebp - 0x3d], 0x6f
mov byte [ebp - 0x10], 0xf0
mov byte [ebp - 0xf], 0x2a
mov byte [ebp - 0xe], 0x62
mov byte [ebp - 0xd], 0xe4
mov byte [ebp - 0xc], 0x52
mov byte [ebp - 0xb], 0x64
mov byte [ebp - 0xa], 0xea
mov byte [ebp - 9], 0x99
mov byte [ebp - 8], 0x3d
mov byte [ebp - 7], 0x77
mov byte [ebp - 6], 0x60
mov byte [ebp - 0x1c], 0xf0
mov byte [ebp - 0x1b], 0x2a
mov byte [ebp - 0x1a], 0x62
mov byte [ebp - 0x19], 0xe4
mov byte [ebp - 0x18], 0x52
mov byte [ebp - 0x17], 0x64
mov byte [ebp - 0x16], 0xea
mov byte [ebp - 0x15], 0x99
mov byte [ebp - 0x14], 0x3d
mov byte [ebp - 0x13], 0x77
mov byte [ebp - 0x12], 0x60
call fcn.004054e7
add esp, 0x14
test eax, eax
je 0x409fca
xor eax, eax
inc eax
jmp 0x409fde
push 0xb
push 0x20
pop ecx
lea edi, [ebp - 0x1c]
call fcn.00405fe7
neg eax
sbb eax, eax
pop ecx
neg eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0047548a
leave
ret
Function at 0x409feb
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x21
push 0xc
lea eax, [ebp - 0x28]
push eax
push 0xc
push 0x14
lea edx, [ebp - 0x10]
lea edi, [ebp - 0x3c]
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 0x3c], 0xe5
mov byte [ebp - 0x3b], 0xff
mov byte [ebp - 0x3a], 0xa
mov byte [ebp - 0x39], 0xc2
mov byte [ebp - 0x38], 0x8b
mov byte [ebp - 0x37], 0x84
mov byte [ebp - 0x36], 0x36
mov byte [ebp - 0x35], 0xa
mov byte [ebp - 0x34], 0xa0
mov byte [ebp - 0x33], 0x5b
mov byte [ebp - 0x32], 0x2f
mov byte [ebp - 0x31], 0xb3
mov byte [ebp - 0x30], 0xb3
mov byte [ebp - 0x2f], 0x6b
mov byte [ebp - 0x2e], 0x53
mov byte [ebp - 0x2d], 0x8a
mov byte [ebp - 0x2c], 0x3f
mov byte [ebp - 0x2b], 0x20
mov byte [ebp - 0x2a], 0xf5
mov byte [ebp - 0x29], 0xd2
mov byte [ebp - 0x10], 0xdb
mov byte [ebp - 0xf], 0x1e
mov byte [ebp - 0xe], 0x37
mov byte [ebp - 0xd], 0xe2
mov byte [ebp - 0xc], 0x95
mov byte [ebp - 0xb], 0xaf
mov byte [ebp - 0xa], 0x50
mov byte [ebp - 9], 0xe5
mov byte [ebp - 8], 0x88
mov byte [ebp - 7], 0x77
mov byte [ebp - 6], 0x3e
mov byte [ebp - 5], 0x72
mov byte [ebp - 0x28], 0xff
mov byte [ebp - 0x27], 0x13
mov byte [ebp - 0x26], 0x37
mov byte [ebp - 0x25], 0xd6
mov byte [ebp - 0x24], 0x99
mov byte [ebp - 0x23], 0xaf
mov byte [ebp - 0x22], 0x50
mov byte [ebp - 0x21], 0xf3
mov byte [ebp - 0x20], 0xa9
mov byte [ebp - 0x1f], 0x86
mov byte [ebp - 0x1e], 0x31
mov byte [ebp - 0x1d], 0x72
mov byte [ebp - 0x1c], 0xff
mov byte [ebp - 0x1b], 0x13
mov byte [ebp - 0x1a], 0x37
mov byte [ebp - 0x19], 0xd6
mov byte [ebp - 0x18], 0x99
mov byte [ebp - 0x17], 0xaf
mov byte [ebp - 0x16], 0x50
mov byte [ebp - 0x15], 0xf3
mov byte [ebp - 0x14], 0xa9
mov byte [ebp - 0x13], 0x86
mov byte [ebp - 0x12], 0x31
mov byte [ebp - 0x11], 0x72
call fcn.004054e7
add esp, 0x14
test eax, eax
je 0x40a104
xor eax, eax
inc eax
jmp 0x40a118
push 0xc
push 0x21
pop ecx
lea edi, [ebp - 0x1c]
call fcn.00405fe7
neg eax
sbb eax, eax
pop ecx
neg eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0047548a
leave
ret
Function at 0x40a125
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x4b1a62
call fcn.004764b0
xor edi, edi
mov esi, 0x4f9e00
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
call fcn.0040293e
lea eax, [ebp - 0x14]
push eax
push 0x20019
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360sd.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40a172
push esi
mov ecx, ebx
call fcn.0040293e
jmp 0x40a1c1
push 0x104
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], 0x208
call fcn.004027b2
lea ecx, [ebp - 0x18]
push ecx
push eax
push edi
push edi
push str.path
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x1c], eax
call fcn.0040b33f
cmp dword [ebp - 0x1c], edi
jne 0x40a168
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.00403c36
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402963
mov eax, ebx
call fcn.00476588
ret

Function at 0x40a1d4
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x4b1a62
call fcn.004764b0
xor edi, edi
mov esi, 0x4f9e00
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
call fcn.0040293e
lea eax, [ebp - 0x14]
push eax
push 0x20019
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360sd.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40a221
push esi
mov ecx, ebx
call fcn.0040293e
jmp 0x40a26c
push 0x104
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], 0x208
call fcn.004027b2
lea ecx, [ebp - 0x18]
push ecx
push eax
push edi
push edi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x1c], eax
call fcn.0040b33f
cmp dword [ebp - 0x1c], edi
jne 0x40a217
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.00403c36
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402963
mov eax, ebx
call fcn.00476588
ret
Function at 0x40a27f
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x198], eax
push ebx
push edi
lea ebx, [ebp - 0x80]
call fcn.0040a125
mov edi, dword [ebp - 0x80]
xor ebx, ebx
cmp dword [edi - 0xc], ebx
je 0x40a329
lea eax, [ebp - 0x74]
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360sd.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], 0x206
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a329
cmp dword [ebp - 0x74], ebx
je 0x40a329
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push ebx
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x74]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x40a31c
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
neg esi
sbb esi, esi
neg esi
lea ecx, [edi - 0x10]
call fcn.00402963
mov eax, esi
pop esi
jmp 0x40a333
lea ecx, [edi - 0x10]
call fcn.00402963
xor eax, eax
mov ecx, dword [ebp + 0x198]
pop edi
xor ecx, ebp
pop ebx
call fcn.0047548a
add ebp, 0x19c
leave
ret
Function at 0x40a4c6
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0xf0]
sub esp, 0x170
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0xec], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push edi
lea eax, [ebp - 0x80]
xor ebx, ebx
xor edi, edi
test eax, eax
je 0x40a51e
push str.GetNativeSystemInfo
push 0x4d37a8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40a518
lea ecx, [ebp - 0x80]
push ecx
call eax
jmp 0x40a51e
lea eax, [ebp - 0x80]
push eax
call esi
and dword [ebp - 0x38], ebx
lea eax, [ebp - 0x38]
push eax
push 0x64
push 0
mov dword [ebp - 0x34], ebx
call sub.NETAPI32.dll_NetWkstaGetInfo
test eax, eax
jne 0x40a547
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0xc]
mov ebx, dword [eax + 0x10]
push eax
mov dword [ebp - 0x34], ecx
call sub.NETAPI32.dll_NetApiBufferFree
lea eax, [ebp - 0x5c]
push eax
call esi
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov esi, dword [ebp - 0x34]
cmp esi, 5
jne 0x40a5b1
cmp ebx, 1
jne 0x40a570
xor edi, edi
inc edi
jmp 0x40a5b1
cmp ebx, 2
jne 0x40a5b1
cmp byte [ebp + 0xea], 1
jne 0x40a58c
cmp word [ebp - 0x5c], 9
jne 0x40a58c
push 0x41
jmp 0x40a673
test dword [ebp + 0xe8], 0x8000
je 0x40a59d
push 0x71
pop edi
jmp 0x40a5b1
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, eax
neg edi
sbb edi, edi
and edi, 0x10
add edi, 0x51
cmp byte [ebp + 0xea], 1
jne 0x40a642
cmp word [ebp - 0x5c], 9
jne 0x40a608
cmp esi, 6
jne 0x40a5ff
test ebx, ebx
jne 0x40a5d5
push 0x42
jmp 0x40a673
cmp ebx, 1
jne 0x40a5e1
push 0x43
jmp 0x40a673
cmp ebx, 2
jne 0x40a5ed
push 0x44
jmp 0x40a673
cmp ebx, 3
jne 0x40a5f6
push 0x45
jmp 0x40a673
cmp ebx, 4
jne 0x40a674
push 0x46
jmp 0x40a673
cmp esi, 0xa
jne 0x40a674
test ebx, ebx
jmp 0x40a5f9
cmp esi, 6
jne 0x40a639
test ebx, ebx
jne 0x40a615
push 2
jmp 0x40a673
cmp ebx, 1
jne 0x40a61e
push 3
jmp 0x40a673
cmp ebx, 2
jne 0x40a627
push 4
jmp 0x40a673
cmp ebx, 3
jne 0x40a630
push 5
jmp 0x40a673
cmp ebx, 4
jne 0x40a674
push 6
jmp 0x40a673
cmp esi, 0xa
jne 0x40a674
test ebx, ebx
jmp 0x40a633
cmp word [ebp - 0x5c], 9
jne 0x40a65f
cmp esi, 6
jne 0x40a674
test ebx, ebx
jne 0x40a656
push 0x47
jmp 0x40a673
cmp ebx, 1
jne 0x40a674
push 0x48
jmp 0x40a673
cmp esi, 6
jne 0x40a674
test ebx, ebx
jne 0x40a66c
push 7
jmp 0x40a673
cmp ebx, 1
jne 0x40a674
push 8
pop edi
mov ecx, dword [ebp + 0xec]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047548a
add ebp, 0xf0
leave
ret
Function at 0x40ba91
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x4f3bd0]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov dword [esp + 0x18], eax
xor ebx, ebx
push ebx
lea eax, [esp + 0x10]
push eax
push 0x18
lea eax, [esp + 0x28]
mov edi, ecx
push eax
push edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], ebx
call esi
test eax, eax
je 0x40bbcc
cmp dword [esp + 0xc], 0x18
jne 0x40bbcc
cmp dword [esp + 0x1c], 3
jne 0x40bbcc
mov eax, dword [esp + 0x20]
cmp eax, 0x23c
jb 0x40bbcc
xor edx, edx
mov ecx, 0x23c
div ecx
test edx, edx
jne 0x40bbcc
lea eax, [esp + 0x10]
push eax
push edi
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xa00000
jg 0x40bbcc
cmp dword [esp + 0x10], ebx
jne 0x40bbcc
mov ecx, dword [esp + 0x20]
lea edx, [ecx + 0x18]
cmp eax, edx
jne 0x40bbcc
push ecx
call fcn.00474d33
mov edi, eax
pop ecx
cmp edi, ebx
je 0x40bbcc
push ebx
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x28]
push edi
push dword [esp + 0x24]
call esi
test eax, eax
je 0x40bbc0
mov eax, dword [esp + 0x20]
cmp dword [esp + 0xc], eax
jne 0x40bbc0
lea ecx, [esp + 0x34]
push ecx
push eax
push edi
call fcn.0040d26a
add esp, 0xc
push 0x10
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00478203
add esp, 0xc
test eax, eax
jne 0x40bbc0
mov ebx, dword [esp + 0x18]
lea esi, [ebx + 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x20]
xor edx, edx
mov ecx, 0x23c
div ecx
push eax
push edi
push ebx
call fcn.0040bbe2
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call fcn.00472af9
xor eax, eax
pop ecx
inc eax
jmp 0x40bbce
xor eax, eax
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047548a
mov esp, ebp
pop ebp
ret 4
Function at 0x40bea8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b3f91
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4f3bd0]
xor eax, esp
mov dword [esp + 0x3c], eax
push esi
push edi
mov eax, dword [0x4f3bd0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
cmp eax, edi
jne 0x40beee
xor eax, eax
jmp 0x40c06b
cmp dword [ebx + 0x40], edi
je 0x40c068
mov dword [esp + 0x10], edi
push edi
push edi
push 0x80
push 2
push 7
push 0x40000000
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x74], edi
call fcn.0040b82e
test eax, eax
je 0x40bf2f
cmp dword [esp + 0x10], edi
je 0x40bee7
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40bee7
lea esi, [ebx + 0x24]
push esi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x20]
imul eax, eax, 0x23c
mov dword [esp + 0x30], 3
mov dword [esp + 0x34], eax
cmp eax, edi
jne 0x40bf73
push esi
mov dword [ebx + 0x40], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x10], edi
je 0x40c068
push dword [esp + 0x10]
jmp 0x40c062
push eax
call fcn.00474d33
pop ecx
mov dword [esp + 0x18], eax
cmp eax, edi
jne 0x40bf8b
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x40bf1d
mov ecx, dword [ebx + 4]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 4]
lea edi, [esp + 0x28]
lea esi, [esp + 0x20]
mov dword [esp + 0x28], eax
call fcn.00416850
test al, al
jne 0x40bfe4
mov edi, 0x23c
push edi
call fcn.0040ccb0
add eax, 4
push eax
push dword [esp + 0x1c]
call fcn.00479950
add dword [esp + 0x20], edi
add esp, 0xc
call fcn.0040ccdb
jmp 0x40bf9f
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x38]
push dword [esp + 0x20]
call fcn.0040d26a
add esp, 0xc
push dword [esp + 0x1c]
xor edi, edi
mov dword [ebx + 0x40], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x10]
push esi
call fcn.0040b9ac
pop ecx
test eax, eax
je 0x40c053
push edi
lea eax, [esp + 0x20]
push eax
push 0x18
lea eax, [esp + 0x3c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40c034
call fcn.0040cee3
push dword [esp + 0x34]
lea eax, [esp + 0x14]
push dword [esp + 0x1c]
push eax
call fcn.0040b864
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_UnlockFile]
push dword [esp + 0x18]
call fcn.00472af9
pop ecx
cmp esi, edi
je 0x40c068
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0047548a
mov esp, ebp
pop ebp
ret 4
Function at 0x40cf48
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00476b30
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
test edi, edi
je 0x40cff4
mov word [edi], ax
test ebx, ebx
je 0x40cff4
push esi
mov esi, 0x4d43d8
push ebx
push dword [esi]
call fcn.004756c6
pop ecx
pop ecx
test eax, eax
je 0x40cf95
add esi, 8
cmp esi, str.TargetDir
jl 0x40cf7a
jmp 0x40cfdb
mov esi, dword [esi + 4]
cmp esi, 0xffffffff
je 0x40cfdb
push 0x2000
lea eax, [ebp - 0x2004]
push 0
push eax
call fcn.00475410
add esp, 0xc
push 1
push esi
lea eax, [ebp - 0x2004]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40cfdb
lea eax, [ebp - 0x2004]
push eax
call fcn.00475eae
cmp eax, dword [ebp + 8]
pop ecx
jl 0x40cfdf
xor eax, eax
jmp 0x40cff3
push eax
lea eax, [ebp - 0x2004]
push eax
push edi
call fcn.004753b9
xor eax, eax
add esp, 0xc
inc eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047548a
leave
ret

Function at 0x40d04f
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.00476b30
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0x3ffe
push eax
mov word [ebp - 0x4004], ax
lea eax, [ebp - 0x4002]
push eax
call fcn.00475410
and dword [ebp - 0x400c], 0
add esp, 0xc
test esi, esi
je 0x40d130
test edi, edi
je 0x40d130
lea eax, [ebp - 0x400c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x40d130
cmp eax, 0x3fff
ja 0x40d130
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40d130
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x4008]
push eax
push 0x4d2f50
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40d130
mov esi, dword [ebp + 0x10]
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.00475410
mov eax, dword [ebp - 0x4008]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str._d._d._d._d
dec esi
push esi
push edi
call fcn.00477b50
xor eax, eax
add esp, 0x28
inc eax
jmp 0x40d132
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047548a
leave
ret
Function at 0x40d140
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x1fa4]
mov eax, 0x2024
call fcn.00476b30
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x1fa0], eax
push esi
mov esi, dword [ebp + 0x1fac]
test esi, esi
jne 0x40d16e
xor eax, eax
jmp 0x40d1c5
push 0x1e
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00475410
push 0x2000
lea eax, [ebp - 0x60]
push 0
push eax
mov dword [ebp - 0x7c], 3
call fcn.00475410
push 0xfff
push esi
lea eax, [ebp - 0x60]
push 0x1000
push eax
call fcn.00476727
lea eax, [ebp - 0x60]
mov dword [ebp - 0x78], eax
mov eax, 0x614
mov word [ebp - 0x70], ax
add esp, 0x28
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x1fa0]
xor ecx, ebp
pop esi
call fcn.0047548a
add ebp, 0x1fa4
leave
ret

Function at 0x40d2f0
Capabilities:
Read file via mapping

Disassembly:
push ecx
push esi
push 0x10
xor esi, esi
push esi
push dword [esp + 0x18]
call fcn.00475410
add esp, 0xc
cmp dword [esp + 0xc], esi
je 0x40d39a
push ebx
push esi
push 1
push 3
push esi
push 1
push 1
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, esi
je 0x40d399
cmp ebx, 0xffffffff
je 0x40d392
push esi
push esi
push esi
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esp + 8], eax
cmp eax, esi
je 0x40d392
push ebp
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
cmp ebp, esi
je 0x40d387
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push esi
push esi
push ebx
call edi
push esi
push esi
push esi
push ebx
mov dword [esp + 0x28], eax
call edi
push dword [esp + 0x1c]
inc esi
push dword [esp + 0x1c]
push ebp
call fcn.0040d26a
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, esi
pop esi
pop ecx
ret