joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445a6d
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4b4070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push 0x1a
push eax
push esi
call fcn.00445f7d
lea eax, [ebp - 0x20c]
push eax
call fcn.0045cc4b
add esp, 0x14
test eax, eax
je 0x445b25
lea eax, [ebp - 0x20c]
push 0x4a5860
push eax
call fcn.0045cbb8
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0045cbb8
lea eax, [ebp - 0x20c]
push 0x4a5860
push eax
call fcn.0045cbb8
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x445afe
lea eax, [ebp - 0x20c]
push eax
call fcn.004459e3
pop ecx
cmp word [ebp - 0x20c], si
je 0x445b16
lea eax, [ebp - 0x20c]
push eax
call fcn.0045cc4b
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00402790
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b44e
mov esp, ebp
pop ebp
ret

Function at 0x445c5e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4b4070]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [0x4b7000]
test al, al
jne 0x445cf7
push ebx
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00448c20
add esp, 0xc
lea eax, [ebp - 0x20c]
xor ebx, ebx
inc ebx
push ebx
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x445cee
lea eax, [ebp - 0x20c]
push eax
call fcn.0045cdef
lea eax, [ebp - 0x20c]
mov dword [esp], str.config_systemprofile
push eax
call fcn.00447de4
pop ecx
pop ecx
test eax, eax
jne 0x445ce6
lea eax, [ebp - 0x20c]
push str.documents_and_settingslocalservice
push eax
call fcn.00447de4
pop ecx
pop ecx
test eax, eax
je 0x445cee
mov byte [0x4b7000], bl
jmp 0x445cf4
mov bl, byte [0x4b7000]
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b44e
mov esp, ebp
pop ebp
ret
Function at 0x445d05
Capabilities:
Check if file exists

Disassembly:
push 0xc54
mov eax, 0x48ff0c
call fcn.0043befc
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xc40]
mov ebx, dword [ebp + 0xc]
mov esi, 0x208
and dword [ebp - 0xc60], 0
push esi
push 0
push eax
call fcn.00448c20
push esi
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.00448c20
push esi
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00448c20
push esi
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.00448c20
push esi
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00448c20
push esi
xor esi, esi
lea eax, [ebp - 0x420]
push esi
push eax
call fcn.00448c20
xor eax, eax
mov dword [ebp - 0xc44], 7
add esp, 0x48
mov dword [ebp - 0xc48], esi
mov word [ebp - 0xc58], ax
push esi
push 0x1a
lea eax, [ebp - 0xc40]
mov dword [ebp - 4], esi
push eax
push esi
call fcn.00445f7d
lea eax, [ebp - 0xc40]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0045cc29
lea eax, [ebp - 0x218]
push eax
call fcn.0045cc4b
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0044ab4e
add esp, 0x24
test eax, eax
jne 0x445e09
lea eax, [ebp - 0xc58]
push ebx
push eax
call fcn.00445a6d
pop ecx
pop ecx
lea eax, [ebp - 0xc58]
mov ecx, edi
push eax
call fcn.00403c90
push esi
push 1
jmp 0x445f6a
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.0045cc29
lea eax, [ebp - 0x830]
push str.Local
push eax
call fcn.0045cbb8
add esp, 0x10
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
inc ecx
test eax, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
cmovne esi, ecx
push eax
call fcn.0045cc29
lea eax, [ebp - 0x628]
push str.LocalLow
push eax
call fcn.0045cbb8
add esp, 0x10
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
push 1
pop eax
cmovne ecx, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xa38]
mov dword [ebp - 0xc5c], ecx
push eax
call fcn.0045cc29
lea eax, [ebp - 0xa38]
push str.Roaming
push eax
call fcn.0045cbb8
add esp, 0x10
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
push 1
pop eax
cmovne ecx, eax
test esi, esi
je 0x445f47
cmp dword [ebp - 0xc5c], 0
je 0x445f47
test ecx, ecx
je 0x445f47
push ebx
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push str._s_s_
push eax
call fcn.00402700
add esp, 0x10
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x445f17
lea eax, [ebp - 0x420]
push eax
call fcn.004459e3
pop ecx
cmp word [ebp - 0x420], 0
jne 0x445f25
xor eax, eax
jmp 0x445f32
lea eax, [ebp - 0x420]
push eax
call fcn.0045cc4b
pop ecx
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0xc58]
call fcn.00402790
jmp 0x445f56
lea eax, [ebp - 0xc58]
push ebx
push eax
call fcn.00445a6d
pop ecx
pop ecx
lea eax, [ebp - 0xc58]
mov ecx, edi
push eax
call fcn.00403c90
xor eax, eax
push 0
inc eax
push eax
lea ecx, [ebp - 0xc58]
call fcn.00402d90
mov eax, edi
call fcn.0043bea6
ret
Function at 0x446131
Capabilities:
Enumerate processes

Disassembly:
push 0x260
mov eax, 0x48ff88
call fcn.0043befc
mov eax, dword [ebp + 8]
test eax, eax
je 0x44622d
push eax
lea ecx, [ebp - 0x40]
call fcn.00402730
lea eax, [ebp - 0x40]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00441241
mov edi, 0x22c
lea eax, [ebp - 0x26c]
push edi
push ebx
push eax
call fcn.00448c20
add esp, 0x10
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x44621e
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], edi
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x446213
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
cmp word [ebp - 0x248], ax
jne 0x4461bd
mov eax, ebx
jmp 0x4461ca
lea eax, [ebp - 0x248]
push eax
call fcn.0045cc4b
pop ecx
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x28]
call fcn.00402790
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.00441241
pop ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00407600
test eax, eax
je 0x446233
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.00402d90
lea eax, [ebp - 0x26c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4461a0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.00402d90
mov eax, esi
call fcn.0043bea6
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x264]
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.00402d90
jmp 0x446220
Function at 0x446350
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x83c
mov eax, 0x48ffbb
call fcn.0043befc
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x828]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
and dword [ebp - 0x848], 0
mov dword [ebp - 0x83c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x844], eax
mov eax, dword [ebp + 0x1c]
push eax
call fcn.00402730
xor ecx, ecx
lea eax, [ebp - 0x82c]
push eax
push 0x20119
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push reloc.WS2_32.dll_closesocket
mov dword [ebp - 4], ecx
mov dword [ebp - 0x82c], ecx
mov dword [ebp - 0x838], ecx
mov dword [ebp - 0x834], ecx
mov dword [ebp - 0x830], ecx
call esi
test eax, eax
je 0x4463e1
lea eax, [ebp - 0x828]
mov ecx, edi
push eax
call fcn.00403c90
push 0
jmp 0x44651e
lea eax, [ebp - 0x838]
push eax
push 0x20119
push 0
push str.SoftWare
push dword [ebp - 0x82c]
call esi
test eax, eax
je 0x44640e
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4463cc
lea eax, [ebp - 0x834]
push eax
push 0x20119
push 0
push ebx
push dword [ebp - 0x838]
call esi
test eax, eax
je 0x446441
push dword [ebp - 0x838]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x82c]
call esi
jmp 0x4463cc
lea eax, [ebp - 0x830]
xor ebx, ebx
push eax
push 0x20119
push ebx
push dword [ebp - 0x83c]
push dword [ebp - 0x834]
call esi
test eax, eax
je 0x446493
push dword [ebp - 0x830]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x834]
call esi
push dword [ebp - 0x82c]
call esi
mov ecx, edi
lea eax, [ebp - 0x828]
push eax
call fcn.00403c90
jmp 0x44651d
push 0x800
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.00448c20
add esp, 0xc
mov dword [ebp - 0x840], 0x400
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x810]
push eax
push ebx
push ebx
push dword [ebp - 0x844]
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x830]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x834]
call esi
push dword [ebp - 0x838]
call esi
push dword [ebp - 0x82c]
call esi
lea eax, [ebp - 0x810]
push eax
call fcn.0045cc4b
pop ecx
mov ecx, edi
test eax, eax
je 0x446482
lea eax, [ebp - 0x810]
push eax
call fcn.00402730
push ebx
push 1
lea ecx, [ebp - 0x828]
call fcn.00402d90
mov eax, edi
call fcn.0043bea6
ret
Function at 0x446533
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x838
mov eax, 0x48ffee
call fcn.0043befc
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x828]
mov edi, dword [ebp + 8]
xor esi, esi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x838], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x840], eax
mov eax, dword [ebp + 0x18]
push eax
mov dword [ebp - 0x844], esi
call fcn.00402730
lea eax, [ebp - 0x834]
mov dword [ebp - 0x834], esi
push eax
push 0x20119
push esi
push str.SoftWare
mov dword [ebp - 0x830], esi
mov dword [ebp - 0x82c], esi
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push reloc.WS2_32.dll_bind
call esi
test eax, eax
je 0x4465be
lea eax, [ebp - 0x828]
mov ecx, edi
push eax
call fcn.00403c90
push 0
jmp 0x4466ad
lea eax, [ebp - 0x830]
push eax
push 0x20119
push 0
push ebx
push dword [ebp - 0x834]
call esi
test eax, eax
je 0x4465e7
push dword [ebp - 0x834]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4465a9
lea eax, [ebp - 0x82c]
xor ebx, ebx
push eax
push 0x20119
push ebx
push dword [ebp - 0x838]
push dword [ebp - 0x830]
call esi
test eax, eax
je 0x44662e
push dword [ebp - 0x830]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x82c]
call esi
mov ecx, edi
lea eax, [ebp - 0x828]
push eax
call fcn.00403c90
jmp 0x4466ac
push 0x800
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.00448c20
add esp, 0xc
mov dword [ebp - 0x83c], 0x400
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x810]
push eax
push ebx
push ebx
push dword [ebp - 0x840]
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x82c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x830]
call esi
push dword [ebp - 0x834]
call esi
lea eax, [ebp - 0x810]
push eax
call fcn.0045cc4b
pop ecx
mov ecx, edi
test eax, eax
je 0x446620
lea eax, [ebp - 0x810]
push eax
call fcn.00402730
push ebx
push 1
lea ecx, [ebp - 0x828]
call fcn.00402d90
mov eax, edi
call fcn.0043bea6
ret
Function at 0x4466c2
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x834
mov eax, 0x490021
call fcn.0043befc
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x828]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
and dword [ebp - 0x840], 0
mov dword [ebp - 0x83c], eax
mov eax, dword [ebp + 0x18]
push eax
call fcn.00402730
xor ecx, ecx
lea eax, [ebp - 0x834]
push eax
push 0xf013f
push ecx
push str.SoftWare
push reloc.WS2_32.dll_accept
mov dword [ebp - 4], ecx
mov dword [ebp - 0x834], ecx
mov dword [ebp - 0x830], ecx
mov dword [ebp - 0x82c], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x446746
lea eax, [ebp - 0x828]
mov ecx, edi
push eax
call fcn.00403c90
push 0
jmp 0x446844
xor ecx, ecx
lea eax, [ebp - 0x830]
push ecx
push eax
push ecx
push 0xf013f
push ecx
push ecx
push ecx
push esi
push dword [ebp - 0x834]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
call esi
test eax, eax
je 0x44677a
push dword [ebp - 0x834]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x446731
xor ecx, ecx
lea eax, [ebp - 0x82c]
push ecx
push eax
push ecx
push 0xf013f
push ecx
push ecx
push ecx
push ebx
push dword [ebp - 0x830]
call esi
test eax, eax
je 0x4467b5
push dword [ebp - 0x830]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x82c]
call esi
jmp 0x446731
push 0x800
xor ebx, ebx
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.00448c20
add esp, 0xc
mov dword [ebp - 0x838], 0x400
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x810]
push eax
push ebx
push ebx
push dword [ebp - 0x83c]
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x82c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x830]
call esi
push dword [ebp - 0x834]
call esi
lea eax, [ebp - 0x810]
push eax
call fcn.0045cc4b
pop ecx
mov ecx, edi
test eax, eax
jne 0x446837
lea eax, [ebp - 0x828]
push eax
call fcn.00403c90
jmp 0x446843
lea eax, [ebp - 0x810]
push eax
call fcn.00402730
push ebx
push 1
lea ecx, [ebp - 0x828]
call fcn.00402d90
mov eax, edi
call fcn.0043bea6
ret
Function at 0x446859
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
lea eax, [ebp - 0xc]
xor edi, edi
push eax
mov ebx, 0xf013f
mov dword [ebp - 0xc], edi
push ebx
push edi
push str.SoftWare
push reloc.WS2_32.dll_accept
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x446916
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 8]
push edi
push eax
push edi
push ebx
push edi
push edi
push edi
push dword [ebp + 8]
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x4468b7
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x446915
push edi
lea eax, [ebp - 4]
push eax
push edi
push ebx
push edi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp - 8]
call esi
test eax, eax
je 0x4468dd
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 4]
jmp 0x446913
push dword [ebp + 0x14]
call fcn.0045cc4b
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0x14]
push 1
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 0xc]
call esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45ff13
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045fbd6

Function at 0x45ff1e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045fd57

Function at 0x465b08
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004657c8

Function at 0x46e570
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x48
push 1
call dword [0x4b4a60]
mov esi, dword [ebp + 8]
mov edi, eax
add esp, 8
mov ebx, 8
mov dword [esi + 0x3bc], edi
test edi, edi
je 0x46e64c
push dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
lea eax, [edi + 0x10]
push ecx
push dword [ebp + 0xc]
mov dword [esi + 0x3ac], ecx
mov dword [esi + 0x3b4], 0
mov dword [esi + 0x3b8], 0
mov dword [esi + 0x3b0], 0
push eax
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0
call fcn.0046e680
add esp, 0x10
test eax, eax
je 0x46e64c
mov eax, dword [esi + 0x3a8]
test eax, eax
je 0x46e604
push eax
call dword [0x4b4a54]
add esp, 4
mov dword [esi + 0x3a8], 0
push dword [ebp + 0xc]
call dword [0x4b4a5c]
add esp, 4
mov dword [esi + 0x3a8], eax
test eax, eax
je 0x46e64c
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x46e64c
lea eax, [edi + 0x10]
push eax
push 0x46e4e0
call fcn.00474420
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x46e669
call fcn.00450034
mov ebx, dword [eax]
lea eax, [esi + 0x3a8]
push eax
call fcn.0046e3f0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
Function at 0x46f5d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ecx + eax*4 + 0x130]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x46f64e
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x46f61e
pop esi
pop edi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push esi
push dword [ebp + 8]
call fcn.00473930
push eax
mov eax, dword [ebp + 8]
push str.Send_failure:__s
push dword [eax]
call fcn.0046f340
mov eax, dword [ebp + 8]
add esp, 0x14
mov eax, dword [eax]
mov dword [eax + 0x856c], esi
mov eax, edi
mov dword [ebx], 0x37
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x46f830
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x164]
test eax, eax
je 0x46f859
push dword [esi + 0xf4]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x46f88f
push dword [esi + 0xf0]
lea eax, [eax + eax*2]
push 1
add eax, 0x49eac8
push 2
push eax
call fcn.004506fa
push dword [esi + 0xf0]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004506fa
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x46fc00
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4b4070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x19c], 0
mov ebx, dword [edi]
jne 0x46fd73
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x46fc7e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.00473930
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.0046f340
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b44e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x108]
mov dword [ebp - 0x108], 0x80
push eax
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x46fcd1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.00473930
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.0046f340
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b44e
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xcc]
push eax
lea eax, [edi + 0x9e]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00470170
add esp, 0xc
test eax, eax
jne 0x46fd22
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.00473930
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0046f340
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b44e
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x100]
push eax
lea eax, [edi + 0xd0]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00470170
add esp, 0xc
test eax, eax
jne 0x46fd73
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.00473930
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0046f340
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b44e
mov esp, ebp
pop ebp
ret
push edi
call fcn.0046fa20
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0043b44e
mov esp, ebp
pop ebp
ret
Function at 0x4705e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push 4
mov esi, dword [edi]
mov eax, dword [esi + 0x314]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 1
push 6
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x47062a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00473930
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0046f3e0
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0046f3e0
add esp, 8
pop edi
pop esi
pop ebp
ret

Function at 0x472660
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov cl, byte [ebp + 8]
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x472671
jmp dword [eax*4 + 0x4726e4]
mov al, 0x41
pop ebp
ret
mov al, 0x42
pop ebp
ret
mov al, 0x43
pop ebp
ret
mov al, 0x44
pop ebp
ret
mov al, 0x45
pop ebp
ret
mov al, 0x46
pop ebp
ret
mov al, 0x47
pop ebp
ret
mov al, 0x48
pop ebp
ret
mov al, 0x49
pop ebp
ret
mov al, 0x4a
pop ebp
ret
mov al, 0x4b
pop ebp
ret
mov al, 0x4c
pop ebp
ret
mov al, 0x4d
pop ebp
ret
mov al, 0x4e
pop ebp
ret
mov al, 0x4f
pop ebp
ret
mov al, 0x50
pop ebp
ret
mov al, 0x51
pop ebp
ret
mov al, 0x52
pop ebp
ret
mov al, 0x53
pop ebp
ret
mov al, 0x54
pop ebp
ret
mov al, 0x55
pop ebp
ret
mov al, 0x56
pop ebp
ret
mov al, 0x57
pop ebp
ret
mov al, 0x58
pop ebp
ret
mov al, 0x59
pop ebp
ret
mov al, 0x5a
pop ebp
ret
mov al, cl
pop ebp
ret
Function at 0x473300
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4b4070]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4b79ac], 0
mov dword [ebp - 0x230], str.getaddrinfo
mov dword [ebp - 0x22c], 0x472e10
mov dword [ebp - 0x228], str.getnameinfo
mov dword [ebp - 0x224], 0x4730b0
mov dword [ebp - 0x220], str.freeaddrinfo
mov dword [ebp - 0x21c], fcn.00472dc0
jne 0x473482
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x473478
push ebx
push esi
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push 0x10c
push eax
call fcn.0045d5bf
push str.ws2_32
lea eax, [ebp - 0x110]
push 0x10c
push eax
call fcn.0048ac3a
add esp, 0x18
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test edi, edi
je 0x4733d8
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x47342d
push edi
call esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push 0x10c
push eax
call fcn.0045d5bf
push str.wship6
lea eax, [ebp - 0x110]
push 0x10c
push eax
call fcn.0048ac3a
add esp, 0x18
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x473475
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x47342d
push edi
call esi
jmp 0x473475
xor esi, esi
nop
push dword [ebp + esi*8 - 0x230]
push edi
call ebx
mov dword [ebp + esi*8 - 0x22c], eax
test eax, eax
je 0x47346e
inc esi
cmp esi, 3
jl 0x473430
mov eax, dword [ebp - 0x22c]
mov dword [0x4b4a68], eax
mov eax, dword [ebp - 0x224]
mov dword [0x4b4a70], eax
mov eax, dword [ebp - 0x21c]
mov dword [fcn.00472dc0], eax
jmp 0x473475
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
mov dword [0x4b79ac], 1
movzx eax, word [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, dword [eax*8 + 0x4b4a68]
call fcn.0043b44e
mov esp, ebp
pop ebp
ret 4