joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5cf930
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
test eax, eax
je 0x5cf9ee
cmp dword [esi + 0x48c], 0
jne 0x5cf956
push eax
call fcn.005ced20
test al, al
je 0x5cf9ee
cmp byte [esi + 0x344], 0
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esp + 0xc], 1
je 0x5cf987
mov ecx, dword [esi + 0x48c]
push 4
lea eax, [esp + 0x10]
push eax
push 4
push 0
push str.bPHSBU
push ecx
call edi
cmp byte [esi + 0x345], 0
je 0x5cf9a9
mov eax, dword [esi + 0x48c]
push 4
lea edx, [esp + 0x10]
push edx
push 4
push 0
push str.bFLSBU
push eax
call edi
cmp byte [esi + 0x192], 0
je 0x5cf9cb
mov edx, dword [esi + 0x48c]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0
push str.bRPCHK
push edx
call edi
cmp byte [esi + 0x18d], 0
je 0x5cf9ed
mov ecx, dword [esi + 0x48c]
push 4
lea eax, [esp + 0x10]
push eax
push 4
push 0
push str.bMUIMPV
push ecx
call edi
pop edi
pop esi
ret 4

Function at 0x5cfab0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
test eax, eax
je 0x5cfaf3
cmp dword [esi + 0x48c], 0
jne 0x5cface
push eax
call fcn.005ced20
test al, al
je 0x5cfaf3
mov ecx, dword [esi + 0x48c]
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push str.bSaved
push ecx
mov dword [esp + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 4
Function at 0x5cfdd0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
test eax, eax
je 0x5cfe1a
cmp dword [esi + 0x48c], 0
jne 0x5cfdee
push eax
call fcn.005ced20
test al, al
je 0x5cfe1a
mov edx, dword [esi + 0x48c]
xor eax, eax
cmp byte [esi + 0x18f], al
push 4
lea ecx, [esp + 0xc]
push ecx
push 4
sete al
push 0
push str.bMPDDNUAS
push edx
mov dword [esp + 0x20], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 4
Function at 0x5d13e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x666f90
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x758898]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x14], edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [edi + 0x20]
cmp eax, ebx
je 0x5d1425
push eax
call fcn.005f4432
add esp, 4
mov esi, dword [ebp + 8]
cmp esi, ebx
jne 0x5d1445
mov dword [edi + 0x20], ebx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5d1450
sub eax, edx
je 0x5d142c
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5d1460
sub eax, edx
inc eax
push eax
call fcn.005f4427
add esp, 4
mov dword [edi + 0x20], eax
cmp eax, ebx
jne 0x5d149f
push str.URL::set_LastModified__:_Not_enough_memory__n
mov ecx, edi
call fcn.005cb540
mov eax, 0x753b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
mov edx, eax
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x5d14a3
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x5d142f
cmp dword [edi + 0x48c], ebx
jne 0x5d14e5
push eax
mov ecx, edi
call fcn.005ced20
test al, al
jne 0x5d14e5
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [edi + 0x20]
mov eax, edx
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5d14f0
sub eax, esi
inc eax
push eax
push edx
push 1
push ebx
push str.LastModified
mov eax, dword [edi + 0x48c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5d1c20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x667030
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
cmp dword [esi + 0x48c], 0
jne 0x5d1c8b
mov eax, dword [ebp + 0x214]
push eax
call fcn.005ced20
test al, al
jne 0x5d1c8b
mov eax, 1
jmp 0x5d1d78
mov ebx, 0x208
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp]
push edx
push 0
push 0
push str.LocalPath
mov eax, dword [esi + 0x48c]
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call edi
test eax, eax
jne 0x5d1c81
lea ecx, [ebp]
push ecx
call fcn.00622f13
add esp, 4
test eax, eax
jne 0x5d1c81
lea edx, [ebp]
push edx
mov ecx, esi
call fcn.005cb450
test eax, eax
jne 0x5d1c81
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp]
push ecx
push 0
push 0
push 0x687b8c
mov edx, dword [esi + 0x48c]
push edx
call edi
test eax, eax
jne 0x5d1c81
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.005cdf50
test eax, eax
jne 0x5d1c81
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp]
push edx
push eax
push eax
push str.LogFileName
mov eax, dword [esi + 0x48c]
push eax
call edi
test eax, eax
jne 0x5d1c81
lea edx, [ebp]
mov eax, dword [esi + 0x484]
add eax, 4
lea esp, [esp]
movzx ecx, word [edx]
mov word [eax], cx
add edx, 2
add eax, 2
test cx, cx
jne 0x5d1d40
xor eax, eax
jmp 0x5d1d78
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0062016f
add ebp, 0x20c
mov esp, ebp
pop ebp
ret 4
Function at 0x5d1da0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x667068
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x14]
call fcn.00402500
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x218]
push eax
mov ecx, dword [ebp + 0x214]
push ecx
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ld_
lea edx, [ebp - 0x14]
push edx
call fcn.00402f70
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
push ecx
push ebx
push 0xf003f
push ebx
push 0x67997c
push ebx
mov edx, dword [ebp - 0x14]
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x5d1e68
mov edi, 0x208
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp]
push ecx
push ebx
push ebx
push str.LocalPath
mov edx, dword [ebp - 0x18]
push edx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call esi
test eax, eax
je 0x5d1e7d
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402570
mov eax, 1
jmp 0x5d1f4d
lea ecx, [ebp]
push ecx
call fcn.00622f13
add esp, 4
test eax, eax
je 0x5d1e93
mov edx, dword [ebp - 0x18]
push edx
jmp 0x5d1e62
lea eax, [ebp]
push eax
mov ecx, dword [ebp - 0x20]
call fcn.005cb450
test eax, eax
je 0x5d1ea9
mov ecx, dword [ebp - 0x18]
push ecx
jmp 0x5d1e62
mov dword [ebp - 0x1c], edi
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp]
push eax
push ebx
push ebx
push 0x687b8c
mov ecx, dword [ebp - 0x18]
push ecx
call esi
test eax, eax
jne 0x5d1e8d
lea eax, [ebp]
push eax
mov ecx, dword [ebp - 0x20]
call fcn.005cdf50
test eax, eax
jne 0x5d1ea3
mov dword [ebp - 0x1c], edi
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp]
push eax
push ebx
push ebx
push str.LogFileName
mov ecx, dword [ebp - 0x18]
push ecx
call esi
test eax, eax
jne 0x5d1e8d
lea edx, [ebp]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x484]
add eax, 4
movzx ecx, word [edx]
mov word [eax], cx
add edx, 2
add eax, 2
cmp cx, bx
jne 0x5d1f00
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402570
xor eax, eax
jmp 0x5d1f4d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0062016f
add ebp, 0x20c
mov esp, ebp
pop ebp
ret 8
Function at 0x5d1f80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x48c]
test eax, eax
je 0x5d1fea
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push edx
push 0
push 0
push 0x6b5cec
push eax
mov dword [esp + 0x1c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5d1fea
lea eax, [esp + 8]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5d1fd0
sub eax, edx
push eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esi + 0x19c]
call fcn.00402960
mov ecx, dword [esp + 0x210]
pop esi
xor ecx, esp
call fcn.0062016f
add esp, 0x210
ret
Function at 0x5d35e0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x667198
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, dword [esp + 0x30]
test edi, edi
je 0x5d36f0
push edi
lea ecx, [esp + 0x34]
call fcn.004030b0
mov dword [esp + 0x28], 0
lea eax, [esp + 0x30]
push eax
push edi
call fcn.0047cf50
add esp, 8
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0xf003f
push 0
push 0x67997c
push 0
push str.SoftwareDownloadManager_sites_sf
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x5d36df
mov ebx, dword [esp + 0x38]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test ebx, ebx
je 0x5d36b6
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5d3674
sub eax, edx
mov edx, eax
mov eax, dword [esp + 0x30]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5d3686
sub eax, esi
cmp edx, eax
jne 0x5d3699
or dword [esp + 0x34], ebx
jmp 0x5d36b6
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
push 4
lea ecx, [esp + 0x1c]
push ecx
push 4
push 0
push edi
or eax, ebx
push edx
mov dword [esp + 0x30], eax
call ebp
cmp dword [esp + 0x34], 0
je 0x5d36d4
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
push 4
lea eax, [esp + 0x38]
push eax
push 4
push 0
push ecx
push edx
call ebp
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.00402570
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x5d3710
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x667198
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
xor ebp, ebp
cmp esi, ebp
je 0x5d378d
push esi
lea ecx, [esp + 0x34]
call fcn.004030b0
mov dword [esp + 0x28], ebp
lea eax, [esp + 0x30]
push eax
push esi
call fcn.0047cf50
add esp, 8
lea ecx, [esp + 0x1c]
push ecx
push 0xf003f
push ebp
push str.SoftwareDownloadManager_sites_sf
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x5d37a3
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.00402570
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
push ebp
push ebp
push esi
push ecx
mov dword [esp + 0x2c], 4
call ebx
test eax, eax
jne 0x5d37d9
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x5d3836
mov edx, dword [esp + 0x34]
mov dword [edx], eax
jmp 0x5d3831
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5d37e0
mov edi, dword [esp + 0x30]
sub eax, edx
mov edx, eax
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5d37f4
sub eax, esi
cmp edx, eax
je 0x5d3836
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push edi
push edx
mov dword [esp + 0x2c], 4
call ebx
test eax, eax
jne 0x5d3836
mov eax, dword [esp + 0x18]
test eax, eax
je 0x5d3836
mov ecx, dword [esp + 0x34]
mov dword [ecx], eax
mov ebp, 1
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.00402570
mov eax, ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x5d4510
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x667230
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x758898]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 0
mov bl, byte [ebp + 0xc]
mov byte [esi + 0x184], bl
mov al, byte [ebp + 0x10]
mov byte [esi + 0x183], al
mov eax, dword [ebp + 8]
test eax, eax
je 0x5d4735
cmp dword [esi + 0x48c], 0
jne 0x5d4578
push eax
call fcn.005ced20
test al, al
je 0x5d4735
xor ecx, ecx
test bl, bl
setne cl
mov dword [ebp + 0xc], ecx
push 4
lea edx, [ebp + 0xc]
push edx
push 4
push 0
push str.bGICompl
mov eax, dword [esi + 0x48c]
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call edi
xor ecx, ecx
cmp byte [ebp + 0x10], cl
setne cl
mov dword [ebp + 0xc], ecx
push 4
lea edx, [ebp + 0xc]
push edx
push 4
push 0
push str.bRetAfFR
mov eax, dword [esi + 0x48c]
push eax
call edi
lea ecx, [esi + 0x44]
cmp byte [ecx], 0
je 0x5d45f4
mov eax, ecx
lea ebx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x5d45d0
sub eax, ebx
inc eax
push eax
push ecx
mov ebx, 1
push ebx
push 0
push str.lastTryDate
mov ecx, dword [esi + 0x48c]
push ecx
call edi
jmp 0x5d45f9
mov ebx, 1
cmp byte [esi + 0x184], 0
je 0x5d472e
cmp byte [esi + 0x359], 0
je 0x5d463e
mov eax, dword [esi + 0x38c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5d4618
sub eax, edx
je 0x5d463e
mov dword [ebp + 0xc], ebx
push 4
lea edx, [ebp + 0xc]
push edx
push 4
push 0
push str.bUseCstmHdrs
mov eax, dword [esi + 0x48c]
push eax
call edi
cmp byte [esi + 0x184], 0
je 0x5d472e
cmp byte [esi + 0x35a], 0
je 0x5d466f
mov dword [ebp + 0xc], ebx
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0
push str.bFGzHdr
mov edx, dword [esi + 0x48c]
push edx
call edi
cmp byte [esi + 0x184], 0
je 0x5d472e
cmp byte [esi + 0x35c], 0
je 0x5d46a0
mov dword [ebp + 0xc], ebx
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push str.bIPV4SsCn
mov ecx, dword [esi + 0x48c]
push ecx
call edi
cmp byte [esi + 0x184], 0
je 0x5d472e
mov bl, byte [esi + 0x359]
test bl, bl
je 0x5d46cb
mov eax, dword [esi + 0x38c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5d46c0
sub eax, edx
jne 0x5d46dd
cmp byte [esi + 0x35a], 0
jne 0x5d46dd
cmp byte [esi + 0x35c], 0
je 0x5d472e
xor edx, edx
mov dword [ebp - 0x14], edx
cmp byte [esi + 0x35a], dl
je 0x5d46f2
mov edx, 1
mov dword [ebp - 0x14], edx
test bl, bl
je 0x5d4711
mov eax, dword [esi + 0x38c]
lea edi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5d4700
sub eax, edi
je 0x5d4711
or edx, 2
mov dword [ebp - 0x14], edx
cmp byte [esi + 0x35c], 0
je 0x5d4720
or edx, 4
mov dword [ebp - 0x14], edx
push 0
push edx
mov edx, dword [esi]
push edx
call fcn.005d35e0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5d50c0
Capabilities:
Encode data using base64

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
lea ecx, [edi + 3]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
lea edx, [edx + edi + 4]
push edx
push esi
call fcn.0057a6f0
add esp, 8
test eax, eax
jne 0x5d50ed
pop edi
pop esi
ret 0xc
push ebp
push esi
call fcn.005547f0
add esp, 4
xor ebp, ebp
mov ecx, eax
test edi, edi
jbe 0x5d5185
lea edx, [edi - 1]
mov eax, 0xaaaaaaab
mul edx
mov eax, dword [esp + 0x10]
mov esi, edx
shr esi, 1
inc esi
lea ebp, [esi + esi*2]
push ebx
lea ebx, [ebx]
movzx edx, byte [eax]
shr edx, 2
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
movzx edx, byte [eax]
movzx ebx, byte [eax + 1]
and edx, 3
shl edx, 4
shr ebx, 4
or edx, ebx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], dl
movzx edx, byte [eax + 1]
movzx ebx, byte [eax + 2]
inc ecx
and edx, 0xf
add edx, edx
add edx, edx
shr ebx, 6
or edx, ebx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], dl
movzx edx, byte [eax + 2]
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], dl
inc ecx
add eax, 3
sub esi, 1
jne 0x5d5120
pop ebx
lea eax, [edi + 1]
cmp ebp, eax
jne 0x5d519e
pop ebp
pop edi
mov byte [ecx - 1], 0x3d
mov byte [ecx], 0
mov eax, 1
pop esi
ret 0xc
add edi, 2
cmp ebp, edi
jne 0x5d51ad
mov al, 0x3d
mov byte [ecx - 1], al
mov byte [ecx - 2], al
pop ebp
pop edi
mov byte [ecx], 0
mov eax, 1
pop esi
ret 0xc
Function at 0x5d6100
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x298]
sub esp, 0x298
push 0xffffffffffffffff
push 0x6672e8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp + 0x294], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x2a0]
xor esi, esi
mov dword [ebp - 4], esi
push esi
push esi
push 3
push esi
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5d6190
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x294]
xor ecx, ebp
call fcn.0062016f
add ebp, 0x298
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x14], esi
push 0x81
push esi
lea eax, [ebp + 0x210]
push eax
call fcn.00620850
add esp, 0xc
mov dword [ebp - 0x18], esi
push esi
lea ecx, [ebp - 0x18]
push ecx
push 0x80
lea edx, [ebp + 0x210]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
je 0x5d6288
cmp dword [ebp - 0x18], esi
je 0x5d6288
lea eax, [ebp + 0x210]
push eax
call fcn.00626f21
push str._HTML
lea ecx, [ebp + 0x210]
push ecx
call fcn.00621810
add esp, 0xc
test eax, eax
jne 0x5d6210
push str.__HTML
lea edx, [ebp + 0x210]
push edx
call fcn.00621810
add esp, 8
test eax, eax
je 0x5d6218
mov esi, 1
mov dword [ebp - 0x14], esi
push str._BODY
lea eax, [ebp + 0x210]
push eax
call fcn.00621810
add esp, 8
test eax, eax
jne 0x5d6248
push str.__BODY
lea ecx, [ebp + 0x210]
push ecx
call fcn.00621810
add esp, 8
test eax, eax
je 0x5d6250
mov esi, 1
mov dword [ebp - 0x14], esi
push str._HEAD
lea edx, [ebp + 0x210]
push edx
call fcn.00621810
add esp, 8
test eax, eax
jne 0x5d6280
push str.__HEAD
lea eax, [ebp + 0x210]
push eax
call fcn.00621810
add esp, 8
test eax, eax
je 0x5d6288
mov esi, 1
mov dword [ebp - 0x14], esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x5d6169

