joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4141d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x516ca0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
mov eax, dword [0x577690]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov eax, 0x100
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x58], ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], eax
mov byte [esp + 0x44], bl
mov byte [esp + 0x48], 0x20
mov dword [esp + 0x4c], 4
lea eax, [esp + 0x28]
mov byte [esp + 0x58], 1
call fcn.00407b70
cmp dword [esi + 0x1c], 0x10
jb 0x414268
mov eax, dword [esi + 8]
jmp 0x41426b
lea eax, [esi + 8]
push eax
mov eax, 0x568924
lea ecx, [esp + 0x2c]
call fcn.004080d0
add esp, 4
cmp dword [esi + 0x38], 0x10
jb 0x414288
mov eax, dword [esi + 0x24]
jmp 0x41428b
lea eax, [esi + 0x24]
push eax
mov eax, str.valid_from
lea ecx, [esp + 0x2c]
call fcn.004080d0
add esp, 4
cmp dword [esi + 0x54], 0x10
jb 0x4142a8
mov esi, dword [esi + 0x40]
jmp 0x4142ab
add esi, 0x40
push esi
mov eax, str.valid_to
lea ecx, [esp + 0x2c]
call fcn.004080d0
add esp, 4
lea eax, [esp + 0x28]
call fcn.00407bd0
mov edx, dword [esp + 0x1c]
inc edx
cmp edx, dword [esp + 0x20]
jb 0x4142dc
push 1
lea eax, [esp + 0x14]
call fcn.00408440
mov ecx, dword [esp + 0x1c]
mov eax, ecx
inc ecx
mov dword [esp + 0x1c], ecx
mov byte [eax], bl
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x18]
cmp eax, 1
jae 0x41430a
push 0x71
push str.f:projects_svniriservereswprojectlicenseframework_trunk_srccppmodules3rdparty_rapidjsoninternal_stack.h
push str.GetSize_____count__sizeof_T_
call fcn.004faa8c
add esp, 0xc
mov esi, dword [esp + 0x18]
dec dword [esp + 0x1c]
mov eax, esi
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
mov byte [edi + 4], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x414324
sub eax, edx
push eax
push esi
mov ecx, edi
call fcn.00403d20
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004f9186
mov edx, dword [esp + 0x34]
add esp, 4
push edx
call fcn.004f9a4f
mov eax, dword [esp + 0x1c]
add esp, 4
push eax
call fcn.004f9186
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
call fcn.004f9a4f
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x50
ret
Function at 0x415fa0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x517a88
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x577690]
xor eax, esp
mov dword [esp + 0x20], eax
push ebp
push esi
push edi
mov eax, dword [0x577690]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov eax, dword [ebx + 4]
mov ebp, dword [esp + 0x44]
test eax, eax
jne 0x416072
lea eax, [ebx + 8]
push eax
mov edi, str._lic.config.bin
lea esi, [esp + 0x18]
call fcn.00405f80
add esp, 4
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x18]
mov edi, 0x10
cmp dword [esp + 0x2c], edi
jae 0x416010
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x416035
cmp dword [esp + 0x2c], edi
jb 0x41602e
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004f9a4f
add esp, 4
mov eax, 0x1702
jmp 0x416072
push 0xffffffffffffffff
push 0
lea edx, [ebp + 4]
push edx
lea ecx, [ebx + 0x44]
call fcn.004032e0
push 0xffffffffffffffff
push 0
add ebp, 0x20
push ebp
lea ecx, [ebx + 0x60]
call fcn.004032e0
push ebx
call fcn.00416280
mov esi, eax
cmp dword [esp + 0x2c], edi
jb 0x416070
mov eax, dword [esp + 0x18]
push eax
call fcn.004f9a4f
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004f8e7f
add esp, 0x30
ret 4
Function at 0x4160a0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x517310
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x577690]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebp
push esi
push edi
mov eax, dword [0x577690]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x84]
mov al, 0x60
mov byte [esp + 0x5f], al
mov byte [esp + 0x6b], al
mov dl, 0x99
lea eax, [esp + 0x30]
xor edi, edi
push eax
mov dword [esp + 0x14], edi
mov byte [esp + 0x50], 0xb0
mov byte [esp + 0x51], 0xa8
mov byte [esp + 0x52], 0xfb
mov byte [esp + 0x53], 0xce
mov byte [esp + 0x54], 0x5a
mov byte [esp + 0x55], 0xf8
mov byte [esp + 0x56], 0x20
mov byte [esp + 0x57], 0xcb
mov byte [esp + 0x58], 0xec
mov byte [esp + 0x59], 0x4a
mov byte [esp + 0x5a], 0xc4
mov byte [esp + 0x5b], 0x18
mov byte [esp + 0x5c], 0x91
mov byte [esp + 0x5d], dl
mov byte [esp + 0x5e], 0x74
mov byte [esp + 0x5f], 0x85
mov byte [esp + 0x60], 0x9d
mov byte [esp + 0x61], 0x96
mov byte [esp + 0x62], 0x6b
mov byte [esp + 0x64], 0xd0
mov byte [esp + 0x65], 0x12
mov byte [esp + 0x66], 0x2b
mov byte [esp + 0x67], 0x8b
mov byte [esp + 0x68], 0x91
mov byte [esp + 0x69], 0x1f
mov byte [esp + 0x6a], 0x79
mov byte [esp + 0x6b], 0x46
mov byte [esp + 0x6c], 0x23
mov byte [esp + 0x6d], dl
mov byte [esp + 0x6e], 0x33
call fcn.00416700
mov dword [esp + 0x7c], edi
xor eax, eax
mov edi, edi
xor byte [esp + eax + 0x4c], 0x87
inc eax
cmp eax, 0x20
jl 0x416190
push edi
push 0x20
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], edi
mov byte [esp + 0x20], 0
call fcn.004041c0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov esi, 0x10
cmp eax, esi
jae 0x4161cd
lea ecx, [esp + 0x18]
push 0x20
lea edx, [esp + 0x50]
push edx
push eax
push ecx
call fcn.004f9a5a
mov eax, dword [esp + 0x28]
add esp, 0x10
mov dword [esp + 0x28], 0x20
cmp dword [esp + 0x2c], esi
jae 0x4161f4
lea eax, [esp + 0x18]
mov byte [eax + 0x20], 0
mov byte [esp + 0x7c], 1
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], esi
jae 0x41620b
lea eax, [esp + 0x34]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x48]
push eax
push ebp
call fcn.0040ac10
add esp, 0xc
cmp dword [esp + 0x2c], esi
jb 0x416231
mov edx, dword [esp + 0x18]
push edx
call fcn.004f9a4f
add esp, 4
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], edi
mov byte [esp + 0x18], 0
cmp dword [esp + 0x48], esi
jb 0x416255
mov eax, dword [esp + 0x34]
push eax
call fcn.004f9a4f
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.004f8e7f
add esp, 0x70
ret 4
Function at 0x416280
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x517070
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x577690]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x577690]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x64]
cmp dword [ebp + 0x20], 0x10
lea esi, [ebp + 8]
jb 0x4162c4
mov eax, dword [esi + 4]
jmp 0x4162c7
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4162d7
test al, 0x10
jne 0x4162e1
mov eax, 0x1701
jmp 0x41637f
push esi
mov edi, str._lic.config.bin
lea esi, [esp + 0x38]
call fcn.00405f80
add esp, 4
lea eax, [esp + 0x18]
xor ebx, ebx
push eax
mov ecx, ebp
mov dword [esp + 0x60], ebx
call fcn.004160a0
mov byte [esp + 0x5c], 1
mov eax, dword [esp + 0x1c]
mov edi, 0x10
cmp dword [esp + 0x30], edi
jae 0x41631d
lea eax, [esp + 0x1c]
mov esi, dword [esp + 0x38]
cmp dword [esp + 0x4c], edi
jae 0x41632b
lea esi, [esp + 0x38]
mov ecx, dword [esp + 0x2c]
push ecx
push eax
push esi
call fcn.00419f20
add esp, 0xc
cmp eax, ebx
jne 0x4163a0
push esi
call fcn.0040b390
add esp, 4
cmp dword [esp + 0x30], edi
jb 0x41635a
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004f9a4f
add esp, 4
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
cmp dword [esp + 0x4c], edi
jb 0x41637d
mov edx, dword [esp + 0x38]
push edx
call fcn.004f9a4f
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.004f8e7f
add esp, 0x4c
ret 4
cmp dword [esp + 0x30], edi
jb 0x4163b3
mov edx, dword [esp + 0x1c]
push edx
call fcn.004f9a4f
add esp, 4
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
cmp dword [esp + 0x4c], edi
jb 0x4163d6
mov eax, dword [esp + 0x38]
push eax
call fcn.004f9a4f
add esp, 4
mov eax, 0x1709
jmp 0x41637f
Function at 0x4178a0
Capabilities:
Hash data using sha224
Hash data using sha256

Disassembly:
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 0x68], ecx
test ecx, ecx
jne 0x4178ef
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
xor eax, eax
ret
mov dword [eax + 8], 0xc1059ed8
mov dword [eax + 0xc], 0x367cd507
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x14], 0xf70e5939
mov dword [eax + 0x18], 0xffc00b31
mov dword [eax + 0x1c], 0x68581511
mov dword [eax + 0x20], 0x64f98fa7
mov dword [eax + 0x24], 0xbefa4fa4
xor eax, eax
ret
Function at 0x4186c0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
sub esp, 0x800
push ebx
push ebp
xor ecx, ecx
push esi
lea eax, [ecx + 1]
push edi
nop
mov edx, eax
and dl, 0x80
movsx edx, dl
neg edx
sbb edx, edx
and edx, 0x1b
lea esi, [eax + eax]
xor edx, esi
xor edx, eax
mov dword [esp + ecx*4 + 0x410], eax
mov dword [esp + eax*4 + 0x10], ecx
and edx, 0xff
inc ecx
cmp ecx, 0x100
mov eax, edx
jl 0x4186d0
mov eax, 1
mov ecx, 0x57c5a0
lea esp, [esp]
mov edx, eax
and dl, 0x80
movsx edx, dl
neg edx
sbb edx, edx
mov dword [ecx], eax
and edx, 0x1b
add eax, eax
xor edx, eax
and edx, 0xff
add ecx, 4
cmp ecx, 0x57c5c8
mov eax, edx
jl 0x418710
mov byte [0x57bca0], 0x63
mov byte [0x57de2b], 0
mov ebx, 1
jmp 0x418750
mov ecx, dword [esp + ebx*4 + 0x10]
add ecx, ecx
add ecx, ecx
lea edx, [esp + 0x80c]
sub edx, ecx
mov eax, dword [edx]
mov ecx, eax
sar ecx, 7
lea edx, [eax + eax]
or ecx, edx
and ecx, 0xff
xor eax, ecx
mov edx, ecx
sar edx, 7
add ecx, ecx
or edx, ecx
and edx, 0xff
xor eax, edx
mov ecx, edx
add edx, edx
sar ecx, 7
or ecx, edx
and ecx, 0xff
xor eax, ecx
mov edx, ecx
sar edx, 7
add ecx, ecx
or edx, ecx
xor edx, 0x63
and edx, 0xff
xor eax, edx
mov byte [ebx + 0x57bca0], al
mov byte [eax + 0x57ddc8], bl
inc ebx
cmp ebx, 0x100
jl 0x418750
xor ecx, ecx
movzx esi, byte [ecx + 0x57bca0]
mov edx, esi
and dl, 0x80
movsx edx, dl
neg edx
sbb edx, edx
and edx, 0x1b
lea eax, [esi + esi]
xor edx, eax
and edx, 0xff
mov eax, edx
xor eax, esi
shl eax, 8
xor eax, esi
shl eax, 8
xor eax, esi
shl eax, 8
xor eax, edx
mov dword [ecx*4 + 0x57d9c8], eax
rol eax, 8
mov dword [ecx*4 + 0x57d5c8], eax
rol eax, 8
mov dword [ecx*4 + 0x57d1c8], eax
rol eax, 8
mov dword [ecx*4 + 0x57cdc8], eax
movzx eax, byte [ecx + 0x57ddc8]
test eax, eax
je 0x418878
mov esi, dword [esp + eax*4 + 0x10]
mov edx, dword [esp + 0x48]
lea eax, [esi + edx]
cdq
mov edi, 0xff
idiv edi
mov eax, dword [esp + 0x34]
add eax, esi
mov ebp, dword [esp + edx*4 + 0x410]
cdq
idiv edi
mov ebx, dword [esp + edx*4 + 0x410]
mov edx, dword [esp + 0x44]
lea eax, [esi + edx]
cdq
idiv edi
mov eax, dword [esp + 0x3c]
add eax, esi
mov esi, 0xff
mov edi, dword [esp + edx*4 + 0x410]
cdq
idiv esi
mov edx, dword [esp + edx*4 + 0x410]
jmp 0x418880
xor ebp, ebp
xor ebx, ebx
xor edi, edi
xor edx, edx
shl edx, 8
xor edx, edi
shl edx, 8
xor edx, ebx
shl edx, 8
xor edx, ebp
mov dword [ecx*4 + 0x57c9c8], edx
rol edx, 8
mov dword [ecx*4 + 0x57c5c8], edx
rol edx, 8
mov dword [ecx*4 + 0x57c1a0], edx
rol edx, 8
mov dword [ecx*4 + 0x57bda0], edx
inc ecx
cmp ecx, 0x100
jl 0x4187c2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x800
ret
Function at 0x418e50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
push ebx
push esi
push edi
push 0x118
mov edi, eax
lea eax, [esp + 0x14]
push 0
push eax
call fcn.004fc930
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ecx
lea esi, [edi + 8]
lea ecx, [esp + 0x20]
mov dword [edi + 4], esi
call fcn.004188d0
add esp, 0x10
mov dword [esp + 0xc], eax
test eax, eax
jne 0x418f76
mov ecx, dword [esp + 0x10]
mov dword [edi], ecx
shl ecx, 4
add ecx, dword [esp + 0x14]
add esi, 4
mov edx, dword [ecx]
mov dword [esi - 4], edx
mov edx, dword [ecx + 4]
add ecx, 4
mov dword [esi], edx
mov edx, dword [ecx + 4]
add ecx, 4
add esi, 4
mov dword [esi], edx
mov edx, dword [ecx + 4]
add ecx, 4
add esi, 4
mov dword [esi], edx
mov edx, dword [edi]
dec edx
add esi, 4
sub ecx, 0x1c
test edx, edx
jle 0x418f56
jmp 0x418ee0
mov edi, 4
jmp 0x418ef0
movzx eax, byte [ecx + 3]
movzx eax, byte [eax + 0x57bca0]
movzx ebx, byte [ecx + 2]
movzx ebx, byte [ebx + 0x57bca0]
mov eax, dword [eax*4 + 0x57bda0]
xor eax, dword [ebx*4 + 0x57c1a0]
movzx ebx, byte [ecx + 1]
movzx ebx, byte [ebx + 0x57bca0]
xor eax, dword [ebx*4 + 0x57c5c8]
mov ebx, dword [ecx]
and ebx, 0xff
movzx ebx, byte [ebx + 0x57bca0]
xor eax, dword [ebx*4 + 0x57c9c8]
add esi, 4
mov dword [esi - 4], eax
add ecx, 4
sub edi, 1
jne 0x418ef0
dec edx
sub ecx, 0x20
test edx, edx
jg 0x418ee0
mov eax, dword [esp + 0xc]
mov edx, dword [ecx]
mov dword [esi], edx
mov edx, dword [ecx + 4]
add ecx, 4
add esi, 4
mov dword [esi], edx
mov edx, dword [ecx + 4]
add esi, 4
add ecx, 4
mov dword [esi], edx
mov ecx, dword [ecx + 4]
mov dword [esi + 4], ecx
mov ecx, 0x118
lea edx, [esp + 0x10]
nop
dec ecx
mov byte [edx], 0
inc edx
test ecx, ecx
jne 0x418f80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419b80
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
mov eax, dword [0x577690]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
push ebp
mov ebp, dword [esp + 0x40]
push esi
mov esi, dword [esp + 0x48]
push edi
mov edi, edx
mov dword [esp + 0x14], ecx
test al, 0xf
je 0x419bbe
pop edi
pop esi
mov eax, 0xffffffde
pop ebp
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004f8e7f
add esp, 0x30
ret
cmp dword [esp + 0x40], 0
push ebx
jne 0x419c7e
test eax, eax
jbe 0x419d65
dec eax
mov ebx, ebp
shr eax, 4
sub ebx, esi
inc eax
mov dword [esp + 0x10], eax
nop
mov eax, dword [edi + 4]
mov edx, dword [edi]
mov ecx, dword [edi + 8]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], edx
mov edx, dword [edi + 0xc]
mov dword [esp + 0x34], ecx
push esi
push eax
mov ecx, edi
mov dword [esp + 0x40], edx
call fcn.00419590
mov eax, esi
add esp, 8
lea ecx, [ebp + 2]
mov esi, 4
movzx edx, byte [ebx + eax]
xor byte [eax], dl
movzx edx, byte [ecx - 1]
xor byte [eax + 1], dl
movzx edx, byte [ecx]
xor byte [eax + 2], dl
movzx edx, byte [ecx + 1]
xor byte [eax + 3], dl
add eax, 4
add ecx, 4
sub esi, 1
jne 0x419c15
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [ebp], ecx
mov ecx, dword [esp + 0x34]
mov dword [ebp + 4], edx
mov edx, dword [esp + 0x38]
add edi, 0x10
sub ebx, 0x10
sub dword [esp + 0x10], 1
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], edx
mov esi, eax
jne 0x419be0
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004f8e7f
add esp, 0x30
ret
test eax, eax
jbe 0x419d65
mov ecx, ebp
sub ecx, esi
mov dword [esp + 0x10], ecx
dec eax
mov ecx, ebp
sub ecx, edi
shr eax, 4
inc eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], eax
nop
lea eax, [ebp + 3]
mov edx, esi
sub edx, edi
mov dword [esp + 0x1c], eax
lea ecx, [esi + 1]
mov eax, edi
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], 4
jmp 0x419cc4
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x14]
movzx ebx, byte [eax + ebx]
xor bl, byte [eax]
add eax, 4
mov byte [edx + eax - 4], bl
mov edx, dword [esp + 0x10]
mov dl, byte [ecx + edx]
xor dl, byte [eax - 3]
add ecx, 4
mov byte [ecx - 4], dl
movzx ebx, byte [eax - 2]
mov edx, dword [esp + 0x1c]
xor bl, byte [edx - 1]
add edx, 4
mov byte [ecx - 3], bl
movzx ebx, byte [eax - 1]
xor bl, byte [edx - 4]
mov dword [esp + 0x1c], edx
mov byte [ecx - 2], bl
mov ebx, 1
sub dword [esp + 0x24], ebx
jne 0x419cc0
push esi
cmp dword [esp + 0x48], ebx
jne 0x419d24
mov eax, dword [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00418f90
jmp 0x419d30
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00419590
mov edx, dword [esi]
mov dword [ebp], edx
mov eax, dword [esi + 4]
mov dword [ebp + 4], eax
mov ecx, dword [esi + 8]
mov eax, 0x10
sub dword [esp + 0x1c], eax
sub dword [esp + 0x18], eax
mov dword [ebp + 8], ecx
mov edx, dword [esi + 0xc]
add esp, 8
add edi, eax
add esi, eax
sub dword [esp + 0x20], ebx
mov dword [ebp + 0xc], edx
jne 0x419ca0
mov ecx, dword [esp + 0x3c]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.004f8e7f
add esp, 0x30
ret
Function at 0x419f20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x5678c4
mov eax, dword [ebp + 8]
push eax
call fcn.004fbf07
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x419f80
mov ecx, dword [ebp - 4]
push ecx
lea ecx, [ebp - 0xc]
call fcn.00419ed0
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004f9c39
add esp, 0x10
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
xor eax, eax
cmp edx, dword [ebp + 0x10]
setne al
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0xc]
call fcn.00419ef0
mov eax, dword [ebp - 0x10]
jmp 0x419f85
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x419f90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push edi
mov eax, dword [0x577690]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x5678cc
mov eax, dword [ebp + 8]
push eax
call fcn.004fbf07
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x41a077
mov ecx, dword [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00419ed0
mov dword [ebp - 4], 0
push 2
push 0
mov edx, dword [ebp - 0x10]
push edx
call fcn.004f9d45
add esp, 0xc
mov eax, dword [ebp - 0x10]
push eax
call fcn.004fc378
add esp, 4
mov dword [ebp - 0x18], eax
push 0
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004f9d45
add esp, 0xc
cmp dword [ebp - 0x18], 0
jle 0x41a054
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
call fcn.0040b490
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x18]
push eax
push 1
xor edi, edi
mov eax, dword [ebp + 0xc]
call fcn.00405e60
push eax
call fcn.004fc1be
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
call fcn.0040b490
jmp 0x41a05c
mov edi, dword [ebp + 0xc]
call fcn.00417800
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00419ef0
mov eax, dword [ebp - 0x20]
jmp 0x41a07c
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x41a7a0
Capabilities:
Encode data using base64

Disassembly:
push ecx
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, eax
test edi, edi
jne 0x41a7b9
mov eax, dword [esp + 0x18]
mov dword [eax], edi
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov eax, 0xaaaaaaab
mul edi
shr edx, 1
push ebx
lea ebx, [edx + edx*2]
mov eax, edi
sub eax, ebx
neg eax
sbb eax, eax
neg eax
add eax, edx
cmp eax, 0x3fffffff
jbe 0x41a7ed
mov ecx, dword [esp + 0x1c]
pop ebx
pop edi
mov dword [ecx], 0xffffffff
mov eax, 0xffffffd6
pop esi
pop ecx
ret
lea eax, [eax*4 + 1]
cmp dword [esp + 0x18], eax
jb 0x41a8f9
mov edx, dword [esp + 0x14]
test edx, edx
je 0x41a8f9
push ebp
xor ebp, ebp
mov ecx, edx
test ebx, ebx
jbe 0x41a88f
dec ebx
mov eax, 0xaaaaaaab
mul ebx
shr edx, 1
inc edx
lea eax, [edx + edx*2]
mov dword [esp + 0x10], eax
movzx eax, byte [esi]
movzx ebp, byte [esi + 1]
mov ebx, eax
sar ebx, 2
inc esi
movzx edi, byte [esi + 1]
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], bl
inc esi
shl eax, 4
mov ebx, ebp
sar ebx, 4
add ebx, eax
and ebx, 0x3f
movzx eax, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
inc ecx
mov eax, edi
sar eax, 6
lea eax, [eax + ebp*4]
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
and edi, 0x3f
movzx eax, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc esi
inc ecx
sub edx, 1
jne 0x41a825
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
cmp ebp, edi
jae 0x41a8e4
movzx eax, byte [esi]
inc ebp
cmp ebp, edi
jae 0x41a8a1
movzx esi, byte [esi + 1]
jmp 0x41a8a3
xor esi, esi
mov ebx, eax
sar ebx, 2
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], bl
mov ebx, esi
sar ebx, 4
shl eax, 4
add ebx, eax
and ebx, 0x3f
mov al, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
cmp ebp, edi
jae 0x41a8dc
and esi, 0xf
mov al, byte [esi*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
jmp 0x41a8df
mov byte [ecx], 0x3d
inc ecx
mov byte [ecx], 0x3d
inc ecx
pop ebp
mov eax, ecx
sub eax, edx
mov edx, dword [esp + 0x1c]
pop ebx
mov dword [edx], eax
pop edi
mov byte [ecx], 0
xor eax, eax
pop esi
pop ecx
ret
mov ecx, dword [esp + 0x1c]
pop ebx
pop edi
mov dword [ecx], eax
mov eax, 0xffffffd6
pop esi
pop ecx
ret
Function at 0x41a910
Capabilities:
Encode data using base64

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
xor ebp, ebp
xor edi, edi
xor eax, eax
test edx, edx
jbe 0x41a98b
xor esi, esi
cmp eax, edx
jae 0x41a936
cmp byte [eax + ebx], 0x20
jne 0x41a934
inc eax
inc esi
cmp eax, edx
jb 0x41a928
cmp eax, edx
je 0x41a987
mov ecx, edx
sub ecx, eax
cmp ecx, 2
jb 0x41a94e
cmp byte [eax + ebx], 0xd
jne 0x41a94e
cmp byte [eax + ebx + 1], 0xa
je 0x41a982
mov cl, byte [eax + ebx]
cmp cl, 0xa
je 0x41a982
test esi, esi
jne 0x41a99c
cmp cl, 0x3d
jne 0x41a965
inc ebp
cmp ebp, 2
ja 0x41a99c
cmp cl, 0x7f
ja 0x41a99c
movzx ecx, cl
mov cl, byte [ecx + 0x567798]
cmp cl, 0x7f
je 0x41a99c
cmp cl, 0x40
jae 0x41a981
test ebp, ebp
jne 0x41a99c
inc edi
inc eax
cmp eax, edx
jb 0x41a922
test edi, edi
jne 0x41a9a6
mov edx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword [edx], 0
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 0xffffffd4
pop ebx
ret
mov esi, dword [esp + 0x14]
mov ecx, edi
and ecx, 7
lea ecx, [ecx + ecx*2]
lea edx, [ecx + ecx + 7]
shr edi, 3
mov ecx, edi
shr edx, 3
lea ecx, [ecx + ecx*2]
lea ecx, [edx + ecx*2]
sub ecx, ebp
test esi, esi
je 0x41aa5c
cmp dword [esp + 0x18], ecx
jb 0x41aa5c
xor edx, edx
xor edi, edi
mov ebp, 3
test eax, eax
jbe 0x41aa4b
mov cl, byte [ebx]
cmp cl, 0xd
je 0x41aa41
cmp cl, 0xa
je 0x41aa41
cmp cl, 0x20
je 0x41aa41
movzx ecx, cl
mov cl, byte [ecx + 0x567798]
xor ebx, ebx
cmp cl, 0x40
sete bl
movzx ecx, cl
and ecx, 0x3f
shl edx, 6
inc edi
sub ebp, ebx
or edx, ecx
cmp edi, 4
jne 0x41aa3d
xor edi, edi
test ebp, ebp
jbe 0x41aa28
mov ecx, edx
shr ecx, 0x10
mov byte [esi], cl
inc esi
cmp ebp, 1
jbe 0x41aa35
mov ecx, edx
shr ecx, 8
mov byte [esi], cl
inc esi
cmp ebp, 2
jbe 0x41aa3d
mov byte [esi], dl
inc esi
mov ebx, dword [esp + 0x20]
dec eax
inc ebx
mov dword [esp + 0x20], ebx
test eax, eax
ja 0x41a9e5
sub esi, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
pop edi
mov dword [edx], esi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
mov eax, 0xffffffd6
pop ebx
ret