joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x415d10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe000]
push edi
or ebp, 0xffffffff
jmp 0x415d32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x415d39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x415d28
mov eax, 1
add ebx, ebx
jne 0x415d4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x415d40
jne 0x415d5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x415d40
xor ecx, ecx
sub eax, 3
jb 0x415d70
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x415de2
mov ebp, eax
add ebx, ebx
jne 0x415d7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x415d88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x415dac
inc ecx
add ebx, ebx
jne 0x415d98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x415d8d
jne 0x415da9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x415d8d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x415dcc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x415dbd
jmp 0x415d2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x415dcc
add edi, ecx
jmp 0x415d2e
pop esi
mov edi, esi
mov ecx, 0x197
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x415dea
cmp byte [edi], 9
jne 0x415dea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x415def
lea edi, [esi + 0x13000]
mov eax, dword [edi]
or eax, eax
je 0x415e5e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x197d8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19844]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x415e1c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1984c]
or eax, eax
je 0x415e58
mov dword [ebx], eax
add ebx, 4
jmp 0x415e39
call dword [esi + 0x19848]
mov ebp, dword [esi + 0x19850]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x415e92
sub esp, 0xffffff80
jmp 0x402540
Function at 0x100010f0
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 0x10001108
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000113a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x10001136
cmp esi, eax
jae 0x1000113a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10001128
cmp esi, eax
jb 0x10001140
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 0x10004d30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
push esi
add eax, eax
lea edx, [ebp + 0xc]
push edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10004d9e
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x10004d6d
cmp eax, 2
jne 0x10004d88
mov eax, dword [ebp - 4]
test esi, esi
je 0x10004d98
test eax, eax
je 0x10004d93
test al, 1
jne 0x10004d88
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x10004d98
mov eax, 0xd
mov esp, ebp
pop ebp
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x10004e40
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x10063068]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov eax, ecx
mov esi, dword [eax + 4]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x220]
push edx
xor edi, edi
or esi, 0x2001f
push esi
push edi
mov dword [ebp - 0x224], eax
mov eax, dword [eax]
push ecx
push eax
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x220], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x218]
mov ebx, eax
cmp ebx, edi
jne 0x10004ed4
xor eax, eax
cmp ecx, edi
je 0x10004eb6
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x220]
and esi, 0x300
mov ebx, eax
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], esi
cmp eax, edi
je 0x10004ef4
cmp ecx, edi
je 0x10004edf
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10045a28
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x230]
push eax
push edi
push edi
push edi
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x20c]
push eax
push edi
push ecx
mov dword [ebp - 0x21c], 0x100
call esi
test eax, eax
jne 0x10004f7c
jmp 0x10004f30
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x218]
call fcn.10004e40
mov ebx, eax
cmp ebx, edi
jne 0x10004fd2
lea edx, [ebp - 0x230]
push edx
mov edx, dword [ebp - 0x218]
push edi
push edi
push edi
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push edi
push edx
mov dword [ebp - 0x21c], 0x100
call esi
test eax, eax
je 0x10004f30
mov eax, dword [ebp - 0x218]
cmp eax, edi
je 0x10004f93
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x218], edi
mov ebx, dword [ebp - 0x228]
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x214], edi
call fcn.10004b60
mov esi, eax
mov eax, dword [ebp - 0x218]
cmp eax, edi
je 0x10004fbd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10045a28
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x218]
cmp eax, edi
je 0x10004fe3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.10045a28
mov esp, ebp
pop ebp
ret 4
Function at 0x100055c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004ce16
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x10063068]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x43c], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x434], edx
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x424], edi
push 2
push edi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x430], esi
cmp esi, edi
jne 0x10005640
call fcn.100048b0
mov edi, eax
jmp 0x10005765
mov eax, dword [ebp - 0x428]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, edi
jne 0x1000565f
call fcn.100048b0
jmp 0x1000575c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x42c], eax
cmp eax, edi
jne 0x1000567b
call fcn.100048b0
jmp 0x1000575c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + 1]
mov dword [ebp - 0x428], ebx
cmp eax, ebx
jae 0x1000569c
mov edi, 0x8007000e
jmp 0x1000575e
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, edi
ja 0x100056b1
cmp eax, 0xffffffff
jbe 0x100056bb
push 0x80070216
call fcn.10001000
cmp eax, 0x400
jbe 0x100056f9
lea ecx, [ebp - 0x424]
push ecx
call fcn.1000a4f0
jmp 0x10005705
lea edx, [ebp - 0x420]
mov dword [ebp - 0x424], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x424]
cmp eax, edi
jne 0x1000571d
mov edi, 0x8007000e
jmp 0x1000575e
push ebx
push eax
mov eax, dword [ebp - 0x42c]
push ebx
push eax
push edi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
jne 0x1000573b
call fcn.100048b0
jmp 0x1000575c
mov edx, dword [ebp - 0x424]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x424]
push eax
lea ecx, [ebp - 0x438]
call fcn.100063b0
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x420]
cmp dword [ebp - 0x424], ecx
je 0x10005780
lea eax, [ebp - 0x424]
call fcn.10009e20
mov edi, edi
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 - 0x18]
xor ecx, ebp
call fcn.10045a28
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000a2e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004a0e8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10063068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [edi + 0x44], 0
je 0x1000a451
cmp byte [edi + 0x49], 0
je 0x1000a451
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x1000a43e
lea esi, [ebp - 0x2c]
call fcn.10009e30
mov dword [ebp - 4], 0
mov ebx, 0x10
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
cmp eax, ebx
jae 0x1000a392
lea ecx, [ebp - 0x2c]
mov eax, ecx
add ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x30]
push edx
push ecx
mov ecx, dword [edi + 0x44]
push eax
lea eax, [edi + 0x4c]
push eax
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x1000a397
dec eax
je 0x1000a39b
sub eax, 2
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x2c]
je 0x1000a44c
call fcn.10009010
xor al, al
jmp 0x1000a453
mov eax, dword [ebp - 0x2c]
jmp 0x1000a355
mov byte [edi + 0x49], 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
mov eax, edx
cmp ecx, ebx
jae 0x1000a3aa
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, eax
je 0x1000a3cf
mov eax, edx
cmp ecx, ebx
jae 0x1000a3ba
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x1000a42f
cmp byte [edi + 0x49], 0
je 0x1000a442
test esi, esi
jne 0x1000a346
mov eax, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, eax
cmp edx, 8
jbe 0x1000a46e
lea esi, [eax + 8]
lea eax, [ebp - 0x2c]
call fcn.1000a5f0
test al, al
je 0x1000a346
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x1000a40c
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x18], ebx
jae 0x1000a426
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x1000a346
lea esi, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.10009010
xor al, al
jmp 0x1000a453
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x2c]
call fcn.10009010
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10045a28
mov esp, ebp
pop ebp
ret
push str.string_too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3
Function at 0x1000e640
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add esi, 0x24
push esi
call edi
mov eax, dword [esi + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
mov dword [ebp - 4], eax
call ebx
cmp dword [ebp - 4], 0
jne 0x1000e6d5
mov edx, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
push 0
push edx
push 0x1000ea10
push 0x4000
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push esi
mov dword [ebp - 8], eax
call edi
mov eax, dword [ebp - 8]
push esi
mov dword [esi + 0x18], eax
call ebx
push esi
call edi
mov ecx, dword [esi + 0x18]
push esi
mov dword [ebp - 8], ecx
call ebx
mov edx, dword [ebp - 8]
push 2
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
add eax, 0x40
push eax
mov dword [ebp + 8], eax
call edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
push eax
mov dword [eax + 0x18], ecx
call ebx
push esi
call edi
mov edi, dword [esi + 0x18]
push esi
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1000f8d0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
push esi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], 0
call fcn.1000fca0
test al, al
jne 0x1000f900
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push 0
push esi
mov esi, dword [ebp - 4]
push esi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x1000f929
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000fb90
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [esi + 8]
push ebx
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x1d
push ecx
mov dword [ebp - 4], edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1000fbe0
mov edx, dword [ebp - 4]
shr edx, 1
push edx
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], edi
call fcn.10004550
test al, al
jne 0x1000fbe8
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 8]
push edi
mov edi, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
push edi
push 0
push 0x1d
push eax
call ebx
test eax, eax
jne 0x1000fc11
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push str.gzip
push edi
call dword [sym.imp.MSVCR100.dll_wcsstr]
add esp, 8
test eax, eax
je 0x1000fc28
mov byte [esi + 0x24], 1
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10010090
Capabilities:
Initialize winhttp library
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004c3c9
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10063068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x24], 0
jne 0x10010117
mov eax, dword [edi + 0x2498]
push 0x10000000
push 0
push 0
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [edi + 0x24], eax
test eax, eax
je 0x100101ad
push 0xea60
push 0xea60
push 0xea60
push 0xea60
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
je 0x100101ad
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
mov ecx, edi
call edx
test eax, eax
je 0x100101ad
mov ebx, dword [ebp + 8]
lea esi, [edi + 0x28]
call fcn.10024170
test al, al
je 0x100101ad
movzx eax, word [edi + 0x2478]
xor ebx, ebx
xor ecx, ecx
cmp eax, 0x50
je 0x10010143
cmp eax, 0x1bb
je 0x10010143
mov ecx, eax
push ebx
push ecx
lea eax, [edi + 0x6e]
push eax
mov eax, dword [edi + 0x24]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov esi, dword [ebp + 0xc]
mov dword [esi + 4], eax
cmp eax, ebx
je 0x100101ad
lea ecx, [edi + 0x474]
push ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
add edi, 0x1476
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::Append_1]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
push edx
push ebx
push ebx
push ebx
push eax
push 0x1005526c
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 8], eax
lea ecx, [ebp - 0x10]
cmp eax, ebx
jne 0x100101c3
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
xor eax, 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 8
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1001e110
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004a755
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10063068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [ebp - 4], ebx
lea eax, [esi + 0x30]
push eax
mov dword [esi], vtable.CTrustedAdsProtocolSink.1.0
mov dword [esi + 4], vtable.CTrustedAdsProtocolSink.2.0
mov dword [esi + 8], vtable.CTrustedAdsProtocolSink.3.0
mov dword [esi + 0xc], vtable.CTrustedAdsProtocolSink.4.0
mov dword [esi + 0x2c], vtable.CTrustedAdsProtocolSink.0
call fcn.100106b0
mov dword [esi + 0x100], ebx
mov dword [esi + 0x108], ebx
mov dword [esi + 0x10c], ebx
mov dword [esi + 0x110], ebx
mov dword [esi + 0x114], ebx
mov dword [esi + 0x118], ebx
mov dword [esi + 0x11c], ebx
mov eax, 7
xor ecx, ecx
mov dword [esi + 0x13c], eax
mov dword [esi + 0x138], ebx
mov word [esi + 0x128], cx
mov dword [esi + 0x144], ebx
mov dword [esi + 0x148], ebx
mov dword [esi + 0x14c], ebx
push 4
mov byte [ebp - 4], al
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, ebx
je 0x1001e1f3
mov dword [eax], vtable.CSinkDefault.0
mov dword [ebp - 0x10], eax
jmp 0x1001e1f6
mov dword [ebp - 0x10], ebx
mov ecx, dword [esi + 0x148]
lea edx, [ebp - 0x10]
cmp edx, ecx
jae 0x1001e245
mov edx, dword [esi + 0x144]
lea eax, [ebp - 0x10]
cmp edx, eax
ja 0x1001e245
sub eax, edx
sar eax, 2
mov dword [ebp - 0x14], eax
cmp ecx, dword [esi + 0x14c]
jne 0x1001e22e
lea eax, [esi + 0x144]
call fcn.1001d3e0
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 0x148]
cmp ecx, ebx
je 0x1001e267
mov edx, dword [esi + 0x144]
mov eax, dword [edx + eax*4]
mov dword [ecx], eax
jmp 0x1001e267
cmp ecx, dword [esi + 0x14c]
jne 0x1001e258
lea eax, [esi + 0x144]
call fcn.1001d3e0
mov eax, dword [esi + 0x148]
cmp eax, ebx
je 0x1001e267
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, esi
add dword [esi + 0x148], 4
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 0x10021050
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004b4f1
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x10063068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [ebp - 4], eax
mov dword [esi + 0x48], vtable.CPreloadHandler.0
mov dword [esi + 0x64], 0xf
mov dword [esi + 0x60], eax
mov byte [esi + 0x50], al
mov eax, 1
mov byte [ebp - 4], al
mov dword [esi], vtable.CTrustedAdsProtocolAPP.0
mov dword [esi + 4], vtable.CTrustedAdsProtocolAPP.1.0
mov dword [esi + 8], vtable.CTrustedAdsProtocolAPP.2.0
mov dword [esi + 0xc], vtable.CTrustedAdsProtocolAPP.3.0
mov dword [esi + 0x10], vtable.CTrustedAdsProtocolAPP.4.0
mov dword [esi + 0x14], vtable.CTrustedAdsProtocolAPP.5.0
mov dword [esi + 0x18], vtable.CTrustedAdsProtocolAPP.6.0
mov dword [esi + 0x48], vtable.CTrustedAdsProtocolAPP.7.0
test byte [0x100663d4], al
jne 0x10021113
or dword [0x100663d4], eax
mov byte [ebp - 4], 2
call fcn.1000bef0
push 0x1004e380
call fcn.10045bf9
add esp, 4
mov eax, esi
mov dword [esi + 0x6c], 0x10066378
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10023050
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004d3bb
mov eax, dword fs:[0]
push eax
sub esp, 0x818
mov eax, dword [0x10063068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x81c]
push eax
push SysReAllocStringLen
push 0
push str.SOFTWAREAdTrustMediaPrivDogMimeFilter
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10023105
lea ecx, [ebp - 0x820]
push ecx
mov ecx, dword [ebp - 0x81c]
lea edx, [ebp - 0x810]
push edx
lea eax, [ebp - 0x824]
push eax
push 0
push str.preloadJS
push ecx
mov dword [ebp - 0x820], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100230ef
cmp dword [ebp - 0x824], 1
jne 0x100230ef
mov edx, dword [ebp - 0x820]
shr edx, 1
mov word [ebp + edx*2 - 0x810], ax
jmp 0x100230f8
xor ecx, ecx
mov word [ebp - 0x810], cx
mov edx, dword [ebp - 0x81c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x818]
call dword [0x1004f704]
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x818]
mov dword [ebp - 4], 0
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea ecx, [ebp - 0x818]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Trim]
mov ecx, dword [ebp - 0x818]
cmp dword [ecx - 0xc], 0
je 0x10023195
lea ecx, [ebp - 0x818]
call fcn.10004290
lea ecx, [ebp - 0x818]
test al, al
jne 0x10023160
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
jmp 0x10023195
push 0x10054568
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::FindOneOf]
test eax, eax
setg dl
mov byte [ebp - 0x814], dl
test esi, esi
je 0x10023195
lea eax, [esi + 0x24]
test eax, eax
je 0x10023195
mov ecx, dword [ebp - 0x818]
test ecx, ecx
je 0x10023195
push eax
push ecx
lea ecx, [esi + 0x28]
call fcn.1000f6f0
lea ecx, [ebp - 0x818]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10045a28
mov esp, ebp
pop ebp
ret