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

Disassembly:
push 0x68
mov eax, 0x45da63
call fcn.004146fb
mov esi, ecx
lea eax, [esi + 4]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x28]
call fcn.00407370
xor edi, edi
mov byte [ebp - 4], 3
cmp dword [ebp + 8], edi
je 0x40e941
lea eax, [esi + 0x1c]
lea ecx, [ebp - 0x28]
cmp ecx, eax
je 0x40e941
push 0xffffffffffffffff
push edi
push eax
call fcn.00406e50
push 8
pop ebx
cmp dword [ebp + 0x50], ebx
lea eax, [ebp + 0x3c]
cmovae eax, dword [ebp + 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e961
xor esi, esi
inc esi
jmp 0x40ea7c
lea eax, [ebp + 0xc]
push eax
call fcn.0040d1f8
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040cdae
add esp, 0xc
cmp dword [ebp - 0x14], ebx
lea edx, [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp + 0x24]
cmovae edx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp + 0x38], ebx
push edx
cmovae ecx, dword [ebp + 0x24]
cmp dword [ebp - 0x2c], ebx
push ecx
cmovae eax, dword [ebp - 0x40]
push 0x460b2c
push eax
mov byte [ebp - 4], 4
call esi
cmp dword [ebp - 0x14], ebx
lea edx, [ebp - 0x28]
lea ecx, [ebp + 0x3c]
cmovae edx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp + 0x50], ebx
push edx
cmovae ecx, dword [ebp + 0x3c]
cmp dword [ebp - 0x2c], ebx
push ecx
cmovae eax, dword [ebp - 0x40]
push str.File
push eax
call esi
cmp dword [ebp + 0x50], ebx
lea eax, [ebp + 0x3c]
cmovae eax, dword [ebp + 0x3c]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00406b00
lea eax, [ebp - 0x58]
push eax
call fcn.0040bc79
add esp, 0x1c
cmp dword [ebp - 0x14], ebx
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
cmovae edx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x44], ebx
push edx
cmovae ecx, dword [ebp - 0x58]
cmp dword [ebp - 0x2c], ebx
push ecx
cmovae eax, dword [ebp - 0x40]
push str.LastMD5
push eax
call esi
push edi
call fcn.00443211
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0040eb04
add esp, 0xc
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], ebx
mov ecx, eax
cmovae edx, dword [ebp - 0x28]
cmp dword [ecx + 0x14], ebx
jb 0x40ea47
mov ecx, dword [ecx]
cmp dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x40]
push edx
cmovae eax, dword [ebp - 0x40]
push ecx
push str.CacheTime
push eax
call esi
xor esi, esi
lea ecx, [ebp - 0x70]
push edi
inc esi
push esi
call fcn.00406b70
push edi
push esi
lea ecx, [ebp - 0x58]
call fcn.00406b70
push edi
push esi
lea ecx, [ebp - 0x40]
call fcn.00406b70
push edi
push esi
lea ecx, [ebp - 0x28]
call fcn.00406b70
push edi
push esi
lea ecx, [ebp + 0xc]
call fcn.00406b70
push edi
push esi
lea ecx, [ebp + 0x24]
call fcn.00406b70
push edi
push esi
lea ecx, [ebp + 0x3c]
call fcn.00406b70
call fcn.004146b6
ret 0x4c
Function at 0x40f90c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x476094]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
jle 0x40f9a1
lea ecx, [eax + 0x80]
add eax, 0x100
dec edi
mov dword [ebp - 0x14], ecx
shr edi, 3
inc edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], edi
mov edx, ebx
mov ecx, esi
push 8
sub edx, esi
pop edi
mov al, byte [edx + ecx]
mov byte [ecx], al
inc ecx
sub edi, 1
jne 0x40f951
push 8
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.0043e740
push esi
push esi
push dword [ebp - 0x14]
call fcn.0040ebf2
mov edx, dword [ebp - 0x18]
add esp, 0x18
xor ecx, ecx
mov al, byte [edx + ecx]
xor byte [esi + ecx], al
inc ecx
cmp ecx, 8
jl 0x40f97a
push 8
lea eax, [ebp - 0xc]
push eax
push edx
call fcn.0043e740
add esp, 0xc
add ebx, 8
add esi, 8
sub dword [ebp - 0x10], 1
jne 0x40f948
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414690
mov esp, ebp
pop ebp
ret

Function at 0x40fca9
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
neg eax
sbb eax, eax
inc eax
mov dword [esi + 4], eax
pop esi
pop ebp
ret 4

Function at 0x40fd77
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push esi
xor ecx, ecx
xor edx, edx
xor esi, esi
push edi
cmp dword [ebp + 0xc], ecx
jle 0x40fe58
mov edi, dword [ebp + 8]
mov al, byte [esi + edi]
cmp al, 0x3d
jne 0x40fd9b
inc edx
cmp edx, 2
jg 0x40fdd9
cmp al, 0x7f
ja 0x40fdd9
movzx eax, al
mov al, byte [eax + 0x4614b8]
cmp al, 0x7f
je 0x40fdd9
cmp al, 0x40
jae 0x40fdb4
test edx, edx
jne 0x40fdd9
inc ecx
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x40fd8e
test ecx, ecx
je 0x40fe58
mov edi, dword [ebp + 0x14]
imul eax, ecx, 6
add eax, 7
sar eax, 3
cmp dword [edi], eax
jge 0x40fdde
mov dword [edi], eax
push 0xfffffffffffffff0
jmp 0x40fddb
push 0xffffffffffffffee
pop eax
jmp 0x40fe5a
mov edx, dword [ebp + 0x10]
xor eax, eax
push ebx
xor ebx, ebx
mov dword [ebp + 0xc], eax
test esi, esi
jle 0x40fe52
mov eax, dword [ebp + 8]
push 3
pop edi
movzx eax, byte [eax]
mov cl, byte [eax + 0x4614b8]
xor eax, eax
cmp cl, 0x40
sete al
shl ebx, 6
sub edi, eax
movzx eax, cl
mov ecx, dword [ebp + 0xc]
and eax, 0x3f
or ebx, eax
inc ecx
mov dword [ebp + 0xc], ecx
cmp ecx, 4
jne 0x40fe43
xor eax, eax
mov dword [ebp + 0xc], eax
test edi, edi
jle 0x40fe2e
mov eax, ebx
shr eax, 0x10
mov byte [edx], al
inc edx
cmp edi, 1
jle 0x40fe3b
mov eax, ebx
shr eax, 8
mov byte [edx], al
inc edx
cmp edi, 2
jle 0x40fe43
mov byte [edx], bl
inc edx
mov eax, dword [ebp + 8]
dec esi
inc eax
mov dword [ebp + 8], eax
test esi, esi
jg 0x40fdf3
mov edi, dword [ebp + 0x14]
sub edx, dword [ebp + 0x10]
mov dword [edi], edx
pop ebx
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x411fa8
Capabilities:
Enumerate processes

Disassembly:
push 0x260
mov eax, 0x45dee4
call fcn.004146fb
mov eax, dword [ebp + 8]
test eax, eax
je 0x4120a4
push eax
lea ecx, [ebp - 0x40]
call fcn.00406b00
lea eax, [ebp - 0x40]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040d1f8
mov edi, 0x22c
lea eax, [ebp - 0x26c]
push edi
push ebx
push eax
call fcn.0043f240
add esp, 0x10
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x412095
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], edi
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x41208a
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
cmp word [ebp - 0x248], ax
jne 0x412034
mov eax, ebx
jmp 0x412041
lea eax, [ebp - 0x248]
push eax
call fcn.004424dd
pop ecx
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x28]
call fcn.00406c30
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.0040d1f8
pop ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00407810
test eax, eax
je 0x4120aa
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.00406b70
lea eax, [ebp - 0x26c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x412017
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.00406b70
mov eax, esi
call fcn.004146b6
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.00406b70
jmp 0x412097
Function at 0x4121f7
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x83c
mov eax, 0x45df17
call fcn.004146fb
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.00406b00
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 0x412288
lea eax, [ebp - 0x828]
mov ecx, edi
push eax
call fcn.004072f0
push 0
jmp 0x4123c5
lea eax, [ebp - 0x838]
push eax
push 0x20119
push 0
push str.SoftWare
push dword [ebp - 0x82c]
call esi
test eax, eax
je 0x4122b5
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x412273
lea eax, [ebp - 0x834]
push eax
push 0x20119
push 0
push ebx
push dword [ebp - 0x838]
call esi
test eax, eax
je 0x4122e8
push dword [ebp - 0x838]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x82c]
call esi
jmp 0x412273
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 0x41233a
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.004072f0
jmp 0x4123c4
push 0x800
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.0043f240
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.004424dd
pop ecx
mov ecx, edi
test eax, eax
je 0x412329
lea eax, [ebp - 0x810]
push eax
call fcn.00406b00
push ebx
push 1
lea ecx, [ebp - 0x828]
call fcn.00406b70
mov eax, edi
call fcn.004146b6
ret
Function at 0x4123da
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x838
mov eax, 0x45df4a
call fcn.004146fb
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.00406b00
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 0x412465
lea eax, [ebp - 0x828]
mov ecx, edi
push eax
call fcn.004072f0
push 0
jmp 0x412554
lea eax, [ebp - 0x830]
push eax
push 0x20119
push 0
push ebx
push dword [ebp - 0x834]
call esi
test eax, eax
je 0x41248e
push dword [ebp - 0x834]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x412450
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 0x4124d5
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.004072f0
jmp 0x412553
push 0x800
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.0043f240
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.004424dd
pop ecx
mov ecx, edi
test eax, eax
je 0x4124c7
lea eax, [ebp - 0x810]
push eax
call fcn.00406b00
push ebx
push 1
lea ecx, [ebp - 0x828]
call fcn.00406b70
mov eax, edi
call fcn.004146b6
ret
Function at 0x412569
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x834
mov eax, 0x45df7d
call fcn.004146fb
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.00406b00
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 0x4125ed
lea eax, [ebp - 0x828]
mov ecx, edi
push eax
call fcn.004072f0
push 0
jmp 0x4126eb
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 0x412621
push dword [ebp - 0x834]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4125d8
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 0x41265c
push dword [ebp - 0x830]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x82c]
call esi
jmp 0x4125d8
push 0x800
xor ebx, ebx
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.0043f240
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.004424dd
pop ecx
mov ecx, edi
test eax, eax
jne 0x4126de
lea eax, [ebp - 0x828]
push eax
call fcn.004072f0
jmp 0x4126ea
lea eax, [ebp - 0x810]
push eax
call fcn.00406b00
push ebx
push 1
lea ecx, [ebp - 0x828]
call fcn.00406b70
mov eax, edi
call fcn.004146b6
ret
Function at 0x412700
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 4]
push edi
push eax
xor edi, edi
mov ebx, 0xf013f
push ebx
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push reloc.WS2_32.dll_closesocket
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
call esi
test eax, eax
jne 0x4127d8
lea eax, [ebp - 8]
push eax
push ebx
push edi
push str.SoftWare
push dword [ebp - 4]
call esi
test eax, eax
je 0x412759
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4127d8
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0xc]
push edi
push eax
push edi
push ebx
push edi
push edi
push edi
push dword [ebp + 8]
push dword [ebp - 8]
call esi
test eax, eax
je 0x41277d
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4127ce
push edi
lea eax, [ebp - 0x10]
push eax
push edi
push ebx
push edi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x41279b
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4127c9
push dword [ebp + 0x18]
call fcn.004424dd
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0x18]
push 1
push edi
push dword [ebp + 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0xc]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4127df
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_bind
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41289c
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 0x41283d
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41289b
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 0x412863
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 4]
jmp 0x412899
push dword [ebp + 0x14]
call fcn.004424dd
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 0x4128a2
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 0x41295f
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 0x412900
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41295e
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 0x412926
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 4]
jmp 0x41295c
push dword [ebp + 0x14]
call fcn.004424dd
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 0x412b63
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x41380f
Capabilities:
Check if file exists

Disassembly:
push 0x94
mov eax, 0x45e157
call fcn.004146fb
mov edi, ecx
mov eax, dword [ebp + 0x10]
lea ebx, [edi + 0x10]
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.0040d187
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0040cb93
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0040d3a4
add esp, 0x18
mov esi, dword [edi]
mov byte [ebp - 4], 2
jmp 0x4138a9
cmp dword [esi + 0x14], 0x10
jb 0x41387b
mov eax, dword [esi]
jmp 0x41387d
mov eax, esi
push eax
lea ecx, [ebp - 0x40]
call fcn.004079a2
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x40]
call fcn.004121c7
neg eax
lea ecx, [ebp - 0x40]
push 0
sbb al, al
push 1
add al, 1
jne 0x4138e1
call fcn.00407d5f
add esi, 0x18
cmp esi, dword [edi + 4]
jne 0x413871
xor esi, esi
push 0
push 1
lea ecx, [ebp - 0x70]
call fcn.00407d5f
push 0
push 1
lea ecx, [ebp - 0x88]
call fcn.00406b70
push 0
push 1
lea ecx, [ebp - 0x58]
call fcn.00406b70
mov eax, esi
call fcn.004146b6
ret 0xc
call fcn.00407d5f
cmp dword [ebx + 0x14], 0x10
jb 0x4138f0
mov eax, dword [ebx]
jmp 0x4138f2
mov eax, ebx
push eax
lea ecx, [ebp - 0x40]
call fcn.004079a2
mov esi, dword [ebp - 0x94]
lea eax, [ebp - 0x40]
push eax
push esi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
mov ecx, edi
call fcn.00413697
push 0
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.00407d5f
and dword [ebp - 0x90], 0
cmp dword [ebp + 0xc], 0
je 0x413993
cmp dword [edi + 0xb0], 0
je 0x4139b4
push 1
lea eax, [ebp - 0x28]
push eax
sub esp, 0x18
mov eax, esp
push ebx
push eax
call fcn.0040d187
pop ecx
pop ecx
mov ecx, dword [edi + 0xb0]
push esi
call fcn.0040e030
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4139ab
lea eax, [ebp - 0x90]
push eax
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00407370
call fcn.0040bb90
add esp, 0x1c
mov dword [edi + 0x64], eax
jmp 0x4139ab
sub esp, 0x18
mov ecx, esp
push ebx
call fcn.0040797c
mov ecx, edi
call fcn.00413541
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
jne 0x4139b8
xor esi, esi
jmp 0x413a31
and dword [ebp - 0xa0], 0
lea ecx, [ebp - 0x89]
and dword [ebp - 0x9c], 0
call fcn.00408180
lea eax, [edi + 0x40]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xa0]
push eax
push dword [ebp - 0x90]
lea ecx, [ebp - 0x89]
push dword [edi + 0x64]
call fcn.00413b37
cmp dword [ebp - 0xa0], 0
je 0x413a24
cmp dword [ebp - 0x9c], 0
je 0x413a24
push dword [ebp - 0x9c]
push dword [ebp - 0xa0]
call fcn.0040dc9e
pop ecx
pop ecx
mov esi, eax
jmp 0x413a26
xor esi, esi
lea ecx, [ebp - 0x89]
call fcn.00441f20
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00406b70
jmp 0x4138b0
Function at 0x4159a0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x476094]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4159f0
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4159ea
shr eax, 8
cmp al, 2
jne 0x4159ea
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414690
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.00414690
mov esp, ebp
pop ebp
ret

Function at 0x417770
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x48
push 1
call dword [0x4760f0]
mov esi, dword [ebp + 8]
mov edi, eax
add esp, 8
mov ebx, 8
mov dword [esi + 0x3bc], edi
test edi, edi
je 0x41784c
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.00417880
add esp, 0x10
test eax, eax
je 0x41784c
mov eax, dword [esi + 0x3a8]
test eax, eax
je 0x417804
push eax
call dword [0x4760e4]
add esp, 4
mov dword [esi + 0x3a8], 0
push dword [ebp + 0xc]
call dword [0x4760ec]
add esp, 4
mov dword [esi + 0x3a8], eax
test eax, eax
je 0x41784c
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x41784c
lea eax, [edi + 0x10]
push eax
push 0x4176e0
call fcn.00425e40
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x417869
call fcn.004424ca
mov ebx, dword [eax]
lea eax, [esi + 0x3a8]
push eax
call fcn.004175f0
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 0x4203d0
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 0x42044e
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x42041e
pop esi
pop edi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push esi
push dword [ebp + 8]
call fcn.00424940
push eax
mov eax, dword [ebp + 8]
push str.Send_failure:__s
push dword [eax]
call fcn.004200b0
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