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

Disassembly:
sub esp, 0xc
lea eax, [esp]
push ebx
push esi
mov esi, ecx
push eax
call fcn.0056c17c
lea ecx, [esp + 0xc]
push ecx
call fcn.0056d71b
add esp, 8
lea edx, [eax + 0x14]
add eax, 4
lea ebx, [esi + 0x44]
push edx
push eax
push str._.15s__.4s
push ebx
call fcn.0056b4da
mov eax, dword [esi + 0xa8]
add esp, 0x10
test eax, eax
je 0x5460e4
push eax
call fcn.00582ef5
add esp, 4
mov dword [esi + 0xa8], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x546138
mov ecx, dword [esi + 0x3a0]
test ecx, ecx
jne 0x546102
push eax
mov ecx, esi
call fcn.0054b0e0
test al, al
je 0x546138
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push ebx
push 1
push eax
mov eax, dword [esi + 0x3a0]
push str.lastTryDate
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esi + 0x3a0]
push str.lastResult
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x546140
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push ebx
push esi
mov esi, ecx
push eax
call fcn.0056c17c
lea ecx, [esp + 0xc]
push ecx
call fcn.0056d71b
add esp, 8
lea edx, [eax + 0x14]
add eax, 4
lea ebx, [esi + 0x74]
push edx
push eax
push str._.15s__.4s
push ebx
call fcn.0056b4da
mov eax, dword [esp + 0x28]
add esp, 0x10
test eax, eax
je 0x5461b9
mov ecx, dword [esi + 0x3a0]
test ecx, ecx
jne 0x546195
push eax
mov ecx, esi
call fcn.0054b0e0
test al, al
je 0x5461b9
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push ebx
push 1
push eax
mov eax, dword [esi + 0x3a0]
push str.dateAdded
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x5461d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ad870
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x83c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
test ebx, ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
je 0x546284
mov eax, dword [esi + 0xa8]
cmp ebx, eax
je 0x546284
test eax, eax
je 0x54621e
push eax
call fcn.00582ef5
add esp, 4
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00582ecc
mov edx, eax
add esp, 4
test edx, edx
mov dword [esi + 0xa8], edx
jne 0x546262
push str.URL::set_lastResult__:_Not_enough_memory__n
mov ecx, esi
call fcn.00546070
mov eax, 0x753b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x5463ba
push eax
lea edx, [ebp - 0x48]
push str.SoftwareDownloadManager_ld
push edx
call fcn.0056b4da
mov eax, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
je 0x5462f3
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x48]
push eax
push 0xf003f
push 0
push ecx
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x54631a
lea edx, [ebp - 0x18]
lea eax, [ebp + 0xc]
push edx
push eax
push 0
push 0xf003f
push 0
push 0x660ff8
lea ecx, [ebp - 0x48]
push 0
push ecx
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x5463ba
test ebx, ebx
je 0x546391
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x7ff
jbe 0x54636c
push 0x7ff
lea edx, [ebp - 0x848]
push ebx
push edx
call fcn.0056b010
mov ecx, dword [ebp + 0xc]
add esp, 0xc
lea eax, [ebp - 0x848]
mov byte [ebp - 0x49], 0
push 0x801
push eax
push 1
push 0
push str.lastResult
push ecx
jmp 0x54638b
mov edx, dword [esi + 0xa8]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [ebp + 0xc]
push 1
push eax
push str.lastResult
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0x10]
push 4
push ecx
push 4
push 0
push str.dwnlrs
push edx
mov dword [ebp + 0x10], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x547d80
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi + 0x3a0]
test eax, eax
je 0x547dfe
mov eax, dword [esi + 0x34]
lea ecx, [esp + 4]
push eax
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
mov word [esp + 0xc], 0
call fcn.00402e20
mov eax, dword [esp + 4]
test eax, eax
jne 0x547dc0
lea eax, [esp + 8]
push eax
call fcn.00545790
mov eax, dword [esp + 8]
add esp, 4
test eax, eax
jne 0x547dd5
lea eax, [esp + 8]
mov ecx, dword [esp + 0xc]
lea edx, [ecx + ecx + 2]
push edx
push eax
mov eax, dword [esi + 0x3a0]
push 0
push 0
push str.EncLNFSW
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 4]
call fcn.00401070
pop esi
add esp, 0xc
ret
Function at 0x548d80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ad9f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x20]
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
je 0x548dbb
push eax
call fcn.00582ef5
add esp, 4
mov esi, dword [ebp + 8]
cmp esi, edi
jne 0x548dda
mov dword [ebx + 0x20], edi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x548dfe
mov dword [ebx + 0x20], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00582ecc
mov edx, eax
add esp, 4
test edx, edx
mov dword [ebx + 0x20], edx
jne 0x548e3f
push str.URL::set_LastModified__:_Not_enough_memory__n
mov ecx, ebx
call fcn.00546070
mov eax, 0x753b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0xc]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jne 0x548e78
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebx + 0x3a0]
test ecx, ecx
jne 0x548ea6
push eax
mov ecx, ebx
call fcn.0054b0e0
test al, al
jne 0x548ea6
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebx + 0x20]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [ebx + 0x3a0]
push edx
push 1
push eax
push str.LastModified
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5493b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ada20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x3a0]
mov dword [ebp - 0x10], esp
test eax, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
jne 0x54940f
mov eax, dword [ebp + 8]
push eax
call fcn.0054b0e0
test al, al
jne 0x54940f
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 0x3a0]
lea ecx, [ebp + 8]
lea edx, [ebp - 0x118]
push ecx
push edx
push 0
push 0
push str.LocalPath
push eax
mov dword [ebp + 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x549453
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x118]
push ecx
call fcn.0056d78e
add esp, 4
test eax, eax
je 0x54947e
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x54948e
push eax
call fcn.00582ef5
add esp, 4
lea edi, [ebp - 0x118]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00582ecc
mov edx, eax
add esp, 4
test edx, edx
mov dword [ebx + 0x2c], edx
jne 0x5494d3
push str.URL::set_localPath__:_Not_enough_memory__n
mov ecx, ebx
call fcn.00546070
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edi, [ebp - 0x118]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x118]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x3a0]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp + 8]
mov edi, 0x104
push ecx
push edx
push 0
push 0
push str.LocalFileName
push eax
mov dword [ebp + 8], edi
call esi
test eax, eax
je 0x54953d
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x118]
push ecx
mov ecx, ebx
call fcn.00549a40
test eax, eax
je 0x549567
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebx + 0x3a0]
lea edx, [ebp + 8]
lea eax, [ebp - 0x118]
push edx
push eax
push 0
push 0
push str.LogFileName
push ecx
mov dword [ebp + 8], edi
call esi
test eax, eax
je 0x5495a3
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebx + 0x398]
lea edi, [ebp - 0x118]
or ecx, 0xffffffff
xor eax, eax
add edx, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x549c90
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x662630]
sub esp, 0x20c
test eax, eax
jne 0x549d4e
mov eax, dword [0x66262c]
test eax, eax
jne 0x549d26
mov edx, dword [0x6614e8]
lea eax, [esp]
lea ecx, [esp + 4]
push eax
push ecx
push 0
push 0
push str.ExePath
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x549d1d
lea eax, [esp + 4]
push 0x5c
push eax
call fcn.0056aa30
add esp, 8
test eax, eax
je 0x549d1d
lea ecx, [esp + 4]
lea edx, [esp + 0x108]
push ecx
push str._sidmftype.dll
push edx
mov byte [eax], 0
call fcn.0056b4da
add esp, 0xc
lea eax, [esp + 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x66262c], eax
jmp 0x549d22
mov eax, dword [0x66262c]
test eax, eax
je 0x549d4e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IDMFileType
push eax
call esi
mov ecx, dword [0x66262c]
push str.IDMExtensionForMimeType
push ecx
mov dword [0x662630], eax
call esi
mov dword [0x662634], eax
pop esi
add esp, 0x20c
ret
Function at 0x54b210
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov dword [esi + 0x2a0], eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x54b269
mov ecx, dword [esi + 0x3a0]
test ecx, ecx
jne 0x54b23b
push eax
mov ecx, esi
call fcn.0054b0e0
test al, al
je 0x54b269
mov edx, dword [esi + 0x2a0]
mov eax, dword [esi + 0x3a0]
xor ecx, ecx
push 4
test edx, edx
lea edx, [esp + 0xc]
push edx
push 4
push 0
push str.needER
setne cl
push eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 8
Function at 0x54b540
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x198
push ebx
push esi
lea eax, [esp + 8]
push edi
mov ebx, ecx
push eax
mov dword [esp + 0x10], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x54b6dd
mov eax, dword [esp + 0x1c]
cmp eax, 2
jne 0x54b57d
lea edx, [esp + 0xa0]
mov edi, str.security.dll
jmp 0x54b592
cmp eax, 1
jne 0x54b6dd
lea edx, [esp + 0xa0]
mov edi, str.secur32.dll
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebx + 0x178]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jne 0x54b5cd
lea ecx, [esp + 0xa0]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebx + 0x178], eax
mov eax, dword [ebx + 0x178]
test eax, eax
je 0x54b6dd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FreeCredentialsHandle
push eax
call esi
mov edx, dword [ebx + 0x178]
push str.QuerySecurityPackageInfoA
push edx
mov dword [ebx + 0x17c], eax
call esi
mov dword [ebx + 0x184], eax
mov eax, dword [ebx + 0x178]
push str.AcquireCredentialsHandleA
push eax
call esi
mov ecx, dword [ebx + 0x178]
push str.FreeContextBuffer
push ecx
mov dword [ebx + 0x180], eax
call esi
mov edx, dword [ebx + 0x178]
push str.InitializeSecurityContextA
push edx
mov dword [ebx + 0x188], eax
call esi
mov dword [ebx + 0x18c], eax
mov eax, dword [ebx + 0x178]
push str.CompleteAuthToken
push eax
call esi
mov ecx, dword [ebx + 0x178]
push str.EnumerateSecurityPackagesA
push ecx
mov dword [ebx + 0x190], eax
call esi
mov edx, dword [ebx + 0x178]
push str.DeleteSecurityContext
push edx
mov dword [ebx + 0x194], eax
call esi
mov dword [ebx + 0x198], eax
mov eax, dword [ebx + 0x17c]
test eax, eax
je 0x54b6c6
mov eax, dword [ebx + 0x184]
test eax, eax
je 0x54b6c6
mov eax, dword [ebx + 0x180]
test eax, eax
je 0x54b6c6
mov eax, dword [ebx + 0x188]
test eax, eax
je 0x54b6c6
mov eax, dword [ebx + 0x18c]
test eax, eax
je 0x54b6c6
mov eax, dword [ebx + 0x194]
test eax, eax
je 0x54b6c6
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x198
ret
mov eax, dword [ebx + 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebx + 0x178], 0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x198
ret
Function at 0x54c250
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
mov eax, 0xaaaaaaab
push esi
lea ecx, [ebp + 3]
mov esi, dword [esp + 0x14]
mul ecx
shr edx, 1
lea edx, [edx + ebp + 4]
push edx
push esi
call fcn.005131d0
add esp, 8
test eax, eax
jne 0x54c27d
pop esi
pop ebp
ret 0xc
push esi
call fcn.005131c0
mov ecx, eax
add esp, 4
xor eax, eax
test ebp, ebp
jbe 0x54c308
lea edx, [ebp + 2]
mov eax, 0xaaaaaaab
mul edx
mov esi, dword [esp + 0xc]
push ebx
push edi
mov edi, edx
shr edi, 1
lea eax, [edi + edi*2]
xor edx, edx
xor ebx, ebx
mov dl, byte [esi]
add esi, 3
shr edx, 2
inc ecx
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Unknown_error_in_HTTPConnection_constructor._n]
mov byte [ecx - 1], dl
mov dl, byte [esi - 3]
mov bl, byte [esi - 2]
and edx, 3
shl edx, 4
shr ebx, 4
or edx, ebx
xor ebx, ebx
inc ecx
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Unknown_error_in_HTTPConnection_constructor._n]
mov byte [ecx - 1], dl
mov dl, byte [esi - 2]
mov bl, byte [esi - 1]
and edx, 0xf
shl edx, 2
shr ebx, 6
or edx, ebx
inc ecx
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Unknown_error_in_HTTPConnection_constructor._n]
mov byte [ecx - 1], dl
mov dl, byte [esi - 1]
and edx, 0x3f
inc ecx
dec edi
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Unknown_error_in_HTTPConnection_constructor._n]
mov byte [ecx - 1], dl
jne 0x54c2a5
pop edi
pop ebx
lea edx, [ebp + 1]
cmp eax, edx
jne 0x54c320
mov byte [ecx - 1], 0x3d
pop esi
mov byte [ecx], 0
mov eax, 1
pop ebp
ret 0xc
add ebp, 2
cmp eax, ebp
jne 0x54c32f
mov al, 0x3d
mov byte [ecx - 1], al
mov byte [ecx - 2], al
pop esi
mov byte [ecx], 0
mov eax, 1
pop ebp
ret 0xc

Function at 0x54c9d0
Capabilities:
Get hostname

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x10]
push 0x652c20
push edi
mov dword [ebx], edi
call fcn.0056c0e0
mov esi, dword [esp + 0x1c]
add esp, 8
test eax, eax
mov dword [esi], eax
jne 0x54ca29
mov al, byte [0x662644]
test al, al
jne 0x54ca16
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x10
push eax
push 0x662644
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov dword [ebx], 0x662644
mov dword [esi], edi
pop edi
pop esi
mov eax, 1
pop ebx
ret 0xc
mov byte [eax], 0
mov edx, dword [esi]
inc edx
mov dword [esi], edx
mov esi, edx
mov al, byte [esi]
test al, al
je 0x54ca4c
cmp al, 0x5c
je 0x54ca4c
cmp al, 0x2f
je 0x54ca4c
pop edi
pop esi
mov eax, 1
pop ebx
ret 0xc
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x54cfe0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5add00
push eax
mov dword fs:[0], esp
sub esp, 0x8c
mov eax, dword [esp + 0x9c]
push ebx
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x54d02d
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x54d110
push edi
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push esi
push ecx
lea edx, [esp + 0x18]
push 0x80
push edx
push ebx
mov dword [esp + 0x20], esi
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
pop edi
je 0x54d107
cmp dword [esp + 8], esi
je 0x54d107
lea eax, [esp + 0xc]
push eax
call fcn.0056d814
lea ecx, [esp + 0x10]
push str._HTML
push ecx
call fcn.0056ab30
add esp, 0xc
test eax, eax
jne 0x54d0a0
lea edx, [esp + 0xc]
push str.__HTML
push edx
call fcn.0056ab30
add esp, 8
test eax, eax
je 0x54d0a5
mov esi, 1
lea eax, [esp + 0xc]
push str._BODY
push eax
call fcn.0056ab30
add esp, 8
test eax, eax
jne 0x54d0d1
lea ecx, [esp + 0xc]
push str.__BODY
push ecx
call fcn.0056ab30
add esp, 8
test eax, eax
je 0x54d0d6
mov esi, 1
lea edx, [esp + 0xc]
push str._HEAD
push edx
call fcn.0056ab30
add esp, 8
test eax, eax
jne 0x54d102
lea eax, [esp + 0xc]
push str.__HEAD
push eax
call fcn.0056ab30
add esp, 8
test eax, eax
je 0x54d107
mov esi, 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [esp + 0x94]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x98
ret 4

Function at 0x54d610
Capabilities:
Get file size

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5addd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2760
call fcn.0056ae30
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], ebx
call fcn.0054f570
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
test eax, eax
mov byte [ebp - 4], 1
mov edi, 0x2710
jg 0x54e701
jl 0x54e6d4
cmp ecx, edi
jae 0x54e701
mov edx, dword [esi + 0x14]
test edx, edx
jne 0x54e6fd
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.0054f5a0
mov eax, 3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, ecx
mov ebx, eax
mov edx, dword [esi + 0x10]
lea eax, [ebp - 0x18]
push 0
push eax
lea ecx, [ebp - 0x2770]
push edi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x54e77f
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x54e77f
push ebx
lea eax, [ebp - 0x2770]
push edi
push eax
lea ecx, [ebp - 0x60]
call fcn.0054f5b0
cmp eax, 0xa
jne 0x54e792
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x54]
push edx
mov edx, dword [ebp - 0x58]
push eax
mov eax, dword [0x662018]
push ecx
push edx
add esi, 8
push eax
push esi
call fcn.0057f8fb
add esp, 0x1c
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.0054f5a0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile___error__ld_in_CFormatParsing::PreCheckMpg___r_n
mov ecx, esi
call fcn.0054ec10
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.0054f5a0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x54e7d0
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0
push 3
push 0
push 3
push closesocket
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x10], eax
jne 0x54e813
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x54e80d
push eax
push str.CreateFile___error__ld_in_CFormatParsing::Initialize___r_n
mov ecx, esi
call fcn.0054ec10
xor al, al
pop esi
ret 8
push eax
mov ecx, esi
call fcn.0054d610
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