joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402900
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x41b008], 0x8088405
inc edx
mov dword [ebx + 0x41b008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4061e0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403980
xor eax, eax
push ebp
push 0x40624a
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.00403790
test eax, eax
jle 0x406234
mov edx, 1
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + edx - 1]
xor ecx, 0x6521458a
add ebx, ecx
mov ecx, ebx
shl ecx, 0xd
mov esi, ebx
shr esi, 0x13
or ecx, esi
sub ebx, ecx
inc edx
dec eax
jne 0x406212
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406251
lea eax, [ebp - 4]
call fcn.004034e4
ret

Function at 0x40c4e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x40c609
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, ebx
mov eax, esi
call fcn.0040c3cc
mov eax, dword [ebx]
call fcn.00403790
cmp eax, 4
jg 0x40c52b
mov eax, ebx
call fcn.004034e4
jmp 0x40c5ee
mov eax, dword [ebx]
call fcn.00403790
mov edi, eax
test edi, edi
jle 0x40c555
mov esi, 1
mov eax, ebx
call fcn.004039e8
mov edx, dword [ebx]
mov dl, byte [edx + esi - 1]
xor dl, 0x5c
mov byte [eax + esi - 1], dl
inc esi
dec edi
jne 0x40c53d
mov eax, dword [ebx]
movzx esi, byte [eax + 2]
mov eax, dword [ebx]
movzx edi, byte [eax + 3]
mov eax, ebx
mov ecx, 4
mov edx, 1
call fcn.00403a30
mov eax, ebx
mov ecx, edi
mov edx, 1
call fcn.00403a30
push ebx
mov eax, dword [ebx]
mov ecx, esi
mov edx, 1
call fcn.004039f0
cmp dword [ebx], 0
je 0x40c5ee
mov eax, dword [ebp - 8]
call fcn.00403790
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00403790
add esi, eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebx]
mov ecx, esi
mov edx, 1
call fcn.004039f0
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.004037dc
mov edx, dword [ebp - 0x10]
pop eax
call fcn.004038dc
je 0x40c5e0
mov eax, ebx
call fcn.004034e4
jmp 0x40c5ee
mov eax, ebx
mov ecx, esi
mov edx, 1
call fcn.00403a30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c610
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00403508
ret
Function at 0x4021a0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4088e0
push eax
mov dword fs:[0], esp
push esi
lea esi, [ecx + 0x60]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
mov dword [esp + 0x10], 0
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esi + 4]
call sub.MFC42.DLL_CString::operator
lea edx, [esp + 0x1c]
lea ecx, [esi + 8]
push edx
call sub.MFC42.DLL_CString::operator
lea eax, [esp + 0x20]
lea ecx, [esi + 0xc]
push eax
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esi + 0x10]
call sub.MFC42.DLL_CString::operator
lea edx, [esp + 0x28]
lea ecx, [esi + 0x14]
push edx
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], edx
lea ecx, [esp + 0x28]
mov dword [esp + 0xc], 5
call fcn.00407dc0
lea ecx, [esp + 0x24]
mov byte [esp + 0xc], 4
call fcn.00407dc0
lea ecx, [esp + 0x20]
mov byte [esp + 0xc], 3
call fcn.00407dc0
lea ecx, [esp + 0x1c]
mov byte [esp + 0xc], 2
call fcn.00407dc0
lea ecx, [esp + 0x18]
mov byte [esp + 0xc], 1
call fcn.00407dc0
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0xffffffff
call fcn.00407dc0
mov ecx, dword [esp + 4]
pop esi
mov dword fs:[0], ecx
add esp, 0xc
ret 0x24

Function at 0x402290
Capabilities:
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x4088f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push 0
push 4
push 0
push 0
mov esi, ecx
push 0x40ab40
call sub.MFC42.DLL_AfxBeginThread
mov dword [esi + 0x88], eax
mov eax, dword [esi + 0x78]
push eax
push ecx
lea edx, [esi + 0x68]
mov ecx, esp
mov dword [esp + 0xc], esp
push edx
call sub.MFC42.DLL_CString::CString_1
push ecx
lea eax, [esi + 0x60]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
mov dword [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esi + 0x88]
mov dword [esp + 0x20], 0xffffffff
call fcn.004036f0
mov ecx, dword [esi + 0x88]
push esi
call fcn.004036e0
mov ecx, dword [esi + 0x80]
mov edx, dword [esi + 0x7c]
push ecx
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x40d31c
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esi + 0x88]
call fcn.00403670
push ecx
lea eax, [esi + 0x74]
mov ecx, esp
mov dword [esp + 0xc], esp
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esi + 0x88]
call fcn.004035e0
push ecx
lea edx, [esi + 0x70]
mov ecx, esp
mov dword [esp + 0xc], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esi + 0x88]
call fcn.00403630
mov eax, dword [esi + 0x88]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x402d60
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x408b40
push eax
mov dword fs:[0], esp
push esi
lea esi, [ecx + 0x1f0]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
mov dword [esp + 0x10], 0
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esi + 4]
call sub.MFC42.DLL_CString::operator
lea edx, [esp + 0x1c]
lea ecx, [esi + 8]
push edx
call sub.MFC42.DLL_CString::operator
lea eax, [esp + 0x20]
lea ecx, [esi + 0xc]
push eax
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esi + 0x10]
call sub.MFC42.DLL_CString::operator
lea edx, [esp + 0x28]
lea ecx, [esi + 0x14]
push edx
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], edx
lea ecx, [esp + 0x28]
mov dword [esp + 0xc], 5
call fcn.00407dc0
lea ecx, [esp + 0x24]
mov byte [esp + 0xc], 4
call fcn.00407dc0
lea ecx, [esp + 0x20]
mov byte [esp + 0xc], 3
call fcn.00407dc0
lea ecx, [esp + 0x1c]
mov byte [esp + 0xc], 2
call fcn.00407dc0
lea ecx, [esp + 0x18]
mov byte [esp + 0xc], 1
call fcn.00407dc0
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0xffffffff
call fcn.00407dc0
mov ecx, dword [esp + 4]
pop esi
mov dword fs:[0], ecx
add esp, 0xc
ret 0x24

Function at 0x402e60
Capabilities:
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x408b58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push 0
push 4
push 0
push 0
mov esi, ecx
push 0x40ac88
call sub.MFC42.DLL_AfxBeginThread
mov dword [esi + 0x218], eax
mov eax, dword [esi + 0x208]
push eax
push ecx
lea edx, [esi + 0x1f8]
mov ecx, esp
mov dword [esp + 0xc], esp
push edx
call sub.MFC42.DLL_CString::CString_1
push ecx
lea eax, [esi + 0x1f0]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
mov dword [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esi + 0x218]
mov dword [esp + 0x20], 0xffffffff
call fcn.00405560
mov ecx, dword [esi + 0x218]
push esi
call fcn.00405550
mov ecx, dword [esi + 0x210]
mov edx, dword [esi + 0x20c]
push ecx
push edx
push ecx
lea eax, [esi + 0x1f4]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esi + 0x218]
call fcn.00407060
push ecx
lea edx, [esi + 0x204]
mov ecx, esp
mov dword [esp + 0xc], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esi + 0x218]
call fcn.00406fd0
push ecx
lea eax, [esi + 0x200]
mov ecx, esp
mov dword [esp + 0xc], esp
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esi + 0x218]
call fcn.00407020
mov ecx, dword [esi + 0x218]
mov edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4037a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push 0xffffffffffffffff
push 0x408cd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push ebp
push esi
mov ebx, ecx
mov eax, dword [esp + 0x90]
mov dword [esp + 0x88], 0
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4037f4
lea ecx, [esp + 0x90]
mov dword [esp + 0x88], 0xffffffff
call fcn.00407dc0
xor eax, eax
jmp 0x4038fb
mov ebp, dword [esp + 0x94]
test ebp, ebp
jge 0x40381d
lea ecx, [esp + 0x90]
mov dword [esp + 0x88], 0xffffffff
call fcn.00407dc0
xor eax, eax
jmp 0x4038fb
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebx + 0x70], eax
jne 0x403856
mov ecx, ebx
call fcn.00404110
lea ecx, [esp + 0x90]
mov dword [esp + 0x88], 0xffffffff
call fcn.00407dc0
xor eax, eax
jmp 0x4038fb
push edi
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x94]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x20]
mov eax, ecx
mov esi, edi
mov edi, edx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [esp + 0x14], 2
call dword [sym.imp.WS2_32.dll_htons]
lea ecx, [esp + 0x20]
mov word [esp + 0x12], ax
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x70]
lea edx, [esp + 0x10]
push 0x10
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
or esi, 0xffffffff
pop edi
cmp eax, esi
jne 0x4038e3
mov ecx, ebx
call fcn.00404110
lea ecx, [esp + 0x90]
mov dword [esp + 0x88], esi
call fcn.00407dc0
xor eax, eax
jmp 0x4038fb
lea ecx, [esp + 0x90]
mov dword [esp + 0x88], esi
call fcn.00407dc0
mov eax, 1
mov ecx, dword [esp + 0x80]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x80
ret 8

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

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebx, ecx
push edi
mov edi, dword [esp + 0x14]
mov ecx, esi
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 0x70]
test eax, eax
jne 0x403fd1
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 0x10
fld qword [esp + 0x1c]
fcomp qword [0x40ac10]
xor edi, edi
fnstsw ax
test ah, 1
je 0x403fef
fld qword [esp + 0x1c]
call sub.MSVCRT.dll__ftol
mov esi, eax
test esi, esi
jle 0x40401b
mov ebp, dword [sym.imp.WS2_32.dll_recv]
mov eax, dword [esp + 0x14]
mov edx, dword [ebx + 0x70]
push 0
push esi
lea ecx, [edi + eax]
push ecx
push edx
call ebp
cmp eax, 0xffffffff
je 0x403fc7
test eax, eax
je 0x40401b
sub esi, eax
add edi, eax
test esi, esi
jg 0x403ff9
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x404030
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov eax, dword [ecx + 0x70]
push ebx
push ebp
push esi
test eax, eax
push edi
mov dword [esp + 0x10], ecx
jne 0x40404b
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret 8
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov ebp, dword [sym.imp.WS2_32.dll_send]
xor esi, esi
push esi
push edi
push ebx
push eax
call ebp
cmp eax, 0xffffffff
je 0x40408a
test eax, eax
je 0x404095
add esi, eax
cmp esi, edi
jge 0x404095
mov edx, dword [esp + 0x10]
mov eax, edi
sub eax, esi
push 0
push eax
mov eax, dword [edx + 0x70]
lea ecx, [esi + ebx]
push ecx
push eax
call ebp
cmp eax, 0xffffffff
jne 0x404066
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8

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

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
mov ebx, ecx
mov ecx, esi
push edi
mov edx, ecx
xor eax, eax
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 0x70]
test eax, eax
jne 0x4040d3
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 8
xor edi, edi
test esi, esi
jle 0x4040fb
mov ecx, dword [ebx + 0x70]
push 0
lea eax, [edi + ebp]
push esi
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4040c9
test eax, eax
je 0x4040fb
sub esi, eax
add edi, eax
test esi, esi
jg 0x4040d9
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x405790
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push 0xffffffffffffffff
push 0x408fa8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push ebp
push esi
mov ebx, ecx
mov eax, dword [esp + 0x90]
mov dword [esp + 0x88], 0
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4057e4
lea ecx, [esp + 0x90]
mov dword [esp + 0x88], 0xffffffff
call fcn.00407dc0
xor eax, eax
jmp 0x4058eb
mov ebp, dword [esp + 0x94]
test ebp, ebp
jge 0x40580d
lea ecx, [esp + 0x90]
mov dword [esp + 0x88], 0xffffffff
call fcn.00407dc0
xor eax, eax
jmp 0x4058eb
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebx + 0x78], eax
jne 0x405846
mov ecx, ebx
call fcn.00405950
lea ecx, [esp + 0x90]
mov dword [esp + 0x88], 0xffffffff
call fcn.00407dc0
xor eax, eax
jmp 0x4058eb
push edi
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x94]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x20]
mov eax, ecx
mov esi, edi
mov edi, edx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [esp + 0x14], 2
call dword [sym.imp.WS2_32.dll_htons]
lea ecx, [esp + 0x20]
mov word [esp + 0x12], ax
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x78]
lea edx, [esp + 0x10]
push 0x10
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
or esi, 0xffffffff
pop edi
cmp eax, esi
jne 0x4058d3
mov ecx, ebx
call fcn.00405950
lea ecx, [esp + 0x90]
mov dword [esp + 0x88], esi
call fcn.00407dc0
xor eax, eax
jmp 0x4058eb
lea ecx, [esp + 0x90]
mov dword [esp + 0x88], esi
call fcn.00407dc0
mov eax, 1
mov ecx, dword [esp + 0x80]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x80
ret 8
Function at 0x4064e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
mov ebx, ecx
mov ecx, esi
push edi
mov edx, ecx
xor eax, eax
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 0x78]
test eax, eax
jne 0x406513
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 8
xor edi, edi
test esi, esi
jle 0x40653b
mov ecx, dword [ebx + 0x78]
push 0
lea eax, [edi + ebp]
push esi
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x406509
test eax, eax
je 0x40653b
sub esi, eax
add edi, eax
test esi, esi
jg 0x406519
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8

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

Disassembly:
push ecx
mov eax, dword [ecx + 0x78]
push ebx
push ebp
push esi
test eax, eax
push edi
mov dword [esp + 0x10], ecx
jne 0x406d4b
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret 8
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov ebp, dword [sym.imp.WS2_32.dll_send]
xor esi, esi
push esi
push edi
push ebx
push eax
call ebp
cmp eax, 0xffffffff
je 0x406d9e
test eax, eax
je 0x406d92
add esi, eax
cmp esi, edi
jge 0x406d9c
mov edx, dword [esp + 0x10]
mov eax, edi
sub eax, esi
push 0
push eax
mov eax, dword [edx + 0x78]
lea ecx, [esi + ebx]
push ecx
push eax
call ebp
cmp eax, 0xffffffff
jne 0x406d66
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8

Function at 0x407730
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40923b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x40afa8
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x4077c0
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x20]
mov ecx, edx
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x28]
mov ebx, edi
sub ecx, ebx
mov ebx, dword [esi + 0x1c]
cmp esi, ebp
je 0x407787
mov ebp, dword [esi + 4]
push 0xcc0020
push edx
push edi
push ebp
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x18]
pop ebx
test eax, eax
jne 0x4077b1
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x4077c6
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x4077c6
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x40af74
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x40af60
mov dword [esp + 0x1c], 0xffffffff
call fcn.004080ae
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x401000
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [eax]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x404fd0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xc
mov eax, 0x46fa68
call fcn.004529c4
mov esi, ecx
push str.DownloadFiles...
lea ecx, [ebp - 0x14]
call fcn.004012e2
xor ebx, ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push 2
mov dword [ebp - 4], ebx
call fcn.004117b0
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
cmp dword [esi + 0xc0], ebx
je 0x40501d
xor eax, eax
jmp 0x4050ab
mov edi, dword [sym.imp.kernel32.dll_GetTickCount]
call edi
mov dword [ebp - 0x18], eax
lea eax, [esi + 0x260]
push eax
call main
mov dword [ebp - 0x14], eax
cmp dword [esi + 0xc0], ebx
je 0x40505d
lea eax, [ebp - 0xd]
push eax
push ebx
push str.UserCanceled
push str.Payload_Download_Status
mov esi, 0x4b76d8
mov byte [ebp - 0xd], bl
call fcn.004077c7
jmp 0x405016
call edi
sub eax, dword [ebp - 0x18]
lea ecx, [ebp - 0xd]
push ecx
dec eax
push eax
push str.Download_Update_Time
mov ecx, esi
mov byte [ebp - 0xd], bl
call main
cmp dword [ebp - 0x14], ebx
je 0x405081
call main
mov byte [ebp - 0xd], bl
mov eax, str.Succeeded
cmp dword [ebp - 0x14], ebx
jne 0x405093
mov eax, str.Failed
lea ecx, [ebp - 0xd]
push ecx
push ebx
push eax
push str.Payload_Download_Status
mov esi, 0x4b76d8
call fcn.004077c7
mov eax, dword [ebp - 0x14]
call fcn.00452a9c
ret
Function at 0x405f9e
Capabilities:
Create process on windows

Disassembly:
push 4
mov eax, 0x46eb0e
call fcn.004529c4
mov ebx, ecx
call fcn.0043eec2
push eax
lea ecx, [ebp - 0x10]
call fcn.004013a1
xor edi, edi
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.004353d0
pop ecx
lea ecx, [ebp + 0xc]
test eax, eax
jne 0x406019
push str.Failed_to_create_launcher_path
call fcn.004012e2
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_GetLastError]
push 0x1b2c4
add ebx, 0x4e8
mov ecx, eax
lea edx, [ebp + 0xc]
call fcn.0040fd33
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004017df
push 0xd
pop eax
jmp 0x406133
push str.Launcher_path:
call fcn.004012e2
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
push 2
mov byte [ebp - 4], 2
call fcn.004112e0
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017df
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push 5
push edi
push eax
push dword [ebp - 0x10]
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, 0x271c8
mov dword [ebp + 8], eax
cmp dword [0x4b7bc8], esi
je 0x4060bc
cmp eax, 0x21
jl 0x4060bc
push str.ShellExecute_succeded.
lea ecx, [ebp + 0xc]
mov dword [ebx + 0xbc], 1
call fcn.004012e2
push edi
lea eax, [ebp + 0xc]
push eax
push 2
mov byte [ebp - 4], 5
call fcn.004117b0
mov ecx, dword [ebp + 0xc]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004017df
xor eax, eax
jmp 0x406133
push str.ShellExecute_failed
lea ecx, [ebp + 0xc]
call fcn.004012e2
mov byte [ebp - 4], 3
call dword [sym.imp.kernel32.dll_GetLastError]
push esi
add ebx, 0x4e8
mov ecx, eax
lea edx, [ebp + 0xc]
call fcn.0040fd33
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004017df
cmp dword [ebp + 8], 5
jne 0x406125
push str.ShellExecute_failed_with_SE_ERR_ACCESSDENIED
lea ecx, [ebp + 0xc]
call fcn.004012e2
push 0
lea eax, [ebp + 0xc]
push eax
push 1
mov byte [ebp - 4], 4
call fcn.004117b0
mov ecx, dword [ebp + 0xc]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004017df
mov eax, dword [ebp + 8]
call fcn.00452a9c
ret 8
Function at 0x406507
Capabilities:
Delete registry key

Disassembly:
push 0x42c
mov eax, 0x46d953
call fcn.00452a2d
xor edi, edi
mov dword [ebp - 0x42c], 0x15
mov dword [esi + 0xd0], edi
cmp dword [esi + 0xc8], edi
je 0x40657b
push 0xc5
call fcn.00438c73
pop ecx
test eax, eax
je 0x40657b
push str.cleanup_serviced
lea ecx, [ebp - 0x428]
call fcn.004012e2
push edi
lea eax, [ebp - 0x428]
push eax
push 2
mov dword [ebp - 4], edi
call fcn.004117b0
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x428]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
jmp 0x406667
xor eax, eax
mov ebx, 0x206
push ebx
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x422]
push edi
push eax
mov dword [ebp - 0x438], edi
call fcn.004507c0
add esp, 0xc
xor eax, eax
push ebx
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push edi
push eax
call fcn.004507c0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x438]
push eax
call main
add esp, 0xc
test eax, eax
je 0x406684
call fcn.0043eec2
push eax
lea ecx, [ebp - 0x428]
call fcn.004013a1
lea eax, [ebp - 0x428]
push eax
mov dword [ebp - 4], 1
call fcn.0043531f
pop ecx
test eax, eax
je 0x40664d
push str._ArmCleanup
lea ecx, [ebp - 0x430]
call fcn.004012e2
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x428]
push eax
mov byte [ebp - 4], 2
call fcn.0042bba9
mov ecx, dword [ebp - 0x430]
add esp, 0xc
add ecx, 0xfffffff0
mov dword [ebp - 0x42c], eax
call fcn.004017df
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x428]
add ecx, 0xfffffff0
call fcn.004017df
cmp dword [ebp - 0x42c], edi
jne 0x406684
xor ebx, ebx
jmp 0x40667c
cmp ebx, 0x14
jge 0x406684
push 0xc8
inc ebx
call dword [sym.imp.kernel32.dll_Sleep]
cmp dword [esi + 0xd0], edi
je 0x40666b
cmp dword [esi + 0xd0], edi
jne 0x4066c3
push str.launch_cleanup_not_confirmed
lea ecx, [ebp - 0x42c]
call fcn.004012e2
push edi
lea eax, [ebp - 0x42c]
push eax
push 2
mov dword [ebp - 4], 3
call fcn.004117b0
mov ecx, dword [ebp - 0x42c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
lea eax, [ebp - 0x434]
push eax
push 0xf003f
push edi
push 0x477688
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406701
push str.Cleanup
push dword [ebp - 0x434]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00452ab0
ret