joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5189c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xa4], 0xffffffff
jne 0x5189d7
jmp 0x518a29
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0
movzx ecx, byte [ebp + 8]
test ecx, ecx
je 0x518a0c
push 4
lea edx, [ebp - 8]
push edx
push 4
push 0xffff
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xa4]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
jmp 0x518a29
push 4
lea edx, [ebp - 4]
push edx
push 4
push 0xffff
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xa4]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret 4

Function at 0x519600
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60bb78
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x70635c]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
push str.ck_getsockname_ipv4
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.004f53f0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
call fcn.004eaa20
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
mov edx, dword [ebp - 0x44]
cmp dword [edx + 0xa4], 0xffffffff
je 0x519710
mov dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0xa4]
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x519692
cmp dword [ebp - 0x1c], 0
jge 0x5196ca
push str.Failed_to_getsockname
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
call fcn.00518ec0
add esp, 8
mov byte [ebp - 0x35], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004f54a0
mov al, byte [ebp - 0x35]
jmp 0x519749
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
mov ecx, dword [ebp + 8]
call fcn.004ee6a0
movzx ecx, word [ebp - 0x32]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov byte [ebp - 0x3d], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004f54a0
mov al, byte [ebp - 0x3d]
jmp 0x519749
push 0x698f34
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x14]
call eax
mov byte [ebp - 0x3e], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004f54a0
mov al, byte [ebp - 0x3e]
jmp 0x519749
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.00606c9e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x519770
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60bba8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x70635c]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], ecx
push str.ck_getsockname_ipv6
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.004f53f0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
call fcn.004eaa20
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
mov edx, dword [ebp - 0x48]
cmp dword [edx + 0xa4], 0xffffffff
je 0x519884
mov dword [ebp - 0x20], 0x1c
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0xa4]
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x519802
cmp dword [ebp - 0x1c], 0
jge 0x51983d
push str.Failed_to_getsockname_ipv6
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
call fcn.00518ec0
add esp, 8
mov byte [ebp - 0x41], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004f54a0
mov al, byte [ebp - 0x41]
jmp 0x5198bd
mov ecx, dword [ebp + 8]
call fcn.004eaa20
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x38]
push eax
push 0x17
call fcn.00516ab0
add esp, 0xc
movzx ecx, word [ebp - 0x3e]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov byte [ebp - 0x42], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004f54a0
mov al, byte [ebp - 0x42]
jmp 0x5198bd
push str.Cannot_get_socket_name:_INVALID_SOCKET.
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x14]
call eax
mov byte [ebp - 0x43], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004f54a0
mov al, byte [ebp - 0x43]
jmp 0x5198bd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.00606c9e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x51cef0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x70635c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0xa4], 0xffffffff
jne 0x51cf19
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + 0xa0], 0
mov edx, dword [ebp - 0x2c]
movzx eax, byte [edx + 0xa0]
test eax, eax
jne 0x51cf2e
xor al, al
jmp 0x51d090
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0x2c]
add ecx, 0x250
call fcn.00517ab0
mov dword [ebp - 0x14], 0
jmp 0x51cf5c
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
cmp eax, dword [edx + 0x258]
jae 0x51cf86
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [edx + ecx*4 + 0x25c]
cmp ecx, dword [eax + 0xa4]
jne 0x51cf84
jmp 0x51cf86
jmp 0x51cf53
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
cmp eax, dword [edx + 0x258]
jne 0x51cfce
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 0x258], 0x200
jae 0x51cfce
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
mov ecx, dword [ecx + 0xa4]
mov dword [eax + edx*4 + 0x25c], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x258]
add eax, 1
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x258], eax
xor edx, edx
jne 0x51cf4a
mov dword [ebp - 8], 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x2c]
add ecx, 0x258
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x51d074
push 2
push 1
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0xa4]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x51d035
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x2c]
call fcn.0051d0c0
xor al, al
jmp 0x51d090
cmp dword [ebp - 0x18], 0xffffffff
jne 0x51d06e
mov ecx, dword [ebp + 8]
push ecx
push 0
call fcn.00518ec0
add esp, 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x2746
je 0x51d064
cmp dword [ebp - 0x28], 0x2745
jne 0x51d068
xor al, al
jmp 0x51d090
mov al, 1
jmp 0x51d090
mov al, 1
jmp 0x51d090
cmp dword [ebp - 4], 0
jge 0x51d08e
mov edx, dword [ebp + 8]
push edx
push 0
call fcn.00518ec0
add esp, 8
mov al, 1
jmp 0x51d090
mov al, 1
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00606c9e
mov esp, ebp
pop ebp
ret 4
Function at 0x51d600
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 8]
call fcn.00540570
mov ecx, dword [ebp + 8]
call fcn.005405c0
movzx eax, al
test eax, eax
je 0x51d640
mov ecx, dword [ebp + 8]
mov byte [ecx + 0xd], 1
push str.Wait_for_data_on_socket_aborted_by_app
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + 0x14]
call edx
xor al, al
jmp 0x51d782
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0xa4], 0xffffffff
jne 0x51d66c
push str.Cannot_wait_for_socket_data:_not_connected__invalid_socket_
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp + 8]
mov byte [ecx + 0xe], 1
xor al, al
jmp 0x51d782
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0x18]
add ecx, 0x250
call fcn.00517ab0
mov dword [ebp - 0x14], 0
jmp 0x51d69a
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 0x258]
jae 0x51d6c4
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov edx, dword [eax + edx*4 + 0x25c]
cmp edx, dword [ecx + 0xa4]
jne 0x51d6c2
jmp 0x51d6c4
jmp 0x51d691
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 0x258]
jne 0x51d70c
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x258], 0x200
jae 0x51d70c
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0xa4]
mov dword [ecx + eax*4 + 0x25c], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x258]
add ecx, 1
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x258], ecx
xor eax, eax
jne 0x51d688
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x18]
add edx, 0x258
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x51d746
cmp dword [ebp - 4], 0
jge 0x51d76d
mov ecx, dword [ebp + 8]
mov byte [ecx + 0xe], 1
push str.The_peer_has_closed_the_socket__TCP__connection
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + 0x14]
call edx
mov ecx, dword [ebp - 0x18]
call fcn.0051d5b0
xor al, al
jmp 0x51d782
cmp dword [ebp - 4], 0
jne 0x51d780
mov eax, dword [ebp + 8]
mov byte [eax + 0xc], 1
xor al, al
jmp 0x51d782
mov al, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x51e120
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60be4b
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x70635c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xf0], ecx
mov eax, dword [ebp - 0xf0]
cmp dword [eax + 0xa4], 0xffffffff
jne 0x51e167
xor al, al
jmp 0x51e31e
cmp dword [ebp + 8], 0
jne 0x51e174
mov dword [ebp + 8], 0x7530
cmp dword [ebp + 8], 0x927c0
jbe 0x51e184
mov dword [ebp + 8], 0x927c0
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0xb4]
call fcn.00540320
mov dword [ebp - 4], 0
mov edx, 1
test edx, edx
je 0x51e30c
call fcn.004f3ed0
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0xb4]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0xf0]
call fcn.0051d790
mov byte [ebp - 0xe1], al
movzx eax, byte [ebp - 0xe1]
test eax, eax
jne 0x51e201
mov byte [ebp - 0xe9], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb4]
call fcn.005403d0
mov al, byte [ebp - 0xe9]
jmp 0x51e31e
push 0
push 0x20
lea ecx, [ebp - 0xd4]
push ecx
mov edx, dword [ebp - 0xf0]
mov eax, dword [edx + 0xa4]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0xd8], eax
cmp dword [ebp - 0xd8], 0
jne 0x51e271
mov ecx, dword [ebp + 0x10]
movzx edx, byte [ecx + 0x48]
test edx, edx
je 0x51e24b
push str.TCP_connection_cleanly_closed_by_peer.
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x18]
call eax
mov byte [ebp - 0xea], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb4]
call fcn.005403d0
mov al, byte [ebp - 0xea]
jmp 0x51e31e
cmp dword [ebp - 0xd8], 0xffffffff
je 0x51e283
cmp dword [ebp - 0xd8], 0
jge 0x51e2a4
mov byte [ebp - 0xeb], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb4]
call fcn.005403d0
mov al, byte [ebp - 0xeb]
jmp 0x51e31e
call fcn.004f3ed0
mov dword [ebp - 0xe0], eax
mov ecx, dword [ebp - 0xe0]
cmp ecx, dword [ebp - 0xdc]
jbe 0x51e307
mov edx, dword [ebp - 0xe0]
sub edx, dword [ebp - 0xdc]
mov dword [ebp - 0xe8], edx
mov eax, dword [ebp - 0xe8]
cmp eax, dword [ebp + 8]
jb 0x51e2fb
mov byte [ebp - 0xec], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb4]
call fcn.005403d0
mov al, byte [ebp - 0xec]
jmp 0x51e31e
mov ecx, dword [ebp + 8]
sub ecx, dword [ebp - 0xe8]
mov dword [ebp + 8], ecx
jmp 0x51e19a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb4]
call fcn.005403d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00606c9e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x53d110
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60d8b6
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x70635c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.TlsRawRecord.0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x10], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.004e5ed0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.004e5ed0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x4c
call fcn.004e5ed0
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x68], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x53e540
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60dafc
mov eax, dword fs:[0]
push eax
sub esp, 0x3fc
mov eax, dword [0x70635c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x12c]
call fcn.004dd740
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x12c]
call fcn.004e0bd0
push 0x5c
push 0x2f
lea ecx, [ebp - 0x12c]
call fcn.004e1be0
lea ecx, [ebp - 0x1c4]
call fcn.005cb140
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c4]
call fcn.005cb1c0
movzx ecx, al
test ecx, ecx
je 0x53e605
lea ecx, [ebp - 0x12c]
call fcn.004df220
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne dl
mov byte [ebp - 0x405], dl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c4]
call fcn.005cb1a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.004dd800
mov al, byte [ebp - 0x405]
jmp 0x53e7d8
lea ecx, [ebp - 0x12c]
call fcn.004dd8f0
cmp eax, 0x104
jle 0x53e70b
lea ecx, [ebp - 0x2dc]
call fcn.004dd740
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2dc]
push eax
lea ecx, [ebp - 0x12c]
push ecx
call fcn.0053e240
add esp, 8
lea ecx, [ebp - 0x3fc]
call fcn.004dd740
mov byte [ebp - 4], 3
push 0x6a09d4
lea ecx, [ebp - 0x3fc]
call fcn.004e04d0
lea ecx, [ebp - 0x2dc]
call fcn.004e0730
push eax
lea ecx, [ebp - 0x3fc]
call fcn.004e04d0
lea ecx, [ebp - 0x3fc]
call fcn.004de3f0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x2e0], eax
cmp dword [ebp - 0x2e0], 0
jne 0x53e6ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x53e6ac
mov dword [ebp - 0x2e0], 1
cmp dword [ebp - 0x2e0], 0
setne dl
mov byte [ebp - 0x406], dl
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3fc]
call fcn.004dd800
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2dc]
call fcn.004dd800
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c4]
call fcn.005cb1a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.004dd800
mov al, byte [ebp - 0x406]
jmp 0x53e7d8
lea ecx, [ebp - 0x12c]
call fcn.004de3f0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x400], eax
cmp dword [ebp - 0x400], 0
jne 0x53e77e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x404], eax
cmp dword [ebp + 0xc], 0
je 0x53e76b
mov eax, dword [ebp - 0x404]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.004f52c0
lea ecx, [ebp - 0x12c]
call fcn.004e0730
push eax
push str.failedToDeleteFilepath
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
mov eax, dword [edx + 0x2c]
call eax
cmp dword [ebp - 0x404], 2
jne 0x53e77e
mov dword [ebp - 0x400], 1
cmp dword [ebp - 0x400], 0
setne cl
mov byte [ebp - 0x407], cl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c4]
call fcn.005cb1a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.004dd800
mov al, byte [ebp - 0x407]
jmp 0x53e7d8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00606c9e
mov esp, ebp
pop ebp
ret
Function at 0x53f800
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60dc31
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x70635c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0xffffffff
mov ecx, dword [ebp + 8]
call fcn.004e1420
movzx edx, al
test edx, edx
je 0x53f86b
cmp dword [ebp + 0x14], 0
je 0x53f864
push str.GetAttributes:_filename_is_empty
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x14]
mov eax, dword [edx + 0x14]
call eax
xor al, al
jmp 0x53f9d4
lea ecx, [ebp - 0x12c]
call fcn.004dd740
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x12c]
call fcn.004e0bd0
push 0x5c
push 0x2f
lea ecx, [ebp - 0x12c]
call fcn.004e1be0
lea ecx, [ebp - 0x12c]
call fcn.004dd8f0
mov dword [ebp - 0x1c8], eax
lea ecx, [ebp - 0x1c4]
call fcn.005cb140
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c8], 0x104
jge 0x53f91c
lea ecx, [ebp - 0x12c]
call fcn.004df1f0
movzx edx, al
test edx, edx
jne 0x53f8eb
lea ecx, [ebp - 0x1c4]
call fcn.005cb1c0
movzx eax, al
test eax, eax
je 0x53f91c
lea ecx, [ebp - 0x12c]
call fcn.004df220
push eax
call fcn.005402b0
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0xffffffff
jne 0x53f917
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x53f99c
cmp dword [ebp - 0x1c8], 0
jle 0x53f972
lea ecx, [ebp - 0x2e4]
call fcn.004dd740
mov byte [ebp - 4], 2
lea edx, [ebp - 0x2e4]
push edx
lea eax, [ebp - 0x12c]
push eax
call fcn.0053e400
add esp, 8
lea ecx, [ebp - 0x2e4]
call fcn.004de3f0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2e4]
call fcn.004dd800
jmp 0x53f989
lea ecx, [ebp - 0x12c]
call fcn.004de3f0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0xffffffff
jne 0x53f99c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0xc]
xor eax, eax
cmp dword [edx], 0xffffffff
setne al
mov byte [ebp - 0x2e5], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c4]
call fcn.005cb1a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.004dd800
mov al, byte [ebp - 0x2e5]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00606c9e
mov esp, ebp
pop ebp
ret
Function at 0x53fba0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60dc31
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x70635c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x12c]
call fcn.004dd740
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x12c]
call fcn.004e0bd0
push 0x5c
push 0x2f
lea ecx, [ebp - 0x12c]
call fcn.004e1be0
push 0
push 1
lea ecx, [ebp - 0x12c]
push ecx
call fcn.0053e800
add esp, 0xc
lea ecx, [ebp - 0x1c4]
call fcn.005cb140
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c8], 0
lea ecx, [ebp - 0x1c4]
call fcn.005cb1c0
movzx edx, al
test edx, edx
je 0x53fc5c
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x12c]
call fcn.004df220
push eax
call fcn.00540290
add esp, 8
movzx ecx, al
mov dword [ebp - 0x1c8], ecx
jmp 0x53fcd9
lea ecx, [ebp - 0x12c]
call fcn.004dd8f0
test eax, eax
jle 0x53fcbd
lea ecx, [ebp - 0x2e4]
call fcn.004dd740
mov byte [ebp - 4], 2
lea edx, [ebp - 0x2e4]
push edx
lea eax, [ebp - 0x12c]
push eax
call fcn.0053e400
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x2e4]
call fcn.004de3f0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x1c8], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2e4]
call fcn.004dd800
jmp 0x53fcd9
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x12c]
call fcn.004de3f0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x1c8], eax
cmp dword [ebp - 0x1c8], 0
setne al
mov byte [ebp - 0x2e5], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c4]
call fcn.005cb1a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.004dd800
mov al, byte [ebp - 0x2e5]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00606c9e
mov esp, ebp
pop ebp
ret

Function at 0x540290
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
pop ebp
ret
Function at 0x550d30
Capabilities:
Encrypt data using rc4 prga
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [0x709cc0]
test eax, eax
jne 0x550e61
movzx ecx, byte [0x709cc1]
test ecx, ecx
jne 0x550e61
cmp dword [0x709cc4], 0
jne 0x550e61
mov byte [0x709cc1], 1
push 0x100
call fcn.005117d0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x550d83
jmp 0x550ea9
mov dword [ebp - 4], 0x4c11db7
mov dword [ebp - 0xc], 0
jmp 0x550d9c
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0xff
ja 0x550e2b
push 8
mov eax, dword [ebp - 0xc]
push eax
call fcn.00550ed0
add esp, 8
shl eax, 0x18
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4], eax
mov dword [ebp - 0x10], 0
jmp 0x550dd5
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 8
jae 0x550e09
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4]
shl eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + ecx*4]
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, dword [ebp - 4]
xor eax, ecx
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dword [ecx + edx*4], eax
jmp 0x550dcc
push 0x20
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.00550ed0
add esp, 8
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dword [ecx + edx*4], eax
jmp 0x550d93
cmp dword [0x709cc4], 0
jne 0x550e3f
mov edx, dword [ebp - 8]
mov dword [0x709cc4], edx
jmp 0x550e51
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov byte [0x709cc0], 1
mov byte [0x709cc1], 0
jmp 0x550ea9
movzx edx, byte [0x709cc1]
test edx, edx
je 0x550ea9
movzx eax, byte [0x709cc0]
test eax, eax
jne 0x550ea9
mov dword [ebp - 0x14], 0
movzx ecx, byte [0x709cc1]
test ecx, ecx
je 0x550ea9
push 2
call fcn.004f3ec0
add esp, 4
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0xc8
jbe 0x550ea7
jmp 0x550ea9
jmp 0x550e7e
mov esp, ebp
pop ebp
ret