Function at 0x5d6c50
Capabilities:
Get file size

Disassembly:
push esi
push edi
lea eax, [esp + 0xc]
mov edi, ecx
mov ecx, dword [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5d6c8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5d6c8b
push eax
push str.GetFileSize___error_in_CFormatParsing::GetFSize____errcode___ld._r_n
mov ecx, edi
call fcn.005d8910
pop edi
xor eax, eax
xor edx, edx
pop esi
ret 4
mov edx, dword [esp + 0xc]
push 1
push 0
push 0
push edx
call fcn.00624ab0
xor ecx, ecx
add eax, esi
pop edi
adc edx, ecx
pop esi
ret 4
Function at 0x5d7470
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x2720]
mov eax, 0x2720
call fcn.006218a0
push 0xffffffffffffffff
push 0x667578
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp + 0x271c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x1c], esi
xor edi, edi
mov dword [ebp - 4], edi
wait
lea ecx, [ebp - 0x68]
call fcn.005d8c40
mov byte [ebp - 4], 1
mov ebx, 0x2710
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
push edi
push ebx
mov ecx, esi
call fcn.005d69d0
cmp eax, 2
je 0x5d7506
cmp dword [esi + 0x14], edi
jne 0x5d74fa
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.005d8c50
lea eax, [edi + 3]
wait
jmp 0x5d7666
mov ebx, dword [esi + 0x18]
mov dword [ebp - 0x18], ebx
mov edi, dword [esi + 0x1c]
mov dword [ebp - 0x14], edi
push 0
lea eax, [ebp - 0x20]
push eax
push ebx
lea ecx, [ebp + 0xc]
push ecx
mov edx, dword [esi + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5d7620
cmp dword [ebp - 0x20], 0
je 0x5d7620
push edi
push ebx
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x68]
call fcn.005d8da0
cmp eax, 0xa
jne 0x5d7633
lea ebx, [esi + 8]
mov ecx, dword [ebp - 0x50]
push ecx
sub esp, 8
fld qword [ebp - 0x30]
fstp qword [esp]
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [0x75ef18]
push ecx
push ebx
call fcn.00402f70
add esp, 0x1c
xor edi, edi
mov dword [ebp], edi
mov dword [ebp + 8], edi
xor edx, edx
mov word [ebp + 4], dx
mov byte [ebp - 4], 2
mov eax, dword [ebx]
mov ecx, dword [0x75dd28]
push ecx
push eax
lea ecx, [ebp]
call fcn.00401980
lea ecx, [ebp - 0x14]
call fcn.00402500
mov byte [ebp - 4], 3
mov eax, dword [ebp]
cmp eax, edi
jne 0x5d75a6
lea eax, [ebp + 4]
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push eax
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jle 0x5d75f7
push edi
lea ecx, [ebp - 0x14]
call fcn.00402850
mov ecx, dword [ebp]
test ecx, ecx
jne 0x5d75d2
lea ecx, [ebp + 4]
push 0
push 0
push edi
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov byte [esi + 0xc], 1
lea edx, [ebp - 0x14]
push edx
mov ecx, ebx
call fcn.00405930
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00402570
mov byte [ebp - 4], 1
lea ecx, [ebp]
call fcn.00401210
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.005d8c50
xor eax, eax
wait
jmp 0x5d7666
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile___error__ld_in_CFormatParsing::PreCheckMpg___r_n
mov ecx, esi
call fcn.005d8910
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.005d8c50
mov eax, 1
wait
jmp 0x5d7666
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x271c]
xor ecx, ebp
call fcn.0062016f
add ebp, 0x2720
mov esp, ebp
pop ebp
ret
Function at 0x5d7690
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x10], eax
cmp eax, 0xffffffff
jne 0x5d76d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x5d76cd
push eax
push str.CreateFile___error__ld_in_CFormatParsing::Initialize___r_n
mov ecx, esi
call fcn.005d8910
xor al, al
pop esi
ret 8
push eax
mov ecx, esi
call fcn.005d6c50
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
mov dword [esi + 0x14], ecx
mov al, 1
pop esi
ret 8