joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52d040
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58f9a0
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 + 0x330]
mov dword [ebp - 0x10], esp
test eax, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
jne 0x52d09f
mov eax, dword [ebp + 8]
push eax
call fcn.0052e8c0
test al, al
jne 0x52d09f
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 + 0x330]
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 0x52d0e3
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.00550d4e
add esp, 4
test eax, eax
je 0x52d10e
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 0x52d11e
push eax
call fcn.005664c5
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.0056649c
mov edx, eax
add esp, 4
test edx, edx
mov dword [ebx + 0x2c], edx
jne 0x52d163
push str.URL::set_localPath__:_Not_enough_memory__n
mov ecx, ebx
call fcn.0052a8b0
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 + 0x330]
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 0x52d1cd
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.0052d6d0
test eax, eax
je 0x52d1f7
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 + 0x330]
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 0x52d233
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 + 0x328]
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 0x52e9f0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov dword [esi + 0x294], eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x52ea49
mov ecx, dword [esi + 0x330]
test ecx, ecx
jne 0x52ea1b
push eax
mov ecx, esi
call fcn.0052e8c0
test al, al
je 0x52ea49
mov edx, dword [esi + 0x294]
mov eax, dword [esi + 0x330]
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 0x52ed20
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 0x52eebd
mov eax, dword [esp + 0x1c]
cmp eax, 2
jne 0x52ed5d
lea edx, [esp + 0xa0]
mov edi, str.security.dll
jmp 0x52ed72
cmp eax, 1
jne 0x52eebd
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 + 0x16c]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jne 0x52edad
lea ecx, [esp + 0xa0]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebx + 0x16c], eax
mov eax, dword [ebx + 0x16c]
test eax, eax
je 0x52eebd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FreeCredentialsHandle
push eax
call esi
mov edx, dword [ebx + 0x16c]
push str.QuerySecurityPackageInfoA
push edx
mov dword [ebx + 0x170], eax
call esi
mov dword [ebx + 0x178], eax
mov eax, dword [ebx + 0x16c]
push str.AcquireCredentialsHandleA
push eax
call esi
mov ecx, dword [ebx + 0x16c]
push str.FreeContextBuffer
push ecx
mov dword [ebx + 0x174], eax
call esi
mov edx, dword [ebx + 0x16c]
push str.InitializeSecurityContextA
push edx
mov dword [ebx + 0x17c], eax
call esi
mov dword [ebx + 0x180], eax
mov eax, dword [ebx + 0x16c]
push str.CompleteAuthToken
push eax
call esi
mov ecx, dword [ebx + 0x16c]
push str.EnumerateSecurityPackagesA
push ecx
mov dword [ebx + 0x184], eax
call esi
mov edx, dword [ebx + 0x16c]
push str.DeleteSecurityContext
push edx
mov dword [ebx + 0x188], eax
call esi
mov dword [ebx + 0x18c], eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x52eea6
mov eax, dword [ebx + 0x178]
test eax, eax
je 0x52eea6
mov eax, dword [ebx + 0x174]
test eax, eax
je 0x52eea6
mov eax, dword [ebx + 0x17c]
test eax, eax
je 0x52eea6
mov eax, dword [ebx + 0x180]
test eax, eax
je 0x52eea6
mov eax, dword [ebx + 0x188]
test eax, eax
je 0x52eea6
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x198
ret
mov eax, dword [ebx + 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebx + 0x16c], 0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x198
ret
Function at 0x52f790
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.00502760
add esp, 8
test eax, eax
jne 0x52f7bd
pop esi
pop ebp
ret 0xc
push esi
call fcn.00502750
mov ecx, eax
add esp, 4
xor eax, eax
test ebp, ebp
jbe 0x52f848
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 0x52f7e5
pop edi
pop ebx
lea edx, [ebp + 1]
cmp eax, edx
jne 0x52f860
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 0x52f86f
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 0x52fe10
Capabilities:
Get hostname

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x10]
push 0x6306e0
push edi
mov dword [ebx], edi
call fcn.00550800
mov esi, dword [esp + 0x1c]
add esp, 8
test eax, eax
mov dword [esi], eax
jne 0x52fe69
mov al, byte [0x63f58c]
test al, al
jne 0x52fe56
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x10
push eax
push 0x63f58c
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov dword [ebx], 0x63f58c
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 0x52fe8c
cmp al, 0x5c
je 0x52fe8c
cmp al, 0x2f
je 0x52fe8c
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 0x530410
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x58fc20
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 connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x53045d
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x530540
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 0x530537
cmp dword [esp + 8], esi
je 0x530537
lea eax, [esp + 0xc]
push eax
call fcn.00550dd4
lea ecx, [esp + 0x10]
push str._HTML
push ecx
call fcn.0054e0f0
add esp, 0xc
test eax, eax
jne 0x5304d0
lea edx, [esp + 0xc]
push str.__HTML
push edx
call fcn.0054e0f0
add esp, 8
test eax, eax
je 0x5304d5
mov esi, 1
lea eax, [esp + 0xc]
push str._BODY
push eax
call fcn.0054e0f0
add esp, 8
test eax, eax
jne 0x530501
lea ecx, [esp + 0xc]
push str.__BODY
push ecx
call fcn.0054e0f0
add esp, 8
test eax, eax
je 0x530506
mov esi, 1
lea edx, [esp + 0xc]
push str._HEAD
push edx
call fcn.0054e0f0
add esp, 8
test eax, eax
jne 0x530532
lea eax, [esp + 0xc]
push str.__HEAD
push eax
call fcn.0054e0f0
add esp, 8
test eax, eax
je 0x530537
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 0x5309e0
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 0x530a1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x530a1b
push eax
push str.GetFileSize___error_in_CFormatParsing::GetFSize____errcode___ld._r_n
mov ecx, edi
call fcn.00531d50
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.00550840
xor ecx, ecx
add eax, esi
pop edi
pop esi
adc edx, ecx
ret 4
Function at 0x5317c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58fce8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2760
call fcn.0054e3f0
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.00532f90
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
test eax, eax
mov byte [ebp - 4], 1
mov edi, 0x2710
jg 0x531841
jl 0x531814
cmp ecx, edi
jae 0x531841
mov edx, dword [esi + 0x10]
test edx, edx
jne 0x53183d
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.00532fc0
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 + 0xc]
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 0x5318bf
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5318bf
push ebx
lea eax, [ebp - 0x2770]
push edi
push eax
lea ecx, [ebp - 0x60]
call fcn.00532fd0
cmp eax, 0xa
jne 0x5318d2
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 [0x63ef40]
push ecx
push edx
add esi, 8
push eax
push esi
call fcn.00562ecb
add esp, 0x1c
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.00532fc0
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.00531d50
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.00532fc0
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 0x531910
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0
push 3
push 0
push 3
push connect
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
jne 0x531953
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x53194d
push eax
push str.CreateFile___error__ld_in_CFormatParsing::Initialize___r_n
mov ecx, esi
call fcn.00531d50
xor al, al
pop esi
ret 8
push eax
mov ecx, esi
call fcn.005309e0
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
mov dword [esi + 0x10], ecx
mov al, 1
pop esi
ret 8
Function at 0x531b00
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x58fd26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x14]
call fcn.005323b0
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x164], 0
test eax, eax
jg 0x531b6e
jl 0x531b46
cmp dword [esi + 0x18], 0x80
jae 0x531b6e
mov esi, dword [esi + 0x10]
lea ecx, [esp + 0x14]
neg esi
sbb esi, esi
mov dword [esp + 0x164], 0xffffffff
and esi, 0xfffffffe
add esi, 3
call fcn.005324b0
mov eax, esi
jmp 0x531d2a
mov eax, dword [esi + 0xc]
push 2
push 0
push 0xffffffffffffff80
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
or ebp, 0xffffffff
cmp eax, ebp
jne 0x531b9c
call edi
test eax, eax
je 0x531b9c
push eax
push str.SetFilePointer___error__ld_in_CFormatParsing::GetLastMp3___r_n
jmp 0x531d0e
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0xcc]
push 0x80
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x531d06
mov eax, dword [esp + 0x10]
test eax, eax
je 0x531d06
lea ecx, [esp + 0x14]
call fcn.00532dc0
cmp eax, 0x51
jne 0x531d15
lea ecx, [esp + 0x64]
call fcn.00562ede
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx - 8]
test eax, eax
je 0x531c0f
lea edi, [esi + 8]
push 0x63ef54
mov ecx, edi
call fcn.0056a4b2
lea edx, [esp + 0x64]
mov ecx, edi
push edx
call fcn.0056a4b2
lea ecx, [esp + 0x6c]
call fcn.00562ede
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x531c3e
lea edi, [esi + 8]
push 0x63ef50
mov ecx, edi
call fcn.0056a4b2
lea ecx, [esp + 0x6c]
push ecx
mov ecx, edi
call fcn.0056a4b2
lea ecx, [esp + 0x68]
call fcn.00562ede
mov edx, dword [esp + 0x68]
mov eax, dword [edx - 8]
test eax, eax
je 0x531c6d
lea edi, [esi + 8]
push 0x63ef4c
mov ecx, edi
call fcn.0056a4b2
lea eax, [esp + 0x68]
mov ecx, edi
push eax
call fcn.0056a4b2
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x10]
call fcn.0056a16e
lea ecx, [esp + 0xc]
mov byte [esp + 0x164], 1
call fcn.00562ede
mov edx, dword [esp + 0xc]
mov eax, dword [edx - 8]
test eax, eax
je 0x531cb2
lea edi, [esi + 8]
push 0x63115c
mov ecx, edi
call fcn.0056a476
lea eax, [esp + 0xc]
mov ecx, edi
push eax
call fcn.0056a4b2
lea ecx, [esp + 0x70]
call fcn.00562ede
mov ecx, dword [esp + 0x70]
mov eax, dword [ecx - 8]
test eax, eax
je 0x531ce1
add esi, 8
push 0x63ef48
mov ecx, esi
call fcn.0056a4b2
lea edx, [esp + 0x70]
mov ecx, esi
push edx
call fcn.0056a4b2
lea ecx, [esp + 0xc]
mov byte [esp + 0x164], 0
call fcn.0056a100
lea ecx, [esp + 0x14]
mov dword [esp + 0x164], ebp
call fcn.005324b0
xor eax, eax
jmp 0x531d2a
call edi
push eax
push str.ReadFile___error__ld_in_CFormatParsing::GetLastMp3___r_n
mov ecx, esi
call fcn.00531d50
lea ecx, [esp + 0x14]
mov dword [esp + 0x164], ebp
call fcn.005324b0
mov eax, 1
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x15c
ret
Function at 0x536900
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590140
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
mov esi, ecx
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x14]
push edi
mov eax, 1
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x34], edx
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x80]
xor ebx, ebx
push ecx
push edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x30], 4
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], ebx
call dword [eax + 0x2e4]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
cmp edi, ebx
jl 0x536a23
lea eax, [ebp - 0x30]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x1c]
push edx
push eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x3c]
push edx
push eax
mov ecx, dword [esi + 0x80]
push ebx
push ebx
push 0x10
push ebx
push 0xc11c
push ebx
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], ebx
push eax
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x3c], ebx
call dword [ecx + 0x2d4]
mov edi, eax
cmp edi, ebx
jl 0x536a23
mov eax, dword [ebp - 0x28]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x536a23
mov ecx, dword [ebp - 0x30]
cmp ecx, ebx
je 0x536a23
push ebx
push ecx
mov ecx, dword [esi + 0x3084]
push eax
push ecx
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
je 0x536a0e
cmp eax, ebx
je 0x536a0e
push str.Sending_Close_Notify_n
mov ecx, esi
call fcn.004e9e80
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x80]
push eax
call dword [edx + 0x2fc]
jmp 0x536a23
call sub.WSOCK32.dll_WSAGetLastError
mov edi, eax
jmp 0x536a23
mov edx, dword [ebp + 0xc]
mov ecx, dword [esi + 0x80]
push edx
call dword [ecx + 0x2e0]
mov eax, dword [esi + 0x80]
add esi, 0x3184
push esi
call dword [eax + 0x2cc]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x536b90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x536b9b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x536c9e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x5bb130]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x5bb130]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x5bb130]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x5bb130]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x5bb130]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x5bb130]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x5bb130]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x5bb130]
xor eax, edx
inc ecx
dec edi
jne 0x536bb6
pop edi
test esi, esi
je 0x536cc0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x5bb130]
xor eax, edx
inc ecx
dec esi
jne 0x536ca2
pop esi
pop ebx
not eax
ret
Function at 0x53df80
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x53dfc5
mov edx, dword [edi + 4]
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0xc]
push 0
shl edx, 2
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret 4

Function at 0x53dfd0
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x53dff1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
push 0
push 0
push 4
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x53e018
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
xor ebx, ebx
cmp esi, 0xffffffff
jne 0x53e04c
test ebx, ebx
jne 0x53e04c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x53e04c
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
mov ecx, dword [esp + 0x18]
push 1
push 0
push 0
push ecx
call fcn.00550840
add esi, eax
adc ebx, edx
mov edx, esi
or edx, ebx
je 0x53e0cd
push 0
push 4
push ebx
push esi
call fcn.0054fd30
mov ebx, eax
mov eax, dword [edi + 8]
cmp ebx, eax
jl 0x53e0ab
mov eax, dword [edi + 0xc]
push eax
call fcn.005664c5
lea eax, [ebx + 0x2710]
mov dword [edi + 8], eax
lea ecx, [eax*4]
push ecx
call fcn.0056649c
add esp, 8
mov dword [edi + 0xc], eax
test eax, eax
jne 0x53e0ab
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov eax, dword [edi + 0xc]
lea edx, [esp + 0x10]
push 0
push edx
push esi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x53e0ca
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov dword [edi + 4], ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4

Function at 0x53e270
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x53e2b5
mov edx, dword [edi + 4]
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0xc]
push 0
shl edx, 4
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret 4