joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48afb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4c53c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [esp + 0x2c]
mov esi, ecx
push edi
lea ecx, [esp + 0x18]
call fcn.0048a960
mov eax, dword [eax + 4]
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0
call fcn.00409630
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or ebx, 0xffffffff
mov byte [esp + 0x24], 2
mov dword [esp + 0x14], 0x4d0090
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48b01d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.00489bb0
cmp eax, dword [esi + 4]
mov dword [esp + 0xc], eax
je 0x48b04d
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
call fcn.004a20ad
add esp, 8
test eax, eax
jl 0x48b04d
lea eax, [esp + 0xc]
jmp 0x48b058
mov edx, dword [esi + 4]
mov dword [esp + 0x10], edx
lea eax, [esp + 0x10]
mov eax, dword [eax]
cmp eax, dword [esi + 4]
jne 0x48b094
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x24], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x48b07e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
push edi
lea ecx, [eax + 0x10]
call fcn.00483070
mov ecx, eax
call fcn.0048a020
mov esi, eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x24], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x48b0c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x48b740
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4c5424
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x520868]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x520868
mov dword [esp + 0x10], esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov edx, dword [0x520868]
mov ecx, 0x520868
mov byte [esp + 0x1c], 1
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x14], eax
mov eax, dword [0x520868]
mov ecx, 0x520868
mov byte [esp + 0x1c], 2
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x18], eax
lea edi, [esi + 0x3c]
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov ebp, dword [esp + 0x24]
cmp ebp, ebx
mov byte [esp + 0x1c], 4
jne 0x48b7ce
xor eax, eax
jmp 0x48b7dc
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x48b7d3
sub eax, edx
push eax
push ebp
mov ecx, esi
call fcn.00404360
mov edx, dword [esp + 0x28]
cmp edx, ebx
jne 0x48b7f1
xor eax, eax
jmp 0x48b7ff
mov eax, edx
lea ebp, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x48b7f6
sub eax, ebp
push eax
push edx
lea ecx, [esi + 0x14]
call fcn.00404360
mov edx, dword [esp + 0x2c]
cmp edx, ebx
jne 0x48b815
xor eax, eax
jmp 0x48b829
mov eax, edx
lea ebp, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x48b820
sub eax, ebp
push eax
push edx
lea ecx, [esi + 0x18]
call fcn.00404360
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, edi
mov dword [esi + 0x38], ebx
call fcn.00402330
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
Function at 0x48f4a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4c5805
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], esi
xor ebx, ebx
mov dword [esi], 0x4d0778
mov eax, 2
mov dword [esi + 4], ebx
mov dword [esi + 8], 0x10
mov dword [esi + 0xc], 0x14
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 0xffffff
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], 0xffffffff
mov dword [esi + 0x20], 0x12c
mov byte [esi + 0x24], bl
mov byte [esi + 0x25], bl
mov byte [esi + 0x26], bl
mov ecx, eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
mov byte [esi + 0x30], bl
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov eax, dword [0x520868]
mov ecx, 0x520868
mov byte [esp + 0x1c], 1
lea edi, [esi + 0x54]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov edx, dword [0x520868]
mov ecx, 0x520868
mov byte [esp + 0x1c], 3
lea ebp, [esi + 0x7c]
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp], eax
mov eax, dword [0x520868]
mov ecx, 0x520868
mov byte [esp + 0x1c], 4
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x80], eax
push ebx
push 0x4c8835
mov ecx, edi
mov byte [esp + 0x24], 5
call fcn.00404360
push ebx
push 0x4c8835
mov ecx, ebp
call fcn.00404360
push ebx
push 0x4c8835
lea ecx, [esi + 0x80]
call fcn.00404360
mov eax, 8
mov dword [esi + 0x64], eax
pop edi
mov dword [esi + 0x68], ebx
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 8]
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x493320
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [esp + 0x18]
sub esp, 0x4c
push esi
xor esi, esi
cmp ecx, esi
jle 0x493513
cmp ecx, 0xff
jl 0x493388
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x6c], esi
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], esi
jne 0x493388
mov ecx, dword [esp + 0x58]
push esi
lea eax, [esp + 0x40]
push eax
push ecx
mov ecx, dword [esp + 0x60]
push esi
call fcn.0046f740
pop esi
add esp, 0x4c
ret 0x24
mov eax, dword [esp + 0x58]
mov edx, dword [eax + 0x14]
sar ecx, 4
push ebx
mov ebx, dword [eax + 0x10]
push edi
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x7c]
mov edi, 1
shl edi, cl
mov cl, byte [esp + 0x78]
xor eax, eax
test cl, cl
sete al
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], eax
xor eax, eax
cmp edx, esi
mov dword [esp + 0xc], eax
jle 0x493511
push ebp
lea esp, [esp]
xor ebp, ebp
test ebx, ebx
mov dword [esp + 0x7c], ebp
jle 0x493502
mov ecx, dword [esp + 0x80]
mov edx, eax
sar edx, cl
lea ecx, [edx*4]
mov edx, dword [esp + 0x14]
shl edx, 4
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
jmp 0x493405
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x80]
mov esi, ebp
sar esi, cl
mov ecx, dword [esp + 0x1c]
and esi, 3
xor esi, ecx
and esi, 0xf
add esi, edx
mov edx, dword [esp + 0x20]
cmp dword [esi*4 + 0x4fbb60], edx
jg 0x4934ec
test ebp, ebp
mov esi, edi
mov edx, edi
mov ecx, ebp
jge 0x49343b
xor ecx, ecx
mov ebp, dword [esp + 0x10]
test ebp, ebp
jge 0x493445
xor eax, eax
lea ebp, [ecx + edi]
cmp ebp, ebx
jle 0x493450
mov esi, ebx
sub esi, ecx
mov ebx, dword [esp + 0x2c]
lea ebp, [eax + edi]
cmp ebp, ebx
jle 0x49345f
mov edx, ebx
sub edx, eax
add edx, eax
add esi, ecx
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x38], ecx
add ecx, edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x6c]
add eax, ecx
mov dword [esp + 0x34], eax
lea eax, [esp + 0x38]
lea edx, [esp + 0x30]
xor ecx, ecx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x78]
sub eax, ecx
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x70]
mov dword [esp + 0x40], esi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], ecx
je 0x4934cf
dec eax
jne 0x4934e4
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x4c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x68]
push edx
push eax
push 0xe
jmp 0x4934db
mov eax, dword [esp + 0x64]
push ecx
lea edx, [esp + 0x4c]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x70]
call fcn.0046f740
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x7c]
mov eax, dword [esp + 0x10]
add ebp, edi
cmp ebp, ebx
mov dword [esp + 0x7c], ebp
jl 0x493401
mov edx, dword [esp + 0x2c]
add eax, edi
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x4933d0
pop ebp
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0x4c
ret 0x24
Function at 0x494590
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c5868
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax]
test eax, eax
je 0x4945c7
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
push edi
mov edi, dword [esp + 0x24]
test edi, edi
jl 0x4946d1
mov ecx, dword [esp + 0x28]
test ecx, ecx
jl 0x4946d1
mov eax, dword [esi + 0x10]
cmp edi, eax
mov edx, dword [esi + 0x14]
mov dword [esp + 0x10], edx
jge 0x4946d1
mov dword [esp + 0xc], eax
mov eax, edx
cmp ecx, eax
jge 0x4946d1
mov eax, dword [esi + 0x1c]
cmp eax, 7
push ebx
je 0x494680
cmp eax, 0xc
je 0x494640
mov ecx, dword [esp + 0x30]
mov dword [ecx], 0
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x20], 0xffffffff
call dword [edx + 4]
pop ebx
pop edi
mov eax, 0xfffffffe
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 8]
imul eax, ecx
add eax, edx
mov cl, byte [eax + edi*4 + 3]
mov dl, byte [eax + edi*4]
mov bl, byte [eax + edi*4 + 1]
lea eax, [eax + edi*4]
mov al, byte [eax + 2]
mov byte [esp + 0x28], al
xor eax, eax
mov ah, cl
movzx ecx, bl
movzx edx, dl
mov al, byte [esp + 0x28]
shl eax, 8
or eax, ecx
mov ecx, dword [esp + 0x30]
shl eax, 8
or eax, edx
mov dword [ecx], eax
jmp 0x4946ac
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 8]
imul eax, ecx
add eax, edx
mov dl, byte [eax + edi*4 + 1]
mov cl, byte [eax + edi*4]
lea eax, [eax + edi*4]
mov al, byte [eax + 2]
xor ebx, ebx
mov bh, al
mov eax, dword [esp + 0x30]
mov bl, dl
movzx edx, cl
shl ebx, 8
or ebx, edx
mov dword [eax], ebx
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x20], 0xffffffff
call dword [edx + 4]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
mov eax, dword [esi]
mov ecx, esi
mov dword [esp + 0x1c], 0xffffffff
call dword [eax + 4]
mov ecx, dword [esp + 0x14]
pop edi
or eax, 0xffffffff
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc

Function at 0x495610
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
xor edx, edx
xor eax, eax
cmp edi, edx
je 0x495665
push ebx
lea ecx, [edi + 0x2d]
push esi
mov esi, eax
mov byte [ecx + 1], al
xor esi, 0xff
mov bl, al
mov byte [ecx], dl
mov byte [ecx - 1], dl
lea esi, [edi + esi*4 + 0x2c]
not bl
mov byte [esi + 2], bl
inc eax
add ecx, 4
cmp eax, 0xa
mov byte [esi + 1], dl
mov byte [esi], dl
jl 0x495622
pop esi
lea eax, [edi + 0x55]
mov ecx, 0xec
pop ebx
mov byte [eax + 1], dl
mov byte [eax], dl
mov byte [eax - 1], dl
add eax, 4
dec ecx
jne 0x495655
xor eax, eax
pop edi
ret
Function at 0x4974e9
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c5a70
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x34]
xor ebx, ebx
cmp eax, ebx
push edi
je 0x4974fe
push ebx
push eax
call dword [0x4c73b4]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
mov dword [esi + 0x34], ebx
call fcn.00487340
mov ecx, eax
mov dword [esp + 0x30], ebx
call fcn.00483070
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x18]
cmp edx, ebx
setne byte [esp + 0xf]
cmp eax, ebx
mov dword [esp + 0x30], 0xffffffff
je 0x49755b
mov edi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edi
mov edx, edi
cmp edx, ebx
mov dword [eax], edi
jne 0x49755b
cmp byte [ecx + 8], bl
je 0x49754c
mov edx, dword [ecx]
call dword [edx]
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x49755b
mov eax, dword [ecx]
push 1
call dword [eax + 4]
cmp byte [esp + 0xf], bl
je 0x4975d6
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00487340
mov ecx, eax
mov dword [esp + 0x30], 1
call fcn.00483070
mov edi, eax
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x49758f
push eax
call dword [0x4c722c]
mov dword [edi + 4], ebx
push ebx
lea ecx, [edi + 8]
push 0x4c8835
call fcn.00404360
mov eax, dword [esp + 0x24]
cmp eax, ebx
mov dword [esp + 0x30], 0xffffffff
je 0x4975d6
mov edi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edi
mov edx, edi
cmp edx, ebx
mov dword [eax], edi
jne 0x4975d6
cmp byte [ecx + 8], bl
je 0x4975c7
mov edx, dword [ecx]
call dword [edx]
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x4975d6
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0x10], ebx
xor ecx, ecx
lea edx, [esi + 0x14]
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov word [edx + 0x10], cx
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x49a6d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c5ca9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
xor ebx, ebx
mov dword [esi], 0x4d0c78
mov dword [esp + 0x1c], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov eax, dword [0x520868]
mov ecx, 0x520868
mov byte [esp + 0x1c], 1
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x10], eax
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x24], ecx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x28], ebx
mov ecx, dword [esi + 0x34]
cmp ecx, ebx
mov byte [esp + 0x1c], 3
je 0x49a764
dec dword [ecx + 4]
jne 0x49a75e
cmp byte [ecx + 8], bl
je 0x49a750
mov edx, dword [ecx]
call dword [edx]
mov ecx, dword [esi + 0x34]
cmp ecx, ebx
je 0x49a75e
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0x34], ebx
mov dword [esi + 0x2c], ebx
push 4
mov dword [esi + 0x18], ebx
call fcn.004a0b52
add esp, 4
cmp eax, ebx
je 0x49a77f
mov dword [eax], 0x4d0458
mov ebp, eax
jmp 0x49a781
xor ebp, ebp
sub esp, 0xc
cmp ebp, ebx
mov edi, esp
mov dword [esp + 0x30], esp
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
je 0x49a7d5
push 0x18
mov dword [edi + 4], ebx
mov dword [edi], ebp
call fcn.004a0b52
add esp, 4
cmp eax, ebx
je 0x49a7b4
mov dword [eax], 0x4d0500
mov dword [eax + 0x14], ebp
mov ebx, eax
mov dword [edi + 8], ebx
mov eax, 1
mov dword [ebx + 4], eax
mov ecx, dword [edi + 8]
mov byte [ecx + 8], al
mov edx, dword [edi + 8]
mov dword [edx + 0xc], 4
mov ecx, dword [edi + 8]
mov dword [ecx + 0x10], eax
mov ecx, esi
call fcn.00499ed0
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx]
push esi
call dword [edx + 0x1c]
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret 4
Function at 0x49e960
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4c623a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov edi, dword [0x4c71c4]
xor ebx, ebx
push ebx
push ebx
push ebx
mov dword [esi], 0x4d1100
mov ebp, 0x4d0d68
push ebx
mov dword [esp + 0x2c], ebx
mov dword [esi + 0xc], ebp
call edi
mov byte [esi + 0x14], bl
mov dword [esi + 0x10], eax
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x18], ebp
call edi
mov byte [esi + 0x20], bl
mov dword [esi + 0x1c], eax
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x24], ebp
call edi
mov byte [esi + 0x2c], bl
mov dword [esi + 0x28], eax
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x30], ebp
call edi
mov byte [esi + 0x38], bl
mov dword [esi + 0x34], eax
lea eax, [esi + 0x40]
push eax
mov dword [esi + 0x3c], 0x4c8344
call dword [0x4c70ec]
or edi, 0xffffffff
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
lea ecx, [esi + 0x6c]
mov byte [esp + 0x1c], 6
call fcn.0049e4e0
mov ecx, dword [esp + 0x14]
mov dword [esi + 4], ebx
mov dword [esi + 8], edi
pop edi
mov byte [esi + 0xa0], bl
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4a0508
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c63e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea edi, [esi + 0x30]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], edi
mov ecx, edi
mov byte [esp + 0x18], 1
call fcn.0049f3d0
mov ecx, edi
mov byte [esp + 0x18], 0
call fcn.00409280
mov ecx, esi
mov dword [esp + 0x18], 2
call fcn.0049f3d0
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.00409280
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4a2977
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4d14f8
call fcn.004a2e60
mov edi, 0x94
mov eax, edi
call fcn.004a1c10
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [0x4c70dc]
mov ecx, dword [esi + 0x10]
mov dword [0x520a84], ecx
mov eax, dword [esi + 4]
mov dword [0x520a90], eax
mov edx, dword [esi + 8]
mov dword [0x520a94], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x520a88], esi
cmp ecx, 2
je 0x4a29d7
or esi, 0x8000
mov dword [0x520a88], esi
shl eax, 8
add eax, edx
mov dword [0x520a8c], eax
xor esi, esi
push esi
mov edi, dword [0x4c71ec]
call edi
cmp word [eax], 0x5a4d
jne 0x4a2a12
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4a2a12
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4a2a2a
cmp eax, 0x20b
je 0x4a2a17
mov dword [ebp - 0x1c], esi
jmp 0x4a2a3e
cmp dword [ecx + 0x84], 0xe
jbe 0x4a2a12
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4a2a38
cmp dword [ecx + 0x74], 0xe
jbe 0x4a2a12
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004a3939
pop ecx
test eax, eax
jne 0x4a2a52
push 0x1c
call fcn.004a2953
pop ecx
call fcn.004a4f77
test eax, eax
jne 0x4a2a63
push 0x10
call fcn.004a2953
pop ecx
call fcn.004a7c03
mov dword [ebp - 4], esi
call fcn.004a7a05
test eax, eax
jge 0x4a2a7c
push 0x1b
call fcn.004a292e
pop ecx
call dword [0x4c7188]
mov dword [0x522174], eax
call fcn.004a78e3
mov dword [0x5208a8], eax
call fcn.004a7841
test eax, eax
jge 0x4a2aa2
push 8
call fcn.004a292e
pop ecx
call fcn.004a760e
test eax, eax
jge 0x4a2ab3
push 9
call fcn.004a292e
pop ecx
push 1
call fcn.004a5272
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4a2ac9
push eax
call fcn.004a292e
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [0x4c718c]
call fcn.004a75b1
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4a2aea
movzx eax, word [ebp - 0x40]
jmp 0x4a2aed
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004159e0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4a2b0b
push edi
call fcn.004a539f
call fcn.004a53c1
jmp 0x4a2b3d
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004a2e9b
ret
Function at 0x4a36f6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4a3724
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4a372b
cmp ebx, dword [eax + 4]
jae 0x4a372b
xor eax, eax
jmp 0x4a391b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4a373c
xor eax, eax
inc eax
jmp 0x4a391a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4a3752
cmp ecx, edx
jae 0x4a3897
cmp dword [eax + 4], 0
je 0x4a375b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4a3743
cmp dword [ebp + 8], 0
je 0x4a377d
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4a3897
cmp eax, esi
jae 0x4a3897
mov eax, dword [0x520a20]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4a37a2
cmp dword [esi*4 + 0x520a28], edi
je 0x4a389b
inc esi
cmp esi, eax
jl 0x4a3790
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x4c7194]
test eax, eax
je 0x4a3917
cmp dword [ebp - 8], 0x1000000
jne 0x4a3917
test byte [ebp - 0xc], 0xcc
je 0x4a3820
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4a3917
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4a3917
cmp word [eax + 0x18], 0x10b
jne 0x4a3917
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4a3917
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4a3820
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4a3820
test byte [ecx + 0x27], 0x80
jne 0x4a3897
push 1
push 0x520a68
call dword [0x4c7258]
test eax, eax
jne 0x4a3734
mov ecx, dword [0x520a20]
test ecx, ecx
mov edx, ecx
jle 0x4a3854
lea eax, [ecx*4 + 0x520a24]
cmp dword [eax], edi
je 0x4a3854
dec edx
sub eax, 4
test edx, edx
jg 0x4a3848
test edx, edx
jne 0x4a3885
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4a3861
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4a3879
lea eax, [edx*4 + 0x520a28]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4a3867
cmp ecx, 0x10
jge 0x4a3885
inc ecx
mov dword [0x520a20], ecx
push 0
push 0x520a68
call dword [0x4c7258]
jmp 0x4a3734
xor eax, eax
jmp 0x4a391a
test esi, esi
jle 0x4a3734
mov ebx, dword [0x4c7258]
push 1
push 0x520a68
call ebx
test eax, eax
jne 0x4a3734
cmp dword [esi*4 + 0x520a28], edi
je 0x4a38f1
mov eax, dword [0x520a20]
lea esi, [eax - 1]
test esi, esi
jl 0x4a38df
cmp dword [esi*4 + 0x520a28], edi
je 0x4a38db
dec esi
jns 0x4a38cf
test esi, esi
jge 0x4a38ef
cmp eax, 0x10
jge 0x4a38ea
inc eax
mov dword [0x520a20], eax
lea esi, [eax - 1]
jmp 0x4a38f1
je 0x4a3909
xor ecx, ecx
test esi, esi
jl 0x4a3909
lea eax, [ecx*4 + 0x520a28]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4a38f7
push 0
push 0x520a68
call ebx
jmp 0x4a3734
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4ae880
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
xor edx, edx
cmp ecx, edx
je 0x4ae920
push ebx
push ebp
push esi
mov esi, dword [ecx]
push edi
xor eax, eax
mov byte [esi + 0x16], dl
mov esi, dword [ecx]
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov byte [esi + 0x18], dl
mov esi, dword [ecx]
mov byte [esi + 0x19], dl
mov edi, dword [ecx + 4]
xor esi, esi
cmp edi, edx
jle 0x4ae8d2
mov ebp, dword [ecx]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x4fcc58]
xor eax, edx
inc esi
cmp esi, edi
jl 0x4ae8b3
xor edx, edx
mov edi, dword [ecx + 0xc]
xor esi, esi
cmp edi, edx
jle 0x4ae8fb
mov ebp, dword [ecx + 8]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x4fcc58]
xor eax, edx
inc esi
cmp esi, edi
jl 0x4ae8de
mov edx, dword [ecx]
pop edi
mov byte [edx + 0x16], al
mov esi, dword [ecx]
mov edx, eax
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov edx, eax
shr edx, 0x10
mov byte [esi + 0x18], dl
mov ecx, dword [ecx]
shr eax, 0x18
pop esi
pop ebp
mov byte [ecx + 0x19], al
pop ebx
ret