joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404420
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push str.GlobalFA6FBBB1_8C8E_43b1_B8EC_35573A94C231
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0
jne 0x404447
xor eax, eax
jmp 0x404494
push 0
push 0
push 0
push 6
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x404483
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [eax], 0
xor eax, eax
jmp 0x404494
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ecx + 8], eax
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x404640
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x30], 0
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 0x31], 0
lea edx, [ebp - 4]
push edx
push 0x20019
push 0
push str.SOFTWARETencentQQPCMgr
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4046dc
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 4
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push str.EnableLogToView
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4046d2
mov eax, dword [ebp - 0xc]
and eax, 1
je 0x4046c3
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 0x30], 1
mov edx, dword [ebp - 0xc]
and edx, 2
je 0x4046d2
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x31], 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x404710
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov dword [ebp - 0x214], ecx
mov eax, dword [ebp - 0x214]
mov dword [eax], 0
mov dword [ebp - 4], 0
mov word [ebp - 0x210], 0
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x103
lea edx, [ebp - 0x210]
push edx
push str._APPDATA_TencentQQPCMgr_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x404781
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4047c7
lea ecx, [ebp - 0x210]
push ecx
push 0x103
mov edx, dword [ebp - 0x214]
add edx, 4
push edx
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
push 0xffffffffffffffff
push str.ErrLogFile.log
push 0x104
mov eax, dword [ebp - 0x214]
add eax, 4
push eax
call dword [sym.imp.MSVCR80.dll_wcsncat_s]
add esp, 0x10
jmp 0x4047e9
push 0x103
push str.C:ErrLogFile.log
push 0x103
mov ecx, dword [ebp - 0x214]
add ecx, 4
push ecx
call dword [sym.imp.MSVCR80.dll_wcsncpy_s]
add esp, 0x10
mov eax, dword [ebp - 0x214]
mov esp, ebp
pop ebp
ret

Function at 0x404800
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x38], 0
xor eax, eax
mov dword [ebp - 0x37], eax
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov word [ebp - 0x1b], ax
mov byte [ebp - 0x19], al
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 2]
push edx
movzx eax, word [ebp - 4]
push eax
movzx ecx, word [ebp - 6]
push ecx
movzx edx, word [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.__4d___02d:_02d:_02d._03d_
push 0xffffffffffffffff
push 0x20
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR80.dll__snprintf_s]
add esp, 0x24
mov dword [ebp - 0x18], eax
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esp, ebp
pop ebp
ret
Function at 0x404890
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 0x4c], ecx
cmp dword [ebp + 8], 0
jne 0x4048a4
jmp 0x4049a6
mov eax, dword [ebp - 0x4c]
cmp dword [eax], 0
jne 0x4048e1
push 0
push 0x20
push 4
push 0
push 3
push 0xc0000000
mov ecx, dword [ebp - 0x4c]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [ebp - 0x4c]
mov dword [edx], eax
mov eax, dword [ebp - 0x4c]
xor ecx, ecx
cmp dword [eax], 0
setne cl
test ecx, ecx
jne 0x4048e1
jmp 0x4049a6
mov dword [ebp - 8], 0
push 0
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x404908
cmp dword [ebp - 8], 0x2000000
jbe 0x40490d
jmp 0x4049a6
mov dword [ebp - 0x10], 0
push 2
lea ecx, [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x4c]
call fcn.00404800
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
add edx, 1
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x50]
mov cl, byte [eax]
mov byte [ebp - 0x55], cl
add dword [ebp - 0x50], 1
cmp byte [ebp - 0x55], 0
jne 0x404946
mov edx, dword [ebp - 0x50]
sub edx, dword [ebp - 0x54]
mov dword [ebp - 0x5c], edx
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dx, word [0x408d40]
mov word [ebp - 0xc], dx
mov al, byte [0x408d42]
mov byte [ebp - 0xa], al
push 0
lea ecx, [ebp - 4]
push ecx
push 2
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esp, ebp
pop ebp
ret 4

Function at 0x404b30
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40b020]
jne 0x404b3a
repz ret
jmp fcn.00404f5d

Function at 0x405f90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x405fe3
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
push 2
push 1
push 0x408d40
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.MSVCR80.dll_fflush]
add esp, 4
mov esp, ebp
pop ebp
ret 8
Function at 0x406ab0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x40b020]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x424], 0
mov word [ebp - 0x218], 0
push 0x208
push 0
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 0xffffffff
je 0x406c30
mov dword [ebp - 0x430], 0
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov dword [ebp - 0x42c], ecx
je 0x406c19
mov edx, dword [ebp - 0x42c]
push edx
call fcn.00404b1f
add esp, 4
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp - 0x43c]
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x438], 0
push 0
lea ecx, [ebp - 0x438]
push ecx
mov edx, dword [ebp - 0x42c]
push edx
mov eax, dword [ebp - 0x434]
push eax
mov ecx, dword [ebp - 0x428]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
je 0x406be8
mov edx, dword [ebp - 0x438]
cmp edx, dword [ebp - 0x42c]
jne 0x406be8
mov dword [ebp - 0x444], 1
jmp 0x406bf2
mov dword [ebp - 0x444], 0
mov eax, dword [ebp - 0x444]
mov dword [ebp - 0x424], eax
mov ecx, dword [ebp - 0x434]
mov dword [ebp - 0x440], ecx
mov edx, dword [ebp - 0x440]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x428], 0
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b30
mov esp, ebp
pop ebp
ret

