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

Disassembly:
push 0xffffffffffffffff
push 0x4a6138
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x4c36a0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
lea edx, [eax + ecx]
push edx
push eax
lea ecx, [esp + 0x14]
call fcn.0046dab0
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esi + 4]
mov dword [esp + 0x28], 0
call fcn.0046e310
mov ecx, eax
call fcn.0046d8a0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x46e493
push eax
call fcn.0047528f
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret 0xc
Function at 0x4740fa
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4c36a0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00473f59
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00475820
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x474149
cmp dword [ebp - 0x1c], 5
jb 0x474161
jmp 0x47415d
cmp dword [ebp - 0x10], 1
jne 0x474161
cmp dword [ebp - 0x1c], 4
ja 0x47415d
jne 0x474161
cmp dword [ebp - 0x18], 0
jbe 0x474161
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4afddc
call fcn.0041fc60
test eax, eax
jge 0x474182
mov byte [0x4c4b24], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00476554
add ebp, 0x78
leave
ret

Function at 0x47439b
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4c5374], 0
push esi
jne 0x474309
call fcn.00474227
test eax, eax
je 0x47434c
mov eax, dword [0x4c5374]
cmp eax, 1
jne 0x47432a
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x47434c
pop esi
ret
push eax
call dword [0x4c537c]
test eax, eax
jne 0x474394
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x474350
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4c5374]
call dword [0x4c537c]
mov edi, eax
test edi, edi
je 0x474377
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x474393
lea edi, [esi + 0xff0]
push esi
push dword [0x4c5374]
call dword [0x4c5378]
add esi, 0x10
cmp esi, edi
jb 0x47437d
mov eax, esi
pop edi
pop esi
ret
jmp 0x4742f6

Function at 0x476554
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c36a0]
jne 0x47655e
repz ret
jmp fcn.0048077c
Function at 0x477e69
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x477ea6
cmp dword [ebp + 0x14], edi
je 0x477ea6
cmp ecx, edi
jne 0x477ead
call fcn.0047a740
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004760bc
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x477ec1
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x477ee2
cmp ebx, 0xffffffff
je 0x477ed1
push ebx
push edi
push ecx
call fcn.00475820
add esp, 0xc
cmp esi, edi
je 0x477e8e
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x477e8e
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x477efe
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x477f05
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x477ff6
test word [esi + 0xc], 0x10c
je 0x477f59
mov eax, dword [esi + 4]
test eax, eax
je 0x477f59
jl 0x478057
cmp ebx, eax
mov edi, ebx
jb 0x477f2a
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x477ffe
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0047589a
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x477fee
cmp ebx, dword [ebp - 0xc]
jb 0x477fc6
cmp dword [ebp - 0xc], 0
je 0x477f83
mov ecx, closesocket
xor edx, edx
cmp ebx, ecx
jbe 0x477f78
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x477f7f
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x477f8e
mov eax, closesocket
cmp ebx, eax
ja 0x477f8e
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x47802a
push eax
push dword [ebp - 8]
push esi
call fcn.004842b8
pop ecx
push eax
call fcn.00484d6d
add esp, 0xc
test eax, eax
je 0x478069
cmp eax, 0xffffffff
je 0x478057
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x477fee
push esi
call fcn.0048468c
cmp eax, 0xffffffff
pop ecx
je 0x47805b
cmp dword [ebp - 4], 0
je 0x47802a
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x477f0d
mov eax, dword [ebp + 0x14]
jmp 0x477ea8
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x478015
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00475820
add esp, 0xc
call fcn.0047a740
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x477e9e
cmp dword [ebp + 0xc], 0xffffffff
je 0x478040
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00475820
add esp, 0xc
call fcn.0047a740
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x477e9e
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x477ea8
or dword [esi + 0xc], 0x10
jmp 0x47805b
Function at 0x47eb4d
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4c39e8]
je 0x47eb68
inc edi
cmp edi, 0x17
jb 0x47eb59
cmp edi, 0x17
jae 0x47ece8
push ebp
push 3
call fcn.00495209
cmp eax, 1
pop ecx
je 0x47ecb4
push 3
call fcn.00495209
test eax, eax
pop ecx
jne 0x47eb9c
cmp dword [0x4c3710], 1
je 0x47ecb4
cmp ebx, 0xfc
je 0x47ece7
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4c57a0
push ebp
call fcn.004755ad
add esp, 0xc
test eax, eax
je 0x47ebd2
push esi
push esi
push esi
push esi
push esi
call fcn.00475f88
add esp, 0x14
push 0x104
mov esi, 0x4c57b9
push esi
push 0
mov byte [0x4c58bd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x47ec16
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004755ad
add esp, 0xc
test eax, eax
je 0x47ec16
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00475f88
add esp, 0x14
push esi
call fcn.0047a810
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x47ec5b
push esi
call fcn.0047a810
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4c5ab4
push 0x4b0e04
sub ecx, eax
push ecx
push eax
call fcn.004773d5
add esp, 0x14
test eax, eax
je 0x47ec5b
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00475f88
add esp, 0x14
jmp 0x47ec5d
xor esi, esi
push 0x4b0e00
push ebx
push ebp
call fcn.0048bffc
add esp, 0xc
test eax, eax
je 0x47ec7d
push esi
push esi
push esi
push esi
push esi
call fcn.00475f88
add esp, 0x14
push dword [edi*8 + 0x4c39ec]
push ebx
push ebp
call fcn.0048bffc
add esp, 0xc
test eax, eax
je 0x47ec9f
push esi
push esi
push esi
push esi
push esi
call fcn.00475f88
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0049504c
add esp, 0xc
jmp 0x47ece7
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x47ece7
cmp ebp, 0xffffffff
je 0x47ece7
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4c39ec]
push dword [esi]
call fcn.0047a810
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x49504c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0047fcad
xor ebx, ebx
cmp dword [0x4c6068], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x495122
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x495202
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4b24a4
push edi
call esi
cmp eax, ebx
je 0x495202
push eax
call fcn.0047fc3f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4c6068], eax
call esi
push eax
call fcn.0047fc3f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4c606c], eax
call esi
push eax
call fcn.0047fc3f
mov dword [0x4c6070], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0047e7b8
test eax, eax
pop ecx
pop ecx
je 0x4950f0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00475f88
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x495122
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0047fc3f
cmp eax, ebx
pop ecx
mov dword [0x4c6078], eax
je 0x495122
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0047fc3f
pop ecx
mov dword [0x4c6074], eax
mov eax, dword [0x4c6074]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4951a7
cmp dword [0x4c6078], ecx
je 0x4951a7
push eax
call fcn.0047fcb6
push dword [0x4c6078]
mov esi, eax
call fcn.0047fcb6
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4951a7
cmp edi, ebx
je 0x4951a7
call esi
cmp eax, ebx
je 0x495174
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x495174
test byte [ebp - 0x18], 1
jne 0x4951a7
lea eax, [ebp - 0x10]
push eax
call fcn.0047e867
test eax, eax
pop ecx
je 0x49518f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00475f88
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x49519e
or dword [ebp + 0x10], 0x200000
jmp 0x4951e2
or dword [ebp + 0x10], 0x40000
jmp 0x4951e2
mov eax, dword [0x4c606c]
cmp eax, dword [ebp - 8]
je 0x4951e2
push eax
call fcn.0047fcb6
cmp eax, ebx
pop ecx
je 0x4951e2
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4951e2
mov eax, dword [0x4c6070]
cmp eax, dword [ebp - 8]
je 0x4951e2
push eax
call fcn.0047fcb6
cmp eax, ebx
pop ecx
je 0x4951e2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4c6068]
call fcn.0047fcb6
cmp eax, ebx
pop ecx
je 0x495202
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x495204
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6d5c2e7e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x6d5c2e8d
pop dword [ebp - 0xc]
mov eax, 0x498d2ce5
add eax, 0x23cf01a8
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x9d37af10
add dword [ebp - 0x1c], 0xb11a963b
mov dword [ebp - 0x18], 0xa2d9efd7
add dword [ebp - 0x18], 0x8f595c6e
mov dword [ebp - 0x14], 0x132dde39
add dword [ebp - 0x14], 0x391e65f5
mov dword [ebp - 0x10], 0x83783b90
add dword [ebp - 0x10], 0x7c87c470
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xc4eead8e
sub dword [ebp - 0x1c], 0x507c4438
mov dword [ebp - 0x18], 0x38c1495d
sub dword [ebp - 0x18], 0xf754e7e8
mov dword [ebp - 0x14], 0x6f169f9d
add dword [ebp - 0x14], 0xf458cccf
mov dword [ebp - 0x10], 0x7a81d3ff
sub dword [ebp - 0x10], 0x7a81d3ff
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x319af
push 0
call eax
mov ecx, 0x3427
mov ebx, eax
mov edi, 0x6d5c9600
add edi, dword [ebp - 0xc]
mov edx, 0xc10cc66
sub edx, 0x3aacf6de
add dword [ebp - 4], eax
mov esi, dword [edi]
sub dword [ebp - 8], 0x9e8d00e0
sub esi, edx
xor dword [ebp - 8], 0xb22f32fd
mov dword [ebx], esi
mov dword [ebp - 8], 0xacfcbf90
add ebx, 4
add edi, 0xde2e59a3
sub edi, 0xde2e599f
loop 0x6d5c2f99
add eax, 0xc36f
mov ebx, eax
add eax, 5
mov ecx, 0xe9265bb3
sub ecx, 0x7bca5bb3
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x10014e70
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 0x10014eae
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10014ea6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10014eb0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10014e96
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10014f80
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x10014f96
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x10014fb1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x1001b36b
Capabilities:
Encode data using xor

Disassembly:
call 0x1001b2e4
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x1001b314
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x1001b330
xor edx, 0
jmp 0x1001b33b
xor edx, edx
jmp 0x1001b352
jmp 0x1001b35e
xor eax, eax
push 0x8427d7c0
call 0x1001b36b
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x1001b3a7
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x1001b380
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x1001b3be
add eax, 0
jno 0x1001b3c3
add esi, 0
ret 0x10
Function at 0x1001c12c
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x1001c14e
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x1001c2f0
cmp edi, dword [ebp + 0x10]
jb 0x1001c2f0
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.1001bc18
inc edi
jmp 0x1001c1d7
jmp 0x1001c1e4
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1001bc18
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1001bc18
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x1001c238
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x1001c21c
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.1001c266
add dword [eax], 0x39
jle 0x1001c242
sub al, 0xf5
mov ch, al
call fcn.1001c27b
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10

Function at 0x1001df53
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x1001df69
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x1001df7a
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.1001dfbb
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx
Function at 0x10020327
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x10020270
add ebx, 0
push ecx
call 0x10020285
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x6c046299
sub ebx, dword [0x6c065ad8]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x6c065ac8
call fcn.1001bd4f
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.1001b25d
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x100203e3
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x100203e3
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x1002039a
mov eax, 1
lock xchg dword [0x6c065ad4], eax
push 0x3dd1fc71
call 0x10020327
push esi
add esp, 8
cmp eax, 0
jne 0x10020310
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x10020336
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x1002034b
cmp ecx, edx
cmp eax, 0
je 0x10020370
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x1002035a
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.10020389
dec eax
loope 0x1002038c
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x6c065ad4], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x100203c0
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x100203d5
jmp 0x100203e0
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x100202ce
Function at 0x10027448
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x1002771e
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x6c05274c
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x6c049712
push 0xffffffffffffffff
call fcn.1001e648
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x100274b2
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.100274ca
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x10027712
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x100276e6
Function at 0x10036f18
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x10036f3a
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10036f3a
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10036f3a
ret
cmp word [ebx + 4], 0x14c
jne 0x10036f3a
test word [ebx + 0x16], 2
je 0x10036f3a
test word [ebx + 0x16], 0x100
je 0x10036f3a
cmp word [ebx + 0x18], 0x10b
jne 0x10036f3a
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10036f3a
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10036fc6
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10036f5a
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1001dea5
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10036f3a
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x10036fc6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x10036f3a
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10036f3a
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10036f3a
ret
cmp word [ebx + 4], 0x14c
jne 0x10036f3a
test word [ebx + 0x16], 2
je 0x10036f3a
test word [ebx + 0x16], 0x100
je 0x10036f3a
cmp word [ebx + 0x18], 0x10b
jne 0x10036f3a
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10036f3a
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10036fc6
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10036f5a
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1001dea5
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10036f3a
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8