joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fec0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ee41
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x49b024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
push str.TKX00001
mov eax, dword [ebp + 8]
push eax
call fcn.00422020
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x41ff4c
push 0x158
call fcn.0042fa5e
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0
je 0x41ff2a
mov ecx, dword [ebp - 0x14]
call fcn.00420030
mov dword [ebp - 0x2c], eax
jmp 0x41ff31
mov dword [ebp - 0x2c], 0
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x24], ecx
jmp 0x41fff0
mov edx, dword [ebp - 0x28]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x28]
mov edx, dword [eax + 8]
call edx
movzx eax, al
test eax, eax
je 0x41ffa9
push 0x158
call fcn.0042fa5e
add esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x1c], 0
je 0x41ff8a
mov ecx, dword [ebp - 0x1c]
call fcn.00420050
mov dword [ebp - 0x30], eax
jmp 0x41ff91
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
mov dword [edx + 0x24], eax
jmp 0x41fff0
push 0x158
call fcn.0042fa5e
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 2
cmp dword [ebp - 0x24], 0
je 0x41ffd3
mov ecx, dword [ebp - 0x24]
call fcn.00420070
mov dword [ebp - 0x34], eax
jmp 0x41ffda
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
mov dword [edx + 0x24], eax
push 0
push 0
mov ecx, dword [ebp - 0x28]
push ecx
push 0x41f170
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov edx, dword [ebp - 0x28]
mov ecx, dword [edx + 0x24]
call fcn.00424650
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x422410
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push eax
push 0x20219
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x422460
lea eax, [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp - 4], 0
sete al
jmp 0x422462
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x4233b0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x49b024]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x8c], 0
mov byte [ebp - 0x88], 0
push 0x7f
push 0
lea eax, [ebp - 0x87]
push eax
call fcn.00437410
add esp, 0xc
mov dword [ebp - 4], 0x80
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x88]
push edx
call dword [sym.imp.KERNEL32.DLL_GetComputerNameA]
lea eax, [ebp - 0x88]
push eax
mov ecx, dword [ebp + 8]
call fcn.004086f0
mov ecx, dword [ebp - 0x8c]
or ecx, 1
mov dword [ebp - 0x8c], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret 4
Function at 0x424410
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e0db
mov eax, dword fs:[0]
push eax
sub esp, 0x1c4
mov eax, dword [0x49b024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1d0], ecx
mov dword [ebp - 0x1cc], 0
lea ecx, [ebp - 0x1c8]
call fcn.004086c0
mov dword [ebp - 4], 0
mov eax, 0x101
mov word [ebp - 0x1a8], ax
lea ecx, [ebp - 0x1a4]
push ecx
movzx edx, word [ebp - 0x1a8]
push edx
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x48abda
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x1ac], eax
mov eax, dword [ebp - 0x1ac]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x1c8]
call fcn.00408870
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea ecx, [ebp - 0x1c8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00408770
mov edx, dword [ebp - 0x1cc]
or edx, 1
mov dword [ebp - 0x1cc], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c8]
call fcn.00408830
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret 4
Function at 0x426560
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x49b024]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x134], 0xffffffff
mov dword [ebp - 0x130], 0
push 0x124
push 0
lea eax, [ebp - 0x12c]
push eax
call fcn.00437410
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0xffffffff
jne 0x4265c3
xor eax, eax
jmp 0x42664b
mov dword [ebp - 0x130], 0x128
lea ecx, [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x134]
push edx
call dword [sym.imp.KERNEL32.DLL_Process32First]
test eax, eax
je 0x42663c
lea eax, [ebp - 0x10c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
test eax, eax
jne 0x426624
mov edx, dword [ebp - 0x118]
cmp edx, dword [ebp + 0xc]
jne 0x426624
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x128]
mov dword [eax], ecx
mov edx, dword [ebp - 0x134]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, 1
jmp 0x42664b
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
call dword [sym.imp.KERNEL32.DLL_Process32Next]
test eax, eax
jne 0x4265e5
mov edx, dword [ebp - 0x134]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x426f30
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov byte [eax], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], 0
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0x67452301
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 0xefcdab89
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], 0x98badcfe
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0x10325476
mov ecx, dword [ebp + 8]
call fcn.00414ae0
push eax
mov ecx, dword [ebp + 8]
call fcn.00409a50
push eax
mov ecx, dword [ebp - 4]
call fcn.004270c0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x428a80
Capabilities:
Create udp socket
Initialize winsock library
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47daf0
mov eax, dword fs:[0]
push eax
sub esp, 0x624
mov eax, dword [0x49b024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
lea eax, [ebp - 0x1b8]
mov ecx, 0x116
lea esi, [ebp + 8]
lea edi, [ebp - 0x610]
rep movsd dword es:[edi], dword [esi]
push eax
xor edi, edi
mov esi, 1
push 0x202
mov dword [ebp - 0x618], edi
mov dword [ebp - 0x628], esi
mov dword [ebp - 4], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x428b1f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x217
push str._CloudUpdate_...__d_WSAStartup_failed__err___d
call fcn.0042de30
add esp, 0xc
push 0x49704c
lea ecx, [ebp - 0x62c]
push ecx
mov dword [ebp - 0x62c], esi
call fcn.00435ff8
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
mov dword [ebp - 0x614], esi
cmp esi, 0xffffffff
jne 0x428b6c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x220
push str._CloudUpdate_...__d_socket_failed__err___d
call fcn.0042de30
add esp, 0xc
push 0x49704c
lea edx, [ebp - 0x620]
push edx
mov dword [ebp - 0x620], 2
call fcn.00435ff8
cmp ebx, 0xffffffff
jne 0x428bc0
push 4
lea eax, [ebp - 0x628]
push eax
push 0x20
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, ebx
jne 0x428bc0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x22a
push str._CloudUpdate_...__d_setsockopt_failed__err___d
call fcn.0042de30
add esp, 0xc
push 0x49704c
lea ecx, [ebp - 0x61c]
push ecx
mov dword [ebp - 0x61c], 2
call fcn.00435ff8
mov edx, 2
push 0x2b67
mov word [ebp - 0x24], dx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x24]
push eax
push edi
push 0x458
lea ecx, [ebp - 0x610]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x428c6d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x23a
push str._CloudUpdate_...__d_sendto_failed__err___d
call fcn.0042de30
add esp, 0xc
push 0x49704c
lea edx, [ebp - 0x624]
push edx
mov dword [ebp - 0x624], 2
call fcn.00435ff8
mov eax, dword [ebp - 0x630]
push eax
push 0x243
push str._CloudUpdate_...__d_SendData_except__exception_code___d
call fcn.0042de30
add esp, 0xc
mov eax, 0x428c4d
ret
mov dword [ebp - 0x618], 1
cmp esi, 0xffffffff
je 0x428c83
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x618]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret 0x458
Function at 0x428cb0
Capabilities:
Create udp socket
Initialize winsock library
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47dac0
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x49b024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x1b8]
xor ebx, ebx
push eax
push 0x202
mov edi, ecx
mov dword [ebp - 0x1c8], 1
mov dword [ebp - 0x1bc], ebx
mov dword [ebp - 0x1c4], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x428d48
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x26b
push str._CloudUpdate_...__d_WSAStartup_failed__err___d
call fcn.0042de30
add esp, 0xc
push 0x49704c
lea ecx, [ebp - 0x1d8]
push ecx
mov dword [ebp - 0x1d8], 2
call fcn.00435ff8
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
mov dword [ebp - 0x1c0], esi
cmp esi, 0xffffffff
jne 0x428d95
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x274
push str._CloudUpdate_...__d_socket_failed__err___d
call fcn.0042de30
add esp, 0xc
push 0x49704c
lea edx, [ebp - 0x1dc]
push edx
mov dword [ebp - 0x1dc], 2
call fcn.00435ff8
push 4
lea eax, [ebp - 0x1c8]
push eax
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x428de5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x27c
push str._CloudUpdate_...__d_setsockopt_failed__err___d
call fcn.0042de30
add esp, 0xc
push 0x49704c
lea ecx, [ebp - 0x1d0]
push ecx
mov dword [ebp - 0x1d0], 2
call fcn.00435ff8
mov edx, 2
push 0x2b67
mov word [ebp - 0x24], dx
call dword [sym.imp.WS2_32.dll_htons]
push ebx
mov word [ebp - 0x22], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x20], eax
push 0x10
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x428e4d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x288
push str._CloudUpdate_...__d_bind_failed__err___d
call fcn.0042de30
add esp, 0xc
push 0x49704c
lea ecx, [ebp - 0x1d4]
push ecx
mov dword [ebp - 0x1d4], 2
call fcn.00435ff8
lea edx, [ebp - 0x1c4]
push edx
lea eax, [ebp - 0x24]
push eax
push ebx
push 0x458
push edi
push esi
mov dword [ebp - 0x1c4], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
mov dword [ebp - 0x1bc], edi
cmp edi, ebx
je 0x428ecd
cmp edi, 0xffffffff
jne 0x428ecd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x49704c
lea ecx, [ebp - 0x1cc]
push ecx
mov dword [ebp - 0x1cc], 2
call fcn.00435ff8
mov edx, dword [ebp - 0x1e0]
push edx
push 0x29e
push str._CloudUpdate_...__d_RecvData_except__exception_code___d
call fcn.0042de30
add esp, 0xc
mov eax, 0x428ec1
ret
cmp esi, 0xffffffff
je 0x428ed9
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret
Function at 0x429630
Capabilities:
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c0
mov eax, dword [0x49b024]
xor eax, esp
mov dword [esp + 0x1bc], eax
push ebx
push esi
lea eax, [esp + 0x30]
push eax
push 0x202
mov bl, 1
mov dword [esp + 0x10], 1
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x429680
xor al, al
pop esi
pop ebx
mov ecx, dword [esp + 0x1bc]
xor ecx, esp
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push 4
lea ecx, [esp + 0xc]
push ecx
push 4
mov esi, eax
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edx, 2
push 0
mov word [esp + 0x14], dx
call dword [sym.imp.WS2_32.dll_htonl]
push 0x10
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], eax
push ecx
xor eax, eax
push esi
mov word [esp + 0x1e], ax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x4296d6
xor bl, bl
jmp 0x429705
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x24]
push eax
push esi
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4296f7
xor bl, bl
jmp 0x429705
mov ecx, dword [esp + 0x22]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [edi], ax
push 1
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x42971b
xor bl, bl
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x1c4]
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret
Function at 0x42c350
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x49b024]
xor eax, esp
mov dword [esp + 0x194], eax
push esi
push edi
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x42c3af
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x95a
push str._CloudUpdate_...__d_WSAStartup_failed_err___d
call fcn.0042de30
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret
push 0x490e1c
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [ebx + 0x9c0]
mov edx, dword [ebx + 0xaf8]
mov dword [ebx], eax
mov dword [ebx + 0x40], eax
mov eax, dword [ebx + 0x970]
mov dword [ebx + 0x4c], ecx
mov ecx, dword [ebx + 0x974]
lea edi, [ebx + 0x938]
mov dword [ebx + 0x24], 6
mov dword [ebx + 0x50], edx
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], ecx
call fcn.00429630
movzx edx, word [edi]
push edx
push 0x967
push 0x491fd8
call fcn.0042de30
mov ax, word [edi]
sub esp, 0x44c
mov edi, esp
mov word [ebx + 0x22], ax
lea esi, [ebx + 8]
mov ecx, 0x116
push str.255.255.255.255
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, eax
call fcn.00428a80
mov ecx, ebx
call fcn.0042a090
mov ecx, dword [esp + 0x19c]
pop edi
pop esi
xor ecx, esp
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret
Function at 0x42c470
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47daa0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x49b024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
lea eax, [edi + 0xafc]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x42c56b
cmp dword [edi + 0xeb0], ebx
je 0x42c56b
cmp dword [edi + 0x990], ebx
je 0x42c56b
push ebx
push 0x80
push 2
push ebx
push 3
push 0x1f01ff
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, 0xffffffff
jne 0x42c51d
push 0x990
push 0x492044
call fcn.0042de30
add esp, 8
push 0x49704c
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 2
call fcn.00435ff8
mov edx, dword [edi + 0x990]
mov eax, dword [edi + 0xeb0]
push ebx
lea ecx, [ebp - 0x20]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x42c562
push 0x995
push 0x492068
call fcn.0042de30
add esp, 8
push 0x49704c
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 0x24], 2
call fcn.00435ff8
mov dword [ebp - 0x18], 1
jmp 0x42c5b1
push 0x989
push 0x492018
call fcn.0042de30
add esp, 8
push 0x49704c
lea edx, [ebp - 0x28]
push edx
mov dword [ebp - 0x28], 1
call fcn.00435ff8
mov eax, dword [ebp - 0x2c]
push eax
push 0x99d
push str._CloudUpdate_...__d_CheckPackageMem_except__exception_code___d
call fcn.0042de30
add esp, 0xc
mov eax, 0x42c5ae
ret
cmp esi, 0xffffffff
je 0x42c5c4
push esi
call dword [sym.imp.KERNEL32.DLL_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42c600
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47da80
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x49b024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
xor edi, edi
lea eax, [ebx + 0xafc]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], edi
cmp eax, edi
jne 0x42c670
push 0x9b8
push 0x492088
call fcn.0042de30
add esp, 8
push 0x49704c
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 1
call fcn.00435ff8
push edi
push 0x80
push 3
push edi
push 3
push 0x1f01ff
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, 0xffffffff
jne 0x42c6b8
push 0x9bf
push 0x4920b4
call fcn.0042de30
add esp, 8
push 0x49704c
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x20], 2
call fcn.00435ff8
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
push edi
mov dword [ebx + 0x990], edi
call fcn.0042ecc3
add esp, 4
push 0
lea edx, [ebp - 0x24]
push edx
push edi
push eax
push esi
mov dword [ebx + 0xeb0], eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x42c74a
push 0x9c8
push 0x4920d8
call fcn.0042de30
add esp, 8
push 0x49704c
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 2
call fcn.00435ff8
mov ecx, dword [ebp - 0x2c]
push ecx
push 0x9d2
push str._CloudUpdate_...__d_CheckPackageMem_except__exception_code___d
call fcn.0042de30
add esp, 0xc
mov eax, 0x42c72d
ret
mov edx, dword [ebx + 0xeb0]
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov dword [ebp - 0x18], 1
cmp esi, 0xffffffff
je 0x42c768
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42dd50
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x49b024]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, edx
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
cmp eax, edx
je 0x42dda5
push ecx
push edi
lea esi, [esp + 0x18]
call fcn.0042dba0
lea ecx, [esp + 0x10]
mov ebx, edi
call fcn.0042dc50
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret 4

Function at 0x42de30
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x42de85
push esi
push edi
lea ecx, [ebp + 0xc]
push ecx
push eax
call fcn.0043261c
lea esi, [eax + 1]
lea edx, [esi + 1]
push edx
call fcn.0042fa5e
mov ecx, dword [ebp + 8]
mov edi, eax
lea eax, [ebp + 0xc]
push eax
push ecx
push esi
push esi
push edi
call fcn.0042f9e2
add esp, 0x20
push 0x49244c
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push edi
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
push edi
call fcn.0042fa02
add esp, 4
pop edi
pop esi
pop ebp
ret

Function at 0x42df10
Capabilities:
Initialize winhttp library

Disassembly:
push edi
xor edi, edi
push edi
push edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
push edi
mov eax, 0x1388
push 1
push edi
mov dword [esi], vtable.CWinHttp.0
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], 0x7530
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi + 0x10], eax
cmp eax, edi
jne 0x42df5b
mov dword [esi + 8], 2
mov eax, esi
pop edi
ret
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x20]
push ecx
mov ecx, dword [esi + 0x1c]
push edx
push ecx
push edi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov eax, esi
pop edi
ret