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

Disassembly:
push 0x83c
mov eax, 0x48428b
call fcn.00417c9f
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.00409e80
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 0x42f2aa
lea eax, [ebp - 0x828]
mov ecx, edi
push eax
call fcn.00409e00
push 0
jmp 0x42f3e7
lea eax, [ebp - 0x838]
push eax
push 0x20119
push 0
push str.SoftWare
push dword [ebp - 0x82c]
call esi
test eax, eax
je 0x42f2d7
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42f295
lea eax, [ebp - 0x834]
push eax
push 0x20119
push 0
push ebx
push dword [ebp - 0x838]
call esi
test eax, eax
je 0x42f30a
push dword [ebp - 0x838]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x82c]
call esi
jmp 0x42f295
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 0x42f35c
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.00409e00
jmp 0x42f3e6
push 0x800
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.00434750
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.00445ea7
pop ecx
mov ecx, edi
test eax, eax
je 0x42f34b
lea eax, [ebp - 0x810]
push eax
call fcn.00409e80
push ebx
push 1
lea ecx, [ebp - 0x828]
call fcn.0040b7c0
mov eax, edi
call fcn.00417c5a
ret
Function at 0x42f3fc
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x838
mov eax, 0x4842be
call fcn.00417c9f
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.00409e80
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 0x42f487
lea eax, [ebp - 0x828]
mov ecx, edi
push eax
call fcn.00409e00
push 0
jmp 0x42f576
lea eax, [ebp - 0x830]
push eax
push 0x20119
push 0
push ebx
push dword [ebp - 0x834]
call esi
test eax, eax
je 0x42f4b0
push dword [ebp - 0x834]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42f472
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 0x42f4f7
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.00409e00
jmp 0x42f575
push 0x800
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.00434750
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.00445ea7
pop ecx
mov ecx, edi
test eax, eax
je 0x42f4e9
lea eax, [ebp - 0x810]
push eax
call fcn.00409e80
push ebx
push 1
lea ecx, [ebp - 0x828]
call fcn.0040b7c0
mov eax, edi
call fcn.00417c5a
ret
Function at 0x42f58b
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x834
mov eax, 0x4842f1
call fcn.00417c9f
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.00409e80
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 0x42f60f
lea eax, [ebp - 0x828]
mov ecx, edi
push eax
call fcn.00409e00
push 0
jmp 0x42f70d
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 0x42f643
push dword [ebp - 0x834]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42f5fa
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 0x42f67e
push dword [ebp - 0x830]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x82c]
call esi
jmp 0x42f5fa
push 0x800
xor ebx, ebx
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.00434750
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.00445ea7
pop ecx
mov ecx, edi
test eax, eax
jne 0x42f700
lea eax, [ebp - 0x828]
push eax
call fcn.00409e00
jmp 0x42f70c
lea eax, [ebp - 0x810]
push eax
call fcn.00409e80
push ebx
push 1
lea ecx, [ebp - 0x828]
call fcn.0040b7c0
mov eax, edi
call fcn.00417c5a
ret
Function at 0x42f722
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 0x42f7fa
lea eax, [ebp - 8]
push eax
push ebx
push edi
push str.SoftWare
push dword [ebp - 4]
call esi
test eax, eax
je 0x42f77b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42f7fa
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 0x42f79f
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42f7f0
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 0x42f7bd
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42f7eb
push dword [ebp + 0x18]
call fcn.00445ea7
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 0x42f801
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 0x42f8be
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 0x42f85f
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42f8bd
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 0x42f885
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 4]
jmp 0x42f8bb
push dword [ebp + 0x14]
call fcn.00445ea7
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 0x42fd5a
Capabilities:
Check if file exists

Disassembly:
push 0x94
mov eax, 0x484497
call fcn.00417c9f
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.0041dba8
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.0041d14d
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0041de3f
add esp, 0x18
mov esi, dword [edi]
mov byte [ebp - 4], 2
jmp 0x42fdf4
cmp dword [esi + 0x14], 0x10
jb 0x42fdc6
mov eax, dword [esi]
jmp 0x42fdc8
mov eax, esi
push eax
lea ecx, [ebp - 0x40]
call fcn.0040a0b0
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x40]
call fcn.0042f1e9
neg eax
lea ecx, [ebp - 0x40]
push 0
sbb al, al
push 1
add al, 1
jne 0x42fe2c
call fcn.0040bac0
add esi, 0x18
cmp esi, dword [edi + 4]
jne 0x42fdbc
xor esi, esi
push 0
push 1
lea ecx, [ebp - 0x70]
call fcn.0040bac0
push 0
push 1
lea ecx, [ebp - 0x88]
call fcn.0040b7c0
push 0
push 1
lea ecx, [ebp - 0x58]
call fcn.0040b7c0
mov eax, esi
call fcn.00417c5a
ret 0xc
call fcn.0040bac0
cmp dword [ebx + 0x14], 0x10
jb 0x42fe3b
mov eax, dword [ebx]
jmp 0x42fe3d
mov eax, ebx
push eax
lea ecx, [ebp - 0x40]
call fcn.0040a0b0
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.0042fbe2
push 0
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.0040bac0
and dword [ebp - 0x90], 0
cmp dword [ebp + 0xc], 0
je 0x42fede
cmp dword [edi + 0xb0], 0
je 0x42feff
push 1
lea eax, [ebp - 0x28]
push eax
sub esp, 0x18
mov eax, esp
push ebx
push eax
call fcn.0041dba8
pop ecx
pop ecx
mov ecx, dword [edi + 0xb0]
push esi
call fcn.00427043
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 0x42fef6
lea eax, [ebp - 0x90]
push eax
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00409ee0
call fcn.0042023b
add esp, 0x1c
mov dword [edi + 0x64], eax
jmp 0x42fef6
sub esp, 0x18
mov ecx, esp
push ebx
call fcn.0040a110
mov ecx, edi
call fcn.0042fa8c
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
jne 0x42ff03
xor esi, esi
jmp 0x42ff7c
and dword [ebp - 0xa0], 0
lea ecx, [ebp - 0x89]
and dword [ebp - 0x9c], 0
call fcn.004079e0
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.004328ed
cmp dword [ebp - 0xa0], 0
je 0x42ff6f
cmp dword [ebp - 0x9c], 0
je 0x42ff6f
push dword [ebp - 0x9c]
push dword [ebp - 0xa0]
call fcn.0041c9e4
pop ecx
pop ecx
mov esi, eax
jmp 0x42ff71
xor esi, esi
lea ecx, [ebp - 0x89]
call fcn.00406b20
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040b7c0
jmp 0x42fdfb
Function at 0x430074
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2038
call fcn.00417bf0
mov eax, dword [0x4a20a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x208
lea eax, [ebp - 0x61c]
push esi
xor edi, edi
push edi
push eax
call fcn.00434750
push str.C:log_
mov ebx, 0x104
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.0043fbe1
push 0x800
lea eax, [ebp - 0x1028]
push edi
push eax
call fcn.00434750
push 0x49ac58
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._s_s.log
push eax
call fcn.00430038
push esi
lea eax, [ebp - 0x824]
push edi
push eax
call fcn.00434750
add esp, 0x40
lea eax, [ebp - 0x20c]
push esi
push edi
push eax
call fcn.00434750
add esp, 0xc
lea eax, [ebp - 0x20c]
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.0043670b
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
call ebx
test eax, eax
je 0x4302b6
lea eax, [ebp - 0x20c]
push eax
call fcn.00445ea7
lea ecx, [ebp - 0x20a]
lea eax, [ecx + eax*2]
push eax
lea eax, [ebp - 0x824]
push 0x104
push eax
call fcn.0043fbe1
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._s_s.txt
push eax
call fcn.00430038
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x1028]
push 0x3ff
push 0x400
push eax
call fcn.00414590
push edi
call fcn.004380a8
mov dword [ebp - 0x2038], eax
lea eax, [ebp - 0x2038]
push eax
mov dword [ebp - 0x2034], edx
call fcn.00446ae1
add esp, 0x40
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [ebp - 0x1028]
push ecx
push eax
push dword [esi]
mov eax, dword [esi + 0x10]
push dword [esi + 4]
inc eax
push dword [esi + 8]
push dword [esi + 0xc]
push eax
mov eax, dword [esi + 0x14]
add eax, 0x76c
push eax
lea eax, [ebp - 0x2028]
push str.__d__d__d__d__d__d___d_:_s
push eax
call fcn.00430056
xor eax, eax
add esp, 0x28
mov word [ebp - 0x82a], ax
lea eax, [ebp - 0x414]
push eax
call ebx
xor ebx, ebx
inc ebx
test eax, eax
lea eax, [ebp - 0x414]
push 0x4854d4
push eax
cmovne edi, ebx
call fcn.0043bf50
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4302b6
test edi, edi
jne 0x43025c
push esi
push 2
lea eax, [ebp - 0x2030]
mov dword [ebp - 0x2030], 0xfeff
push ebx
push eax
call fcn.00437d2e
add esp, 0x10
lea eax, [ebp - 0x2028]
push eax
call fcn.00445ea7
push esi
add eax, eax
push eax
lea eax, [ebp - 0x2028]
push ebx
push eax
call fcn.00437d2e
push esi
push 2
lea eax, [ebp - 0x202c]
mov dword [ebp - 0x202c], 0xd
push ebx
push eax
call fcn.00437d2e
push esi
push 2
lea eax, [ebp - 0x202c]
mov dword [ebp - 0x202c], 0xa
push ebx
push eax
call fcn.00437d2e
push esi
call fcn.00437571
add esp, 0x38
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417499
mov esp, ebp
pop ebp
ret
Function at 0x4303a5
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
push edi
mov dword [ebp - 4], eax
lea edi, [eax + 0x210]
mov esi, dword [edi]
mov dword [ebp - 8], edi
cmp esi, dword [eax + 0x214]
je 0x430472
lea edi, [esi + 0x28]
lea ecx, [ebx + 0xa8]
mov dword [ebp + 8], edi
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x488878
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub edi, 0xffffff80
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x488878
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x488878
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x488878
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebx + 0xa8]
push edi
push eax
call fcn.00446b50
mov edi, dword [ebp + 8]
pop ecx
pop ecx
test eax, eax
jne 0x43044e
lea eax, [ebx + 0x28]
push edi
push eax
call fcn.00446b50
pop ecx
pop ecx
test eax, eax
je 0x43048f
mov eax, 0x1b0
lea ecx, [ebx + 0xa8]
add edi, eax
add esi, eax
mov eax, dword [ebp - 4]
mov dword [ebp + 8], edi
cmp esi, dword [eax + 0x214]
jne 0x4303d8
mov edi, dword [ebp - 8]
lea eax, [ebx + 0xa8]
push eax
call fcn.00446490
pop ecx
test eax, eax
je 0x43048f
push ebx
mov ecx, edi
call fcn.00430dd1
mov al, 1
jmp 0x430491
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x430d14
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4a20a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, 0x114
push edi
push ebx
xor edi, edi
mov eax, dword [esi + 0x210]
mov dword [esi + 0x214], eax
lea eax, [ebp - 0x118]
push edi
push eax
call fcn.00434750
add esp, 0xc
mov dword [ebp - 0x118], ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x430d75
mov ecx, esi
call fcn.0043076b
jmp 0x430d8a
mov ebx, edi
test edi, edi
jne 0x430d8a
mov ecx, esi
call fcn.00430646
inc ebx
mov edi, eax
cmp ebx, 0xa
jl 0x430d77
mov eax, dword [esi + 0x214]
mov ecx, 0x1b0
sub eax, dword [esi + 0x210]
cdq
idiv ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417499
mov esp, ebp
pop ebp
ret

Function at 0x44824d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004480cc

Function at 0x44ef99
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044ec59

Function at 0x457730
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4a20a0]
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 0x457780
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x45777a
shr eax, 8
cmp al, 2
jne 0x45777a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417499
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.00417499
mov esp, ebp
pop ebp
ret

Function at 0x459510
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x48
push 1
call dword [0x4a2ac0]
mov esi, dword [ebp + 8]
mov edi, eax
add esp, 8
mov ebx, 8
mov dword [esi + 0x3bc], edi
test edi, edi
je 0x4595ec
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.00459620
add esp, 0x10
test eax, eax
je 0x4595ec
mov eax, dword [esi + 0x3a8]
test eax, eax
je 0x4595a4
push eax
call dword [0x4a2ab4]
add esp, 4
mov dword [esi + 0x3a8], 0
push dword [ebp + 0xc]
call dword [0x4a2abc]
add esp, 4
mov dword [esi + 0x3a8], eax
test eax, eax
je 0x4595ec
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x4595ec
lea eax, [edi + 0x10]
push eax
push 0x459480
call fcn.00467bd0
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x459609
call fcn.00437dff
mov ebx, dword [eax]
lea eax, [esi + 0x3a8]
push eax
call fcn.00459390
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 0x462170
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 0x4621ee
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x4621be
pop esi
pop edi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push esi
push dword [ebp + 8]
call fcn.004666d0
push eax
mov eax, dword [ebp + 8]
push str.Send_failure:__s
push dword [eax]
call fcn.00461e50
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 0x4623d0
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 0x4623f9
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 0x46242f
push dword [esi + 0xf0]
lea eax, [eax + eax*2]
push 1
add eax, 0x494f74
push 2
push eax
call fcn.00437d2e
push dword [esi + 0xf0]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00437d2e
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x530]
cmp ecx, 0xffffffff
je 0x46261b
mov eax, dword [eax + 0x524]
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x46261b
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4625e9
mov dword [ecx], eax
cmp dword [eax + 0x148], 0
push esi
mov esi, dword [eax + 0x130]
je 0x4625ff
or eax, 0xffffffff
pop esi
pop ebp
ret
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
or ecx, 0xffffffff
test eax, eax
cmove esi, ecx
mov eax, esi
pop esi
pop ebp
ret
or eax, 0xffffffff
pop ebp
ret