joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40259e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
xor esi, esi
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], esi
je 0x40260c
mov eax, dword [eax + edi + 0x78]
add eax, edi
push ebx
mov ecx, dword [eax + 0x1c]
add ecx, edi
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0x20]
add ecx, edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
mov ebx, esi
cmp dword [eax + 0x14], esi
jbe 0x40260b
mov eax, dword [ecx + ebx*4]
add eax, edi
push 0x4015a8
push eax
call dword [0x406014]
pop ecx
test eax, eax
mov eax, dword [ebp - 4]
pop ecx
je 0x4025f9
mov ecx, dword [ebp - 8]
inc ebx
cmp ebx, dword [eax + 0x14]
jb 0x4025d4
jmp 0x40260b
mov eax, dword [eax + 0x24]
mov esi, dword [ebp - 0xc]
lea eax, [eax + ebx*2]
movzx eax, word [eax + edi]
mov esi, dword [esi + eax*4]
add esi, edi
pop ebx
call fcn.00403525
sub eax, dword [0x406040]
xor ecx, ecx
cmp eax, 0x7fff
cmova esi, ecx
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x4031ed
Capabilities:
Accept command line arguments
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x40123c
mov dword [ebp - 8], ecx
call edi
push eax
call dword [0x406008]
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x403218
xor al, al
jmp 0x40327f
add esi, 0x2a
push 0x20
push esi
call dword [0x406004]
pop ecx
pop ecx
test eax, eax
jne 0x403237
push ecx
push 0x401268
call fcn.004024aa
jmp 0x403214
sub eax, esi
sar eax, 1
cmp eax, 2
jae 0x403251
push ecx
push 0x40127c
call fcn.004024aa
push ecx
call edi
push eax
jmp 0x403230
lea edi, [eax + eax]
push ebx
lea eax, [edi + 2]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
jne 0x403283
push ecx
push 0x401290
call fcn.004024aa
xor al, al
pop ebx
pop edi
pop esi
leave
ret
push edi
push esi
push ebx
call dword [0x406020]
add esp, 0xc
xor eax, eax
push ebx
mov word [edi + ebx], ax
xor ebx, ebx
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x4032c8
push ecx
push 0x4012a4
call fcn.004024aa
push 0xa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, 0x406048
call fcn.00402443
jmp 0x40327c
mov esi, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
push ebx
push ebx
push 4
push eax
call esi
mov ebx, eax
test ebx, ebx
jne 0x4032e4
push ecx
push 0x4012b8
jmp 0x4032ae
push 0x20
push ebx
push dword [ebp - 8]
call dword [0x406020]
add esp, 0xc
call fcn.0040342c
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x40327c
mov eax, dword [ebx + 0x20]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
add eax, 0x18
mov edx, eax
mov ecx, edi
mov dword [ebp - 8], eax
call fcn.004033db
test al, al
je 0x40327c
lea edx, [ebp - 4]
mov ecx, edi
call fcn.004033db
test al, al
je 0x40327c
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ebp - 8]
push 2
push dword [eax]
call esi
mov ecx, eax
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x403359
push ecx
push 0x4012cc
jmp 0x4032ae
mov eax, dword [ebx + 0x24]
lea esi, [ebx + 0x28]
lea eax, [esi + eax*4]
mov dword [ebp - 0xc], eax
cmp esi, eax
je 0x403387
mov edx, dword [esi]
add edx, ecx
mov ecx, edi
call fcn.004033db
test al, al
je 0x40327c
mov ecx, dword [ebp - 8]
add esi, 4
cmp esi, dword [ebp - 0xc]
jne 0x403369
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x40339f
push ecx
push 0x4012e0
jmp 0x4032ae
push dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call edi
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
push ebx
call edi
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x18]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x40327e
Function at 0x404e30
Capabilities:
Create pipe
Create process on windows
Set environment variable
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x240c
call fcn.004114f0
mov eax, dword [0x45cafc]
mov ecx, dword [0x45c588]
push ebx
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x404f63
mov ebx, dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
cmp dword [0x45cafc], 0x959
jne 0x404f4c
push 0
lea eax, [ebp - 0x808]
push eax
push 0
push 0
push 0
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
push 0
lea ecx, [ebp - 0x1008]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea edx, [ebp - 0x1c08]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
lea eax, [ebp - 0x1808]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0
push 0
push 0x404794
push 0
push 0
push 0
call esi
push 0
lea ecx, [ebp - 0x2408]
push ecx
push 0
call edi
mov edx, dword [ebp - 4]
push edx
call fcn.00404ba0
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x404e6e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407662
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44d168]
jne 0x40766c
repz ret
jmp fcn.0040d46c

Function at 0x40d860
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040919a
and dword [ebp - 4], 0
cmp dword [0x453af8], 0
mov ebx, eax
jne 0x40d911
push 0x401cc0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d9c2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401cb4
push edi
call esi
test eax, eax
je 0x40d9c2
push eax
call fcn.00409128
mov dword [esp], 0x401ca4
push edi
mov dword [0x453af8], eax
call esi
push eax
call fcn.00409128
mov dword [esp], 0x401c90
push edi
mov dword [0x453afc], eax
call esi
push eax
call fcn.00409128
mov dword [esp], 0x401c74
push edi
mov dword [0x453b00], eax
call esi
push eax
call fcn.00409128
pop ecx
mov dword [0x453b08], eax
test eax, eax
je 0x40d911
push 0x401c5c
push edi
call esi
push eax
call fcn.00409128
pop ecx
mov dword [0x453b04], eax
mov eax, dword [0x453b04]
cmp eax, ebx
je 0x40d969
cmp dword [0x453b08], ebx
je 0x40d969
push eax
call fcn.004091a3
push dword [0x453b08]
mov esi, eax
call fcn.004091a3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d969
test edi, edi
je 0x40d969
call esi
test eax, eax
je 0x40d960
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d960
test byte [ebp - 0xc], 1
jne 0x40d969
or dword [ebp + 0x10], 0x200000
jmp 0x40d9a2
mov eax, dword [0x453afc]
cmp eax, ebx
je 0x40d9a2
push eax
call fcn.004091a3
pop ecx
test eax, eax
je 0x40d9a2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d9a2
mov eax, dword [0x453b00]
cmp eax, ebx
je 0x40d9a2
push eax
call fcn.004091a3
pop ecx
test eax, eax
je 0x40d9a2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x453af8]
call fcn.004091a3
pop ecx
test eax, eax
je 0x40d9c2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d9c4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x708814d0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 0x10], 0xf0000000
mov dword [esp + 0xc], 0x18
mov dword [esp + 8], 0
mov dword [esp + 4], 0
lea eax, [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
call eax
sub esp, 0x14
test eax, eax
sete al
test al, al
jne 0x70881613
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x800c
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
call eax
sub esp, 0x14
test eax, eax
sete al
test al, al
jne 0x70881616
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], 0
mov edx, dword [ebp + 0x14]
mov dword [esp + 8], edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_CryptHashData]
call eax
sub esp, 0x10
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x14]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov dword [esp + 4], 0x6610
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
call eax
sub esp, 0x14
mov eax, dword [ebp - 0x14]
lea edx, [ebp + 0xc]
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
call eax
sub esp, 0x18
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call eax
sub esp, 8
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
call eax
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
call eax
sub esp, 4
jmp 0x70881617
nop
jmp 0x70881617
nop
leave
ret
Function at 0x70881629
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xe028
call fcn.70882490
sub esp, eax
mov dword [ebp - 0x24], 0xd3f39bed
mov dword [ebp - 0x20], 0x5c90d5cd
mov dword [ebp - 0x1c], 0xd06f47d3
mov dword [ebp - 0x18], 0x6b8bd2ec
lea eax, [ebp - 0xe004]
mov edx, 0x70884044
mov ecx, 0xdfe0
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._memcpy
mov dword [ebp - 0xc], 0xdfe0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x3000
mov dword [esp + 4], 0xdfe0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call eax
sub esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x708816b7
mov eax, 0xffffffff
jmp 0x7088179c
mov dword [esp + 0xc], 0x10
lea eax, [ebp - 0x24]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0xe004]
mov dword [esp], eax
call sym.DestroyingAE_char__unsigned_long__char__unsigned_long_
mov dword [esp + 8], 0xdfe0
lea eax, [ebp - 0xe004]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._memmove
lea eax, [ebp - 0xe008]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x20
mov dword [esp + 4], 0xdfe0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call eax
sub esp, 0x10
test eax, eax
sete al
test al, al
je 0x70881732
mov eax, 0xfffffffe
jmp 0x7088179c
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
call eax
sub esp, 0x18
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x7088177a
mov eax, 0xfffffffd
jmp 0x7088179c
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call eax
sub esp, 8
mov eax, dword [ebp - 0x10]
call eax
mov eax, 0
leave
ret

Function at 0x70881960
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
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 sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x708819c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x70894050]
test esi, esi
jle 0x70881ae0
mov eax, dword [0x70894054]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x708819f4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x70881a77
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x708819e0
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x70881b07
mov eax, dword [0x70894054]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x70894054]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x70881ae7
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x70881a70
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x70881a80
add dword [0x70894050], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x70894054]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x70881a70
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, cs:[esi]
nop
xor esi, esi
jmp 0x708819fe
mov eax, dword [0x70894054]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, cs:[esi]
nop

Function at 0x70881e20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x70894060
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x70894058]
sub esp, 4
test ebx, ebx
je 0x70881e75
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x70881e6e
test eax, eax
jne 0x70881e6e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x70881e50
mov dword [esp], 0x70894060
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x708821b0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x70880000], 0x5a4d
jne 0x708821d5
mov ecx, dword [0x7088003c]
cmp dword [ecx + 0x70880000], 0x4550
lea edx, [ecx + 0x70880000]
je 0x708821e0
ret
cmp word [ecx + 0x70880018], 0x10b
jne 0x708821d5
push esi
movzx eax, word [ecx + 0x70880014]
push ebx
movzx esi, word [ecx + 0x70880006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x70880000
test si, si
je 0x70882228
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x7088221e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x7088222a
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x70882210
xor eax, eax
pop ebx
pop esi
ret

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

Disassembly:
pushal
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x40154b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov esi, dword [0x470da8]
xor ebx, ebx
push edi
mov dword [esp + 0x10], edx
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x78]
add eax, esi
mov dword [esp + 0x18], eax
mov edi, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add edi, esi
mov dword [esp + 0x14], eax
test eax, eax
je 0x4015bb
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.004017a5
lea ecx, [esp + 0x1c]
call fcn.00401317
cmp eax, dword [esp + 0x10]
je 0x4015d2
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.00401782
inc ebx
cmp ebx, dword [esp + 0x14]
jb 0x40158b
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401add
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.00401782
jmp 0x4015bd

