joyce8/EMBER2024-capa huggingface dataset:
Function at 0x493d10
Capabilities:
Create tcp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
sub esp, 0xa4
mov eax, dword [0x597fa8]
xor eax, esp
mov dword [esp + 0xa0], eax
push esi
push edi
mov esi, ecx
call fcn.00493420
mov edi, dword [esi + 0xb4]
neg edi
sbb edi, edi
push 6
and edi, 0x15
push 1
add edi, 2
push edi
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x180], eax
je 0x493ebf
push 4
lea ecx, [esp + 0xc]
push ecx
push 1
push 0xffff
push eax
mov dword [esp + 0x1c], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edx, dword [0x59910c]
mov eax, dword [edx + 0x10]
mov ecx, dword [esi + 0x180]
push 0x28
push 0x402
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
xor eax, eax
cmp edi, 0x17
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
jne 0x493dca
push 0x1c
lea edx, [esp + 0x10]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x180]
push edx
mov word [esp + 0x14], di
push eax
jmp 0x493ddf
mov edx, dword [esi + 0x180]
push 0x10
lea ecx, [esp + 0x10]
push ecx
mov word [esp + 0x14], 2
push edx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x493eac
mov eax, dword [esi + 0x180]
push closesocket
push eax
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x493e99
mov eax, dword [esi + 0x180]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x2c]
push edx
push eax
mov dword [esp + 0x14], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x493e86
mov ax, word [esp + 0x28]
cmp ax, 0x17
je 0x493e3e
cmp ax, 2
jne 0x493e74
movzx eax, word [esp + 0x2a]
test eax, eax
je 0x493e74
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
push ecx
push str.229_Entering_Extended_Passive_Mode___d__r_n
mov ecx, esi
call fcn.00492d00
mov dword [esi + 0x178], 2
mov dword [esi + 0x17c], 1
jmp 0x493ed7
call fcn.00493420
movsx edx, word [esp + 0x28]
push edx
push str.500_Failed_to_enter_passive_mode__invalid_family__d_r_n
jmp 0x493ed0
call fcn.00493420
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.500_Failed_to_enter_passive_mode__getsockname_failed__d_r_n
jmp 0x493ed0
call fcn.00493420
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.500_Failed_to_enter_passive_mode__socket_listen__d_r_n
jmp 0x493ed0
call fcn.00493420
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.500_Failed_to_enter_passive_mode__bind_failed__d_r_n
jmp 0x493ed0
call fcn.00493420
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.500_Failed_to_enter_passive_mode__socket_failed__d_r_n
mov ecx, esi
call fcn.00492d00
mov ecx, dword [esp + 0xb0]
add esp, 8
pop edi
pop esi
xor ecx, esp
call fcn.005498fd
add esp, 0xa4
ret
Function at 0x495310
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x88
mov eax, dword [0x597fa8]
xor eax, esp
mov dword [esp + 0x84], eax
push esi
push edi
push 0x248
call fcn.004a47b0
push 0x248
xor edi, edi
mov esi, eax
push edi
push esi
call fcn.00549ff0
mov eax, dword [esp + 0xa0]
add esp, 0xc
push esi
push 0x493cd0
push edi
mov dword [esi + 8], eax
mov dword [esi + 0xa8], edi
call fcn.004c05b0
push eax
call fcn.00411960
push 0x551656
mov dword [esi + 0x8c], eax
call fcn.0051c5e0
push 0x551656
mov dword [esi + 0xb8], eax
mov dword [esi + 0x204], 0xffffffff
mov dword [esi + 0xb4], edi
mov dword [esi + 0x200], edi
call fcn.0051c5e0
push 0x551656
mov dword [esi + 0xdc], eax
call fcn.0051c5e0
push 0x551656
mov dword [esi + 0xe0], eax
mov dword [esi + 0xe8], edi
call fcn.0051c5e0
push 0x551656
mov dword [esi + 0x128], eax
call fcn.0051c5e0
lea ecx, [esp + 8]
push ecx
lea edx, [esi + 0xc]
mov dword [esi + 0x12c], eax
mov eax, dword [esi + 8]
push edx
push eax
mov dword [esi + 0x134], edi
mov dword [esi + 0xbc], 1
mov dword [esi + 0xf0], 0xffffffff
mov dword [esp + 0x14], 0x80
call dword [sym.imp.WS2_32.dll_getpeername]
mov eax, dword [esi + 8]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x14], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
cmp word [esp + 0xc], 0x17
jne 0x49543a
mov dword [esi + 0xb4], 1
mov eax, dword [0x59910c]
cmp dword [eax + 8], edi
je 0x49545e
mov ecx, dword [eax + 0xc]
mov dword [ecx + 0xac], esi
mov edx, dword [0x59910c]
mov eax, dword [edx + 0xc]
mov dword [esi + 0xb0], eax
jmp 0x495467
mov dword [eax + 8], esi
mov dword [esi + 0xb0], edi
mov dword [esi + 0xac], edi
mov ecx, dword [0x59910c]
push str.Connected._r_n
push esi
mov dword [ecx + 0xc], esi
call fcn.00492b10
mov ecx, dword [esp + 0x94]
add esp, 8
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.005498fd
add esp, 0x88
ret 4
Function at 0x496920
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x3b4
mov eax, dword [0x597fa8]
xor eax, esp
mov dword [esp + 0x3b0], eax
cmp byte [0x58b74b], 0
push edi
mov edi, dword [esp + 0x3bc]
je 0x496b81
lea eax, [esp + 4]
push eax
call fcn.00523650
lea ecx, [esp + 4]
push ecx
call fcn.005240f0
cmp dword [0x59910c], 0
jne 0x496b53
lea edx, [esp + 0x224]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x496b39
push 0x1c
call fcn.004a47b0
mov dword [0x59910c], eax
xor ecx, ecx
mov dword [eax], ecx
mov eax, dword [0x59910c]
mov dword [eax + 4], ecx
mov edx, dword [0x59910c]
mov dword [edx + 8], ecx
mov eax, dword [0x59910c]
mov dword [eax + 0xc], ecx
mov edx, dword [0x59910c]
mov dword [edx + 0x10], ecx
mov eax, dword [0x59910c]
mov dword [eax + 0x14], ecx
mov edx, dword [0x59910c]
mov dword [edx + 0x18], ecx
mov eax, dword [0x59900c]
push eax
call fcn.0051c5e0
mov ecx, dword [0x59910c]
push 0
push 0
push 0
push 0x496540
mov dword [ecx + 0x18], eax
mov edx, dword [0x59910c]
mov eax, dword [0x58b74c]
push str.EVERYTHING_ETP_SERVER
push 0
mov dword [edx + 0x14], eax
call fcn.004aa4a0
push 0
push 0
call dword [0x598d28]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.EVERYTHING_ETP_SERVER
push str.EVERYTHING_ETP_SERVER
push 0
call fcn.004aa5f0
mov ecx, dword [0x59910c]
mov dword [ecx + 0x10], eax
mov cx, word [esp + 0x224]
cmp cl, 1
je 0x496a73
mov ax, cx
shr ax, 8
cmp al, 1
je 0x496a73
movzx edx, al
movzx eax, cl
mov ecx, dword [0x58eedc]
push edx
mov edx, dword [ecx + 0x1184]
push eax
push edx
lea eax, [esp + 0x10]
push eax
call fcn.00524470
add esp, 0x10
jmp 0x496afa
mov ecx, dword [0x59900c]
cmp byte [ecx], 0
je 0x496aee
push esi
lea edx, [esp + 0x118]
push edx
call fcn.00523650
mov eax, dword [0x59900c]
push eax
lea eax, [esp + 0x11c]
push eax
call fcn.00525200
mov esi, eax
test esi, esi
je 0x496ade
jmp 0x496ab0
mov eax, dword [esp + 0x120]
cmp byte [eax], 0
je 0x496aca
lea ecx, [esp + 8]
push ecx
call fcn.00492960
test eax, eax
je 0x496ade
push esi
lea edx, [esp + 0x11c]
push edx
call fcn.00525200
mov esi, eax
test esi, esi
jne 0x496ab0
lea eax, [esp + 0x118]
push eax
call fcn.00401210
pop esi
jmp 0x496afa
lea ecx, [esp + 4]
push ecx
xor eax, eax
call fcn.00492960
mov edx, dword [0x59910c]
cmp dword [edx], 0
je 0x496b32
mov eax, dword [esp + 0xc]
cmp byte [eax], 0
je 0x496b21
push eax
push str.ETP_server_started__but_with_errors:__s_n
push 0xffff0000
call fcn.0048f0a0
add esp, 0xc
push str.ETP_server_online._r_n
push 0
call fcn.00492b10
add esp, 8
jmp 0x496b77
call fcn.00495270
jmp 0x496b53
push eax
mov eax, dword [0x58eedc]
mov ecx, dword [eax + 0x1180]
push ecx
lea edx, [esp + 0xc]
push edx
call fcn.00524470
add esp, 0xc
mov eax, dword [esp + 0xc]
cmp byte [eax], 0
je 0x496b77
push eax
mov eax, dword [0x58eedc]
mov ecx, dword [eax + 0x1130]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push edi
call fcn.004aa1b0
add esp, 0x14
lea eax, [esp + 4]
push eax
call fcn.00401210
mov ecx, dword [esp + 0x3b4]
pop edi
xor ecx, esp
call fcn.005498fd
add esp, 0x3b4
ret 4
Function at 0x4973b0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebx
push ebp
push 1
push eax
xor ebp, ebp
call fcn.004a9cd0
mov ebx, eax
cmp ebx, 0xffffffff
je 0x497454
push esi
lea ecx, [esp + 0xc]
push ecx
push ebx
call fcn.004aba70
test eax, eax
je 0x49744c
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x497437
push edi
call fcn.004a47f0
mov esi, eax
test esi, esi
je 0x49744b
push ebp
lea edx, [esp + 0x20]
push edx
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49741e
cmp dword [esp + 0x1c], edi
jne 0x49741e
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push eax
push ecx
push edi
push esi
call dword [esp + 0x30]
mov ebp, eax
push esi
call fcn.004a4810
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push edx
push eax
push 0
push 0
call dword [esp + 0x30]
mov ebp, eax
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret 0x10

Function at 0x497460
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
mov eax, dword [0x597fa8]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
push ebx
push esi
mov esi, dword [esp + 0x34]
push edi
push 1
push eax
xor edi, edi
call fcn.004a9cd0
mov ebx, eax
cmp ebx, 0xffffffff
je 0x49751c
push edi
lea eax, [esp + 0x10]
push eax
push 0x1a
lea ecx, [esp + 0x1c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x497515
cmp dword [esp + 0xc], 0x1a
jne 0x497515
mov edx, dword [esp + 0x10]
and edx, 0xffffff00
cmp edx, 0x474e5000
jne 0x497515
cmp dword [esp + 0x1c], 0x52444849
jne 0x497515
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
bswap eax
bswap ecx
mov dword [esi], eax
movzx eax, byte [esp + 0x29]
sub eax, 2
mov dword [esi + 4], ecx
movzx ecx, byte [esp + 0x28]
mov dword [esi + 8], ecx
je 0x49750a
sub eax, 2
je 0x497502
sub eax, 2
jne 0x497510
lea edx, [ecx*4]
mov dword [esi + 8], edx
jmp 0x497510
lea eax, [ecx + ecx]
mov dword [esi + 8], eax
jmp 0x497510
lea ecx, [ecx + ecx*2]
mov dword [esi + 8], ecx
mov edi, 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x2c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005498fd
add esp, 0x24
ret 8

Function at 0x497540
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x20
push esi
push edi
push 1
push eax
xor edi, edi
call fcn.004a9cd0
mov esi, eax
cmp esi, 0xffffffff
je 0x4975a7
push edi
lea ecx, [esp + 0x30]
push ecx
push 0x1e
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4975a0
cmp dword [esp + 0x2c], 0x1e
jne 0x4975a0
cmp word [esp + 8], 0x4d42
jne 0x4975a0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x1a]
mov edx, dword [esp + 0x1e]
mov dword [eax], ecx
movzx ecx, word [esp + 0x24]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x20
ret 8
Function at 0x4977e0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
push esi
push edi
push 1
push eax
xor edi, edi
call fcn.004a9cd0
mov esi, eax
cmp esi, 0xffffffff
je 0x49785a
push edi
lea ecx, [esp + 0x1c]
push ecx
push 0xa
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x497853
cmp dword [esp + 0x18], 0xa
jne 0x497853
cmp dword [esp + 8], 0x38464947
jne 0x497853
mov ax, word [esp + 0xc]
cmp ax, 0x6139
je 0x497834
cmp ax, 0x6137
jne 0x497853
movzx ecx, word [esp + 0xe]
mov eax, dword [esp + 0x1c]
movzx edx, word [esp + 0x10]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], 8
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret 8

Function at 0x497870
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xbc
mov eax, dword [0x597fa8]
xor eax, esp
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0xc0]
push ebx
push ebp
mov ebp, dword [esp + 0xcc]
push esi
push 1
push eax
xor esi, esi
call fcn.004a9cd0
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4979dc
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je case.default.0x49792d
mov ecx, dword [esp + 0x34]
push esi
push esi
add ecx, 0xffffff80
push ecx
push ebx
call fcn.004af360
test eax, eax
je case.default.0x49792d
push esi
lea edx, [esp + 0x10]
push edx
push 0x80
lea eax, [esp + 0x50]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je case.default.0x49792d
cmp dword [esp + 0xc], 0x80
jne case.default.0x49792d
cmp byte [esp + 0x44], 0x54
jne case.default.0x49792d
cmp byte [esp + 0x45], 0x41
jne case.default.0x49792d
cmp byte [esp + 0x46], 0x47
jne case.default.0x49792d
cmp ebp, 6
ja case.default.0x49792d
jmp dword [ebp*4 + 0x4979f8]
push 0x1e
lea ecx, [esp + 0x4b]
push ecx
push edi
call fcn.00525cc0
jmp 0x4979d0
push 0x1e
lea edx, [esp + 0x69]
push edx
push edi
call fcn.00525cc0
jmp 0x4979d0
push 0x1e
lea eax, [esp + 0x87]
push eax
push edi
call fcn.00525cc0
jmp 0x4979d0
push 4
lea ecx, [esp + 0xa5]
push ecx
push edi
call fcn.00525cc0
jmp 0x4979d0
push 0x1e
lea edx, [esp + 0xa9]
push edx
push edi
call fcn.00525cc0
jmp 0x4979d0
cmp byte [esp + 0xc1], 0
jne case.default.0x49792d
mov al, byte [esp + 0xc2]
test al, al
je case.default.0x49792d
movzx eax, al
push eax
push 0x551658
push edi
call fcn.00524470
add esp, 0xc
jmp 0x4979d0
mov al, byte [esp + 0xc3]
cmp al, 0x7e
jae case.default.0x49792d
movzx ecx, al
mov edx, dword [ecx*4 + 0x58d058]
push edx
push edi
call fcn.00523fb0
mov esi, 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xc4]
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005498fd
add esp, 0xbc
ret 8
Function at 0x49e2e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x144
mov eax, dword [0x597fa8]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push ebp
mov ebp, dword [esp + 0x150]
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov dword [esp + 0x10], ebx
xor edi, edi
lea esp, [esp]
mov eax, dword [ebx + 0x58d4d8]
push eax
push ebp
call fcn.0051d6f0
test eax, eax
je 0x49e34b
add ebx, 0xc
add edi, 1
cmp ebx, 0x60
jb 0x49e310
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x150]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005498fd
add esp, 0x144
ret 4
mov edx, dword [0x599190]
lea edi, [edi + edi*2]
add edi, edi
movzx ecx, word [edi + edi + 0x58d4e0]
add edi, edi
push 0xa
push ecx
push edx
call dword [0x598cec]
mov ebp, eax
test ebp, ebp
je 0x49e32c
mov eax, dword [0x599190]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jle 0x49e32c
mov ecx, dword [0x599190]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [esp + 0x14], eax
je 0x49e32c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x49e44c
lea edx, [esp + 0x40]
push edx
call fcn.00523650
mov eax, dword [0x599190]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.004ad650
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x18]
push edx
push eax
call fcn.004ade20
lea ecx, [esp + 0x40]
push ecx
call fcn.00401210
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, dword [edi + 0x58d4dc]
push 0
push 0
push 0
push 0
push 0
push 1
push edx
push eax
mov eax, ebx
cdq
push edx
push eax
push ecx
mov edi, esi
call fcn.0049c950
push ebp
mov eax, ebx
mov ecx, esi
call fcn.0049b260
call fcn.0049abc0
mov edx, dword [esi]
mov eax, dword [0x599138]
push 0
push edx
mov dword [esi + 0x54], 1
mov ecx, dword [eax + 8]
push 0x401
push ecx
call dword [0x598e0c]
mov edx, dword [esp + 0x14]
push edx
mov esi, 1
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
jmp 0x49e330
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
jmp 0x49e330
Function at 0x4a20f0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x20c
mov eax, dword [0x597fa8]
xor eax, esp
mov dword [esp + 0x208], eax
cmp byte [0x58b6a4], 0
je 0x4a2198
mov eax, esi
call fcn.004a2000
test eax, eax
je 0x4a2198
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push esi
call dword [0x598e00]
test eax, eax
je 0x4a2198
lea ecx, [esi - 0x10]
shl eax, 0x10
cmp ecx, 0x80
ja case.0x4a214c.19
movzx ecx, byte [ecx + 0x4a21bc]
jmp dword [ecx*4 + 0x4a21b0]
or eax, 0x2000000
jmp case.0x4a214c.19
or eax, 0x1000000
push 0x104
lea edx, [esp + 4]
push edx
push eax
call dword [0x598dd0]
test eax, eax
je 0x4a2198
lea eax, [esp]
push eax
push edi
call fcn.00524000
mov eax, 1
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.005498fd
add esp, 0x20c
ret
mov ecx, dword [esp + 0x208]
xor ecx, esp
xor eax, eax
call fcn.005498fd
add esp, 0x20c
ret

Function at 0x4a2570
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x114
mov eax, dword [0x597fa8]
xor eax, esp
mov dword [esp + 0x110], eax
lea eax, [esp]
push eax
call fcn.00523650
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 4]
push ecx
call fcn.00524000
mov edx, dword [esp + 8]
push 0
push 0
push edx
call fcn.00404f20
mov dword [0x599168], eax
lea eax, [esp]
push eax
call fcn.00401210
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.005498fd
add esp, 0x114
ret

Function at 0x4a2730
Capabilities:
Terminate process

Disassembly:
push ecx
push edi
push str.EVERYTHING_TASKBAR_NOTIFICATION
call fcn.004ac210
mov edi, eax
test edi, edi
je 0x4a27b5
lea eax, [esp + 4]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4a27b5
mov ecx, dword [esp + 4]
push esi
push ecx
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push 0
push 0x10
push edi
mov esi, eax
call dword [0x598e0c]
push 0xea60
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4a27ad
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x4a27ad
push str.Timed_out_while_waiting_for_Everything.exe_to_close
push str._main_close_existing_process
push 0x1bb
push str.._srcmain.c
call fcn.0048f230
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ecx
ret
Function at 0x4a3a90
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x34c
mov eax, dword [0x597fa8]
xor eax, esp
mov dword [esp + 0x348], eax
mov eax, dword [0x599168]
push ebp
push esi
push edi
xor edi, edi
cmp dword [eax + 0xc], edi
mov dword [esp + 0x10], edi
je 0x4a3ac3
mov eax, dword [eax + 0xc]
cmp byte [eax], 0
je 0x4a3ac3
mov esi, eax
jmp 0x4a3ad2
mov eax, dword [0x598eb4]
mov cl, byte [eax]
neg cl
sbb ecx, ecx
and ecx, eax
mov esi, ecx
lea edx, [esp + 0x24]
push edx
call fcn.00523650
lea eax, [esp + 0x24]
push str.EVERYTHING_TASKBAR_NOTIFICATION
push eax
call fcn.00524470
add esp, 8
test esi, esi
je 0x4a3b1b
push 0x56d60c
lea ecx, [esp + 0x28]
push ecx
call fcn.005237f0
push esi
lea edx, [esp + 0x28]
push edx
call fcn.005237f0
push 0x552044
lea eax, [esp + 0x28]
push eax
call fcn.005237f0
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.004ac210
lea edx, [esp + 0x24]
push edx
mov ebp, eax
call fcn.00401210
test ebp, ebp
je 0x4a3c83
push ebx
lea eax, [esp + 0x138]
push eax
call fcn.00523650
lea ecx, [esp + 0x248]
push ecx
call fcn.00523650
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea edx, [esp + 0x13c]
push edx
call fcn.00524000
lea eax, [esp + 0x248]
push eax
call fcn.004ad9b0
lea ecx, [esp + 0x10]
push ecx
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [esp + 0x10]
push edx
call dword [0x58ef30]
mov eax, dword [esp + 0x138]
mov ecx, dword [esp + 0x248]
lea edi, [ecx + eax + 6]
push edi
call fcn.004a47b0
mov edx, dword [esp + 0x360]
mov esi, eax
mov dword [esi], edx
mov eax, dword [esp + 0x138]
mov ecx, dword [esp + 0x140]
add eax, 1
push eax
push ecx
lea ebx, [esi + 4]
push ebx
call fcn.00549c80
mov edx, dword [esp + 0x254]
mov eax, dword [esp + 0x25c]
mov ecx, dword [esp + 0x144]
add edx, 1
push edx
push eax
lea edx, [ebx + ecx + 1]
push edx
call fcn.00549c80
push str.send_cl_n
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], esi
call fcn.0048f080
add esp, 0x1c
lea eax, [esp + 0x24]
push eax
push 0x7530
push 9
lea ecx, [esp + 0x24]
push ecx
push 0
push 0x4a
push ebp
call dword [0x598e20]
test eax, eax
pop ebx
je 0x4a3c46
push str.send_message_ok_n
push 0xff00ff00
mov edi, 1
call fcn.0048f0a0
add esp, 8
jmp 0x4a3c63
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.send_message_failed__u_n
push 0xffff0000
call fcn.0048f0a0
mov edi, dword [esp + 0x1c]
add esp, 0xc
push esi
call fcn.004a4810
lea edx, [esp + 0x244]
push edx
call fcn.00401210
lea eax, [esp + 0x134]
push eax
call fcn.00401210
mov ecx, dword [esp + 0x354]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.005498fd
add esp, 0x34c
ret 4
Function at 0x4a3d20
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x32c
mov eax, dword [0x597fa8]
xor eax, esp
mov dword [esp + 0x328], eax
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov edi, eax
mov dword [esp + 0x10], edi
call esi
sub eax, edi
cmp eax, 0x7530
ja 0x4a3e79
mov ebx, dword [0x598cd0]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
lea eax, [esp + 0x124]
push eax
call fcn.00523650
lea ecx, [esp + 0x14]
push ecx
call fcn.00523650
lea edx, [esp + 0x14]
push str.EVERYTHING_MUTEX
push edx
call fcn.00524470
add esp, 8
call fcn.004a3a20
test eax, eax
je 0x4a3dad
call fcn.004a3a20
push eax
lea eax, [esp + 0x18]
push 0x56d63c
push eax
call fcn.00524610
add esp, 0xc
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x128]
push edx
call fcn.005277a0
lea eax, [esp + 0x14]
push eax
call fcn.00401210
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [0x599160]
cmp eax, edi
je 0x4a3de6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x599160], edi
mov eax, dword [esp + 0x12c]
cmp word [eax], di
je 0x4a3e0c
cmp word [eax], 0x5c
jne 0x4a3dfd
mov word [eax], 0x5f
add eax, 2
cmp word [eax], di
jne 0x4a3df2
mov eax, dword [esp + 0x12c]
push eax
push edi
push edi
call ebx
mov dword [0x599160], eax
call ebp
lea ecx, [esp + 0x124]
push ecx
mov esi, eax
call fcn.00401210
cmp esi, 0xb7
jne 0x4a3e8b
push str.mutex_exists_n
call fcn.0048f080
mov edx, dword [0x599168]
add esp, 4
test dword [edx + 4], 0x800000
jne 0x4a3e7d
mov eax, dword [esp + 0x340]
push eax
call fcn.004a3a90
test eax, eax
jne 0x4a3e79
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x10]
cmp eax, 0x7530
jbe 0x4a3d63
xor eax, eax
jmp 0x4a3e9c
mov dword [0x599164], 1
xor eax, eax
jmp 0x4a3e9c
mov ecx, dword [0x599168]
mov eax, dword [ecx + 8]
shr eax, 0x17
not eax
and eax, 1
mov ecx, dword [esp + 0x338]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005498fd
add esp, 0x32c
ret 4

Function at 0x4a48b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
test esi, esi
push edi
mov edi, dword [esp + 0x18]
jle 0x4a48e8
mov ebx, dword [esp + 0x14]
mov ebp, dword [sym.imp.WS2_32.dll_send]
lea ebx, [ebx]
push 0
push esi
push edi
push ebx
call ebp
cmp eax, 0xffffffff
je 0x4a48f4
test eax, eax
je 0x4a48f4
sub esi, eax
add edi, eax
test esi, esi
jg 0x4a48d0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc