joyce8/EMBER2024-capa huggingface dataset:
Function at 0x16140
Capabilities:
Get file attributes
Map section object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov byte [ebp - 0x235], 0
push 0x16130
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.ntoskrnl.exe_wcscpy]
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
push 0x210
lea edx, [ebp - 0x210]
push edx
call fcn.00016330
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x234]
push ecx
call fcn.000148e0
push 0
push 0
push 0
push 1
push 1
push 0
push 0
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x234]
push eax
push 1
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
jl 0x16318
mov dword [ebp - 0x244], 0
push 0
push 0
lea edx, [ebp - 0x234]
push edx
call fcn.000148e0
mov eax, dword [ebp - 0x21c]
push eax
push 0x8000000
push 2
push 0
lea ecx, [ebp - 0x234]
push ecx
push 0xf0005
lea edx, [ebp - 0x244]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwCreateSection]
test eax, eax
jl 0x162f8
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
push 2
push 0
push 1
lea eax, [ebp - 0x248]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x24c]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
test eax, eax
jl 0x162eb
cmp dword [ebp - 0x24c], 0
je 0x162eb
push 5
push 0x18
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x270]
push ecx
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
jl 0x162dc
cmp dword [ebp + 0x14], 0
je 0x162a7
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x260]
mov dword [eax], ecx
cmp dword [ebp + 0x10], 0
je 0x162b8
mov edx, dword [ebp + 0x10]
cmp edx, dword [ebp - 0x260]
jbe 0x162c1
mov eax, dword [ebp - 0x260]
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x24c]
push eax
call fcn.00013fd0
mov byte [ebp - 0x235], 1
mov ecx, dword [ebp - 0x24c]
push ecx
push 0xffffffffffffffff
call dword [sym.imp.ntoskrnl.exe_ZwUnmapViewOfSection]
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [ebp + 0x18], 0
je 0x1630b
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x21c]
mov dword [eax], ecx
jmp 0x16318
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov al, byte [ebp - 0x235]
mov esp, ebp
pop ebp
ret 0x14
Function at 0x401e08
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov al, byte [ebp + 8]
cmp al, 7
jb 0x401e5d
sub al, 7
je 0x401ed1
dec al
je 0x401e2b
sub al, 2
je 0x401e55
sub al, 3
je 0x401e47
jmp 0x401e5d
mov eax, dword [0x408240]
cmp eax, dword [0x4081c0]
jle 0x401ed1
dec dword [0x408240]
jmp 0x401ed1
mov edi, dword [0x4081c0]
mov dword [0x408240], edi
jmp 0x401ed1
inc dword [0x408230]
jmp 0x401ed1
mov word [ebp - 8], 1
mov word [ebp - 6], 1
mov word [ebp - 0xc], 0
mov word [ebp - 0xa], 0
movzx ax, byte [ebp + 8]
mov word [ebp - 4], ax
movzx ax, byte [0x408180]
mov word [ebp - 2], ax
mov eax, dword [0x408240]
dec eax
mov word [ebp - 0x14], ax
mov eax, dword [0x408230]
dec eax
mov word [ebp - 0x12], ax
mov eax, dword [0x408240]
dec eax
mov word [ebp - 0x10], ax
mov eax, dword [0x408230]
dec eax
mov word [ebp - 0xe], ax
lea edi, [ebp - 0x14]
push edi
push dword [ebp - 0xc]
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push dword [0x4080f0]
call sub.kernel32.dll_WriteConsoleOutputA
inc dword [0x408240]
mov eax, dword [0x408240]
cmp eax, dword [0x4081e0]
jle 0x401eff
mov edi, dword [0x4081c0]
mov dword [0x408240], edi
inc dword [0x408230]
jmp 0x401eff
push 1
call fcn.00401ff8
dec dword [0x408230]
mov eax, dword [0x408230]
cmp eax, dword [0x4081f0]
jg 0x401ef2
leave
ret 4
Function at 0xab58e0
Capabilities:
Encode data using xor

Disassembly:
mov al, byte [pe_dos_header]
add byte [eax], al
add byte [ebx + 0x16f], ch
add byte [ebx], al
add byte [ebx - 0x73], bh
pop es
cmpsb byte [esi], byte es:[edi]
add eax, dword [eax]
add byte [eax], al
nop
mov cl, 0xe2
outsb dx, byte [esi]
sub dword [ecx - 1], 0x1000ffff
add byte [eax], al
mov al, byte [pe_dos_header]
add byte [eax], al
add ah, cl
mov esi, 5
add al, 0
invalid

Function at 0xae38c0
Capabilities:
Encode data using xor

Disassembly:
push es
and byte [esi], bl
or byte [edi + ecx], ch
inc edi
or byte [eax], 0x6b
rol byte [ecx], 0x15
add cl, byte [ecx + 0x35843247]
mov cl, 9
ror byte [ecx + 0x23881260], cl
enter 0xffffffffffffb184, 0x3a
inc ebx
bound ecx, qword [ecx + 0x26912a48]
pop edx
inc eax
dec eax
inc esp
adc dword [eax - 0x38], esp
push eax
adc eax, eax
nop
and al, 0xc1
inc eax
and byte [edx + 0x8090d], dl
ror dword [eax + 0x48a060], 3
push 6
xor dword [eax], ecx
add byte [eax], dh
or byte [edx + 0x5442f4cc], 0x93
pop esp
or eax, 0xf08da002
and al, byte [ebx]
pop edx
add byte [eax + 8], dl
inc ecx
add byte [eax + ebx*4], dl
js 0xae38b2
invalid
leave
adc al, 0
adc dword [eax + edx*4 - 0x1ff595cf], esp
add al, byte [eax + eax]
arpl word [eax + 1], si
jo 0xae38c3
add byte [eax], al
or byte [esi + 0x35], al
xor byte [eax], 0x58
sub cl, al
pop ebp
xchg ebx, eax
add al, byte [edi + eax]
adc byte [edx + eax], dh
or al, bl
pop ecx
xor dword [ecx + 0x79], ebx
stosb byte es:[edi], al
or al, 0
bound ecx, qword [eax]
adc byte [eax + edx*4], ah
mov byte fs:[eax + eax*4 + 0x4718902a], al
cmp edx, edx
push ss
push 0xffffffffffffffa4
inc ebx
add al, byte [esp + eax*2 + 0x12]
daa
adc esp, dword [edx + edx*8 - 0x61bf59f0]
adc dword [eax - 0x7efb74fa], ecx
dec eax
mov al, 0x11
add byte [esp + ebp], bh
add ah, bl
add al, 0xaa
fadd qword [edx + ebp*4]
inc eax
xor byte [ecx - 0x6bfdb76c], al
aam 0x50
or al, 1
lea ebp, [ecx]
push es
xchg ebx, eax
add ebx, dword [edx + eax*2]
sbb byte [ebx], cl
push esi
stosd dword es:[edi], eax
inc esi
dec ebx
and byte [esi], al
ror byte [ebx], 1
push cs
inc eax
adc dl, byte [0x56820298]
add byte [eax + 0x26372110], cl
mov al, 0x10
cwde
pushal
mov ch, byte [ecx + 0x12]
imul ecx, edx, 0xc001e82f
or byte [ebx], cl
js 0xae390a
movsd dword es:[edi], dword [esi]
add eax, dword [edx - 0x66ecedc0]
sbb cl, byte [eax - 0x3c3fb95a]
xor eax, dword [eax]
dec eax
ret 0x7490
Function at 0xb46ca8
Capabilities:
Encode data using xor

Disassembly:
push cs
and eax, 0x74272a
leave
daa
and eax, 0xceb800a0
adc edi, esp
add al, 0x41
jo 0xb46cd0
adc eax, 0xf9000b2f
das
or eax, dword [eax]
stc
add eax, 0x3d01ffe0
or al, 0x19
xor dword [ebp + 0x64002529], edi
fadd dword [ecx]
jbe 0xb46cba
sub eax, 0x73005a65
cmp byte [esi], ch
dec ecx
add bh, bl
and byte [eax + ebp*2 + 2], ch
add al, al
js 0xb46cec
dec edi
add eax, esp
out 0x18, eax
mov eax, 0x6c951a0c
outsd dx, dword [esi]
push ecx
cmp byte [eax], al
mov edi, 0xc013ef0a
cwde
add dword [edi - 0x40f646f6], edi
or dh, al
xor edi, dword [ebp + eax - 0x4767f545]
add dword [ebx - 0x400000f6], edi
or bl, byte [0xab9ffff]
jo 0xb46d4b
add dl, al
sbb byte [eax], al
adc al, cl
jle 0xb46d17
add bh, byte [ebx + 0x2fef80a]
add al, dh
cld
jg 0xb46d27
mov edi, 0x1619620a
jns 0xb46d47
mov edi, 0xfc2a300a
add dword [ebx + 0x278380a], edi
sti
add al, 0x13
add byte [edi + 0x1d12f10a], bh
mov ecx, 0x30abf28
dec dword [ecx]
mov bh, byte [ecx + 0x34]
push esp
xor al, 0x54
adc edi, dword [esi + 0x10187914]
leave
mov edi, 0xc1305914
push ds
pop ebx
push ds
add byte [eax], al
push ebx
je 0xb46d66
lds ecx, [ebx + 0x19]
jb 0xb46dcf
outsb dx, byte [esi]
sbb byte [ecx], bh
mov ebx, 0xd9000a11
add al, bl
inc dword [ecx + eax]
xor dword gs:[eax], esi
sub byte fs:[ebx + ecx], bl
and bh, cl
inc eax
mov edi, 0x50002014
mov byte [0x72102877], bh
add byte [eax], ah
invalid
dec esp
Function at 0x401000
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x14e8]
mov eax, 0x1568
call fcn.00402130
mov eax, dword [0x40e2d0]
xor eax, ebp
mov dword [ebp + 0x14e4], eax
push ebx
push esi
push edi
mov esi, 0xa27
push esi
xor edi, edi
lea eax, [ebp + 0x9b9]
push edi
push eax
mov byte [ebp + 0x9b8], 0
call fcn.00402160
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
push 0x20019
push edi
push str.SOFTWAREPinnacle_SystemsmiroVIDEO_Settings
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4010f6
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x9b8]
push eax
lea eax, [ebp - 0x7c]
push eax
push edi
push str.SharedFiles
push dword [ebp - 0x78]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x80], 0xa28
mov dword [ebp - 0x7c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4010ed
lea eax, [ebp + 0x9b8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40109b
sub eax, edx
je 0x4010d7
lea eax, [ebp + 0x9b8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4010af
sub eax, edx
cmp byte [ebp + eax + 0x9b7], 0x5c
je 0x4010d7
push ebx
lea eax, [ebp + 0x9b8]
push 0x40b88c
push eax
call fcn.00401ed1
add esp, 0xc
push 0xf
lea eax, [ebp + 0x9b8]
push str.PixiePixie.dll
push eax
call fcn.00401ed1
add esp, 0xc
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea eax, [ebp - 0x6f]
push edi
push eax
mov byte [ebp - 0x70], 0
call fcn.00402160
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
push edi
push edi
push 0x8026
push edi
call dword [sym.imp.SHFOLDER.dll_SHGetFolderPathA]
test eax, eax
jne 0x401131
push 0x26
lea eax, [ebp - 0x70]
push str.PinnacleShared_FilesPixiePixie.dll
push eax
call fcn.00401ed1
add esp, 0xc
lea eax, [ebp + 0x9b8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40113a
sub eax, edx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
je 0x40115b
lea eax, [ebp + 0x9b8]
push eax
call ebx
mov dword [0x40f640], eax
jmp 0x401160
mov eax, dword [0x40f640]
cmp eax, edi
jne 0x4011ba
lea eax, [ebp - 0x70]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40116a
sub eax, edx
je 0x401184
lea eax, [ebp - 0x70]
push eax
call ebx
cmp eax, edi
mov dword [0x40f640], eax
jne 0x4011ba
mov esi, str..Pixie.dll
lea edi, [ebp + 0x13e0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0xf8
lea eax, [ebp + 0x13ec]
push 0
push eax
movsd dword es:[edi], dword [esi]
call fcn.00402160
add esp, 0xc
lea eax, [ebp + 0x13e0]
push eax
call ebx
test eax, eax
mov dword [0x40f640], eax
je 0x4011c6
push str.PixieCommandA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp + 0x14e4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402115
add ebp, 0x14e8
leave
ret
Function at 0x40130a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x40e2d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov eax, esi
mov dword [ebp - 0x1c], edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401329
sub eax, ecx
cmp eax, 0x14
jne 0x401485
cmp byte [esi + 5], 0x2d
jne 0x401485
cmp byte [esi + 9], 0x2d
jne 0x401485
cmp byte [esi + 0x10], 0x2d
jne 0x401485
push 3
push 0x40bc80
push esi
call fcn.004021f6
add esp, 0xc
test eax, eax
je 0x401385
push 3
push 0x40bc7c
push esi
call fcn.004021f6
add esp, 0xc
test eax, eax
jne 0x401485
xor eax, eax
movsx ecx, byte [esi + eax]
xor edi, ecx
inc eax
cmp eax, 0x10
jl 0x401387
push edi
mov edi, 0x40bc78
push edi
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.004021da
lea eax, [ebp - 0x18]
add esp, 0x10
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4013ae
push ebx
sub eax, ecx
mov bl, byte [ebp + eax - 0x19]
push 0xa
xor eax, eax
pop ecx
movsx edx, byte [esi + ecx]
add eax, edx
inc ecx
cmp ecx, 0x10
jl 0x4013c1
push 6
pop ecx
cdq
idiv ecx
push eax
push edi
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.004021da
add esp, 0x10
cmp bl, byte [esi + 0x11]
pop ebx
jne 0x401485
mov al, byte [ebp - 0x18]
cmp al, byte [esi + 0x12]
jne 0x401485
mov al, 0xba
sub al, byte [esi + 0xf]
sub al, byte [esi + 0xb]
cmp al, byte [esi + 0x13]
jne 0x401485
push 3
pop edi
push edi
add esi, 6
push 0x40bc74
push esi
call fcn.004021f6
add esp, 0xc
test eax, eax
je 0x40147e
push edi
push 0x40bc70
push esi
call fcn.004021f6
add esp, 0xc
test eax, eax
je 0x40147e
push edi
push 0x40bc6c
push esi
call fcn.004021f6
add esp, 0xc
test eax, eax
je 0x40147e
push edi
push 0x40bc68
push esi
call fcn.004021f6
add esp, 0xc
test eax, eax
je 0x40147e
push edi
push 0x40bc64
push esi
call fcn.004021f6
add esp, 0xc
test eax, eax
je 0x40147e
push edi
push 0x40bc60
push esi
call fcn.004021f6
add esp, 0xc
test eax, eax
jne 0x401485
mov dword [ebp - 0x1c], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
pop edi
xor ecx, ebp
pop esi
call fcn.00402115
leave
ret
Function at 0x402115
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e2d0]
jne 0x40211f
repz ret
jmp fcn.00403f36

Function at 0x402647
Capabilities:
Encode data using xor

Disassembly:
sub ch, bh
dec edi
js 0x402659
imul edi, edx, 0xbeeb3a72
xor eax, 0x5668e945
cmp ebp, ebx
lea ecx, [0xd86fa18]
test cl, dl
mov ecx, ebx
mov cl, al
mov bh, 0x46
sub eax, 0x5176
lea edi, [0xffa4cc4c]
lea ecx, [0xbf243f02]
imul ecx, eax, 0xecc0ec66
sub eax, 0x48
dec ebx
lea ebx, [0x61ab31e9]
test ebx, esi
je 0x402691
dec al
inc ebx
add eax, 0x5b22c84d
call 0x4026fb
test dh, 0xec
imul edx, ebx, 0xb76ac1dc
xor al, 8
lea edx, [0x5aae1278]
mov dl, 0x65
mov edx, edi
test al, 0x13
lea eax, [ecx]
lea ebp, [0xaf58170]
imul esi, edx, 0x104c18ff
mov dl, 0xd
add ecx, eax
xor esi, edi
add ebx, ebp
sub edx, edx
sbb cl, dh
movsx ecx, dx
movsx esi, dl
mov eax, ebp
xor ch, bl
add edx, 1
mov ecx, ebx
inc bl
add al, al
or bh, dh
add al, 0xa9
xor cl, dh
cmp edx, 0x23a
jb 0x4026d1
inc esi
mov ecx, 0x8e1bec89
imul esi, esi
dec edi
cmp edx, 0xd031
pop edx
lea ebp, [0x5eb1f3f8]
add eax, ebp
cmp esi, 0xf1d3618b
imul ebp, ebp
inc ecx
sbb ecx, edi
dec al
adc ch, 0xd1
and esi, ebp
imul esi, edi
invalid
invalid
Function at 0x404801
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x40ea90]
je 0x40481c
inc edi
cmp edi, 0x17
jb 0x40480d
cmp edi, 0x17
jae 0x40499c
push ebp
push 3
call fcn.004087d1
cmp eax, 1
pop ecx
je 0x404968
push 3
call fcn.004087d1
test eax, eax
pop ecx
jne 0x404850
cmp dword [0x40e2e0], 1
je 0x404968
cmp ebx, 0xfc
je 0x40499b
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x40fa28
push ebp
call fcn.00402325
add esp, 0xc
test eax, eax
je 0x404886
push esi
push esi
push esi
push esi
push esi
call fcn.0040388f
add esp, 0x14
push 0x104
mov esi, 0x40fa41
push esi
push 0
mov byte [0x40fb45], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4048ca
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00402325
add esp, 0xc
test eax, eax
je 0x4048ca
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040388f
add esp, 0x14
push esi
call fcn.00406220
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40490f
push esi
call fcn.00406220
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x40fd3c
push 0x40c53c
sub ecx, eax
push ecx
push eax
call fcn.00405d66
add esp, 0x14
test eax, eax
je 0x40490f
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040388f
add esp, 0x14
jmp 0x404911
xor esi, esi
push 0x40c538
push ebx
push ebp
call fcn.004022b4
add esp, 0xc
test eax, eax
je 0x404931
push esi
push esi
push esi
push esi
push esi
call fcn.0040388f
add esp, 0x14
push dword [edi*8 + 0x40ea94]
push ebx
push ebp
call fcn.004022b4
add esp, 0xc
test eax, eax
je 0x404953
push esi
push esi
push esi
push esi
push esi
call fcn.0040388f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00408614
add esp, 0xc
jmp 0x40499b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40499b
cmp ebp, 0xffffffff
je 0x40499b
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x40ea94]
push dword [esi]
call fcn.00406220
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x408614
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004031cb
xor ebx, ebx
cmp dword [0x40ffe8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4086ea
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4087ca
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40cf9c
push edi
call esi
cmp eax, ebx
je 0x4087ca
push eax
call fcn.0040315d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40ffe8], eax
call esi
push eax
call fcn.0040315d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40ffec], eax
call esi
push eax
call fcn.0040315d
mov dword [0x40fff0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040458e
test eax, eax
pop ecx
pop ecx
je 0x4086b8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040388f
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4086ea
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040315d
cmp eax, ebx
pop ecx
mov dword [0x40fff8], eax
je 0x4086ea
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040315d
pop ecx
mov dword [0x40fff4], eax
mov eax, dword [0x40fff4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40876f
cmp dword [0x40fff8], ecx
je 0x40876f
push eax
call fcn.004031d4
push dword [0x40fff8]
mov esi, eax
call fcn.004031d4
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40876f
cmp edi, ebx
je 0x40876f
call esi
cmp eax, ebx
je 0x40873c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40873c
test byte [ebp - 0x18], 1
jne 0x40876f
lea eax, [ebp - 0x10]
push eax
call fcn.004045c5
test eax, eax
pop ecx
je 0x408757
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040388f
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x408766
or dword [ebp + 0x10], 0x200000
jmp 0x4087aa
or dword [ebp + 0x10], 0x40000
jmp 0x4087aa
mov eax, dword [0x40ffec]
cmp eax, dword [ebp - 8]
je 0x4087aa
push eax
call fcn.004031d4
cmp eax, ebx
pop ecx
je 0x4087aa
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4087aa
mov eax, dword [0x40fff0]
cmp eax, dword [ebp - 8]
je 0x4087aa
push eax
call fcn.004031d4
cmp eax, ebx
pop ecx
je 0x4087aa
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40ffe8]
call fcn.004031d4
cmp eax, ebx
pop ecx
je 0x4087ca
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4087cc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..idata
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x431072
nop
nop
mov ebx, 0x40915c
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x31e06e94
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x431060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4310d2
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x3d3f46c1
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
loop 0x4310c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x408110
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x401396
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0xc], esp
mov dword [ebp - 8], 0x4012a0
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
call fcn.00406990
mov esi, dword [fcn.00401180]
mov edx, eax
lea ecx, [ebp - 0x1c]
call esi
lea ecx, [ebp - 0x1c]
call dword [fcn.004011a4]
call fcn.00406990
mov edx, eax
lea ecx, [ebp - 0x24]
call esi
mov edi, dword [fcn.00401144]
mov edx, 0x404a00
lea ecx, [ebp - 0x20]
call edi
mov edx, 0x4049a0
lea ecx, [ebp - 0x1c]
call edi
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x20]
push eax
lea edx, [ebp - 0x1c]
push ecx
lea eax, [ebp - 0x28]
push edx
push eax
mov dword [ebp - 0x28], 0x80000001
call fcn.00408210
mov edx, eax
lea ecx, [ebp - 0x18]
call esi
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x20]
push ecx
lea eax, [ebp - 0x1c]
push edx
push eax
push 3
call dword [fcn.00401148]
add esp, 0x10
push 0x4081f4
jmp 0x4081f3
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
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
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219