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

Disassembly:
mov eax, 0x499fed
call fcn.0047d43c
sub esp, 0x180
push ebx
lea eax, [ebp - 0x18c]
push esi
mov dword [ebp - 0x14], ecx
push eax
mov dword [ebp - 0x18c], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x188], 5
jne 0x41e6a1
push 2
pop esi
cmp dword [ebp - 0x184], esi
jne 0x41e6a1
cmp byte [ebp - 0xf2], 1
je 0x41e6a1
push 0x4bcb0c
push dword [ebp + 8]
call fcn.0047db50
pop ecx
pop ecx
test eax, eax
push 1
je 0x41e73c
lea eax, [ebp + 0xb]
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp + 8]
call fcn.00402e7f
xor ebx, ebx
mov dword [ebp - 4], esi
cmp dword [ebp - 0x94], ebx
je 0x41e692
mov al, byte [ebp + 0xb]
push edi
mov byte [ebp - 0x28], al
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0xa0]
push eax
push ebx
push 0x2c
mov byte [ebp - 4], 3
call fcn.0040b1b4
lea eax, [ebp - 0xd]
push ebx
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], 0x4a36b8
mov dword [ebp - 0x30], 0x4a36b0
call fcn.00403cd9
xor edi, edi
mov byte [ebp - 4], 4
xor esi, esi
cmp dword [ebp - 0x24], ebx
je 0x41e679
mov eax, dword [ebp - 0x20]
push 0x28
sub eax, dword [ebp - 0x24]
pop ecx
cdq
idiv ecx
cmp edi, eax
jae 0x41e679
lea eax, [ebp - 0x15]
push 1
push eax
push str.dotnetfxsp1.exe
lea ecx, [ebp - 0xf0]
call fcn.00402e7f
push eax
mov eax, dword [ebp - 0x24]
add eax, esi
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.0041b5e8
add esp, 0xc
push ebx
lea ecx, [ebp - 0x50]
push ebx
push ecx
mov ecx, dword [ebp - 0x14]
push eax
mov byte [ebp - 4], 6
call fcn.00425fee
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 5
call fcn.00402438
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 4
call fcn.00402438
inc edi
add esi, 0x28
jmp 0x41e5fd
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.00402438
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00407b12
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
jmp 0x41e735
xor esi, esi
lea eax, [ebp - 0xd]
push esi
push eax
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x78], 0x4a36b8
mov dword [ebp - 0x58], 0x4a36b0
call fcn.00403cd9
push 0x4bcb0c
mov dword [ebp - 4], esi
push dword [ebp + 8]
call fcn.0047db50
pop ecx
test eax, eax
pop ecx
jne 0x41e72e
lea eax, [ebp + 0xb]
push 1
push eax
push str.dotnetfxsp1.exe
lea ecx, [ebp - 0x50]
call fcn.00402e7f
mov ecx, dword [ebp - 0x14]
push esi
lea eax, [ebp - 0x78]
push 1
push eax
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 4], 1
call fcn.00425fee
mov ebx, eax
lea ecx, [ebp - 0x50]
neg ebx
sbb bl, bl
and byte [ebp - 4], 0
inc bl
call fcn.00402438
test bl, bl
je 0x41e72e
mov ecx, dword [ebp - 0x14]
call fcn.00428f99
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00402438
xor eax, eax
jmp 0x41e73d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00402438
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4214c6
Capabilities:
Delete file
Enumerate files on windows
Get common file path

Disassembly:
mov eax, 0x49a583
call fcn.0047d43c
sub esp, 0x5c0
and byte [ebp - 0x5cc], 0
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x5cb]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x5cc]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0xf]
push 1
push eax
lea eax, [ebp - 0x5cc]
push eax
lea ecx, [ebp - 0x64]
call fcn.00401884
and dword [ebp - 4], 0
mov eax, str..mst
mov ecx, eax
mov dword [ebp - 0x3c], 0x4a3670
test ecx, ecx
mov dword [ebp - 0x1c], 0x4a3668
jne 0x42153a
mov eax, 0x4c6e10
lea ecx, [ebp - 0xd]
push 0
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.004011a9
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x64]
push eax
mov byte [ebp - 4], 1
call fcn.00418fbc
and byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00401093
or edi, 0xffffffff
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x1cc]
lea ecx, [ebp - 0x64]
push eax
mov byte [ebp - 4], 2
call fcn.00401a14
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, edi
je 0x421636
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x1c0]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jg 0x421614
lea eax, [ebp - 0xd]
push 1
push eax
lea eax, [ebp - 0x5cc]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00401884
lea eax, [ebp - 0xe]
push 1
push eax
lea eax, [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 3
call fcn.00401884
lea eax, [ebp - 0x8c]
lea ecx, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 4
call fcn.00418fbc
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 3
call fcn.00401093
lea ecx, [ebp - 0x3c]
call fcn.00401a14
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.00401093
lea eax, [ebp - 0x1cc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x421592
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x421636
push esi
call eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], edi
call fcn.00401093
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x424a2b
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x49abf4
call fcn.0047d43c
sub esp, 0x440
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x44b]
mov byte [ebp - 0x44c], bl
mov dword [ebp - 0x10], 0x208
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10]
mov edi, dword [ebp + 8]
push eax
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x424b24
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
mov byte [ebp - 0x244], 0x22
call fcn.00401166
mov ecx, eax
call fcn.004325bb
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.004042dd
push eax
lea eax, [ebp - 0x243]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00402438
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x244]
push 0x4bdef0
push eax
call esi
lea eax, [ebp - 0x44c]
push 0x20
push eax
call fcn.0047f4d0
pop ecx
cmp eax, ebx
pop ecx
je 0x424b24
push eax
lea eax, [ebp - 0x244]
push eax
call esi
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x244]
push eax
push 1
push ebx
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
jmp 0x424b26
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x428410
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x49b36e
call fcn.0047d43c
sub esp, 0x18c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x12]
mov ebx, 0x4a3670
mov esi, 0x4a3668
push edi
push eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], 1
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x4c], esi
call fcn.00401907
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 2
push eax
call fcn.00428617
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00401a14
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], edi
push ecx
push 0x20019
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x428499
lea ecx, [ebp - 0x10]
call fcn.00410d42
mov ecx, dword [ebp + 0xc]
cmp eax, edi
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
sete byte [ebp + 0xf]
call fcn.00401093
cmp byte [ebp + 0xf], 0
je 0x4285cf
and byte [ebp - 0x198], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x197]
and dword [ebp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x104
push eax
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp + 0xc]
push eax
push 0
push 0x4be5f4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x428519
mov edi, dword [ebp + 8]
lea eax, [ebp + 0xf]
push 0
push eax
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 0x20], esi
call fcn.00401907
mov dword [ebp - 0x18], 1
jmp 0x4285eb
lea eax, [ebp + 0xf]
push 1
push eax
lea eax, [ebp - 0x198]
push eax
lea ecx, [ebp - 0x44]
call fcn.00401884
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x6c]
push eax
mov byte [ebp - 4], 4
call fcn.00401d3d
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00401093
mov eax, 0x4bc52c
mov dword [ebp - 0x44], ebx
mov ecx, eax
mov dword [ebp - 0x24], esi
test ecx, ecx
mov edi, 0x4c6e10
jne 0x428562
mov eax, edi
lea ecx, [ebp + 0xf]
push 0
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.004011a9
mov eax, 0x4bd6e0
mov byte [ebp - 4], 5
mov ecx, eax
mov dword [ebp - 0x94], ebx
test ecx, ecx
mov dword [ebp - 0x74], esi
jne 0x42858b
mov eax, edi
lea ecx, [ebp - 0x11]
push 0
push ecx
push eax
lea ecx, [ebp - 0x94]
call fcn.004011a9
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 6
call fcn.0042a8e1
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 5
call fcn.00401093
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00401093
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x6c]
push 0
push eax
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 0x20], esi
call fcn.00401d87
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.00401093
cmp dword [ebp - 0x10], 0
je 0x428606
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x429707
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x49b5e0
call fcn.0047d43c
push ecx
mov eax, 0x182c
call fcn.0047dbe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
mov dword [ebp - 4], ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x429788
call esi
cmp byte [ebp + 0x14], bl
je 0x429765
cmp eax, 0x20
je 0x42975e
cmp eax, 0x21
jne 0x429765
xor eax, eax
jmp 0x4298a7
cmp eax, ebx
jle 0x429775
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x429788
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push 0x4af128
push eax
call fcn.0047ecc7
push 0x2800
call fcn.0047d58e
cmp eax, ebx
mov edi, eax
pop ecx
mov dword [ebp - 0x2c], edi
setne byte [ebp - 0x30]
mov byte [ebp - 4], 1
mov dword [ebp + 0x14], ebx
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x2800
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0044c77f
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x429802
mov dword [ebp - 0x834], eax
lea eax, [ebp - 0x830]
push ebx
push eax
call fcn.0047dc10
pop ecx
lea esi, [ebp - 0x834]
pop ecx
lea edi, [ebp - 0x1038]
mov ecx, 0x201
lea eax, [ebp - 0x1038]
mov byte [ebp - 0x430], bl
push 0x4af118
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.0047ecc7
cmp dword [ebp + 0xc], ebx
je 0x42987b
lea eax, [ebp - 0x1c]
push ebx
push eax
push dword [ebp + 0xc]
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x429848
call esi
test eax, eax
jg 0x429827
call esi
jmp 0x429833
call esi
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x429848
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push 0x4af128
push eax
call fcn.0047ecc7
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0xc]
je 0x42987b
call esi
test eax, eax
jg 0x42985a
call esi
jmp 0x429866
call esi
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x42987b
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push 0x4af128
push eax
call fcn.0047ecc7
mov eax, dword [ebp + 0xc]
add dword [ebp + 0x14], eax
cmp eax, ebx
ja 0x4297a5
cmp byte [ebp - 0x30], bl
je 0x429895
push edi
call fcn.0044c894
pop ecx
cmp dword [ebp - 0x14], 0xffffffff
je 0x4298a4
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x42a0bc
Capabilities:
Delete directory
Delete file

Disassembly:
mov eax, 0x49b6ef
call fcn.0047d43c
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov edi, dword [esi + 0x2c]
mov dword [ebp - 4], 1
cmp edi, dword [esi + 0x30]
je 0x42a0f0
mov ecx, edi
call fcn.004042dd
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add edi, 0x28
jmp 0x42a0d8
mov ecx, esi
call fcn.004042dd
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
and byte [ebp - 4], 0
lea ecx, [esi + 0x28]
call fcn.00407b12
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00402438
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x42e633
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x49bda6
call fcn.0047d43c
push ecx
push ecx
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x14], ebx
call fcn.0047f614
mov eax, 0x4a4e48
lea edi, [ebx + 0x10]
mov esi, eax
and dword [ebp - 4], 0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x20]
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x30]
lea eax, [ebp - 0xd]
mov edi, 0x4a3670
mov esi, 0x4a3668
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00401907
lea ecx, [ebx + 0x58]
lea eax, [ebp - 0xe]
push 0
push eax
mov byte [ebp - 4], 1
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00401907
mov eax, dword [ebp + 8]
mov ecx, ebx
mov byte [ebp - 4], 2
mov dword [ebx], 0x4a3898
mov dword [ebx + 0xc], eax
call fcn.0042e7c1
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x42e6c5
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x49bdce
call fcn.0047d43c
push ecx
push ecx
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x14], ebx
call fcn.0047f614
and dword [ebp - 4], 0
lea edi, [ebx + 0x30]
lea eax, [ebp - 0xd]
mov esi, 0x4a3668
push 0
push eax
mov ecx, edi
mov dword [edi], 0x4a3670
mov dword [edi + 0x20], esi
call fcn.00401907
lea ecx, [ebx + 0x58]
lea eax, [ebp - 0xe]
push 0
push eax
mov byte [ebp - 4], 1
mov dword [ecx], 0x4a3670
mov dword [ecx + 0x20], esi
call fcn.00401907
mov esi, dword [ebp + 8]
mov dword [ebx], 0x4a3898
mov ecx, edi
mov byte [ebp - 4], 2
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
lea eax, [esi + 0x30]
push eax
call fcn.00401d3d
lea eax, [esi + 0x58]
lea ecx, [ebx + 0x58]
push eax
call fcn.00401d3d
add esi, 0x20
lea edi, [ebx + 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x10]
lea edi, [ebx + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x430ebe
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
and dword [ebp - 0x14], 0
push esi
push edi
mov edi, ecx
call fcn.0040116a
push 1
lea eax, [ebp - 0xd0]
pop esi
mov dword [ebp - 0xd0], 0x94
push eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 4], eax
sub eax, 0
mov dword [ebp - 8], ecx
je 0x430f6e
dec eax
je 0x430f63
dec eax
jne 0x430f75
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x18], 2
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x3c]
push 4
dec eax
pop ecx
je 0x430f53
dec eax
je 0x430f4a
dec eax
jne 0x430f56
mov dword [ebp - 0x18], 5
jmp 0x430f56
mov dword [ebp - 0x18], 3
jmp 0x430f56
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0xcc], ecx
jb 0x430f75
mov dword [ebp - 0x14], esi
jmp 0x430f75
movzx eax, cx
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], eax
jmp 0x430f75
mov dword [ebp - 0x18], 7
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.00401166
mov ecx, eax
call fcn.004324f2
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x4313ae
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, edx
dec edx
test eax, eax
je 0x4313e8
mov eax, dword [ecx + 0x74]
push esi
lea esi, [edx + 1]
mov edx, dword [ebp + 8]
push edi
mov ecx, dword [ebp + 0x10]
movzx edi, byte [edx]
and ecx, 0xff
xor ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 8
mov ecx, dword [eax + ecx*4]
inc edx
xor edi, ecx
dec esi
mov dword [ebp + 0x10], edi
jne 0x4313c6
pop edi
pop esi
mov eax, dword [ebp + 0x10]
pop ebp
ret 0xc
Function at 0x435933
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x49c871
call fcn.0047d43c
sub esp, 0x4d0
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x4db]
mov byte [ebp - 0x4dc], bl
push 0x400
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x4dc]
lea ecx, [esi + 0x20]
push eax
push 0x4c6e14
push str.ClickOncePackage
push 0x4bb2c0
call fcn.00402b3d
cmp byte [ebp - 0x4dc], bl
jne 0x435994
xor eax, eax
jmp 0x435ae8
lea eax, [ebp - 0xdc]
mov ecx, esi
push eax
call fcn.004325bb
mov eax, dword [eax + 8]
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x4359b1
mov eax, 0x4a36e0
cmp eax, ebx
mov dword [ebp - 0x3c], 0x4a3670
mov dword [ebp - 0x1c], 0x4a3668
jne 0x4359c8
mov eax, 0x4c6e10
lea ecx, [ebp - 0xe]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.004011a9
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 2
call fcn.00402438
push 1
lea eax, [ebp - 0xd]
pop esi
lea ecx, [ebp - 0x64]
push esi
push eax
lea eax, [ebp - 0x4dc]
push eax
call fcn.00401884
push ebx
lea eax, [ebp - 0xb4]
push ebx
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.004116e6
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 4
push ecx
lea ecx, [ebp - 0x8c]
push ecx
mov ecx, eax
call fcn.0040a943
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call fcn.00401d3d
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 4
call fcn.00401093
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 3
call fcn.00401093
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.00401093
push 4
lea eax, [ebp - 0xd]
sub esp, 0x28
lea ecx, [ebp - 0x38]
mov edi, esp
mov dword [ebp - 0x14], esp
push esi
push eax
call fcn.00418f32
push eax
mov ecx, edi
call fcn.0040ad1d
call fcn.0044cd4c
add esp, 0x2c
cmp al, bl
jne 0x435ab9
lea eax, [ebp - 0xd]
push esi
push eax
lea eax, [ebp - 0x4dc]
push eax
lea ecx, [ebp - 0x64]
call fcn.00401884
lea eax, [ebp - 0x64]
lea ecx, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 6
call fcn.00401d3d
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.00401093
push esi
push ebx
push ebx
lea ecx, [ebp - 0x3c]
call fcn.00401a14
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x20
pop ecx
cmp ecx, eax
lea ecx, [ebp - 0x3c]
sbb esi, esi
or dword [ebp - 4], 0xffffffff
neg esi
call fcn.00401093
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x43e2fe
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0
je 0x43e343
mov eax, dword [ebp + 8]
test eax, eax
je 0x43e318
and dword [eax], 0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edi, eax
cmp edi, 0xffffffff
jne 0x43e39f
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0043e1e5
lea eax, [ebp - 0x4c]
push 0x4b1fd8
push eax
call fcn.0047ecc7
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x43e39f
cmp dword [ebp + 8], 0
jne 0x43e378
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.0043de0e
lea eax, [ebp - 0x48]
push 0x4b1e88
push eax
call fcn.0047ecc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x43e39f
push 1
add esi, 0xc
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.0043e11e
lea eax, [ebp - 0x48]
push 0x4b1e88
push eax
call fcn.0047ecc7
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x43f607
Capabilities:
Get common file path
Set current directory

Disassembly:
mov eax, 0x49dae8
call fcn.0047d43c
sub esp, 0x14
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
lea eax, [ebp - 0xd]
push 0
push eax
mov dword [esi], 0x4a36b8
mov dword [esi + 0x20], 0x4a36b0
call fcn.00403cd9
lea eax, [ebp - 0x20]
push 0x105
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00402f01
mov edi, eax
mov ecx, dword [edi]
mov byte [ebp - 4], 2
call fcn.004042dd
push eax
push 0x104
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00403013
lea ecx, [ebp + 8]
call fcn.004042dd
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402438
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0x28

Function at 0x43f6a0
Capabilities:
Set current directory

Disassembly:
mov eax, 0x49dafc
call fcn.0047d43c
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
cmp dword [esi + 0xc], 0
je 0x43f6c7
call fcn.004042dd
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00402438
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x440a6e
Capabilities:
Persist via run registry key

Disassembly:
mov eax, 0x49dc58
call fcn.0047d43c
sub esp, 0x38
push ebx
push esi
push edi
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
mov edi, ecx
push esi
call fcn.00440d0c
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnceEx
push esi
mov ecx, edi
mov ebx, eax
call fcn.00440d0c
push str.SYSTEMCurrentControlSetControlSession_ManagerFileRenameOperations
push esi
mov ecx, edi
mov dword [ebp - 0x14], eax
call fcn.00440d0c
push 0x4c0820
push str.SYSTEMCurrentControlSetControlSession_Manager
push esi
mov ecx, edi
mov dword [ebp - 0x18], eax
call fcn.00440da8
push str.rename
push str._WindowsFolder_Wininit.ini
mov ecx, edi
mov esi, eax
call fcn.00440b95
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xd]
push 0
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], 0x4a3670
mov dword [ebp - 0x24], 0x4a3668
call fcn.00401907
and dword [ebp - 4], 0
cmp ebx, dword [edi + 0x2f0]
jle 0x440b09
push str.RunOnce
jmp 0x440b4c
mov eax, dword [ebp - 0x14]
cmp eax, dword [edi + 0x2f4]
jle 0x440b1b
push str.RunOnceEx
jmp 0x440b4c
cmp esi, dword [edi + 0x2f8]
jle 0x440b2a
push str.PendingFileRenameOperations
jmp 0x440b4c
mov eax, dword [ebp - 0x18]
cmp eax, dword [edi + 0x2fc]
jle 0x440b3c
push str.FileRenameOperations
jmp 0x440b4c
mov eax, dword [ebp - 0x1c]
cmp eax, dword [edi + 0x300]
jle 0x440b5d
push str.Wininit.ini_rename
lea eax, [ebp - 0x44]
push str.Reboot_required____s_key_added
push eax
call fcn.00419226
add esp, 0xc
cmp dword [ebp - 0x38], 0
je 0x440b76
push 0
push 1
pop ebx
lea eax, [ebp - 0x44]
push ebx
push eax
mov ecx, edi
call fcn.00440f22
jmp 0x440b78
xor bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00401093
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret