joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414ed0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0
push 0x20
push 0x8000
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov edi, edx
call fcn.0042fab6
add esp, 0x14
test eax, eax
je 0x414f01
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push esi
push dword [ebp - 4]
call fcn.0043016d
push dword [ebp - 4]
call fcn.0043016d
mov ecx, dword [edi + 0x10]
mov esi, eax
add esp, 8
mov dword [ebp - 8], esi
cmp esi, ecx
ja 0x414f34
mov dword [edi + 0x10], esi
mov eax, edi
cmp dword [edi + 0x14], 0x10
jb 0x414f2e
mov eax, dword [edi]
mov byte [eax + esi], 0
jmp 0x414f7b
mov edx, dword [edi + 0x14]
mov eax, edx
push ebx
mov ebx, esi
sub eax, ecx
sub ebx, ecx
cmp ebx, eax
ja 0x414f68
mov dword [edi + 0x10], esi
mov eax, edi
cmp edx, 0x10
jb 0x414f50
mov eax, dword [edi]
push ebx
lea esi, [eax + ecx]
push 0
push esi
call fcn.00420dc0
mov byte [esi + ebx], 0
add esp, 0xc
mov esi, dword [ebp - 8]
jmp 0x414f7a
push 0
push ebx
mov byte [ebp - 8], 0
mov ecx, edi
push dword [ebp - 8]
push ebx
call fcn.0040e740
pop ebx
push 0
push 0
push dword [ebp - 4]
call fcn.0042fe29
add esp, 0xc
cmp dword [edi + 0x14], 0x10
jb 0x414f92
mov edi, dword [edi]
push esi
push edi
push dword [ebp - 4]
call fcn.0042e0ff
push dword [ebp - 4]
mov esi, eax
call fcn.0042e64f
add esp, 0x10
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x41ba40
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45cfad
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x47500c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x41ba72
mov eax, dword [edi]
push 0
push 0x80
push 3
push 0
push 7
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp + 8], esi
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
je 0x41bac3
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x41bac3
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x41bac3
mov ebx, 1
jmp 0x41bac5
xor ebx, ebx
mov dword [ebp - 4], 1
cmp esi, 0xffffffff
je 0x41bad8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
jne 0x41bb11
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41bb11
push str.boost::filesystem::resize_file
push dword [ebp + 0x14]
push edi
push eax
call fcn.0041fb00
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x41bb26
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41be40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d025
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x47500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov edx, edi
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
cmp dword [edi + 0x14], 8
jb 0x41be81
mov edx, dword [edi]
mov ecx, edx
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41bea1
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00407ac0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x2200000
push 3
push 0
push 7
push 0x80
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x34], esi
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x41bf30
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
mov byte [ebp - 4], 3
cmp edx, 0x1000
jb 0x41bf22
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41bfe6
push edx
push ecx
call fcn.004197d5
add esp, 8
mov byte [ebp - 4], 2
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp esi, 0xffffffff
jne 0x41bfac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
cmp eax, 5
jne 0x41bf9c
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x41bf61
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41bf91
test esi, 0x400
jne 0x41bf99
push esi
push edi
call fcn.0041b370
and esi, 0x10
mov dword [ebx + 4], eax
or esi, 0x20
add esp, 8
shr esi, 4
mov dword [ebx], esi
jmp 0x41bfc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41bf9c
mov eax, dword [ebp - 0x30]
push dword [ebp - 0x2c]
push edi
push eax
push ebx
call fcn.0041b850
add esp, 0x10
jmp 0x41bfc8
push dword [ebp - 0x2c]
push edi
push esi
push ebx
call fcn.0041bb70
add esp, 0x10
push esi
mov dword [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00419541
mov esp, ebp
pop ebp
ret
call fcn.00429e8f
int3

Function at 0x43701c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00436ccd

Function at 0x437027
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00436e57

Function at 0x439fce
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00439c4b
Function at 0x4429bf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x47500c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xffff
push edi
mov edi, ecx
cmp ax, bx
jne 0x4429e4
xor eax, eax
jmp 0x442a40
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x442a11
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [ecx + esi*2]
cmp ecx, eax
jae 0x442a11
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x442ac7
cmp dword [edi + 0x4c], 0
je 0x442a3a
mov ecx, edi
call fcn.004428fa
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x442a50
push dword [edi + 0x4c]
push ebx
call fcn.00442686
pop ecx
test al, al
movzx eax, bx
pop ecx
jne 0x442a3f
mov eax, 0xffff
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00419541
leave
ret 4
mov word [ebp - 0x28], bx
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x45f210]
mov ecx, dword [ebp - 0x2c]
call esi
sub eax, 0
je 0x442a9a
sub eax, 1
je 0x442a9a
dec eax
sub eax, 1
jne 0x442a3a
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x442a2c
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x442ab7
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.0042cc27
add esp, 0x10
cmp esi, eax
jne 0x442a3a
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
je 0x442a3a
mov ax, bx
jmp 0x442a3f
Function at 0x407ef0
Capabilities:
Encode data using xor

Disassembly:
jae 0x407ede
pop es
into
fcmovnb st(0), st(6)
loope 0x407e94
push 3
mov byte [esi], 0x2b
mov eax, ebx
mov ah, 0x64
add byte [eax], al
add byte [ecx - 0x7ab9065a], bl
shl byte [ebx + 0x4057efa], 0x30
mov byte [esi], al
mov esp, 0xc7b9e28b
add byte [eax], al
add byte [eax], dl
idiv ecx
test eax, eax
mov esp, dword [edi]
jle 0x407ea9
mov eax, 0x66665367
invalid
push ebx
invalid
out dx, al
sal dword [eax], 0x88
push cs
jmp 0xff9a9a0c
push ebp
adc eax, 0x1c458bec
mov ecx, dword [ebp + 0x18]
sbb eax, 0x8b501455
mov bl, 0x10
push 1
loopne 0x407e5f
dec ebp
or al, 0x52
mov edx, dword [ebp + 8]
out dx, eax
push ecx
push edx
sub al, 0xe
push cs
add byte [eax], al
add byte [esp + eax*8 - 0x6f3ca2e4], bl
nop
nop
nop
nop
nop
nop
test byte [eax - 0x7c1374ab], dl
cmp dl, byte [ebx + eax*4]
jge 0x407f09
dec edi
std
pop es
mov dword [ebp + 0x10], 0x3f4e
fld qword [ebp + 8]
fcomp qword [0x24c230]
fimul word [ebp + 0x18]
push ebx
mov eax, dword [esi - 0x349038e0]
push edi
stc
ret 0x24
loopne 0x407f4d
jne 0x407f18
mov edx, 0x3cc4f631
mov edi, ebx
jp 0x407f33
fld qword [ebp + 8]
fchs
frstor dword [ebx + 0x101c708]
add byte [eax], al
sti
scasb al, byte es:[edi]
dec ebp
or al, 0x8b
sahf
or byte [ebp + 0x51506945], cl
xchg ebx, eax
call [ecx]
sbb cl, al
invalid
xor dl, al
inc eax
add byte [ebx - 0x1f20f33c], al
test ah, 0x44
jnp 0x407fcd
lea esi, [ebx + 0x53]
cmp esi, ebx
in al, dx
pop eax
in eax, 0x45
inc ebp
in al, dx
fcomp qword [0x40c230]
out 0xe0, eax
out 0x93, eax
daa
jnp 0x407fba
fucomp st(3)
in al, dx
fmul qword [0xf840c383]
lea eax, [ebp - 0x14]
push eax
jns 0x407f63
or ch, bl
sbb al, 0x24
call dword [0x2140c118]
fstp qword [ebp + 0x11]
outsd dx, dword [esi]
inc ebp
hlt
push 0xf03b5043
adc bl, byte [edx + ecx*4 + 0x16]
mov dl, byte [esi]
mov byte [edi], dl
inc edi
inc esi
xor dh, al
jb 0x407fc1
xchg esi, eax
push eax
ffree st(1)
xchg ecx, eax
fcomp qword [0x98c230]
fnstsw ax
and eax, 0x4100
inc ecx
add byte [eax], al
jne 0x40801d
fld qword [ebp + 8]
fmul qword [0x397af8]
fld qword [ebp - 0x233f260c]
sbb eax, 0xa529c228
fbld tbyte [esi + 0x7a05c4f6]
and ebp, ebx
in eax, dx
js 0x407fda
or eax, 0x4025f8
mov cl, 0xd9
rcr ah, 0x1d
sub byte [ecx], bl
inc eax
add bh, bl
pop es
retf
mov eax, dword [ebp - 0x45]
dec ebx
xor al, 0xa1
xor bh, bh
pushfd
aam 0xc0
jne 0x40802d
add eax, dword [ecx + 0x144d8bfc]
mov ecx, dword [ebp + 0x14]
cmp esi, ebx
push es
cwde
mov eax, dword [ebp + 0x10]
pop edi
neg dword [ebx - 0x77]
add esi, eax
add eax, dword [eax]
mov eax, ebx
pop esi
pop ebx
mov eax, dword [esi + 0x5d]
ret
Function at 0x44f950
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3e000]
push edi
jmp 0x44f96a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x44f971
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44f960
mov eax, 1
add ebx, ebx
jne 0x44f983
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x44f994
jne 0x44f9b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44f9b3
dec eax
add ebx, ebx
jne 0x44f9a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x44f978
add ebx, ebx
jne 0x44f9af
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x44fa05
xor ecx, ecx
sub eax, 3
jb 0x44f9cb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x44fa3a
sar eax, 1
mov ebp, eax
jmp 0x44f9d6
add ebx, ebx
jne 0x44f9d6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44f9a4
inc ecx
add ebx, ebx
jne 0x44f9e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44f9a4
add ebx, ebx
jne 0x44f9f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x44f9e6
jne 0x44fa02
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x44f9e6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x44fa24
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x44fa16
jmp 0x44f966
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x44fa24
add edi, ecx
jmp 0x44f966
pop esi
mov edi, esi
mov ecx, 0x8f2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x44fa42
cmp byte [edi], 9
jne 0x44fa42
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 0x44fa47
lea edi, [esi + 0x4c000]
mov eax, dword [edi]
or eax, eax
je 0x44fabf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x68bc4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x68c3c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x44fa74
mov ecx, edi
jns 0x44faa3
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 + 0x68c40]
or eax, eax
je 0x44fab9
mov dword [ebx], eax
add ebx, 4
jmp 0x44fa91
call dword [esi + 0x68c50]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x44faf0
cmp al, 0xef
ja 0x44fae3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x44fac5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x44fad2
mov ebp, dword [esi + 0x68c44]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x44fb24
sub esp, 0xffffff80
jmp 0x40c12c
Function at 0x100067c9
Capabilities:
Parse pe header

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

Function at 0x1000880d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100127f0
push 0x100127e8
push str.FlsAlloc
push 0x1f
call fcn.10008729
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10008841
push dword [ebp + 8]
mov ecx, esi
call dword [0x10010114]
call esi
jmp 0x10008847
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000888b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10012800
push 0x100127f8
push str.FlsGetValue
push 0x21
call fcn.10008729
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100088c2
push dword [ebp + 8]
mov ecx, esi
call dword [0x10010114]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100088ca
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10012808
push 0x10012800
push str.FlsSetValue
push 0x22
call fcn.10008729
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10008904
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10010114]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000a5f4
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 0x1000a691
push ebx
push esi
call fcn.1000a5bd
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.1000a551
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000a63e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000a690
push edi
push eax
call fcn.1000797c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000a65e
call fcn.10007942
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000a68f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000a551
add esp, 0x20
test eax, eax
jne 0x1000a67d
push edi
call fcn.10007942
jmp 0x1000a685
push ebx
call fcn.10007942
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 0x1000ef00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000ef2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000ef2d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4017a5
Capabilities:
Extract resource via kernel32 functions
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0x4021bc
push 0x65
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x401862
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x401861
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401861
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0xf013f
push ebx
push 0x4021c0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401861
push edi
push esi
push 3
push ebx
push str._77stager
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x401861
call fcn.00401868
mov ebx, str._77svc32
mov esi, eax
mov ecx, ebx
call fcn.00401674
mov edi, str._77svc64
mov ecx, edi
call fcn.00401674
call fcn.0040112f
test eax, eax
push esi
cmove edi, ebx
push ecx
mov ecx, edi
call fcn.004011ad
pop ecx
pop ecx
test eax, eax
je 0x401861
mov ecx, edi
call fcn.0040151a
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x45bc1248
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x124a0865
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x404500
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
xor eax, eax
cmp dword [esp + 0x20], 0
je 0x4045e0
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x4045e0
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x40454a
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x404551
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x404530
jmp 0x404553
mov esi, 0x1505
jmp 0x404553
mov esi, ecx
mov ecx, dword [esp + 0x20]
mov edi, dword [ecx + 0x20]
mov ebx, edi
sub ebx, 1
jb 0x4045e0
and ebx, esi
mov eax, edi
xor eax, 1
mov edx, edi
and edx, 0xfffffffe
add edx, edx
sub edx, eax
mov dword [esp + 8], edx
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x404584
inc ebx
dec edi
je 0x4045de
mov eax, ebx
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebp, dword [edx + eax*4]
cmp ebp, 0xffffffff
je 0x4045de
mov eax, dword [ecx + 8]
cmp dword [eax + ebp*4], esi
jne 0x404580
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebp*4]
mov dword [esp], eax
push eax
call fcn.0040c960
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x404580
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.0040c980
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x404580
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebp*4]
jmp 0x4045e0
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404b50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
xor eax, eax
cmp dword [esp + 0x18], 0
je 0x404d67
cmp dword [esp + 0x1c], 0
jle 0x404d0e
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea ecx, [edx + eax]
mov dword [esp], ecx
jmp 0x404ba8
cmp esi, 0xc0
jne 0x404d65
and ebx, 0x1ff800
cmp ebx, 0xd800
mov ecx, dword [esp]
je 0x404d65
add edx, ebp
cmp edx, ecx
jae 0x404d0e
movzx ebx, byte [edx]
cmp ebx, 0xf4
ja 0x404d65
mov eax, ebx
and al, 0xfe
cmp al, 0xc0
je 0x404d65
mov eax, ebx
and eax, 0xffffffc0
cmp eax, 0x80
je 0x404d65
mov ebp, 1
test bl, bl
jns 0x404b9e
mov esi, ebx
and esi, 0xffffffe0
cmp esi, 0xc0
jne 0x404c0a
movzx edi, byte [edx + 1]
mov eax, edi
and eax, 0xffffffc0
cmp eax, 0x80
jne 0x404d65
and ebx, 0x1f
shl ebx, 6
mov ebp, 2
jmp 0x404c60
mov eax, ebx
and eax, 0xfffffff0
cmp eax, 0xe0
jne 0x404c64
movzx eax, byte [edx + 1]
mov ecx, eax
and ecx, 0xffffffc0
cmp ecx, 0x80
jne 0x404d65
movzx edi, byte [edx + 2]
mov ecx, edi
xor ecx, 0xffffff3f
mov ebp, edi
or ebp, 0xc0
and ebp, ecx
cmp ebp, 0x80
jne 0x404d65
and ebx, 0xf
shl ebx, 0xc
and eax, 0x3f
shl eax, 6
or ebx, eax
mov ebp, 3
xor ecx, ecx
jmp 0x404cd1
mov eax, ebx
and eax, 0xfffffff8
cmp eax, 0xf0
jne 0x404d65
movzx ecx, byte [edx + 1]
mov eax, ecx
and eax, 0xffffffc0
cmp eax, 0x80
jne 0x404d65
movzx eax, byte [edx + 2]
mov edi, eax
and edi, 0xffffffc0
cmp edi, 0x80
jne 0x404d65
movzx edi, byte [edx + 3]
mov ebp, edi
and ebp, 0xffffffc0
cmp ebp, 0x80
jne 0x404d65
and ebx, 7
shl ebx, 0xc
and ecx, 0x3f
shl ecx, 6
or ecx, ebx
and eax, 0x3f
or eax, ecx
shl eax, 6
mov cl, 1
mov ebp, 4
mov ebx, eax
and edi, 0x3f
or edi, ebx
cmp edi, 0x80
jb 0x404d65
cmp edi, 0x7ff
jbe 0x404b7d
cmp edi, 0xffff
ja 0x404d00
test cl, cl
je 0x404b89
jmp 0x404d65
cmp edi, 0x10ffff
jbe 0x404b89
jmp 0x404d65
mov edi, dword [esp + 0x1c]
lea eax, [edi + 1]
push eax
call dword [0x449008]
add esp, 4
test eax, eax
je 0x404d65
mov esi, eax
mov byte [eax + edi], 0
push edi
push dword [esp + 0x1c]
push eax
call fcn.0040c850
add esp, 0xc
push 0x10
call dword [0x449008]
add esp, 4
test eax, eax
je 0x404d5b
mov dword [eax], 0
mov dword [eax + 4], 2
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
jmp 0x404d67
push esi
call dword [0x449004]
add esp, 4
xor eax, eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret