joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414900
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x38]
push edi
call sym.ptapdl.exe__sys_error_none_4
mov eax, dword [0x428cc4]
mov ebx, dword [esp + 0x30]
mov ebp, dword [ebx + 0x918]
push 0x428cc8
xor esi, esi
push esi
push 1
push eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call sub.KERNEL32.dll_CreateEventA
cmp eax, esi
mov dword [esp + 0x28], eax
jne 0x414952
call sub.KERNEL32.dll_GetLastError
mov dword [edi + 0xc], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0xc
mov al, byte [ebp + 0x38]
test al, al
jne 0x414a0c
mov esi, dword [esp + 0x34]
mov ax, word [esi]
test ax, ax
jle 0x414ae1
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [ebx + 0x920]
movsx eax, ax
lea edx, [esp + 0x14]
push edx
push eax
lea eax, [esi + 4]
push eax
push ecx
call sub.KERNEL32.dll_ReadFile
test al, al
jne 0x4149ef
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x3e5
je 0x4149b7
call sub.KERNEL32.dll_GetLastError
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x28]
push eax
call sub.KERNEL32.dll_CloseHandle
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0xc
mov ecx, dword [ebx + 0x920]
push 1
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
push ecx
call sub.KERNEL32.dll_GetOverlappedResult
test al, al
jne 0x4149ef
call sub.KERNEL32.dll_GetLastError
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x28]
push eax
call sub.KERNEL32.dll_CloseHandle
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0xc
mov eax, dword [esp + 0x28]
mov dx, word [esp + 0x10]
push eax
mov word [esi + 2], dx
call sub.KERNEL32.dll_CloseHandle
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0xc
mov ebx, dword [esp + 0x34]
xor edi, edi
mov word [ebx + 2], di
mov edx, dword [0x421ef4]
mov esi, dword [esp + 0x30]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x920]
push edx
lea eax, [esp + 0x20]
push eax
push ecx
call sub.KERNEL32.dll_ReadFile
test al, al
jne 0x414a68
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x3e5
jne 0x414ab5
mov ecx, dword [esi + 0x920]
push 1
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
push ecx
call sub.KERNEL32.dll_GetOverlappedResult
test al, al
je 0x414ad5
mov eax, dword [esp + 0x14]
cmp al, byte [edi + ebp + 0x14]
je 0x414a9e
test edi, edi
je 0x414aa1
mov esi, 1
cmp edi, esi
jl 0x414a95
xor edx, edx
mov dl, byte [esi + ebp + 0x13]
push edx
push ebx
call sym.ptapdl.exe__string_append1_8
inc esi
cmp esi, edi
jle 0x414a7f
mov eax, dword [esp + 0x14]
mov cl, byte [ebp + 0x14]
xor edi, edi
cmp al, cl
jne 0x414a72
inc edi
jmp 0x414aa8
push eax
push ebx
call sym.ptapdl.exe__string_append1_8
movsx eax, word [ebp + 0x12]
cmp edi, eax
jge 0x414ae1
jmp 0x414a16
call sub.KERNEL32.dll_GetLastError
mov ecx, dword [esp + 0x38]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x28]
push eax
call sub.KERNEL32.dll_CloseHandle
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0xc
call sub.KERNEL32.dll_GetLastError
mov edx, dword [esp + 0x38]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x28]
push eax
call sub.KERNEL32.dll_CloseHandle
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0xc
Function at 0x414b40
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x24]
push esi
call sym.ptapdl.exe__sys_error_none_4
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
mov eax, dword [edx + 0x920]
lea ecx, [esp + 8]
push ecx
push eax
mov dword [esp + 0x30], 0x10
call sub.WSOCK32.dll_getsockname
test eax, eax
je 0x414b83
call sub.WSOCK32.dll_WSAGetLastError
mov dword [esi + 0xc], eax
pop esi
add esp, 0x10
ret 0x10
push 4
lea ecx, [esp + 0xc]
push ecx
call sym.ptapdl.exe__sys_order_flip_8
push 2
lea edx, [esp + 0xa]
push edx
call sym.ptapdl.exe__sys_order_flip_8
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x20]
mov dword [eax], ecx
mov ax, word [esp + 6]
mov word [edx], ax
pop esi
add esp, 0x10
ret 0x10

Function at 0x414c40
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x400
push ebx
mov ebx, dword [esp + 0x40c]
push ebp
mov ebp, dword [esp + 0x414]
push edi
mov edi, dword [esp + 0x410]
push ebp
push ebx
push edi
call sym.ptapdl.exe__string_t_inetadr_12
push ebp
call sym.ptapdl.exe__sys_error_4
test al, al
je 0x414d0c
push ebp
call sym.ptapdl.exe__sys_error_none_4
call sym.ptapdl.exe__sys_sys_netstart_0
movsx eax, word [edi + 2]
mov ecx, dword [0x421f98]
cmp ecx, eax
jl 0x414c8f
mov ecx, eax
mov eax, 1
cmp ecx, eax
jl 0x414cab
push esi
lea esi, [esp + 0x10]
dec esi
mov dl, byte [edi + eax + 3]
mov byte [esi + eax], dl
inc eax
cmp eax, ecx
jle 0x414c9e
pop esi
mov al, byte [0x428cd0]
mov byte [esp + ecx + 0xc], al
lea ecx, [esp + 0xc]
push ecx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x414cd6
call sub.WSOCK32.dll_WSAGetLastError
pop edi
mov dword [ebp + 0xc], eax
pop ebp
pop ebx
add esp, 0x400
ret 0xc
mov eax, dword [eax + 0xc]
test eax, eax
je 0x414cfb
mov eax, dword [eax]
test eax, eax
je 0x414cfb
mov edx, dword [eax]
push 4
push ebx
mov dword [ebx], edx
call sym.ptapdl.exe__sys_order_flip_8
pop edi
pop ebp
pop ebx
add esp, 0x400
ret 0xc
push ebp
push 0xf
push 0xfffffffffffffffd
call sym.ptapdl.exe__sys_stat_set_12
push ebp
push edi
call sym.ptapdl.exe__sys_stat_parm_vstr_8
pop edi
pop ebp
pop ebx
add esp, 0x400
ret 0xc
Function at 0x414d20
Capabilities:
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, dword [esp + 0x28]
push edi
call sym.ptapdl.exe__sys_error_none_4
call sym.ptapdl.exe__sys_sys_netstart_0
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov esi, dword [esp + 0x24]
mov dword [esi + 4], eax
jne 0x414d5b
call sub.WSOCK32.dll_WSAGetLastError
mov dword [edi + 0xc], eax
pop edi
pop esi
add esp, 0x10
ret 0x10
lea eax, [esp + 8]
push eax
call sym.ptapdl.exe__file_inet_sockaddr_init_4
mov cx, word [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 4
lea eax, [esp + 0x10]
push eax
mov word [esp + 0x12], cx
mov dword [esp + 0x14], edx
call sym.ptapdl.exe__sys_order_flip_8
push 2
lea ecx, [esp + 0xe]
push ecx
call sym.ptapdl.exe__sys_order_flip_8
mov edx, dword [0x421f9c]
mov ecx, dword [esi + 4]
push edx
lea eax, [esp + 0xc]
push eax
push ecx
call sub.WSOCK32.dll_bind
test eax, eax
jne 0x414df6
mov ecx, dword [esi + 4]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x34], 0x10
call sub.WSOCK32.dll_getsockname
test eax, eax
jne 0x414df6
push 4
lea edx, [esp + 0x10]
push edx
call sym.ptapdl.exe__sys_order_flip_8
push 2
lea eax, [esp + 0xe]
push eax
call sym.ptapdl.exe__sys_order_flip_8
mov edx, dword [esi + 4]
mov cx, word [esp + 0xa]
push 8
push edx
mov word [esi], cx
call sub.WSOCK32.dll_listen
test eax, eax
je 0x414e07
call sub.WSOCK32.dll_WSAGetLastError
mov dword [edi + 0xc], eax
mov eax, dword [esi + 4]
push eax
call sub.WSOCK32.dll_closesocket
pop edi
pop esi
add esp, 0x10
ret 0x10

Function at 0x414ec0
Capabilities:
Connect socket

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [esp + 0x2c]
push edi
call sym.ptapdl.exe__sys_error_none_4
call sym.ptapdl.exe__sys_sys_netstart_0
xor ebx, ebx
push ebx
push 1
push 2
call sub.WSOCK32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x414ef9
call sub.WSOCK32.dll_WSAGetLastError
mov dword [edi + 0xc], eax
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0x10
lea eax, [esp + 0xc]
push eax
call sym.ptapdl.exe__file_inet_sockaddr_init_4
mov ecx, dword [esp + 0x20]
mov dx, word [esp + 0x24]
push 4
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], ecx
mov word [esp + 0x16], dx
call sym.ptapdl.exe__sys_order_flip_8
push 2
lea ecx, [esp + 0x12]
push ecx
call sym.ptapdl.exe__sys_order_flip_8
mov edx, dword [0x421fa0]
push edx
lea eax, [esp + 0x10]
push eax
push esi
call sub.WSOCK32.dll_connect
test eax, eax
je 0x414f54
call sub.WSOCK32.dll_WSAGetLastError
mov dword [edi + 0xc], eax
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0x10
mov eax, dword [esp + 0x28]
pop edi
mov ecx, 0x400
mov dword [eax + 0x920], esi
pop esi
mov byte [eax + 2], bl
mov word [eax + 6], bx
mov word [eax + 0x40a], bx
mov word [eax + 0x50e], bx
mov dword [eax + 0x910], ebx
mov dword [eax + 0x918], ebx
mov byte [eax], 3
mov byte [eax + 1], 7
mov word [eax + 4], cx
mov word [eax + 0x408], 0x100
mov word [eax + 0x50c], cx
mov dword [eax + 0x914], 0xfffffffe
mov dword [eax + 0x91c], 0x414b00
pop ebx
add esp, 0x10
ret 0x10
Function at 0x414fc0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x30]
push ebp
push esi
push edi
push ebx
call sym.ptapdl.exe__sys_error_none_4
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
xor eax, eax
cmp esi, eax
mov dword [edi], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
jbe 0x4150b2
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push eax
mov eax, dword [edx + 0x920]
lea ecx, [esp + 0x40]
push ecx
push esi
push ebp
push eax
call sub.KERNEL32.dll_ReadFile
test al, al
jne 0x415041
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x3e5
jne 0x41506f
mov eax, dword [esp + 0x28]
push 1
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [eax + 0x920]
lea edx, [esp + 0x18]
push edx
push ecx
call sub.KERNEL32.dll_GetOverlappedResult
test al, al
je 0x41506a
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x41507c
mov edx, dword [edi]
mov cl, byte [esp + 0x30]
add edx, eax
test cl, 2
mov dword [edi], edx
jne 0x4150b2
sub esi, eax
add ebp, eax
test esi, esi
ja 0x414ff5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x18
call sub.KERNEL32.dll_GetLastError
pop edi
pop esi
pop ebp
mov dword [ebx + 0xc], eax
pop ebx
add esp, 0x14
ret 0x18
cmp dword [edi], 0
push ebx
jne 0x415095
push 1
push 0xfffffffffffffffd
call sym.ptapdl.exe__sys_stat_set_12
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x18
push 0xa
push 0xfffffffffffffffd
call sym.ptapdl.exe__sys_stat_set_12
mov edx, dword [esp + 0x2c]
push ebx
push edx
call sym.ptapdl.exe__sys_stat_parm_int_8
mov eax, dword [edi]
push ebx
push eax
call sym.ptapdl.exe__sys_stat_parm_int_8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x18

Function at 0x4150c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
push esi
mov esi, dword [esp + 0x2c]
push edi
push esi
call sym.ptapdl.exe__sys_error_none_4
mov edi, dword [esp + 0x2c]
xor eax, eax
cmp edi, eax
je 0x415182
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0xc]
push eax
mov eax, dword [ebx + 0x920]
lea ecx, [esp + 0x34]
push ecx
push edi
push edx
push eax
call sub.KERNEL32.dll_WriteFile
test al, al
jne 0x415153
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x3e5
je 0x415126
pop edi
mov dword [esi + 0xc], eax
pop esi
pop ebx
add esp, 0x14
ret 0x10
mov eax, dword [ebx + 0x920]
push 1
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
call sub.KERNEL32.dll_GetOverlappedResult
test al, al
jne 0x415153
call sub.KERNEL32.dll_GetLastError
pop edi
mov dword [esi + 0xc], eax
pop esi
pop ebx
add esp, 0x14
ret 0x10
cmp dword [esp + 0x30], edi
je 0x415182
push esi
push 9
push 0xfffffffffffffffd
call sym.ptapdl.exe__sys_stat_set_12
push esi
add ebx, 0x50c
push ebx
call sym.ptapdl.exe__sys_stat_parm_vstr_8
push esi
push edi
call sym.ptapdl.exe__sys_stat_parm_int_8
mov ecx, dword [esp + 0x30]
push esi
push ecx
call sym.ptapdl.exe__sys_stat_parm_int_8
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0x10
Function at 0x415540
Capabilities:
Clear file content
Delete file
Write file on windows

Disassembly:
mov eax, 0x2510
call fcn.0040dab0
push esi
push edi
mov edi, dword [esp + 0x2528]
push edi
mov word [esp + 0x114], 0x400
mov word [esp + 0x10], 0x100
mov word [esp + 0x518], 0x2000
call sym.ptapdl.exe__sys_error_none_4
mov edx, dword [esp + 0x251c]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x114]
push ecx
push edx
call sym.ptapdl.exe__string_pathname_split_12
lea eax, [esp + 0x110]
push eax
lea ecx, [esp + 0x114]
push ecx
call sym.ptapdl.exe__string_treename_8
lea edx, [esp + 0x514]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x118]
push ecx
call sym.ptapdl.exe__string_pathname_join_12
test byte [esp + 0x2524], 1
mov esi, 1
je 0x415605
lea edx, [esp + 0x514]
push edx
mov esi, 2
call sym.ptapdl.exe__string_terminate_null_4
lea eax, [esp + 0x518]
push eax
call sub.KERNEL32.dll_DeleteFileA
test al, al
jne 0x415605
call sub.KERNEL32.dll_GetLastError
push edi
mov dword [edi + 0xc], eax
call sym.ptapdl.exe__file_not_found_4
test al, al
je 0x4156c5
xor ecx, ecx
mov cx, word [0x421fba]
lea edx, [esp + 0x514]
push ecx
push 0x421fb8
push edx
call sym.ptapdl.exe__string_appendn_12
lea eax, [esp + 0x514]
push eax
call sym.ptapdl.exe__string_terminate_null_4
mov ecx, dword [0x428cd8]
mov edx, dword [0x428cd4]
push ecx
push 0x8000080
push esi
push edx
push 1
push 0x40000000
lea eax, [esp + 0x530]
push eax
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x4156bd
mov edx, dword [0x428cdc]
mov eax, dword [esp + 0x2520]
movsx ecx, word [eax + 2]
push edx
lea edx, [esp + 0xc]
push edx
push ecx
add eax, 4
push eax
push esi
call sub.KERNEL32.dll_WriteFile
test al, al
je 0x41568d
push esi
call sub.KERNEL32.dll_SetEndOfFile
test al, al
jne 0x4156b3
call sub.KERNEL32.dll_GetLastError
push esi
mov dword [edi + 0xc], eax
call sub.KERNEL32.dll_CloseHandle
lea eax, [esp + 0x518]
push eax
call sub.KERNEL32.dll_DeleteFileA
pop edi
pop esi
add esp, 0x2510
ret 0x10
push esi
call sub.KERNEL32.dll_CloseHandle
test al, al
jne 0x4156c5
call sub.KERNEL32.dll_GetLastError
mov dword [edi + 0xc], eax
pop edi
pop esi
add esp, 0x2510
ret 0x10
Function at 0x4156d0
Capabilities:
Delete file

Disassembly:
mov eax, 0x250c
call fcn.0040dab0
push esi
mov esi, dword [esp + 0x2518]
push esi
mov word [esp + 0x10c], 0x400
mov word [esp + 8], 0x100
mov word [esp + 0x510], 0x2000
call sym.ptapdl.exe__sys_error_none_4
mov edx, dword [esp + 0x2514]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x10c]
push ecx
push edx
call sym.ptapdl.exe__string_pathname_split_12
lea eax, [esp + 0x108]
push eax
lea ecx, [esp + 0x10c]
push ecx
call sym.ptapdl.exe__string_treename_8
lea edx, [esp + 0x50c]
push edx
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x110]
push ecx
call sym.ptapdl.exe__string_pathname_join_12
xor edx, edx
mov dx, word [0x421fbe]
lea eax, [esp + 0x50c]
push edx
push 0x421fbc
push eax
call sym.ptapdl.exe__string_appendn_12
lea ecx, [esp + 0x50c]
push ecx
call sym.ptapdl.exe__string_terminate_null_4
lea edx, [esp + 0x510]
push edx
call sub.KERNEL32.dll_DeleteFileA
test al, al
jne 0x41578e
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 0xc], eax
pop esi
add esp, 0x250c
ret 8

Function at 0x4157a0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x2008
call fcn.0040dab0
push esi
push edi
mov edi, dword [esp + 0x201c]
push edi
mov word [esp + 0x10], 0x2000
call sym.ptapdl.exe__sys_error_none_4
mov ecx, dword [esp + 0x2014]
lea eax, [esp + 0xc]
push eax
push ecx
call sym.ptapdl.exe__string_copy_8
xor edx, edx
mov dx, word [0x421fc2]
lea eax, [esp + 0xc]
push edx
push 0x421fc0
push eax
call sym.ptapdl.exe__string_appendn_12
lea ecx, [esp + 0xc]
push ecx
call sym.ptapdl.exe__string_terminate_null_4
mov edx, dword [0x428ce4]
mov eax, dword [0x428ce0]
push edx
push 0x8000080
push 3
push eax
push 1
push bind
lea ecx, [esp + 0x28]
push ecx
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
jne 0x415834
call sub.KERNEL32.dll_GetLastError
mov dword [edi + 0xc], eax
pop edi
pop esi
add esp, 0x2008
ret 0xc
mov edx, dword [0x428ce8]
movsx eax, word [esp + 0xc]
push edx
lea ecx, [esp + 0xc]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
push esi
call sub.KERNEL32.dll_ReadFile
test al, al
jne 0x41586e
call sub.KERNEL32.dll_GetLastError
push esi
mov dword [edi + 0xc], eax
call sub.KERNEL32.dll_CloseHandle
pop edi
pop esi
add esp, 0x2008
ret 0xc
movsx eax, word [esp + 0xc]
mov ecx, dword [esp + 8]
cmp eax, ecx
mov word [esp + 0xe], ax
jb 0x415885
mov word [esp + 0xe], cx
push esi
call sub.KERNEL32.dll_CloseHandle
mov esi, dword [esp + 0x2018]
mov ax, word [esi]
mov cx, word [esp + 0xe]
cmp ax, cx
jge 0x4158a4
movsx ecx, ax
jmp 0x4158a7
movsx ecx, cx
movsx edx, cx
mov eax, 1
cmp edx, eax
mov word [esi + 2], cx
jl 0x4158de
mov cl, byte [esp + eax + 0xf]
cmp cl, 0x1f
jbe 0x4158d9
cmp cl, 0x7f
je 0x4158d9
mov byte [eax + esi + 3], cl
inc eax
cmp eax, edx
jle 0x4158b7
pop edi
pop esi
add esp, 0x2008
ret 0xc
dec eax
mov word [esi + 2], ax
pop edi
pop esi
add esp, 0x2008
ret 0xc
Function at 0x417f90
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x1c]
push edi
push esi
call sym.ptapdl.exe__sys_error_none_4
mov edi, dword [esp + 0x14]
test edi, edi
je 0x41802b
mov eax, dword [0x428e6c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [eax + 0x920]
push edi
push edx
push ecx
call sub.KERNEL32.dll_ReadFile
test al, al
mov ebx, dword [esp + 0x1c]
jne 0x417fed
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x6d
je 0x417ff7
pop edi
mov dword [esi + 0xc], eax
mov edx, ebx
pop esi
mov dword [edx], 0
pop ebx
ret 0x14
mov eax, dword [esp + 0x20]
test eax, eax
mov dword [ebx], eax
jne 0x41800d
push esi
push 1
push 0xfffffffffffffffd
mov dword [ebx], 0
call sym.ptapdl.exe__sys_stat_set_12
pop edi
pop esi
pop ebx
ret 0x14
cmp eax, edi
jae 0x41802b
push esi
push 0xa
push 0xfffffffffffffffd
call sym.ptapdl.exe__sys_stat_set_12
push esi
push edi
call sym.ptapdl.exe__sys_stat_parm_int_8
mov eax, dword [ebx]
push esi
push eax
call sym.ptapdl.exe__sys_stat_parm_int_8
pop edi
pop esi
pop ebx
ret 0x14
Function at 0x4018d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43e5c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x17c
mov eax, dword [0x455790]
push esi
push edi
mov dword [esp + 0x17c], eax
push str.P2PClient
lea ecx, [esp + 0x60]
call dword [0x4431e4]
mov eax, dword [0x455040]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x190], 0
call dword [0x4431e4]
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
push ecx
push str.send_kwmv_status_to_client_app._code_u
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x30]
push 0
push eax
mov byte [esp + 0x1a0], 1
call dword [0x44312c]
add esp, 0x14
lea ecx, [esp + 0x24]
mov byte [esp + 0x18c], 0
call dword [0x4431ec]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x18c], 0xffffffff
call dword [0x4431ec]
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x78]
rep stosd dword es:[edi], eax
mov ecx, dword [esi]
push ecx
push str.code:_u
lea edx, [esp + 0x80]
push 0x100
push edx
call dword [0x4432a4]
add esp, 0x10
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x44]
call dword [0x4431e4]
push str.P2P_KWMV_MSG
lea ecx, [esp + 0xc]
mov dword [esp + 0x190], 2
call dword [0x4431e4]
push 0
push 0
push 0
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x1a0], 3
call dword [0x443138]
add esp, 0x14
lea ecx, [esp + 8]
mov byte [esp + 0x18c], 2
call dword [0x4431ec]
lea ecx, [esp + 0x40]
mov dword [esp + 0x18c], 0xffffffff
call dword [0x4431ec]
push str.KwTEP2PDLL
push 4
push esi
push 9
call fcn.00436410
mov ecx, dword [esp + 0x194]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x18c]
add esp, 0x10
call fcn.0043db27
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x402120
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43e633
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [0x4431f0]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [0x4431c8]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [0x4431f0]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [0x4431ec]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x4021a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43e633
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [0x4431e4]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [0x4431c8]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [0x4431f0]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [0x4431ec]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x402220
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43e633
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [0x4431f0]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [0x4431c4]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [0x4431f0]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [0x4431ec]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x4022a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43e633
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [0x4431f0]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [0x4431c0]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [0x4431f0]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [0x4431ec]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x408d40
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x43ef46
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esi], 0x444088
push edi
xor edi, edi
mov dword [esp + 0x10], esi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov ebx, dword [0x4430b0]
lea eax, [esi + 0x18]
push eax
mov dword [esp + 0x20], edi
call ebx
lea ebp, [esi + 0x30]
mov ecx, ebp
mov byte [esp + 0x1c], 1
call fcn.004089c0
mov dword [ebp + 4], eax
lea eax, [esi + 0x3c]
push eax
mov dword [ebp + 8], edi
call ebx
push edi
push 0x7fffffff
push edi
push edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
call dword [0x4430b8]
lea ecx, [esi + 0x70]
push ecx
mov dword [esi + 0x6c], eax
call ebx
lea edx, [esi + 0x9c]
push edx
mov dword [esi + 0x8c], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
call ebx
mov dword [esi + 0xb4], edi
mov dword [esi + 0xc4], edi
xor eax, eax
lea ecx, [esi + 0xc8]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x14]
mov dword [esi + 0xd8], edi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret