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

Disassembly:
sub esp, 0x224
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
push 0x103
lea eax, [esp + 0x129]
push 0
push eax
mov byte [esp + 0x130], 0
call fcn.00a7ffb0
add esp, 0xc
push 0x103
lea ecx, [esp + 0x21]
push 0
push ecx
mov byte [esp + 0x28], 0
call fcn.00a7ffb0
add esp, 0xc
push 0
push 0
push 0
push 0
lea edx, [esp + 0x2c]
push edx
xor edx, edx
xor ecx, ecx
call fcn.00973e00
cmp byte [esp + 0x1c], 0
je 0x980862
lea eax, [esp + 0x1c]
inc eax
cmp byte [eax], 0
jne 0x980811
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x1c]
sub eax, ecx
je 0x980836
cmp byte [esp + eax + 0x1b], 0x5c
je 0x980836
push 0xaa1564
mov edx, ecx
push edx
call esi
push str.Kaspersky_SDK
lea eax, [esp + 0x20]
push eax
call esi
xor ecx, ecx
lea edi, [esp + 0x1c]
call fcn.0095a6d0
test eax, eax
je 0x980862
push 1
mov ecx, str.storage.dat
mov ebx, edi
call fcn.0095eb80
add esp, 4
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push 0
push str.LK.Auto
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, eax
push esi
call edi
test esi, esi
je 0x9808a2
cmp esi, 2
jne 0x980952
push 0
call edi
lea eax, [esi - 1]
jmp 0x980957
mov ecx, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x138]
push eax
push 0
push ecx
mov dword [esp + 0x38], 0x104
call ebx
mov esi, eax
test esi, esi
jne 0x980929
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ebx, [ebx]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x124]
push edx
push eax
call ebp
mov esi, eax
push esi
call edi
test esi, esi
je 0x9808fd
cmp esi, 2
jne 0x980947
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x138]
push edx
push 0
push eax
mov dword [esp + 0x38], 0x104
call ebx
mov esi, eax
test esi, esi
je 0x9808e0
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x103
jne 0x980952
push 0
call edi
mov eax, 1
jmp 0x980957
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call edi
xor eax, eax
mov ecx, dword [esp + 0x230]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00a78f21
add esp, 0x224
ret
Function at 0x980970
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp esi, ebx
je 0x980a78
push 0x103
lea eax, [esp + 0x15]
push ebx
push eax
mov byte [esp + 0x1c], bl
call fcn.00a7ffb0
add esp, 0xc
push 0x103
lea ecx, [esp + 0x11d]
push ebx
push ecx
mov byte [esp + 0x124], bl
call fcn.00a7ffb0
mov byte [esi], bl
add esp, 0xc
lea ebx, [esp + 0x10]
call fcn.009541a0
cmp eax, 1
je 0x9809e4
mov ecx, ebx
call fcn.00954350
cmp byte [esp + 0x10], 0
je 0x980a67
lea ecx, [esp + 0x10]
call fcn.00960910
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x11c]
push str._sEUPDATE.INI
push eax
call fcn.00a78f30
add esp, 0xc
push 1
push 0
xor edx, edx
lea ecx, [esp + 0x120]
call fcn.0095a0f0
add esp, 8
test eax, eax
jne 0x980a67
lea ecx, [esp + 0x118]
push ecx
push 0x104
push esi
push 0xaa1543
push str.LogFilePath
push str.Config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esi], 0
je 0x980a6c
call fcn.00960950
xor ecx, ecx
mov edi, esi
call fcn.0095a6d0
cmp eax, 1
je 0x980a67
mov byte [esi], 0
jmp 0x980a6c
cmp byte [esi], 0
jne 0x980a78
mov edi, 0x104
mov ecx, esi
call fcn.00958630
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret

Function at 0x980a90
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
push esi
xor esi, esi
test ebx, ebx
je 0x980b2d
test edi, edi
je 0x980b2d
mov eax, dword [esp + 0xc]
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileA]
push eax
push edi
push ebx
call ebp
mov esi, eax
test esi, esi
jne 0x980b37
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x980b35
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp eax, 1
jne 0x980ae0
mov ecx, dword [esp + 0xc]
push ecx
push edi
push ebx
call ebp
mov esi, eax
test esi, esi
jne 0x980b35
push esi
push esi
xor edx, edx
mov ecx, ebx
call fcn.0095a0f0
add esp, 8
test eax, eax
jne 0x980b20
push eax
push eax
xor edx, edx
mov ecx, edi
call fcn.0095a0f0
add esp, 8
test eax, eax
jne 0x980b20
mov eax, edi
call fcn.0094dd20
cmp eax, 1
jne 0x980b20
mov edx, dword [esp + 0xc]
push edx
push edi
push ebx
call ebp
pop esi
pop ebp
ret
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
pop ebp
ret
Function at 0x980b40
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
push edi
xor edi, edi
test ebx, ebx
je 0x980bc3
test esi, esi
je 0x980bc3
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileW]
push edi
push esi
push ebx
call ebp
mov edi, eax
test edi, edi
jne 0x980bcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x980bcb
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp eax, 1
jne 0x980b80
push edi
push esi
push ebx
call ebp
mov edi, eax
test edi, edi
jne 0x980bcb
push edi
mov ecx, ebx
call fcn.0095a000
add esp, 4
test eax, eax
jne 0x980bb6
push eax
mov ecx, esi
call fcn.0095a000
add esp, 4
test eax, eax
jne 0x980bb6
mov eax, esi
call fcn.0094de20
cmp eax, 1
jne 0x980bb6
push edi
push esi
push ebx
call ebp
pop edi
pop ebp
ret
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop ebp
ret

Function at 0x980bd0
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
xor ebx, ebx
mov dword [esp + 4], ebx
test edi, edi
jne 0x980be1
xor eax, eax
pop ebx
pop ecx
ret
push esi
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
pop esi
jne 0x980bdc
mov eax, dword [esp + 4]
test eax, eax
je 0x980c3c
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push edx
push edi
push 7
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x980c2d
lea ebx, [eax + 1]
mov eax, dword [esp + 4]
test eax, eax
je 0x980c3c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
pop ecx
ret

Function at 0x980c50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebp
push esi
lea eax, [esp + 0xc]
push eax
push 1
xor ebp, ebp
push ebp
push ecx
push 0x80000002
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, ebp
je 0x980c8c
pop esi
xor eax, eax
pop ebp
add esp, 8
ret
push 1
push 0x115
call fcn.00a7b9f8
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x980cfe
mov eax, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0xc]
push edx
push esi
push ebp
push ebp
push ebx
push eax
call edi
cmp eax, 0xea
jne 0x980cef
push esi
call fcn.00a78fec
mov ecx, dword [esp + 0x10]
add ecx, 0x10
push 1
push ecx
call fcn.00a7b9f8
mov esi, eax
add esp, 0xc
test esi, esi
je 0x980cfd
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
push esi
push 0
push 0
push ebx
push eax
call edi
test eax, eax
jne 0x980cfd
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0xc]
mov dword [ecx], esi
pop edi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x980d0d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
Function at 0x9820c0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x108
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push edi
push 0x103
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call fcn.00a7ffb0
add esp, 0xc
push 0
push 0
call fcn.00986570
mov esi, eax
test esi, esi
jne 0x982117
push str.commstrt_mutex
lea ecx, [esp + 0xc]
push 0xaa1544
push ecx
call fcn.00a78f30
add esp, 0xc
jmp 0x98212f
push esi
push str.commstrt_mutex
lea edx, [esp + 0x10]
push str._s_d
push edx
call fcn.00a78f30
add esp, 0x10
lea ecx, [esp + 8]
call fcn.0097df10
mov edi, eax
test edi, edi
je 0x982143
cmp edi, 0xffffffff
jne 0x982189
test esi, esi
jbe 0x982189
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x982189
push str.commstrt_mutex
lea eax, [esp + 0xc]
push 0xaa1544
push eax
call fcn.00a78f30
add esp, 0xc
lea ecx, [esp + 8]
call fcn.0097df10
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00a78f21
add esp, 0x108
ret
mov ecx, dword [esp + 0x10c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00a78f21
add esp, 0x108
ret

Function at 0x9821b0
Capabilities:
Check os version

Disassembly:
sub esp, 8
push esi
xor esi, esi
call fcn.009820c0
mov dword [esp + 8], eax
test eax, eax
je 0x9821d9
lea eax, [esp + 8]
push eax
mov esi, 1
call fcn.00985290
mov eax, esi
pop esi
add esp, 8
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x982234
cmp dword [0xbfc9d0], esi
jne 0x982210
mov dword [0xbfc9d0], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x982210
cmp al, 6
jb 0x982210
mov dword [0xbfc9d4], 1
jmp 0x982218
cmp dword [0xbfc9d4], esi
je 0x982234
push ebx
lea ebx, [esp + 0xb]
mov byte [esp + 0xb], 0
call fcn.00962920
cmp byte [esp + 0xb], 3
pop ebx
mov eax, 1
jne 0x982236
mov eax, esi
pop esi
add esp, 8
ret
Function at 0x9827c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0xb13780
push 0xa847a0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0xb196ec]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
xor ecx, ecx
call fcn.009790d0
test eax, eax
je 0x9828cf
call fcn.009821b0
test eax, eax
jne 0x9828cf
mov dword [ebp + 0xc], 1
lea eax, [ebp + 0xc]
push eax
push str.ShowMsgWait
mov ecx, 0xaa21e4
mov edx, 0x80000002
call fcn.0094c0d0
test al, al
jne 0x982860
mov eax, dword [ebp + 0xc]
mov esi, str.ShowMsgWait
mov ebx, str.SOFTWAREMicroWorldeScan_for_WindowsMwMonitor
mov ecx, 0x80000002
call fcn.0094be90
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x9829c3
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0xa
push eax
call fcn.00a7a155
add esp, 4
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x98294e
push edi
push 0xaa1544
push eax
call fcn.00a78f30
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
push ebx
push 0x984cd0
call fcn.00a791b2
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
je 0x98294e
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x20], ebx
jne 0x98294e
push 1
call esi
jmp 0x9828c0
mov eax, 1
call fcn.00982240
mov esi, eax
cmp esi, ebx
je 0x9829c3
push str.ShowMsg
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
jne 0x982902
mov eax, 2
call fcn.00982240
jmp 0x9829c3
cmp dword [ebp + 0xc], ebx
jne 0x98292e
mov ecx, dword [ebp + 8]
push ecx
push edi
call eax
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0xa
push eax
call fcn.00a7a155
add esp, 4
mov dword [ebp - 0x28], eax
cmp eax, ebx
jne 0x98296e
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
push 0xaa1544
push eax
call fcn.00a78f30
add esp, 0xc
lea edx, [ebp - 0x28]
push edx
push ebx
push 0x984cd0
call fcn.00a791b2
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
je 0x98294e
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ecx]
cmp dword [ebp - 0x20], ebx
jne 0x98294e
push 1
call esi
jmp 0x9829a0
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x982d50
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0x10
push esi
mov esi, eax
push esi
call fcn.00982af0
add esp, 4
test eax, eax
je 0x982dc1
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
test esi, esi
je 0x982dc1
mov ecx, dword [esp + 0x1c]
add ecx, 0x20000000
cmp edi, 3
jne 0x982d96
lea eax, [edi - 2]
jmp 0x982da2
xor eax, eax
cmp edi, 2
setne al
lea eax, [eax + eax + 2]
push 0
lea edx, [esp + 0xc]
push edx
push 0
push 1
push 0
push ecx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
add esp, 0x10
ret
Function at 0x983630
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 1
push 0
push str.systemcurrentcontrolsetcontrolcomputernamecomputername
mov ebx, ecx
push 0x80000002
mov byte [ebx], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, eax
push esi
call edi
test esi, esi
jne 0x9836bb
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push ebx
push esi
push esi
push str.computername
push edx
mov dword [esp + 0x2c], 0x103
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x9836a9
push eax
call edi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x9836c0
mov eax, dword [esp + 0x10]
push eax
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x9836c0
push esi
call edi
xor esi, esi
cmp byte [ebx], 0
mov eax, ebx
je 0x9836cd
inc eax
cmp byte [eax], 0
jne 0x9836c7
sub eax, ebx
mov ebp, eax
test esi, esi
je 0x9836e3
cmp byte [ebx], 0
je 0x9836e3
cmp ebp, 0xf
jl 0x983774
push 0x103
lea ecx, [esp + 0x21]
push 0
push ecx
mov byte [esp + 0x28], 0
call fcn.00a7ffb0
add esp, 0xc
push str.Hostname
lea eax, [esp + 0x1c]
lea edi, [esp + 0x20]
mov ecx, str.SYSTEMCurrentControlSetServicesTcpipParameters
mov edx, 0x80000002
mov dword [esp + 0x1c], 0x104
call fcn.0094c020
cmp byte [esp + 0x1c], 0
je 0x983774
mov esi, 1
mov eax, edi
cmp ebp, 0xf
jne 0x98375c
inc eax
cmp byte [eax], 0
jne 0x983733
lea edx, [esp + 0x1c]
sub eax, edx
cmp eax, 0xf
jbe 0x98376c
mov ecx, edx
mov eax, edx
sub ebx, ecx
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [ebx + eax], cl
inc eax
test cl, cl
jne 0x983750
jmp 0x98376c
lea edx, [esp + 0x1c]
sub ebx, edx
mov cl, byte [eax]
mov byte [ebx + eax], cl
inc eax
test cl, cl
jne 0x983762
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x120]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00a78f21
add esp, 0x114
ret
Function at 0x983ae0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x14
test byte [0xc0ecbc], 1
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
jne 0x983b04
or dword [0xc0ecbc], 1
call esi
mov dword [0xc0ecb8], eax
xor edi, edi
cmp dword [0xb4c908], 1
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edi
je 0x983b37
call esi
sub eax, dword [0xc0ecb8]
cmp eax, 0x6d60
ja 0x983b37
mov eax, dword [0xb4c908]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
call esi
mov dword [0xc0ecb8], eax
push edi
lea eax, [esp + 0x18]
push eax
push edi
call fcn.00983a00
add esp, 0xc
cmp eax, 0x7a
jne 0x983c89
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00a7a155
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x983c89
push 1
lea edx, [esp + 0x18]
push edx
push ebx
call fcn.00983a00
add esp, 0xc
test eax, eax
jne 0x983c80
push 4
call fcn.00a7a155
mov esi, eax
add esp, 4
cmp esi, edi
je 0x983c80
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00983d30
add esp, 8
cmp eax, 0x6f
jne 0x983c74
push esi
call fcn.00a78fec
mov ecx, dword [esp + 0x1c]
add esp, 4
push ecx
call fcn.00a7a155
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
cmp ebp, edi
je 0x983c80
lea edx, [esp + 0x18]
push edx
push ebp
call fcn.00983d30
add esp, 8
test eax, eax
jne 0x983c68
mov edi, dword [ebx]
xor esi, esi
test edi, edi
jbe 0x983c37
lea edx, [ebx + 0x224]
mov eax, ebp
xor ecx, ecx
test ecx, ecx
jne 0x983c17
mov ebp, dword [eax + 0x19c]
cmp ebp, dword [edx - 0x20]
jne 0x983c0d
mov ecx, eax
mov eax, dword [eax]
test eax, eax
jne 0x983bfc
test ecx, ecx
je 0x983c28
mov eax, dword [edx]
cmp eax, 3
je 0x983c5d
cmp eax, 4
je 0x983c5d
cmp eax, 5
je 0x983c5d
mov ebp, dword [esp + 0x1c]
inc esi
add edx, 0x35c
cmp esi, edi
jb 0x983bf8
mov esi, dword [esp + 0x20]
push ebx
call fcn.00a78fec
add esp, 4
push ebp
call fcn.00a78fec
add esp, 4
mov dword [0xb4c908], esi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov ebp, dword [esp + 0x1c]
mov esi, 1
jmp 0x983c3b
push ebx
call fcn.00a78fec
add esp, 4
push ebp
jmp 0x983c81
push ebx
call fcn.00a78fec
add esp, 4
push esi
jmp 0x983c81
push ebx
call fcn.00a78fec
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebp
mov dword [0xb4c908], eax
pop ebx
add esp, 0x14
ret
Function at 0x984e80
Capabilities:
Create thread

Disassembly:
sub esp, 0x14
cmp dword [esp + 0x28], 0
jne 0x984ead
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
or eax, 0x50000
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
add esp, 0x14
ret
push ebp
xor eax, eax
push esi
mov esi, dword [esp + 0x24]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
test esi, esi
je 0x984f9d
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x984f9d
cmp byte [esi], 0
mov eax, esi
je 0x984eee
inc eax
cmp byte [eax], 0
jne 0x984ee8
sub eax, esi
inc eax
push edi
push eax
call fcn.00a7a155
mov edi, eax
add esp, 4
test edi, edi
je 0x984f9c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
push edi
call ebx
cmp byte [ebp], 0
mov eax, ebp
je 0x984f1e
inc eax
cmp byte [eax], 0
jne 0x984f18
sub eax, ebp
inc eax
push eax
call fcn.00a7a155
mov esi, eax
add esp, 4
test esi, esi
jne 0x984f43
push edi
call fcn.00a78fec
add esp, 4
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x14
ret
push ebp
push esi
call ebx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x10]
push edx
or ecx, 0x50000
push 0
push 0x984de0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ecx
call fcn.00a791b2
add esp, 0xc
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x984f9b
cmp dword [esp + 0x20], 0
jne 0x984f9b
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 1
call esi
cmp dword [esp + 0x20], 0
je 0x984f90
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x14
ret
Function at 0x985570
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x258
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x254], eax
push ebx
push ebp
mov ebp, dword [esp + 0x264]
push esi
push edi
push 0x103
lea eax, [esp + 0x15d]
push 0
push eax
mov dword [esp + 0x20], 0
mov byte [esp + 0x164], 0
call fcn.00a7ffb0
add esp, 0xc
test ebp, ebp
je 0x9856db
cmp byte [ebp], 0
je 0x9856db
push ebp
lea ecx, [esp + 0x15c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x158]
call fcn.00960910
push str.BACKUP.
lea edx, [esp + 0x15c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea esi, [esp + 0x18]
lea ecx, [esp + 0x158]
mov edi, 1
call fcn.0094df40
mov ebx, eax
cmp ebx, 0xffffffff
je 0x9856d5
test edi, edi
je 0x9856ce
test byte [esp + 0x18], 0x10
jne 0x9856bc
mov al, 0x2e
lea edx, [esp + 0x44]
call fcn.00975920
cmp eax, 3
jne 0x9856bc
push ebp
lea eax, [esp + 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x158]
call fcn.00960910
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x15c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
test byte [esp + 0x18], 7
je 0x985685
push 0x80
lea eax, [esp + 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
lea edi, [esp + 0x15c]
call fcn.009627b0
add esp, 4
test eax, eax
jne 0x9856b4
push eax
mov ecx, edi
call fcn.00957a90
lea esi, [esp + 0x18]
mov ecx, ebx
call fcn.0094e160
mov edi, eax
jmp 0x985616
mov dword [esp + 0x14], 1
lea esi, [esp + 0x18]
mov ecx, ebx
call fcn.0094e160
mov edi, eax
jmp 0x985616
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
jmp 0x9856dd
xor eax, eax
mov ecx, dword [esp + 0x264]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00a78f21
add esp, 0x258
ret

Function at 0x986370
Capabilities:
Check os version

Disassembly:
push ecx
push ebx
mov ebx, 1
test byte [0xc0ea2c], bl
jne 0x9863b2
or dword [0xc0ea2c], ebx
cmp dword [0xbfc9d0], 0
jne 0x9863a8
mov dword [0xbfc9d0], ebx
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x9863a8
cmp al, 6
jb 0x9863a8
mov dword [0xbfc9d4], ebx
mov eax, dword [0xbfc9d4]
mov dword [0xc0ea28], eax
mov eax, dword [0xb4c90c]
cmp eax, 0xffffffff
jne 0x9863c6
call fcn.00963620
mov dword [0xb4c90c], eax
cmp eax, 2
jle 0x986411
call fcn.00963540
test eax, eax
je 0x986411
cmp dword [0xc0ea28], 0
je 0x9863e6
call fcn.009622a0
test eax, eax
jne 0x986411
cmp esi, 0xfffffffe
jne 0x9863f9
lea ecx, [esp + 4]
push ecx
push 0
call fcn.00986570
jmp 0x9863fd
mov dword [esp + 4], esi
call fcn.00986750
cmp eax, dword [esp + 4]
je 0x986411
test eax, eax
je 0x986411
xor eax, eax
pop ebx
pop ecx
ret
mov eax, ebx
pop ebx
pop ecx
ret