joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f438
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4173b8
call fcn.00416da8
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, dword [esi + 8]
movzx eax, word [edi]
mov edx, 0x5a4d
cmp ax, dx
je 0x40f46a
mov ecx, 0x4550
cmp ax, cx
jne 0x40f4dd
cmp ax, dx
jne 0x40f48f
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x40f4dd
lea edx, [eax + edi]
mov dword [esi + 0xc], edx
mov ecx, dword [esi + 0x2c]
add ecx, edi
lea eax, [edx + 0xf8]
cmp eax, ecx
ja 0x40f4dd
lea eax, [edi + 0x40]
cmp edx, eax
jae 0x40f494
jmp 0x40f4dd
mov dword [esi + 0xc], edi
mov edx, edi
cmp dword [edx], 0x4550
jne 0x40f4dd
mov byte [esi + 0x21], bl
cmp word [edx + 0x14], bx
je 0x40f4dd
cmp byte [edx + 0x1a], 3
jae 0x40f4b1
cmp byte [edx + 0x1b], 5
jb 0x40f4dd
lea eax, [esi + 0x24]
mov dword [esi + 0x28], eax
mov dword [eax], eax
movzx eax, word [edx + 6]
mov dword [esi + 0x14], eax
movzx eax, word [edx + 0x14]
add eax, 0x18
add eax, edx
mov dword [esi + 0x18], eax
xor ebx, ebx
inc ebx
jmp 0x40f4da
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0xfffffffe
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40f8dc
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
mov edi, edx
sub ecx, 1
je 0x40f969
sub ecx, 1
je 0x40f911
sub ecx, 1
je 0x40f902
mov esi, 0x80070057
jmp 0x40f990
mov ecx, dword [ebp + 8]
mov eax, dword [edi]
mov dword [ecx], eax
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x40f990
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40f92d
call fcn.00405fe6
jmp 0x40f98e
cmp dword [ebp - 4], esi
je 0x40f939
mov esi, 0x800703ee
jmp 0x40f990
push esi
push esi
push esi
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
test eax, eax
je 0x40f926
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
test eax, eax
je 0x40f926
mov dword [ecx], ebx
jmp 0x40f990
sub esp, 0x14
mov ecx, edi
call fcn.0040f839
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp eax, 0xffffffff
je 0x40f926
push dword [ebp + 0x10]
mov edx, eax
push ecx
push dword [ebp + 8]
push 2
pop ecx
call fcn.0040f8dc
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc

Function at 0x410617
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x418064]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4193d8], 0
je 0x410673
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x404]
call fcn.00405f9e
test eax, eax
js 0x410673
lea eax, [ebp - 0x408]
mov edx, 0x400
push eax
lea ecx, [ebp - 0x404]
call fcn.0040611d
test eax, eax
js 0x410673
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416650
leave
ret
Function at 0x411579
Capabilities:
Check for time delay via queryperformancecounter
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x418064]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
test edi, edi
je 0x411636
xor esi, esi
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x4115c3
call fcn.00405fe6
mov esi, eax
jmp 0x411632
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [ebp - 0x218]
lea ecx, [ebp - 0x210]
xor ebx, eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x218], ebx
xor ebx, dword [ebp - 0x214]
push 8
call fcn.00411f89
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, ebx
lea ecx, [ebp - 0x210]
shl eax, 0x18
shr ebx, 8
xor ebx, eax
xor ebx, dword [ebp - 0x218]
call fcn.00412020
xor al, bl
xor byte [edi + esi], al
inc esi
cmp esi, 0x14
jb 0x4115f1
mov esi, dword [ebp - 0x220]
mov eax, esi
jmp 0x41163b
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416650
leave
ret

Function at 0x411b6a
Capabilities:
Encrypt data using des

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x418064]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, edx
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0xc]
test edi, edi
je 0x411cad
test ebx, ebx
je 0x411cad
test edx, edx
je 0x411cad
test esi, esi
je 0x411bb6
mov eax, dword [edx]
mov dword [ebp - 0x98], eax
jmp 0x411bbd
and dword [ebp - 0x98], 0
mov eax, edi
and al, 7
movzx ecx, al
mov eax, edi
neg ecx
sbb ecx, ecx
and eax, 0xfffffff8
and ecx, 8
add eax, ecx
mov dword [edx], eax
cmp eax, dword [ebp - 0x98]
jbe 0x411bed
neg esi
sbb esi, esi
and esi, 0x8007007a
mov eax, esi
jmp 0x411cb2
cmp esi, ebx
jbe 0x411c02
lea eax, [ebx + edi]
cmp esi, eax
jae 0x411c02
mov eax, 0x800706f8
jmp 0x411cb2
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 0x94]
add edx, 0xc
call fcn.00412e01
mov dword [ebp - 0x9c], eax
test eax, eax
js 0x411ca5
mov eax, dword [ebp - 0xc]
mov ecx, 0x418878
cmp dword [eax + 4], 0x6663
je 0x411c37
mov ecx, 0x418078
mov dword [ebp - 0x98], ecx
cmp edi, 8
jb 0x411c72
mov eax, edi
shr eax, 3
mov dword [ebp - 0xc], eax
push 1
lea eax, [ebp - 0x94]
mov edx, esi
push eax
push ecx
mov ecx, ebx
call fcn.00412f13
mov ecx, dword [ebp - 0x98]
add ebx, 8
add esi, 8
sub edi, 8
sub dword [ebp - 0xc], 1
jne 0x411c4a
test edi, edi
je 0x411ca5
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
and dword [ebp - 0xc], 0
push edi
push ebx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x94]
mov edx, esi
lea ecx, [ebp - 0x10]
push 1
push eax
push dword [ebp - 0x98]
call fcn.00412f13
mov eax, dword [ebp - 0x9c]
jmp 0x411cb2
mov eax, 0x80070057
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416650
leave
ret 0xc
Function at 0x412e01
Capabilities:
Encrypt data using des

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x418064]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x80], ecx
xor esi, esi
movzx ecx, byte [esi + 0x405200]
dec ecx
mov eax, ecx
and ecx, 7
sar eax, 3
mov al, byte [eax + edx]
test byte [ecx*4 + 0x4051a0], al
setne al
mov byte [ebp + esi - 0x44], al
inc esi
cmp esi, 0x38
jl 0x412e1e
xor edi, edi
movzx ecx, byte [edi + 0x4051f0]
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
xor edx, edx
lea esi, [ecx - 0x1c]
xor eax, eax
cmp edx, 0x1c
setge al
dec eax
and eax, 0xffffffe4
add eax, 0x38
cmp ecx, eax
mov eax, ecx
jl 0x412e72
mov eax, esi
mov al, byte [ebp + eax - 0x44]
mov byte [ebp + edx - 0x7c], al
inc edx
inc ecx
inc esi
cmp edx, 0x38
jl 0x412e5b
xor esi, esi
movzx eax, byte [esi + 0x4051c0]
cmp byte [ebp + eax - 0x7d], 0
je 0x412ea8
mov eax, esi
push 6
pop ecx
cdq
idiv ecx
mov ecx, dword [edx*4 + 0x4051a0]
sar ecx, 2
or byte [ebp + eax - 0xc], cl
inc esi
cmp esi, 0x30
jl 0x412e84
mov ebx, dword [ebp - 0xc]
movzx eax, byte [ebp - 0xa]
mov edx, dword [ebp - 8]
mov esi, dword [ebp - 0x80]
movzx ecx, bl
shl ecx, 8
or ecx, eax
movzx eax, dl
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 9]
mov dword [esi + edi*8], ecx
movzx ecx, bh
shl ecx, 8
or ecx, eax
movzx eax, dh
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 5]
shl ecx, 8
or ecx, eax
mov dword [esi + edi*8 + 4], ecx
inc edi
cmp edi, 0x10
jl 0x412e47
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416650
leave
ret
Function at 0x413886
Capabilities:
Hash data using sha1

Disassembly:
xor eax, eax
mov dword [ecx], 0x67452301
push 0x40
push eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], eax
lea eax, [ecx + 0x20]
push eax
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
call sub.msvcrt.dll_memset
add esp, 0xc
mov al, 1
ret
Function at 0x41494c
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x418064]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x128], ebx
push 0x10
mov eax, dword [ebx + 0x4c]
lea esi, [ebx + 8]
mov dword [ebp - 0x108], eax
lea edi, [ebp - 0x104]
mov eax, dword [ebx + 0x50]
mov dword [ebp - 0x110], eax
mov eax, dword [ebx + 0x54]
mov dword [ebp - 0x114], eax
mov eax, dword [ebx + 0x58]
mov dword [ebp - 0x120], eax
mov eax, dword [ebx + 0x5c]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebx + 0x60]
pop ecx
mov dword [ebp - 0x118], eax
mov eax, dword [ebx + 0x64]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebx + 0x68]
rep movsd dword es:[edi], dword [esi]
push 0x30
lea edi, [ebp - 0xcc]
mov dword [ebp - 0x124], eax
pop ebx
mov ecx, dword [edi - 0x34]
mov esi, ecx
mov edx, dword [edi]
mov eax, ecx
rol esi, 0xe
lea edi, [edi + 4]
ror eax, 7
xor esi, eax
shr ecx, 3
xor esi, ecx
mov eax, edx
mov ecx, edx
rol eax, 0xd
rol ecx, 0xf
xor ecx, eax
shr edx, 0xa
xor ecx, edx
add esi, ecx
add esi, dword [edi - 0x3c]
add esi, dword [edi - 0x18]
mov dword [edi + 4], esi
sub ebx, 1
jne 0x4149cb
mov ebx, dword [ebp - 0x128]
xor edi, edi
mov ecx, dword [ebp - 0x10c]
mov esi, ecx
mov eax, ecx
rol eax, 7
ror esi, 0xb
xor esi, eax
mov eax, ecx
ror eax, 6
not ecx
and ecx, dword [ebp - 0x11c]
xor esi, eax
mov eax, dword [ebp - 0x118]
and eax, dword [ebp - 0x10c]
or ecx, eax
add esi, ecx
mov ecx, dword [ebp - 0x108]
add esi, dword [edi + 0x405240]
mov edx, ecx
add esi, dword [ebp + edi - 0x104]
mov eax, ecx
add esi, dword [ebp - 0x124]
add edi, 4
rol eax, 0xa
ror edx, 0xd
xor edx, eax
mov eax, ecx
ror eax, 2
xor edx, eax
mov eax, dword [ebp - 0x110]
mov ecx, eax
and eax, dword [ebp - 0x108]
or ecx, dword [ebp - 0x108]
and ecx, dword [ebp - 0x114]
or ecx, eax
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x124], eax
add edx, ecx
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0x11c], eax
add ecx, esi
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x110], eax
lea eax, [edx + esi]
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x108], eax
cmp edi, 0x100
jl 0x414a13
mov edx, dword [ebp - 0x110]
add dword [ebx + 0x50], edx
add dword [ebx + 0x5c], ecx
mov edx, dword [ebp - 0x114]
add dword [ebx + 0x54], edx
mov edx, dword [ebp - 0x120]
add dword [ebx + 0x58], edx
mov ecx, dword [ebp - 0x124]
add dword [ebx + 0x68], ecx
mov edx, dword [ebp - 0x118]
add dword [ebx + 0x60], edx
mov ecx, dword [ebp - 4]
add dword [ebx + 0x4c], eax
xor ecx, ebp
mov edx, dword [ebp - 0x11c]
add dword [ebx + 0x64], edx
pop edi
pop esi
pop ebx
call fcn.00416650
leave
ret
Function at 0x416640
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x417a58
call fcn.00416da8
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x4193f8
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x416468
cmp eax, esi
jne 0x41645b
xor esi, esi
inc esi
mov edi, esi
jmp 0x41646b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41643f
xor esi, esi
inc esi
cmp dword [0x4193fc], esi
jne 0x41647d
push 0x1f
call fcn.004a9000
pop ecx
jmp 0x4164b7
cmp dword [0x4193fc], ebx
jne 0x4164b1
mov dword [0x4193fc], esi
push 0x4012ac
push 0x4012a0
call fcn.0041659c
pop ecx
pop ecx
test eax, eax
je 0x4164b7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x41658c
mov dword [0x419084], esi
cmp dword [0x4193fc], esi
jne 0x4164da
push 0x40129c
push 0x401294
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4193fc], 2
test edi, edi
jne 0x4164e7
xor eax, eax
mov ecx, 0x4193f8
xchg dword [ecx], eax
cmp dword [0x419400], 0
je 0x416513
push 0x419400
call fcn.00416c00
pop ecx
test eax, eax
je 0x416513
push ebx
push 2
push ebx
mov esi, dword [0x419400]
mov ecx, esi
call dword [0x41a198]
call esi
push dword [0x419090]
push dword [0x41908c]
push dword [0x419088]
call fcn.00405cd8
add esp, 0xc
mov dword [0x419080], eax
cmp dword [0x419098], 0
jne 0x416571
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x419084], 0
jne 0x416585
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x419080]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.00416cf5
jmp 0x416423

Function at 0x416ae4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x417ad8
call fcn.00416da8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x416b44
cmp eax, 0xffffffff
je 0x416b44
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x416b3d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x416b3d
cmp edx, 0x10000000
jae 0x416b3d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x416b3a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x416bb0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x416bee
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x416be6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x416bf0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x416bd6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x416cc0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x416cf1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x416cf1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x416cf1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x406020
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4000]
push edi
or ebp, 0xffffffff
jmp 0x406042
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x406049
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x406038
mov eax, 1
add ebx, ebx
jne 0x40605b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x406050
jne 0x40606c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x406050
xor ecx, ecx
sub eax, 3
jb 0x406080
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4060f2
mov ebp, eax
add ebx, ebx
jne 0x40608b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x406098
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4060bc
inc ecx
add ebx, ebx
jne 0x4060a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40609d
jne 0x4060b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40609d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4060dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4060cd
jmp 0x40603e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4060dc
add edi, ecx
jmp 0x40603e
pop esi
mov edi, esi
mov ecx, 0x74
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4060fa
cmp byte [edi], 0
jne 0x4060fa
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 eax, ebx
loop 0x4060ff
lea edi, [esi + 0x4000]
mov eax, dword [edi]
or eax, eax
je 0x40616e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x603c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40612c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6040]
or eax, eax
je 0x406168
mov dword [ebx], eax
add ebx, 4
jmp 0x406149
call dword [esi + 0x6044]
popal
jmp section.UPX0
Function at 0x4083f1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, dword [ebp + 0xc]
and eax, 3
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
sub ecx, eax
je 0x40843b
rol edx, 5
xor edx, dword [esi + ebx]
add esi, 4
imul eax, edx, 0x9e3779b9
rol eax, 5
xor eax, 4
imul edx, eax, 0x9e3779b9
cmp esi, ecx
jb 0x40840a
jmp 0x40843b
movsx ecx, byte [esi + ebx]
rol edx, 5
xor edx, ecx
imul edx, edx, 0x9e3779b9
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x40842b
pop esi
mov eax, edx
pop ebx
pop ebp
ret

Function at 0x408fcd
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x409002
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x18]
jb 0x40902c
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x40902c
test edi, edi
je 0x408ff9
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x408ff9
test edi, edi
je 0x409034
mov eax, edi
jmp 0x408ffb
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x408ffb
int3
Function at 0x40c0d7
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestVector.exe_gMozillaPoisonSize], eax
call fcn.00408fcd
pop ecx
mov ecx, dword [sym.TestVector.exe_gMozillaPoisonSize]
mov dword [sym.TestVector.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40c10f
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestVector.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403c60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41a0
in eax, dx
mov ebx, dword [esi - 0x13]
push esi
lea eax, [ebp - 4]
mov ecx, dword [ebx + 4]
push edi
push eax
push 0x417c20
push ecx
dec esp
inc ebp
fiadd word [eax]
and byte [eax], al
add al, ch
mov eax, 0xf000b94e
invalid
Function at 0x1004da6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
je 0x1004e2a
cmp word [eax], 0
push edi
mov edi, eax
je 0x1004e29
push ebx
push esi
mov esi, dword [sym.imp.msvcrt.dll_wcschr]
push 0
push edi
call esi
test eax, eax
pop ecx
pop ecx
je 0x1004e16
sub eax, edi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
call sub.MIGISM.dll_TrackedIsmGetMemory
mov ebx, eax
push edi
push ebx
call dword [sym.imp.msvcrt.dll_wcscpy]
push 0x3d
push ebx
call esi
add esp, 0x10
test eax, eax
je 0x1004e10
cmp eax, ebx
je 0x1004e10
and word [eax], 0
inc eax
inc eax
je 0x1004e10
push eax
push ebx
push 0x100159c
push dword [ebp + 8]
call sub.MIGISM.dll_IsmSetEnvironmentString
push ebx
call sub.MIGISM.dll_IsmReleaseMemory
push 0
push edi
call esi
inc eax
inc eax
mov edi, eax
cmp word [edi], 0
pop ecx
pop ecx
jne 0x1004dc6
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
ret 4

Function at 0x1004f87
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x101647c]
push ebx
mov dword [ebp - 4], eax
xor ebx, ebx
lea eax, [ebp - 0x1c]
push eax
push 8
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10050a8
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
call edi
test eax, eax
jne 0x100509a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100509a
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
jne 0x1005015
xor eax, eax
jmp 0x10050a6
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push esi
push 2
push dword [ebp - 0x1c]
call edi
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x100508b
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x100508b
xor edi, edi
cmp dword [esi], ebx
mov dword [ebp - 0x10], ebx
jbe 0x1005082
lea eax, [esi + 4]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x100507b
add dword [ebp - 0x14], 8
inc edi
cmp edi, dword [esi]
jb 0x100505e
jmp 0x1005082
mov dword [ebp - 0x10], 1
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01011c2a
leave
ret