joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4834a8
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403c84
lea eax, [ebp - 4]
push eax
push 0x26
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.0040ebbc
test al, al
je 0x4834f3
lea eax, [ebp - 0x109]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov eax, ebx
lea edx, [ebp - 0x109]
mov ecx, 0x105
call fcn.00403eb4
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
call sub.kernel32.dll_GetTickCount
mov ebx, eax
mov eax, dword [0x4e61c0]
mov eax, dword [eax]
call fcn.0044f65c
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp esi, eax
jae 0x483762
pop esi
pop ebx
pop ebp
ret

Function at 0x485358
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc14
push ebx
xor ecx, ecx
mov dword [ebp - 0x3ec], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x4853e8
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x3e8
push edx
lea edx, [ebp - 0x3e8]
push edx
push eax
call sub.user32.dll_GetWindowTextA
mov eax, ebx
lea edx, [ebp - 0x3e8]
mov ecx, 0x3e8
call fcn.00403d6c
lea eax, [ebp - 0x3ec]
lea edx, [ebp - 0x3e8]
mov ecx, 0x3e8
call fcn.00403d6c
mov edx, dword [ebp - 0x3ec]
mov eax, 0x4853fc
call fcn.004041f0
mov edx, eax
dec edx
mov eax, ebx
call fcn.00404238
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4853ef
lea eax, [ebp - 0x3ec]
call fcn.00403c84
ret

Function at 0x485648
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor edx, edx
mov dword [ebp - 0x1c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4856c4
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x14
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
call sub.kernel32.dll_GetComputerNameA
mov eax, ebx
lea edx, [ebp - 0x18]
mov ecx, 0x14
call fcn.00403d6c
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0x18]
mov ecx, 0x14
call fcn.00403d6c
mov edx, dword [ebp - 0x1c]
mov eax, 0x4856d8
call fcn.004041f0
mov edx, eax
dec edx
mov eax, ebx
call fcn.00404238
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4856cb
lea eax, [ebp - 0x1c]
call fcn.00403c84
ret

Function at 0x4856dc
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
xor edx, edx
mov dword [ebp - 0x30], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x485758
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x28
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2c]
push eax
call sub.advapi32.dll_GetUserNameA
mov eax, ebx
lea edx, [ebp - 0x2c]
mov ecx, 0x28
call fcn.00403d6c
lea eax, [ebp - 0x30]
lea edx, [ebp - 0x2c]
mov ecx, 0x28
call fcn.00403d6c
mov edx, dword [ebp - 0x30]
mov eax, 0x48576c
call fcn.004041f0
mov edx, eax
dec edx
mov eax, ebx
call fcn.00404238
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48575f
lea eax, [ebp - 0x30]
call fcn.00403c84
ret
Function at 0x485d10
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004040b8
mov eax, dword [ebp - 8]
call fcn.004040b8
xor eax, eax
push ebp
push 0x485d7f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004040c8
push eax
mov eax, dword [ebp - 4]
call fcn.004040c8
push eax
push 0
call sub.URLMON.DLL_URLDownloadToFileA
lea edx, [ebp - 0xc]
call fcn.00409354
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485d86
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403ca8
ret
Function at 0x4a8f6c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
mov eax, 8
test byte [edx + 1], 0x80
setne bl
movzx edi, word [edx]
add edi, edi
mov esi, ecx
and esi, 0xff
mov ebp, esi
shr ebp, 7
or edi, ebp
cmp edi, 0xffff
jbe 0x4a8f9d
call fcn.00402e94
mov word [edx], di
test bl, bl
je 0x4a8fa9
xor word [edx], 0x1021
add esi, esi
and esi, 0xff
cmp esi, 0xff
jbe 0x4a8fbe
call fcn.00402e94
mov ecx, esi
dec eax
jne 0x4a8f75
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4b7fe4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4b7fec
push ecx
push ebx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004040b8
xor eax, eax
push ebp
push 0x4b81bb
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebx + 0x324]
cmp eax, 0x2710
jae 0x4b802c
call fcn.0040ce00
jmp 0x4b81a0
xor edx, edx
mov eax, ebx
call fcn.004b8248
mov dl, 1
mov eax, dword [ebx + 0x2d0]
call fcn.004523f8
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0x324], eax
push 0x4b81d0
lea eax, [ebp - 0x10]
call fcn.004b7d00
push dword [ebp - 0x10]
push 0x4b81dc
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403fc4
lea eax, [ebp - 8]
mov edx, dword [0x4e61d4]
mov edx, dword [edx]
call fcn.00403d1c
lea eax, [ebp - 0x1c]
call fcn.004834a8
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.00484678
push dword [ebp - 0x18]
push 0x4b81ec
lea eax, [ebp - 0x20]
call fcn.004b7d00
push dword [ebp - 0x20]
push 0x4b81fc
lea eax, [ebp - 0x24]
call fcn.004b7d00
push dword [ebp - 0x24]
push 0x4b81dc
lea eax, [ebp - 0x14]
mov edx, 6
call fcn.00403fc4
mov eax, dword [ebp - 0x14]
call fcn.004095f4
test al, al
je 0x4b810b
lea eax, [ebp - 0x2c]
call fcn.004834a8
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.00484678
push dword [ebp - 0x28]
push 0x4b81ec
lea eax, [ebp - 0x30]
call fcn.004b7d00
push dword [ebp - 0x30]
push 0x4b820c
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403fc4
push 0x4b81d0
lea eax, [ebp - 0x38]
call fcn.004b7d00
push dword [ebp - 0x38]
push 0x4b8218
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00403fc4
mov eax, dword [ebp - 0x34]
call fcn.004854ec
test eax, eax
jne 0x4b816c
call fcn.004859f8
push 0
push 1
push 1
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00403f50
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 8]
mov edx, 0x4b822c
call fcn.00481e44
mov eax, 0xbb8
call fcn.00483754
push 0
push 1
push 1
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 4]
mov edx, 0x4b823c
call fcn.00403f50
mov eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00403f50
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 8]
pop edx
call fcn.00481e44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b81c2
lea eax, [ebp - 0x44]
mov edx, 0x11
call fcn.00403ca8
ret
Function at 0x4c0b84
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x4c0bb2
mov eax, ebx
call fcn.004c1628
cmp dword [ebx + 0x3c], 0
je 0x4c0bab
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x4c0c23
mov edx, dword [ebx + 0x1a6]
cmp dword [edx + 0x10], 0
je 0x4c0c15
cmp dword [ebx + 8], 0
je 0x4c0bd4
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1a6]
call dword [edx]
test eax, eax
jne 0x4c0be6
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4c0c15
cmp dword [ebx + 8], 0
je 0x4c0bc7
cmp eax, 3
je 0x4c0bf9
dec eax
jne 0x4c0bc7
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4c0bc7
mov edx, dword [ebx + 0x132]
add dword [eax + 8], edx
jmp 0x4c0bc7
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x4c0c41
cmp dword [ebx + 0x10], 0xcc
je 0x4c0c41
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004c0c4c
pop ebx
ret
Function at 0x4df750
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004040b8
mov eax, dword [ebp - 8]
call fcn.004040b8
xor eax, eax
push ebp
push 0x4df858
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x4df86c
mov edx, 0x4df878
mov eax, dword [ebp - 4]
call fcn.004841f4
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.00403d1c
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x4df86c
mov edx, 0x4df884
mov eax, dword [ebp - 4]
call fcn.004841f4
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.00403d1c
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x4df86c
mov edx, 0x4df878
mov eax, dword [ebp - 8]
call fcn.004841f4
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 8]
call fcn.00403d1c
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x4df86c
mov edx, 0x4df884
mov eax, dword [ebp - 8]
call fcn.004841f4
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 8]
call fcn.00403d1c
mov eax, dword [ebp - 8]
call fcn.00483ef8
test al, al
jne 0x4df822
mov cl, 1
mov edx, 0x3e8
mov eax, dword [ebp - 8]
call fcn.00485598
test al, al
jne 0x4df83d
push 5
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004040c8
push eax
push 0x4df888
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4df85f
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.00403ca8
ret
Function at 0x6d9d30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.sect_1
lea edi, [esi - 0x1d7000]
lea eax, [edi + 0x2a548c]
push dword [eax]
mov dword [eax], 0x90150e58
push eax
push edi
or ebp, 0xffffffff
jmp 0x6d9d62
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6d9d69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6d9d58
mov eax, 1
add ebx, ebx
jne 0x6d9d7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6d9d8c
jne 0x6d9dab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6d9dab
dec eax
add ebx, ebx
jne 0x6d9d98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6d9d70
add ebx, ebx
jne 0x6d9da7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6d9dfd
xor ecx, ecx
sub eax, 3
jb 0x6d9dc3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6d9e32
sar eax, 1
mov ebp, eax
jmp 0x6d9dce
add ebx, ebx
jne 0x6d9dce
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6d9d9c
inc ecx
add ebx, ebx
jne 0x6d9ddc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6d9d9c
add ebx, ebx
jne 0x6d9de9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6d9dde
jne 0x6d9dfa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6d9dde
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6d9e1c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6d9e0e
jmp 0x6d9d5e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6d9e1c
add edi, ecx
jmp 0x6d9d5e
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x107aa
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6d9e3e
cmp byte [edi], 0x26
jne 0x6d9e3e
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 0x6d9e43
lea edi, [esi + 0x2cc000]
mov eax, dword [edi]
or eax, eax
je 0x6d9ebb
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2eaac8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2eacd4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6d9e70
mov ecx, edi
jns 0x6d9e9f
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 + 0x2eacdc]
or eax, eax
je 0x6d9eb5
mov dword [ebx], eax
add ebx, 4
jmp 0x6d9e8d
call dword [esi + 0x2eacd8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x6d9eec
cmp al, 0xef
ja 0x6d9edf
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x6d9ec1
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x6d9ece
mov ebp, dword [esi + 0x2eace0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x6d9f20
sub esp, 0xffffff80
jmp 0x5c198b
Function at 0x401260
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x90
mov eax, dword [0x48dd78]
xor eax, esp
mov dword [esp + 0x8c], eax
push esi
lea eax, [esp + 8]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [esp + 8]
test esi, esi
je 0x40132b
xor ecx, ecx
push 0x7e
push ecx
lea edx, [esp + 0x1a]
push edx
mov dword [esp + 0x10], 1
mov word [esp + 0x1c], cx
call fcn.0043e9f0
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xc]
push edx
push 0
push str.CurrentVersion
push esi
mov dword [esp + 0x24], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
push ecx
call fcn.0043e8ba
fstp dword [esp + 8]
fld dword [esp + 8]
add esp, 4
fcomp qword [str.ffffff]
fnstsw ax
test ah, 0x41
jne 0x40132b
mov al, 1
pop esi
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.0043e9e1
add esp, 0x90
ret
mov ecx, dword [esp + 0x90]
pop esi
xor ecx, esp
xor al, al
call fcn.0043e9e1
add esp, 0x90
ret

Function at 0x401640
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
add eax, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4016b6
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x401685
cmp eax, 2
jne 0x4016a1
mov eax, dword [esp + 0x14]
test esi, esi
je 0x4016b0
test eax, eax
je 0x4016ab
test al, 1
jne 0x4016a1
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x4016b0
pop edi
mov eax, 0xd
pop esi
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc
Function at 0x4072e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx eax, word [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0xa
push eax
push ebp
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
xor edi, edi
cmp ebx, edi
jne 0x40730a
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x407301
push ebx
push ebp
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push edi
xor ecx, ecx
push edi
mov dword [esi + 0x24], ecx
mov ecx, dword [esi]
mov edx, dword [ecx + 0x10]
push edi
push esi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x20], eax
call edx
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 8

Function at 0x4075e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x90
mov eax, dword [0x48dd78]
xor eax, esp
mov dword [esp + 0x8c], eax
push esi
lea eax, [esp + 4]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [esp + 4]
test esi, esi
je 0x407680
xor ecx, ecx
push 0x7e
push ecx
lea edx, [esp + 0x1a]
push edx
mov dword [esp + 0x18], 1
mov word [esp + 0x1c], cx
call fcn.0043e9f0
add esp, 0xc
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push str.CurrentVersion
push esi
mov dword [esp + 0x20], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
push ecx
call fcn.0043e8ba
fstp dword [esp + 8]
add esp, 4
jmp 0x40768a
fld dword [0x4758dc]
fstp dword [esp + 4]
mov ecx, dword [esp + 0x90]
fld dword [esp + 4]
pop esi
xor ecx, esp
call fcn.0043e9e1
add esp, 0x90
ret
Function at 0x4076b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x98
mov eax, dword [0x48dd78]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
push edi
lea eax, [esp + 0xc]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [esp + 0xc]
test edi, edi
je 0x4077aa
xor ecx, ecx
push 0x7e
push ecx
lea edx, [esp + 0x26]
push edx
mov dword [esp + 0x14], 1
mov word [esp + 0x28], cx
call fcn.0043e9f0
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push str.CurrentVersion
push edi
mov dword [esp + 0x30], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
push ecx
call fcn.0043e8ba
fstp dword [esp + 0x18]
mov edx, dword [esi + 0x30]
push edx
call fcn.00440389
fstp dword [esp + 0x18]
mov eax, dword [esi + 0x34]
push eax
call fcn.00440389
fstp dword [esp + 0x14]
fld dword [esp + 0x1c]
add esp, 0xc
fld dword [esp + 0x14]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 1
jne 0x4077a8
fld dword [esp + 8]
fcompp
fnstsw ax
test ah, 1
jne 0x4077aa
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0043e9e1
add esp, 0x98
ret
fstp st(0)
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
xor ecx, esp
xor al, al
call fcn.0043e9e1
add esp, 0x98
ret

Function at 0x4077d0
Capabilities:
Delete file

Disassembly:
sub esp, 0x240
mov eax, dword [0x48dd78]
xor eax, esp
mov dword [esp + 0x23c], eax
xor eax, eax
push edi
mov edi, dword [esp + 0x248]
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov word [esp + 0x20], ax
mov eax, edi
mov dword [esp + 4], 0
lea edx, [eax + 2]
jmp 0x407820
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407820
sub eax, edx
push esi
sar eax, 1
mov esi, eax
xor eax, eax
push 0x21a
push eax
lea ecx, [esp + 0x32]
push ecx
mov word [esp + 0x34], ax
call fcn.0043e9f0
add esp, 0xc
cmp esi, 0x104
pop esi
jbe 0x407870
or eax, 0xffffffff
pop edi
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.0043e9e1
add esp, 0x240
ret 4
push 0x104
lea edx, [esp + 0x28]
push edi
push edx
call fcn.0043fecb
add esp, 0xc
lea edx, [esp + 4]
lea eax, [esp + 0x24]
mov ecx, 0x614
push edx
mov dword [esp + 0x10], eax
mov word [esp + 0x18], cx
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [esp + 0x240]
pop edi
xor ecx, esp
call fcn.0043e9e1
add esp, 0x240
ret 4
Function at 0x408f70
Capabilities:
Set registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x48dd78]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push edi
xor eax, eax
push 0x206
mov edi, ecx
push eax
lea ecx, [esp + 0x16]
push ecx
mov dword [esp + 0x14], 0
mov word [esp + 0x18], ax
call fcn.0043e9f0
add esp, 0xc
xor ebx, ebx
push ebx
lea edx, [esp + 0xc]
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SOFTWARE360SD
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x409098
mov eax, dword [edi + 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
lea edx, [esp + 0x14]
push edx
call fcn.0043fecb
lea eax, [esp + 0x18]
add esp, 0xc
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408ff0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub eax, edx
mov edx, dword [esp + 0xc]
sar eax, 1
add eax, eax
push eax
lea ecx, [esp + 0x14]
push ecx
push 1
push 0
push 0x475abc
push edx
call esi
test eax, eax
je 0x409027
mov ebx, 1
cmp byte [esp + 0x220], 0
jne 0x40908c
push 0x208
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0043e9f0
mov eax, dword [edi + 0x20]
mov ecx, dword [eax - 8]
push ecx
push eax
lea edx, [esp + 0x24]
push edx
call fcn.0043fecb
lea eax, [esp + 0x28]
add esp, 0x18
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409060
sub eax, edx
mov edx, dword [esp + 0xc]
sar eax, 1
add eax, eax
push eax
lea ecx, [esp + 0x14]
push ecx
push 1
push 0
push 0x475ab4
push edx
call esi
test eax, eax
je 0x40908c
inc ebx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [esp + 0x214]
pop edi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0043e9e1
add esp, 0x210
ret 4
Function at 0x40c440
Capabilities:
Access peb ldr_data
Get common file path
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4725c6
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x48dd78]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
mov eax, dword [0x48dd78]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
mov eax, dword [0x48d130]
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], eax
mov ecx, dword [0x48d130]
mov dword [esp + 0x224], 0
mov dword [esi + 4], ecx
mov edx, dword [0x48d130]
mov dword [esi + 8], edx
mov eax, dword [0x48d130]
mov dword [esi + 0xc], eax
mov ecx, dword [0x48d130]
lea edi, [esi + 0x10]
mov dword [edi], ecx
mov edx, dword [0x48d130]
mov dword [esi + 0x14], edx
mov eax, dword [0x48d130]
mov dword [esi + 0x18], eax
mov ecx, dword [0x48d130]
mov dword [esi + 0x1c], ecx
mov edx, dword [0x48d130]
mov dword [esi + 0x20], edx
mov eax, dword [0x48d130]
mov dword [esi + 0x28], eax
lea ecx, [esi + 0x38]
mov byte [esp + 0x224], 9
call fcn.0040b390
lea ecx, [esi + 0x54]
mov byte [esp + 0x224], 0xa
call fcn.0040b400
lea ecx, [esi + 0x70]
mov byte [esp + 0x224], 0xb
call fcn.0040b320
lea ecx, [esi + 0x8c]
mov byte [esp + 0x224], 0xc
call fcn.0040b320
lea ecx, [esi + 0xa8]
mov byte [esp + 0x224], 0xd
call fcn.0040b320
lea ecx, [esi + 0xc4]
mov byte [esp + 0x224], 0xe
call fcn.0040b470
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x1a]
push edx
mov byte [esp + 0x230], 0xf
mov byte [esi + 0x2c], 0
mov word [esp + 0x1c], cx
call fcn.0043e9f0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x475cec
push edi
call fcn.00405730
add esp, 0x10
mov dword [esi + 0x30], 0
mov eax, esi
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0043e9e1
add esp, 0x21c
ret