joyce8/EMBER2024-capa huggingface dataset:
Function at 0x557e2c
Capabilities:
Timestomp file

Disassembly:
push ebx
push esi
add esp, 0xffffffe8
mov esi, edx
mov ebx, eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 8]
push eax
push ebx
call sub.kernel32.dll_GetFileTime
test eax, eax
je 0x557e63
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 8]
push eax
push esi
call sub.kernel32.dll_SetFileTime
add esp, 0x18
pop esi
pop ebx
ret

Function at 0x557e6c
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x557fc8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x569090]
cmp byte [eax], 0
je 0x557f75
mov eax, esi
call fcn.00405304
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x557ebf
push ebx
mov eax, edi
call fcn.00405304
push eax
call sub.kernel32.dll_SetFileAttributesW
mov dl, 1
mov eax, 0x557fdc
call fcn.00557d34
test al, al
je 0x557fad
mov ebx, 0xf
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push ebx
mov eax, esi
call fcn.00405304
push eax
call sub.advapi32.dll_GetFileSecurityW
mov eax, dword [ebp - 8]
call fcn.00402a34
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x557f60
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push ebx
mov eax, esi
call fcn.00405304
push eax
call sub.advapi32.dll_GetFileSecurityW
test eax, eax
jne 0x557f2f
call fcn.00411c80
mov eax, dword [ebp - 4]
push eax
push ebx
mov eax, edi
call fcn.00405304
push eax
call sub.advapi32.dll_SetFileSecurityW
test eax, eax
jne 0x557f4a
call fcn.00411c80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x557f67
mov eax, dword [ebp - 4]
call fcn.00402a54
ret
lea eax, [ebp - 0xc]
mov edx, esi
call fcn.00404c28
mov eax, dword [ebp - 0xc]
call fcn.00404e60
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x557fad
push ebx
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.00404c28
mov eax, dword [ebp - 0x10]
call fcn.00404e60
push eax
call sub.kernel32.dll_SetFileAttributesA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x557fcf
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404998
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

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

Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..reloc
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x4c3d00eb
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x432060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0x27304a36
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x43b64d
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x43b3c1
or ecx, edx
add edx, edx
or edx, edx
call fcn.0043b685
mov edx, 0xfb5d22d9
xor dword [esi], eax
push edx
pop ecx
dec ecx
add ecx, ecx
add esi, 1
and edx, edx
add edx, edx
or ecx, ecx
cmp esi, ebx
jne fcn.0043b64d
or edx, ecx
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x432072
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x58dd74f6
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x432060
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x31335550
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x98a68c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x98a6b3
call fcn.0092cbf8
mov dword [eax], esi
call fcn.0092cbe5
push 0x16
pop esi
mov dword [eax], esi
call fcn.0092d83a
mov eax, esi
jmp 0x98a708
test dword [ebp + 0xc], 0xfffffff9
jne 0x98a699
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x98a6e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0092cc0b
pop ecx
call fcn.0092cbe5
mov eax, dword [eax]
jmp 0x98a708
test al, 0x10
jne 0x98a706
test al, 1
je 0x98a706
test byte [ebp + 0xc], 2
je 0x98a706
call fcn.0092cbf8
mov dword [eax], 5
call fcn.0092cbe5
mov dword [eax], 0xd
jmp 0x98a6d7
xor eax, eax
pop esi
pop ebp
ret

Function at 0xc86854
Capabilities:
Encode data using xor

Disassembly:
jmp 0xc8685e
pushal
call 0xc86864
pop ebp
sub ebp, 0x10
sub ebp, 0x886854
jmp 0xc8687a
mov eax, 0x886854
add eax, ebp
add eax, 0x4c
mov ecx, 0x5a3
mov edx, 0x40fbf2ca
xor byte [eax], dl
inc eax
dec ecx
jne 0xc86891
jmp 0xc868a4
inc ecx
pop es
inc ecx
inc ebx
test dl, 0xca
retf 0xb4b
Function at 0x1261430
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7d6000]
push edi
jmp 0x126144a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1261451
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1261440
mov eax, 1
add ebx, ebx
jne 0x1261463
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1261474
jne 0x1261493
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1261493
dec eax
add ebx, ebx
jne 0x1261480
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1261458
add ebx, ebx
jne 0x126148f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x12614e5
xor ecx, ecx
sub eax, 3
jb 0x12614ab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x126151a
sar eax, 1
mov ebp, eax
jmp 0x12614b6
add ebx, ebx
jne 0x12614b6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1261484
inc ecx
add ebx, ebx
jne 0x12614c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1261484
add ebx, ebx
jne 0x12614d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x12614c6
jne 0x12614e2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x12614c6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1261504
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x12614f6
jmp 0x1261446
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1261504
add edi, ecx
jmp 0x1261446
pop esi
mov edi, esi
mov ecx, 0x21901
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1261522
cmp byte [edi], 0x9d
jne 0x1261522
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 0x1261527
lea edi, [esi + 0xe5f000]
mov eax, dword [edi]
or eax, eax
je 0x1261596
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xea2830]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xea286c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1261554
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xea2874]
or eax, eax
je 0x1261590
mov dword [ebx], eax
add ebx, 4
jmp 0x1261571
call dword [esi + 0xea2870]
mov ebp, dword [esi + 0xea2878]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x12615ca
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x404ba0
Capabilities:
Get number of processors

