joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b420
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x449ca0]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov byte [ebp - 5], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0x10
push 0xf0000040
push 1
push 0
push 0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x42b4f3
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push 0x8003
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x42b4f3
cmp dword [ebp - 0xc], 0
je 0x42b4f3
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x42b4f3
push 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x24]
push ecx
push 2
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x42b4f3
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0042b330
add esp, 0x10
movzx ecx, al
test ecx, ecx
je 0x42b4f3
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.0042abb0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x42b4f3
mov byte [ebp - 5], 1
cmp dword [ebp - 0xc], 0
je 0x42b503
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x10], 0
je 0x42b515
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, byte [ebp - 5]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041422b
mov esp, ebp
pop ebp
ret

Function at 0x42c000
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, 0xb945c6c8
cmpsd dword [esi], dword es:[edi]
call fcn.0042bd67
in al, dx
aas
push esp
push ss
lea eax, [ebp - 0x58]
push eax
call fcn.0042bd77
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.0042bd2c
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x42c055
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.0042bd67
cmpsd dword [esi], dword es:[edi]
and cl, ch
int3
Function at 0x42c2e0
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [esi + 0x3c]
add edi, esi
mov dword [ebp - 0x88], edi
mov eax, dword [edi + 0x80]
cmp eax, ebx
je 0x42c556
add eax, esi
mov dword [ebp - 0x44], eax
cmp dword [eax + 4], ebx
jne 0x42c30c
cmp dword [eax + 0xc], ebx
je 0x42c3af
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.0042bd67
xor eax, 0x390df433
pop ebp
or al, 0x75
adc dl, byte [edi - 1]
xchg ebp, eax
dec eax
invalid
call fcn.0042bd67
and dword [eax], edx
jae 0x42c3c9
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x42c41b
add eax, esi
push eax
add al, 0x8d
dec eax
or byte [ebx], al
ror byte [ecx - 0x35c4f7b3], 1

Function at 0x42c380
Capabilities:
Inspect section memory permissions

Disassembly:
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x42c39d
test eax, 0x80000000
lea ecx, [eax + esi]
je 0x42c378
and eax, 0xffff
push eax
jmp 0x42c37c
add ecx, 2
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
jne 0x42c38a
jne 0x42c38a
call fcn.0042bd2c
add esp, 0xc
cmp edi, ebx
mov dword [edi], eax
je 0x42c556
add edi, 4
add dword [ebp + 0x10], 4
jmp 0x42c35d
add dword [ebp - 0x44], 0x14
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x44]
jmp 0x42c2fe

Function at 0x42c640
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.0042bd77
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0042bd2c
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
invalid
test dword [edx], esp
Function at 0x403970
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x61f7e0], ecx
inc edx
cmp edx, 0x100
jb 0x403972
cmp edx, 0x800
jae 0x403a49
lea esp, [esp]
mov eax, dword [edx*4 + 0x61f3e0]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x61f7e0]
inc edx
mov dword [edx*4 + 0x61f7dc], eax
cmp edx, 0x800
jb 0x403a20
mov dword [0x61c150], 0x404490
call fcn.00404660
test eax, eax
jne 0x403a66
mov dword [0x61c150], 0x404540
ret
Function at 0x406410
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
push ebp
mov ebp, dword [ecx]
mov ecx, dword [esp + 0x10]
xor eax, eax
and ebp, 7
cmp ecx, 5
jae 0x406429
pop ebp
pop ecx
ret
mov edx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x1c]
add esi, 5
lea edx, [edx + ecx - 4]
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x10], edx
jmp 0x406450
mov ecx, dword [esp + 0x18]
lea edi, [eax + ecx]
cmp edi, edx
jae 0x40646d
jmp 0x406460
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x40646d
inc edi
cmp edi, edx
jb 0x406460
mov eax, edi
sub eax, ecx
mov ecx, eax
sub ecx, dword [esp + 0x1c]
cmp edi, edx
jae 0x406582
cmp ecx, 3
jbe 0x4064a1
xor ebp, ebp
mov cl, byte [edi + 4]
mov dword [esp + 0x1c], eax
test cl, cl
je 0x4064db
cmp cl, 0xff
je 0x4064db
and ebp, 3
add ebp, ebp
or ebp, 1
inc eax
jmp 0x406450
dec ecx
shl ebp, cl
and ebp, 7
je 0x406486
movzx ecx, byte [ebp + 0x5aadd0]
mov ebx, edi
sub ebx, ecx
cmp byte [ebp + 0x5aadc8], 0
mov cl, byte [ebx + 4]
je 0x4064c9
test cl, cl
je 0x4064c9
cmp cl, 0xff
jne 0x406486
and ebp, 3
add ebp, ebp
mov dword [esp + 0x1c], eax
or ebp, 1
inc eax
jmp 0x406450
movzx edx, cl
movzx ecx, byte [edi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
lea esp, [esp]
cmp dword [esp + 0x28], 0
je 0x40650e
lea ebx, [edx + eax]
add ebx, esi
jmp 0x406514
sub edx, eax
sub edx, esi
mov ebx, edx
test ebp, ebp
je 0x406554
movzx esi, byte [ebp + 0x5aadd0]
add esi, esi
add esi, esi
add esi, esi
mov ecx, 0x18
sub ecx, esi
mov edx, ebx
shr edx, cl
test dl, dl
je 0x406539
cmp dl, 0xff
jne 0x406550
mov ecx, 0x20
sub ecx, esi
mov esi, dword [esp + 0x20]
mov edx, 1
shl edx, cl
dec edx
xor edx, ebx
jmp 0x406500
mov esi, dword [esp + 0x20]
mov edx, ebx
shr edx, 0x18
and dl, 1
dec dl
not dl
mov byte [edi + 4], dl
mov edx, ebx
shr edx, 8
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x10]
mov byte [edi + 3], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x406450
pop edi
pop esi
pop ebx
cmp ecx, 3
jbe 0x406595
mov ecx, dword [esp + 0x18]
xor ebp, ebp
mov dword [ecx], ebp
pop ebp
pop ecx
ret
dec ecx
shl ebp, cl
mov ecx, dword [esp + 0x18]
and ebp, 7
mov dword [ecx], ebp
pop ebp
pop ecx
ret
Function at 0x408830
Capabilities:
Delete registry value
Persist via windows service
Set registry value
Start service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x6102d4]
xor eax, esp
mov dword [esp + 8], eax
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
call fcn.00408220
push str.SYSTEMControlSet001ServicesZHGameHall
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], vtable.DRIVER::CRegistry.0
mov dword [esp + 0x14], reloc.WS2_32.dll_bind
call fcn.0040b480
mov edi, dword [esp + 0x10]
test eax, eax
je 0x4088d2
test edi, edi
jne 0x40888d
push 0x4c
push 0x6033fc
push str.m_hKey
call fcn.0058079c
add esp, 0xc
push str.DeleteFlag
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test edi, edi
jne 0x4088b1
push 0x66
push 0x6033fc
push str.m_hKey
call fcn.0058079c
add esp, 0xc
push 4
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 1
push eax
push 4
push 0
push str.Start
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x408923
mov ecx, str.ZHGameHall
call fcn.00408510
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x408928
push 0xf01ff
push str.ZHGameHall
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x40890c
xor esi, esi
jmp 0x408928
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov esi, 1
test edi, edi
je 0x408933
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045ef18
mov esp, ebp
pop ebp
ret
Function at 0x408950
Capabilities:
Delete file
Delete service
Get common file path
Move file
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x6102d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x603100
call edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x40899d
push str._scmHandle
call edi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045ef18
mov esp, ebp
pop ebp
ret
push esi
push 0xf01ff
push str.ZHGameHall
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x4089c3
push 0x603150
call edi
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call ebx
test esi, esi
je 0x4089d3
push esi
call ebx
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.0056f980
push 0x200
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.0056f980
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
add esp, 0x18
mov dword [ebp - 0x40c], 0
push str.Wow64DisableWow64FsRedirection
push str.Kernel32.dll
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push str.Wow64RevertWow64FsRedirection
push str.Kernel32.dll
mov dword [ebp - 0x410], eax
call ebx
push eax
call esi
mov dword [ebp - 0x414], eax
lea eax, [ebp - 0x204]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x204]
push str.driversZHGameHallDrv.sys.del
push eax
lea eax, [ebp - 0x404]
push str._s_s
push eax
call esi
push str.driversZHGameHallDrv.sys
lea eax, [ebp - 0x204]
push eax
push str._s_s
push eax
call esi
add esp, 0x20
push str.IsWow64Process
push str.kernel32
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
mov dword [ebp - 0x408], 0
test esi, esi
je 0x408ad0
lea eax, [ebp - 0x408]
push eax
call ebx
push eax
call esi
cmp dword [ebp - 0x408], 0
je 0x408ad0
lea eax, [ebp - 0x40c]
push eax
call dword [ebp - 0x410]
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.DeleteFile
mov esi, eax
call edi
lea eax, [ebp - 0x204]
push eax
call edi
test esi, esi
jne 0x408b1f
push str.MoveFileEx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x404]
push 1
push eax
lea eax, [ebp - 0x204]
push eax
call esi
push 4
push 0
lea eax, [ebp - 0x404]
push eax
call esi
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [ebp - 0x408], 0
test esi, esi
je 0x408b67
lea eax, [ebp - 0x408]
push eax
call ebx
push eax
call esi
cmp dword [ebp - 0x408], 0
je 0x408b67
push dword [ebp - 0x40c]
call dword [ebp - 0x414]
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.0045ef18
mov esp, ebp
pop ebp
ret
Function at 0x40b2e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x6102d4]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push 0x6033b8
lea eax, [ebp - 0x60]
mov esi, ecx
push str.C:logSelfProtectTools.txt
push eax
call fcn.0057d7fb
add esp, 0xc
cmp dword [ebp - 0x60], 0
je 0x40b3c3
push 0x40
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.0056f980
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x50]
push eax
movzx eax, word [ebp - 0x52]
push eax
movzx eax, word [ebp - 0x54]
push eax
movzx eax, word [ebp - 0x56]
push eax
movzx eax, word [ebp - 0x5a]
push eax
movzx eax, word [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push str._4d__.2d__.2d__.2d:_.2d:_.2d
push eax
call fcn.0040b3e0
lea ecx, [ebp - 0x4c]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b362
push dword [ebp - 0x60]
sub ecx, edx
lea eax, [ebp - 0x4c]
push ecx
push 1
push eax
call fcn.0057db70
push dword [ebp - 0x60]
push 1
push 1
push 0x6033f8
call fcn.0057db70
push dword [ebp - 0x60]
push dword [ebp + 8]
push 1
push esi
call fcn.0057db70
push dword [ebp - 0x60]
push 2
push 1
push 0x6032d4
call fcn.0057db70
add esp, 0x40
push dword [ebp - 0x60]
call fcn.0057e12d
add esp, 4
push dword [ebp - 0x60]
call fcn.0057d8b8
add esp, 4
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.0045ef18
mov esp, ebp
pop ebp
ret 4

Function at 0x40b6b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 8]
mov dword [esi], vtable.FileDownLoadManager::MyDownload.0
test edi, edi
je 0x40b72a
cmp dword [edi + 0x48], 0
push ebx
je 0x40b6e0
cmp dword [edi + 0x4c], 8
jb 0x40b6d6
mov eax, dword [edi + 0x38]
jmp 0x40b6d9
lea eax, [edi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [edi + 0x68]
test eax, eax
je 0x40b6f7
push eax
call fcn.0045ec79
add esp, 4
mov dword [edi + 0x68], 0
lea ecx, [edi + 0x50]
call fcn.0040a530
lea ecx, [edi + 0x38]
call fcn.0040a530
lea ecx, [edi + 0x20]
call fcn.0040a530
lea ecx, [edi + 8]
call fcn.0040a530
push 0x74
push edi
call fcn.0045ec62
add esp, 8
mov dword [esi + 8], 0
pop ebx
test byte [ebp + 8], 1
mov dword [esi], vtable.RC::IVersionUpdateCallback.0
je 0x40b741
push 0x14
push esi
call fcn.0045ec62
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x40b830
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
mov esi, dword [edi + 8]
mov ecx, dword [esi + 8]
add ecx, 0x50
call fcn.0040a730
mov ecx, dword [esi + 8]
push dword [ebp + 0xc]
add ecx, 0x20
call fcn.0040a730
mov ecx, dword [esi + 8]
mov eax, dword [ebp + 0x10]
mov dword [ecx + 0x70], eax
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x10]
test eax, eax
je 0x40b870
mov ecx, dword [edi + 8]
mov dword [ecx + 0xc], eax
mov esi, dword [edi + 8]
lea eax, [ebp + 8]
push eax
push 0
push esi
push 0x40b630
push 0
push 0
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x10], eax
test eax, eax
je 0x40b8b4
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40b8b4
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], 0
mov eax, dword [edi + 8]
pop edi
pop esi
mov al, byte [eax + 4]
pop ebp
ret 0xc
Function at 0x40b9d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598bd8
mov eax, dword fs:[0]
push eax
sub esp, 0x62c
mov eax, dword [0x6102d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x634], edi
mov dword [ebp - 0x638], edi
xor eax, eax
mov dword [edi], 0
mov dword [edi + 0x1c], 7
mov dword [edi + 0x18], 0
mov word [edi + 8], ax
mov dword [ebp - 4], eax
mov dword [edi + 0x34], 7
mov dword [edi + 0x30], eax
mov word [edi + 0x20], ax
mov dword [edi + 0x4c], 7
mov dword [edi + 0x48], eax
mov word [edi + 0x38], ax
mov dword [edi + 0x64], 7
mov dword [edi + 0x60], eax
mov word [edi + 0x50], ax
mov byte [ebp - 4], 3
push eax
mov dword [edi + 0x68], eax
mov dword [edi + 0x6c], eax
call fcn.005778fc
push eax
call fcn.0057d3ce
push 0x20c
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.0056f980
add esp, 0x14
lea eax, [ebp - 0x21c]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x40bb05
xor eax, eax
push 0x412
push eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x630]
push eax
call fcn.0056f980
add esp, 0xc
lea eax, [ebp - 0x630]
push 0x208
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x40baf6
test eax, eax
je 0x40baf6
add eax, eax
cmp eax, 0x412
jae 0x40bb69
xor ecx, ecx
mov word [ebp + eax - 0x630], cx
lea eax, [ebp - 0x630]
jmp 0x40bafc
lea eax, [ebp - 0x21c]
push eax
lea ecx, [edi + 0x20]
call fcn.0040a730
mov eax, dword [edi + 0x30]
test eax, eax
je 0x40bb38
cmp dword [edi + 0x34], 8
mov edx, eax
jb 0x40bb19
mov ecx, dword [edi + 0x20]
jmp 0x40bb1c
lea ecx, [edi + 0x20]
cmp word [ecx + edx*2 - 2], 0x5c
je 0x40bb34
push 0x6034d0
lea ecx, [edi + 0x20]
call fcn.0040ce10
mov eax, dword [edi + 0x30]
test eax, eax
jne 0x40bb45
push 0x6034d4
lea ecx, [edi + 0x20]
call fcn.0040a730
mov dword [edi + 4], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045ef18
mov esp, ebp
pop ebp
ret
call fcn.0045f888
int3
Function at 0x40fb50
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598ed8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x6102d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fb95
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00411630
push 0xb
push 0x5a187c
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.004114b0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40fc0c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40fc02
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fc28
push edx
push ecx
call fcn.0045ec62
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045ef18
mov esp, ebp
pop ebp
ret 4
call fcn.00572b79
int3

Function at 0x40fc30
Capabilities:
Delete directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x6102d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0056f980
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0056f980
add esp, 0x18
lea eax, [ebp - 0x414]
cmp dword [ebp + 8], 0
push 0
je 0x40fc7f
push 0x17
jmp 0x40fc81
push 2
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40fcfa
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push str._s_
push eax
call fcn.00411a40
sub esp, 0xc
lea ecx, [ebp - 0x20c]
mov edx, esp
lea esi, [ecx + 2]
xor eax, eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fcc7
sub ecx, esi
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.00411630
call fcn.0044b258
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045ef18
mov esp, ebp
pop ebp
ret 4
Function at 0x412910
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5994f8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push esi
mov eax, dword [0x6102d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
call fcn.0045048a
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0
call fcn.004504be
test eax, eax
lea eax, [ebp - 0x10]
push eax
je 0x412990
push 0xf013f
push 0
push str.SoftWare
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412a0d
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf013f
jmp 0x4129b7
push 0xf003f
push 0
push str.SoftWare
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412a0d
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x5a1790
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4129da
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x412a0d
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0x38]
call fcn.0045049d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8