joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7743d02f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x7743d088
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x7743d02f
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x7743d03e
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x77842ce1
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x7743d08f
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.77423f05
cmp eax, dword [ebp + 0xc]
pop eax
je 0x7743d12e
add edi, 4
add eax, 2
dec ecx
jne 0x7743d074
call 0x7743d0db
loope 0x7743d0d1
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x7743d12b
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x7743d13c
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x7743d0ef
cmp eax, ecx
ja 0x7743d0ef
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x7743d179
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x7743d16f
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.774243e4
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x7743d03e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x7743d088
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x7743d02f
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x7743d03e
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x77842ce1
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x7743d08f
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.77423f05
cmp eax, dword [ebp + 0xc]
pop eax
je 0x7743d12e
add edi, 4
add eax, 2
dec ecx
jne 0x7743d074
call 0x7743d0db
loope 0x7743d0d1
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x7743d12b
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x7743d13c
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x7743d0ef
cmp eax, ecx
ja 0x7743d0ef
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x7743d179
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x7743d16f
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.774243e4
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x402a40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4798e8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x496684]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x402b6d
cmp byte [edi + 0x49], bl
je 0x402b6d
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x402aff
mov ecx, 0xf
mov dword [ebp - 0x18], ecx
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x402ab4
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x402acc
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x402b03
dec eax
je 0x402b07
sub eax, 2
je 0x402b5e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00405780
xor al, al
jmp 0x402b6f
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x402b17
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x402b40
cmp ebx, 0x10
jae 0x402b26
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0042f6d0
add esp, 0x10
cmp esi, eax
jne 0x402af0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x402b5e
test esi, esi
jne 0x402ac0
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.004021a0
jmp 0x402aba
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00405780
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ca72
mov esp, ebp
pop ebp
ret
Function at 0x402e80
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478ba3
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x496684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0042bee8
mov dword [ebp - 4], 0
push 4
call fcn.0042d5e8
mov edi, eax
add esp, 4
test edi, edi
je 0x402f08
call fcn.0042c2ca
mov dword [edi], eax
call fcn.0042c089
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0042bea9
mov byte [ebp - 4], 1
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x402efa
inc eax
mov dword [ebx + 4], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0042bed1
jmp 0x402f0a
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
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 0x4072f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x407308
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40733a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x407336
cmp esi, eax
jae 0x40733a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x407328
cmp esi, eax
jb 0x407340
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x407690
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x496684]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x210]
push eax
push 0x20019
push 0
push str.SOFTWAREApple_Inc.CoreFP
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x210], 0
call esi
test eax, eax
je 0x4076e3
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ca72
mov esp, ebp
pop ebp
ret
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20a]
push edx
mov dword [ebp - 0x218], 1
mov dword [ebp - 0x214], 0x104
mov word [ebp - 0x20c], cx
call fcn.004316d0
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
mov eax, dword [ebp - 0x210]
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x218]
push edx
push 0
push str.LibraryPath
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4076d2
mov ecx, dword [ebp - 0x210]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call edi
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4077cc
lea eax, [ebp - 0x210]
push eax
push 0x20019
push 0
push str.SOFTWAREApple_Inc.Apple_Application_Support
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x4077cc
mov ecx, dword [ebp - 0x210]
push ecx
call edi
lea edx, [ebp - 0x210]
push edx
push 1
push 0
push str.SOFTWAREApple_Inc.Apple_Mobile_Device_Support
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x4077cc
mov eax, dword [ebp - 0x210]
push eax
call edi
lea ecx, [ebp - 0x210]
push ecx
push 0x20019
push 0
push str.SYSTEMCurrentControlSet_servicesBonjour_Service
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x4077de
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ca72
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x210]
push edx
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0042ca72
mov esp, ebp
pop ebp
ret
Function at 0x407800
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a5a3
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x496684]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x16c], esi
push esi
mov edi, 0xf
push 0x4886f6
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x170], ebx
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x120], esi
mov byte [ebp - 0x130], 0
call fcn.004054e0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push 0x1a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [ebp - 0x114]
mov dword [ebp - 0x138], edi
mov dword [ebp - 0x13c], esi
mov byte [ebp - 0x14c], 0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4078a0
sub eax, edx
push eax
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x14c]
call fcn.004054e0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x168]
push edx
lea ecx, [ebp - 0x14c]
call fcn.00403370
add esp, 4
mov byte [ebp - 4], 3
mov edi, eax
lea esi, [ebp - 0x130]
call fcn.004050d0
mov byte [ebp - 4], 2
mov esi, 0x10
cmp dword [ebp - 0x154], esi
jb 0x407906
mov eax, dword [ebp - 0x168]
push eax
call fcn.0042ca67
add esp, 4
mov eax, 0xf
xor edi, edi
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x158], edi
mov byte [ebp - 0x168], 0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x138], esi
jb 0x407940
mov ecx, dword [ebp - 0x14c]
push ecx
call fcn.0042ca67
add esp, 4
mov eax, 0xf
push 0xffffffffffffffff
push edi
lea edx, [ebp - 0x130]
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x10], edi
push edx
mov ecx, ebx
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x13c], edi
mov byte [ebp - 0x14c], 0
mov byte [ebx], 0
call fcn.00405160
push 0xb
mov eax, str.AppleDriver
mov ecx, ebx
mov dword [ebp - 0x16c], 1
call fcn.00402d60
cmp dword [ebx + 0x14], esi
jb 0x40798e
mov eax, dword [ebx]
jmp 0x407990
mov eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4079ae
cmp dword [ebx + 0x14], esi
jb 0x4079a4
mov eax, dword [ebx]
jmp 0x4079a6
mov eax, ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [ebp - 4], 0
cmp dword [ebp - 0x11c], esi
jb 0x4079c9
mov eax, dword [ebp - 0x130]
push eax
call fcn.0042ca67
add esp, 4
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], edi
mov byte [ebp - 0x130], 0
mov eax, ebx
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.0042ca72
mov esp, ebp
pop ebp
ret
Function at 0x409300
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b260
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x496684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x40]
xor ebx, ebx
mov dword [ecx + 0x64], eax
mov dword [ecx + 0x6c], 0x469
mov dword [ecx + 0x68], 0x46a
cmp dword [ecx + 8], ebx
jbe 0x40942c
mov eax, dword [ecx + 4]
mov esi, dword [eax]
cmp esi, eax
je 0x409400
cmp dword [esi + 0x1c], ebx
je 0x4093bd
cmp dword [esi + 0x38], ebx
je 0x4093bd
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0xffffffffffffffff
lea edi, [esi + 0xc]
push ebx
lea edx, [edi + 0x1c]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edx
mov byte [ecx], bl
call fcn.00405160
mov dword [ebp - 4], ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0xffffffffffffffff
push ebx
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edi
mov byte [ecx], bl
call fcn.00405160
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
add ecx, 0x44
mov dword [ebp - 4], 0xffffffff
call fcn.0040ce70
mov ecx, dword [ebp + 8]
cmp byte [esi + 0x45], bl
jne 0x4093f7
mov eax, dword [esi + 8]
cmp byte [eax + 0x45], bl
jne 0x4093de
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x45], bl
jne 0x4093f7
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x45], bl
je 0x4093d3
jmp 0x4093f7
mov eax, dword [esi + 4]
cmp byte [eax + 0x45], bl
jne 0x4093f5
cmp esi, dword [eax + 8]
jne 0x4093f5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x45], bl
je 0x4093e6
mov esi, eax
cmp esi, dword [ecx + 4]
jne 0x409357
lea esi, [ecx + 0x44]
lea eax, [esi + 4]
push eax
push ebx
push esi
push 0x40d2a0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
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
mov eax, ecx
call fcn.0040aab0
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 0x409450
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47a538
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x496684]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
mov eax, dword [0x496684]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
push 0x4886f6
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
call fcn.004054e0
mov dword [esp + 0x38], ebx
lea eax, [esp + 0xc]
push eax
mov ecx, str.http:__www.baidu.com
call fcn.00409560
mov esi, eax
cmp esi, ebx
jne 0x409510
lea ecx, [esp + 0xc]
push ecx
mov ecx, str.http:__www.sina.com
call fcn.00409560
mov esi, eax
cmp esi, ebx
jne 0x409510
lea edx, [esp + 0xc]
push edx
mov ecx, str.http:__www.qq.com
call fcn.00409560
mov esi, eax
cmp esi, ebx
jne 0x409510
lea eax, [esp + 0xc]
push eax
mov ecx, str.http:__www.taobo.com
call fcn.00409560
mov esi, eax
cmp esi, ebx
jne 0x409510
lea ecx, [esp + 0xc]
push ecx
mov ecx, str.http:__www.jd.com
call fcn.00409560
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x20], 0x10
jb 0x40952c
mov edx, dword [esp + 0xc]
push edx
call fcn.0042ca67
add esp, 4
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xc], bl
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0042ca72
mov esp, ebp
pop ebp
ret
Function at 0x409560
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2088
call fcn.00444f60
mov eax, dword [0x496684]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push bind
push 0
push 0
push 1
push str.GetUrlToBuff
mov esi, ecx
mov dword [ebp - 0x2058], eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
test edi, edi
je 0x4096d4
xor ecx, ecx
push 0x1046
push ecx
lea edx, [ebp - 0x2052]
push edx
mov word [ebp - 0x2054], cx
call fcn.004316d0
add esp, 0xc
push 0x2000000
lea eax, [ebp - 0x205c]
push eax
lea ecx, [ebp - 0x2054]
push ecx
push esi
mov dword [ebp - 0x205c], 0x824
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlW]
push 0
push 0x84000100
push 0
push 0
lea edx, [ebp - 0x2054]
push edx
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
xor eax, eax
test esi, esi
je 0x4096d6
mov ebx, dword [sym.imp.WININET.dll_InternetReadFileExA]
mov dword [ebp - 0x207c], eax
mov dword [ebp - 0x2080], eax
mov dword [ebp - 0x2078], eax
mov dword [ebp - 0x2074], eax
mov dword [ebp - 0x2070], eax
mov dword [ebp - 0x206c], eax
mov dword [ebp - 0x2068], eax
mov dword [ebp - 0x2064], eax
mov dword [ebp - 0x2060], eax
mov dword [ebp - 0x2084], 0x28
mov dword [ebp - 0x207c], eax
lea eax, [ebp - 0x100c]
push 0x1000
mov ecx, eax
push 0
push ecx
mov dword [ebp - 0x2070], eax
mov dword [ebp - 0x206c], 0x1000
call fcn.004316d0
add esp, 0xc
push 0
push 4
lea edx, [ebp - 0x2084]
push edx
push esi
call ebx
test eax, eax
je 0x409658
mov eax, dword [ebp - 0x206c]
test eax, eax
je 0x4096b0
mov ecx, dword [ebp - 0x2058]
push eax
mov eax, dword [ebp - 0x2070]
call fcn.00402d60
jmp 0x409658
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push esi
call edi
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042ca72
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ca72
mov esp, ebp
pop ebp
ret 4
Function at 0x409db0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a4d6
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x496684]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
push 0x4886f6
mov esi, ecx
call fcn.004054e0
lea eax, [ebp - 0x114]
push eax
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [ebp - 0x114]
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x409e20
sub eax, edx
push eax
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x130]
call fcn.004054e0
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x14c]
push edx
lea ecx, [ebp - 0x130]
call fcn.00403370
add esp, 4
mov byte [ebp - 4], 1
mov edi, eax
call fcn.004050d0
mov byte [ebp - 4], bl
mov esi, 0x10
cmp dword [ebp - 0x138], esi
jb 0x409e7e
mov eax, dword [ebp - 0x14c]
push eax
call fcn.0042ca67
add esp, 4
mov edi, 0xf
mov dword [ebp - 0x138], edi
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 0x14c], bl
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x11c], esi
jb 0x409eb3
mov ecx, dword [ebp - 0x130]
push ecx
call fcn.0042ca67
add esp, 4
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ca72
mov esp, ebp
pop ebp
ret

Function at 0x409ef0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x496684]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x210]
push eax
push 0x20019
push 0
push str.SOFTWAREApple_Inc.Apple_Application_Support
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x210], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x409f3f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ca72
mov esp, ebp
pop ebp
ret
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20a]
push edx
mov dword [ebp - 0x218], 1
mov dword [ebp - 0x214], 0x104
mov word [ebp - 0x20c], cx
call fcn.004316d0
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
mov eax, dword [ebp - 0x210]
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x218]
push edx
push 0
push str.InstallDir
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409f2f
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409f2f
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.0042ca72
mov esp, ebp
pop ebp
ret
Function at 0x40af30
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4793d8
mov eax, dword fs:[0]
push eax
sub esp, 0x558
mov eax, dword [0x496684]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x3ff
lea eax, [ebp - 0x40f]
push ebx
push eax
mov byte [ebp - 0x410], bl
call fcn.004316d0
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [ebp + 0x1c], 0x10
jae 0x40af88
lea eax, [ebp + 8]
push eax
push str._i___s___qn
lea ecx, [ebp - 0x410]
push 0x400
push ecx
call fcn.0042d812
push 0x3c
lea edx, [ebp - 0x564]
push ebx
push edx
call fcn.004316d0
push 0x114
lea eax, [ebp - 0x524]
push ebx
push eax
call fcn.004316d0
add esp, 0x28
lea ecx, [ebp - 0x524]
push ecx
mov dword [ebp - 0x524], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x520], 6
mov dword [ebp - 0x558], str.open
sbb edx, edx
neg edx
jne 0x40affb
mov dword [ebp - 0x558], 0x48bea4
lea ecx, [ebp - 0x564]
lea eax, [ebp - 0x410]
push ecx
mov dword [ebp - 0x554], str.msiexec.exe
mov dword [ebp - 0x550], eax
mov dword [ebp - 0x548], 1
mov dword [ebp - 0x564], 0x3c
mov dword [ebp - 0x560], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x52c]
cmp eax, ebx
je 0x40b055
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], 0x10
jb 0x40b06e
mov edx, dword [ebp + 8]
push edx
call fcn.0042ca67
add esp, 4
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ca72
mov esp, ebp
pop ebp
ret 0x1c