joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51e368
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x1c]
call fcn.00404ee0
xor eax, eax
push ebp
push 0x51e47e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 0x1c], 0
jne 0x51e3a1
lea edx, [ebp + 0x1c]
mov eax, ebx
call fcn.0040a0b4
lea eax, [ebp - 0x40]
xor ecx, ecx
mov edx, 0x3c
call fcn.004033fc
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x540
mov dword [ebp - 0x34], edi
mov eax, ebx
call fcn.00404ef0
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
call fcn.00404ef0
mov dword [ebp - 0x2c], eax
cmp dword [ebp + 0x1c], 0
je 0x51e3e7
mov eax, dword [ebp + 0x1c]
call fcn.00404ef0
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
push eax
call sub.shell32.dll_ShellExecuteExA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x51e409
call sub.kernel32.dll_GetLastError_1
mov dword [esi], eax
jmp 0x51e468
mov dword [esi], 0x103
mov eax, dword [ebp - 8]
test eax, eax
je 0x51e462
cmp byte [ebp + 0x14], 0
je 0x51e424
push 0xffffffffffffffff
push eax
call sub.user32.dll_WaitForInputIdle
cmp byte [ebp + 0x18], 0
je 0x51e44f
mov eax, dword [0x5d51bc]
mov eax, dword [eax]
call fcn.004a2048
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 8]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x51e42a
push esi
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
mov dword [esi], 0x21
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51e485
lea eax, [ebp + 0x1c]
call fcn.00404a30
ret
Function at 0x40171f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push edi
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.004016bb
mov ebx, eax
mov dh, byte [ebx]
mov dl, 1
mov ecx, dword [edi]
or dh, dh
jne 0x401752
inc ebx
push ecx
mov eax, esp
push eax
push 0
push dword [ebx]
call fcn.00401665
pop ecx
jecxz 0x401760
push eax
mov al, byte [eax]
xor al, 0xb5
mov byte [esi], al
pop eax
inc esi
inc eax
loop 0x401754
or dh, dh
jne 0x40176c
inc dl
mov cl, dl
cmp ecx, dword [edi]
jl 0x40173f
mov byte [esi], 0
sub esi, dword [ebp + 0xc]
mov dword [edi], esi
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x4019c3
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push 0x244
push 0x4013c0
call fcn.0040159d
xor edi, edi
mov dword [ebp - 0x1c], edi
mov ebx, 0x80
push ebx
push edi
lea eax, [ebp - 0xa8]
push eax
call fcn.00403881
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x24], edi
dec dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
dec eax
je 0x401a68
dec eax
je 0x401a28
dec eax
je 0x4019f1
dec eax
jne 0x401af6
lea eax, [ebp - 0x254]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x401af6
inc dword [ebp - 0x1c]
jmp 0x4019f1
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push dword [ecx + 4]
lea ecx, [eax + 2]
push ecx
add eax, 6
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.00401894
cmp eax, edi
jle 0x401af6
push edi
push 0x12
push 0x12
push edi
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4019f1
jmp 0x401af6
push reloc.KERNEL32.dll_RaiseException
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, edi
je 0x401ae4
mov dword [esi + 0x6c], 1
or dword [esi + 0x70], 0xffffffff
or byte [esi + 0x5c], 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x3ba8], eax
push ebx
lea eax, [ebp - 0xa8]
push eax
lea eax, [esi + 0x3c58]
push eax
call fcn.00403868
mov dword [esi + 0x6c], 3
lea eax, [ebp - 0x28]
push eax
push edi
push esi
push 0x402849
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esi + 0x3ba4]
mov dword [ecx], eax
cmp eax, edi
je 0x401ae4
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x74], edi
push 0xfffffffffffffff1
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [ebp - 0x24]
push esi
call fcn.004027e6
cmp dword [ebp - 0x24], edi
jne 0x4019f1
lea eax, [ebp - 0xa8]
push eax
call fcn.00401d70
cmp dword [ebp - 0x1c], edi
je 0x401b27
dec dword [ebp - 0x1c]
mov dword [ebp - 4], edi
call sub.WSOCK32.dll_WSACleanup
or dword [ebp - 4], 0xffffffff
jmp 0x401b02
push 2
push 1
push 0x400
push dword [0x405054]
call dword [sym.imp.USER32.dll_PostMessageA]
call fcn.004019b2
ret 4
Function at 0x401dc8
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xe4
push 0x4013f0
call fcn.0040159d
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x28], edi
push 0xfffffffffffffff4
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
call ebx
mov dword [ebp - 0x20], eax
push 0x40
push edi
lea eax, [ebp - 0xb4]
push eax
call fcn.00403881
mov word [ebp - 0xb4], 0x3c
push 0x40
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0xf4]
push eax
call fcn.00403868
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00403898
mov dword [ebp - 0x40], 0x403d58
mov dword [ebp - 0x3c], 0x403dea
mov dword [ebp - 0x38], 0x40207b
mov esi, dword [ebp + 8]
mov dword [ebp - 0x34], esi
mov dword [esi], 0x238
mov dword [esi + 4], 6
cmp dword [ebp - 0x20], edi
je 0x401ea2
push 0xfffffffffffffff6
call ebx
cmp dword [ebp - 0x20], eax
jne 0x401ea2
mov dword [ebp - 0x28], 1
or byte [esi + 0x1bbc], 4
push 0x40238e
call fcn.00402b76
lea ecx, [ebp - 0x2c]
push ecx
push 4
push esi
push eax
push edi
push edi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x401ea2
and byte [esi + 0x1bbc], 0xfb
mov dword [ebp - 0x24], 0x40216b
mov ecx, 0x402094
mov eax, dword [esi + 0x6c]
sub eax, 3
je 0x401ebc
dec eax
jne 0x401ebe
mov dword [ebp - 0x24], edi
xor ecx, ecx
lea ebx, [esi + 0x1bc8]
push 2
push ecx
push ebx
push esi
call fcn.0040289e
test eax, eax
je 0x401f36
push 1
push dword [ebp - 0x24]
lea eax, [esi + 0x78]
push eax
push esi
call fcn.0040289e
test eax, eax
je 0x401f36
mov dword [ebp - 4], edi
cmp dword [ebp - 0x28], edi
jne 0x401ef4
push edi
push ebx
call fcn.00402953
cmp dword [ebp - 0x1c], edi
je 0x401f1c
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x20]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401f32
lea eax, [ebp - 0x74]
push eax
call fcn.00401b6d
test eax, eax
jne 0x401f1c
jmp 0x401f32
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x74]
push eax
call fcn.00403926
call fcn.004019b2
ret 4