Function at 0x401659
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
sub cx, 0x1f9
mul edi
dec cx
mul di
mul ebx
sub ax, 0x22b
or edi, ebx
shr cx, 2
rcl eax, 0x6e
rol ax, 0x19
rcl cx, 0xcb
mul si
mov si, 0x1b0
rcr esi, 0xed
inc si
dec dx
movsx ebx, si
movsx ecx, si
rcl cx, 0x33
mov edx, esi
shr ax, 0xb9
dec cx
ja 0x4016b3
test edx, 0x43
ja 0x4016d4
dec bx
imul eax
jmp 0x4016c3
rol bx, 0x64
sub di, cx
ror esi, 0x18
ror ecx, 0xef
movsx ebx, bx
rcl eax, 0x5b
mul esi
jae 0x4016d4
inc ax
movsx ecx, si
rcr ebx, 0x8e
jmp 0x4016ef
and ecx, 0x33b
ror edx, 0x56
rcr di, 0xc6
or esi, 0x389
movzx edi, ax
movsx edi, si
imul edx
mul cx
ror ax, 0x4e
sub ebx, 0xb9
rcl cx, 0x60
jb 0x40170e
imul si
mul eax
inc esi
xor bx, dx
inc ebx
jmp 0x401720
mul eax
add eax, edi
mov ax, 0x2a4
mul ebx
ror edi, 0xfc
xor di, 0xdb
movsx ecx, di
dec bx
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x470da8], eax
push 0x27
mov esi, 0x46fd30
mov edx, 0x547
push 0x41b900
mov ecx, esi
call fcn.00401112
pop ecx
pop ecx
mov edx, 0x8aafdc01
call fcn.0040154b
lea ecx, [ebp - 4]
push ecx
push 0x40
push 0x4e4
push esi
call eax
pop edi
pop esi
pop ebx
test eax, eax
je 0x40177c
call fcn.004015f4
xor eax, eax
leave
ret 0x10

Function at 0x40238b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4023ca
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4023ca
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4023ca
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4023ca
cmp dword [ecx + 0x74], 0xe
jbe 0x4023ca
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0xb791b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00b79140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00b79140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00b79140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00b79140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xb79bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xb79c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xb8b87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xb79c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xb79c52
xor eax, eax
pop esi
leave
ret 4

Function at 0x438c99
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x438a14
add edi, edi
call fcn.00438cc4
and edi, esi
and esi, esi
add edi, esi
xor dword [eax], ecx
inc edi
add edi, edi
inc eax
mov esi, esi
cmp eax, edx
jne fcn.00438c99
sub edi, 0x1d44a4e6
add edi, edi
ret
Function at 0x10013488
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001d01c]
jne 0x10013492
repz ret
jmp fcn.10013716

Function at 0x100156b9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10013b89
and dword [ebp - 4], 0
cmp dword [0x10040a38], 0
mov ebx, eax
jne 0x1001576a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1001581b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001a870
push edi
call esi
test eax, eax
je 0x1001581b
push eax
call fcn.10013b17
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10040a38], eax
call esi
push eax
call fcn.10013b17
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10040a3c], eax
call esi
push eax
call fcn.10013b17
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10040a40], eax
call esi
push eax
call fcn.10013b17
pop ecx
mov dword [0x10040a48], eax
test eax, eax
je 0x1001576a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10013b17
pop ecx
mov dword [0x10040a44], eax
mov eax, dword [0x10040a44]
cmp eax, ebx
je 0x100157c2
cmp dword [0x10040a48], ebx
je 0x100157c2
push eax
call fcn.10013b92
push dword [0x10040a48]
mov esi, eax
call fcn.10013b92
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100157c2
test edi, edi
je 0x100157c2
call esi
test eax, eax
je 0x100157b9
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100157b9
test byte [ebp - 0xc], 1
jne 0x100157c2
or dword [ebp + 0x10], 0x200000
jmp 0x100157fb
mov eax, dword [0x10040a3c]
cmp eax, ebx
je 0x100157fb
push eax
call fcn.10013b92
pop ecx
test eax, eax
je 0x100157fb
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100157fb
mov eax, dword [0x10040a40]
cmp eax, ebx
je 0x100157fb
push eax
call fcn.10013b92
pop ecx
test eax, eax
je 0x100157fb
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10040a38]
call fcn.10013b92
pop ecx
test eax, eax
je 0x1001581b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1001581d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret