joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40573e
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405d0e
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405762
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x40589b
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x7a0e40], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x7a0e40
je 0x4057a6
push 1
push 0
push esi
call fcn.004056c7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4058a1
cmp eax, edi
jg 0x4058a1
mov esi, 0x7a08b8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4058a1
cmp eax, edi
jg 0x4058a1
push esi
push ebp
push str._s_s_r_n
push 0x7a04b8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x7a26b0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405a12
push 4
push 0xc0000000
push esi
call fcn.004056c7
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x40589b
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405894
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405894
cmp edi, dword [esp + 0x18]
jne 0x405894
push str._Rename__r_n
push esi
call fcn.0040563c
test eax, eax
jne 0x4058a8
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.004059f0
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x7a04b8
push eax
call fcn.00405688
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x7a2730]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409330
push eax
call fcn.0040563c
test eax, eax
je 0x40585f
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x4058cf
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x4058c4
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405861
Function at 0x405d7a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a1244], 0
push esi
jne 0x405db1
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d8b
mov dword [ecx*4 + 0x7a1240], eax
inc ecx
cmp ecx, 0x100
jl 0x405d86
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405de2
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a1240]
xor eax, esi
inc ecx
dec edx
jne 0x405dc4
pop edi
not eax
pop esi
ret 0xc
Function at 0x1005c6c
Capabilities:
Modify service
Start service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x3008
call fcn.01008640
mov eax, dword [0x100b2b8]
push esi
push 0x32ce
lea ecx, [ebp - 0x2004]
mov dword [ebp - 4], eax
call fcn.01003a23
push 0x32d4
lea ecx, [ebp - 0x3004]
call fcn.01003a23
push 0xf003f
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 0x3008], eax
jne 0x1005cee
push 0x32cf
lea ecx, [ebp - 0x1004]
call fcn.01003a23
push 0x2010
lea eax, [ebp - 0x2004]
push eax
lea eax, [ebp - 0x1004]
push eax
push esi
call dword [fcn.010013f4]
xor eax, eax
jmp 0x1005dd9
push edi
push 0xf01ff
push 0x1002438
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, esi
jne 0x1005d37
push 0x32d0
lea ecx, [ebp - 0x1004]
call fcn.01003a23
push 0x2010
lea eax, [ebp - 0x2004]
push eax
lea eax, [ebp - 0x1004]
push eax
push esi
call dword [fcn.010013f4]
xor eax, eax
jmp 0x1005dd8
push ebx
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov ebx, eax
cmp ebx, esi
jne 0x1005d80
push 0x32d1
lea ecx, [ebp - 0x1004]
call fcn.01003a23
push 0x2010
lea eax, [ebp - 0x2004]
push eax
lea eax, [ebp - 0x1004]
push eax
push esi
call dword [fcn.010013f4]
xor eax, eax
jmp 0x1005dd7
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1005dc4
call dword [0x1001054]
cmp eax, 0x420
je 0x1005dc4
push 0x32d5
lea ecx, [ebp - 0x1004]
call fcn.01003a23
push 0x2030
lea eax, [ebp - 0x3004]
push eax
lea eax, [ebp - 0x1004]
push eax
push esi
call dword [fcn.010013f4]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push dword [ebp - 0x3008]
call esi
mov eax, ebx
pop ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
call fcn.01007a7c
leave
ret
Function at 0x100674a
Capabilities:
Get file version info

Disassembly:
mov eax, 0x1009078
call fcn.010085c8
sub esp, 0x42c
mov eax, dword [0x100b2b8]
push ebx
push edi
mov dword [ebp - 0x10], eax
xor ebx, ebx
xor eax, eax
mov word [ebp - 0x218], bx
mov ecx, 0x81
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x103
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [0x10010f8]
cmp eax, ebx
jne 0x10067b0
push 0x32cc
push 0x2010
push 0x32cb
call fcn.010058d9
xor eax, eax
jmp 0x1006964
push esi
lea eax, [ebp - 0x218]
push eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x420]
push eax
call fcn.01005ad6
lea eax, [ebp - 0x218]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
cmp eax, ebx
pop ecx
pop ecx
je 0x100694d
push 0x1002450
mov word [eax + 2], bx
push esi
lea eax, [ebp - 0x218]
push eax
call fcn.01005c33
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.0100899c
mov esi, eax
cmp esi, ebx
jne 0x1006826
push 0x32cc
push 0x2010
push 0x3330
jmp 0x100695c
push esi
call sub.MFC42u.dll_operatornew
pop ecx
mov dword [ebp - 0x424], eax
push eax
push esi
push ebx
lea eax, [ebp - 0x420]
push eax
mov dword [ebp - 4], ebx
call fcn.01008990
cmp eax, ebx
jne 0x1006864
push 0x32cc
push 0x2010
push 0x3330
call fcn.010058d9
xor esi, esi
jmp 0x1006939
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x438]
push eax
mov esi, 0x10024f8
push esi
push dword [ebp - 0x424]
call fcn.01008984
cmp eax, ebx
je 0x1006849
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0100899c
mov edi, eax
cmp edi, ebx
je 0x1006849
push edi
call sub.MFC42u.dll_operatornew
pop ecx
mov dword [ebp - 0x428], eax
push eax
push edi
push ebx
lea eax, [ebp - 0x218]
push eax
mov byte [ebp - 4], 1
call fcn.01008990
cmp eax, ebx
je 0x10068e2
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x434]
push eax
push esi
push dword [ebp - 0x428]
call fcn.01008984
cmp eax, ebx
jne 0x10068f3
push 0x32cc
push 0x2010
push 0x3330
jmp 0x1006923
mov eax, dword [ebp - 0x438]
mov edx, dword [eax + 8]
mov ecx, dword [ebp - 0x434]
cmp edx, dword [ecx + 8]
jne 0x1006914
mov eax, dword [eax + 0xc]
cmp eax, dword [ecx + 0xc]
jne 0x1006914
xor esi, esi
inc esi
jmp 0x100692a
push 0x32cc
push 0x2010
push 0x332f
call fcn.010058d9
xor esi, esi
push dword [ebp - 0x428]
mov byte [ebp - 4], bl
call sub.MFC42u.dll_operatordelete
pop ecx
push dword [ebp - 0x424]
or dword [ebp - 4], 0xffffffff
call sub.MFC42u.dll_operatordelete
pop ecx
mov eax, esi
jmp 0x1006963
push 0x32cc
push 0x2010
push 0x32cb
call fcn.010058d9
xor eax, eax
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01007a7c
leave
ret
Function at 0x1006b8e
Capabilities:
Query service status
Start service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x1006be8
push ebx
push esi
mov esi, dword [0x100108c]
push edi
push 0x64
pop ebx
push ebx
call esi
mov edi, dword [entry0]
mov dword [ebp - 4], ebx
jmp 0x1006bd6
cmp dword [ebp - 0x1c], 4
je 0x1006bec
cmp dword [ebp - 4], 0x927c0
ja 0x1006be3
push ebx
call esi
add dword [ebp - 4], ebx
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call edi
test eax, eax
jne 0x1006bc1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
xor eax, eax
inc eax
jmp 0x1006be5

Function at 0x1006bf6
Capabilities:
Query service status
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 0x1c]
push eax
push 1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1006c48
push esi
xor esi, esi
jmp 0x1006c3a
cmp esi, 0x927c0
ja 0x1006c45
push 0x64
call dword [0x100108c]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
add esi, 0x64
call dword [entry0]
test eax, eax
je 0x1006c45
cmp dword [ebp - 0x18], 1
jne 0x1006c16
xor eax, eax
inc eax
jmp 0x1006c47
xor eax, eax
pop esi
leave
ret 4

Function at 0x1006c51
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100b2b8]
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
push eax
push 0x1002600
lea eax, [ebp - 0x404]
push 0x1002444
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
lea eax, [ebp - 0x404]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov esi, dword [sym.imp.msvcrt.dll_wcscpy]
mov edi, eax
lea eax, [edi + 2]
push eax
lea eax, [ebp - 0x804]
push eax
call esi
push 0x10025fc
push edi
call esi
add esp, 0x28
lea eax, [ebp - 0x808]
push eax
push 1
xor esi, esi
push esi
lea eax, [ebp - 0x404]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1006cd6
xor eax, eax
jmp 0x1006d02
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x808]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, esi
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01007a7c
leave
ret 4
Function at 0x1006d15
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x100b2b8]
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
push eax
push 0x1002600
lea eax, [ebp - 0x404]
push 0x1002444
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
lea eax, [ebp - 0x404]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov esi, dword [sym.imp.msvcrt.dll_wcscpy]
mov edi, eax
lea eax, [edi + 2]
push eax
lea eax, [ebp - 0x804]
push eax
call esi
push 0x10025fc
push edi
call esi
add esp, 0x28
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x808]
push eax
xor esi, esi
push esi
push 0xf003f
push esi
push esi
push esi
lea eax, [ebp - 0x404]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1006dcf
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push esi
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
push dword [ebp - 0x808]
je 0x1006de7
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x32cc
push 0x2010
push 0x3315
call fcn.010058d9
xor eax, eax
jmp 0x1006dfc
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01007a7c
leave
ret 8
Function at 0x1006e0f
Capabilities:
Query service status

Disassembly:
mov eax, 0x10090a6
call fcn.010085c8
sub esp, 0x1c
mov eax, dword [0x100b704]
push ebx
push edi
xor edi, edi
cmp eax, edi
mov ebx, ecx
jne 0x1006e4e
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, edi
mov dword [0x100b704], eax
jne 0x1006e4e
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
jmp 0x1006f43
push 0xf01ff
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, edi
mov dword [esi], eax
jne 0x1006e68
mov eax, dword [ebp + 0x10]
jmp 0x1006e44
cmp ebx, edi
je 0x1006e97
lea ecx, [ebp - 0x28]
push ecx
push eax
call dword [entry0]
test eax, eax
jne 0x1006e92
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [esi], edi
jmp 0x1006f43
mov eax, dword [ebp - 0x24]
mov dword [ebx], eax
cmp dword [ebp + 0x1c], edi
je 0x1006f12
push 0x24
call sub.MFC42u.dll_operatornew
mov ebx, eax
pop ecx
mov dword [ebp + 0x10], ebx
push edi
mov dword [ebp - 4], edi
mov dword [ebp + 0xc], edi
call dword [0x10010a0]
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
lea eax, [ebp + 0xc]
push eax
push 0x24
push ebx
push dword [esi]
call edi
mov dword [ebp + 8], eax
call dword [0x1001054]
cmp eax, 0x7a
jne 0x1006ef9
push ebx
call sub.MFC42u.dll_operatordelete
push dword [ebp + 0xc]
call sub.MFC42u.dll_operatornew
pop ecx
pop ecx
mov ebx, eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
mov dword [ebp + 0x10], ebx
push ebx
push dword [esi]
call edi
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
je 0x1006f25
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 0x1c]
or dword [ebp - 4], 0xffffffff
push ebx
mov dword [ecx], eax
call sub.MFC42u.dll_operatordelete
pop ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
and dword [esi], 0
or dword [ebp - 4], 0xffffffff
push ebx
call sub.MFC42u.dll_operatordelete
pop ecx
xor eax, eax
jmp 0x1006f15
Function at 0x1007091
Capabilities:
Modify service

Disassembly:
mov eax, 0x10090bd
call fcn.010085c8
sub esp, 0x10
push edi
xor edi, edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
cmp eax, edi
jne 0x10070c8
call dword [0x1001054]
xor eax, eax
jmp 0x100715c
push ebx
push esi
push 0x24
call sub.MFC42u.dll_operatornew
mov ebx, eax
pop ecx
mov dword [ebp - 0x18], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x10]
push eax
push 0x24
push ebx
push dword [ebp + 8]
call esi
mov dword [ebp - 0x1c], eax
call dword [0x1001054]
cmp eax, 0x7a
jne 0x1007128
push ebx
mov dword [ebp - 0x18], edi
call sub.MFC42u.dll_operatordelete
push dword [ebp - 0x10]
call sub.MFC42u.dll_operatornew
pop ecx
pop ecx
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
push ebx
push dword [ebp + 8]
call esi
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], edi
je 0x100714d
cmp dword [ebx + 4], 4
je 0x100714a
push 0x64
call dword [0x100108c]
add dword [ebp - 0x14], 0x64
cmp dword [ebp - 0x14], 0x927c0
jbe 0x10070e6
jmp 0x100714d
xor edi, edi
inc edi
or dword [ebp - 4], 0xffffffff
push ebx
call sub.MFC42u.dll_operatordelete
pop ecx
pop esi
mov eax, edi
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x1008869
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
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 0x10027d0
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10088c1
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x100280c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10088b4
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x10088c3
xor eax, eax
pop esi
leave
ret 4
Function at 0x4016d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x4016f6
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x40178a
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401745
cmp eax, 0x40
je 0x401745
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x4016e9
cmp eax, 0x40
je 0x4016e9
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x4016e9
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sym.__assert
lea esi, [esi]
lea edi, [edi]
Function at 0x403150
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x410
push esi
push edi
xor eax, eax
mov ecx, 0x100
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [ebp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x14]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
mov dword [esp + 0x28], 0x200
mov dword [esp + 0x24], 0xffffffff
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x4031d8
mov ecx, dword [ebp + 0x14]
mov esi, dword [ecx + 0x18]
cmp esi, 8
lea eax, [ecx + 4]
jb 0x4031b2
mov edx, dword [eax]
jmp 0x4031b4
mov edx, eax
cmp esi, 8
mov edi, dword [ecx + 0x14]
lea edx, [edx + edi*2]
jb 0x4031c1
mov eax, dword [eax]
push edx
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004030e0
mov eax, 0x80004005
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x18]
push ecx
call fcn.0040512d
mov ecx, dword [ebp + 0x14]
add esp, 4
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.004017f0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403200
Capabilities:
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x408d28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
xor esi, esi
mov dword [esp + 0x1c], 7
mov dword [esp + 0x18], esi
mov word [esp + 8], si
lea eax, [esp + 4]
push eax
push str.Thunder
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
mov dword [esp + 0x38], esi
call fcn.00403150
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
xor ecx, ecx
add esp, 0x10
cmp edx, esi
setne cl
cmp eax, 8
mov esi, ecx
jb 0x40326f
mov edx, dword [esp + 8]
push edx
call fcn.00405143
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x4041a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x408d8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x41c
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, ecx
push eax
lea ecx, [esp + 0x10]
call fcn.004040f0
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
mov dword [esp + 0x430], 0
call fcn.00403e10
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40423c
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x42c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404221
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 0x80004005
mov ecx, dword [esp + 0x424]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov ecx, 0x82
lea edi, [esp + 0x218]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
mov word [esp + 0x10], 0
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp dword [esi + 0x18], 8
jb 0x404280
mov eax, dword [esi + 4]
jmp 0x404283
lea eax, [esi + 4]
push str.program
push eax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea edx, [esp + 0x10]
push edx
call edi
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4042c7
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0xc]
push fcn.00403630
push ecx
push edx
mov ecx, esi
call fcn.00403f10
jmp 0x4042d5
mov eax, dword [esp + 0xc]
push eax
push esi
call fcn.00403630
add esp, 8
lea ecx, [esp + 0x218]
push ecx
call edi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x42c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404308
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x424]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x404320
Capabilities:
Check if file exists

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x408da8
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
push esi
mov esi, ecx
push eax
lea ecx, [esp + 0x18]
call fcn.004040f0
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
mov dword [esp + 0x10], 0
call fcn.00403e10
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, dword [esp + 0x14]
jne 0x4043a6
add eax, 0xfffffff0
mov dword [esp + 0xc], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40438f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 0x80004005
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 8
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsFileSpecW]
test eax, eax
je 0x4043c1
mov ecx, dword [esp + 0x14]
push ecx
push esi
call fcn.00403500
add esp, 8
jmp 0x4043d7
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push fcn.00403500
push edx
push eax
mov ecx, esi
call fcn.00403f10
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0xc], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4043fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 4]
xor eax, eax
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 8