Function at 0x40278a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0x40243a
mov edi, eax
call fcn.00402b76
lea ecx, [ebp - 8]
push ecx
push 0
push dword [ebp + 8]
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
test edi, edi
je 0x4027de
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
leave
ret 4
Function at 0x4027e6
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x402845
cmp dword [esp + 0xc], 0
je 0x402801
push 0x7fffffff
push esi
call fcn.00401cfe
push esi
call fcn.00402721
mov eax, dword [esi + 0x3ba4]
test eax, eax
je 0x40283e
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x402832
push 0
push dword [esi + 0x3ba4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x3ba4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
ret 8

Function at 0x40289e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov al, byte [esi + 0x1b44]
test al, 1
jne 0x402943
or al, 1
mov byte [esi + 0x1b44], al
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x70]
push ebx
mov dword [esi + 0x1b48], eax
push edi
lea eax, [esi + 0x1b18]
push eax
mov dword [esi + 0x1b14], ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
xor edi, edi
push edi
push edi
push 1
push edi
call ebx
push edi
push edi
push 1
push edi
mov dword [esi + 0x1b40], eax
call ebx
cmp dword [esi + 0x1b40], edi
mov dword [esi + 0x1b10], eax
je 0x40293b
cmp eax, edi
je 0x40293b
cmp dword [ebp + 0x10], edi
je 0x40292a
lea eax, [ebp + 0xc]
push eax
push edi
push esi
push dword [ebp + 0x10]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x1b0c], eax
je 0x40293b
push dword [ebp + 0x14]
push dword [esi + 0x1b0c]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
jmp 0x402941
push esi
call fcn.00402572
pop edi
pop ebx
xor eax, eax
mov al, byte [esi + 0x1b44]
pop esi
and eax, 1
pop ebp
ret 0x10

Function at 0x4029e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [0x405098], ebx
je 0x402a4b
push ebx
push ebx
push 0x12
push dword [0x405004]
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push 0x7530
push dword [0x405098]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x405098]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 4]
push eax
push ebx
push 0x1e
mov dword [0x405098], ebx
call fcn.00401665
cmp byte [section..data], bl
mov al, byte [eax]
jne 0x402a40
cmp byte [0x405088], bl
je 0x402a4b
test al, 4
je 0x402a4b
xor eax, eax
jmp 0x402ad0
cmp byte [0x405001], bl
push esi
jne 0x402a8b
push dword [0x405084]
mov esi, 0x405008
push esi
call fcn.004034e1
cmp byte [0x405058], bl
jne 0x402a73
mov byte [0x405088], bl
cmp byte [0x405088], bl
jne 0x402ab0
inc dword [0x405034]
mov eax, dword [0x405034]
cmp eax, dword [ebp + 8]
jb 0x402a8f
xor eax, eax
jmp 0x402acf
mov eax, dword [0x405084]
mov byte [eax], bl
push dword [0x405084]
push esi
call fcn.004034e1
mov byte [0x405058], 1
mov byte [0x405088], 1
push 0x405004
push ebx
push ebx
push 0x40310a
push ebx
push ebx
mov dword [0x405030], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x405098], eax
pop esi
pop ebx
leave
ret 4
Function at 0x402d33
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, 0x4050b0
xor eax, eax
cmp dword [esi], eax
jne 0x402d6f
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [ebp + 8]
jecxz 0x402d7e
cmp eax, ecx
je 0x402d7e
mov dword [esi], ecx
push eax
push dword [0x40122c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, sym.rpcnetp.exe_rpcnetp
pop eax
jne 0x402d7e
call fcn.00402fd1
mov eax, 1
mov dword [0x40508c], eax
pop esi
leave
ret 0xc
mov dword [esi], eax
pop esi
leave
jmp 0x402e9c
push ecx
push ecx
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor ebx, ebx
cmp dword [0x40508c], ebx
mov dword [0x40509c], eax
jne 0x402ec0
test eax, eax
jns 0x402ec0
or dword [0x405090], 0xffffffff
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
push edi
mov dword [esp + 0x14], edi
call fcn.00402ad5
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
cmp esi, ebx
je 0x402f3f
mov eax, dword [0x4050a8]
mov byte [0x405089], bl
cmp dword [eax + 0x28], ebx
jne 0x402f2c
mov dword [0x405090], 2
call fcn.00402fdc
mov edi, eax
mov eax, dword [0x4050a8]
push edi
mov dword [eax + 0x28], 1
call fcn.00403526
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp edi, ebx
je 0x402f23
push edi
call ebp
cmp esi, ebx
jne 0x402f3f
jmp 0x402fb4
push edi
push 0xfffffffffffffff6
mov dword [0x405090], 1
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
mov eax, dword [0x405090]
cmp eax, ebx
jne 0x402f53
cmp esi, ebx
jne 0x402f61
call fcn.00402c83
jmp 0x402fba
cmp eax, 2
je 0x402fba
cmp esi, ebx
jne 0x402f61
cmp eax, 0xffffffff
jne 0x402f70
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x4050a0], eax
lea eax, [esp + 0x14]
push eax
push ebx
push ebx
push 0x402b92
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, ebx
je 0x402fb4
mov eax, dword [0x4050a0]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
je 0x402fac
push 0xffffffffffffffff
push eax
call esi
push dword [0x4050a0]
call ebp
mov dword [0x4050a0], ebx
push 0xffffffffffffffff
push edi
call esi
push edi
call ebp
push ebx
call fcn.00402c94
cmp dword [esp + 0x10], ebx
pop edi
pop esi
je 0x402fc8
push dword [esp + 8]
call ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40317b
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
xor esi, esi
push esi
push esi
xor ebp, ebp
inc ebp
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0x403139
push 0x40136c
mov dword [0x4050ac], eax
mov dword [0x405038], 0x10
mov dword [0x405044], 0x42a
mov dword [0x405048], ebp
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerA]
cmp eax, esi
mov dword [0x40502c], eax
je 0x40326f
push ebx
push edi
push esi
push 0x1388
push 2
pop ebx
push ebx
mov dword [0x405040], ebp
call fcn.00402c54
push esi
push esi
push 4
mov dword [0x405040], 5
call fcn.00402c54
call fcn.00403275
lea eax, [esp + 0x10]
push eax
push esi
push esi
push 0x402b92
push esi
push esi
mov dword [0x405044], esi
mov dword [0x405048], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, esi
jne 0x403226
mov dword [0x405048], ebx
jmp 0x403259
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push dword [0x4050ac]
call ebx
mov eax, dword [0x405054]
cmp eax, esi
je 0x40324a
push esi
push esi
push 0x11
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push 0x7530
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [0x4050ac]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push esi
push ebp
call fcn.00402c54
pop edi
pop ebx
pop esi
pop ebp
pop ecx
ret 8

Function at 0x403275
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
lea eax, [ebp - 8]
push eax
push 0x40126c
push 0x80000002
mov dword [ebp - 4], 0x80
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4032f1
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x4050b8
xor esi, esi
push esi
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push 0x20
pop ebx
jmp 0x4032cc
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call edi
test eax, eax
je 0x4032bf
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4032f3
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x405090], esi
jne 0x403323
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x401308
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor eax, eax
inc eax
jmp 0x403369
lea eax, [ebp - 4]
push eax
push 0x4012b8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x403367
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40335e
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 8