Disassembly:
test ecx, ecx
je 0x404ba8
mov eax, dword [edx]
mov dword [ecx], eax
ret
Function at 0x454d80
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x615d98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push esi
push esi
mov ebx, ecx
push esi
mov dword [ebp - 0x10], ebx
call fcn.005ebbd0
mov al, byte [ebp + 0x33]
mov cl, byte [ebp + 0x33]
mov byte [ebx + 0x44], al
mov dword [ebx + 0x48], esi
mov dword [ebx + 0x4c], esi
mov dword [ebx + 0x50], esi
lea edi, [ebx + 0x44]
xor eax, eax
lea esi, [ebx + 0x54]
mov byte [esi], cl
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x38], 2
mov dword [ebx + 0x3c], 3
mov byte [ebx + 0x40], al
mov edx, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x38]
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 0x34], edx
mov edx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
mov ecx, ebx
mov dword [ebx], 0x627844
call fcn.005ebd00
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x2c]
mov dl, byte [ebp + 0x30]
mov dword [ebx + 0x30], eax
lea eax, [ebp + 0x34]
push eax
mov dword [ebx + 0x34], ecx
mov dword [ebx + 0x38], 2
mov dword [ebx + 0x3c], 3
mov byte [ebx + 0x40], dl
mov ecx, dword [edi + 8]
push 1
push ecx
mov ecx, edi
call fcn.004f9e20
mov ecx, dword [ebp + 0x1c]
call fcn.0054cc60
mov edi, dword [ebp + 0x20]
or ecx, 0xffffffff
mov dword [ebx + 0x2c], eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
mov ecx, esi
mov dword [ebp + 0x30], edi
call fcn.004049a0
cmp eax, edi
jae 0x454e09
call fcn.005f804b
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x454e2e
mov al, byte [ecx - 1]
test al, al
je 0x454e2e
cmp al, 0xff
je 0x454e2e
test edi, edi
jne 0x454e52
dec al
mov byte [ecx - 1], al
push edi
mov ecx, esi
call fcn.00404140
jmp 0x454e7e
test edi, edi
jne 0x454e3d
push 1
mov ecx, esi
call fcn.00404140
jmp 0x454e7e
mov eax, dword [esi + 0xc]
cmp eax, 0x1f
ja 0x454e49
cmp eax, edi
jae 0x454e5a
push 1
mov ecx, esi
call fcn.00404140
push edi
mov ecx, esi
call fcn.004049b0
mov esi, dword [ebp + 0x20]
mov ecx, edi
mov edi, dword [ebx + 0x58]
mov edx, ecx
shr ecx, 2
lea eax, [ebx + 0x54]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x30]
push ecx
mov ecx, eax
call fcn.00404860
mov ecx, dword [ebp + 0x24]
call fcn.0054bf20
mov edx, dword [ebp + 0x3c]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [ebx + 0x64], eax
mov dword [ebx + 0x68], edx
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x38
Function at 0x45a900
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6162f1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
xor eax, eax
cmp ecx, eax
mov dword [ebp - 4], eax
je 0x45a99f
mov esi, dword [edx]
mov dword [ecx], esi
lea ebx, [ecx + 4]
mov cl, byte [edx + 4]
lea esi, [edx + 4]
mov byte [ebx], cl
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov ecx, dword [esi + 8]
mov edx, dword [0x6264b4]
mov edi, ecx
cmp edx, edi
mov dword [ebp - 0x10], edi
jae 0x45a8a0
mov dword [ebp - 0x10], edx
mov edi, edx
cmp ebx, esi
jne 0x45a90e
cmp edi, eax
mov esi, edx
jbe 0x45a8af
call fcn.005f8197
mov ecx, ebx
call fcn.00404ac0
mov eax, dword [ebx + 8]
sub eax, edi
cmp eax, esi
jae 0x45a8c1
mov esi, eax
test esi, esi
jbe 0x45a8f6
mov edx, dword [ebx + 4]
sub eax, esi
lea ecx, [edx + edi]
push eax
lea eax, [ecx + esi]
push eax
push ecx
call fcn.00604b00
mov edi, dword [ebx + 8]
add esp, 0xc
push 0
sub edi, esi
push edi
mov ecx, ebx
call fcn.00404880
test al, al
je 0x45a8f6
push edi
mov ecx, ebx
call fcn.00404860
mov ecx, ebx
call fcn.00404ac0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
cmp edi, eax
jbe 0x45a965
cmp edi, ecx
jne 0x45a965
mov ecx, dword [esi + 4]
cmp ecx, eax
jne 0x45a922
mov ecx, 0x6264b0
cmp byte [ecx - 1], 0xfe
jae 0x45a965
push 1
mov ecx, ebx
call fcn.00404140
mov eax, dword [esi + 4]
test eax, eax
jne 0x45a93d
mov eax, 0x6264b0
mov dword [ebx + 4], eax
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov edx, dword [esi + 0xc]
mov dword [ebx + 0xc], edx
mov cl, byte [eax - 1]
pop edi
inc cl
pop esi
mov byte [eax - 1], cl
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 1
push edi
mov ecx, ebx
call fcn.00404880
test al, al
je 0x45a99f
mov esi, dword [esi + 4]
test esi, esi
jne 0x45a97f
mov esi, 0x6264b0
mov ecx, edi
mov edi, dword [ebx + 4]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], eax
mov byte [ecx + eax], 0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x468a90
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x616a18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0x628cc4
mov esi, dword [edi + 0x18]
cmp esi, dword [edi + 0x1c]
mov dword [ebp - 4], 0
je 0x468adb
mov ecx, dword [esi]
test ecx, ecx
je 0x468ad1
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [edi + 0x1c]
add esi, 4
cmp esi, eax
jne 0x468ac5
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.00598c20
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x47a4d0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0
push 0
push 0
push 1
mov ebx, ecx
push 1
call fcn.004136c0
mov al, byte [ebp + 0x10]
test al, al
jne 0x47a502
mov esi, dword [ebp + 8]
movsx ecx, word [esi]
cmp dword [ebp + 0x14], ecx
jne 0x47a3cd
movsx eax, word [esi + 2]
cmp dword [ebp + 0x18], eax
je 0x47a502
movsx edx, word [esi + 4]
push edx
movsx edx, word [esi + 2]
call fcn.004eb530
test ah, 1
je 0x47a502
test dword [esi + 0x105], 0x40000
jne 0x47a502
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x47a405
cmp dword [edi + 0x1e], 8
je 0x47a505
cmp dword [esi + 0x112], 0xffffffff
jne 0x47a41f
push 0x48
mov ecx, esi
call fcn.004cf820
test eax, eax
je 0x47a4e7
mov al, byte [ebp + 0x1c]
test al, al
jne 0x47a4e7
mov ax, word [ebp - 0x10]
xor ecx, ecx
mov cx, ax
xor cx, word [esi]
xor edx, edx
mov dx, word [esi + 2]
xor dx, word [ebp - 0xe]
and ecx, 0x3ff
xor ax, cx
mov ecx, dword [ebp - 0xe]
mov word [ebp - 0x10], ax
xor eax, eax
mov al, byte [esi + 4]
and edx, 0x3ff
xor edx, ecx
and edx, 0xffffc3ff
xor ecx, ecx
mov cx, word [esi + 0x35]
and eax, 0xf
shl eax, 0xa
or edx, eax
mov ax, word [ebp - 8]
xor cx, ax
mov word [ebp - 0xe], dx
xor edx, edx
mov dx, word [esi + 0x39]
xor dx, word [ebp - 6]
and ecx, 0x3ff
xor ax, cx
mov ecx, dword [ebp - 6]
mov word [ebp - 8], ax
xor eax, eax
mov al, byte [esi + 0x3d]
and edx, 0x3ff
xor edx, ecx
and edx, 0xffffc3ff
and eax, 0xf
shl eax, 0xa
or edx, eax
mov eax, dword [ebp - 0x10]
mov word [ebp - 6], dx
mov ecx, dword [ebp - 8]
xor ecx, eax
and ecx, 0x3ff
test cx, cx
jne 0x47a4f2
mov edx, dword [ebp - 0xe]
mov eax, dword [ebp - 6]
xor eax, edx
mov edx, eax
and edx, 0x3ff
test dx, dx
jne 0x47a4f2
and eax, 0x3c00
test ax, ax
jne 0x47a4f2
mov eax, dword [ebp + 0x20]
push eax
mov ecx, ebx
call fcn.0047bc60
movsx ecx, byte [esi + 0x22]
cmp ecx, dword [0x6812a0]
je 0x47a505
xor edi, edi
jmp 0x47a505
mov edi, dword [ebp + 0xc]
mov ecx, dword [0x6812a8]
call fcn.004b2df0
test al, al
je 0x47a51e
mov ecx, 1
call fcn.004ebd40
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4b3bb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6181c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov al, byte [ebp + 0xb]
push ebx
push esi
push edi
mov ebx, ecx
push 0
lea ecx, [ebp - 0x28]
lea esi, [ebx + 0x4c13d]
mov byte [ebp - 0x28], al
call fcn.00404140
or ecx, 0xffffffff
xor eax, eax
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
push 1
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], edi
call fcn.00404880
test al, al
je 0x4b3b64
mov ecx, edi
mov edi, dword [ebp - 0x24]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
mov eax, edx
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [ebp - 0x28]
call fcn.00404860
mov edi, dword [ebp + 8]
xor esi, esi
lea edx, [ebp - 0x28]
mov ecx, edi
mov dword [ebp - 4], esi
call fcn.004b3a30
cmp eax, esi
jge 0x4b3ba1
push 1
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00404140
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [edi]
push pe_nt_image_headers32
lea eax, [ebx + 0x4c26a]
push eax
mov ecx, edi
call dword [edx + 8]
cmp eax, 4
jae 0x4b3be0
push 1
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00404140
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 0x4c370]
cmp eax, esi
jne 0x4b3bef
mov dword [ebp - 0x14], esi
jmp 0x4b3c0b
mov ecx, dword [ebx + 0x4c374]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [edi]
push 4
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call dword [edx + 8]
cmp eax, 4
jae 0x4b3c44
push 1
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00404140
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebx + 0x4c370]
cmp esi, dword [ebx + 0x4c374]
je 0x4b3c84
mov edx, esi
mov ecx, edi
call fcn.004b3a30
test eax, eax
jl 0x4b3c9d
mov cl, byte [esi + 0x10]
mov edx, dword [edi]
push 1
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], cl
push eax
mov ecx, edi
call dword [edx + 8]
cmp eax, 1
jb 0x4b3c9d
mov eax, dword [ebx + 0x4c374]
add esi, 0x14
cmp esi, eax
jne 0x4b3c52
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x4b3cf4
mov al, byte [ecx - 1]
test al, al
je 0x4b3cea
cmp al, 0xff
je 0x4b3cea
dec al
mov byte [ecx - 1], al
jmp 0x4b3cf4
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x4b3cd4
mov al, byte [ecx - 1]
test al, al
je 0x4b3cca
cmp al, 0xff
je 0x4b3cca
dec al
pop edi
pop esi
mov byte [ecx - 1], al
pop ebx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
dec ecx
push ecx
call fcn.005f8040
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
dec ecx
push ecx
call fcn.005f8040
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4b5d50
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61863d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [esi + 0x548]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x4b5d5d
lea ecx, [eax - 1]
mov al, byte [ecx]
cmp al, bl
je 0x4b5d54
cmp al, 0xff
je 0x4b5d54
dec al
mov byte [ecx], al
jmp 0x4b5d5d
push ecx
call fcn.005f8040
add esp, 4
mov dword [esi + 0x548], ebx
mov dword [esi + 0x54c], ebx
mov dword [esi + 0x550], ebx
add esi, 0x4d0
push edi
mov dword [ebp - 0x14], esi
mov eax, dword [esi + 0x68]
push eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], eax
call fcn.005f8040
lea edi, [esi + 0x54]
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
add esp, 4
push eax
push ecx
mov ecx, edi
call fcn.00404190
mov eax, dword [edi + 4]
push eax
call fcn.005f8040
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x48]
lea edi, [esi + 0x44]
add esp, 4
push edx
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00486c80
mov eax, dword [edi + 4]
push eax
call fcn.005f8040
add esp, 4
lea ecx, [esi + 0x34]
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov byte [ebp - 4], 1
call fcn.004c5690
push 1
lea ecx, [esi + 0x14]
mov byte [ebp - 4], bl
call fcn.00404140
mov ecx, dword [ebp - 0x10]
lea esi, [ecx + 0xc]
mov dword [ebp - 0x18], esi
push 1
lea ecx, [esi + 0x2d0]
mov dword [ebp - 4], 5
call fcn.00404140
mov eax, dword [esi + 0x2c4]
cmp eax, ebx
pop edi
je 0x4b5e44
lea ecx, [eax - 1]
mov al, byte [ecx]
cmp al, bl
je 0x4b5e3b
cmp al, 0xff
je 0x4b5e3b
dec al
mov byte [ecx], al
jmp 0x4b5e44
push ecx
call fcn.005f8040
add esp, 4
mov dword [esi + 0x2c4], ebx
mov dword [esi + 0x2c8], ebx
mov dword [esi + 0x2cc], ebx
push fcn.004587b0
push 8
push 0x44
lea edx, [esi + 0xa0]
push edx
mov dword [ebp - 4], 6
call fcn.0060522c
mov eax, dword [esi + 0x24]
push eax
mov dword [ebp - 0x18], eax
call fcn.005f8040
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret