joyce8/EMBER2024-capa huggingface dataset:
Function at 0x539400
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x53a3a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
cmp word [edi + 4], 0
lea eax, [edi + 4]
je 0x53a436
mov cl, byte [edi + 0x418]
test cl, cl
je 0x53a436
mov ecx, dword [edi + 0x41c]
xor esi, esi
cmp ecx, 0xffffffff
jne 0x53a405
push esi
push esi
push 4
push esi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x53a436
lea eax, [esp + 0xc]
push 2
push eax
push 0
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
mov ebx, esi
jne 0x53a40b
mov ebx, dword [edi + 0x41c]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x53a436
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
add esp, 8
ret 4

Function at 0x53a440
Capabilities:
Delete file
Get file size

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x41c], 0xffffffff
jne 0x53a46f
push 0
push 0
push 4
push 0
push 7
lea eax, [esi + 4]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x41c], eax
mov eax, dword [esi + 0x41c]
cmp eax, 0xffffffff
je 0x53a558
push ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
push eax
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
xor ebx, ebx
cmp edi, 0xffffffff
jne 0x53a4a5
test ebx, ebx
jne 0x53a4a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x53a4c8
mov edx, dword [esp + 0x18]
push 1
push 0
push 0
push edx
call fcn.005c5530
add eax, edi
adc edx, ebx
mov dword [esp + 0x14], edx
js 0x53a4cd
jg 0x53a4c8
cmp eax, 0x4c4b40
jbe 0x53a4cd
mov ebp, 1
test ebp, ebp
pop ebp
mov dword [esp + 0xc], 0
pop ebx
je 0x53a542
mov eax, dword [esi + 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 4
push 0
push 7
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x41c], eax
je 0x53a558
lea ecx, [esp + 8]
push 0
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 0x41c]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push str.Log_h_b_cleared_n
mov ecx, esi
call fcn.0053a3a0
pop edi
pop esi
add esp, 0xc
ret
mov ecx, dword [esi + 0x41c]
lea eax, [esp + 8]
push 2
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop edi
pop esi
add esp, 0xc
ret
Function at 0x53a443
Capabilities:
Delete file
Get file size

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x41c], 0xffffffff
jne 0x53a46f
push 0
push 0
push 4
push 0
push 7
lea eax, [esi + 4]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x41c], eax
mov eax, dword [esi + 0x41c]
cmp eax, 0xffffffff
je 0x53a558
push ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
push eax
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
xor ebx, ebx
cmp edi, 0xffffffff
jne 0x53a4a5
test ebx, ebx
jne 0x53a4a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x53a4c8
mov edx, dword [esp + 0x18]
push 1
push 0
push 0
push edx
call fcn.005c5530
add eax, edi
adc edx, ebx
mov dword [esp + 0x14], edx
js 0x53a4cd
jg 0x53a4c8
cmp eax, 0x4c4b40
jbe 0x53a4cd
mov ebp, 1
test ebp, ebp
pop ebp
mov dword [esp + 0xc], 0
pop ebx
je 0x53a542
mov eax, dword [esi + 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 4
push 0
push 7
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x41c], eax
je 0x53a558
lea ecx, [esp + 8]
push 0
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 0x41c]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push str.Log_h_b_cleared_n
mov ecx, esi
call fcn.0053a3a0
pop edi
pop esi
add esp, 0xc
ret
mov ecx, dword [esi + 0x41c]
lea eax, [esp + 8]
push 2
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop edi
pop esi
add esp, 0xc
ret
Function at 0x53a560
Capabilities:
Delete file
Get file size

Disassembly:
sub esp, 0x18
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x41c], 0xffffffff
je 0x53a674
lea eax, [esp + 0x14]
push eax
call fcn.005c461c
mov eax, dword [esi + 0x420]
add esp, 4
test eax, eax
jne 0x53a59b
mov ecx, dword [esp + 0x14]
pop edi
mov dword [esi + 0x420], ecx
pop esi
add esp, 0x18
ret
lea edx, [eax + 5]
mov eax, dword [esp + 0x14]
cmp edx, eax
jge 0x53a674
mov ecx, dword [esi + 0x41c]
mov dword [esi + 0x420], eax
push ebx
lea eax, [esp + 0xc]
push ebp
push eax
push ecx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
xor ebx, ebx
cmp edi, 0xffffffff
jne 0x53a5dd
test ebx, ebx
jne 0x53a5dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x53a600
mov edx, dword [esp + 0x10]
push 1
push 0
push 0
push edx
call fcn.005c5530
add eax, edi
adc edx, ebx
mov dword [esp + 0x18], edx
js 0x53a605
jg 0x53a600
cmp eax, 0x4c4b40
jbe 0x53a605
mov ebp, 1
test ebp, ebp
pop ebp
mov dword [esp + 0x10], 0
pop ebx
je 0x53a674
mov eax, dword [esi + 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 4
push 0
push 7
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x41c], eax
je 0x53a674
lea ecx, [esp + 0xc]
push 0
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 0x41c]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push str.Log_h_b_cleared_n
mov ecx, esi
call fcn.0053a3a0
pop edi
pop esi
add esp, 0x18
ret

Function at 0x53a6b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x50
push esi
mov esi, ecx
cmp dword [esi + 0x41c], 0xffffffff
je 0x53a718
lea eax, [esp + 8]
push edi
push eax
call fcn.005c461c
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
add esp, 4
and ecx, 0xffff
lea eax, [esp + 0x18]
push ecx
push edx
push str.Time:__ld._ld_n
push eax
call fcn.005c3648
add esp, 0x10
lea ecx, [esp + 8]
lea edi, [esp + 0x18]
xor eax, eax
push 0
push ecx
or ecx, 0xffffffff
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x41c]
not ecx
dec ecx
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
add esp, 0x50
ret
Function at 0x53a9c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.0053a950
mov eax, dword [esp + 0x24]
push 0
push 0
push 4
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [edi + 0x10], eax
jne 0x53aa0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x53ab29
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 0xc
lea esi, [edi + 8]
mov ecx, edi
push esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0053af90
mov ebx, dword [esp + 0x2c]
test eax, eax
je 0x53aa41
mov eax, dword [ebx]
mov ecx, dword [esi + 4]
cdq
cmp edx, ecx
jl 0x53aa41
jg 0x53aa3d
cmp eax, dword [esi]
jbe 0x53aa41
mov ecx, dword [esi]
mov dword [ebx], ecx
mov eax, dword [ebx]
mov ecx, dword [esi]
cdq
sub ecx, eax
mov eax, dword [esi + 4]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
sbb eax, edx
lea edx, [esp + 0x20]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x10]
push edx
push ecx
push eax
mov dword [esp + 0x28], ecx
call ebp
cmp eax, 0xffffffff
jne 0x53aa8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x53aa8d
mov ecx, edi
call fcn.0053a950
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
mov eax, dword [ebx]
test eax, eax
jne 0x53aa9f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 0xc
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x10]
push 0
push ecx
push eax
mov eax, dword [edi + 0x10]
push edx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x53ab07
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx]
cmp ecx, eax
jne 0x53ab07
mov eax, dword [edi + 0x10]
lea edx, [esp + 0x14]
push 2
push edx
push 0
push eax
mov dword [esp + 0x24], 0
call ebp
cmp eax, 0xffffffff
jne 0x53aa93
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x53aa93
mov ecx, edi
call fcn.0053a950
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, edi
mov esi, eax
call fcn.0053a950
test esi, esi
je 0x53ab26
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
Function at 0x53ac50
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov edi, ecx
mov dword [esp + 0x10], ebp
mov eax, dword [esi]
mov ecx, dword [esi + 4]
lea edx, [esp + 0x18]
sub eax, 4
push ebp
push edx
mov dword [esp + 0x1c], eax
push eax
mov eax, dword [edi + 0x10]
sbb ecx, ebp
push eax
mov dword [esp + 0x28], ecx
call ebx
cmp eax, 0xffffffff
jne 0x53ac9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test ebp, ebp
jne 0x53ada8
mov eax, dword [edi + 0x10]
lea ecx, [esp + 0x34]
push ebp
push ecx
lea edx, [esp + 0x24]
push 4
push edx
push eax
mov dword [esp + 0x48], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x53ae39
cmp dword [esp + 0x34], 4
jne 0x53ae39
lea ecx, [esp + 0x1c]
push ecx
call fcn.0057eb10
add esp, 4
cmp eax, ebp
jbe 0x53ae39
mov ecx, 0xfffffffc
xor edx, edx
sub ecx, eax
mov eax, 0xffffffff
sbb eax, edx
mov edx, dword [esi]
add edx, ecx
mov dword [esi], edx
mov ecx, dword [esi + 4]
adc ecx, eax
mov dword [esi + 4], ecx
mov eax, dword [esi + 4]
mov ecx, dword [esi]
cmp eax, ebp
jl 0x53ae39
jg 0x53ad15
cmp ecx, ebp
jbe 0x53ae39
lea edx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x10]
push ebp
push edx
push ecx
push eax
mov dword [esp + 0x24], ecx
call ebx
cmp eax, 0xffffffff
jne 0x53ad3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test ebp, ebp
jne 0x53ada8
mov eax, dword [edi + 0x10]
lea ecx, [esp + 0x34]
push ebp
push ecx
lea edx, [esp + 0x24]
push 0xc
push edx
push eax
mov dword [esp + 0x48], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x53ad65
cmp dword [esp + 0x34], 0xc
jne 0x53ae39
mov al, byte [esp + 0x2c]
test al, al
mov al, byte [esp + 0x1c]
je 0x53ad7a
cmp al, 8
je 0x53ad92
jmp 0x53ac69
cmp al, 9
jne 0x53ac69
mov cl, byte [esp + 0x27]
and cl, 0xf0
cmp cl, 0x10
jne 0x53ac69
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jge 0x53adbb
jmp 0x53ac69
mov ecx, edi
call fcn.0053a950
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
mov ax, word [esp + 0x20]
mov cl, byte [esp + 0x22]
xor edx, edx
mov byte [esp + 0x2c], 0
mov word [esp + 0x2d], dx
mov word [esp + 0x2d], ax
mov byte [esp + 0x2f], dl
mov byte [esp + 0x2f], cl
mov edx, dword [esp + 0x2c]
push edx
call sub.WS2_32.dll_ntohl
movsx ecx, byte [esp + 0x23]
mov edx, dword [esp + 0x38]
push 2
shl ecx, 0x18
or eax, ecx
mov dword [esp + 0x30], ebp
mov dword [edx], eax
mov ecx, dword [edi + 0x10]
lea eax, [esp + 0x30]
push eax
push ebp
push ecx
call ebx
cmp eax, 0xffffffff
jne 0x53ae2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebp
je 0x53ae2d
mov ecx, edi
call fcn.0053a950
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret 0x10
Function at 0x53ae50
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x24]
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x18]
mov byte [eax], 0
mov edx, dword [esi + 0x10]
push 0
push ecx
push edi
push edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebx
call ebp
cmp eax, 0xffffffff
jne 0x53aeac
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [esp + 0x10], eax
je 0x53aeac
mov ecx, esi
call fcn.0053a950
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x18
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x20]
push 0
push eax
mov eax, dword [esi + 0x10]
push ecx
push edx
push eax
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x53aee6
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
cmp eax, ecx
jne 0x53aee6
mov edx, dword [esp + 0x34]
mov byte [edx], 1
mov eax, dword [esp + 0x28]
xor ecx, ecx
add eax, edi
lea edx, [esp + 0x18]
adc ecx, ebx
add eax, 4
push 0
push edx
mov dword [esp + 0x1c], eax
push eax
mov eax, dword [esi + 0x10]
adc ecx, 0
push eax
mov dword [esp + 0x28], ecx
call ebp
cmp eax, 0xffffffff
jne 0x53af30
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x53af30
mov ecx, esi
call fcn.0053a950
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x18
mov ecx, dword [esi + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 0x18

Function at 0x53af50
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx + 0x10]
cmp eax, 0xffffffff
jne 0x53af5d
xor eax, eax
ret 0xc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
push ecx
mov ecx, dword [esp + 0xc]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 0xc

Function at 0x53af90
Capabilities:
Get file size

Disassembly:
push ecx
mov eax, dword [ecx + 0x10]
push esi
cmp eax, 0xffffffff
jne 0x53afa1
xor eax, eax
pop esi
pop ecx
ret 4
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [esp + 0xc]
mov dword [esi], eax
mov dword [esi + 4], 0
cmp dword [esi], 0xffffffff
jne 0x53afe0
mov eax, dword [esi + 4]
test eax, eax
jne 0x53afe0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x53afe0
mov dword [esi], eax
mov dword [esi + 4], 0
xor eax, eax
pop esi
pop ecx
ret 4
mov edx, dword [esp + 4]
push 1
push 0
push 0
push edx
call fcn.005c5530
mov ecx, dword [esi]
add ecx, eax
mov dword [esi], ecx
mov eax, dword [esi + 4]
adc eax, edx
mov dword [esi + 4], eax
mov eax, 1
pop esi
pop ecx
ret 4
Function at 0x53b100
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x607133
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
mov ebp, ecx
push esi
push edi
xor esi, esi
mov dword [ebp + 0x34], 1
mov byte [ebp + 0xc], 1
push 0x80
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], esi
mov dword [ebx], esi
call fcn.005db66d
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, esi
mov dword [esp + 0x24], esi
je 0x53b161
mov ecx, eax
call fcn.005627a0
mov edi, eax
mov dword [esp + 0x10], edi
jmp 0x53b167
mov dword [esp + 0x10], esi
mov edi, esi
cmp edi, esi
mov dword [esp + 0x24], 0xffffffff
je 0x53b2b0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
mov ecx, edi
call fcn.005635b0
test eax, eax
je 0x53b2a8
mov esi, dword [edi + 0x40]
test esi, esi
je 0x53b19f
mov dword [esp + 0x14], 1
mov eax, dword [edi + 0x78]
test eax, eax
je 0x53b1be
mov dword [ebx], 1
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
mov eax, 1
jmp 0x53b2b4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x53b2a8
xor ebx, ebx
test esi, esi
je 0x53b28d
mov edi, dword [esp + 0x34]
mov ebp, dword [sym.imp.WININET.dll_InternetCombineUrlA]
mov eax, dword [0x6c826c]
inc ebx
mov dword [esp + 0x30], eax
push 1
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 1
call fcn.005df633
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], 1
mov ecx, dword [esi + 0x14]
push 0x4000000
push edx
push eax
push ecx
push edi
call ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x2c]
test eax, eax
jbe 0x53b269
cmp eax, 0x7d0
jae 0x53b269
push eax
lea ecx, [esp + 0x34]
call fcn.005df633
mov ecx, dword [esi + 0x14]
lea edx, [esp + 0x2c]
push 0x4000000
push edx
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x53b269
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
mov edx, dword [esp + 0x30]
push 0
push 0
push 0
push 0
push ebx
push eax
push ecx
mov ecx, dword [esp + 0x34]
push edx
call fcn.0053b2d0
mov esi, dword [esi + 0x3c]
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], 0xffffffff
call fcn.005df266
test esi, esi
jne 0x53b1de
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0x60]
mov dword [ebp + 0x18], eax
mov ecx, dword [edi + 0x64]
mov dword [ebp + 0x1c], ecx
mov edx, dword [edi + 0x68]
mov ecx, dword [esp + 0x38]
mov dword [ebp + 0x10], edx
mov eax, dword [edi + 0x78]
mov dword [ecx], eax
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0x10
Function at 0x53b430
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
test ebx, ebx
je 0x53b4e7
push edi
mov edi, dword [esi + 0x20]
test edi, edi
je 0x53b457
push edi
push ebx
mov ecx, esi
call fcn.0053b4f0
mov edi, dword [edi]
test edi, edi
jne 0x53b448
mov edx, dword [esi + 8]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
not ecx
push ecx
push edx
push 1
push eax
push str.f_templ
push ebx
call edi
mov eax, dword [esi + 0x10]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push 0
push str.f_tfc
push ebx
mov dword [esp + 0x28], eax
call edi
mov cl, byte [esi + 0xc]
lea eax, [esp + 0x10]
push 4
xor edx, edx
push eax
push 4
test cl, cl
push 0
push str.f_uf
setne dl
push ebx
mov dword [esp + 0x28], edx
call edi
lea ecx, [esi + 0x18]
push 8
push ecx
push 0
push 0
push str.f_td
push ebx
call edi
mov eax, dword [esi + 0x34]
xor edx, edx
test eax, eax
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push str.f_uu
setne dl
push ebx
mov dword [esp + 0x28], edx
call edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x53b4f0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x30]
push ebp
push esi
push edi
mov edi, ecx
test ebx, ebx
je 0x53b593
mov esi, dword [esp + 0x40]
mov eax, dword [esi + 8]
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0x28], edx
mov edx, dword [esi + 0x18]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x24]
push edx
lea eax, [esp + 0x14]
push 0x6bb114
push eax
mov dword [esp + 0x3c], ecx
call fcn.005c3648
add esp, 0xc
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
push 0x18
push ecx
push 0
push 0
push edx
push ebx
call ebp
mov eax, dword [edi + 0x34]
test eax, eax
je 0x53b593
mov eax, dword [esi + 0x18]
lea ecx, [esp + 0x10]
push eax
push str.fn_d
push ecx
call fcn.005c3648
mov esi, dword [esi + 0x28]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
add esp, 0xc
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
push ecx
push esi
push 1
push eax
push edx
push ebx
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8
Function at 0x53c9f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60727f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x6c826c]
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov ecx, dword [esi + 0x17c]
mov byte [ebp - 4], 2
cmp dword [ecx], 0
je 0x53ca8e
mov edx, dword [esi + 0xb0]
mov eax, dword [edx + 0x14]
cmp eax, 0x15
je 0x53ca5a
push eax
lea eax, [ebp - 0x18]
push str.:_ld
push eax
call fcn.005d809b
add esp, 0xc
jmp 0x53ca67
push 0x6cc7b8
lea ecx, [ebp - 0x18]
call fcn.005df3ef
mov eax, dword [esi + 0xb0]
mov ecx, dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x1c]
mov edx, dword [eax]
mov eax, dword [eax + 0xc]
push edx
push eax
push str._s__s_s
push ecx
call fcn.005d809b
mov eax, dword [0x6c826c]
add esp, 0x14
mov dword [ebp - 0x14], eax
mov edx, dword [0x6cdf64]
push 1
push edx
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00532a80
mov eax, dword [esi + 0x17c]
cmp dword [eax], 0
je 0x53cab5
mov eax, dword [ebp - 0x1c]
jmp 0x53cad5
mov ecx, dword [esi + 0xb0]
mov edx, dword [ecx + 0xc]
lea ecx, [ebp - 0x24]
push edx
call fcn.005df2d4
mov ebx, 1
mov dword [ebp - 0x20], ebx
mov eax, dword [eax]
mov byte [ebp - 4], 4
push 0x69ece0
push eax
lea eax, [ebp - 0x14]
push str.USER__s_s
push eax
call fcn.005d809b
add esp, 0x10
mov dword [ebp - 4], 3
test bl, 1
je 0x53cb00
lea ecx, [ebp - 0x24]
call fcn.005df266
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.00532b50
mov edx, dword [ebp - 0x14]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push str.send___USER_n
dec ecx
push 0
push ecx
push edx
mov edx, dword [esi + 0x31dc]
push edx
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.00532c00
mov edi, eax
test edi, edi
je 0x53cb80
mov eax, dword [esi + 0x31ec]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
mov dword [eax + 0x160], edi
call fcn.005df266
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.005df266
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.005df266
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 2
lea ecx, [esi + 0x31d0]
call fcn.0057c090
mov ecx, esi
call fcn.005346f0
lea ecx, [ebp - 0x14]
mov dword [esi + 0x8c], 4
mov byte [ebp - 4], 2
call fcn.005df266
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.005df266
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.005df266
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