joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41473e
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x43fce8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push 0x1f8
xor ebx, ebx
lea eax, [esi + 8]
push ebx
push eax
mov dword [0x441a3c], esi
call fcn.004175d0
push 0x90
xor edi, edi
inc edi
lea eax, [ebp - 0x94]
push ebx
push eax
mov dword [esi + 0x20c], ebx
mov dword [esi + 0x210], edi
mov dword [esi + 0x214], edi
mov dword [esi + 0x248], ebx
mov dword [esi + 0x24c], edi
mov dword [esi + 0x218], ebx
mov dword [esi + 0x230], ebx
mov dword [esi + 0x244], ebx
mov dword [esi + 0x208], ebx
mov dword [esi + 0x250], ebx
mov dword [ebp - 0x98], 0x94
call fcn.004175d0
add esp, 0x18
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x4147ea
cmp dword [ebp - 0x94], 5
jae 0x4147ec
xor edi, edi
mov ecx, dword [ebp - 4]
mov dword [esi + 0x21c], edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416025
leave
ret

Function at 0x416025
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43fce8]
jne 0x41602f
repz ret
jmp fcn.0041cd1c
Function at 0x4257df
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43fce8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0041c71a
and dword [ebp - 0x14], 0
cmp dword [0x4426fc], 0
mov dword [ebp - 0x18], eax
jne 0x425892
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x42593a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x42593a
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4426fc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x442700], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x442704], eax
call edi
push eax
call esi
mov dword [0x44270c], eax
test eax, eax
je 0x425892
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x442708], eax
mov eax, dword [0x442708]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4258eb
cmp dword [0x44270c], ecx
je 0x4258eb
push eax
call esi
push dword [0x44270c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4258eb
test ebx, ebx
je 0x4258eb
call edi
test eax, eax
je 0x4258e2
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4258e2
test byte [ebp - 8], 1
jne 0x4258eb
or dword [ebp + 0x10], 0x200000
jmp 0x42591e
mov eax, dword [0x442700]
cmp eax, dword [ebp - 0x18]
je 0x42591e
push eax
call esi
test eax, eax
je 0x42591e
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42591e
mov eax, dword [0x442704]
cmp eax, dword [ebp - 0x18]
je 0x42591e
push eax
call esi
test eax, eax
je 0x42591e
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4426fc]
call esi
test eax, eax
je 0x42593a
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x42593c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416025
leave
ret
Function at 0x1005960
Capabilities:
Initialize winsock library

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x198
cmp dword [0x1009f00], 0
mov eax, dword [0x100913c]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x198], 0x64
jne 0x10059a7
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [0x1009f00], 1
lea eax, [ebp - 0x198]
push eax
push esi
push 0
push 0x1c
push edi
call dword [sym.imp.WS2_32.dll_WSAAddressToStringW]
test eax, eax
je 0x10059d2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x10015c0
push esi
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
call fcn.0100646d
leave
ret 8

