joyce8/EMBER2024-capa huggingface dataset:
Function at 0xe6a3a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6bb000]
push edi
or ebp, 0xffffffff
jmp 0xe6a3c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xe6a3c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xe6a3b8
mov eax, 1
add ebx, ebx
jne 0xe6a3db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xe6a3ec
jne 0xe6a40b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xe6a40b
dec eax
add ebx, ebx
jne 0xe6a3f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xe6a3d0
add ebx, ebx
jne 0xe6a407
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xe6a45d
xor ecx, ecx
sub eax, 3
jb 0xe6a423
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xe6a492
sar eax, 1
mov ebp, eax
jmp 0xe6a42e
add ebx, ebx
jne 0xe6a42e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xe6a3fc
inc ecx
add ebx, ebx
jne 0xe6a43c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xe6a3fc
add ebx, ebx
jne 0xe6a449
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xe6a43e
jne 0xe6a45a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xe6a43e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xe6a47c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xe6a46e
jmp 0xe6a3be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xe6a47c
add edi, ecx
jmp 0xe6a3be
pop esi
mov edi, esi
mov ecx, 0x5f2f46
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0xe6a4b7
cmp byte [edi], 0xcb
jne 0xe6a49c
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0xe6a49a
lea edi, [esi + 0xa27000]
mov eax, dword [edi]
or eax, eax
je 0xe6a4ff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xac8100]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xac82c8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xe6a4bd
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xac82d0]
or eax, eax
je 0xe6a4f9
mov dword [ebx], eax
add ebx, 4
jmp 0xe6a4da
call dword [esi + 0xac82cc]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xe6a530
cmp al, 0xef
ja 0xe6a523
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xe6a505
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0xe6a512
mov ebp, dword [esi + 0xac82d4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xe6a564
sub esp, 0xffffff80
jmp 0xa63d10
Function at 0x402010
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
mov eax, dword [0x4010c0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x83c]
push eax
push 0xf003f
push 0
push 0x4012a0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402055
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403e22
mov esp, ebp
pop ebp
ret
push esi
push edi
lea eax, [ebp - 0x840]
mov dword [ebp - 0x840], 0x800
push eax
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x844]
push eax
push 0
push 0x4012d8
push dword [ebp - 0x83c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x4020a2
push dword [ebp - 0x83c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push ebx
xor ebx, ebx
nop dword [eax + eax]
push ebx
lea eax, [ebp - 0x38]
push 0x4012e0
push eax
call fcn.00403900
add esp, 0xc
lea esi, [ebp - 0x838]
cmp byte [ebp - 0x838], 0
je 0x4020f4
lea eax, [ebp - 0x38]
push eax
push esi
call edi
test eax, eax
je 0x4021a4
push 0
push esi
call sub.VCRUNTIME140.dll_strchr
add esp, 8
cmp byte [eax + 1], 0
lea esi, [eax + 1]
jne 0x4020d1
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x38]
push eax
call edi
inc eax
pop ebx
cmp eax, 0x32
jae 0x4021aa
mov byte [ebp + eax - 0x38], 0
lea eax, [ebp - 0x38]
push eax
call edi
add eax, 2
push eax
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x840]
lea eax, [ebp + eax - 0x839]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
call edi
mov ecx, dword [ebp - 0x840]
inc ecx
add eax, ecx
push eax
lea eax, [ebp - 0x838]
push eax
push 7
push 0
push 0x4012d8
push dword [ebp - 0x83c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x83c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x38]
push eax
call edi
inc eax
push eax
call fcn.00403b07
add esp, 4
mov esi, eax
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00403e22
mov esp, ebp
pop ebp
ret
inc ebx
jmp 0x4020b0
call fcn.00403c32
int3
Function at 0x402200
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4010c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x108]
push edi
push 0x104
push ecx
push eax
mov dword [ebp - 0x10c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x402268
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403e22
mov esp, ebp
pop ebp
ret
push esi
push 2
push 0
push 0xfffffc00
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x400
call fcn.00403b07
add esp, 4
mov esi, eax
lea eax, [ebp - 0x10c]
push 0
push eax
push 0x400
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x400
push dword [ebp + 0xc]
push esi
call fcn.00403660
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4022da
push 1
push esi
call fcn.00403af9
add esp, 8
xor eax, eax
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403e22
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
add eax, esi
pop esi
xor ecx, ebp
pop edi
call fcn.00403e22
mov esp, ebp
pop ebp
ret
Function at 0x4027d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 8]
call fcn.00403530
mov esi, eax
add esp, 8
xor ecx, ecx
test esi, esi
jle 0x40288f
push edi
mov edi, dword [ebp - 4]
cmp esi, 0x40
jb 0x402882
push ebx
and eax, 0x8000003f
jns 0x402811
dec eax
or eax, 0xffffffc0
inc eax
movaps xmm2, xmmword [0x401450]
lea edx, [edi + 0x20]
movaps xmm3, xmmword [0x401440]
mov ebx, esi
sub ebx, eax
movups xmm0, xmmword [edx - 0x20]
lea edx, [edx + 0x40]
add ecx, 0x40
movaps xmm1, xmm2
paddb xmm1, xmm0
xorps xmm1, xmm3
movups xmmword [edx - 0x60], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [edx - 0x50]
paddb xmm0, xmm2
xorps xmm0, xmm3
movups xmmword [edx - 0x50], xmm0
movups xmm0, xmmword [edx - 0x40]
paddb xmm1, xmm0
xorps xmm1, xmm3
movups xmmword [edx - 0x40], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [edx - 0x30]
paddb xmm1, xmm0
xorps xmm1, xmm3
movups xmmword [edx - 0x30], xmm1
cmp ecx, ebx
jl 0x402826
pop ebx
cmp ecx, esi
jl 0x402882
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov al, byte [ecx + edi]
add al, 0x7a
xor al, 0x19
mov byte [ecx + edi], al
inc ecx
jmp 0x402876
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402dd0
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Move file
Set file attributes
Timestomp file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4010c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp + 0x14]
push edi
movzx edi, word [ebp + 0xc]
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push 0x401290
push eax
call fcn.00403900
add esp, 0x10
push esi
mov esi, dword [ebp - 0x220]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x220], eax
test eax, eax
je 0x402f7a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x402f7a
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x402f7a
xor eax, eax
xorps xmm0, xmm0
movups xmmword [ebp - 0x21c], xmm0
mov word [ebp - 0x212], ax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x807d4
push eax
mov dword [ebp - 0x216], 0x140011
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea eax, [ebp - 0x230]
push eax
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push 0
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x220]
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test ebx, ebx
je 0x402f2c
push 0
lea eax, [ebp - 0x224]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov esi, dword [ebp - 0x228]
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 2
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403e22
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403e22
mov esp, ebp
pop ebp
ret
Function at 0x402f90
Capabilities:
Get common file path
Get session user name
List groups for user account

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x37c
mov eax, dword [0x4010c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x32
lea eax, [ebp - 0x38]
mov dword [ebp - 0x378], 0x32
push 0
push eax
mov dword [ebp - 0x374], 0
mov dword [ebp - 0x370], 0
mov dword [ebp - 0x37c], 0
call sub.VCRUNTIME140.dll_memset
push 0x104
lea eax, [ebp - 0x1a0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x104
lea eax, [ebp - 0x2a4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x2a4]
add esp, 0x24
push 0x104
push eax
call esi
push 0x104
lea eax, [ebp - 0x1a0]
push eax
call esi
push 0x401284
lea eax, [ebp - 0x1a0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x378]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
push 0x10000000
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2a4]
push eax
call fcn.00401be0
push 0x10000000
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x1a0]
push eax
call fcn.00401be0
add esp, 0x18
lea eax, [ebp - 0x36c]
push 0x64
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x37c]
push eax
lea eax, [ebp - 0x370]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x374]
push eax
push 1
push 0
lea eax, [ebp - 0x36c]
push eax
push 0
call sub.NETAPI32.dll_NetUserGetLocalGroups
test eax, eax
jne 0x403131
mov esi, dword [ebp - 0x374]
test esi, esi
je 0x403141
xor edi, edi
cmp dword [ebp - 0x370], edi
jbe 0x403137
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test esi, esi
je 0x403130
push 0
push 0
push 0x64
lea eax, [ebp - 0x9c]
push eax
push 0xffffffffffffffff
push dword [esi]
push 0
push 1
call ebx
push 0x10000000
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x2a4]
push eax
call fcn.00401be0
push 0x10000000
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x1a0]
push eax
call fcn.00401be0
inc edi
add esp, 0x18
add esi, 4
cmp edi, dword [ebp - 0x370]
jb 0x4030d6
pop ebx
mov esi, dword [ebp - 0x374]
test esi, esi
je 0x403141
push esi
call sub.NETAPI32.dll_NetApiBufferFree
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00403e22
mov esp, ebp
pop ebp
ret

Function at 0x403340
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push esi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x403386
push edi
push 0x10010
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x40337e
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebp
ret
Function at 0x403390
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x405120
push 0x403e30
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4010c0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0x20]
cmp eax, 3
ja case.default.0x4033d4
jmp dword [eax*4 + 0x403508]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov esi, dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne case.default.0x4033d4
jmp 0x40340a
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
push 0x2001f
push 0
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne case.default.0x4033d4
mov edx, dword [ebp + 0x14]
mov eax, edx
sub eax, 1
je 0x40345e
sub eax, 1
je 0x40345e
sub eax, 2
jne case.default.0x4033d4
push 4
lea eax, [ebp + 0x1c]
push eax
push 4
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne case.default.0x4033d4
lea edi, [eax + 1]
jmp 0x4034d1
mov esi, dword [ebp + 0x18]
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403466
sub ecx, ebx
lea eax, [ecx + 1]
push eax
push esi
push edx
jmp 0x403447
lea eax, [ebp - 0x1c]
push eax
push 0x2001f
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne case.default.0x4033d4
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x403455
lea eax, [ebp - 0x1c]
push eax
push 0x2001f
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne case.default.0x4033d4
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, 1
test eax, eax
cmove edi, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0xfffffffe
call fcn.004034f7
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4036f0
Capabilities:
Accept command line arguments
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x528
mov eax, dword [0x4010c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetInputState]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push 0
push 0
push 0
lea eax, [ebp - 0x528]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
push 0x401404
push esi
call fcn.00402200
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4038cd
push 0x40140c
push esi
call fcn.00402200
mov esi, eax
add esp, 8
test esi, esi
je 0x4038cd
push edi
push 0x7c
push esi
call sub.VCRUNTIME140.dll_strchr
mov edi, eax
add esp, 8
test edi, edi
je 0x4038cc
lea ecx, [esi + 6]
mov byte [edi], 0
push ecx
call fcn.004027d0
lea ecx, [edi + 1]
mov esi, eax
push ecx
mov dword [ebp - 0x50c], esi
call fcn.004027d0
add esp, 8
mov edi, eax
test esi, esi
je 0x4038cc
test edi, edi
je 0x4038cc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0x401414
push eax
call sub.VCRUNTIME140.dll_strstr
add esp, 8
test eax, eax
jne 0x403800
push ebx
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4038cc
cmp eax, 5
je 0x4038cc
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x50c]
jmp 0x40380b
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x403520
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call fcn.00402f90
push ebx
push edi
push esi
call fcn.004022f0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4038c4
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
lea eax, [ebp - 0x508]
push 0x401354
push eax
call fcn.00403900
add esp, 0xc
lea eax, [ebp - 0x108]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push 0x401424
lea eax, [ebp - 0x508]
push eax
push 0x80000002
call fcn.00403390
push esi
call fcn.00403340
push 1
push esi
call fcn.00403af9
push 1
push dword [ebp - 0x50c]
call fcn.00403af9
push 1
push edi
call fcn.00403af9
add esp, 0x38
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop esi
xor ecx, ebp
pop ebx
call fcn.00403e22
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40475a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x404799
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404799
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404799
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404799
cmp dword [ecx + 0x74], 0xe
jbe 0x404799
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x2c5c6d20
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
mov eax, str.Ja
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x610a1ecb
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x666860
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.005644f0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.005644f0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
Function at 0x40610d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x40611c
pop dword [ebp - 0x18]
mov eax, 0x830572d8
add eax, 0x7d3aee44
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x817c2110
sub dword [ebp - 0x28], 0x3329dbc5
mov dword [ebp - 0x24], 0xa8a1bca1
add dword [ebp - 0x24], 0x89918fa4
mov dword [ebp - 0x20], 0x17a7b9a
sub dword [ebp - 0x20], 0xb52e376c
mov dword [ebp - 0x1c], 0x77cde063
add dword [ebp - 0x1c], 0x88321f9d
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x29eb22c9
sub dword [ebp - 0x28], 0xb578b973
mov dword [ebp - 0x24], 0x8a1cad7a
add dword [ebp - 0x24], 0xb74fb3fb
mov dword [ebp - 0x20], 0xc22f7f0a
sub dword [ebp - 0x20], 0x5ec0129e
mov dword [ebp - 0x1c], 0x1afc38a6
add dword [ebp - 0x1c], 0xe503c75a
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0xb28de025
add eax, 0x4db290db
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x360d3
push 0
call eax
mov ecx, 0x632b7189
add ecx, 0x9cd4d43d
mov ebx, eax
mov esi, 0x410000
add esi, dword [ebp - 0x18]
mov edx, 0x3ac9aa64
add edx, 0xa5683588
add dword [ebp - 8], 0x226e696c
mov edi, dword [esi]
xor edi, edx
add dword [ebp - 0x10], 0xf8d099d1
mov dword [ebx], edi
add dword [ebp - 4], edx
add ebx, 0x2422a3ba
sub ebx, 0x2422a3b6
add esi, 0xfc037971
add esi, 0x3fc8693
loop 0x406233
add eax, 0x109eb
mov ebx, eax
add eax, 0x9b645c46
sub eax, 0x9b645c41
mov ecx, 0x9436e020
sub ecx, 0x93f6e020
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x4010f4
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
nop
mov eax, dword [0x404078]
cmp eax, 0
jne 0x40112e
mov eax, 0x405d68
push eax
call sub.kernel32.dll_QueryPerformanceFrequency
mov eax, 0x405d70
push eax
call sub.kernel32.dll_QueryPerformanceCounter
mov eax, 1
mov dword [0x404078], eax
mov eax, dword [0x405d6c]
cmp eax, 0
jne 0x40114c
mov eax, dword [0x405d68]
cmp eax, 0
je 0x4011ce
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
mov eax, dword [ebp - 8]
mov ecx, dword [0x405d70]
sub eax, ecx
mov ecx, dword [ebp - 4]
mov edx, dword [0x405d74]
sbb ecx, edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push ecx
push eax
fild qword [esp]
add esp, 8
fst qword [ebp - 0x18]
fstp st(0)
mov eax, dword [0x405d68]
mov ecx, dword [0x405d6c]
push ecx
push eax
fild qword [esp]
add esp, 8
fdivr qword [ebp - 0x18]
fst qword [ebp - 0x10]
fstp st(0)
fld qword [0x404080]
fmul qword [ebp - 0x10]
fst qword [ebp - 0x20]
fstp st(0)
fld qword [0x404088]
fmul qword [ebp - 0x20]
sub esp, 8
fstp qword [esp]
call fcn.00403605
add esp, 8
jmp 0x4011d3
mov eax, 0
leave
ret