joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6dd410
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x74a06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov eax, edx
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], eax
push ecx
push 0xf003f
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x6dd4ef
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x20c], pe_nt_image_headers32
push eax
lea eax, [ebp - 0x208]
push eax
push 0
push dword [ebp - 0x218]
call edi
test eax, eax
jne 0x6dd4d6
nop word [eax + eax]
mov ecx, dword [ebp - 0x218]
lea edx, [ebp - 0x208]
call fcn.006dd410
mov esi, eax
test esi, esi
jne 0x6dd500
lea eax, [ebp - 0x214]
mov dword [ebp - 0x20c], pe_nt_image_headers32
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x208]
push eax
push esi
push dword [ebp - 0x218]
call edi
test eax, eax
je 0x6dd490
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x21c]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006e402d
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006e402d
mov esp, ebp
pop ebp
ret

Function at 0x6dd520
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x74a06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x804]
push edi
push ecx
push 0x400
push eax
mov edi, edx
call fcn.00702483
add esp, 0xc
test edi, edi
je 0x6dd57e
push 0x73c330
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.0070608a
push edi
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.0070608a
add esp, 0x18
push 0
lea eax, [ebp - 0x808]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x804]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x6dd5bc
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006e402d
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x6dd5ef
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x6dd5c5
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push esi
push 1
push 0
push 0
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.006e402d
mov esp, ebp
pop ebp
ret
Function at 0x6dd7d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor bh, bh
mov dword [ebp - 4], ecx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov bl, byte [ebp - 0x47]
mov dword [ebp - 8], eax
cmp bl, 0x30
jne 0x6dd7fb
test bh, bh
jne 0x6dd828
lea eax, [ebp - 0x48]
push eax
push ecx
mov ecx, dword [ebp - 4]
call fcn.006ddb50
mov bh, al
call edi
sub eax, dword [ebp - 8]
cmp eax, 0x3e8
ja 0x6dd824
mov bl, byte [ebp - 0x47]
cmp bl, 0x30
je 0x6dd824
push 0x64
call esi
jmp 0x6dd7f2
test bh, bh
je case.0x6dd839.2
movzx eax, byte [ebp - 0x41]
dec eax
cmp eax, 0xe
ja case.0x6dd839.2
movzx eax, byte [eax + 0x6dd890]
jmp dword [eax*4 + 0x6dd87c]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 3
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 4
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6e5df8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x419b00
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0xa56218a8
sbb eax, 0xa054bd
xlatb
and al, 0x53
xor ah, dh
fcomp qword [edi + 0xb8270fd]
cmc
sub eax, 0x3d0774e4
sbb byte [edi + 0x17], bl
aaa
xor ecx, edx
jecxz 0x419b1c
jl 0x419b5b
mov dword [0x7e9c2ec7], eax
inc edi
out 0xd0, eax
mov edi, dword [esi]
sbb esi, dword [edx]
int 0xcf
rcl byte [eax]
fiadd dword [ebp + 0x12]
jecxz 0x419b69
sbb al, byte [eax + eax + 0x74000000]
stc
test byte [eax], al
add byte [eax], al
add byte [ecx + edi*8 - 0x43], dh
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
invalid
jp 0x419b0c
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
call 0xab419b88
jae 0x419b16
add byte [ebx + 0x26000673], ch
add byte [esi], ah
add eax, 0x31a8d00
add byte [ecx], ch
cdq
sub byte [0x45157ab7], 0x2e
loopne 0x419abf
add eax, dword [eax]
sub dword [ecx + 0x7ab72d82], ebx
mov bh, 0x7a
adc eax, 0x9ce02e45
int 0x9e
fimul dword [ebp - 0x7d]
shr byte [edx - 0x675b92], 0xf3
ja 0x419b81
leave
inc edi
hlt
jge 0x419bb6
outsd dx, dword [esi]
dec eax
mov bl, dh
xor esi, ebp
aas
wait
sbb ebx, ebx
std
clc
into
ret 0xab06
salc
adc eax, 0xe3fec155
mov dword [0x7160e872], eax
and dword gs:[eax], ebx
lea ebp, [edx]
lea eax, [eax]
cmpsd dword [esi], dword es:[edi]
std
mov ebp, 0x4b70e31b
dec edi
sbb ch, cl
mov eax, 0xdabfde48
hlt
int 0xf8
scasb al, byte es:[edi]
xor ebx, dword [ebx + 0x54]
ret
Function at 0x575480
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb9000]
push edi
or ebp, 0xffffffff
jmp 0x5754a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5754a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x575498
mov eax, 1
add ebx, ebx
jne 0x5754bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5754cc
jne 0x5754eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5754eb
dec eax
add ebx, ebx
jne 0x5754d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5754b0
add ebx, ebx
jne 0x5754e7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x57553d
xor ecx, ecx
sub eax, 3
jb 0x575503
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x575572
sar eax, 1
mov ebp, eax
jmp 0x57550e
add ebx, ebx
jne 0x57550e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5754dc
inc ecx
add ebx, ebx
jne 0x57551c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5754dc
add ebx, ebx
jne 0x575529
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x57551e
jne 0x57553a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x57551e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x57555c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x57554e
jmp 0x57549e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x57555c
add edi, ecx
jmp 0x57549e
pop esi
mov edi, esi
mov ecx, 0x3b79
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x57557a
cmp byte [edi], 0x27
jne 0x57557a
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 0x57557f
lea edi, [esi + 0x172000]
mov eax, dword [edi]
or eax, eax
je 0x5755f7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1799a8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x179aac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5755ac
mov ecx, edi
jns 0x5755db
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 + 0x179ab0]
or eax, eax
je 0x5755f1
mov dword [ebx], eax
add ebx, 4
jmp 0x5755c9
call dword [esi + 0x179ac0]
mov ebp, dword [esi + 0x179ab4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x57562b
sub esp, 0xffffff80
jmp 0x4888a1
Function at 0x401ee0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push str.RealPlayer_CommandLine_Mutex
mov ebx, ecx
push 1
push eax
inc ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
mov dword [ebp - 4], esi
je 0x401fee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401f30
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov al, byte [0x433eb0]
mov ecx, 0x1f
mov byte [ebp - 0x8c], al
xor eax, eax
lea edi, [ebp - 0x8b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea ecx, [ebp - 0x8c]
push str.RealPlayer_CommandLine_Shmem__d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x8c]
push edx
push ebx
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
mov dword [ebp - 8], edi
je 0x401fe0
push ebx
push 0
push 0
push 2
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [ebp - 0xc], eax
je 0x401fd9
mov esi, dword [ebp + 0xc]
mov ecx, ebx
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp + 8]
push eax
push 0x590
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4035b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
test ebx, ebx
mov esi, ecx
mov dword [ebp - 4], eax
je 0x4036d2
push edi
push str.PATH
call dword [sym.imp.PNCRT.dll_getenv]
add esp, 4
lea ecx, [ebp - 0x14]
mov edi, eax
call fcn.00405040
test edi, edi
je 0x4035f0
push edi
lea ecx, [ebp - 0x14]
call fcn.00405240
mov al, byte [esi + 0x2b]
add esi, 0x24
cmp al, 0xff
pop edi
je 0x403658
xor ecx, ecx
cmp al, 7
sete cl
mov eax, ecx
test eax, eax
je 0x40362d
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x1c]
push edx
push 0x40c744
push eax
call fcn.004052f0
add esp, 0xc
mov ecx, esi
push eax
call fcn.004051d0
lea ecx, [ebp - 0x1c]
call fcn.00405170
push 0x40c744
lea ecx, [ebp - 0xc]
call fcn.00405180
push ebx
lea ecx, [ebp - 0xc]
call fcn.00405490
mov ax, word [ebp - 0xe]
cmp ah, 0xff
je 0x40366f
xor ecx, ecx
cmp ah, 7
sete cl
mov eax, ecx
jmp 0x403680
mov al, byte [esi + 4]
test al, al
jne 0x40362d
mov al, byte [esi + 5]
test al, al
jne 0x40362d
mov al, byte [esi + 6]
test al, al
je 0x403608
jmp 0x40362d
mov ecx, dword [ebp - 0x10]
test cl, cl
jne 0x403684
test ch, ch
jne 0x403684
test al, al
je 0x40369d
jmp 0x403684
test eax, eax
jne 0x40369d
push 0x40c740
lea ecx, [ebp - 0xc]
call fcn.00405490
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0xc]
push edx
call fcn.004054f0
mov al, byte [ebp - 5]
cmp al, 0xff
lea eax, [ebp - 0xc]
jne 0x4036aa
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.PNCRT.dll__putenv]
add esp, 4
mov esi, 0x80004005
test eax, eax
jne 0x4036c0
mov esi, dword [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.00405170
lea ecx, [ebp - 0x14]
call fcn.00405170
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404a30
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
push esi
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [ebp - 0xcc]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xcc]
or ebx, 0xffffffff
push eax
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], 0
mov dword [ebp - 0xcc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dx, word [ebp - 0xc0]
mov esi, dword [ebp - 0xbc]
mov eax, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0xc4]
mov word [ebp - 0x10], dx
xor edx, edx
cmp esi, 2
mov di, ax
sete dl
mov esi, edx
mov word [ebp - 0x14], di
test esi, esi
mov word [ebp - 0x12], cx
je 0x404aaf
mov ebx, 8
jmp 0x404ad0
cmp ax, 4
jae 0x404abc
mov ebx, 2
jmp 0x404ad0
jne 0x404ad3
cmp cx, 0xa
sbb ebx, ebx
and ebx, 0xfffffc04
add ebx, 0x400
mov dword [ebp - 0xe], ebx
mov eax, dword [ebp + 8]
test eax, eax
je 0x404bbe
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x38]
and eax, 0xffff
cmp eax, 3
ja case.default.0x404af9
jmp dword [eax*4 + 0x404bc8]
test esi, esi
je 0x404b55
cmp di, 3
ja 0x404b13
jne 0x404b55
cmp word [ebp - 0x12], 0x32
jb 0x404b55
mov eax, dword [ebp - 0x18]
and eax, 0xffff
sub eax, 4
jns 0x404b29
mov dword [ebp - 0xa], 0xfffffffe
jmp 0x404b94
test eax, eax
jne 0x404b36
mov dword [ebp - 0xa], 1
jmp 0x404b94
cmp eax, 1
jne 0x404b44
mov dword [ebp - 0xa], 2
jmp 0x404b94
sub eax, 2
neg eax
sbb eax, eax
and al, 0xfb
add eax, 4
mov dword [ebp - 0xa], eax
jmp 0x404b94
mov eax, dword [ebp - 0x20]
sub eax, 0x182
je 0x404b20
sub eax, 0x64
je 0x404b2d
sub eax, 0x64
jne case.default.0x404af9
mov dword [ebp - 0xa], 2
jmp 0x404b94
mov dword [ebp - 0xa], 0x40
jmp 0x404b94
mov dword [ebp - 0xa], 0x20
jmp 0x404b94
mov dword [ebp - 0xa], 8
jmp 0x404b94
mov dword [ebp - 0xa], 0xffffffff
call fcn.00404be0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 6], eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edx
mov edx, dword [ebp - 8]
mov dword [eax + 8], ecx
mov cx, word [ebp - 4]
mov dword [eax + 0xc], edx
mov word [eax + 0x10], cx
pop edi
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404be0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x7fffffff
jne 0x404bf9
xor eax, eax
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x28], 0
jne 0x404c39
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
push str.HARDWAREDESCRIPTIONSystemFloatingPointProcessor
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404c2f
xor eax, eax
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x407150
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi + 4], ebx
je 0x4071c0
mov al, byte [0x433eb0]
push edi
mov byte [ebp - 0x400], al
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x3ff]
rep stosd dword es:[edi], eax
mov edx, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
stosw word es:[edi], ax
stosb byte es:[edi], al
push ecx
lea eax, [ebp - 0x400]
push edx
push eax
mov dword [ebp + 8], ebx
call dword [sym.imp.PNCRT.dll_vsprintf]
add esp, 0xc
cmp eax, ebx
pop edi
jle 0x4071c0
lea ecx, [ebp + 8]
push ebx
push ecx
push eax
mov eax, dword [esi + 4]
lea edx, [ebp - 0x400]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407600
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40768e
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x40768e
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40768e
mov eax, dword [esi + 0x3c]
xor ecx, ecx
add eax, esi
sub edi, esi
mov dword [ebp + 8], 0
mov cx, word [eax + 0x14]
lea edx, [ecx + eax + 0x18]
xor ecx, ecx
mov cx, word [eax + 6]
test ecx, ecx
jbe 0x40768e
lea eax, [edx + 0x10]
mov edx, dword [eax]
mov esi, dword [eax - 8]
mov ebx, dword [eax - 4]
cmp edx, esi
ja 0x407676
mov edx, esi
cmp edi, ebx
jb 0x407680
add edx, ebx
cmp edi, edx
jbe 0x407699
mov edx, dword [ebp + 8]
add eax, 0x28
inc edx
cmp edx, ecx
mov dword [ebp + 8], edx
jb 0x407668
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
inc edx
sub edi, ebx
mov dword [eax], edx
mov dword [ecx], edi
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x407be0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x664
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi], ebx
jne 0x407d1f
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x407d14
push str.EnumProcesses
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, eax
mov ecx, 0x100
xor eax, eax
lea edi, [ebp - 0x664]
test edx, edx
mov dword [ebp - 4], ebx
rep stosd dword es:[edi], eax
je 0x407d14
lea eax, [ebp - 4]
lea ecx, [ebp - 0x664]
push eax
push 0x400
push ecx
call edx
test eax, eax
mov dword [ebp - 8], eax
je 0x407d11
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], ebx
shr eax, 2
mov dword [ebp - 4], eax
je 0x407d11
lea ebx, [ebp - 0x664]
mov ecx, 0x4a
xor eax, eax
lea edi, [ebp - 0x264]
rep stosd dword es:[edi], eax
mov eax, dword [ebx]
mov dword [ebp - 0x264], 0x128
push eax
push 0
push 0x410
mov dword [ebp - 0x25c], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x407cee
mov edx, dword [esi + 0x10]
push str.EnumProcessModules
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], ecx
je 0x407ce7
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0xc]
push ecx
push 4
push edx
push edi
call eax
test eax, eax
je 0x407ce7
mov eax, dword [esi + 0x10]
push str.GetModuleBaseNameA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407ce7
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 0x240]
push 0x103
push ecx
push edx
push edi
call eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x264]
push eax
push esi
call dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
add esp, 8
inc eax
add ebx, 4
cmp eax, ecx
mov dword [ebp - 0x10], eax
jb 0x407c60
mov ebx, dword [ebp - 8]
pop edi
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x407dc4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Process32First
push eax
call edi
mov ecx, dword [esi + 8]
push str.Process32Next
push ecx
mov ebx, eax
call edi
test ebx, ebx
mov dword [ebp - 8], eax
je 0x407dc4
test eax, eax
je 0x407dc4
mov ecx, 0x4a
xor eax, eax
lea edi, [ebp - 0x13c]
lea edx, [ebp - 0x13c]
rep stosd dword es:[edi], eax
mov eax, dword [esi]
push edx
push eax
mov dword [ebp - 0x13c], 0x128
call ebx
mov ebx, dword [ebp + 8]
mov edi, eax
test edi, edi
je 0x407d8b
lea ecx, [ebp - 0x13c]
push ecx
push esi
call ebx
add esp, 8
test edi, edi
je 0x407db9
mov eax, dword [esi]
lea edx, [ebp - 0x13c]
push edx
push eax
mov dword [ebp - 0x13c], 0x128
call dword [ebp - 8]
test eax, eax
je 0x407db9
lea ecx, [ebp - 0x13c]
push ecx
push esi
call ebx
add esp, 8
jmp 0x407d8f
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408540
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcb0
push ebx
push esi
push edi
mov esi, ecx
call fcn.00406fe0
push str._Process_Info__r_n
push esi
call fcn.00407150
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.ProcessId:__lu_r_n
push esi
call fcn.00407150
mov al, byte [0x433eb0]
mov ecx, 0xff
mov byte [ebp - 0x4b0], al
xor eax, eax
lea edi, [ebp - 0x4af]
add esp, 0xc
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x4b0]
push 0x400
xor ebx, ebx
push ecx
push ebx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x4b0]
push edx
push str.Name:__s_r_n
push esi
call fcn.00407150
mov dl, byte [0x433eb0]
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0xcaf]
mov byte [ebp - 0xcb0], dl
mov byte [ebp - 0xb0], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0xaf]
add esp, 0xc
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xcb0]
lea ecx, [ebp - 0x4b0]
push eax
push 0x800
push ebx
push ecx
mov dword [ebp - 4], ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x408667
lea edx, [ebp - 8]
lea eax, [ebp - 4]
push edx
push eax
lea ecx, [ebp - 0xcb0]
push 0x40c738
push ecx
mov dword [ebp - 8], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x408667
mov eax, dword [ebp - 4]
xor edx, edx
mov dx, word [eax + 0xc]
mov ecx, dword [eax + 0xc]
push edx
xor edx, edx
mov dx, word [eax + 8]
mov eax, dword [eax + 8]
shr ecx, 0x10
push ecx
push edx
shr eax, 0x10
push eax
lea ecx, [ebp - 0xb0]
push str._lu._lu._lu._lu
push ecx
call dword [sym.imp.PNCRT.dll_sprintf]
add esp, 0x18
lea edx, [ebp - 0xb0]
push edx
push str.Version:__s_r_n
push esi
call fcn.00407150
mov eax, dword [esi + 0x10]
add esp, 0xc
cmp eax, ebx
je 0x4086d8
push str.GetProcessMemoryInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x4086d8
mov ecx, 0xa
xor eax, eax
lea edi, [ebp - 0x30]
push 0x28
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
test eax, eax
je 0x4086d8
mov ecx, dword [ebp - 0x24]
push ecx
push str.WorkingSetSize:__lu_Bytes_r_n
push esi
call fcn.00407150
mov edx, dword [ebp - 0x10]
add esp, 0xc
push edx
push str.PagefileUsage:__lu_Bytes_r_n
push esi
call fcn.00407150
add esp, 0xc
push 0x40cdf8
push esi
call fcn.00407150
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
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
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219