Function at 0x4033e4
Capabilities:
Copy file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push 0x104
lea eax, [ebp - 0x108]
push eax
push dword [0x4050b0]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4034dd
cmp dword [ebp + 0xc], 0
mov dword [ebp - 4], 0x401304
je 0x403421
mov dword [ebp - 4], 0x401374
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [ebp - 4]
lea ebx, [eax + edi - 3]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4034da
push dword [ebp - 4]
push ebx
call esi
xor esi, esi
push esi
push edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4034da
push esi
push esi
push 3
push esi
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4034da
mov eax, dword [0x4050b0]
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov edx, ecx
sub edx, eax
add edx, 0x16
xor eax, eax
cmp dword [ebp + 0xc], esi
mov dword [ebp + 8], edx
mov ax, word [ecx + 0x16]
jne 0x4034af
or eax, 0x2000
jmp 0x4034b4
and eax, 0xdfff
push esi
push esi
push edx
push edi
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp + 8]
push eax
push 2
lea eax, [ebp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4037bc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov edi, dword [ebp + 0x14]
xor esi, esi
push esi
push esi
push dword [ebp + 0x10]
mov dword [ebp - 8], esi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push esi
push esi
push dword [ebp + 8]
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x403829
cmp dword [ebp + 0x1c], esi
jne 0x4037fb
mov dword [ebx], 1
jmp 0x403820
cmp edi, esi
push 0xffffffffffffffff
lea eax, [ebp - 8]
push esi
push eax
je 0x40380a
push 2
jmp 0x40380c
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, esi
jne 0x403820
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 0x18

Function at 0x403b37
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov word [esi + 0x1a], bx
push 0x7e
push esi
call fcn.00402758
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], ebx
jmp 0x403bbd
cmp ebx, dword [esi]
jne 0x403b63
cmp ebx, edi
jge 0x403b63
mov edi, ebx
mov eax, ebx
sub eax, edi
je 0x403b80
dec eax
je 0x403b7b
dec eax
je 0x403b76
add ebx, dword [ebp + 0xc]
mov bl, byte [ebx]
jmp 0x403b8f
mov bl, byte [esi + 0x1a]
jmp 0x403b99
mov bl, byte [esi + 0x1b]
jmp 0x403b99
mov bl, byte [esi + 0x18]
test edi, edi
je 0x403b8f
cmp edi, dword [ebp + 0x10]
jne 0x403b8f
or bl, 8
movzx eax, bl
push eax
push esi
call fcn.00403b10
movzx eax, bl
bt dword [0x405190], eax
jae 0x403bb0
push 0x7d
push esi
call fcn.00402758
xor bl, 0x20
movzx eax, bl
push eax
push esi
call fcn.00402758
inc dword [ebp - 8]
lea eax, [edi + 3]
cmp dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
jl 0x403b59
push 0x7e
push esi
call fcn.00402758
push esi
call fcn.00402604
movzx ecx, byte [esi + 0x18]
shr ecx, 4
and cl, 7
mov edi, ecx
lea eax, [esi + 0x18]
push eax
call fcn.00403e2c
mov eax, dword [ebp + 0xc]
mov dword [esi + edi*4 + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + edi*4 + 0x3c], eax
lea eax, [ebx - 3]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4664fb
Capabilities:
Check for vm using instruction vpcext

Disassembly:
mov byte [esp + 4], ch
call 0x47ec7c

Function at 0x4665f8
Capabilities:
Check for vm using instruction vpcext

Disassembly:
call fcn.00477dd2
add byte [eax], al
push ebx
jns 0x466675
je 0x466669
shl dword [ebp + esi*8 - 0x17], 0x37
push ecx
add dword [eax], eax
add byte [eax], al
inc ebx
jb 0x4666db
popal
xor al, 0x24
mov ah, 0x25
lahf
call fcn.004655a1
add byte [eax], al
dec ecx

Function at 0x469b32
Capabilities:
Check for vm using instruction vpcext

Disassembly:
pushal
call 0x478a5a
add byte [eax], al
push esp
insb byte es:[edi], dx
jae 0x466857
push dword [esp]
adc edx, edx
bt bx, bx
sub ecx, 1
jmp 0x4667f8

Function at 0x47826c
Capabilities:
Check for vm using instruction vpcext

Disassembly:
add al, 0x87
cmc
seto al
not al
lodsb al, byte [esi]
push ebp
cmc
neg al
pushal
stc
bt bp, ax
sub al, 0x34
push edi
rol al, 6
jmp 0x4667bd

Function at 0x478473
Capabilities:
Access peb ldr_data

Disassembly:
mov byte [esp + 0xc], ah
lea esp, [esp + 0x30]
call fcn.0046a734
stc
call fcn.004a62b2
imul esp, dword [ebp + 0x72], 0x6e
insb byte es:[edi], dx
xor esi, dword [edx]
insb byte es:[edi], dx
insb byte es:[edi], dx
add byte [esi - 0x73], dl
push esi
lea esp, [esp + 0x10]
jb 0x477c81
call fcn.00479548
pushal
pushfd
pushfd
lea eax, [ebx + eax*4 + 0x6c0]
jmp 0x477f80
Function at 0x4784e8
Capabilities:
Encode data using xor

Disassembly:
mov byte [esp + 4], bl
test cx, 0x8489
mov byte [esp + 8], 0x36
sub ecx, 1
lea esp, [esp + 0x54]
jge 0x47c143
push 0xb7d50f03
lea esp, [esp + 4]
jne 0x469e10
bsr cx, dx
neg cl
xchg dl, cl
mov dword [ebp - 0x1c], edi
shl di, 0xc
sub ecx, esi
movsx edx, cl
shl cx, cl
mov edi, dword [ebp + 0xc]
xadd ch, dl
dec dx
sub dh, bl
xor eax, eax
adc dl, al
bsr cx, bx
and cl, 0x7a
mov byte [ebp - 2], al
and ch, dl
or dx, 0xde9d
mov ecx, eax
call fcn.0047eb13
add byte [eax], al
push ebx
je 0x4693f0
arpl word [edx + 0x6f], si
insb byte es:[edi], dx
insb byte es:[edi], dx
push eax
outsd dx, dword [esi]
jae 0x4693a6
add byte [eax], al
push edx
imul esi, dword gs:[bp + di + 0x74], 0x69577265
outsb dx, byte [esi]
outsd dx, dword fs:[esi]
ja 0x469404
jae 0x46942d
jae 0x46942d
popal
inc ecx
add byte [eax], al
add byte [esp + ebp*2 + 0x73], dl
inc edi
je 0x46941e
je 0x46941e
popal
insb byte es:[edi], dx
jne 0x469431
add bh, bh
je 0x4693f4
add al, 0xf8
xchg edi, eax
dec ebp
arpl word [ecx - 0x46], si
mov ch, 0x33
sar dword [edx + 0x2dd385c1], 1
out 0x9c, eax
jecxz 0x4693c6
mov edx, 0xbad133b5
rol dword [ebp - 0x6318d22d], 0xe3
lds esi, [edi]
aaa
and dword [ebx - 0x18], 0x5dbb88b
call 0x6224c94
invalid
and eax, 0xe296f1c8
add eax, 0xfc933dcb
push 0xf330ecf4
adc byte [ebx - 0x7a81a2d6], dl
sub bl, byte [ebp + 0x7e]
test edx, edx
push ds
jle 0x4693b8
rcr byte [esi], cl
cmp eax, 0x730b3cc7
jbe 0x46942f
xchg ebx, eax
in eax, dx
xchg ecx, eax
insd dword es:[edi], dx
adc byte [ebp + 0xf], ah
fnsave dword [edi]
paddusw mm6, qword gs:[edi]
push esi
xchg edi, eax
inc esp
mov eax, dword [0xb30720be]
lahf
xchg ebp, eax
add al, 0x6e
xor eax, 0xc0e1c20b
pop ebp
sbb al, 0xb9
mov ss, edi
jno 0x469441
sub al, 0xa4
ret 0x8c4d
cmc
add edi, eax
jmp 0x46932f
pushal
call fcn.00468cd0
add byte [eax], al
dec ecx
insd dword es:[edi], dx
popal
dec esp
imul esi, dword [ebx + 0x74], 0x6165525f
add cl, ch
sub eax, 0xfffff6
add byte [ebx + 0x65], dl
je 0x47c1b9
push 0x64616572
push eax
jb 0x47c1d6
outsd dx, dword [esi]
jb 0x47c1d9
je 0x47c1eb
add byte [esi - 0x7f], ah
cld
jne 0x47c1b9
jae 0x47c24c
popal
inc ecx
add byte [edx - 0x75], dl
push edx
mov edx, dword [ebp - 0x18]
shr edx, 0xb
imul edx, dword [eax]
cmp dword [ebp - 0x1c], edx
invalid
adc ecx, 0xffffffdd
invalid
dec dword [ebp - 0x17dbdb9c]
mov bh, bh
invalid