Function at 0x406c50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x40b020]
xor eax, ebp
mov dword [ebp - 8], eax
push 0x114
push 0
lea eax, [ebp - 0x120]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x120], 0x114
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
jae 0x406ca0
mov eax, 1
jmp 0x406ccb
mov dword [ebp - 4], 0
lea edx, [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x406cc6
cmp dword [ebp - 4], 0
jne 0x406cc6
xor eax, eax
jmp 0x406ccb
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404b30
mov esp, ebp
pop ebp
ret
Function at 0x406d20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push str.Global88B0D764_B5C3_4c4a_958F_B76524517744
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x406dad
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push str.SoftwareTencentQQPCMgr_
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406d99
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 4
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [ebp - 0x10]
push edx
push 4
push 0
push str.ThisMgrProcID
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x1001630
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1002190
call fcn.010017c4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1003378
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10013eb
cmp eax, esi
jne 0x10013de
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10013ee
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10013c5
xor esi, esi
inc esi
mov eax, dword [0x1003374]
cmp eax, esi
jne 0x1001401
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1001430
mov eax, dword [0x1003374]
test eax, eax
jne 0x100142a
mov dword [0x1003374], esi
push 0x100110c
push 0x1001100
call fcn.01001327
pop ecx
pop ecx
test eax, eax
je 0x1001430
jmp 0x1001554
mov dword [0x1003038], esi
mov eax, dword [0x1003374]
cmp eax, esi
jne 0x1001454
push 0x10010fc
push 0x10010f4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1003374], 2
cmp dword [ebp - 0x20], ebx
jne 0x1001461
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100337c], ebx
je 0x1001482
push 0x100337c
call fcn.01001739
pop ecx
test eax, eax
je 0x1001482
push ebx
push 2
push ebx
call dword [0x100337c]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1001554
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x10014ec
cmp cx, bx
je 0x10014a7
cmp dword [ebp - 0x1c], ebx
jne 0x10014ec
movzx ecx, word [eax]
cmp cx, bx
je 0x10014bc
cmp cx, 0x20
ja 0x10014bc
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x10014a7
test byte [ebp - 0x40], 1
je 0x10014c8
movzx ecx, word [ebp - 0x3c]
jmp 0x10014cb
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1003034], eax
cmp dword [0x1003028], ebx
jne 0x1001531
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x10014fd
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1001491
cmp dword [0x1003038], ebx
jne 0x100153f
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1003034]
jmp 0x1001560
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01001809
ret
call fcn.01001911
jmp 0x1001388
Function at 0x1001fd1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x100300c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 0x210], eax
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, 0x104
cmp eax, 0xffffffff
jne 0x100202d
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x100203f
xor eax, eax
jmp 0x1002172
push edi
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01001215
test eax, eax
jl 0x1002026
and dword [ebp - 0x22c], 0
lea eax, [ebp - 0x20c]
push eax
or ebx, 0xffffffff
mov dword [ebp - 0x230], 0x20
mov dword [ebp - 0x228], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x1001164
mov edi, eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01001f90
mov esi, dword [sym.imp.KERNEL32.dll_CreateActCtxW]
test eax, eax
jl 0x10020a0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, ebx
je 0x10020a0
lea eax, [ebp - 0x230]
push eax
call esi
mov ebx, eax
xor eax, eax
mov word [ebp + edi*2 - 0x20c], ax
cmp ebx, 0xffffffff
jne 0x10020d3
lea eax, [ebp - 0x230]
push eax
mov dword [ebp - 0x22c], 8
mov dword [ebp - 0x21c], 0x7b
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10020df
push dword [ebp - 0x210]
push ebx
jmp 0x100216a
lea eax, [ebp - 0x230]
push eax
mov dword [ebp - 0x21c], 0x7c
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1002170
lea eax, [ebp - 0x230]
push eax
mov dword [ebp - 0x21c], 2
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10020d3
cmp dword [ebp + 0x10], 0
je 0x1002170
and dword [ebp - 0x254], 0
push 7
pop edx
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0x250]
rep stosd dword es:[edi], eax
push eax
mov dword [ebp - 0x250], 0x88
mov dword [ebp - 0x240], edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x254]
push eax
mov dword [ebp - 0x254], 0x20
call esi
cmp eax, ebx
je 0x1002170
push dword [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010019a7
leave
ret 0xc
Function at 0x5ac530
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.004a0efb
mov eax, dword [0x6320b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x635a10]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1420], ecx
mov edx, dword [ebp - 0x1420]
cmp edx, dword [ebp - 0x1424]
jae 0x5ac708
lea eax, [ebp - 5]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1418], ecx
mov edx, dword [ebp - 0x1418]
cmp edx, dword [ebp - 0x1430]
jae 0x5ac657
mov eax, dword [ebp - 0x1420]
cmp eax, dword [ebp - 0x1424]
jae 0x5ac657
mov ecx, dword [ebp - 0x1420]
mov dl, byte [ecx]
mov byte [ebp - 0x1419], dl
mov eax, dword [ebp - 0x1420]
add eax, 1
mov dword [ebp - 0x1420], eax
mov cl, byte [ebp - 0x1419]
mov byte [ebp - 0x1411], cl
movsx edx, byte [ebp - 0x1411]
cmp edx, 0xa
jne 0x5ac635
mov eax, dword [ebp - 0x1408]
add eax, 1
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp - 0x1418]
mov byte [ecx], 0xd
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
mov eax, dword [ebp - 0x1418]
mov cl, byte [ebp - 0x1411]
mov byte [eax], cl
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
jmp 0x5ac5b9
mov eax, dword [ebp - 0x1418]
lea ecx, [ebp - 0x1404]
sub eax, ecx
mov dword [ebp - 0x142c], eax
push 0
lea edx, [ebp - 0x1428]
push edx
mov eax, dword [ebp - 0x142c]
push eax
lea ecx, [ebp - 0x1404]
push ecx
mov edx, dword [ebp - 0x1434]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x5ac6c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
jmp 0x5ac728
mov edx, dword [ebp - 0x140c]
add edx, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], edx
mov eax, dword [ebp - 0x1428]
cmp eax, dword [ebp - 0x142c]
jae 0x5ac703
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x5ac728
jmp 0x5ac592
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a2459
mov esp, ebp
pop ebp
ret
Function at 0x5ac7c0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.004a0efb
mov eax, dword [0x6320b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x635a10]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x141c], ecx
mov edx, dword [ebp - 0x141c]
cmp edx, dword [ebp - 0x1424]
jae 0x5ac9ab
lea eax, [ebp - 6]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1414], ecx
mov edx, dword [ebp - 0x1414]
cmp edx, dword [ebp - 0x1430]
jae 0x5ac8f6
mov eax, dword [ebp - 0x141c]
cmp eax, dword [ebp - 0x1424]
jae 0x5ac8f6
mov ecx, dword [ebp - 0x141c]
mov dx, word [ecx]
mov word [ebp - 0x141e], dx
mov eax, dword [ebp - 0x141c]
add eax, 2
mov dword [ebp - 0x141c], eax
mov cx, word [ebp - 0x141e]
mov word [ebp - 0x1418], cx
movzx edx, word [ebp - 0x1418]
cmp edx, 0xa
jne 0x5ac8d2
mov eax, dword [ebp - 0x1408]
add eax, 2
mov dword [ebp - 0x1408], eax
mov ecx, 0xd
mov edx, dword [ebp - 0x1414]
mov word [edx], cx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
mov ecx, dword [ebp - 0x1414]
mov dx, word [ebp - 0x1418]
mov word [ecx], dx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
jmp 0x5ac849
mov ecx, dword [ebp - 0x1414]
lea edx, [ebp - 0x1404]
sub ecx, edx
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x142c], ecx
push 0
lea eax, [ebp - 0x1428]
push eax
mov ecx, dword [ebp - 0x142c]
push ecx
lea edx, [ebp - 0x1404]
push edx
mov eax, dword [ebp - 0x1434]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x5ac964
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x5ac9cb
mov eax, dword [ebp - 0x140c]
add eax, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], eax
mov ecx, dword [ebp - 0x1428]
cmp ecx, dword [ebp - 0x142c]
jae 0x5ac9a6
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1410]
mov dword [edx], eax
mov ecx, dword [ebp - 0x140c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x1408]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
jmp 0x5ac9cb
jmp 0x5ac822
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a2459
mov esp, ebp
pop ebp
ret
Function at 0x1002b90
Capabilities:
Delete registry value

Disassembly:
push 0x10079a4
push 0x1001230
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x1002c38
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push edi
xor edi, edi
cmp dword [0x1007440], edi
je 0x1002bce
push 0x10012f4
push dword [0x10079a4]
call esi
jmp 0x1002bd9
push edi
push 0x10012f4
call fcn.010023e2
cmp dword [0x100712c], edi
je 0x1002bef
push 1
push 0x1001308
call fcn.010023e2
jmp 0x1002bfc
push 0x1001308
push dword [0x10079a4]
call esi
cmp dword [0x1007134], edi
je 0x1002c13
push 0x1001314
push dword [0x10079a4]
call esi
jmp 0x1002c1e
push edi
push 0x1001314
call fcn.010023e2
push dword [0x10079a4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [0x10079a4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
ret

Function at 0x10046c3
Capabilities:
Encode data using xor

Disassembly:
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov ecx, 0x400
cmp eax, ecx
jge 0x10046d5
mov ecx, eax
mov eax, ecx
sub eax, edi
cdq
xor eax, edx
sub eax, edx
cmp eax, 3
jle 0x1004709
push ebx
push esi
mov eax, ecx
imul eax, ecx
sub eax, edi
cdq
mov ebx, ecx
neg ebx
shl ebx, 1
idiv ebx
mov esi, ecx
add ecx, eax
mov eax, ecx
sub eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, 3
jg 0x10046e5
pop esi
pop ebx
mov eax, ecx
ret