joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456e60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x50c
mov eax, dword [0x4d9b30]
xor eax, esp
mov dword [esp + 0x508], eax
push ebp
mov ebp, dword [esp + 0x514]
test edi, edi
je 0x456fdd
cmp ebp, 0x20
jb 0x456fdd
push 0x400
lea eax, [esp + 0x110]
push 0
push eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0x400
call fcn.00458690
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x10]
push eax
push 0x4c1844
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x456fdd
lea eax, [esp + 0x10c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x456ef0
sub eax, edx
cmp eax, 0x40
jne 0x456fdd
push ebx
lea edx, [eax + 0x40]
push esi
lea eax, [esp + 0x14]
lea esi, [esp + 0x114]
mov ecx, eax
sub esi, ecx
lea ecx, [edx - 0x60]
test ecx, ecx
je 0x456f2e
mov cl, byte [esi + eax]
test cl, cl
je 0x456f2e
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x456f16
jmp 0x456f32
test edx, edx
jne 0x456f33
dec eax
mov byte [eax], 0
lea eax, [esp + 0x94]
lea edx, [esp + 0x134]
mov ecx, eax
mov esi, 0x80
sub edx, ecx
lea ecx, [ecx]
lea ecx, [esi + 0x7fffff7e]
test ecx, ecx
je 0x456f6b
mov cl, byte [edx + eax]
test cl, cl
je 0x456f6b
mov byte [eax], cl
inc eax
sub esi, 1
jne 0x456f50
jmp 0x456f6f
test esi, esi
jne 0x456f70
dec eax
push 0x400
lea edx, [esp + 0x118]
push 0
push edx
mov byte [eax], 0
call fcn.00458690
push 0x400
lea ebx, [esp + 0x124]
lea ecx, [esp + 0x24]
call fcn.00455ee0
add esp, 0x10
lea eax, [esp + 0x94]
push eax
mov ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
pop esi
pop ebx
test eax, eax
jne 0x456fdd
lea edx, [esp + 0xc]
push edx
push ebp
push edi
call fcn.00427dd0
neg eax
sbb eax, eax
inc eax
pop ebp
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.0045870a
add esp, 0x50c
ret
mov ecx, dword [esp + 0x50c]
pop ebp
xor ecx, esp
xor eax, eax
call fcn.0045870a
add esp, 0x50c
ret
Function at 0x457000
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x290
mov eax, dword [0x4d9b30]
xor eax, esp
mov dword [esp + 0x28c], eax
push ebx
push esi
push 0x80
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00458690
push 0x80
lea ebx, [esp + 0x20]
mov ecx, edi
call fcn.00455ee0
lea eax, [esp + 0x1a0]
mov edx, edi
mov ecx, eax
add esp, 0x10
mov esi, 0x104
sub edx, ecx
lea esp, [esp]
lea ecx, [esi + 0x7ffffefa]
test ecx, ecx
je 0x45706b
mov cl, byte [edx + eax]
test cl, cl
je 0x45706b
mov byte [eax], cl
inc eax
sub esi, 1
jne 0x457050
jmp 0x45706f
test esi, esi
jne 0x457070
dec eax
lea edx, [esp + 0x10]
push edx
mov byte [eax], 0
push 0x104
lea eax, [esp + 0x198]
push eax
call fcn.0042c530
push 0xff
lea ecx, [esp + 0x95]
push 0
push ecx
mov dword [esp + 0x18], 1
mov byte [esp + 0x9c], 0
call fcn.00458690
add esp, 0xc
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x4c1844
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 0x100
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
test eax, eax
jne 0x45714b
mov ecx, edi
lea eax, [esp + 0x90]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x457113
test dl, dl
je 0x45710f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x457113
add eax, 2
add ecx, 2
test dl, dl
jne 0x4570f3
xor eax, eax
jmp 0x457118
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x45714b
lea eax, [esp + 0x90]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x457126
sub eax, edx
push eax
lea edx, [esp + 0x94]
push edx
push 1
push str.mid_old
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call esi
lea eax, [esp + 0x190]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x457155
sub eax, edx
push eax
lea eax, [esp + 0x194]
push eax
push 1
push 0x4c1844
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov ecx, dword [esp + 0x294]
pop esi
pop ebx
xor ecx, esp
call fcn.0045870a
add esp, 0x290
ret

Function at 0x45870a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4d9b30]
jne 0x458714
repz ret
jmp fcn.0045f777
Function at 0x47ed66
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004612d3
and dword [ebp - 4], 0
cmp dword [0x4dde18], 0
mov ebx, eax
jne 0x47ee17
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x47eec8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x47eec8
push eax
call fcn.00461261
mov dword [esp], 0x4c3ff8
push edi
mov dword [0x4dde18], eax
call esi
push eax
call fcn.00461261
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4dde1c], eax
call esi
push eax
call fcn.00461261
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4dde20], eax
call esi
push eax
call fcn.00461261
pop ecx
mov dword [0x4dde28], eax
test eax, eax
je 0x47ee17
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00461261
pop ecx
mov dword [0x4dde24], eax
mov eax, dword [0x4dde24]
cmp eax, ebx
je 0x47ee6f
cmp dword [0x4dde28], ebx
je 0x47ee6f
push eax
call fcn.004612dc
push dword [0x4dde28]
mov esi, eax
call fcn.004612dc
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x47ee6f
test edi, edi
je 0x47ee6f
call esi
test eax, eax
je 0x47ee66
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x47ee66
test byte [ebp - 0xc], 1
jne 0x47ee6f
or dword [ebp + 0x10], 0x200000
jmp 0x47eea8
mov eax, dword [0x4dde1c]
cmp eax, ebx
je 0x47eea8
push eax
call fcn.004612dc
pop ecx
test eax, eax
je 0x47eea8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x47eea8
mov eax, dword [0x4dde20]
cmp eax, ebx
je 0x47eea8
push eax
call fcn.004612dc
pop ecx
test eax, eax
je 0x47eea8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4dde18]
call fcn.004612dc
pop ecx
test eax, eax
je 0x47eec8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x47eeca
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4875f0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4d9b30]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x487645
mov eax, dword [esp]
cmp al, 2
jne 0x48763f
shr eax, 8
cmp al, 2
jne 0x48763f
call fcn.0048b5b0
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0045870a
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.0045870a
add esp, 0x194
ret
Function at 0x496f90
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x496fc2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x4970f0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
cmp dword [esi + 0x1e0], edi
je 0x497139
push 1
push esi
call fcn.00494be0
mov eax, dword [esi + 0x16c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0x1e0]
push edx
push eax
push esi
call ecx
push 0
push esi
mov edi, eax
call fcn.00494be0
add esp, 0x24
mov eax, edi
pop edi
pop esi
ret
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x497179
cmp eax, 2
jg 0x497179
mov edx, dword [esi + 0x168]
push edx
push 1
lea eax, [eax + eax*2 + 0x4c528c]
push 2
push eax
call fcn.004b77ad
mov ecx, dword [esi + 0x168]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push ecx
push 1
push edx
push eax
call fcn.004b77ad
add esp, 0x20
mov eax, edi
pop edi
pop esi
ret

Function at 0x497650
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [ebx + 0x350]
push ebp
mov ebp, dword [ebx + eax*4 + 0x1a8]
push esi
lea esi, [eax + 0x1d]
shl esi, 4
add esi, ebx
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [ecx + 0x40], 3
je 0x4976ef
cmp dword [ebx + eax*4 + 0x1c0], 0x4973c0
jne 0x4976ef
cmp dword [esi], 0
je 0x49768a
test edi, edi
je 0x4976ef
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.0048b8d0
add esp, 0x14
cmp eax, 0xffffffff
je 0x4976ef
test al, 1
je 0x4976ef
cmp dword [esi], 0
jne 0x4976d1
mov edx, dword [ebx]
mov eax, dword [edx + 0x508]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x4db008]
mov edi, dword [esi + 4]
xor ecx, ecx
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
cmp eax, ecx
je 0x4976ec
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4976ef
add dword [esi + 8], eax
pop edi
pop esi
pop ebp
ret
mov dword [esi + 4], ecx
pop edi
pop esi
pop ebp
ret
Function at 0x497700
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [ebx + eax*4 + 0x1a8]
push edi
call fcn.00497650
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 0
push eax
push ecx
push esi
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [esp + 0x20]
mov esi, eax
mov dword [edi], 0
cmp esi, 0xffffffff
jne 0x497782
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x497759
pop ebp
mov dword [edi], 0x51
pop edi
pop esi
xor eax, eax
pop ebx
ret
push ebp
push ebx
call fcn.004af8e0
mov edx, dword [ebx]
push eax
push str.Send_failure:__s
push edx
call fcn.00497210
mov eax, dword [ebx]
mov dword [eax + 0x998], ebp
add esp, 0x14
mov dword [edi], 0x37
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x49a100
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + eax]
mov ebx, 0x1505
cmp esi, edi
jae 0x49a0f0
movzx eax, byte [esi]
push eax
call fcn.0049d200
mov edx, ebx
shl edx, 5
movsx ecx, al
add edx, ebx
xor ecx, edx
inc esi
add esp, 4
mov ebx, ecx
cmp esi, edi
jb 0x49a0d1
pop edi
pop esi
movzx eax, bl
pop ebx
ret
push ecx
push esi
mov esi, eax
test esi, esi
je 0x49a12f
mov ecx, esi
call fcn.00499f50
test eax, eax
jne 0x49a12f
lea eax, [esp + 4]
push eax
call fcn.0049a060
add esp, 4
mov ecx, eax
mov eax, dword [esp + 4]
pop esi
add esp, 4
jmp 0x49a0c0
xor eax, eax
pop esi
pop ecx
ret

Function at 0x49bae0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
xor eax, eax
cmp dword [esi + 0x708], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x49bb1e
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.00497180
add esp, 0xc
add esp, 0x14
ret
mov edx, dword [esi + 0x70c]
push edx
mov dword [esp + 0xc], 1
call fcn.00499d70
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x710]
push eax
call fcn.00499d70
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x20]
push edx
push 0x98000004
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x49bb97
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.00497180
add esp, 0x10
add esp, 0x14
ret
Function at 0x49c220
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x108
mov eax, dword [0x4d9b30]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
mov ebx, dword [esp + 0x110]
cmp dword [ebx + 0x90], 2
push ebp
mov ebp, dword [ebx]
je 0x49c3af
cmp dword [ebx + 0x2a4], 0
push esi
push edi
jne 0x49c3a4
cmp dword [ebx + 0x314], 0
jne 0x49c3a4
mov esi, dword [esp + 0x120]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x98]
push ecx
mov edi, 0x80
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x49c2b4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.004af8e0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebp
call fcn.00497210
add esp, 0x18
jmp 0x49c3ad
push edi
lea edx, [esp + 0x18]
push 0
push edx
mov dword [esp + 0x1c], edi
call fcn.00458690
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x49c301
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.004af8e0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebp
call fcn.00497210
add esp, 0x18
jmp 0x49c3ad
lea edx, [ebx + 0x134]
push edx
lea esi, [ebx + 0x106]
lea eax, [esp + 0x98]
push esi
push eax
call fcn.0049c1c0
add esp, 0xc
test eax, eax
jne 0x49c34e
call fcn.0045da97
mov esi, eax
call fcn.0045da97
mov ecx, dword [esi]
push ecx
push ebx
mov edi, eax
call fcn.004af8e0
mov edx, dword [edi]
push eax
push edx
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.00497210
add esp, 0x18
jmp 0x49c3ad
lea edi, [ebx + 0x5c]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x168]
push eax
lea ecx, [ebx + 0x138]
push ecx
lea edx, [esp + 0x1c]
push edx
movsw word es:[edi], word [esi]
call fcn.0049c1c0
add esp, 0xc
test eax, eax
jne 0x49c3a4
call fcn.0045da97
mov esi, eax
call fcn.0045da97
mov edi, eax
mov eax, dword [esi]
push eax
push ebx
call fcn.004af8e0
mov ecx, dword [edi]
push eax
push ecx
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.00497210
add esp, 0x18
jmp 0x49c3ad
push ebx
call fcn.0049c140
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x10c]
pop ebp
pop ebx
xor ecx, esp
call fcn.0045870a
add esp, 0x108
ret

Function at 0x49c3d0
Capabilities:
Set socket configuration

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, dword [edi]
push 4
lea eax, [esp + 0x10]
push eax
push 1
push 6
push ecx
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x49c419
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004af8e0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00497180
add esp, 0x14
pop edi
pop esi
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00497180
add esp, 8
pop edi
pop esi
ret
Function at 0x49dc60
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
push esi
push 0x4c5e3c
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x49dc7a
pop esi
pop ebp
pop ecx
ret
push ebx
push edi
push str.LoadLibraryExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [esp + 0x18]
mov edi, eax
push 0x4c5e28
push ebx
mov dword [esp + 0x18], edi
call fcn.004b88d9
add esp, 8
test eax, eax
je 0x49dcc6
test edi, edi
je 0x49dcb7
push 8
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
test edi, edi
je 0x49dcec
push str.AddDllDirectory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49dcec
push 0x800
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, eax
test edi, edi
je 0x49dda0
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49dd05
sub eax, edx
lea eax, [eax + edi + 1]
push eax
call dword [0x4db008]
mov esi, eax
add esp, 4
test esi, esi
je 0x49dd96
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x49dd96
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49dd33
sub eax, edx
mov ecx, 0x5c
mov word [eax + esi], cx
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49dd50
sub eax, edx
lea edx, [eax + esi]
mov ecx, ebx
sub edx, ebx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x49dd60
mov eax, dword [esp + 0x10]
test eax, eax
je 0x49dd8d
push 8
push 0
push esi
call eax
push esi
mov ebp, eax
call dword [0x4db00c]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
push esi
call dword [0x4db00c]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
Function at 0x49df40
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ebx
push ebp
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [esp + 0x20]
push edx
push eax
push ecx
mov dword [esp + 0x18], ebx
xor ebp, ebp
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x49e0f1
push edi
mov edi, dword [esp + 0x14]
cmp edi, ebx
je 0x49e0cf
push esi
jmp 0x49df90
cmp dword [edi + 4], 2
jne 0x49e048
cmp dword [edi + 0x18], ebx
je 0x49e048
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x49e048
cmp eax, 0x10
jb 0x49e048
push 0x20
call dword [0x4db008]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x49e055
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
call dword [0x4db008]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x49e05f
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x49e035
push eax
call dword [0x4db014]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x49e073
cmp dword [esp + 0x10], ebx
jne 0x49e03f
mov dword [esp + 0x10], esi
cmp ebp, ebx
je 0x49e046
mov dword [ebp + 0x1c], esi
mov ebp, esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x49df90
jmp 0x49e08f
mov dword [esp + 0x14], 8
jmp 0x49e08f
push esi
mov dword [esp + 0x18], 8
call dword [0x4db00c]
add esp, 4
jmp 0x49e08f
mov edx, dword [esi + 0x18]
push edx
mov dword [esp + 0x18], 8
call dword [0x4db00c]
push esi
call dword [0x4db00c]
add esp, 8
mov eax, dword [esp + 0x18]
pop esi
cmp eax, ebx
je 0x49e09f
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0x10], ebx
je 0x49e0c9
mov eax, dword [esp + 0xc]
push eax
call fcn.0049df00
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
mov ecx, ebx
pop ebp
mov dword [esp + 4], ebx
mov dword [edx], ecx
pop ebx
add esp, 0xc
ret
cmp dword [esp + 0xc], ebx
jne 0x49e0e2
push 0x2af9
mov dword [esp + 0x14], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov dword [edx], ecx
pop edi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x49f870
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.0045c10a
add esp, 0x18
test eax, eax
je 0x49f893
cmp eax, 0xffffffff
jne 0x49f895
xor eax, eax
ret
Function at 0x4a21c0
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x14
push esi
push 0
push ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 4
mov dword [esp + 0x1c], esi
call fcn.00458690
mov eax, dword [esp + 0x2c]
add esp, 0xc
push 0xf0000000
push eax
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4a22a0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 4]
lea edx, [esp]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4a2281
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp]
push 0
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4a2281
mov ecx, dword [esp]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 4
push ecx
call ebp
test eax, eax
je 0x4a2280
cmp esi, dword [esp + 0xc]
jb 0x4a2280
mov eax, dword [esp + 4]
push 0
lea edx, [esp + 0x18]
push edx
push ebx
push 2
push eax
call ebp
pop ebp
mov eax, dword [esp]
test eax, eax
je 0x4a228f
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 4]
test eax, eax
je 0x4a22a0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add esp, 0x14
ret
Function at 0x4a4190
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0xf0000000
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4a41c1
mov ecx, dword [esi]
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop esi
ret

Function at 0x4a41d0
Capabilities:
Hash data via wincrypt

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
mov eax, dword [edx + 4]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
ret

Function at 0x4a4680
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x4d9b30]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.0048641e
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x4a46e5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x4a46e5
lea edx, [esp]
push edx
call dword [0x4db014]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0045870a
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.0045870a
add esp, 0x108
ret
jmp 0x4a4680

Function at 0x4a4700
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x4d9b30]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.0048641e
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x4a46e5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x4a46e5
lea edx, [esp]
push edx
call dword [0x4db014]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0045870a
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.0045870a
add esp, 0x108
ret
jmp 0x4a4680
Function at 0x4ad8e0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 8
push 0
push 0
lea eax, [esp + 0xc]
push eax
push 4
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0x4004747b
push esi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x4ad91f
push 4
lea edx, [esp + 4]
push edx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 8
ret