joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407680
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x43705b
mov eax, dword fs:[0]
push eax
mov eax, 0x3ad0
call fcn.004213e0
mov eax, dword [0x444e3c]
xor eax, esp
mov dword [esp + 0x3acc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x444e3c]
xor eax, esp
push eax
lea eax, [esp + 0x3ae4]
mov dword fs:[0], eax
xor eax, eax
xor ebx, ebx
push 0x3a97
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov byte [esp + 0x49], al
lea eax, [esp + 0x4d]
push ebx
push eax
mov esi, ecx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x3c], bl
mov byte [esp + 0x54], bl
call fcn.00421410
mov eax, dword [esi + 0x84]
push 0x3b
push eax
call fcn.00421b90
add esp, 0x14
cmp eax, ebx
je 0x4077f1
lea ebp, [esi + 0x68]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0x84]
push 1
push 5
push edi
lea ecx, [esp + 0x24]
call fcn.0040dcb0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [esp + 0x3af0], ebx
call edi
push 0x439880
call edi
push 0x16
lea ecx, [esp + 0x34]
push ecx
push 1
lea ecx, [esp + 0x24]
call fcn.0040df20
test al, al
je 0x4077d6
push 0x3a98
lea edx, [esp + 0x4c]
push edx
push 2
lea ecx, [esp + 0x24]
call fcn.0040df20
test al, al
je 0x4077d6
lea eax, [esi + 0x90]
push eax
push 3
lea ecx, [esp + 0x20]
call fcn.0040e0a0
test al, al
je 0x4077d6
lea ecx, [esp + 0x14]
push ecx
push 4
lea ecx, [esp + 0x20]
call fcn.0040e0a0
test al, al
je 0x4077d6
add esi, 0x2c
push esi
push 5
lea ecx, [esp + 0x20]
call fcn.0040e0a0
test al, al
je 0x4077d6
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x18]
mov dword [esp + 0x3aec], 0xffffffff
call fcn.0040dee0
mov eax, esi
jmp 0x4077f4
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x18]
mov dword [esp + 0x3aec], 0xffffffff
call fcn.0040dee0
or eax, 0xffffffff
mov ecx, dword [esp + 0x3ae4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3acc]
xor ecx, esp
call fcn.004213c3
add esp, 0x3adc
ret

Function at 0x407a40
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x444e3c]
xor eax, esp
mov dword [esp + 0x94], eax
push 0x94
lea eax, [esp + 4]
push 0
push eax
call fcn.00421410
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 4], 5
jne 0x407a8c
mov eax, 1
cmp dword [esp + 8], eax
jae 0x407a8e
xor eax, eax
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004213c3
add esp, 0x98
ret
Function at 0x407ab0
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x444e3c]
xor eax, esp
mov dword [esp + 0x94], eax
push 0x94
lea eax, [esp + 4]
push 0
push eax
call fcn.00421410
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 4], 6
jne 0x407b12
cmp dword [esp + 8], 0
jne 0x407b12
mov eax, 1
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004213c3
add esp, 0x98
ret
mov ecx, dword [esp + 0x94]
xor ecx, esp
xor eax, eax
call fcn.004213c3
add esp, 0x98
ret

Function at 0x407b30
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x444e3c]
xor eax, esp
mov dword [esp + 0x94], eax
push 0x94
lea eax, [esp + 4]
push 0
push eax
call fcn.00421410
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 4], 6
mov ecx, dword [esp + 0x94]
sbb eax, eax
xor ecx, esp
add eax, 1
call fcn.004213c3
add esp, 0x98
ret
Function at 0x407dc0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x43709e
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x444e3c]
xor eax, esp
mov dword [esp + 0x208], eax
push ebp
push esi
push edi
mov eax, dword [0x444e3c]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x22c]
push 0x1ff
lea eax, [esp + 0x1d]
push 0
push eax
mov edi, ecx
mov byte [esp + 0x24], 0
call fcn.00421410
mov ecx, dword [edi + 0x50]
add esp, 0xc
test ecx, ecx
mov dword [esp + 0x10], 0
je 0x407eb8
call fcn.00401ad0
mov ecx, dword [edi + 0x50]
call fcn.00401af0
push str.REGISTER_ERROR___n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [edi + 0x50]
push 0x3e8
call fcn.00401ca0
lea ecx, [esp + 0x10]
push ecx
call fcn.00401580
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x407eb1
push 0x43a100
push 1
push ebp
push 1
push eax
lea edx, [esp + 0x2c]
push str._d_c_s_c_s
push edx
call fcn.00420f5a
mov ecx, dword [edi + 0x50]
add esp, 0x1c
lea eax, [esp + 0x18]
push eax
call fcn.00401a90
mov ecx, dword [edi + 0x50]
call fcn.00401c60
test al, al
je 0x407eb1
mov ecx, dword [edi + 0x50]
push 1
call fcn.00401a40
test al, al
jne 0x407fdc
xor al, al
jmp 0x407fde
push 0x34
call fcn.00416c0d
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x224], 0
je 0x407ee0
mov ecx, eax
call fcn.00401770
mov esi, eax
jmp 0x407ee2
xor esi, esi
cmp dword [edi + 4], 0
mov dword [esp + 0x224], 0xffffffff
jne 0x407efb
call fcn.00404c10
mov dword [edi + 4], eax
call fcn.00405c30
test al, al
jne 0x407f1f
test esi, esi
je 0x407f18
mov ecx, esi
call fcn.00401820
push esi
call fcn.00416c3d
add esp, 4
xor al, al
jmp 0x407fde
cmp dword [edi + 8], 0
jne 0x407f2d
call fcn.004010c0
mov dword [edi + 8], eax
call fcn.00401100
test al, al
je 0x407f04
push 0
push 0
mov ecx, esi
call fcn.00401c10
test al, al
je 0x407f04
mov ecx, esi
call fcn.00401ad0
mov ecx, esi
call fcn.00401af0
push str.REGISTER_ERROR___n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x3e8
mov ecx, esi
call fcn.00401ca0
lea ecx, [esp + 0x10]
push ecx
call fcn.00401580
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x407f04
push 0x43a100
push 1
push ebp
push 1
push eax
lea edx, [esp + 0x2c]
push str._d_c_s_c_s
push edx
call fcn.00420f5a
add esp, 0x1c
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.00401a90
mov ecx, esi
call fcn.00401c60
test al, al
je 0x407f04
push 1
mov ecx, esi
call fcn.00401a40
test al, al
je 0x407f04
test esi, esi
je 0x407fdc
mov ecx, esi
call fcn.00401820
push esi
call fcn.00416c3d
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004213c3
add esp, 0x218
ret 4
Function at 0x408fc0
Capabilities:
Create process on windows
Delete file

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 0x43a36c
push edi
mov esi, ecx
call fcn.00422b07
add esp, 8
test eax, eax
jne 0x409058
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x18]
push ebx
push edi
push str._s_s.zip
push ebp
call fcn.00420f5a
mov eax, dword [esi + 0x4c]
push ebp
mov ebp, dword [esp + 0x34]
push eax
push str._sUpdate_s
push ebp
call fcn.00420f5a
mov ecx, dword [esi + 0x4c]
mov edx, dword [esp + 0x44]
push ecx
push str._sreg.exe
push edx
call fcn.00420f5a
add esp, 0x2c
push ebp
mov ecx, esi
call fcn.00407d20
test al, al
je 0x409045
mov eax, dword [esp + 0x24]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
push ebx
push edi
call fcn.004057b0
add esp, 8
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
push edi
call fcn.00404db0
add esp, 8
pop ebp
pop ebx
pop edi
mov al, 1
pop esi
ret 0x14
pop edi
xor al, al
pop esi
ret 0x14

Function at 0x409060
Capabilities:
Delete file

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0x10]
push str.clientupdate
push esi
mov ebp, ecx
call fcn.00422b07
add esp, 8
test eax, eax
je 0x4090d1
push ebx
mov ebx, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x1c]
push edi
push esi
push str._s_s.zip
push ebx
call fcn.00420f5a
mov eax, dword [ebp + 0x4c]
push ebx
mov ebx, dword [esp + 0x34]
push eax
push str._sUpdate_s
push ebx
call fcn.00420f5a
add esp, 0x20
push ebx
mov ecx, ebp
call fcn.00407d20
test al, al
push edi
push esi
je 0x4090c7
call fcn.004057b0
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
push esi
call fcn.00404db0
add esp, 8
pop edi
pop ebx
pop esi
pop ebp
ret 0x10
Function at 0x409c00
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x334
mov eax, dword [0x444e3c]
xor eax, esp
mov dword [esp + 0x330], eax
push esi
mov esi, ecx
mov ecx, dword [esi + 0x50]
push edi
mov edi, dword [esp + 0x340]
call fcn.00401ad0
mov ecx, dword [esi + 0x50]
call fcn.00401af0
push str.SET_CLIENT_SYS_INFO_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esi + 0x50]
push 0x3e9
call fcn.00401ca0
push 0x1ff
lea eax, [esp + 0x13d]
push 0
push eax
mov byte [esp + 0x144], 0
call fcn.00421410
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0
call fcn.00401580
mov eax, dword [esp + 0x18]
add esp, 0x10
test eax, eax
jne 0x409c87
xor al, al
jmp 0x409d1e
push 1
push eax
lea edx, [esp + 0x140]
push str._d_c
push edx
call fcn.00420f5a
mov ecx, dword [esi + 0x50]
add esp, 0x10
lea eax, [esp + 0x138]
push eax
call fcn.00401a90
push 0x12b
lea ecx, [esp + 0x11]
push 0
push ecx
mov byte [esp + 0x18], 0
call fcn.00421410
add esp, 0xc
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.00407960
test al, al
je 0x409c80
mov ecx, dword [esi + 0x50]
lea eax, [esp + 0xc]
push eax
call fcn.00401a90
mov ecx, dword [esi + 0x50]
push 0x43a100
call fcn.00401a90
mov ecx, dword [esi + 0x50]
call fcn.00401c60
test al, al
je 0x409c80
mov ecx, dword [esi + 0x50]
push 0
call fcn.00401a40
test al, al
je 0x409c80
mov ecx, dword [esi + 0x50]
push edi
call fcn.00401d00
test al, al
setne al
mov ecx, dword [esp + 0x338]
pop edi
pop esi
xor ecx, esp
call fcn.004213c3
add esp, 0x334
ret 4
Function at 0x409d40
Capabilities:
Print debug messages

Disassembly:
mov eax, 0xec68
call fcn.004213e0
mov eax, dword [0x444e3c]
xor eax, esp
mov dword [esp + 0xec64], eax
push ebx
push ebp
mov ebp, dword [esp + 0xec74]
push esi
mov esi, ecx
mov ecx, dword [esi + 0x50]
push edi
call fcn.00401ad0
mov ecx, dword [esi + 0x50]
call fcn.00401af0
push str.SET_CLIENT_UPG_INFO_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esi + 0x50]
push 0x3ec
call fcn.00401ca0
xor ebx, ebx
push 0x1ff
lea eax, [esp + 0x19]
push ebx
push eax
mov byte [esp + 0x20], bl
call fcn.00421410
push 0x3a97
lea ecx, [esp + 0x225]
push ebx
push ecx
mov dword [esp + 0x28], ebx
mov byte [esp + 0x22c], bl
call fcn.00421410
push 0x3a97
lea edx, [esp + 0x7761]
push ebx
push edx
mov byte [esp + 0x7768], bl
call fcn.00421410
push 0x3a97
lea eax, [esp + 0x3cd5]
push ebx
push eax
mov byte [esp + 0x3cdc], bl
call fcn.00421410
push 0x3a97
lea ecx, [esp + 0xb211]
push ebx
push ecx
mov byte [esp + 0xb218], bl
call fcn.00421410
lea edx, [esp + 0x4c]
push edx
lea edi, [esp + 0x254]
call fcn.00401580
mov eax, edi
add esp, 0x40
push eax
call fcn.00404c50
lea ecx, [esp + 0x3cb0]
push ecx
call fcn.00404c90
lea edx, [esp + 0xb1e4]
push edx
call fcn.00404cd0
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, ebx
jne 0x409e64
push str.dwUserID__0
call fcn.00405da0
add esp, 4
xor al, al
jmp 0x409f8b
push 1
push eax
lea eax, [esp + 0x1c]
push str._d_c
push eax
call fcn.00420f5a
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x50]
call fcn.00401a90
mov ecx, esi
call fcn.00407a40
test al, al
jne 0x409e9c
mov ecx, esi
call fcn.00407ab0
test al, al
je 0x409ebe
lea edx, [esp + 0x7744]
push edx
lea eax, [esp + 0x218]
push eax
mov ecx, esi
call fcn.004078e0
test al, al
je 0x409ebe
lea edi, [esp + 0x7744]
mov ecx, dword [esi + 0x50]
push edi
call fcn.00401a90
push 1
lea ecx, [esp + 0x18]
push 0x43a590
push ecx
call fcn.00420f5a
mov ecx, dword [esi + 0x50]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
call fcn.00401a90
mov ecx, dword [esi + 0x50]
lea eax, [esp + 0x3cac]
push eax
call fcn.00401a90
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x50]
call fcn.00401a90
mov ecx, dword [esi + 0x50]
lea edx, [esp + 0xb1dc]
push edx
call fcn.00401a90
mov ecx, dword [esi + 0x50]
lea eax, [esp + 0x14]
push eax
call fcn.00401a90
mov ecx, dword [esi + 0x50]
push 0x43a100
call fcn.00401a90
mov ecx, dword [esi + 0x50]
call fcn.00401c60
test al, al
jne 0x409f4c
push str.SendReq
call fcn.00405da0
add esp, 4
xor al, al
jmp 0x409f8b
mov ecx, dword [esi + 0x50]
push 1
call fcn.00401a40
test al, al
jne 0x409f6b
push str.RecvReply
call fcn.00405da0
add esp, 4
xor al, al
jmp 0x409f8b
mov ecx, dword [esi + 0x50]
push ebp
call fcn.00401d00
test al, al
jne 0x409f89
push str.GetReqReply
call fcn.00405da0
add esp, 4
xor al, al
jmp 0x409f8b
mov al, 1
mov ecx, dword [esp + 0xec74]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004213c3
add esp, 0xec68
ret 4
Function at 0x409fb0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x7734
call fcn.004213e0
mov eax, dword [0x444e3c]
xor eax, esp
mov dword [esp + 0x7730], eax
push ebp
mov ebp, dword [esp + 0x773c]
push esi
mov esi, ecx
mov ecx, dword [esi + 0x50]
push edi
call fcn.00401ad0
mov ecx, dword [esi + 0x50]
call fcn.00401af0
push str.GET_UPD_VER_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esi + 0x50]
push 0x3ea
call fcn.00401ca0
push 0x1ff
lea eax, [esp + 0x11]
push 0
push eax
mov byte [esp + 0x18], 0
call fcn.00421410
push 0x3a97
lea ecx, [esp + 0x21d]
push 0
push ecx
mov byte [esp + 0x224], 0
call fcn.00421410
push 0x3a97
lea edx, [esp + 0x3cc1]
push 0
push edx
mov byte [esp + 0x3cc8], 0
call fcn.00421410
lea edi, [esp + 0x230]
mov eax, edi
push eax
call fcn.00404c50
add esp, 0x28
mov ecx, esi
call fcn.00407a40
test al, al
jne 0x40a072
mov ecx, esi
call fcn.00407ab0
test al, al
je 0x40a094
lea ecx, [esp + 0x3ca4]
push ecx
lea edx, [esp + 0x210]
push edx
mov ecx, esi
call fcn.004078e0
test al, al
je 0x40a094
lea edi, [esp + 0x3ca4]
push edi
mov ecx, esi
call fcn.00408660
mov ecx, dword [esi + 0x50]
push edi
call fcn.00401a90
push 1
lea eax, [esp + 0x10]
push 0x43a590
push eax
call fcn.00420f5a
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0x50]
call fcn.00401a90
mov ecx, dword [esi + 0x50]
push 0x43a100
call fcn.00401a90
mov ecx, dword [esi + 0x50]
call fcn.00401c60
test al, al
jne 0x40a0e3
xor al, al
jmp 0x40a0ff
mov ecx, dword [esi + 0x50]
push 1
call fcn.00401a40
test al, al
je 0x40a0df
mov ecx, dword [esi + 0x50]
push ebp
call fcn.00401d00
test al, al
setne al
mov ecx, dword [esp + 0x773c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004213c3
add esp, 0x7734
ret 4

Function at 0x40a5f0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x240
mov eax, dword [0x444e3c]
xor eax, esp
mov dword [esp + 0x23c], eax
push esi
push edi
mov edi, dword [esp + 0x24c]
push 0x38
lea eax, [esp + 0x10]
push 0
push eax
mov esi, ecx
call fcn.00421410
push 0x1ff
lea ecx, [esp + 0x55]
push 0
push ecx
mov dword [esp + 0x20], 0x3c
mov dword [esp + 0x24], 0x100
mov dword [esp + 0x30], edi
mov dword [esp + 0x3c], 5
mov byte [esp + 0x5c], 0
call fcn.00421410
add esp, 0x18
push 0x200
lea edx, [esp + 0x48]
push edx
mov ecx, esi
call fcn.00408ed0
lea ecx, [esp + 8]
lea eax, [esp + 0x44]
push ecx
mov dword [esp + 0x24], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [esp + 0x244]
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.004213c3
add esp, 0x240
ret 4
Function at 0x40a6a0
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push 0x43a630
push ebp
mov esi, ecx
call fcn.00422b07
add esp, 8
test eax, eax
jne 0x40a7dd
mov eax, dword [esp + 0x14]
push ebx
push edi
mov edi, dword [esp + 0x18]
push eax
push ebp
push str._s_s.zip
push edi
call fcn.00420f5a
mov ecx, dword [esi + 0x4c]
mov edx, dword [esp + 0x30]
push edi
push ecx
push str._sUpdate_s
push edx
call fcn.00420f5a
mov eax, dword [esi + 0x4c]
mov ebx, dword [esp + 0x44]
push eax
push str._sUpdateExtractZip.dll
push ebx
call fcn.00420f5a
mov ecx, dword [esi + 0x88]
mov edx, dword [esp + 0x54]
push ecx
push str._sbinExtractZip.dll
push edx
call fcn.00420f5a
mov eax, dword [esi + 0xd8]
lea edi, [esi + 0xd4]
add esp, 0x38
test eax, eax
je 0x40a730
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x40a78b
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x20]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x40a7c6
mov ecx, dword [esp + 0x28]
push 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40a7c6
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esi + 0x88]
push edx
mov ecx, edi
call fcn.004071c0
test al, al
jne 0x40a794
push str.Cant_Initialize_The_ExtractZip.dll_Dll
call fcn.00409150
mov ecx, eax
call fcn.00407dc0
pop edi
pop ebx
pop esi
xor al, al
pop ebp
ret 0x18
mov esi, dword [esp + 0x1c]
push esi
push ebp
call fcn.004057b0
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
push ebp
call fcn.00404db0
push str.Replace__ExtractZip.dll_:_Finish
call fcn.00405da0
add esp, 0xc
pop edi
pop ebx
pop esi
mov al, 1
pop ebp
ret 0x18
mov eax, dword [esp + 0x1c]
push eax
push ebp
call fcn.00404db0
add esp, 8
pop edi
pop ebx
pop esi
mov al, 1
pop ebp
ret 0x18
pop esi
xor al, al
pop ebp
ret 0x18
Function at 0x40b240
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
sub esp, 0x440
mov eax, dword [0x444e3c]
xor eax, esp
mov dword [esp + 0x43c], eax
push esi
push 0x1ff
lea eax, [esp + 0x45]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x4c], 0
call fcn.00421410
push 0x1ff
lea ecx, [esp + 0x251]
push 0
push ecx
mov byte [esp + 0x258], 0
call fcn.00421410
add esp, 0x18
push 0x200
lea edx, [esp + 0x44]
push edx
mov ecx, esi
call fcn.00408ed0
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x244]
push str._sinstaller.exe
push ecx
call fcn.00420f5a
add esp, 0xc
lea edx, [esp + 0x240]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40b32e
push 0x38
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00421410
add esp, 0xc
lea edx, [esp + 4]
lea ecx, [esp + 0x40]
push edx
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0x100
mov dword [esp + 0x18], str.installer.exe
mov dword [esp + 0x1c], str.MODE_UPDATE
mov dword [esp + 0x24], 5
mov dword [esp + 0x20], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov al, 1
pop esi
mov ecx, dword [esp + 0x43c]
xor ecx, esp
call fcn.004213c3
add esp, 0x440
ret
push str.setup.exe
mov ecx, esi
call fcn.0040a5f0
mov ecx, dword [esp + 0x440]
pop esi
xor ecx, esp
mov al, 1
call fcn.004213c3
add esp, 0x440
ret
Function at 0x40d310
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
test eax, eax
jle 0x40d335
cmp byte [eax + esi], 0x40
je 0x40d332
sub eax, 1
test eax, eax
jg 0x40d323
jmp 0x40d335
add eax, 1
add eax, esi
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x40d34b
pop edi
mov eax, 2
pop esi
ret 0xc
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
movzx ecx, byte [eax]
movzx edx, byte [eax + 1]
mov byte [esp + 0xc], cl
movzx ecx, byte [eax + 2]
mov byte [esp + 0xd], dl
movzx edx, byte [eax + 3]
mov byte [esp + 0xe], cl
mov byte [esp + 0xf], dl
mov eax, dword [esp + 0xc]
push eax
call sub.WSOCK32.dll_inet_ntoa
mov esi, eax
test esi, esi
je 0x40d341
push esi
call edi
add eax, 1
cmp eax, dword [esp + 0x14]
jle 0x40d395
pop edi
mov eax, 1
pop esi
ret 0xc
mov ecx, dword [esp + 0x10]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
xor eax, eax
pop esi
ret 0xc

Function at 0x40d410
Capabilities:
Initialize winsock library

Disassembly:
push ebx
push esi
mov esi, ecx
lea eax, [esi + 0x34]
push eax
xor ebx, ebx
push 0x101
mov dword [esi], vtable.CUT_WSClient.0
mov dword [esi + 4], ebx
mov byte [esi + 8], bl
call sub.WSOCK32.dll_WSAStartup
neg eax
sbb eax, eax
add eax, 1
push 0x7530
mov ecx, esi
mov dword [esi + 0x1ec], eax
call fcn.0040d2b0
push 0x7530
mov ecx, esi
call fcn.0040d2e0
or eax, 0xffffffff
mov dword [esi + 0x1c4], eax
mov dword [esi + 0x1d8], eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x1f0], ebx
mov dword [esi + 0x5fc], ebx
mov dword [esi + 0x600], ebx
mov eax, esi
pop esi
pop ebx
ret

Function at 0x40dc20
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 0xc]
test eax, eax
mov ecx, dword [esp + 4]
je 0x40dc42
push eax
mov eax, dword [esp + 0xc]
push 0
push eax
push ecx
push 0
push 0
call fcn.00424926
add esp, 0x18
ret
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push 0
push eax
push ecx
push 0
push 0
mov dword [esp + 0x24], 0
call fcn.00424926
add esp, 0x18
ret

Function at 0x40e220
Capabilities:
Set registry value

Disassembly:
mov eax, dword [ecx + 8]
test eax, eax
jne 0x40e22c
xor al, al
ret 0x10
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete al
ret 0x10

Function at 0x40e260
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ecx + 8]
test eax, eax
jne 0x40e26c
xor al, al
ret 0x10
mov edx, dword [esp + 8]
lea ecx, [esp + 0x10]
push ecx
push edx
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
sete al
ret 0x10

Function at 0x40e350
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x444e3c]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
mov ecx, dword [esp + 0x190]
test eax, eax
sete al
xor ecx, esp
call fcn.004213c3
add esp, 0x194
ret
Function at 0x40e3a0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov ecx, dword [esp + 4]
cmp eax, 0xffffffff
mov dword [ecx], eax
setne al
ret

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

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x40e3ec
mov eax, dword [eax]
test eax, eax
je 0x40e3ec
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
je 0x40e3ec
test eax, eax
setne al
ret
xor al, al
ret

Function at 0x40e3f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x40e43d
cmp dword [ebx], 0
je 0x40e43d
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor esi, esi
test edi, edi
je 0x40e42f
mov ebp, dword [esp + 0x18]
nop
mov ecx, dword [ebx]
push 0
push edi
lea eax, [esi + ebp]
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
je 0x40e436
test eax, eax
je 0x40e436
add esi, eax
sub edi, eax
jne 0x40e410
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
xor al, al
pop ebx
ret

Function at 0x40e4c0
Capabilities:
Get socket status

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10c
test eax, eax
push edi
je 0x40e547
mov edi, dword [eax]
test edi, edi
je 0x40e547
push esi
mov esi, dword [esp + 0x11c]
mov eax, esi
test eax, eax
mov dword [esp + 8], eax
fild dword [esp + 8]
jge 0x40e4f1
fadd qword [0x43b020]
fdiv qword [0x43b018]
call fcn.004249e0
mov dword [esp + 8], eax
mov eax, 0x10624dd3
mul esi
shr edx, 6
imul edx, edx, 0x3e8
lea ecx, [esp + 8]
push ecx
sub esi, edx
push 0
lea edx, [esp + 0x18]
push edx
push 0
push 0xffffffffffffffff
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], 1
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, 1
pop esi
sete al
pop edi
add esp, 0x10c
ret
xor al, al
pop edi
add esp, 0x10c
ret