joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4742f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x474343
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x47432a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47acf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a85fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0047b610
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x734154
call fcn.00499844
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x47ad83
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00499844
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x47ad7c
push 0
mov ecx, eax
call fcn.00471e70
mov dword [esi + 0xc], eax
jmp 0x47ad85
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x47ad85
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x49bed1
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49bf09
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00499f5e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00499f36
jmp 0x49bf15
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49d5c2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x49d604
call fcn.004a36a0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49d604
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49d5fb
xor eax, eax
jmp 0x49d60c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049d612
pop edi
pop esi
pop ebx
ret 4
Function at 0x4a2d8a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4a2db8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a2dd6
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a2cf0
jmp 0x4a2dd6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a2dd6
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a2cf0
test edi, edi
mov eax, edi
jne 0x4a2dc0
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x5075c8
Capabilities:
Get number of processors
Parse pe header
Resolve function by parsing pe exports

Disassembly:
pop eax
mov dword [ebp - 0x3c0], eax
push ebx
xor ebx, 0x9efb
call 0x5075e5
add byte [0x4b38503f], dh
dec eax
dec edx
dec esi
add esp, 4
xor ebx, 0x105aa
or ebx, 0x18082
pop ebx
push edx
push eax
add esp, 4
add edx, 0x33a5
pop edx
mov ecx, dword [ebp - 0x1fa0]
mov dword [ebp - 0x14b8], ecx
push esi
push ebx
add esp, 4
call 0x507620
add byte [eax], bh
dec edx
dec ebp
aas
xor eax, 0x83493f49
les eax, [ecx + eax*4]
out dx, al
inc esi
test dword [ecx], eax
add al, ch
pop es
add byte [eax], al
add byte [eax], al
inc esp
dec esp
inc esp
cmp byte [esi - 0x7d], al
les eax, [ecx + eax*4]
out 0x80, al
add dword ds:[eax], eax
pop esi
mov edx, dword [ebp - 0x14]
invalid
invalid

Function at 0x5075e5
Capabilities:
Get number of processors
Parse pe header
Resolve function by parsing pe exports

Disassembly:
pop eax
mov dword [ebp - 0x3c0], eax
push ebx
xor ebx, 0x9efb
call 0x5075e5
add byte [0x4b38503f], dh
dec eax
dec edx
dec esi
add esp, 4
xor ebx, 0x105aa
or ebx, 0x18082
pop ebx
push edx
push eax
add esp, 4
add edx, 0x33a5
pop edx
mov ecx, dword [ebp - 0x1fa0]
mov dword [ebp - 0x14b8], ecx
push esi
push ebx
add esp, 4
call 0x507620
add byte [eax], bh
dec edx
dec ebp
aas
xor eax, 0x83493f49
les eax, [ecx + eax*4]
out dx, al
inc esi
test dword [ecx], eax
add al, ch
pop es
add byte [eax], al
add byte [eax], al
inc esp
dec esp
inc esp
cmp byte [esi - 0x7d], al
les eax, [ecx + eax*4]
out 0x80, al
add dword ds:[eax], eax
pop esi
mov edx, dword [ebp - 0x14]
invalid
invalid

Function at 0x507620
Capabilities:
Get number of processors
Parse pe header
Resolve function by parsing pe exports

Disassembly:
pop eax
mov dword [ebp - 0x3c0], eax
push ebx
xor ebx, 0x9efb
call 0x5075e5
add byte [0x4b38503f], dh
dec eax
dec edx
dec esi
add esp, 4
xor ebx, 0x105aa
or ebx, 0x18082
pop ebx
push edx
push eax
add esp, 4
add edx, 0x33a5
pop edx
mov ecx, dword [ebp - 0x1fa0]
mov dword [ebp - 0x14b8], ecx
push esi
push ebx
add esp, 4
call 0x507620
add byte [eax], bh
dec edx
dec ebp
aas
xor eax, 0x83493f49
les eax, [ecx + eax*4]
out dx, al
inc esi
test dword [ecx], eax
add al, ch
pop es
add byte [eax], al
add byte [eax], al
inc esp
dec esp
inc esp
cmp byte [esi - 0x7d], al
les eax, [ecx + eax*4]
out 0x80, al
add dword ds:[eax], eax
pop esi
mov edx, dword [ebp - 0x14]
invalid
invalid
Function at 0x507635
Capabilities:
Get number of processors
Parse pe header
Resolve function by parsing pe exports

Disassembly:
pop eax
mov dword [ebp - 0x3c0], eax
push ebx
xor ebx, 0x9efb
call 0x5075e5
add byte [0x4b38503f], dh
dec eax
dec edx
dec esi
add esp, 4
xor ebx, 0x105aa
or ebx, 0x18082
pop ebx
push edx
push eax
add esp, 4
add edx, 0x33a5
pop edx
mov ecx, dword [ebp - 0x1fa0]
mov dword [ebp - 0x14b8], ecx
push esi
push ebx
add esp, 4
call 0x507620
add byte [eax], bh
dec edx
dec ebp
aas
xor eax, 0x83493f49
les eax, [ecx + eax*4]
out dx, al
inc esi
test dword [ecx], eax
add al, ch
pop es
add byte [eax], al
add byte [eax], al
inc esp
dec esp
inc esp
cmp byte [esi - 0x7d], al
les eax, [ecx + eax*4]
out 0x80, al
add dword ds:[eax], eax
pop esi
mov edx, dword [ebp - 0x14]
invalid
invalid
Function at 0x5097a1
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ecx
push eax
add esp, 4
jmp 0x509781
pop ecx
push edi
or edi, 0xf48b
and edi, 0x8b68
sub edi, 0x2f80
call fcn.005097a1
add byte [ecx + eax*2], bh
push eax
inc eax
inc ebp
dec edx
add esp, 4
pop edi
mov ecx, dword [ebp - 0xc44]
mov dx, word [ecx]
mov word [ebp - 0xf8a], dx
mov eax, dword [ebp - 0xc44]
add eax, 2
mov dword [ebp - 0xc44], eax
mov cx, word [ebp - 0xf8a]
mov word [ebp - 0x204], cx
mov edx, dword [ebp - 0xc48]
mov ax, word [edx]
mov word [ebp - 0xf8c], ax
mov ecx, dword [ebp - 0xc48]
add ecx, 2
mov dword [ebp - 0xc48], ecx
mov dx, word [ebp - 0xf8c]
mov word [ebp - 0x38], dx
push edi
add edi, 0x869a
xor edi, 0x44bb
call 0x509818
add byte [esi], dh
cmp edi, dword [edx]
cmp eax, 0x3d503f4e
inc edi
add esp, 4
pop edi
push edi
push edi
add esp, 4
or edi, 0x12917
add edi, 0x128fb
pop edi
movzx eax, word [ebp - 0x38]
test eax, eax
jne 0x50984b
movzx ecx, word [ebp - 0x204]
movzx edx, word [ebp - 0x38]
sub ecx, edx
mov dword [ebp - 0x1514], ecx
jmp 0x5098a5
movzx eax, word [ebp - 0x204]
movzx ecx, word [ebp - 0x38]
cmp eax, ecx
je 0x509773
movzx edx, word [ebp - 0x204]
xor edx, 0x20
movzx eax, word [ebp - 0x38]
cmp edx, eax
je 0x509773
movzx ecx, word [ebp - 0x204]
movzx edx, word [ebp - 0x38]
cmp ecx, edx
jge 0x50988f
mov dword [ebp - 0x1510], 0xffffffff
jmp 0x509899
mov dword [ebp - 0x1510], 1
mov eax, dword [ebp - 0x1510]
mov dword [ebp - 0x1514], eax
cmp dword [ebp - 0x1514], 0
jne 0x5098ee
push esi
or esi, 0x6053
sub esi, 0xfde
xor esi, 0x119d2
pop esi
push edx
push edx
add esp, 4
and edx, 0xa0ae
sub edx, 0x645d
xor edx, 0xd41f
jmp 0x5098df
pop edx
mov ecx, dword [ebp - 0x4e4]
mov dword [ebp - 0x2a8], ecx
jmp 0x509956
push edi
or edi, 0x24b5
add edi, 0x17517
and edi, 0x1510c
pop edi
push ebx
push edx
add esp, 4
xor ebx, 0xa7fd
or ebx, 0xb2f9
and ebx, 0x6ba4
sub ebx, 0x3982
pop ebx
mov edx, dword [ebp - 0x4e4]
mov eax, dword [edx]
mov dword [ebp - 0x4e4], eax
mov ecx, dword [ebp - 0x4e4]
cmp ecx, dword [ebp - 0xc4c]
je 0x50994c
mov edx, dword [ebp - 0x4e4]
cmp dword [edx + 0x30], 0
jne 0x509717
mov dword [ebp - 0x2a8], 0
Function at 0x509818
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ecx
push eax
add esp, 4
jmp 0x509781
pop ecx
push edi
or edi, 0xf48b
and edi, 0x8b68
sub edi, 0x2f80
call fcn.005097a1
add byte [ecx + eax*2], bh
push eax
inc eax
inc ebp
dec edx
add esp, 4
pop edi
mov ecx, dword [ebp - 0xc44]
mov dx, word [ecx]
mov word [ebp - 0xf8a], dx
mov eax, dword [ebp - 0xc44]
add eax, 2
mov dword [ebp - 0xc44], eax
mov cx, word [ebp - 0xf8a]
mov word [ebp - 0x204], cx
mov edx, dword [ebp - 0xc48]
mov ax, word [edx]
mov word [ebp - 0xf8c], ax
mov ecx, dword [ebp - 0xc48]
add ecx, 2
mov dword [ebp - 0xc48], ecx
mov dx, word [ebp - 0xf8c]
mov word [ebp - 0x38], dx
push edi
add edi, 0x869a
xor edi, 0x44bb
call 0x509818
add byte [esi], dh
cmp edi, dword [edx]
cmp eax, 0x3d503f4e
inc edi
add esp, 4
pop edi
push edi
push edi
add esp, 4
or edi, 0x12917
add edi, 0x128fb
pop edi
movzx eax, word [ebp - 0x38]
test eax, eax
jne 0x50984b
movzx ecx, word [ebp - 0x204]
movzx edx, word [ebp - 0x38]
sub ecx, edx
mov dword [ebp - 0x1514], ecx
jmp 0x5098a5
movzx eax, word [ebp - 0x204]
movzx ecx, word [ebp - 0x38]
cmp eax, ecx
je 0x509773
movzx edx, word [ebp - 0x204]
xor edx, 0x20
movzx eax, word [ebp - 0x38]
cmp edx, eax
je 0x509773
movzx ecx, word [ebp - 0x204]
movzx edx, word [ebp - 0x38]
cmp ecx, edx
jge 0x50988f
mov dword [ebp - 0x1510], 0xffffffff
jmp 0x509899
mov dword [ebp - 0x1510], 1
mov eax, dword [ebp - 0x1510]
mov dword [ebp - 0x1514], eax
cmp dword [ebp - 0x1514], 0
jne 0x5098ee
push esi
or esi, 0x6053
sub esi, 0xfde
xor esi, 0x119d2
pop esi
push edx
push edx
add esp, 4
and edx, 0xa0ae
sub edx, 0x645d
xor edx, 0xd41f
jmp 0x5098df
pop edx
mov ecx, dword [ebp - 0x4e4]
mov dword [ebp - 0x2a8], ecx
jmp 0x509956
push edi
or edi, 0x24b5
add edi, 0x17517
and edi, 0x1510c
pop edi
push ebx
push edx
add esp, 4
xor ebx, 0xa7fd
or ebx, 0xb2f9
and ebx, 0x6ba4
sub ebx, 0x3982
pop ebx
mov edx, dword [ebp - 0x4e4]
mov eax, dword [edx]
mov dword [ebp - 0x4e4], eax
mov ecx, dword [ebp - 0x4e4]
cmp ecx, dword [ebp - 0xc4c]
je 0x50994c
mov edx, dword [ebp - 0x4e4]
cmp dword [edx + 0x30], 0
jne 0x509717
mov dword [ebp - 0x2a8], 0
Function at 0x5297bc
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
xor ecx, ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], ecx
mov ebx, eax
xor eax, eax
push ebp
push 0x529901
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x40
call fcn.00402e44
mov dword [ebp - 0x48], 0x40
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GlobalMemoryStatusEx
call fcn.0040ec54
mov eax, dword [ebx + 0x388]
mov eax, dword [eax + 0x194]
xor edx, edx
call fcn.004a3660
mov edx, dword [ebp - 0x44]
mov dword [eax + 0xc], edx
mov eax, dword [ebx + 0x388]
call fcn.004a3db8
lea ecx, [ebp - 0x50]
mov edx, 0x529918
mov eax, dword [ebx + 0x3d4]
call fcn.0051684c
push dword [ebp - 0x50]
push 0x529928
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x38]
sbb edx, dword [ebp - 0x34]
push edx
push eax
lea eax, [ebp - 0x54]
call fcn.0051d7bc
push dword [ebp - 0x54]
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.004047a4
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebx + 0x370]
call fcn.004548f0
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetPhysicallyInstalledSystemMemory
push 0
push 0x400
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004055f8
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
lea ecx, [ebp - 0x5c]
mov edx, 0x529934
mov eax, dword [ebx + 0x3d4]
call fcn.0051684c
push dword [ebp - 0x5c]
push 0x529928
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
lea eax, [ebp - 0x60]
call fcn.0051d7bc
push dword [ebp - 0x60]
lea eax, [ebp - 0x58]
mov edx, 3
call fcn.004047a4
mov edx, dword [ebp - 0x58]
mov eax, dword [ebx + 0x36c]
call fcn.004548f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x529908
lea eax, [ebp - 0x60]
mov edx, 6
call fcn.00404438
ret

Function at 0x401000
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x40
push 0x1000
push 0xe7000
push 0
call sub.kernel32.dll_GetCurrentThread
call sub.kernel32.dll_VirtualAlloc
call fcn.004ab662
ret
Function at 0x4c84fd
Capabilities:
Encode data using xor

Disassembly:
cmp eax, edx
call fcn.0049dc07
add byte [eax], al
inc ebx
insb byte es:[edi], dx
outsd dx, dword [esi]
jae 0x4c8570
push ebx
jb 0x4c8585
imul esp, dword [ebx + 0x65], 0x646e6148
insb byte es:[edi], dx
popal
outsb dx, byte [esi]
insb byte es:[edi], dx
add al, ch
int3
test edx, 0xa6e7c0b2
in eax, dx
mov byte [edi + 0x77409d66], cl
mov ah, 0x41
popfd
inc eax
ja 0x4c8513
inc ecx
inc esi
push es
adc dword [ebx], eax
xor al, 0x1d
cmpsb byte [esi], byte es:[edi]
mov ah, byte [esi]
lahf
xor dword [edi + 0x18f55674], ebp
jnp 0x4c8557
mov bl, 0xba
pop eax
xor al, 0x80
mov al, 0x20
rol dh, 0xc3
je 0x4c855b
sbb dword [esi - 0x14], ecx
scasd eax, dword es:[edi]
into
aas
and byte [edx], 0xa6
sal dword [ebp - 0x2e], cl
mov ss, word [ebp + 0x64]
cmc
and ah, byte [esi - 0x712d8a2d]
push ebp
cmc
push edi
mov word [0x1f8871b4], ds
cmpsd dword [esi], dword es:[edi]
dec ebp
lds ebx, [ecx + 0x3803bc4e]
movsb byte es:[edi], byte [esi]
insb byte es:[edi], dx
in eax, dx
cdq
sub eax, 0x2dc0b965
or dl, byte [ecx]
push esi
push edx
test al, 0xdb
push ebx
cmpsb byte [esi], byte es:[edi]
xchg ebx, eax
inc eax
wait
das
jns 0x4c8551
add dword [edi + 0x11], ebp
cmpsd dword [esi], dword es:[edi]
add bl, byte [eax - 0x6545ca96]
push ebp
mov esi, 0xa5bad3f
push 0x914f81af
sub dword [ebp - 0x5a], esi
stosd dword es:[edi], eax
xchg ecx, eax
adc byte [edi], bh
push ecx
jp 0x4c860b
mov dword [ebx], ebp
xor si, word [ecx]
in al, dx
je 0x4c862b
lds ebx, [ecx - 0x36783502]
push edx
cdq
sub eax, 0x6290929e
mov ecx, 0x1c4304d8
xor al, 0xdf
arpl word ss:[ecx + 0x38f883bf], cx
mul edi
cmc
in eax, 0x1c
test al, 0x16
lodsd eax, dword [esi]
sub al, 0xf8
cmp eax, 0x2a33847e
or byte [ebp + edi*4 - 0x1bd9805c], bh
xchg byte [ebp + 0x73de5c7c], ah
xor al, 0xa8
pop ebx
movsb byte es:[edi], byte [esi]
jg 0x4c8634
in al, 0x86
movsd dword es:[edi], dword [esi]
jl 0x4c866f
fidiv word [ebx + 0x34]
test al, 0x5b
mov ebp, 0x7b2fd1d1
mov byte [ebp + edi*4 + 0x5b], 0x9d
insd dword es:[edi], dx
sar byte [ebx + 0x7feef8d], cl
adc al, 0x87
in al, dx
in eax, dx
sbb dl, byte [edx]
pop ebx
out 0xd0, al
sbb ecx, esi
xchg esi, eax
or ecx, eax
adc al, 0x1b
push 0xfffffffffffffffa
je 0x4c86be
jg 0x4c8645
pop edx
aad 0xf
dec eax
adc edi, dword [edi + eax*4 + 0x47d8c366]
imul ebx, dword [edi + 0x5faa717a], 0x9c5159c0
insd dword es:[edi], dx
push edx
ja 0x4c8634
jp 0x4c869b
sbb ebp, ebp
and ch, byte [esi - 0x790d3e21]
mov eax, dword [ebp + 0x4b52526b]
out 0xc, eax
cwde
cwde
or byte [eax], al
imul ecx, dword [ebx], 0x44bb92bf
mov bh, 0x2e
movsd dword es:[edi], dword [esi]
inc eax
lodsd eax, dword [esi]
pop ebx
adc byte [esi], dh
push cs
movsd dword es:[edi], dword [esi]
in al, dx
mov edi, dword [edx - 0x9f0cb6a]
or dword [eax - 0x19], ebx
sub al, 0xb
xor dl, byte [ebx]
mov eax, 0xa65304f6
dec edi
lds ebx, [ecx + 0x46b364b8]
inc esi
mov ch, 0x37
cdq
sub eax, 0xcd080d7b
in al, dx
dec ebx
xchg edi, eax
xchg esi, eax
popfd
invalid
test byte [eax + 0x55], bl
push ss
lodsb al, byte [esi]
aaa
invalid
Function at 0x4c8cd2
Capabilities:
Check for software breakpoints

Disassembly:
cmp byte [edi], 0x23
call fcn.004ee97f
rcr bh, cl
shl bl, 5
test bx, sp
mov ebx, eax
test dx, di
cmp byte [edi], 0x23
pushal
pushfd
lea esp, [esp + 0x24]
jne 0x4c95c8
not al
mov ah, bl
cwde
inc ah
xor edx, edx
cmp bh, 0xcc
daa
clc
sar ax, cl
mov eax, edx
sete al
add edi, 1
push edi
and al, dh
cmp edx, esi
mov al, byte [edi]
push dword [esp]
pushfd
test al, al
push ebp
call fcn.004ee67e

Function at 0x51948a
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
pushfd
pushal
inc ecx
lea esp, [esp + 0x24]
cmc
jmp 0x49e759
Function at 0x5bd370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x5bd38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x5e6074
push ecx
mov edi, eax
call fcn.005d1198
mov esi, eax
add esp, 8
test esi, esi
jne 0x5bd3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.005d102e
push esi
call fcn.005d0fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x5c0850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x5c08ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x5eb720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x5c08ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.005d11e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x5c08ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x5eb720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x5c092a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.005d2082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x5c0957
mov word [eax], si
add eax, 2
push eax
call fcn.005d2030
add esp, 4
jmp 0x5c0959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x5c08ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x5c08b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x5c0ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x5c1080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x5c10c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x5e6458
push ecx
call fcn.005d11e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.005d11e1
add esp, 0x10
jmp 0x5c10d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.005d120b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.005d0dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.005c1050
mov eax, dword [0x5eb728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x5c113b
push esi
call fcn.005c0fb0
add esp, 4
mov dword [0x5eb728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x5c114c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.005c0ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x5c4440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x5c44b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x5c448e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x5c4471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x5c447e
add edx, ecx
cmp ebx, edx
jb 0x5c448a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x5c4467
xor ecx, ecx
jmp 0x5c44a2
test eax, eax
jne 0x5c4492
xor ecx, ecx
jmp 0x5c44a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.005c43c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x5c48f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5c4921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x5c4946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x5c496e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x5c4993
push ecx
push esi
call fcn.005c44c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret