joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x413f68
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x413fa0
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x413f8e
mov al, 1
jmp 0x413fea
cmp dword [ebx + 0x54], ecx
jne 0x413f97
mov al, 2
jmp 0x413fea
cmp dword [ebx + 0x7c], ecx
jne 0x413fea
mov al, 3
jmp 0x413fea
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x413fb5
mov al, 4
jmp 0x413fea
cmp ecx, 5
jne 0x413fd5
cmp ebx, 0
jne 0x413fc3
mov al, 5
jmp 0x413fea
cmp ebx, 1
jne 0x413fcc
mov al, 6
jmp 0x413fea
cmp ebx, 2
jne 0x413fd5
mov al, 7
jmp 0x413fea
cmp ecx, 6
jne 0x413fe1
cmp ebx, 0
jne 0x413fe3
mov al, 8
jmp 0x413fea
cmp ebx, 1
jne 0x413fea
mov al, 9
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x421881
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x4218b9
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x4218a7
mov al, 1
jmp 0x4218fa
cmp dword [ebx + 0x54], ecx
jne 0x4218b0
mov al, 2
jmp 0x4218fa
cmp dword [ebx + 0x7c], ecx
jne 0x4218fa
mov al, 3
jmp 0x4218fa
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x4218ce
mov al, 4
jmp 0x4218fa
cmp ecx, 5
jne 0x4218ee
cmp ebx, 0
jne 0x4218dc
mov al, 5
jmp 0x4218fa
cmp ebx, 1
jne 0x4218e5
mov al, 6
jmp 0x4218fa
cmp ebx, 2
jne 0x4218ee
mov al, 7
jmp 0x4218fa
cmp ecx, 6
jne 0x4218fa
cmp ebx, 0
jne 0x4218fa
mov al, 8
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404336
Capabilities:
Parse pe header

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

Function at 0x407aa9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0041a630
mov eax, dword [0x423944]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0040c9ea
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x407aeb
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x407c47
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041a580
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x425cf0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00410042
mov ecx, dword [esi*4 + 0x425cf0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x407c40
cmp eax, dword [ecx + edi + 0x24]
jne 0x407c40
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x407c40
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00410042
add esp, 0x14
test edx, edx
jl 0x407c40
jg 0x407bb6
test eax, eax
jb 0x407c40
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x407c40
jl 0x407bd0
cmp dword [ebp - 0x1008], eax
ja 0x407c40
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x407bee
test ebx, ebx
je 0x407c27
cmp ecx, edi
jae 0x407c27
mov al, byte [ecx]
cmp al, 0xd
jne 0x407c08
lea eax, [edi - 1]
cmp ecx, eax
jae 0x407c14
cmp byte [ecx + 1], 0xa
jne 0x407c14
inc ecx
jmp 0x407c14
movzx eax, al
movsx eax, byte [eax + 0x423b48]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x407bee
cmp edx, ebx
jne 0x407bee
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x407c45
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00404665
leave
ret

Function at 0x40dda5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c620
push 0x41c618
push str.FlsAlloc
push 0x1f
call fcn.0040dc64
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ddd9
push dword [ebp + 8]
mov ecx, esi
call dword [0x41b120]
call esi
jmp 0x40dddf
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x40de23
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c630
push 0x41c628
push str.FlsGetValue
push 0x21
call fcn.0040dc64
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40de5a
push dword [ebp + 8]
mov ecx, esi
call dword [0x41b120]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40de62
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c638
push 0x41c630
push str.FlsSetValue
push 0x22
call fcn.0040dc64
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40de9c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41b120]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4100be
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x425cf0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4100fe
cmp byte [ebx], 0xa
jne 0x4100fe
or byte [edi + eax + 0x28], 4
jmp 0x410103
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x410202
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4101e5
inc eax
cmp dl, 0xd
je 0x41012f
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x410155
cmp eax, ecx
jae 0x410163
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x410117
jmp 0x410202
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4101e0
cmp dword [ebp - 0x10], 0
je 0x4101e0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x425cf0]
test byte [eax + edi + 0x28], 0x48
je 0x4101ba
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4101a5
mov byte [esi], dl
jmp 0x4101b6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x425cf0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x410202
cmp byte [ebp - 1], 0xa
jne 0x4101c9
cmp esi, ebx
jne 0x4101c9
mov byte [esi], 0xa
jmp 0x410201
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00410060
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x410202
mov byte [esi], 0xd
jmp 0x410201
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x425cf0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4101ff
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x410202
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41020b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x425cf0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x410251
cmp word [ebx], dx
jne 0x410251
or byte [eax + edi + 0x28], 4
jmp 0x410256
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4103b9
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x410399
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x410297
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4102cd
cmp eax, edx
jae 0x4102db
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x410272
jmp 0x4103b9
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410394
cmp dword [ebp - 0x18], 0
je 0x410394
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x425cf0]
test byte [eax + edi + 0x28], 0x48
je 0x41036a
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x41032e
mov word [esi], cx
jmp 0x410365
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x425cf0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x425cf0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x425cf0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4103b9
pop eax
cmp word [ebp - 4], ax
jne 0x41037a
cmp esi, ebx
jne 0x41037a
mov word [esi], ax
jmp 0x4103b6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00410060
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4103b9
push 0xd
pop eax
jmp 0x410375
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x425cf0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4103b3
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4103b9
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x413bdb
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x413c78
push ebx
push esi
call fcn.00413ba4
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00413b38
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x413c25
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x413c77
push edi
push eax
call fcn.00411270
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x413c45
call fcn.0040daf7
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x413c76
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00413b38
add esp, 0x20
test eax, eax
jne 0x413c64
push edi
call fcn.0040daf7
jmp 0x413c6c
push ebx
call fcn.0040daf7
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x415311
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0041528d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x415480
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x415480
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x415435
jg 0x41536d
test eax, eax
je 0x41542b
push 1
push 0x1000
call fcn.0040da9a
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x415390
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x415422
push 0x8000
push ebx
call fcn.0040be59
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4153b9
jg 0x4153b4
cmp ecx, 0x1000
jb 0x4153b9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0040f6e0
add esp, 0x10
cmp eax, 0xffffffff
je 0x4153fe
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4153b4
jl 0x4153e5
test ecx, ecx
jne 0x4153a6
push dword [ebp - 0xc]
push ebx
call fcn.0040be59
push esi
call fcn.0040daf7
add esp, 0xc
xor ebx, ebx
jmp 0x41548e
cmp byte [edi + 0x24], 0
je 0x415415
cmp dword [edi + 0x20], 5
jne 0x415415
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x415420
mov ebx, dword [edi + 0x18]
jmp 0x415422
xor ebx, ebx
push esi
call fcn.0040daf7
pop ecx
jmp 0x41548e
test ecx, ecx
jg 0x4153f7
jl 0x415435
test eax, eax
jae 0x4153f7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00410060
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x415455
cmp byte [edi + 0x1c], 0
je 0x4153f7
jmp 0x415486
push ebx
call fcn.00410fae
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4153f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x41548e
cmp byte [edi + 0x1c], 0
je 0x41548b
mov ebx, dword [edi + 0x18]
jmp 0x41548e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00410060
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41a490
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41a4bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41a4bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x420826
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x440480]
jne 0x420830
repz ret
jmp fcn.004253b1

Function at 0x432a11
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x440480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00426493
and dword [ebp - 0x14], 0
cmp dword [0x44395c], 0
mov dword [ebp - 0x18], eax
jne 0x432ac4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x432b6c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x432b6c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44395c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x443960], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x443964], eax
call edi
push eax
call esi
mov dword [0x44396c], eax
test eax, eax
je 0x432ac4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x443968], eax
mov eax, dword [0x443968]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x432b1d
cmp dword [0x44396c], ecx
je 0x432b1d
push eax
call esi
push dword [0x44396c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x432b1d
test ebx, ebx
je 0x432b1d
call edi
test eax, eax
je 0x432b14
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x432b14
test byte [ebp - 8], 1
jne 0x432b1d
or dword [ebp + 0x10], 0x200000
jmp 0x432b50
mov eax, dword [0x443960]
cmp eax, dword [ebp - 0x18]
je 0x432b50
push eax
call esi
test eax, eax
je 0x432b50
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x432b50
mov eax, dword [0x443964]
cmp eax, dword [ebp - 0x18]
je 0x432b50
push eax
call esi
test eax, eax
je 0x432b50
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44395c]
call esi
test eax, eax
je 0x432b6c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x432b6e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420826
leave
ret

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

Disassembly:
pushal
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
nop
mov ecx, 0xf861659
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x42e1d0
mov ecx, 0x7e3e210e
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x10006781
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jge 0x100067a3
mov eax, 0xfffffffd
jmp 0x10006883
mov ebx, dword [0x10113cf0]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x10006851
mov ebx, dword [0x10113cf0]
add ebx, 4
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 6
jne 0x100067f2
mov ebx, dword [0x10113cf0]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 2
jne 0x100067f2
mov eax, 1
jmp 0x100067f7
mov eax, 0
test eax, eax
je 0x10006823
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x1000680c
mov eax, dword [ebp + 8]
call dword fs:[0xc0]
nop
nop
leave
ret 4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x10113cf0]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x10006879
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x10006883
mov esp, ebp
pop ebp
ret 4

Function at 0x10007266
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
call fcn.10001ccd
test eax, eax
je 0x1000729d
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x1000729d
cmp word [eax], 0x5a4d
jne 0x1000729d
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x1000729d
mov dword [ebp + 8], eax
call fcn.10002289
mov eax, dword [ebp + 8]
jmp 0x100072aa
mov esp, ebp
pop ebp
ret 4

Function at 0x1000caf5
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
call fcn.10001ccd
test eax, eax
je 0x1000cb54
push ecx
push ebx
xor eax, eax
xchg dword [ebp + 0xc], eax
xchg dword [ebp + 0x10], eax
mov ebx, dword [ebp + 8]
cmp ebx, 0xffff
jle 0x1000cb52
cmp word [ebx], 0x5a4d
jne 0x1000cb52
mov ecx, dword [ebx + 0x3c]
add ecx, ebx
cmp dword [ecx], 0x4550
jne 0x1000cb52
cmp dword [ebp + 0x10], 0
je 0x1000cb46
movzx eax, word [ecx + 0x16]
and eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 0x10]
jne 0x1000cb52
cmp dword [ecx + 0x28], 0
je 0x1000cb52
add ebx, dword [ecx + 0x28]
mov dword [ebp + 0xc], ebx
pop ebx
pop ecx
call fcn.10002289
mov eax, dword [ebp + 0xc]
jmp 0x1000cb61
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10026b6d
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
and eax, 1
leave
ret