joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a5c70
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, 0x100e8510
mov word [0x100e8a10], 0
push esi
dec eax
mov word [0x100e8510], 0x301
push edi
mov edi, 0x100e8510
mov byte [0x100e8a13], 1
mov ebx, 2
sub edi, eax
lea esi, [eax + 2]
mov cl, byte [esi]
lea esi, [esi + 1]
mov dl, cl
mov al, cl
and dl, 0x80
neg dl
sbb dl, dl
add al, al
xor al, cl
and dl, 0x1b
xor al, dl
mov byte [edi + esi - 1], al
movzx eax, al
mov byte [eax + 0x100e8a10], bl
inc ebx
cmp ebx, 0x100
jl 0x100a5ca5
mov byte [0x100e8290], 0x63
mov ebx, 1
mov byte [0x100e83f3], 0
jmp 0x100a5cf0
movzx eax, bl
mov ecx, 0x100e860f
movzx eax, byte [eax + 0x100e8a10]
sub ecx, eax
mov cl, byte [ecx]
mov dl, cl
rol dl, 1
xor cl, dl
rol dl, 1
xor cl, dl
rol dl, 1
mov al, dl
rol al, 1
xor al, cl
xor al, dl
xor al, 0x63
mov byte [ebx + 0x100e8290], al
movzx eax, al
mov byte [eax + 0x100e8390], bl
inc ebx
cmp ebx, 0x100
jl 0x100a5cf0
mov al, 1
mov edx, 0x100e8490
movzx ecx, al
mov dword [edx], ecx
mov cl, al
and cl, 0x80
neg cl
sbb cl, cl
add al, al
and cl, 0x1b
add edx, 4
xor al, cl
cmp edx, 0x100e8508
jl 0x100a5d38
mov ecx, dword [0x100031ac]
xor esi, esi
mov edi, 0xff
mov ah, byte [esi + 0x100e8290]
mov bl, ah
mov bh, ah
and bl, 0x80
mov al, bl
neg al
sbb al, al
add bh, bh
and al, 0x1b
mov dl, bh
xor dl, al
xor dl, ah
neg bl
movzx edx, dl
sbb bl, bl
movzx eax, ah
shl edx, 8
and bl, 0x1b
or edx, eax
xor bh, bl
mov bl, byte [esi + 0x100e8390]
shl edx, 8
or edx, eax
movzx eax, bh
shl edx, 8
or edx, eax
mov dword [esi*4 + 0x100e8610], edx
test cl, cl
je 0x100a5ddc
test bl, bl
je 0x100a5ddc
movzx eax, cl
movzx edx, bl
movzx eax, byte [eax + 0x100e8a10]
movzx edx, byte [edx + 0x100e8a10]
add eax, edx
cdq
idiv edi
mov al, byte [edx + 0x100e8510]
mov byte [ebp - 1], al
jmp 0x100a5de0
mov byte [ebp - 1], 0
test ch, ch
je 0x100a5e0c
test bl, bl
je 0x100a5e0c
movzx eax, ch
movzx edx, bl
movzx eax, byte [eax + 0x100e8a10]
movzx edx, byte [edx + 0x100e8a10]
add eax, edx
cdq
idiv edi
mov al, byte [edx + 0x100e8510]
mov byte [ebp - 2], al
jmp 0x100a5e10
mov byte [ebp - 2], 0
mov al, byte [0x100031ae]
test al, al
je 0x100a5e3e
test bl, bl
je 0x100a5e3e
movzx eax, al
movzx edx, bl
movzx eax, byte [eax + 0x100e8a10]
movzx edx, byte [edx + 0x100e8a10]
add eax, edx
cdq
idiv edi
mov bh, byte [edx + 0x100e8510]
jmp 0x100a5e40
xor bh, bh
mov al, byte [0x100031af]
test al, al
je 0x100a5e6e
test bl, bl
je 0x100a5e6e
movzx eax, al
movzx edx, bl
movzx eax, byte [eax + 0x100e8a10]
movzx edx, byte [edx + 0x100e8a10]
add eax, edx
cdq
idiv edi
mov bl, byte [edx + 0x100e8510]
jmp 0x100a5e70
xor bl, bl
movzx edx, byte [ebp - 1]
movzx eax, byte [ebp - 2]
shl edx, 8
or edx, eax
movzx eax, bh
shl edx, 8
or edx, eax
movzx eax, bl
shl edx, 8
or edx, eax
mov dword [esi*4 + 0x100e7e90], edx
inc esi
cmp esi, 0x100
jl 0x100a5d65
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100cef50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x100cf020
push 0xffffffffffffffff
push 0x100e5168
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10001840]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [0x100026c8]
cmp eax, 0xffffffff
jne 0x100cf059
xor ebp, ebp
mov dword [esp + 0x14], ebp
jmp 0x100cf066
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebp
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x2c], 0
test ebp, ebp
je 0x100cf0cd
jmp 0x100cf09c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp + 0x14], 0
mov edi, dword [ebp + 0xc]
jne 0x100cf10a
test edi, edi
jne 0x100cf110
push 0x100cec20
push 0x100e7940
call fcn.100ce8c0
mov eax, dword [0x100026c8]
add esp, 8
cmp eax, 0xffffffff
je 0x100cf0cd
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x2c], 0xffffffff
test ebp, ebp
je 0x100cf0f6
lea eax, [ebp + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x100cf0f6
mov eax, dword [ebp]
mov ecx, ebp
push 0
call dword [eax]
push ebp
push 0
call esi
push eax
call ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
test edi, edi
je 0x100cf148
mov edi, edi
mov eax, dword [edi + 4]
mov dword [ebp + 0xc], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x100cf139
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [edi]
mov ecx, esi
push 0
mov eax, dword [esi]
call dword [eax]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call esi
push eax
call ebx
push edi
push 0
call esi
push eax
call ebx
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x100cf110
mov ebx, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
mov dword [esp + 0x18], eax
mov esi, dword [ebx]
cmp esi, ebx
je 0x100cf090
mov ebp, eax
mov edi, edi
cmp byte [esi + 0xd], 0
mov edi, esi
jne 0x100cf1a7
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x100cf18c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x100cf1a7
jmp 0x100cf180
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x100cf180
jmp 0x100cf1a7
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x100cf1a5
cmp esi, dword [eax + 8]
jne 0x100cf1a5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x100cf195
mov esi, eax
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x100cf1bb
mov edx, dword [edi + 0x1c]
test edx, edx
je 0x100cf1bb
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push edi
lea eax, [esp + 0x24]
mov ecx, ebp
push eax
call fcn.100cec50
cmp esi, ebx
jne 0x100cf160
mov ebp, dword [esp + 0x14]
jmp 0x100cf090
Function at 0x100cf020
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x100cf020
push 0xffffffffffffffff
push 0x100e5168
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10001840]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [0x100026c8]
cmp eax, 0xffffffff
jne 0x100cf059
xor ebp, ebp
mov dword [esp + 0x14], ebp
jmp 0x100cf066
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebp
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x2c], 0
test ebp, ebp
je 0x100cf0cd
jmp 0x100cf09c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp + 0x14], 0
mov edi, dword [ebp + 0xc]
jne 0x100cf10a
test edi, edi
jne 0x100cf110
push 0x100cec20
push 0x100e7940
call fcn.100ce8c0
mov eax, dword [0x100026c8]
add esp, 8
cmp eax, 0xffffffff
je 0x100cf0cd
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x2c], 0xffffffff
test ebp, ebp
je 0x100cf0f6
lea eax, [ebp + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x100cf0f6
mov eax, dword [ebp]
mov ecx, ebp
push 0
call dword [eax]
push ebp
push 0
call esi
push eax
call ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
test edi, edi
je 0x100cf148
mov edi, edi
mov eax, dword [edi + 4]
mov dword [ebp + 0xc], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x100cf139
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [edi]
mov ecx, esi
push 0
mov eax, dword [esi]
call dword [eax]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call esi
push eax
call ebx
push edi
push 0
call esi
push eax
call ebx
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x100cf110
mov ebx, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
mov dword [esp + 0x18], eax
mov esi, dword [ebx]
cmp esi, ebx
je 0x100cf090
mov ebp, eax
mov edi, edi
cmp byte [esi + 0xd], 0
mov edi, esi
jne 0x100cf1a7
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x100cf18c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x100cf1a7
jmp 0x100cf180
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x100cf180
jmp 0x100cf1a7
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x100cf1a5
cmp esi, dword [eax + 8]
jne 0x100cf1a5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x100cf195
mov esi, eax
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x100cf1bb
mov edx, dword [edi + 0x1c]
test edx, edx
je 0x100cf1bb
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push edi
lea eax, [esp + 0x24]
mov ecx, ebp
push eax
call fcn.100cec50
cmp esi, ebx
jne 0x100cf160
mov ebp, dword [esp + 0x14]
jmp 0x100cf090
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x407ad0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jge 0x407af9
mov eax, 0xfffffffd
jmp 0x407c9a
mov ebx, dword [0x12fac7c]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0
je 0x407c68
mov ebx, dword [0x12fac7c]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0xa
jne 0x407b48
mov ebx, dword [0x12fac7c]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 0
jne 0x407b48
mov eax, 1
jmp 0x407b4d
mov eax, 0
test eax, eax
je 0x407b7d
call fcn.00407ca0
mov dword [ebp - 4], eax
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x407b6a
mov eax, dword [ebp + 8]
call dword [ebp - 4]
nop
nop
leave
ret 4
mov ebx, dword [0x12fac7c]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 6
jne 0x407bb4
mov ebx, dword [0x12fac7c]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 2
jne 0x407bb4
mov eax, 1
jmp 0x407bb9
mov eax, 0
test eax, eax
jne 0x407c09
mov ebx, dword [0x12fac7c]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
cmp dword [ebx], 6
jne 0x407bf8
mov ebx, dword [0x12fac7c]
add ebx, 8
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
cmp dword [ebx], 3
jne 0x407bf8
mov eax, 1
jmp 0x407bfd
mov eax, 0
test eax, eax
jne 0x407c09
xor eax, eax
jmp 0x407c0e
mov eax, 1
test eax, eax
je 0x407c3a
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x407c23
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 [0x12fac7c]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0
jne 0x407c90
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x407c9a
mov esp, ebp
pop ebp
ret 4

Function at 0x408a77
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.00408ad9
test eax, eax
je 0x408aba
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x408aba
cmp word [eax], 0x5a4d
jne 0x408aba
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x408aba
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.00408bab
mov eax, dword [ebp + 8]
jmp 0x408ad3
mov esp, ebp
pop ebp
ret 4

Function at 0x408ad9
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x408b8c
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]
Function at 0x41725b
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 0x417293
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x417281
mov al, 1
jmp 0x4172dd
cmp dword [ebx + 0x54], ecx
jne 0x41728a
mov al, 2
jmp 0x4172dd
cmp dword [ebx + 0x7c], ecx
jne 0x4172dd
mov al, 3
jmp 0x4172dd
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x4172a8
mov al, 4
jmp 0x4172dd
cmp ecx, 5
jne 0x4172c8
cmp ebx, 0
jne 0x4172b6
mov al, 5
jmp 0x4172dd
cmp ebx, 1
jne 0x4172bf
mov al, 6
jmp 0x4172dd
cmp ebx, 2
jne 0x4172c8
mov al, 7
jmp 0x4172dd
cmp ecx, 6
jne 0x4172d4
cmp ebx, 0
jne 0x4172d6
mov al, 8
jmp 0x4172dd
cmp ebx, 1
jne 0x4172dd
mov al, 9
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e88a0
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
mov eax, 0x564d5868
mov ebx, 0
mov ecx, 0xa
mov edx, 0x5658
in eax, dx
cmp ebx, 0x564d5868
sete byte [ebp - 4]
mov eax, dword [ebp - 4]
jmp 0x4e88d7
mov esp, ebp
pop ebp
ret

Function at 0x50f84f
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x50f902
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]
Function at 0x5145ed
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.0050f84f
test eax, eax
je 0x514630
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x514630
cmp word [eax], 0x5a4d
jne 0x514630
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x514630
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.0051464f
mov eax, dword [ebp + 8]
jmp 0x514649
mov esp, ebp
pop ebp
ret 4

Function at 0x514805
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jge 0x51482e
mov eax, 0xfffffffd
jmp 0x5149cf
mov ebx, dword [0x12fb158]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0
je 0x51499d
mov ebx, dword [0x12fb158]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0xa
jne 0x51487d
mov ebx, dword [0x12fb158]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 0
jne 0x51487d
mov eax, 1
jmp 0x514882
mov eax, 0
test eax, eax
je 0x5148b2
call fcn.005149d5
mov dword [ebp - 4], eax
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x51489f
mov eax, dword [ebp + 8]
call dword [ebp - 4]
nop
nop
leave
ret 4
mov ebx, dword [0x12fb158]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 6
jne 0x5148e9
mov ebx, dword [0x12fb158]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 2
jne 0x5148e9
mov eax, 1
jmp 0x5148ee
mov eax, 0
test eax, eax
jne 0x51493e
mov ebx, dword [0x12fb158]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
cmp dword [ebx], 6
jne 0x51492d
mov ebx, dword [0x12fb158]
add ebx, 8
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
cmp dword [ebx], 3
jne 0x51492d
mov eax, 1
jmp 0x514932
mov eax, 0
test eax, eax
jne 0x51493e
xor eax, eax
jmp 0x514943
mov eax, 1
test eax, eax
je 0x51496f
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x514958
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 [0x12fb158]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0
jne 0x5149c5
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x5149cf
mov esp, ebp
pop ebp
ret 4
Function at 0x52d6f0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x62298b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00614a87
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x52d772
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00611e8d
mov eax, dword [eax]
push 0x12d3f40
push eax
call fcn.00602ae4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00614d12
test bl, bl
je 0x52d772
push 0x12d3f40
lea ecx, [esp + 0xc]
call fcn.006150ee
push 0x12d3f4c
lea ecx, [esp + 0xc]
call fcn.006150ee
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x52d7ae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00614d12
jmp 0x52d879
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x52d832
lea edx, [esp + 0x7c]
push 0x12d3f48
push edx
call fcn.00602ae4
add esp, 8
test eax, eax
je 0x52d832
lea eax, [esp + 0x7c]
push 0x12d3f44
push eax
call fcn.00602ae4
add esp, 8
test eax, eax
je 0x52d832
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x52d7c2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00614d12
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x52e090
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x52e0f2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x52e100
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x622a0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x12f63b8]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x52e238
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x52e166
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00614d12
xor eax, eax
jmp 0x52e2af
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00614e9b
push esi
lea ecx, [esp + 0xc]
call fcn.0061512a
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x12d3f80
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x52e28d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push 0x12d3f78
push closesocket
call fcn.0052e090
test eax, eax
jne 0x52e28d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push 0x12d3f64
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.0052e090
test eax, eax
jne 0x52e28d
lea eax, [esp + 0x14]
push 0x12d3f5c
push eax
call fcn.00603d60
mov esi, eax
add esp, 8
test esi, esi
jne 0x52e26c
lea ecx, [esp + 0x14]
push 0x12d3f58
push ecx
call fcn.00603ce0
mov esi, eax
add esp, 8
test esi, esi
jne 0x52e26c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x52e26f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00614e4b
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x52e17e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00614d12
xor eax, eax
jmp 0x52e2af
mov byte [esi], 0
push 0x12d3f54
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00614d12
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4

Function at 0x53ccb6
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
mov eax, dword [esi + 0x3a0]
test eax, eax
jne 0x53ccde
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x3a0], eax
pop esi
add esp, 0x190
ret