joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415e90
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54963e
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x5a83f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
lea eax, [ebp - 0x90]
push eax
push 0
push 0x20006
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.00401be0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4160a3
mov ecx, dword [ebp - 0x90]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xc]
call fcn.00403bb0
shl eax, 1
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00401be0
push eax
push 1
push 0
mov ecx, dword [ebp + 8]
call fcn.00401be0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
push 0x59db30
lea ecx, [ebp - 0x58]
call fcn.00403f40
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x58]
call fcn.00403d40
push 0x59db34
lea ecx, [ebp - 0x58]
call fcn.00405910
lea ecx, [ebp - 0x58]
call fcn.00403bb0
shl eax, 1
push eax
lea ecx, [ebp - 0x58]
call fcn.00401be0
push eax
push 1
push 0x59db3c
mov ecx, dword [ebp + 8]
call fcn.00401be0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
push str.http_shellopencommand
lea ecx, [ebp - 0x40]
call fcn.00403f40
mov byte [ebp - 4], 1
push str.https_shellopencommand
lea ecx, [ebp - 0x28]
call fcn.00403f40
mov byte [ebp - 4], 2
mov dword [ebp - 0x8c], 0
jmp 0x415fbf
mov eax, dword [ebp - 0x8c]
add eax, 1
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 2
jge 0x41605f
mov ecx, dword [ebp + 0x10]
push ecx
push 0x22
lea edx, [ebp - 0x88]
push edx
call fcn.00418360
add esp, 0xc
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x98], eax
mov byte [ebp - 4], 3
push str.____1_
mov ecx, dword [ebp - 0x98]
push ecx
lea edx, [ebp - 0x70]
push edx
call fcn.00413fa0
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
call fcn.00401c90
lea ecx, [ebp - 0x70]
call fcn.00403bb0
shl eax, 1
push eax
lea ecx, [ebp - 0x70]
call fcn.00401be0
push eax
push 1
push 0
imul eax, dword [ebp - 0x8c], 0x18
lea ecx, [ebp + eax - 0x40]
call fcn.00401be0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
lea ecx, [ebp - 0x70]
call fcn.00401c90
jmp 0x415fb0
push 0
push 0
push 1
mov ecx, dword [ebp + 8]
call fcn.00401be0
push eax
push str..htmlOpenWithProgids
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov byte [ebp - 4], 0
push fcn.00401c90
push 2
push 0x18
lea ecx, [ebp - 0x40]
push ecx
call fcn.0046f10c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00401c90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046ec22
mov esp, ebp
pop ebp
ret
Function at 0x4160c0
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549688
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x5a83f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x59dbf4
lea ecx, [ebp - 0x58]
call fcn.00403f40
mov dword [ebp - 4], 0
push 0x59dc10
lea ecx, [ebp - 0x40]
call fcn.00403f40
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.00415e90
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00401c90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00401c90
push 0x59dc30
lea ecx, [ebp - 0x70]
call fcn.00403f40
mov dword [ebp - 4], 2
push 0x59dc84
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.004065e0
add esp, 0xc
lea edx, [ebp - 0x74]
push edx
push 2
push 0
lea ecx, [ebp - 0x70]
call fcn.00401be0
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x28]
call fcn.00403bb0
shl eax, 1
push eax
lea ecx, [ebp - 0x28]
call fcn.00401be0
push eax
push 1
push 0
push 0
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x74]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x28]
call fcn.00401c90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00401c90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046ec22
mov esp, ebp
pop ebp
ret

Function at 0x4161e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x548ed8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5a83f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
add eax, 0x1c
push eax
lea ecx, [ebp - 0x28]
call fcn.00404020
mov dword [ebp - 4], 0
push 0x59dc2c
lea ecx, [ebp - 0x28]
call fcn.00405910
push 0x59dc8c
lea ecx, [ebp - 0x28]
call fcn.00405910
push 1
push 0x59dcb0
push 0x59dcb4
lea ecx, [ebp - 0x28]
call fcn.00401be0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x2c]
call fcn.00415a40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401c90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046ec22
mov esp, ebp
pop ebp
ret
Function at 0x416da0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5a83f8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.004efc10
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
push 0x54d7a0
push 1
push 0
push 0x54d7d0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jge 0x416e0b
xor eax, eax
jmp 0x416eac
mov ecx, dword [ebp + 8]
call fcn.00401be0
push eax
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x210]
push edx
mov eax, dword [ecx + 0x50]
call eax
lea ecx, [ebp - 0x218]
push ecx
push 0x54d7c0
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x210]
push ecx
mov edx, dword [eax]
call edx
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jge 0x416e5a
xor eax, eax
jmp 0x416eac
push 2
mov ecx, dword [ebp + 0xc]
call fcn.00401be0
push eax
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x218]
push edx
mov eax, dword [ecx + 0x18]
call eax
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x218]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x218]
push eax
mov ecx, dword [edx + 8]
call ecx
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x210]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ec22
mov esp, ebp
pop ebp
ret
Function at 0x416ec0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549338
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5a83f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallChatAI
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x30], eax
push 0x59e02c
lea ecx, [ebp - 0x28]
call fcn.00403f40
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00403bb0
shl eax, 1
push eax
lea ecx, [ebp - 0x28]
call fcn.00401be0
push eax
push 1
push 0
push str.DisplayName
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x30], eax
cmp dword [0x5aacb8], 0
je 0x416f77
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401c20
push 0x59e0d8
lea ecx, [ebp - 0x28]
call fcn.00405910
lea ecx, [ebp - 0x28]
call fcn.00403bb0
shl eax, 1
push eax
lea ecx, [ebp - 0x28]
call fcn.00401be0
push eax
push 1
push 0
push str.UninstallString
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x30], eax
cmp dword [0x5aacb8], 0
je 0x416fc3
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x28]
call fcn.00401c20
push 0x59e114
lea ecx, [ebp - 0x28]
call fcn.00405910
lea ecx, [ebp - 0x28]
call fcn.00403bb0
shl eax, 1
push eax
lea ecx, [ebp - 0x28]
call fcn.00401be0
push eax
push 1
push 0
push str.DisplayIcon
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x30], eax
cmp dword [0x5aacb8], 0
je 0x41702c
mov ecx, dword [0x5aacb8]
add ecx, 0x34
call fcn.00403bb0
shl eax, 1
push eax
mov ecx, dword [0x5aacb8]
add ecx, 0x34
call fcn.00401be0
push eax
push 1
push 0
push str.DisplayShortcut
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x2c], 0
je 0x41703c
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401c90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046ec22
mov esp, ebp
pop ebp
ret
Function at 0x417070
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x5a83f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x80c], 0
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x417140
lea ecx, [ebp - 0x810]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x41712c
xor edx, edx
mov word [ebp - 0x804], dx
push 0x7fe
push 0
lea eax, [ebp - 0x802]
push eax
call fcn.004efc10
add esp, 0xc
lea ecx, [ebp - 0x804]
push ecx
mov edx, dword [ebp - 0x810]
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x417111
lea eax, [ebp - 0x804]
push eax
mov ecx, dword [ebp + 8]
call fcn.00403f40
mov ecx, dword [ebp - 0x80c]
or ecx, 1
mov dword [ebp - 0x80c], ecx
mov eax, dword [ebp + 8]
jmp 0x41715f
mov edx, dword [ebp - 0x810]
push edx
mov eax, dword [ebp - 0x808]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x808]
push edx
mov eax, dword [ecx + 0x14]
call eax
mov ecx, dword [ebp - 0x808]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x808]
push eax
mov ecx, dword [edx + 8]
call ecx
push 0x59e170
mov ecx, dword [ebp + 8]
call fcn.00403f40
mov edx, dword [ebp - 0x80c]
or edx, 1
mov dword [ebp - 0x80c], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ec22
mov esp, ebp
pop ebp
ret
Function at 0x4175e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54989d
mov eax, dword fs:[0]
push eax
sub esp, 0x8b0
mov eax, dword [0x5a83f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov word [ebp - 0x810], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x80e]
push ecx
call fcn.004efc10
add esp, 0xc
push 0
push 0xb
lea edx, [ebp - 0x810]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [ebp - 0x8bc], eax
cmp dword [ebp - 0x8bc], 0
je 0x417827
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x828]
call fcn.00403f40
mov dword [ebp - 4], 0
push 0x59e278
lea ecx, [ebp - 0x828]
call fcn.00405910
push 0x59e27c
lea ecx, [ebp - 0x828]
call fcn.00405910
lea ecx, [ebp - 0x828]
push ecx
call fcn.00405e50
add esp, 4
mov dword [ebp - 0x8bc], eax
cmp dword [ebp - 0x8bc], 0
je 0x417815
push 0x59e298
lea edx, [ebp - 0x828]
push edx
lea eax, [ebp - 0x858]
push eax
call fcn.004065e0
add esp, 0xc
mov byte [ebp - 4], 1
push 0x59e2a0
lea ecx, [ebp - 0x858]
call fcn.00405910
push 0x59e2bc
lea ecx, [ebp - 0x858]
call fcn.00405910
lea ecx, [ebp - 0x858]
call fcn.00401be0
push eax
lea ecx, [ebp - 0x888]
call fcn.00403f40
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 8]
call fcn.00401be0
push eax
lea ecx, [ebp - 0x870]
call fcn.00403f40
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x888]
push ecx
lea edx, [ebp - 0x870]
push edx
call fcn.00416da0
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x870]
call fcn.00401c90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x888]
call fcn.00401c90
push 0x59e2c8
lea eax, [ebp - 0x828]
push eax
lea ecx, [ebp - 0x840]
push ecx
call fcn.004065e0
add esp, 0xc
mov byte [ebp - 4], 4
push 0x59e2d0
lea ecx, [ebp - 0x840]
call fcn.00405910
push 0x59e2ec
lea ecx, [ebp - 0x840]
call fcn.00405910
lea ecx, [ebp - 0x840]
call fcn.00401be0
push eax
lea ecx, [ebp - 0x8b8]
call fcn.00403f40
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 0xc]
call fcn.00401be0
push eax
lea ecx, [ebp - 0x8a0]
call fcn.00403f40
mov byte [ebp - 4], 6
lea edx, [ebp - 0x8b8]
push edx
lea eax, [ebp - 0x8a0]
push eax
call fcn.00416da0
add esp, 8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x8a0]
call fcn.00401c90
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x8b8]
call fcn.00401c90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x840]
call fcn.00401c90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x858]
call fcn.00401c90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x828]
call fcn.00401c90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046ec22
mov esp, ebp
pop ebp
ret
Function at 0x422be0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0x1505
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp - 0xc]
jae 0x422c33
mov edx, dword [ebp - 8]
shl edx, 5
add edx, dword [ebp - 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
mov cl, byte [eax]
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
push edx
call fcn.00436740
add esp, 4
movsx eax, al
xor eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
jmp 0x422bf6
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 0x3f
div ecx
mov eax, edx
mov esp, ebp
pop ebp
ret

Function at 0x423f20
Capabilities:
Convert ip address from string

Disassembly:
mov eax, dword [esp + 8]
test eax, eax
je 0x423f4c
cmp byte [eax], 0
je 0x423f4c
lea ecx, [esp + 8]
push ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
je 0x423f46
mov eax, 0x2b
ret
mov eax, dword [esp + 8]
jmp 0x423f52
xor eax, eax
mov dword [esp + 8], eax
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
push eax
mov eax, dword [esp + 8]
push dword [eax + 0x920]
call fcn.00519bc0
add esp, 8
xor eax, eax
ret

Function at 0x423f70
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x48
mov eax, dword [0x5a83f8]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x50]
push esi
mov esi, dword [esp + 0x50]
test eax, eax
je 0x423fb8
cmp byte [eax], 0
je 0x423fb8
lea ecx, [esp + 4]
push ecx
push eax
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
je 0x423fc9
mov eax, 0x2b
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0046ec22
add esp, 0x48
ret
push 0x41
lea eax, [esp + 8]
push 0
push eax
call fcn.004efc10
add esp, 0xc
lea eax, [esp + 4]
push eax
push dword [esi + 0x920]
call fcn.00519bf0
mov ecx, dword [esp + 0x50]
add esp, 8
xor eax, eax
pop esi
xor ecx, esp
call fcn.0046ec22
add esp, 0x48
ret
Function at 0x429d10
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x14
mov eax, dword [0x5a83f8]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x429d7a
cmp byte [esi], 0
je 0x429d7a
lea eax, [esp + 4]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x429d53
mov eax, 1
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0046ec22
add esp, 0x14
ret
lea eax, [esp + 4]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x429d7a
mov eax, 2
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0046ec22
add esp, 0x14
ret
mov ecx, dword [esp + 0x14]
xor eax, eax
pop esi
xor ecx, esp
call fcn.0046ec22
add esp, 0x14
ret

Function at 0x42fe80
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi + 0x69a], 0
je 0x42ff0c
cmp dword [esi + 0x194], 0
je 0x42fed3
push esi
call fcn.0041dfb0
push 1
push esi
mov byte [esp + 0x14], al
call fcn.0041e490
push dword [esi + 0x144]
mov eax, dword [esi + 0x194]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call eax
push dword [esp + 0x28]
push esi
call fcn.0041e490
add esp, 0x28
pop esi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x42ff0c
push dword [esi + 0x140]
lea eax, [eax + eax*2]
push 1
add eax, 0x5511e0
push 2
push eax
call fcn.004f301f
push dword [esi + 0x140]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.004f301f
add esp, 0x20
pop esi
ret
Function at 0x4333b0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x551b14
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
jne 0x4333ca
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push 0x551b28
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x551b38
push esi
call fcn.004fe2da
add esp, 8
test eax, eax
je 0x433412
test ebp, ebp
je 0x433403
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x433438
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x433438
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x433532
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x433455
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x433528
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x433528
mov edx, ebx
lea ecx, [edx + 2]
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4334a0
sub edx, ecx
mov ecx, 0x551b50
sar edx, 1
lea edx, [ebx + edx*2]
sub edx, ecx
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4334c0
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4334d5
sub ecx, edx
sar ecx, 1
lea ecx, [ebx + ecx*2]
sub ecx, esi
nop dword [eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x4334f0
test ebp, ebp
je 0x43351f
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x5a8004]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push ebx
call dword [0x5a8004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x434370
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x44
mov eax, dword [0x5a83f8]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x4c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x54]
mov ebx, 0x54d877
mov dword [esp + 0x14], eax
mov ebp, ebx
lea eax, [esp + 0x18]
mov dword [esp + 0x10], 0x54d877
push eax
push dword [esi + 0x1c]
mov dword [esp + 0x14], 0x54d877
push dword [esi + 0x18]
call fcn.004427e0
add esp, 0xc
test eax, eax
jne 0x4344a6
push edi
mov edi, dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [esp + 0x40]
push eax
push dword [esi + 0xc]
push 0x17
call edi
cmp eax, 1
jne 0x4343e7
mov dword [esp + 0x14], 0x550f64
mov dword [esp + 0x10], 0x550f60
lea eax, [esp + 0x40]
push eax
push dword [esi]
push 0x17
call edi
cmp eax, 1
jne 0x434401
mov ebx, 0x550f64
mov ebp, 0x550f60
mov eax, dword [esi + 0x14]
mov ecx, 0x54d877
mov edi, 0x551b5c
cmp eax, 8
je 0x434429
cmp eax, 0x10
je 0x434422
cmp eax, 0x20
mov edx, ecx
cmove edx, edi
jmp 0x43442e
mov edx, 0x551b58
jmp 0x43442e
mov edx, 0x551b54
mov eax, dword [esi + 8]
cmp eax, 8
je 0x43444a
cmp eax, 0x10
je 0x434443
cmp eax, 0x20
cmove ecx, edi
jmp 0x43444f
mov ecx, 0x551b58
jmp 0x43444f
mov ecx, 0x551b54
push dword [esi + 0x24]
movzx eax, byte [esi + 0x20]
push eax
push dword [esp + 0x24]
mov eax, dword [esp + 0x38]
push dword [esp + 0x2c]
inc eax
push dword [esp + 0x34]
push dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x4c]
add eax, 0x76c
push eax
movzx eax, word [esi + 0x10]
push eax
push dword [esp + 0x34]
movzx eax, word [esi + 4]
push dword [esi + 0xc]
push dword [esp + 0x40]
push edx
push eax
push ebp
push dword [esi]
push ebx
push ecx
push str._s__s_s_s__u__s__s_s_s__u___d_02d_02d__02d:_02d:_02d___u__d_n
push dword [esp + 0x64]
call fcn.00435210
add esp, 0x50
xor eax, eax
pop edi
mov ecx, dword [esp + 0x4c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046ec22
add esp, 0x44
ret

Function at 0x439780
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x18
mov eax, dword [0x5a83f8]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
lea eax, [esp + 4]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x4397c9
lea eax, [esp + 8]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x4397c9
xor al, al
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0046ec22
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
mov al, 1
pop esi
xor ecx, esp
call fcn.0046ec22
add esp, 0x18
ret

Function at 0x4397e0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4397ff
cmp dword [esi + 0x84], 0
je 0x4397ff
push 2
push 3
push esi
call fcn.00437a40
add esp, 0xc
push dword [esp + 0xc]
call fcn.00439200
add esp, 4
test esi, esi
je 0x439823
cmp dword [esi + 0x84], 0
je 0x439823
push 3
push esi
call fcn.00437a80
add esp, 8
pop esi
ret
Function at 0x439920
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x439960
mov eax, dword [esi + 0x7c]
cmp byte [eax + 0x114], 0
jne 0x43994f
push 0
call fcn.00439920
add esp, 4
test al, al
mov eax, dword [esi + 0x7c]
setne cl
inc cl
mov byte [eax + 0x114], cl
mov ecx, dword [esi + 0x7c]
xor eax, eax
pop esi
cmp byte [ecx + 0x114], 2
sete al
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x43997c
xor esi, esi
xor eax, eax
test esi, esi
pop esi
setg al
ret
push eax
mov esi, 1
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
test esi, esi
pop esi
setg al
ret