joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405aab
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4d8178
call fcn.0046d048
sub esp, 0x38
mov al, byte [ebp + 0xb]
and byte [ebp - 0xd], 0
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
lea ecx, [ebp - 0x44]
push edi
mov byte [ebp - 0x44], al
call fcn.004040fb
cmp dword [ebp + 8], edi
mov dword [ebp - 4], edi
je 0x405aef
push dword [ebp + 8]
call fcn.0046d440
pop ecx
push eax
lea ecx, [ebp - 0x44]
push dword [ebp + 8]
call fcn.00404041
mov al, byte [ebp + 0xb]
push edi
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x24], al
call fcn.004040fb
cmp dword [ebp + 0xc], edi
mov byte [ebp - 4], 1
je 0x405b1c
push dword [ebp + 0xc]
call fcn.0046d440
pop ecx
push eax
lea ecx, [ebp - 0x24]
push dword [ebp + 0xc]
call fcn.00404041
mov al, byte [esi]
push edi
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x34], al
call fcn.004040fb
push dword [0x4e4d0c]
lea ecx, [ebp - 0x34]
push edi
push esi
call fcn.0040539c
push dword [0x4e4d0c]
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
push edi
push eax
call fcn.004063ac
mov eax, dword [ebp - 0x30]
cmp eax, edi
jne 0x405b5d
mov eax, 0x4e4cf8
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [esi + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x405b76
xor bl, bl
jmp 0x405c31
mov edi, dword [ebp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [edi + 0x40c], 3
jne 0x405bb9
mov eax, dword [ebp - 0x20]
mov dword [ebp + 8], 0x4e4cf8
test eax, eax
je 0x405b9f
mov dword [ebp + 8], eax
push edi
call ebx
inc eax
push eax
push edi
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x405bb9
mov byte [ebp - 0xd], 1
mov eax, dword [edi + 0x40c]
test eax, eax
jne 0x405be3
mov eax, dword [ebp - 0x20]
mov dword [ebp + 8], 0x4e4cf8
test eax, eax
je 0x405bd4
mov dword [ebp + 8], eax
push edi
call ebx
inc eax
push eax
push edi
push 2
push 0
push dword [ebp + 8]
jmp 0x405c18
cmp eax, 1
jne 0x405bfb
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x405bf4
mov eax, 0x4e4cf8
push 4
push edi
push 4
jmp 0x405c15
cmp eax, 2
jne 0x405c25
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x405c0c
mov eax, 0x4e4cf8
push dword [edi + 0x408]
push edi
push 3
push 0
push eax
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x405c25
mov byte [ebp - 0xd], 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, byte [ebp - 0xd]
push 1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.004040fb
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x24]
call fcn.004040fb
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x44]
call fcn.004040fb
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x405ee4
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x4d81b8
call fcn.0046d048
sub esp, 0x24
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
mov esi, ecx
je 0x405fce
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x30], al
call fcn.004040fb
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.0046d440
pop ecx
push eax
lea ecx, [ebp - 0x30]
push dword [ebp + 8]
call fcn.00404041
mov al, byte [esi]
push ebx
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], al
call fcn.004040fb
push dword [0x4e4d0c]
lea ecx, [ebp - 0x20]
push ebx
push esi
call fcn.0040539c
push dword [0x4e4d0c]
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
push ebx
push eax
call fcn.004063ac
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x405f68
mov eax, 0x4e4cf8
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [esi + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x405f7f
mov byte [ebp + 0xb], bl
jmp 0x405f93
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x405fb3
mov byte [ebp + 0xb], 1
push 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.004040fb
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x30]
call fcn.004040fb
mov al, byte [ebp + 0xb]
jmp 0x405fd0
push 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.004040fb
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x30]
call fcn.004040fb
xor al, al
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x40758f
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x4075a6
cmp eax, 0xffffffff
je 0x4075a6
push 1
pop eax
ret
xor eax, eax
ret
Function at 0x4075a9
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x4d830c
call fcn.0046d048
sub esp, 0x30
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
cmp dword [ebp + 8], ebx
mov esi, ecx
je 0x40769d
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2c], al
call fcn.004040fb
push dword [ebp + 8]
call fcn.0046d440
pop ecx
push eax
lea ecx, [ebp - 0x2c]
push dword [ebp + 8]
call fcn.00404041
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x1c], al
call fcn.004040fb
push 1
lea eax, [ebp + 0xb]
pop edi
lea ecx, [ebp - 0x2c]
push edi
push ebx
push eax
mov byte [ebp - 4], 1
mov byte [ebp + 0xb], 0x5c
call fcn.004079a5
cmp eax, ebx
jge 0x407651
add esi, 4
push 0x513a0c
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.004055c1
add esp, 0xc
push dword [0x4e4d0c]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
push ebx
push eax
call fcn.0040539c
push edi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.004040fb
push dword [0x4e4d0c]
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x1c]
push ebx
push eax
call fcn.004063ac
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jne 0x407670
mov eax, 0x4e4cf8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x407680
cmp eax, 0xffffffff
jne 0x407682
xor edi, edi
push 1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.004040fb
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x2c]
call fcn.004040fb
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x40787f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
call fcn.00407826
cmp dword [ebp + 8], 0
mov ebx, eax
je 0x407898
mov ebx, dword [ebp + 8]
and dword [ebp - 4], 0
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp dword [ebp + 8], ecx
jbe 0x4078a8
mov ebx, ecx
cmp dword [ebp + 0xc], eax
jae 0x4078e1
lea eax, [ebx + 1]
push eax
call fcn.004ce490
pop ecx
mov edi, eax
push 0xffffffffffffffff
mov ecx, esi
push dword [ebp + 0xc]
call fcn.0040783d
lea eax, [ebp - 4]
push 0
push eax
push ebx
push edi
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4078ea
push edi
call fcn.004ce4b9
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [ebp - 4]
and byte [eax + edi], 0
mov eax, dword [ebp - 4]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x28], edi
mov eax, edi
jmp 0x4078e3
Function at 0x407ce7
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret

Function at 0x407efc
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push ebp
push esi
push edi
mov esi, ecx
push 0
mov ebp, 0x513b38
push 1
lea edi, [esi + 0x104]
push ebp
push 0
push edi
mov dword [esi], 0x4e4d5c
call ebx
test eax, eax
jne 0x407f36
push 8
push 1
push ebp
push eax
push edi
call ebx
test eax, eax
jne 0x407f36
and dword [edi], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x408036
Capabilities:
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x8004
push ebx
push esi
push edi
mov edi, ecx
mov ebx, 0x8003
jne 0x40805f
mov dword [ebp - 8], 0x14
jmp 0x40806b
cmp dword [ebp + 8], ebx
jne 0x40806b
mov dword [ebp - 8], 0x10
push 0x100
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0046d250
add esp, 0xc
lea esi, [edi + 0x108]
push esi
push 0
push 0
push dword [ebp + 8]
push dword [edi + 0x104]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4080fb
xor edi, edi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4080ef
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 0x108]
push eax
push 2
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x4080ef
cmp dword [ebp + 0x14], edi
mov dword [ebp - 4], 1
je 0x4080ef
push dword [ebp - 8]
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x14]
call fcn.0046d4c0
add esp, 0xc
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [esi], edi
jmp 0x408135
mov eax, dword [ebp + 8]
sub eax, ebx
je 0x408117
dec eax
jne 0x408135
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040813f
jmp 0x408127
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004081ee
add esp, 0x10
test al, al
je 0x408135
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4146fb
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4d9400
call fcn.0046d048
sub esp, 0x11c
push ebx
push esi
xor ebx, ebx
push edi
push ebx
mov esi, ecx
push ebx
push 0x14b
push dword [esi + 0x1bc]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0xffffffffffffffff
lea ecx, [esi + 0x1e8]
push ebx
call fcn.004c97c6
mov dword [ebp - 0x14], ebx
mov eax, dword [0x518cb0]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x18]
mov dword [ebp - 4], ebx
push 0x5145e0
push eax
call fcn.004c7e63
mov ax, word [0x5213a0]
add esp, 0xc
mov word [ebp - 0x128], ax
xor eax, eax
push 0x40
lea edi, [ebp - 0x126]
pop ecx
mov dword [ebp - 0x20], 0x104
rep stosd dword es:[edi], eax
push 1
lea ecx, [ebp - 0x10]
stosw word es:[edi], ax
pop eax
mov dword [ebp - 0x10], ebx
push ecx
push eax
push ebx
push 0x5145c4
push SysReAllocStringLen
mov dword [ebp - 0x24], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41483a
cmp dword [ebp - 0x10], ebx
je 0x41483a
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x414828
lea eax, [ebp - 0x128]
push eax
call fcn.0046d440
test eax, eax
pop ecx
jbe 0x414828
lea eax, [ebp - 0x128]
lea ecx, [ebp - 0x1c]
push eax
call fcn.004cdf9a
mov eax, dword [esi + 0x1f0]
lea ecx, [esi + 0x1e8]
lea edx, [ebp - 0x1c]
mov byte [ebp - 4], 1
push edx
push eax
call fcn.004c993b
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 8], ebx
je 0x41481d
push eax
push ebx
push 0x143
push dword [esi + 0x1bc]
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.004cdf2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004cdf2c
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xa
jl 0x414736
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x414862
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4d941c
call fcn.0046d048
sub esp, 0x10
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
cmp dword [esi + 0x1f0], ebx
jle 0x414949
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push 0x20006
push ebx
push 0x5145c4
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x414936
cmp dword [ebp - 0x10], ebx
je 0x414936
push dword [ebp - 0x14]
lea eax, [ebp - 0x18]
lea ecx, [esi + 0x1e8]
push eax
call fcn.004232ab
mov eax, dword [0x518cb0]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push 0x5145e0
push eax
call fcn.004c7e63
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
add esp, 0xc
lea ecx, [ebp - 0x18]
mov eax, dword [eax - 8]
push eax
push ebx
call fcn.004ce35c
push eax
push 1
push ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.004ce3ab
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], bl
call fcn.004cdf2c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004cdf2c
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x1f0]
jl 0x414885
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x41635e
Capabilities:
Check os version

Disassembly:
mov eax, 0x4d9700
call fcn.0046d048
sub esp, 0xa0
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0xac]
push 0
push eax
call fcn.0046d250
add esp, 0xc
lea eax, [ebp - 0xac]
mov dword [ebp - 0xac], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x4163b6
lea eax, [ebp - 0xac]
mov dword [ebp - 0xac], 0x94
push eax
call esi
test eax, eax
je 0x416413
cmp dword [ebp - 0xa8], 5
jne 0x416413
cmp dword [ebp - 0xa4], 1
jne 0x416413
lea eax, [ebp - 0x98]
lea ecx, [ebp - 0x10]
push eax
call fcn.004cdf9a
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004ce42e
push 0x5146f4
push dword [ebp - 0x10]
call fcn.0046e794
pop ecx
test eax, eax
pop ecx
jne 0x416407
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004cdf2c
push 1
pop eax
jmp 0x416415
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004cdf2c
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x416f1d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x416f40
xor eax, eax
leave
ret
lea eax, [ebp - 4]
push esi
and byte [ebp - 0x108], 0
push eax
lea eax, [ebp - 0x108]
xor esi, esi
push eax
push 0x521388
push dword [ebp + 8]
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
call fcn.00473600
pop ecx
test eax, eax
pop ecx
jne 0x416f82
push 1
pop esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x417b5f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4d9844
call fcn.0046d048
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004d4518
mov esi, dword [eax + 8]
test esi, esi
je 0x417c7b
mov eax, dword [ebp + 8]
push 6
shr eax, 4
inc eax
movzx eax, ax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x417c7b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [ebp - 0x10], 0
mov esi, eax
je 0x417c7b
lea edi, [esi + 2]
lea eax, [edi + edi]
push eax
call fcn.004ce490
push edi
xor edi, edi
mov ebx, eax
push edi
push ebx
call fcn.0046d250
add esp, 0x10
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, edi
je 0x417c74
mov ecx, dword [ebp + 8]
and ecx, 0xf
jbe 0x417bfa
movzx edx, word [eax]
dec ecx
lea eax, [eax + edx*2 + 2]
jne 0x417bf0
movzx ecx, word [eax]
cmp ecx, esi
jl 0x417c03
mov ecx, esi
add eax, 2
push ecx
push eax
push ebx
call fcn.0046eb3e
mov al, byte [ebp + 0xb]
add esp, 0xc
lea ecx, [ebp - 0x20]
mov word [ebx + esi*2], di
push edi
mov byte [ebp - 0x20], al
call fcn.004040fb
lea eax, [ebp - 0x20]
mov dword [ebp - 4], edi
push eax
push 0xffffffffffffffff
push ebx
push 0x3a8
call fcn.00417af6
lea eax, [ebp - 0x20]
push eax
call fcn.00417996
mov esi, eax
mov eax, dword [ebp - 0x1c]
add esp, 0x14
cmp eax, edi
jne 0x417c52
mov eax, 0x4e4cf8
mov ecx, dword [ebp + 0xc]
push eax
call fcn.004ce0b5
push ebx
call fcn.004ce4b9
or dword [ebp - 4], 0xffffffff
pop ecx
push 1
lea ecx, [ebp - 0x20]
call fcn.004040fb
mov eax, esi
jmp 0x417c7d
push ebx
call fcn.004ce4b9
pop ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x417e10
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
mov eax, 0x4d9868
call fcn.0046d048
sub esp, 0x20
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x18], esi
cmp dword [esi + 4], 0xffffffff
jne 0x417f7e
xor ebx, ebx
push ebx
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x417e4a
xor eax, eax
jmp 0x417f83
push edi
lea ecx, [ebp - 0x1c]
push 4
push ecx
push 0x1006
push 0xffff
push eax
mov dword [ebp - 0x1c], 0x2710
call dword [sym.imp.WS2_32.dll_setsockopt]
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.004cdf9a
mov eax, dword [0x518cb0]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], eax
mov edi, dword [ebp + 0xc]
mov byte [ebp - 4], 1
cmp di, bx
jne 0x417ef6
push 0x3a
lea ecx, [ebp - 0x10]
call fcn.004ce3f3
mov esi, eax
cmp esi, ebx
jle 0x417ee8
push esi
lea eax, [ebp + 0xc]
push ebx
push eax
lea ecx, [ebp - 0x10]
call fcn.004c7931
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004ce065
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.004cdf2c
inc esi
lea eax, [ebp + 8]
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.004c790e
push dword [ebp + 8]
call fcn.0046d8c6
pop ecx
mov edi, eax
lea ecx, [ebp + 8]
call fcn.004cdf2c
mov esi, dword [ebp - 0x18]
jmp 0x417f02
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
call fcn.004ce065
jmp 0x417ee3
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
call fcn.004ce065
cmp di, bx
jne 0x417f0a
push 0x50
pop edi
push edi
mov word [ebp - 0x2c], 2
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x14]
mov word [ebp - 0x2a], ax
pop edi
movsx eax, byte [ecx]
cmp eax, 0x2f
jle 0x417f38
cmp eax, 0x3a
jge 0x417f38
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x28], eax
jmp 0x417f4f
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x417f4c
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x417f33
mov dword [ebp - 0x28], ebx
lea eax, [ebp - 0x2c]
push 0x10
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_connect]
mov esi, eax
lea ecx, [ebp - 0x14]
neg esi
sbb esi, esi
mov byte [ebp - 4], bl
inc esi
call fcn.004cdf2c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004cdf2c
jmp 0x417f81
push 1
pop esi
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x417fbd
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
mov eax, 0x4d9884
call fcn.0046d048
sub esp, 0x810
mov eax, dword [0x518cb0]
push ebx
push edi
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x10], edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], 0x50
je 0x418031
push edi
push dword [ebp + 0x10]
call fcn.00417e10
test eax, eax
je 0x41813a
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.004ce0b5
cmp dword [ebp + 0xc], edi
je 0x418083
push dword [ebp + 0xc]
lea eax, [ebp - 0x81c]
push dword [ebp - 0x10]
push 0x514910
push eax
call fcn.0046d9ad
add esp, 0x10
jmp 0x41809a
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.004d3b92
test eax, eax
je 0x418010
cmp dword [ebp + 8], 3
jne 0x418064
push dword [ebp - 0x1c]
mov ecx, ebx
push dword [ebp - 0x14]
call fcn.00417e10
test eax, eax
jne 0x418010
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004cdf2c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004cdf2c
xor eax, eax
jmp 0x418154
push dword [ebp - 0x10]
lea eax, [ebp - 0x81c]
push 0x5148f8
push eax
call fcn.0046d9ad
add esp, 0xc
lea eax, [ebp - 0x81c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [sym.imp.WS2_32.dll_send]
cmp eax, edi
mov dword [ebp + 0x10], eax
jle 0x4180e1
mov eax, 0x1000
cmp dword [ebp + 0x10], eax
jg 0x4180c2
mov eax, dword [ebp + 0x10]
push 0
push eax
lea eax, [ebp + edi - 0x81c]
push eax
push dword [ebx + 4]
call esi
test eax, eax
jl 0x4180e1
sub dword [ebp + 0x10], eax
add edi, eax
cmp dword [ebp + 0x10], 0
jg 0x4180b5
mov eax, dword [ebp + 0x18]
xor edi, edi
test eax, eax
mov dword [ebp + 0x10], eax
jle 0x418117
mov eax, 0x1000
cmp dword [ebp + 0x10], eax
jg 0x4180fa
mov eax, dword [ebp + 0x10]
push 0
push eax
mov eax, dword [ebp + 0x14]
add eax, edi
push eax
push dword [ebx + 4]
call esi
test eax, eax
jl 0x418117
sub dword [ebp + 0x10], eax
add edi, eax
cmp dword [ebp + 0x10], 0
jg 0x4180ed
cmp dword [ebp + 0x10], 0
pop esi
jne 0x418137
mov ecx, ebx
call fcn.004182c9
cmp eax, 0x64
mov dword [ebp - 0x18], eax
jne 0x418137
mov ecx, ebx
call fcn.004182c9
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x18]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004cdf2c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004cdf2c
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14
Function at 0x418164
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
mov eax, 0x4d98a0
call fcn.0046d048
sub esp, 0x810
mov eax, dword [0x518cb0]
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x10], esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], 0x50
je 0x4181d8
push esi
push dword [ebp + 0x10]
call fcn.00417e10
test eax, eax
je 0x41829f
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.004ce0b5
cmp dword [ebp + 0xc], esi
je 0x41822a
push dword [ebp + 0xc]
lea eax, [ebp - 0x81c]
push dword [ebp - 0x10]
push 0x51493c
push eax
call fcn.0046d9ad
add esp, 0x10
jmp 0x418241
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.004d3b92
test eax, eax
je 0x4181b7
cmp dword [ebp + 0x10], 3
jne 0x41820b
push dword [ebp - 0x1c]
mov ecx, edi
push dword [ebp - 0x14]
call fcn.00417e10
test eax, eax
jne 0x4181b7
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004cdf2c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004cdf2c
xor eax, eax
jmp 0x4182b9
push dword [ebp - 0x10]
lea eax, [ebp - 0x81c]
push 0x514928
push eax
call fcn.0046d9ad
add esp, 0xc
lea eax, [ebp - 0x81c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
test ebx, ebx
jle 0x418280
mov eax, 0x1000
cmp ebx, eax
jg 0x418260
mov eax, ebx
push 0
push eax
lea eax, [ebp + esi - 0x81c]
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jl 0x41827e
add esi, eax
sub ebx, eax
jmp 0x418251
test ebx, ebx
pop ebx
jne 0x41829c
mov ecx, edi
call fcn.004182c9
cmp eax, 0x64
mov dword [ebp - 0x18], eax
jne 0x41829c
mov ecx, edi
call fcn.004182c9
mov dword [ebp - 0x18], eax
mov esi, dword [ebp - 0x18]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004cdf2c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004cdf2c
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0xc