Function at 0x1006c7d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
cmp dword [ebp + 0x18], 0
jne 0x1006c93
or dword [ebp + 0x18], 0xffffffff
push ebx
mov ebx, dword [sym.imp.ntdll.dll_sprintf]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
lea eax, [edi + 0x13e]
cmp edi, eax
mov dword [ebp - 0x10], eax
jae 0x1006d57
mov cl, byte [esi]
mov al, cl
inc esi
and al, 0xc0
mov byte [ebp + 0xb], cl
jne 0x1006d03
movzx eax, cl
push eax
push 0x1001f10
push edi
mov dword [ebp - 0xc], eax
call ebx
add edi, eax
add esp, 0xc
cmp byte [ebp + 0xb], 0
mov dword [ebp - 8], edi
je 0x1006daa
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + esi]
cmp eax, dword [ebp + 0x18]
jae 0x1006d63
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
add dword [ebp - 8], ecx
mov edi, dword [ebp - 8]
jmp 0x1006d4c
cmp al, 0xc0
jne 0x1006d96
cmp esi, dword [ebp + 0x18]
jae 0x1006d76
xor eax, eax
mov ah, cl
mov al, byte [esi]
inc esi
movzx eax, ax
push eax
push 0x1001f08
push edi
mov dword [ebp + 8], eax
call ebx
add esp, 0xc
add edi, eax
cmp dword [ebp + 0x14], 0
je 0x1006d90
cmp dword [ebp - 4], 0
jne 0x1006d3a
mov dword [ebp - 4], esi
mov eax, dword [ebp + 8]
xor eax, 0xc000
add eax, dword [ebp + 0x14]
lea ecx, [esi - 2]
cmp eax, ecx
jae 0x1006d7e
cmp edi, dword [ebp - 0x10]
mov esi, eax
jb 0x1006cb3
push 0x1001ed8
push edi
call ebx
pop ecx
pop ecx
jmp 0x1006da5
movzx eax, byte [ebp + 0xb]
push esi
push eax
push 0x1001e9c
push edi
call ebx
add esp, 0x10
jmp 0x1006da5
push esi
push 0x1001e68
jmp 0x1006d9f
push eax
lea eax, [esi - 2]
push eax
push 0x1001e34
push edi
call ebx
add esp, 0x10
jmp 0x1006da8
mov byte [edi], 0
inc edi
jmp 0x1006daa
movzx eax, cl
push eax
push 0x1001e18
push edi
call ebx
add esp, 0xc
mov esi, dword [ebp + 0x10]
add edi, eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1006db3
mov dword [eax], edi
cmp dword [ebp - 4], 0
je 0x1006dbc
mov esi, dword [ebp - 4]
pop edi
mov eax, esi
sub eax, dword [ebp + 0x10]
pop esi
pop ebx
leave
ret 0x14
Function at 0x401dc0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4a5838
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push esi
mov esi, ecx
mov dword [esp + 0x14], esi
call fcn.00402800
test eax, eax
jne 0x401fe4
mov ecx, dword [esi + 0x14]
call fcn.00432f20
test eax, eax
jne 0x401fe4
push ebx
lea eax, [esp + 0xc]
push ebp
push eax
push 4
xor ebx, ebx
push esi
push 0x401da0
push ebx
push ebx
mov dword [esp + 0x28], ebx
call dword [0x4ab4c0]
mov ebp, eax
add esp, 0x18
cmp ebp, ebx
mov dword [esp + 0x18], ebp
je 0x401fcf
push edi
push ebp
call dword [0x4ab078]
mov esi, dword [0x4ab1f4]
mov edi, dword [0x4ab074]
mov dword [esp + 0x10], ebx
push 0x14
call esi
lea ecx, [esp + 0x10]
push ecx
push ebp
call edi
cmp dword [esp + 0x10], 0x103
jne 0x401fc3
inc ebx
cmp ebx, 0x32
jl 0x401e42
push ebp
lea ecx, [esp + 0x28]
call fcn.0041dfe0
mov ecx, 0x4cb540
mov dword [esp + 0x68], 0
call fcn.004012f0
mov ecx, eax
call fcn.00432140
mov edi, eax
lea ecx, [esp + 0x24]
add edi, 4
call fcn.0041e550
mov ebx, dword [edi]
mov esi, eax
mov eax, dword [esi]
cmp eax, ebx
je 0x401f48
mov ecx, dword [eax - 0xc]
lea edx, [eax - 0xc]
test ecx, ecx
mov dword [esp + 0x18], edx
jge 0x401ebe
lea edx, [eax - 0xc]
cmp edx, dword [0x4bc084]
jne 0x401ec4
mov edx, dword [esp + 0x18]
cmp dword [ebx - 0xc], 0
jge 0x401f0c
mov edi, dword [ebx - 8]
cmp ecx, 1
jg 0x401ed1
cmp edi, dword [eax - 4]
jle 0x401ee4
mov ecx, esi
call fcn.00403ec0
push edi
mov ecx, esi
call fcn.00403bd0
test eax, eax
je 0x401f48
mov ecx, dword [esi]
lea ebp, [edi + edi]
push ebp
lea eax, [edi + edi + 2]
push ebx
push eax
push ecx
call fcn.00403330
mov edx, dword [esi]
add esp, 0x10
mov dword [edx - 8], edi
mov eax, dword [esi]
mov word [eax + ebp], 0
mov ebp, dword [esp + 0x1c]
jmp 0x401f48
mov ecx, dword [0x4bc084]
add eax, 0xfffffff4
cmp eax, ecx
je 0x401f3a
push edx
call dword [0x4ab208]
test eax, eax
jg 0x401f32
mov eax, dword [esi]
sub eax, 0xc
push eax
call fcn.004985d0
add esp, 4
mov ecx, dword [0x4bc080]
mov dword [esi], ecx
mov edi, dword [edi]
mov dword [esi], edi
add edi, 0xfffffff4
push edi
call dword [0x4ab200]
push 0xec54
lea ecx, [esp + 0x28]
call fcn.0041e570
call dword [0x4ab5d4]
lea edx, [esp + 0x24]
mov esi, eax
mov dword [esp + 0x2c], edx
call dword [0x4ab070]
push 0x4cb5e4
mov dword [esp + 0x34], eax
call dword [0x4ab06c]
mov eax, dword [0x4cb618]
lea ecx, [esp + 0x2c]
push 0x4cb5e4
mov dword [esp + 0x38], eax
mov dword [0x4cb618], ecx
call dword [0x4ab068]
mov eax, dword [0x4cb5b8]
push 0
push 0x404150
push esi
push 0xcd
push eax
call dword [0x4ab5d8]
lea ecx, [esp + 0x24]
mov dword [esp + 0x68], 0xffffffff
call fcn.0041e0a0
push ebp
call dword [0x4ab11c]
mov esi, dword [esp + 0x20]
pop edi
mov eax, dword [esi + 0x20]
pop ebp
pop ebx
pop esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
add esp, 0x5c
ret
mov ecx, esi
call fcn.00401950
mov ecx, dword [esp + 0x54]
pop esi
mov dword fs:[0], ecx
add esp, 0x5c
ret
Function at 0x4022c0
Capabilities:
Initialize iwebbrowser2

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a5888
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x828
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [ebp + 8]
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x832]
mov word [ebp - 0x834], bx
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
push 0x4bc130
lea eax, [ebp - 0x834]
push 0x800
push eax
call dword [0x4ab4b8]
push 5
push ebx
push 0x4cb5ac
push esi
push str.open
push ebx
call fcn.004361d0
add esp, 0x28
cmp eax, 0x20
jle 0x40234d
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
mov word [ebp - 0x34], bx
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
push ecx
push 0x4ac048
push 0x15
push ebx
push 0x4ac008
call dword [0x4ab7dc]
test eax, eax
jge 0x4023a5
lea edx, [ebp - 0x34]
push edx
call dword [0x4ab4f0]
mov eax, dword [ebp + 8]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x402390
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x94]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x4023d2
push eax
call dword [0x4ab5cc]
mov edx, dword [ebp - 0x14]
push 3
push edx
call dword [0x4ab5d0]
push esi
call dword [0x4ab4bc]
add esp, 4
test eax, eax
jbe 0x402448
mov edi, dword [0x4ab4f0]
lea eax, [ebp - 0x24]
push eax
mov word [ebp - 0x24], bx
call edi
cmp eax, ebx
jge 0x4023f7
mov dword [ebp - 0x1c], eax
push esi
mov word [ebp - 0x24], 8
call dword [0x4ab50c]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
jne 0x40241c
cmp esi, ebx
je 0x40241c
mov word [ebp - 0x24], 0xa
mov dword [ebp - 0x1c], 0x8007000e
lea edx, [ebp - 0x34]
mov eax, dword [ebp + 8]
push edx
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [eax]
lea edx, [ebp - 0x34]
mov byte [ebp - 4], 3
push edx
lea edx, [ebp - 0x34]
push edx
lea edx, [ebp - 0x24]
push edx
push eax
call dword [ecx + 0xd0]
lea eax, [ebp - 0x24]
push eax
call edi
jmp 0x40244e
mov edi, dword [0x4ab4f0]
lea ecx, [ebp - 0x34]
push ecx
call edi
mov eax, dword [ebp + 8]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x402464
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406220
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a5b87
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov ecx, dword [esp + 0x34]
lea eax, [esp + 8]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x2c], 1
call fcn.004065b0
mov edi, dword [esp + 0x30]
mov ecx, esi
push edi
call fcn.00406150
cmp eax, dword [esi + 0xc]
jne 0x4062c1
mov eax, dword [esp + 8]
mov dword [esp + 0x10], edi
test eax, eax
mov dword [esp + 0x14], eax
je 0x40628c
mov edx, dword [eax]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xc]
lea ecx, [esi + 4]
lea edx, [esp + 0x10]
mov byte [esp + 0x24], 2
push edx
push 1
push eax
call fcn.004066d0
mov eax, dword [esp + 0x14]
mov byte [esp + 0x24], 1
test eax, eax
je 0x4062eb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4062eb
mov esi, dword [eax + 4]
mov ecx, dword [esp + 8]
cmp esi, ecx
je 0x4062ef
mov dword [eax + 4], ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x4062e1
mov edx, dword [ecx]
push ecx
call dword [edx + 4]
mov ecx, dword [esp + 8]
test esi, esi
je 0x4062ef
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0x2c]
test ecx, ecx
mov dword [esi], ecx
je 0x406303
mov edx, dword [ecx]
push ecx
call dword [edx + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0xc], 1
test ecx, ecx
mov byte [esp + 0x24], 0
je 0x40631a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10

Function at 0x408580
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x408592
pop esi
ret
mov ecx, esi
call fcn.00407d60
call fcn.00405c50
test eax, eax
je 0x4085a9
push str.Product64
jmp 0x4085ae
push str.Product32
mov ecx, esi
call fcn.0040ac50
mov ecx, dword [esi + 0x1c]
call fcn.00432d70
test eax, eax
jg 0x4085cd
push 0x4bce50
mov ecx, esi
call fcn.0040ac50
mov ecx, esi
call fcn.0040add0
mov eax, dword [esi + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4085e6
push eax
mov ecx, esi
call fcn.004088b0
mov eax, dword [esi + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4085f8
push eax
mov ecx, esi
call fcn.00408bd0
mov eax, dword [esi + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40860a
push eax
mov ecx, esi
call fcn.00408cd0
mov eax, dword [esi + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40861c
push eax
mov ecx, esi
call fcn.00408dd0
mov eax, dword [esi + 0x18]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40862e
push eax
mov ecx, esi
call fcn.00408ef0
mov eax, 1
pop esi
ret
Function at 0x40a2a0
Capabilities:
Get file version info

Disassembly:
mov eax, 0x200c
call fcn.0049d320
push ebx
push ebp
push esi
mov esi, dword [esp + 0x201c]
test esi, esi
push edi
je 0x40a394
mov ebx, dword [esp + 0x2024]
test ebx, ebx
je 0x40a394
mov ebp, dword [esp + 0x2028]
cmp ebp, 0x80
jl 0x40a394
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x14], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x40a394
cmp eax, 0x1fff
ja 0x40a394
lea ecx, [esp + 0x1c]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40a394
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x24]
push 0x4bc6f8
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40a394
mov ecx, ebp
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov edx, dword [eax + 0xc]
mov cx, word [eax + 0xc]
shr edx, 0x10
push ecx
push edx
mov edx, dword [eax + 8]
xor ecx, ecx
mov cx, word [eax + 8]
shr edx, 0x10
push ecx
push edx
push str._d._d._d._d
push ebx
call dword [0x4ab4ac]
add esp, 0x18
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x200c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x200c
ret
Function at 0x40cb20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4a6108
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x4bc080]
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], eax
xor edi, edi
lea ecx, [esi + 4]
mov dword [esp + 0x18], edi
call fcn.00430cc0
mov ecx, dword [0x4bc080]
mov dword [esi + 0x14], ecx
mov edx, dword [0x4bc080]
mov dword [esi + 0x18], edx
mov eax, dword [0x4bc080]
mov dword [esi + 0x1c], eax
mov ecx, dword [0x4bc080]
mov dword [esi + 0x20], ecx
mov edx, dword [0x4bc080]
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], 0x80000002
mov eax, dword [0x4bc080]
mov dword [esi + 0x2c], eax
mov ecx, dword [0x4bc080]
mov dword [esi + 0x30], ecx
mov edx, dword [0x4bc080]
mov dword [esi + 0x34], edx
mov eax, dword [0x4bc080]
mov dword [esi + 0x38], eax
mov ecx, dword [0x4bc080]
mov dword [esi + 0x3c], ecx
mov edx, dword [0x4bc080]
mov dword [esi + 0x40], edx
mov eax, dword [0x4bc080]
mov dword [esi + 0x44], eax
mov ecx, dword [0x4bc080]
mov dword [esi + 0x48], ecx
mov edx, dword [0x4bc080]
mov dword [esi + 0x4c], edx
mov eax, dword [0x4bc080]
mov dword [esi + 0x50], eax
mov ecx, dword [0x4bc080]
mov al, byte [esp + 0xb]
mov dword [esi + 0x54], ecx
mov edx, dword [0x4bc080]
mov dword [esi + 0x58], edx
mov byte [esi + 0x5c], al
mov eax, 0x14
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], 0x3e8
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], 1
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
mov ecx, dword [0x4bc080]
or eax, 0xffffffff
mov dword [esi + 0x9c], ecx
mov ecx, dword [esp + 0x10]
mov dword [esi + 0xa0], eax
mov dword [esi + 0xa4], eax
mov dword [esi + 0xa8], 0xb4
mov edx, dword [0x4bc080]
mov dword [esi + 0xac], edx
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x40d510
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4a61ad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov ebx, ecx
xor esi, esi
or eax, 0xffffffff
mov dword [ebx + 4], esi
mov dword [ebx + 8], eax
mov ecx, dword [0x4bc080]
mov dword [esp + 0xc], ebx
mov dword [ebx + 0xc], ecx
mov edx, dword [0x4bc080]
mov dword [esp + 0x18], esi
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x20], esi
mov dword [ebx + 0x24], esi
mov dword [ebx + 0x28], esi
mov dword [ebx + 0x2c], esi
mov dword [ebx + 0x30], 0xb4
mov ecx, dword [0x4bc080]
mov dword [ebx + 0x34], ecx
mov dword [ebx + 0x38], esi
mov edx, dword [0x4bc080]
mov dword [ebx + 0x4c], edx
mov eax, dword [0x4bc080]
mov dword [ebx + 0x50], eax
mov cl, byte [esp + 0x20]
mov dword [ebx + 0x6c], esi
mov byte [ebx + 0x68], cl
mov dword [ebx + 0x70], esi
mov dword [ebx + 0x74], esi
mov edx, 0x4cb5ac
mov byte [esp + 0x18], 6
test edx, edx
mov dword [ebx], vtable.CDownloadTask.0
jne 0x40d5b5
xor ebp, ebp
jmp 0x40d5c2
push 0x4cb5ac
call dword [0x4ab204]
mov ebp, eax
mov eax, dword [ebx + 0x34]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, 1
jg 0x40d5d5
cmp ebp, dword [eax - 4]
jle 0x40d63c
mov edx, dword [0x4bc084]
add eax, 0xfffffff4
cmp eax, edx
je 0x40d605
push ecx
call dword [0x4ab208]
test eax, eax
jg 0x40d5fc
mov eax, dword [ebx + 0x34]
sub eax, 0xc
push eax
call fcn.004985d0
add esp, 4
mov ecx, dword [0x4bc080]
mov dword [ebx + 0x34], ecx
cmp ebp, esi
jne 0x40d614
mov edx, dword [0x4bc080]
mov dword [ebx + 0x34], edx
jmp 0x40d63c
lea eax, [ebp + ebp + 0xe]
push eax
call fcn.0049d300
add esp, 4
cmp eax, esi
je 0x40d671
mov dword [eax], 1
mov word [eax + ebp*2 + 0xc], si
mov dword [eax + 4], ebp
mov dword [eax + 8], ebp
add eax, 0xc
mov dword [ebx + 0x34], eax
lea eax, [ebp + ebp]
lea ecx, [ebp + ebp + 2]
cmp ecx, eax
jb 0x40d664
mov ecx, eax
push edi
mov edi, dword [ebx + 0x34]
mov edx, ecx
mov esi, 0x4cb5ac
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
pop edi
mov ecx, dword [ebx + 0x34]
mov dword [ecx - 8], ebp
mov edx, dword [ebx + 0x34]
mov word [edx + eax], si
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0x64], esi
mov dword [ebx + 0x58], esi
mov dword [ebx + 0x5c], esi
mov dword [ebx + 0x60], esi
pop esi
mov dword [ebx + 0x54], 1
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x40e540
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x3c
push ebx
push esi
mov ebx, ecx
push edi
mov esi, dword [esp + 0x4c]
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov ecx, 0xf
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x50]
push esi
mov dword [esp + 0x10], 0x3c
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x1c], str.open
mov dword [esp + 0x20], esi
mov dword [esp + 0x2c], 5
mov dword [esp + 0x24], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e611
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004360d0
add esp, 4
test eax, eax
je 0x40e611
mov edx, dword [esp + 0x1c]
push edx
call fcn.00436210
add esp, 4
test eax, eax
jne 0x40e611
mov ecx, ebx
call fcn.0040dd20
push 0x3e8
call dword [0x4ab1f4]
push esi
call dword [0x4ab1f8]
mov ecx, 0x4cb540
call fcn.00403060
mov esi, dword [esp + 0x1c]
call fcn.00435f70
push eax
push esi
call fcn.00435ff0
add esp, 8
push 0xffffffffffffffff
call dword [0x4ab0a8]
push eax
call dword [0x4ab120]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x3c
ret 8
lea eax, [esp + 0xc]
push eax
call fcn.00410140
mov ecx, dword [esp + 0x48]
add esp, 4
neg eax
sbb eax, eax
pop edi
pop esi
and eax, ecx
pop ebx
add esp, 0x3c
ret 8
Function at 0x40e730
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x2670
call fcn.0049d320
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x18], ecx
call fcn.0040e6f0
mov esi, eax
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x680]
rep stosd dword es:[edi], eax
mov ebx, 1
lea eax, [esp + 0x14]
lea ecx, [esp + 0x680]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 0x1000
push eax
mov eax, dword [esi + 0x30]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x2c]
push edx
mov edx, dword [esi + 0x28]
push eax
push ecx
push edx
mov dword [esp + 0x34], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [esp + 0x10], ebx
jne 0x40e82b
cmp word [esp + 0x680], 0
je 0x40e82b
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x40e82b
lea eax, [esp + 0x680]
lea ebx, [esi + 0x24]
test eax, eax
jne 0x40e7c5
xor ebp, ebp
jmp 0x40e7d5
lea ecx, [esp + 0x680]
push ecx
call dword [0x4ab204]
mov ebp, eax
mov eax, dword [ebx]
cmp dword [eax - 0xc], 1
jg 0x40e7e2
cmp ebp, dword [eax - 4]
jle 0x40e7f5
mov ecx, ebx
call fcn.00403ec0
push ebp
mov ecx, ebx
call fcn.00403bd0
test eax, eax
je 0x40e82b
lea eax, [ebp + ebp]
lea edx, [ebp + ebp + 2]
cmp edx, eax
jb 0x40e81e
mov edi, dword [ebx]
mov ecx, eax
mov edx, ecx
lea esi, [esp + 0x680]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov ecx, dword [ebx]
mov dword [ecx - 8], ebp
mov edx, dword [ebx]
mov word [edx + eax], 0
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x24]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x430]
lea ecx, [esp + 0x20]
push eax
push ecx
call dword [0x4ab088]
cmp eax, 0xffffffff
je 0x40e86f
push eax
call dword [0x4ab08c]
mov edx, dword [esi + 0x54]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push edx
push eax
call fcn.0040e540
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2670
ret