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

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x788d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x788d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x788d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x788d94
push eax
push esi
call fcn.0078b20b
add esp, 8
pop esi
ret 0x10

Function at 0x788da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x788e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x788e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x7a1320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0078adff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x788dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x788e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x788ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x788eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x7a1320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0078adff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x788eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x788e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x789000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x789131
push esi
call fcn.0078c145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.0077b080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x789131
push 0
push ebp
call fcn.0077b3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.0077b260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x78908b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.0077b2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x789121
push 0x7a1918
push edi
call fcn.0078a3f0
push eax
push ebx
push esi
call fcn.00788f60
push 0x7a18f8
push edi
call fcn.0078a3f0
push eax
push ebx
push esi
call fcn.00788f60
push 0x7a18d8
push edi
call fcn.0078a3f0
push eax
push ebx
push esi
call fcn.00788f60
push 0x7a18c0
push edi
call fcn.0078a3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00788f60
push 0x7a18a0
push edi
call fcn.0078a3f0
push eax
push ebx
push esi
call fcn.00788f60
push 0x7a1888
push edi
call fcn.0078a3f0
push eax
push ebx
push esi
call fcn.00788f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x78a1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.0078a140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0078a140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0078a140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0078a140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x78abfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x78ac50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x79c87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x78ac43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x78ac52
xor eax, eax
pop esi
leave
ret 4
Function at 0x41c5a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
or ebp, 0xffffffff
jmp 0x41c5c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41c5c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41c5b8
mov eax, 1
add ebx, ebx
jne 0x41c5db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41c5d0
jne 0x41c5ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41c5d0
xor ecx, ecx
sub eax, 3
jb 0x41c600
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41c672
mov ebp, eax
add ebx, ebx
jne 0x41c60b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41c618
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41c63c
inc ecx
add ebx, ebx
jne 0x41c628
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41c61d
jne 0x41c639
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41c61d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41c65c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41c64d
jmp 0x41c5be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41c65c
add edi, ecx
jmp 0x41c5be
pop esi
mov edi, esi
mov ecx, 0x462
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41c67a
cmp byte [edi], 1
jne 0x41c67a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41c67f
lea edi, [esi + 0x1a000]
mov eax, dword [edi]
or eax, eax
je 0x41c6ee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1d214]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1d2b0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41c6ac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1d2b8]
or eax, eax
je 0x41c6e8
mov dword [ebx], eax
add ebx, 4
jmp 0x41c6c9
call dword [esi + 0x1d2b4]
mov ebp, dword [esi + 0x1d2bc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41c722
sub esp, 0xffffff80
jmp 0x4080e4
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x43cf4c
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x43ccda
inc esi
call fcn.0043cf70
and esi, eax
xor dword [ecx], edx
push 0x204aa9e3
pop esi
inc esi
inc ecx
sub esi, 0xcd743bc1
cmp ecx, edi
jne fcn.0043cf4c
sub eax, esi
ret
Function at 0x408948
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop edx
call fcn.00408970
add esi, 0x6cf4a0c4
xor dword [ecx], edx
push eax
pop esi
sub eax, 0xc2d1044e
add ecx, 1
and esi, esi
cmp ecx, edi
jne fcn.00408948
ret
Function at 0x4f32b4
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov edx, 0x4f302c
inc ecx
call fcn.004f32df
dec ecx
mov ecx, 0x9f0c2fab
xor dword [edi], edx
sub ebx, ecx
inc edi
add ecx, ecx
inc ecx
cmp edi, esi
jne fcn.004f32b4
sub ebx, 0xf3f91dbb
ret
Function at 0x6aa260
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x65b015
lea edi, [esi - 0x25a015]
push edi
or ebp, 0xffffffff
jmp 0x6aa282
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6aa289
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6aa278
mov eax, 1
add ebx, ebx
jne 0x6aa29b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6aa2ac
jne 0x6aa2cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6aa2cb
dec eax
add ebx, ebx
jne 0x6aa2b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6aa290
add ebx, ebx
jne 0x6aa2c7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6aa31d
xor ecx, ecx
sub eax, 3
jb 0x6aa2e3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6aa352
sar eax, 1
mov ebp, eax
jmp 0x6aa2ee
add ebx, ebx
jne 0x6aa2ee
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6aa2bc
inc ecx
add ebx, ebx
jne 0x6aa2fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6aa2bc
add ebx, ebx
jne 0x6aa309
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6aa2fe
jne 0x6aa31a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6aa2fe
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6aa33c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6aa32e
jmp 0x6aa27e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6aa33c
add edi, ecx
jmp 0x6aa27e
pop esi
mov edi, esi
mov ecx, 0xae79
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6aa35a
cmp byte [edi], 0xe
jne 0x6aa35a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x6aa35f
lea edi, [esi + 0x2a8000]
mov eax, dword [edi]
or eax, eax
je 0x6aa3d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2aa534]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2aa570]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6aa38c
mov ecx, edi
jns 0x6aa3bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2aa578]
or eax, eax
je 0x6aa3d1
mov dword [ebx], eax
add ebx, 4
jmp 0x6aa3a9
call dword [esi + 0x2aa574]
mov ebp, dword [esi + 0x2aa57c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x6aa40b
sub esp, 0xffffff80
jmp 0x402ba0
Function at 0x4038e2
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi]
push edi
xor edi, edi
test eax, eax
je 0x4038fa
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea eax, [edi + 0x2d0]
push eax
mov ecx, esi
call fcn.0043fddf
test edi, edi
jg 0x403985
mov eax, dword [esi]
and word [eax], 0
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ebp
mov ebp, 0x208
push ebp
push eax
push 0x4aecec
call ebx
mov edi, eax
test edi, edi
jg 0x403974
mov eax, dword [esi]
push ebp
push eax
push 0x4aece0
call ebx
mov edi, eax
test edi, edi
jg 0x403974
push 0
push 0x24
push dword [esi]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
jle 0x403984
mov eax, dword [esi]
push 0x4aecd4
lea eax, [eax + edi*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
add edi, 5
test edi, edi
jle 0x403984
mov eax, dword [esi]
mov word [eax + edi*2], 0x5c
mov eax, dword [esi]
inc edi
and word [eax + edi*2], 0
pop ebp
push dword [esi]
mov ebx, 0x4c9048
mov ecx, ebx
call fcn.0041d2b5
test edi, edi
jle 0x4039a3
push dword [esi]
call fcn.00499edd
test eax, eax
pop ecx
jne 0x4039d1
push 0
push 0x24
push dword [esi]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.TEMP_
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [esi]
mov ecx, ebx
call fcn.0041d2b5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x403dc4
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
and word [ebp - 0x44], 0
push 0x20
lea eax, [ebp - 0x44]
push eax
push str.LC_ALL
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp word [ebp - 0x44], 0
jne 0x403dfa
push 0x20
lea eax, [ebp - 0x44]
push eax
push 0xb
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp word [ebp - 0x44], 0
lea eax, [ebp - 0x44]
jne 0x403e09
mov eax, 0x4aeee4
push eax
mov ecx, 0x4c8c3c
call fcn.0044845d
push dword [0x4c8c3c]
call fcn.004408e4
cmp eax, 1
pop ecx
jle 0x403e2b
mov word [0x4cc010], ax
leave
ret

Function at 0x403f84
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_GetLastInputInfo]
lea eax, [ebp - 8]
xor ebx, ebx
push eax
mov dword [ebp - 8], 8
mov dword [ebp - 4], ebx
call edi
mov eax, dword [ebp - 4]
mov ecx, eax
sub ecx, dword [0x4c8bf4]
test ecx, ecx
jle 0x403fb7
mov dword [0x4c8bf4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [0x4c8bf4], eax
jmp 0x403fef
lea eax, [ebp - 8]
push eax
mov dword [ebp - 4], ebx
call edi
call esi
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jb 0x403fe7
sub eax, dword [0x4c8bf4]
cmp eax, dword [ebp + 8]
jae 0x403ff7
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x4c72b4], bl
jg 0x403fc7
mov eax, dword [ebp - 4]
mov ecx, eax
sub ecx, dword [0x4c8bf4]
pop esi
test ecx, ecx
jle 0x40400c
mov dword [0x4c8bf4], eax
xor eax, eax
cmp byte [0x4c72b4], bl
pop edi
setg al
pop ebx
leave
ret

Function at 0x4041e1
Capabilities:
Terminate process

Disassembly:
cmp byte [0x4c72b4], 2
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x14
pop esi
je 0x4041f8
push esi
call edi
cmp dword [0x4c8c04], 0
je 0x404213
push 0x1e
pop esi
jmp 0x404213
cmp dword [0x4c8bf8], 0
je 0x404216
push 0xa
call edi
dec esi
jns 0x404206
mov eax, dword [0x4c8bf8]
test eax, eax
pop edi
pop esi
je 0x404234
push 0
push eax
mov dword [0x4c8bf8], 0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov byte [0x4c72b4], 0xff
ret
Function at 0x40423c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 0xc]
mov esi, 0x8000004
push 0x64
push ebx
push esi
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
cmp edi, ebx
mov byte [ebp - 1], 1
je 0x40427d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40428e
mov byte [ebp - 1], bl
jmp 0x40428e
push dword [ebp + 0xc]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov edi, eax
cmp edi, ebx
je 0x4042ca
push ebx
push ebx
push ebx
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov dword [0x4c8c0c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4c8c0c]
cmp eax, ebx
je 0x4042ca
cmp byte [ebp - 1], bl
je 0x4042c5
push 0x64
push ebx
push eax
call fcn.0049a7e0
mov eax, dword [0x4c8c0c]
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405860
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
jne 0x40587c
lea ebx, [ebp - 0x14]
cmp dword [ebp + 0xc], edi
mov esi, dword [ebp + 0xc]
jne 0x40589a
cmp dword [ebp + 8], edi
lea esi, [ebp - 0x10]
je 0x405a25
push dword [ebx]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x26c
mov ecx, ebx
call fcn.0043fddf
push esi
call fcn.004038e2
mov edi, eax
lea eax, [edi + 1]
push eax
push dword [esi]
mov dword [ebp - 0x18], edi
push dword [ebx]
call fcn.0040542c
add esp, 0x10
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
and dword [ebp - 4], 0
and dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xc7
jmp 0x4058dd
mov edi, dword [ebp - 0x18]
cmp dword [ebp + 8], 0
je 0x405988
mov eax, dword [ebx]
lea eax, [eax + edi*2]
push 0x4af224
mov dword [ebp - 0x1c], eax
call fcn.0043c0b2
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [ebp + 0x14]
push str.pecmd__s._lu._lu_s_
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebx]
add esp, 0x18
xor edi, edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405947
push edi
push edi
push 5
mov ecx, 0x4c9048
call fcn.00414c28
dec dword [ebp - 8]
jns 0x4058da
jmp 0x405a01
cmp dword [ebp + 0xc], edi
mov dword [ebp - 0xc], 1
je 0x405a25
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea eax, [edi + 1]
push eax
push dword [ebx]
mov dword [ebp + 8], eax
push dword [esi]
call fcn.0040542c
mov eax, dword [esi]
mov word [eax + edi*2], 0x5c
mov eax, dword [ebp + 8]
mov ecx, dword [esi]
add esp, 0xc
and word [ecx + eax*2], 0
jmp 0x40598a
mov eax, edi
and dword [ebp + 8], 0
add eax, eax
mov dword [ebp + 0xc], eax
push dword [ebp + 0x18]
mov edi, dword [esi]
push dword [ebp + 8]
add edi, dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [ebp + 0x14]
push str.pecmd__s._lu._lu_s
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [esi]
add esp, 0x18
xor edi, edi
push edi
push 0x80
push 1
push edi
push edi
push 0x40000000
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], edi
call fcn.004054c4
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x4059fc
push edi
push edi
push 5
mov ecx, 0x4c9048
call fcn.00414c28
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xc8
jl 0x405993
mov eax, dword [esi]
and word [eax], di
cmp dword [ebp - 0xc], edi
jne 0x405a06
mov eax, dword [ebx]
mov word [eax], di
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x405a14
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
jmp 0x405a22
cmp dword [ebp - 4], edi
je 0x405a22
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 4]
lea ecx, [ebp - 0x10]
call fcn.00439cfd
lea ecx, [ebp - 0x14]
call fcn.00439cfd
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405a3c
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
push edi
push str.PECMD:MSGSVR:HWND
xor ebx, ebx
push ebx
call fcn.0040423c
pop ecx
pop ecx
call fcn.00403dc4
mov byte [0x4c8bea], 1
call fcn.0043a186
call fcn.0043b9d5
push ebx
push 0x24
pop edi
push edi
lea eax, [ebp - 0x12c]
push eax
push ebx
mov byte [ebp - 0x12c], bl
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push str.System32Kernel32.dll
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.user32.dll
mov dword [0x4c8f4c], eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4af290
push dword [ebp - 4]
mov dword [0x4c8f48], eax
call esi
push 7
pop ecx
mov dword [ebp - 0x28], edi
push str.GetNativeSystemInfo
push dword [ebp - 4]
mov dword [0x4c8ba0], eax
xor eax, eax
mov dword [ebp - 0x24], ebx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
call esi
cmp eax, ebx
je 0x405af6
lea ecx, [ebp - 0x28]
push ecx
call eax
cmp word [ebp - 0x28], bx
je 0x405b33
push str.Wow64RevertWow64FsRedirection
push dword [ebp - 4]
call esi
push str.Wow64DisableWow64FsRedirection
push dword [ebp - 4]
mov dword [0x4c8be4], eax
call esi
cmp dword [0x4c8be4], ebx
mov dword [0x4c8be0], eax
jne 0x405b28
mov dword [0x4c8be0], ebx
mov bl, 1
mov word [0x4c8bcc], 0x100
movsx eax, bl
push str.bX64
push eax
push 0x4c9048
mov byte [0x4c8be9], bl
call fcn.00442235
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret