joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a8ab
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
push esi
push ebx
mov ebx, dword [ebp + 0x10]
cmp ebx, 0
je 0x43a8ca
mov eax, 0x4da65b
mov dword [ebx + 4], 0
mov dword [ebx], eax
lea esi, [0x4da65c]
mov dword [ebp - 8], 0
mov byte [ebp - 1], 1
lea eax, [ebp - 0x1c]
push 0x10
push 0
push eax
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004a7ae0
mov word [ebp - 0x1c], 2
movzx eax, word [ebp + 0xc]
add esp, 0xc
push eax
mov eax, dword [sym.imp.WS2_32.dll_htons]
call eax
mov word [ebp - 0x1a], ax
push dword [ebp + 8]
mov eax, dword [sym.imp.WS2_32.dll_inet_addr]
call eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x43a953
push dword [ebp + 8]
mov eax, dword [sym.imp.WS2_32.dll_gethostbyname]
call eax
mov edi, eax
cmp edi, 0
jne 0x43a949
cmp ebx, 0
je 0x43a93f
mov dword [ebx + 4], 1
mov eax, str._connectToServer_:_Unable_to_resolve_host
mov dword [ebx], eax
mov eax, 0
jmp 0x43aa1b
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
push 0
push 1
push 2
mov eax, dword [sym.imp.WS2_32.dll_socket]
call eax
lea edi, [ebp - 0x1c]
mov dword [ebp - 8], eax
push 0x10
push edi
push dword [ebp - 8]
mov eax, dword [sym.imp.WS2_32.dll_connect]
call eax
test eax, eax
je 0x43a9c5
cmp ebx, 0
je 0x43a9be
mov dword [ebx + 4], 1
mov eax, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call eax
sub eax, 0x2740
je 0x43a9a4
sub eax, 0xd
je 0x43a9ad
sub eax, 0x20
jne 0x43a9b6
mov eax, str._ConnectToServer_:_WSA_not_initialized
mov dword [ebx], eax
jmp 0x43a9be
mov edx, str._ConnectToServer_:_address_in_use
mov dword [ebx], edx
jmp 0x43a9be
mov eax, str._ConnectToServer_:_connection_refused
mov dword [ebx], eax
jmp 0x43a9be
mov eax, str._ConnectToServer_:_connection_failed
mov dword [ebx], eax
nop
mov eax, 0
jmp 0x43aa1b
mov dword [ebp - 0xc], 1
lea edi, [ebp - 0xc]
push edi
push 0x8004667e
push dword [ebp - 8]
mov eax, dword [sym.imp.WS2_32.dll_ioctlsocket]
call eax
push 0
push 1
push dword [ebp - 8]
mov eax, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
call eax
lea eax, [ebp - 1]
push 1
push eax
push 4
push 0xffff
push dword [ebp - 8]
mov eax, dword [sym.imp.WS2_32.dll_setsockopt]
call eax
push 1
lea ebx, [ebp - 1]
push ebx
push 1
push 6
push dword [ebp - 8]
mov eax, dword [sym.imp.WS2_32.dll_setsockopt]
call eax
mov eax, dword [ebp - 8]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x43ba99
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push esi
lea eax, [ebp - 0xc]
push ebx
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push eax
call fcn.0043a279
add esp, 4
cmp ebx, 0
jne 0x43babb
lea ebx, [ebp - 0xc]
mov dword [ebx + 4], 0
mov eax, 0x4dab03
mov dword [ebx], eax
push dword [esi + 0xc]
call fcn.0044b4a5
sub esp, 0xfffffffc
or al, al
jne 0x43bafb
mov dword [ebx + 4], 3
lea eax, [ebp - 0xc]
mov esi, str._launch_:_No_launch_is_in_progress.
mov dword [ebx], esi
push 2
push eax
call fcn.0043a2a9
mov al, 0
sub esp, 0xfffffff8
jmp 0x43bbab
cmp dword [esi], 0
jne 0x43bb23
mov eax, str._launch_:_Transport_is_required.
mov dword [ebx + 4], 3
mov dword [ebx], eax
push 2
lea eax, [ebp - 0xc]
push eax
call fcn.0043a2a9
mov al, 0
sub esp, 0xfffffff8
jmp 0x43bbab
cmp byte [esi + 4], 0
je 0x43bb3b
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.0043a2a9
add esp, 8
mov al, 1
jmp 0x43bbab
push 0
push dword [esi + 0xc]
call fcn.0044b4b1
sub esp, 0xfffffffc
push eax
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call eax
or eax, eax
jne 0x43bb64
mov eax, str._launch_:_Program_died_before_connecting.
mov dword [ebx + 4], 4
mov dword [ebx], eax
jmp 0x43bb74
push ebx
push 1
push dword [esi]
call fcn.00437be4
mov byte [esi + 4], al
add esp, 0xc
cmp dword [ebx + 4], 0
je 0x43bb8f
push 0
push dword [esi + 0xc]
call fcn.0044b4b1
sub esp, 0xfffffffc
push eax
mov eax, dword [sym.imp.KERNEL32.dll_TerminateProcess]
call eax
cmp byte [esi + 4], 0
mov al, byte [esi + 4]
mov byte [ebp - 1], al
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.0043a2a9
sub esp, 0xfffffff8
movzx eax, byte [ebp - 1]
pop ebx
pop esi
leave
ret

Function at 0x43bbe9
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push ebx
mov esi, dword [ebp + 8]
cmp esi, 0
mov ebx, dword [ebp + 0xc]
jne 0x43bc01
jmp 0x43bcae
lea eax, [ebp - 0x1c]
push eax
call fcn.0043a038
sub esp, 0xfffffffc
cmp ebx, 0
jne 0x43bc15
lea ebx, [ebp - 0x1c]
mov eax, dword [ebx + 0x10]
push ebx
lea eax, [eax + 0x10]
mov eax, dword [eax + 4]
call eax
add esp, 4
nop
push 0
push esi
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call eax
test eax, eax
sete al
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
je 0x43bc5c
mov eax, dword [ebx + 0x10]
push ebx
lea eax, [eax + 0x20]
mov eax, dword [eax + 4]
call eax
lea eax, [ebp - 0x1c]
sub esp, 0xfffffffc
push 2
push eax
call fcn.0043a12e
add esp, 8
jmp 0x43bcae
mov eax, dword [ebx + 0x10]
lea eax, [eax + 0x18]
push ebx
mov eax, dword [eax + 4]
call eax
add esp, 4
or al, al
je 0x43bc80
mov eax, dword [ebx + 0x10]
lea eax, [eax + 0x30]
push ebx
mov eax, dword [eax + 4]
call eax
sub esp, 0xfffffffc
jmp 0x43bca9
push 0
push esi
mov eax, dword [sym.imp.KERNEL32.dll_TerminateProcess]
call eax
mov eax, dword [ebx + 0x10]
push ebx
lea eax, [eax + 0x20]
mov eax, dword [eax + 4]
call eax
lea eax, [ebp - 0x1c]
add esp, 4
push 2
push eax
call fcn.0043a12e
add esp, 8
jmp 0x43bcae
jmp 0x43bc25
pop ebx
pop esi
leave
ret
Function at 0x448660
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push esi
push ebx
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
or eax, eax
mov bl, byte [ebp + 0x1c]
jne 0x448680
mov al, 1
jmp 0x44870d
cmp dword [ebp + 0x10], 0x102
jne 0x44870b
cmp byte [ebp + 0x18], 0
je 0x4486e4
cmp esi, 0
je 0x44869d
mov dword [ebp - 0xc], esi
jmp 0x4486a4
mov dword [ebp - 0xc], 0x4db70a
cmp bl, 0
je 0x4486b2
mov dword [ebp - 8], str.__terminating_process
jmp 0x4486b9
mov dword [ebp - 8], 0x4db709
call fcn.00448712
mov dword [ebp - 4], eax
call fcn.004a6738
push dword [ebp - 8]
push dword [ebp + 0x14]
lea eax, [eax + 0x40]
push edi
push dword [ebp - 0xc]
push dword [ebp - 4]
push str._s:__s__handle_d__took_more_than__d_msecs_to_shut_down_s_n
push eax
call fcn.004a68ed
add esp, 0x1c
cmp bl, 0
je 0x448707
cmp dword [ebp + 0x20], 0
je 0x4486f9
push esi
push edi
mov eax, dword [ebp + 0x20]
call eax
add esp, 8
push 0
push edi
mov eax, dword [sym.imp.KERNEL32.dll_TerminateProcess]
call eax
mov al, 1
jmp 0x44870d
mov al, 0
jmp 0x44870d
mov al, 1
pop ebx
pop esi
pop edi
leave
ret

Function at 0x448f6c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push esi
push ebx
push edi
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebx], 0
push esi
call fcn.00448ec2
add esp, 4
or al, al
jne 0x448f95
mov al, 0
jmp 0x448fc3
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push 0
push eax
push dword [ebp + 0x14]
push edi
push dword [esi + 8]
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
call eax
or eax, eax
jne 0x448fbc
mov al, 0
mov byte [esi + 5], 0
jmp 0x448fc3
mov eax, dword [ebp - 4]
mov dword [ebx], eax
mov al, 1
pop edi
pop ebx
pop esi
leave
ret

Function at 0x448ffb
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
push esi
push ebx
mov edi, dword [ebp + 0xc]
mov eax, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [ebp + 8]
call eax
mov dword [ebp - 4], eax
mov eax, dword [0x4f88a4]
sub dword [0x4f88a4], 0xffffffff
mov dword [ebp - 8], eax
call fcn.004123be
push dword [ebp - 4]
push dword [ebp - 8]
push eax
push str..pipeGHSproc__d__d__d
call fcn.00442438
add esp, 0x10
mov esi, eax
mov dword [edi], 0xffffffff
mov eax, dword [edi]
mov dword [ebx], eax
lea eax, [ebp - 0x14]
push 0xc
push 0
push eax
call fcn.004a7ae0
lea eax, [ebp - 0x14]
sub esp, 0xfffffff4
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push eax
push 0
push 0x1000
push 0x1000
push 1
push 0
push 0x40000002
push esi
mov eax, dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
call eax
mov dword [ebx], eax
cmp dword [ebx], 0xffffffff
je 0x4490c7
lea eax, [ebp - 0x14]
push eax
push 0x40000000
push 3
push 0
push 1
push accept
push esi
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileA]
call eax
mov dword [edi], eax
cmp dword [edi], 0xffffffff
jne 0x4490c7
push dword [ebx]
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
mov dword [ebx], 0xffffffff
push esi
mov eax, dword [0x4d3eec]
call eax
add esp, 4
nop
pop ebx
pop esi
pop edi
leave
ret
Function at 0x44b8b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0x14]
sub esp, 0x1018
push edi
push esi
push ebx
mov esi, dword [ebp + 0xc]
push eax
push 0x20019
push 0
push str..html
push accept
mov eax, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call eax
mov ebx, eax
cmp ebx, 0
jne 0x44b9c7
mov dword [ebp - 0xc], 0x1001
lea eax, [ebp - 0xc]
push eax
lea ebx, [ebp - 0x10]
lea edi, [ebp - 0x1016]
push edi
push ebx
push 0
push 0x4dbc5a
push dword [ebp - 0x14]
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call eax
push dword [ebp - 0x14]
mov ebx, eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call eax
cmp ebx, 0
jne 0x44b9b4
cmp dword [ebp - 0x10], 1
jne 0x44b9b4
lea eax, [ebp - 0x1016]
push str._shellopencommand
push eax
call fcn.0040a950
sub esp, 0xfffffff8
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push edi
push accept
mov eax, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call eax
push edi
mov ebx, eax
mov eax, dword [0x4d3eec]
call eax
sub esp, 0xfffffffc
cmp ebx, 0
jne 0x44b9a1
lea ebx, [ebp - 4]
lea eax, [ebp - 8]
lea esi, [ebp - 0x1016]
mov dword [ebp - 4], 0x1001
push ebx
push esi
push eax
push 0
push 0x4dbc5a
push dword [ebp - 0x14]
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call eax
mov ebx, eax
push dword [ebp - 0x14]
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call eax
jmp 0x44b9c7
cmp esi, 0
je 0x44b9ad
mov edi, str.Error:_Could_not_read_Windows_registry_to_find_the_default_HTML_browser.
mov dword [esi], edi
mov eax, 0
jmp 0x44b9d6
cmp esi, 0
je 0x44b9c0
mov ebx, str.Error:_Could_not_read_Windows_registry_to_find_the_default_HTML_browser.
mov dword [esi], ebx
mov eax, 0
jmp 0x44b9d6
lea eax, [ebp - 0x1016]
push eax
call fcn.0040a7ee
add esp, 4
pop ebx
pop esi
pop edi
leave
ret
Function at 0x451f98
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0x60]
sub esp, 0x60
push edi
lea edi, [ebp - 0x1c]
push esi
lea esi, [0x4dbf88]
push ebx
push 0x44
mov ebx, 0
push 0
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004a7ae0
sub esp, 0xfffffff4
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x2e], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x34], 0x80
cmp dword [0x4f88b0], 0
je 0x452017
test dword [ebp + 0x24], 8
je 0x452017
and dword [ebp + 0x24], 0xfffffff7
or dword [ebp + 0x24], 0x10
or dword [ebp - 0x34], 1
mov word [ebp - 0x30], 0
cmp dword [ebp + 0x18], 0xffffffff
jne 0x452029
cmp dword [ebp + 0x1c], 0xffffffff
jne 0x452029
cmp dword [ebp + 0x20], 0xffffffff
je 0x452030
or dword [ebp - 0x34], 0x100
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x28], eax
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0x24], esi
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x20], eax
cmp dword [ebp + 8], 0
je 0x4520d3
push dword [ebp + 8]
call fcn.004111f9
add esp, 4
cmp eax, 1
je 0x4520d3
push dword [ebp + 8]
call fcn.0040c876
sub esp, 0xfffffffc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x45207f
push dword [ebp - 4]
mov eax, dword [0x4d3eec]
call eax
add esp, 4
jmp 0x4520d3
mov edi, 0
mov dword [ebp - 0xc], 0
lea edi, [ebp - 0xc]
push edi
push 0
push 0
push str..exe
push dword [ebp + 8]
push 0
mov eax, dword [sym.imp.KERNEL32.dll_SearchPathA]
call eax
mov edi, eax
cmp edi, 0
je 0x4520d3
push 1
push edi
mov eax, dword [fcn.004092c1]
call eax
mov esi, eax
lea eax, [ebp - 0xc]
add esp, 8
push eax
push esi
push edi
push str..exe
push dword [ebp + 8]
push 0
mov eax, dword [sym.imp.KERNEL32.dll_SearchPathA]
call eax
mov ebx, esi
cmp ebx, 0
jne 0x4520e5
push dword [ebp + 8]
call fcn.0040a7ee
sub esp, 0xfffffffc
mov ebx, eax
lea edi, [ebp - 0x60]
lea esi, [ebp - 0x1c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push 1
push 0
push 0
push dword [ebp + 0xc]
push ebx
mov eax, dword [sym.imp.KERNEL32.dll_CreateProcessA]
call eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x452132
mov eax, dword [ebp - 0x1c]
mov dword [0x4f88b4], eax
mov eax, dword [ebp - 0x14]
mov dword [0x4f88b8], eax
mov eax, dword [ebp - 0x10]
mov dword [0x4f88bc], eax
push dword [ebp - 0x18]
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x1c]
mov dword [edx], eax
push ebx
mov eax, dword [0x4d3eec]
call eax
mov eax, dword [ebp - 8]
sub esp, 0xfffffffc
pop ebx
pop esi
pop edi
leave
ret

Function at 0x455c90
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe70
cmp dword [0x4f88c0], 0
jne 0x455cbd
lea eax, [ebp - 0x190]
push eax
push 0x101
call sub.WS2_32.dll_WSAStartup
mov dword [0x4f88c0], 1
leave
mov eax, 0
ret
Function at 0x45761a
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push ebx
push esi
mov esi, dword [ebp + 8]
push esi
call sub.WS2_32.dll_gethostbyname
mov esi, eax
cmp esi, 0
je 0x45763b
movsx eax, word [esi + 0xa]
cmp eax, 4
je 0x457642
mov eax, 0xffffffff
jmp 0x457658
push 4
mov ebx, dword [esi + 0xc]
lea eax, [ebp - 4]
push dword [ebx]
push eax
call fcn.004a86b0
mov eax, dword [ebp - 4]
sub esp, 0xfffffff4
pop esi
pop ebx
leave
ret

Function at 0x458ac2
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push esi
mov esi, 0
push ebx
cmp esi, 0
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov ebx, 0
mov dword [eax], 0
jne 0x458afa
call fcn.0040fb6d
push eax
call fcn.0040a7ee
sub esp, 0xfffffffc
mov esi, eax
cmp esi, 0
je 0x458bec
mov byte [ebp - 1], 1
push 0x3a
push esi
call fcn.004a8cc0
mov edi, eax
sub esp, 0xfffffff8
cmp edi, 0
je 0x458b4c
push 0x2e
push edi
call fcn.004a8cc0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x458b33
mov eax, dword [ebp - 8]
mov byte [eax], 0
push 0
push 0
lea eax, [edi + 1]
push eax
call fcn.0040ddee
sub esp, 0xfffffff4
mov edx, dword [ebp + 8]
mov dword [edx + 4], eax
mov byte [edi], 0
cmp byte [esi], 0
je 0x458b8f
push 0x4dcfbb
push esi
call fcn.004a66b0
add esp, 8
or eax, eax
je 0x458b8f
push 0x4dcfc5
push esi
call fcn.004a66b0
add esp, 8
test eax, eax
je 0x458b8f
push str.0.0.0.0
push esi
call fcn.004a66b0
sub esp, 0xfffffff8
test eax, eax
je 0x458b8f
push esi
call sub.WS2_32.dll_gethostbyname
mov ebx, eax
cmp ebx, 0
je 0x458b9d
movsx eax, word [ebx + 0xa]
cmp eax, 4
je 0x458bbb
push esi
mov eax, dword [0x4d3eec]
call eax
sub esp, 0xfffffffc
call fcn.0040fb6d
mov byte [ebp - 1], 0
mov esi, eax
push esi
call sub.WS2_32.dll_gethostbyname
mov ebx, eax
cmp ebx, 0
je 0x458bdb
movsx eax, word [ebx + 0xa]
cmp eax, 4
jne 0x458bdb
push 4
mov eax, dword [ebx + 0xc]
push dword [eax]
push dword [ebp + 8]
call fcn.004a86b0
sub esp, 0xfffffff4
cmp byte [ebp - 1], 0
je 0x458bec
push esi
mov eax, dword [0x4d3eec]
call eax
sub esp, 0xfffffffc
nop
pop ebx
pop esi
pop edi
leave
ret
Function at 0x45bcac
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffe6a0
push edi
push esi
mov edi, 0x4f89dc
push ebx
mov esi, 0xfffffff4
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x10], 0x1000
call fcn.004649b9
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
push str.Get_nodelock_directory
push 0xb
call fcn.00456cac
lea eax, [ebp - 0x10]
sub esp, 0xfffffff8
push eax
lea eax, [ebx + 0x1d5]
push eax
call fcn.0041aef4
sub esp, 0xfffffff8
test eax, eax
jne 0x45bd0d
lea eax, [ebx + 0x1d5]
mov dword [ebx + 0x11d8], eax
push dword [ebx + 0x11d8]
mov eax, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call eax
cmp eax, 0xffffffff
je 0x45bd7f
lea eax, [ebp - 0xc]
push 0x12c
push 0xffffffffffffffff
push eax
push dword [ebx + 0x11d8]
call fcn.0041bc04
sub esp, 0xfffffff0
test al, al
je 0x45bd7f
push str.Check_nodelock_file
push 0xb
call fcn.00456cac
add esp, 8
mov dword [0x4f9758], ebx
mov byte [ebx + 0x11dc], 0
push 0x45a3b9
push dword [ebp + 8]
push dword [ebx + 0x11d8]
push dword [ebx + 0x18c]
call fcn.0046b030
mov dword [0x4f9758], 0
mov esi, eax
jmp 0x45bd8e
push str.Elan_nodelocks_skipped____directory_doesnt_exist
push 0xb
call fcn.00456cac
sub esp, 0xfffffff8
cmp esi, 0
jne 0x45becd
cmp byte [ebx + 0x11dc], 0
je 0x45becd
push dword [ebx + 0x11d8]
push edi
call fcn.004a7810
mov eax, dword [ebx + 0x11d8]
sub esp, 0xfffffff8
mov dword [ebp - 4], eax
push dword [ebx + 0x11d8]
call fcn.004a7700
mov edx, dword [ebp - 4]
sub esp, 0xfffffffc
cmp byte [edx + eax - 1], 0x2f
je 0x45bde2
push 0x4de68b
push edi
call fcn.004a7820
add esp, 8
push dword [ebp + 8]
push edi
call fcn.004a7820
add esp, 8
push str.Validate_nodelock_key
push 0xb
call fcn.00456cac
lea eax, [ebp - 0xb2c]
sub esp, 0xfffffff8
push edi
push eax
push dword [ebx + 0x18c]
call fcn.00469480
mov esi, eax
cmp esi, 0
jne 0x45be88
push str.Decode_nodelock_key
push 0xb
call fcn.00456cac
lea eax, [ebp - 0x1960]
add esp, 8
push 0
push eax
lea eax, [ebp - 0xb28]
push eax
push 1
push dword [ebx + 0x18c]
call fcn.004694a0
cmp dword [ebp - 0x1960], 0
jl 0x45be69
push str.Not_a_nodelock_key
push 0xb
call fcn.00456cac
sub esp, 0xfffffff8
mov esi, 0xfffffff4
mov byte [ebx + 0x11dc], 0
jmp 0x45becd
push str.Nodelock_key_validated
push 0xb
call fcn.00456cac
add esp, 8
mov dword [ebx + 8], 1
mov dword [ebx + 0xc], 1
jmp 0x45becd
push str.Nodelock_error
push 0xb
call fcn.00456cac
lea eax, [ebx + 0x194]
mov esi, 0xfffffff4
add esp, 8
mov byte [ebx + 0x11dc], 0
push esi
push dword [ebp + 8]
push eax
push dword [ebx + 0x18c]
call fcn.004689d0
push eax
push dword [0x4e3a20]
push str._s:_n_s_n
call fcn.00456b0d
add esp, 0xc
push dword [ebp - 0xc]
call fcn.0041bc34
sub esp, 0xfffffffc
push dword [ebp - 8]
call fcn.004649e3
sub esp, 0xfffffffc
mov eax, esi
pop ebx
pop esi
pop edi
leave
ret
Function at 0x45d696
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, 0
push edi
push ebx
mov edi, 0xdeadbeef
mov ebx, dword [ebp + 8]
nop
mov eax, dword [ebx + esi*4]
push eax
call sub.WS2_32.dll_ntohl
mov dword [ebx + esi*4], eax
sub esi, 0xffffffff
cmp esi, 0xb98
jl 0x45d6ad
mov esi, 0
nop
xor dword [ebx + esi*4], edi
add esi, 1
cmp esi, 2
jl 0x45d6ca
mov dword [ebp - 8], 0
mov esi, 2
nop
mov eax, dword [ebx + esi*4]
mov dword [ebp - 4], eax
mov eax, dword [ebx + esi*4]
xor eax, edi
xor eax, dword [ebp - 8]
mov dword [ebx + esi*4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
push dword [ebp - 8]
call fcn.00460f24
add esp, 4
add esi, 1
mov edi, eax
cmp esi, 0xb98
jl 0x45d6e2
nop
pop ebx
pop edi
pop esi
leave
ret

Function at 0x45dec0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, esi
lea eax, [edi - 0xa]
push eax
push esi
mov eax, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
call eax
jmp 0x45dedf
add ebx, 1
mov edx, ebx
sub edx, esi
cmp edx, edi
jge 0x45deec
cmp byte [ebx], 0x3a
jne 0x45dedc
jmp 0x45def1
add ebx, 1
mov eax, ebx
sub eax, esi
cmp eax, edi
jge 0x45defe
cmp byte [ebx], 0x5c
jne 0x45deee
lea edx, [edi - 0xe]
mov eax, ebx
sub eax, esi
cmp eax, edx
jl 0x45df13
mov byte [esi], 0
mov eax, 0
jmp 0x45df3c
push 0x4df059
add ebx, 1
push ebx
call fcn.004a7810
lea eax, [ebx + 3]
add esp, 8
push 0x4df05d
push 0xa
push eax
call fcn.00409093
mov eax, 1
sub esp, 0xfffffff4
pop ebx
pop esi
pop edi
leave
ret
Function at 0x4600df
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
cmp dword [esi], 0
jle 0x46012c
xor eax, eax
mov edx, dword [esi + 8]
cmp dword [edx], 0
jbe 0x460100
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x10]
xor edx, edx
cmp dword [ecx], 0
jbe 0x46010d
mov edx, dword [esi + 0x10]
xor ecx, ecx
mov edi, dword [esi + 0x18]
cmp dword [edi], 0
jbe 0x46011a
mov ecx, dword [esi + 0x18]
push ebx
push ecx
push edx
push eax
push dword [esi]
mov eax, dword [sym.imp.WS2_32.dll_select]
call eax
mov dword [ebp - 4], eax
jmp 0x460158
or eax, 0xffffffff
cmp ebx, 0
je 0x460149
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
imul ecx, edx, 0x3e8
cdq
mov ebx, 0x3e8
idiv ebx
add eax, ecx
push eax
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
mov dword [ebp - 4], 0
push dword [esi + 0x1c]
call fcn.0045fcac
sub esp, 0xfffffffc
cmp dword [ebp - 4], 0
jle 0x4601db
mov edi, 0
jmp 0x460188
push 1
mov edx, dword [esi + 8]
mov eax, dword [edx + edi*4 + 4]
push eax
push dword [esi + 0x1c]
call fcn.0045fdb5
add esp, 0xc
add edi, 1
mov eax, dword [esi + 8]
cmp edi, dword [eax]
jb 0x460170
mov ebx, 0
jmp 0x4601ae
push 2
mov edx, dword [esi + 0x10]
mov eax, dword [edx + ebx*4 + 4]
push eax
push dword [esi + 0x1c]
call fcn.0045fdb5
add esp, 0xc
sub ebx, 0xffffffff
mov edi, dword [esi + 0x10]
cmp ebx, dword [edi]
jb 0x460196
mov ebx, 0
jmp 0x4601d4
push 4
mov edx, dword [esi + 0x18]
mov eax, dword [edx + ebx*4 + 4]
push eax
push dword [esi + 0x1c]
call fcn.0045fdb5
add esp, 0xc
add ebx, 1
mov edi, dword [esi + 0x18]
cmp ebx, dword [edi]
jb 0x4601bc
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push edi
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov word [ebp - 0x10], 2
movzx eax, word [ebp + 0x18]
push eax
mov eax, dword [sym.imp.WS2_32.dll_htons]
call eax
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], esi
push 0x10
push eax
push 0
push dword [ebp + 0x10]
push ebx
push edi
mov eax, dword [sym.imp.WS2_32.dll_sendto]
call eax
pop esi
pop ebx
pop edi
leave
ret