joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007fa3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 0x14]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [edi], esi
cmp dword [ebp + 0x10], esi
jbe 0x10008000
mov ecx, esi
mov edx, 0x10000
mov eax, dword [ebp + 0x10]
sub eax, ecx
cmp eax, edx
push esi
cmova eax, edx
lea edx, [ebp - 4]
push edx
push eax
mov eax, dword [ebp + 0xc]
add eax, ecx
push eax
mov eax, dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10007ff8
mov ecx, dword [edi]
mov edx, 0x10000
add ecx, dword [ebp - 4]
mov dword [edi], ecx
cmp ecx, dword [ebp + 0x10]
jb 0x10007fbf
jmp 0x10008000
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x1000846e
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push ebx
push esi
push edi
push eax
push 1
push 0x1002dfc0
call fcn.100073d7
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0xc
xor esi, esi
mov edi, 0x10000
test eax, eax
jne 0x100084ee
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
call fcn.100072d4
pop ecx
lea eax, [ebp - 0x10]
mov edi, 0x10000
push eax
push esi
push edi
push edi
push 0xff
push esi
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov esi, eax
call ebx
cmp dword [ebp - 4], 0
jne 0x100084e7
lea eax, [ebp - 4]
push eax
push 0
push str.SeSecurityPrivilege
call fcn.100073d7
add esp, 0xc
cmp esi, 0xffffffff
jne 0x10008511
xor esi, esi
push esi
push esi
push edi
push edi
push 0xff
push esi
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov esi, eax
call ebx
cmp esi, 0xffffffff
jne 0x10008511
or eax, 0xffffffff
jmp 0x10008550
call fcn.1000505a
mov edi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x1000854e
call ebx
cmp eax, 0x217
je 0x1000854e
push 1
call fcn.10005015
pop ecx
call fcn.1000505a
mov ecx, dword [ebp + 0xc]
sub eax, edi
cmp eax, dword [ecx + 4]
jb 0x10008518
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000850c
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10008555
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
push 8
xor eax, eax
mov dword [ebp - 0xc], 1
pop ecx
lea edi, [ebp - 0x2c]
xor esi, esi
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [edi + 4]
push dword [edi + 0x14]
mov eax, dword [eax + 0x30]
mov dword [ebp - 8], eax
call fcn.1000b70b
xor eax, eax
pop ecx
inc eax
test eax, eax
je 0x100085d0
push 0
lea eax, [ebp - 4]
push eax
push 0x20
pop eax
sub eax, esi
push eax
lea eax, [ebp - 0x2c]
add eax, esi
push eax
mov eax, dword [ebp - 8]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100085c3
add esi, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
cmp esi, 0x20
jne 0x1000858b
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x1000858b
push 0x490
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10008614
cmp esi, 0x20
jne 0x10008614
cmp byte [ebp - 0x29], bl
jne 0x10008637
mov edi, dword [ebp - 0x2c]
add edi, 0xffffffe4
push edi
call fcn.1001535e
mov esi, eax
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [ebp - 8]
call fcn.10007fa3
push esi
call fcn.10015359
add esp, 0x18
cmp edi, dword [ebp - 4]
jne 0x10008611
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0xc]
and dword [eax], ebx
mov edi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test ebx, ebx
je 0x10008627
push ebx
call fcn.10015359
pop ecx
push dword [edi + 0x14]
call fcn.1000b721
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
push 0x1c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.10005099
mov eax, dword [edi + 0x10]
add eax, 0x20
push eax
call fcn.100050be
add esp, 0x10
test eax, eax
je 0x1000866e
push 0x10
lea eax, [ebp - 0x28]
push eax
mov eax, dword [edi + 0x10]
add eax, 0x20
push eax
call fcn.10011ee0
add esp, 0xc
push dword [ebp - 0x14]
call dword [sym.imp.WS2_32.dll_ntohl]
lea esi, [eax - 8]
lea eax, [esi + 0x20]
push eax
call fcn.1001535e
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x10008691
push 8
jmp 0x100085c8
push 0x1c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.10005099
push 0x20
lea eax, [ebp - 0x2c]
push eax
push 0x20
push ebx
call fcn.10005e67
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebx + 0x20]
push eax
push dword [ebp - 8]
call fcn.10007fa3
add esp, 0x2c
cmp dword [ebp - 4], esi
je 0x100086cd
push eax
jmp 0x100085c8
lea eax, [esi + 0x20]
push eax
push ebx
push dword [ebp + 0xc]
push edi
call fcn.1000579a
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call fcn.10015359
pop ecx
xor ebx, ebx
jmp 0x10008614
Function at 0x10008c15
Capabilities:
Create tcp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x1b4
and dword [eax], 0
lea eax, [ebp - 0x1b4]
push 0x190
push 0
push eax
call fcn.100125a0
add esp, 0xc
lea eax, [ebp - 0x1b4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10008c58
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
leave
ret
push ebx
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_socket]
xor esi, esi
push 6
push 1
push 0x17
pop eax
push eax
mov dword [ebp - 4], esi
call edi
mov ebx, eax
push 2
pop eax
cmp ebx, 0xffffffff
je 0x10008c9d
and dword [ebp - 8], esi
lea eax, [ebp - 8]
push 4
push eax
push 0x1b
push 0x29
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x10008cac
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push 2
pop eax
push 6
push 1
push eax
call edi
xor esi, esi
mov ebx, eax
inc esi
mov dword [ebp - 4], esi
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
test esi, esi
je 0x10008ce0
mov esi, dword [sym.imp.WS2_32.dll_htons]
push 0
call esi
movzx eax, ax
push 2
mov dword [ebp - 0x20], eax
pop eax
push dword [ebp + 8]
mov word [ebp - 0x24], ax
call esi
jmp 0x10008cfc
mov esi, 0x1002465c
lea edi, [ebp - 0x1c]
push 0x17
pop eax
push dword [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov word [ebp - 0x24], ax
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp + 0xc]
cmp dword [ebp - 4], 0
push 0x1c
mov word [ebp - 0x22], ax
pop eax
push 0x10
pop ecx
cmovne eax, ecx
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
call fcn.10008d23
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10008f9f
Capabilities:
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
lea eax, [ebp - 0x1a0]
push esi
mov esi, dword [ebp + 0x18]
push 0x190
push 0
push eax
and dword [esi], 0
call fcn.100125a0
add esp, 0xc
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10008fe3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1000904f
push ebx
push edi
push 6
push 1
push 2
pop eax
push eax
call dword [sym.imp.WS2_32.dll_socket]
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx]
push dword [ecx]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
mov dword [ebp - 0xc], eax
pop eax
push dword [ebp + 0xc]
mov word [ebp - 0x10], ax
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp + 0x14]
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push dword [ebp + 0x10]
push 0x10
push eax
push ebx
call fcn.10009160
add esp, 0x14
test eax, eax
jne 0x1000904d
mov dword [esi], ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10009052
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
sub esp, 0x1bc
push esi
xor esi, esi
push 0x190
mov dword [eax], esi
lea eax, [ebp - 0x1bc]
push esi
push eax
call fcn.100125a0
add esp, 0xc
lea eax, [ebp - 0x1bc]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10009099
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x10009156
push ebx
push edi
push 0x17
pop edi
lea eax, [ebp - 8]
mov dword [ebp - 0x2c], esi
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], edi
push eax
push dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0x20], 6
push dword [ebp + 8]
xor ebx, ebx
movlpd qword [ebp - 0x1c], xmm0
inc ebx
movlpd qword [ebp - 0x14], xmm0
mov dword [ebp - 0x24], ebx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x100090e7
push 6
push ebx
push edi
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100090ef
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x10009154
mov dword [ebp - 4], esi
call fcn.1000505a
mov dword [ebp - 0xc], eax
call fcn.1000505a
mov edi, dword [ebp - 8]
jmp 0x10009125
mov eax, dword [edi + 0x18]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x18], ecx
push dword [edi + 0x10]
push dword [edi + 0x18]
push ebx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x10009159
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x10009104
push dword [ebp + 0x18]
call fcn.10005015
pop ecx
call fcn.1000505a
sub eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x14]
jb 0x100090fa
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, esi
pop edi
pop ebx
pop esi
leave
ret
mov eax, dword [ebp + 0x1c]
mov dword [eax], ebx
jmp 0x10009149
Function at 0x10009160
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
call fcn.1000505a
mov edi, eax
call fcn.1000505a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_connect]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100091a5
push dword [ebp + 0x18]
call fcn.10005015
pop ecx
call fcn.1000505a
sub eax, edi
cmp eax, dword [ebp + 0x14]
jb 0x1000916c
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x10009de7
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], 0x248
mov eax, dword [edi + 0x1c]
lea ecx, [edi + 0x20]
movzx edx, word [edi]
mov ebx, dword [edi + 4]
mov dword [ebp + 8], edx
lea ecx, [ecx + eax*2]
mov dword [ebp - 8], ecx
mov ecx, 0xfe
sub ecx, eax
mov eax, 0x24a
add ecx, ecx
cmp word [edi + 8], 0x30
mov dword [ebp - 0x10], ecx
cmovne eax, dword [ebp - 4]
mov dword [ebp - 4], eax
push dword [edi + 0xc]
movzx eax, dx
push dword [edi + 0x10]
push eax
push str._d._s._s
push ecx
push dword [ebp - 8]
call fcn.1000a5ef
add esp, 0x18
lea eax, [edi + 0x14]
push esi
push eax
push dword [edi + 0x18]
movzx eax, word [edi + 8]
push dword [ebp - 4]
push eax
lea eax, [edi + 0x20]
push eax
call sub.DNSAPI.dll_DnsQuery_W
mov edx, dword [ebp + 8]
inc edx
mov dword [ebp - 0xc], eax
mov dword [ebp + 8], edx
test eax, eax
je 0x10009e7e
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov ecx, ebx
dec ebx
test ecx, ecx
je 0x10009e8c
mov ecx, dword [ebp - 0x10]
test eax, eax
jne 0x10009e2e
test ebx, ebx
jne 0x10009e95
push 2
pop esi
jmp 0x10009e9d
push 3
test eax, eax
pop ecx
cmovne esi, ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x1000b89c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1000b8d6
push 0x1c
call fcn.1001535e
mov esi, eax
pop ecx
test esi, esi
je 0x1000b8d6
push 0x1c
push 0
push esi
call fcn.100125a0
add esp, 0xc
call fcn.1000b735
mov dword [esi + 8], eax
push esi
test eax, eax
jne 0x1000b8dc
call fcn.10015359
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
push 4
push esi
push 0x1000b9e2
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x10]
push 0
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
push 0
mov dword [esi + 0x18], eax
mov dword [esi + 0xc], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
jne 0x1000b91b
push dword [esi + 8]
call fcn.1000b775
push esi
call fcn.10015359
pop ecx
jmp 0x1000b8d5
mov eax, esi
jmp 0x1000b8d8

Function at 0x1000b941
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x1000b94d
pop ebp
ret
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
inc eax
pop ebp
ret

Function at 0x1000b972
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x1000b990
push 0xffffffffffffffff
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x1000b990
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1000f92d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x24]
mov ecx, dword [edi + 0x6c]
mov esi, dword [edi + 0x34]
mov edx, dword [edi + 0x64]
sub esi, edx
sub esi, ecx
mov dword [ebp - 8], esi
jne 0x1000f95c
test edx, edx
jne 0x1000f969
test ecx, ecx
jne 0x1000f969
mov esi, ebx
jmp 0x1000f9eb
cmp esi, 0xffffffff
jne 0x1000f969
push 0xfffffffffffffffe
pop esi
jmp 0x1000f9eb
mov eax, dword [edi + 0x24]
add eax, 0xfffffefa
add eax, ebx
cmp edx, eax
jb 0x1000f9eb
mov ecx, dword [edi + 0x30]
push ebx
lea eax, [ecx + ebx]
push eax
push ecx
call fcn.10011ee0
mov ecx, dword [edi + 0x44]
add esp, 0xc
mov eax, dword [edi + 0x3c]
sub dword [edi + 0x68], ebx
sub dword [edi + 0x64], ebx
sub dword [edi + 0x54], ebx
mov dword [ebp - 4], ecx
lea edi, [eax + ecx*2]
lea edi, [edi - 2]
xor ecx, ecx
movzx eax, word [edi]
mov edx, eax
sub eax, ebx
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
sub dword [ebp - 4], 1
mov word [edi], cx
jne 0x1000f99d
mov edi, dword [ebp + 8]
mov ecx, ebx
mov esi, ecx
mov eax, dword [edi + 0x38]
lea edi, [eax + ecx*2]
lea edi, [edi - 2]
xor ecx, ecx
movzx eax, word [edi]
mov edx, eax
sub eax, ebx
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [edi], cx
sub esi, 1
jne 0x1000f9c7
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
add esi, ebx
mov ecx, dword [edi]
cmp dword [ecx + 4], 0
je 0x1000fa48
mov eax, dword [edi + 0x6c]
add eax, dword [edi + 0x64]
add eax, dword [edi + 0x30]
push esi
push eax
push ecx
call fcn.100103f4
add dword [edi + 0x6c], eax
add esp, 0xc
mov ecx, dword [edi + 0x6c]
cmp ecx, 3
jb 0x1000fa34
mov edx, dword [edi + 0x64]
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x50]
movzx esi, byte [edx + eax]
mov dword [edi + 0x40], esi
movzx eax, byte [edx + eax + 1]
shl esi, cl
mov ecx, dword [edi + 0x6c]
xor esi, eax
and esi, dword [edi + 0x4c]
mov dword [edi + 0x40], esi
cmp ecx, 0x106
jae 0x1000fa48
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x1000f93e
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403900
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1e8
mov eax, dword [0x559910]
xor eax, esp
mov dword [esp + 0x1e4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
push 0
mov dword [esp + 0x10], eax
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jns 0x403962
push 0
push str.error1
push str.error
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x1e4]
xor ecx, esp
call fcn.004d6720
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0x58]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea eax, [esp + 0x18]
push eax
call fcn.004301b0
add esp, 4
lea ecx, [esp + 0x18]
push 0xc
push str.downloader_
call fcn.00402e30
lea eax, [esp + 0x18]
push eax
call fcn.0042ff70
add esp, 4
test al, al
jne 0x4039ad
lea eax, [esp + 0x18]
push eax
call fcn.0042ff90
add esp, 4
push 0xe
push str.downloader.log
lea ecx, [esp + 0x20]
call fcn.00402e30
call fcn.004359d0
sub esp, 0x18
lea esi, [esp + 0x30]
mov edi, esp
lea edx, [esp + 0x30]
xor eax, eax
mov ecx, edi
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp dword [esp + 0x44], 8
mov eax, dword [esp + 0x40]
cmovae esi, dword [esp + 0x30]
cmovae edx, dword [esp + 0x30]
lea eax, [esi + eax*2]
push eax
push edx
call fcn.00403b50
call fcn.004359f0
push str._r_n_r_n_start_run
push 0x3f
push str.wWinMain
call fcn.00435930
mov eax, dword [0x5632d4]
add esp, 0x24
test eax, eax
jne 0x403a56
push 0x550
call fcn.004d672f
mov esi, eax
add esp, 4
test esi, esi
je 0x403a4f
push 0x550
push 0
push esi
call fcn.004e0970
add esp, 0xc
mov ecx, esi
call fcn.004139e0
jmp 0x403a51
xor eax, eax
mov dword [0x5632d4], eax
push dword [esp + 0xc]
mov ecx, eax
call fcn.00414630
mov eax, dword [0x5632d4]
test eax, eax
jne 0x403a9d
push 0x550
call fcn.004d672f
mov esi, eax
add esp, 4
test esi, esi
je 0x403a96
push 0x550
push 0
push esi
call fcn.004e0970
add esp, 0xc
mov ecx, esi
call fcn.004139e0
jmp 0x403a98
xor eax, eax
mov dword [0x5632d4], eax
mov esi, dword [esp + 0x10]
push 0x53bb4c
push str.downloader_start._version_is_:__s_
push 0x44
push str.wWinMain
mov dword [eax + 0x548], esi
call fcn.00435930
add esp, 0xc
mov ecx, esi
call fcn.00403840
add esp, 4
push str.duilibInit2_end
push 0x46
push str.wWinMain
call fcn.00435930
add esp, 0xc
mov dword [esp + 0x40], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x38]
movdqa xmmword [esp + 0x30], xmm0
mov dword [esp + 0x30], vtable.DNDownloaderImpl.0
call fcn.00439c20
sub esp, 8
lea ecx, [esp + 0x38]
call fcn.00405870
test al, al
je 0x403b15
call fcn.004544e0
call fcn.00405ae0
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [esp + 0x2c], 8
jb 0x403b33
push dword [esp + 0x18]
call fcn.0047f170
add esp, 4
mov ecx, dword [esp + 0x1ec]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.004d6720
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404d20
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov dword [0x5632d0], 0
push 1
mov ecx, dword [esi + 4]
call fcn.00428de0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [esi + 4]
call fcn.00428de0
push eax
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov ecx, dword [esi + 4]
push 5
call fcn.00428de0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
Function at 0x411690
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov dword [ebp + 8], eax
add ecx, 4
pop ebp
jmp fcn.00407cf0

Function at 0x412900
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51147a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x559910]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.004d56b4
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x4129a6
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.004d7a2b
push 0x556060
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.004dfece
push edi
push esi
call fcn.004d5587
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d6720
mov esp, ebp
pop ebp
ret 4

Function at 0x415950
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x559910]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov dword [ebp - 0x814], 0
push 0x7fe
push eax
mov word [ebp - 0x804], ax
mov edi, edx
lea eax, [ebp - 0x802]
mov esi, ecx
push eax
call fcn.004e0970
add esp, 0xc
mov dword [ebp - 0x810], 0
cmp dword [edi + 0x14], 8
jb 0x4159a3
mov edi, dword [edi]
lea eax, [ebp - 0x810]
push eax
push edi
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4159fe
mov dword [ebp - 0x808], eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
mov dword [ebp - 0x80c], 0x800
push eax
lea eax, [ebp - 0x808]
push eax
push 0
push str.InstallDir
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x804], ax
jne 0x415a1e
xor ecx, ecx
jmp 0x415a36
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415a27
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x804]
mov ecx, esi
push eax
call fcn.004036b0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004d6720
mov esp, ebp
pop ebp
ret
Function at 0x415ce0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511abe
mov eax, dword fs:[0]
push eax
sub esp, 0x834
mov eax, dword [0x559910]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x814], ax
lea eax, [ebp - 0x812]
push eax
mov dword [ebp - 0x824], 0
call fcn.004e0970
add esp, 0xc
mov dword [ebp - 0x820], 0
cmp dword [0x5633bc], 0
jne 0x415d7d
push 0x38
call fcn.004d672f
add esp, 4
mov dword [ebp - 0x818], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x415d6f
mov ecx, eax
call fcn.004020b0
jmp 0x415d71
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x5633bc], eax
lea eax, [ebp - 0x83c]
push eax
call fcn.004027f0
cmp dword [eax + 0x14], 8
jb 0x415d91
mov eax, dword [eax]
lea ecx, [ebp - 0x820]
push ecx
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
cmp dword [ebp - 0x828], 8
mov edi, eax
jb 0x415dbd
push dword [ebp - 0x83c]
call fcn.0047f170
add esp, 4
test edi, edi
jne 0x415e04
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x81c], 0x800
push eax
lea eax, [ebp - 0x814]
mov dword [ebp - 0x818], edi
push eax
lea eax, [ebp - 0x818]
push eax
push edi
push str.Version
push dword [ebp - 0x820]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x820]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x814], ax
jne 0x415e24
xor ecx, ecx
jmp 0x415e3f
lea ecx, [ebp - 0x814]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415e30
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x814]
mov ecx, esi
push eax
call fcn.004036b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d6720
mov esp, ebp
pop ebp
ret 4