joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a54e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x43a56a
xor eax, eax
jmp 0x43a62f
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x43a593
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x43a593
dec dword [edx]
mov eax, ebx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x43a62f
cmp dword [esi + 0x4c], 0
je 0x43a62d
mov ecx, esi
call fcn.0043a733
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x43a5c0
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.00566bc1
cmp eax, edi
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x43a62d
lea eax, [ebp + 8]
mov byte [ebp - 1], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 1]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x43a62d
cmp eax, 1
jle 0x43a5fc
cmp eax, 3
jne 0x43a62d
push dword [esi + 0x4c]
movsx ecx, byte [ebp - 1]
push ecx
jmp 0x43a5b2
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
sub eax, ecx
mov dword [ebp - 8], eax
je 0x43a61f
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call fcn.00567889
add esp, 0x10
cmp dword [ebp - 8], eax
jne 0x43a62d
lea eax, [ebp - 1]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0xc], eax
mov eax, ebx
jne 0x43a62f
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x43a7bb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x43a833
cmp byte [esi + 0x3d], 0
je 0x43a833
push 0xffffffffffffffff
call fcn.0043a54e
cmp eax, 0xffffffff
je 0x43a805
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x43a809
sub eax, 1
je 0x43a80d
dec eax
sub eax, 1
je 0x43a833
xor al, al
jmp 0x43a835
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x43a82a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00567889
add esp, 0x10
cmp edi, eax
jne 0x43a805
cmp byte [esi + 0x3d], 0
sete al
jmp 0x43a835
mov al, 1
pop edi
pop esi
leave
ret
Function at 0x43b836
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x6bc36f
call fcn.006b6d3c
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], edi
push 8
lea esi, [edi + 0x1c]
mov dword [edi], vtable.Blizzard::Util::ThreadSafeQueue_class_bnet::log::Entry__.0
mov dword [ebp - 0x14], esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
call fcn.00406460
mov dword [esi], eax
pop ecx
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov eax, dword [esi]
mov dword [eax], esi
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], ebx
lea ecx, [edi + 0x30]
mov dword [edi], vtable.Blizzard::Util::BlockingQueue_class_bnet::log::Entry__.0
call fcn.00467945
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x43d717
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x6bc4eb
call fcn.006b6d3c
sub esp, 0x38
push ebx
push esi
mov esi, edx
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0x14], ebx
push edi
lea eax, [esi + 4]
mov edx, str.bounds
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x24]
lea eax, [esi + 8]
mov dword [ebp - 0x20], eax
lea eax, [esi + 0xc]
mov dword [ebp - 0x1c], eax
lea eax, [esi + 0x10]
mov dword [ebp - 0x18], eax
call fcn.0043d591
pop ecx
push 2
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x28], bl
pop ebx
push ebx
push 0x786bb8
mov dword [ebp - 0x14], 0xf
call fcn.00406551
and dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.0043f89e
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x28]
call fcn.004063c5
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
push 6
push str.action
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00406551
lea eax, [esi + 0x30]
mov dword [ebp - 4], 1
push eax
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.0043f89e
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x28]
call fcn.004063c5
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
push 7
push str.visible
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00406551
lea eax, [esi + 0x14]
mov dword [ebp - 4], ebx
push eax
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.0043fbdd
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x28]
call fcn.004063c5
and dword [ebp - 0x18], 0
push 0xf
pop ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x28], 0
push 9
push str.tab_order
lea ecx, [ebp - 0x28]
call fcn.00406551
lea eax, [esi + 0x60]
mov dword [ebp - 4], 3
push eax
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.0043fc7b
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x28]
call fcn.004063c5
and dword [ebp - 0x30], 0
lea ecx, [ebp - 0x40]
push ebx
push str.accessible_name
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x40], 0
call fcn.00406551
lea ecx, [esi + 0x48]
mov dword [ebp - 4], 4
push ecx
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.0043f89e
pop ecx
lea ecx, [ebp - 0x40]
call fcn.004063c5
mov ecx, dword [ebp - 0xc]
mov al, 1
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x440d46
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x260
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
mov esi, edx
lea ecx, [esp + 0xc]
call fcn.0046aea9
push dword [eax + 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
lea eax, [esp + 0x10]
cmp dword [esp + 0xc], eax
je 0x440d85
push dword [esp + 0xc]
call fcn.0053b990
pop ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x442d5e
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push 0x20019
push edi
push str.SoftwareMicrosoftWindows_NTCurrentVersionImage_File_Execution_OptionsAgent.exe
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x442d9a
push edi
push edi
push edi
push edi
push str.Debugger
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
test esi, esi
jne 0x442de3
lea eax, [ebp - 4]
push eax
push 2
push esi
push str.SoftwareMicrosoftWindows_NTCurrentVersionImage_File_Execution_OptionsAgent.exe
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x442dd6
push str.Debugger
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, eax
push dword [ebp - 4]
call edi
test esi, esi
je 0x442de3
xor al, al
jmp 0x442de5
mov al, 1
pop edi
pop esi
leave
ret

Function at 0x443212
Capabilities:
Set registry value

Disassembly:
mov eax, 0x6b865a
call fcn.006b6d3c
sub esp, 0x1c
push ebx
push esi
push edi
push 0x20
mov edi, ecx
mov dword [ebp - 0x14], 0xf
xor ebx, ebx
lea ecx, [ebp - 0x28]
push str.SoftwareBlizzard_Entertainment_
mov esi, edx
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
call fcn.00406551
mov dword [ebp - 4], ebx
mov eax, edi
cmp dword [edi + 0x14], 0x10
jb 0x443251
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.004062dd
push 0x10
pop edi
cmp dword [ebp - 0x14], edi
lea ecx, [ebp - 0x10]
push ecx
push 0x20006
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ebx
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4432ac
cmp dword [ebp - 0x14], edi
lea ecx, [ebp - 0x10]
push ebx
push ecx
push ebx
push 0xf003f
push ebx
push ebx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ebx
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4432d8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
cmp dword [eax + 0x14], edi
jb 0x4432b9
mov eax, dword [eax]
cmp dword [esi + 0x14], edi
jb 0x4432c0
mov esi, dword [esi]
push ecx
push eax
push 1
push ebx
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x28]
call fcn.004063c5
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4432ef
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x6b932a
call fcn.006b6d3c
sub esp, 0x220
push ebx
push esi
push edi
push 0x20
mov edi, ecx
mov dword [ebp - 0x18], 0xf
xor ebx, ebx
lea ecx, [ebp - 0x2c]
push str.SoftwareBlizzard_Entertainment_
mov esi, edx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00406551
mov dword [ebp - 4], ebx
mov eax, edi
cmp dword [edi + 0x14], 0x10
jb 0x443331
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x2c]
push eax
call fcn.004062dd
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x10]
push ecx
push 0x20019
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push ebx
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test edi, edi
jne 0x4433cc
push 0x200
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x14], 0x1ff
push ebx
push eax
call fcn.005530b0
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x443388
mov esi, dword [esi]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x22c]
push eax
push ebx
push ebx
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x22c]
mov edi, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4433aa
sub ecx, edx
lea eax, [ebp - 0x22c]
push ecx
mov ecx, dword [ebp + 8]
push eax
call fcn.00406551
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x2c]
call fcn.004063c5
mov ecx, dword [ebp - 0xc]
test edi, edi
pop edi
pop esi
sete al
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x443e8f
Capabilities:
Hash data with md5

Disassembly:
and dword [ecx + 4], 0
and dword [ecx], 0
mov dword [ecx + 8], 0x67452301
mov dword [ecx + 0xc], 0xefcdab89
mov dword [ecx + 0x10], 0x98badcfe
mov dword [ecx + 0x14], 0x10325476
ret

Function at 0x44401f
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, 0x811c9dc5
call fcn.0046ad4b
test eax, eax
je 0x444042
movzx ecx, byte [edi]
xor esi, ecx
inc edi
imul esi, esi, 0x1000193
sub eax, 1
jne 0x444031
pop edi
mov eax, esi
pop esi
ret

Function at 0x444047
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, edx
mov esi, 0x84222325
push edi
mov edi, 0xcbf29ce4
test ebx, ebx
je 0x444087
movzx eax, byte [ecx]
push 0x100
cdq
xor edi, edx
xor esi, eax
push 0x1b3
push edi
inc ecx
push esi
mov dword [ebp - 4], ecx
call fcn.0053bf10
mov ecx, dword [ebp - 4]
mov esi, eax
mov edi, edx
sub ebx, 1
jne 0x44405e
mov edx, edi
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x444090
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, edx
mov ebx, 0xcbf29ce4
push edi
mov edi, 0x84222325
test esi, esi
je 0x4440dd
movzx eax, byte [ecx]
inc ecx
push eax
mov dword [esp + 0x10], ecx
call fcn.00565f18
cdq
mov dword [esp], 0x100
xor edx, ebx
push 0x1b3
xor eax, edi
push edx
push eax
call fcn.0053bf10
mov ecx, dword [esp + 0xc]
mov edi, eax
mov ebx, edx
sub esi, 1
jne 0x4440aa
mov eax, edi
mov edx, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x445801
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
shr edx, 2
mov esi, 0xeeeeeeee
push edi
mov edi, ecx
test edx, edx
je 0x44584b
push ebx
mov ebx, dword [ebp + 8]
movzx eax, bl
add esi, dword [eax*4 + 0x777460]
mov eax, ebx
not eax
shl eax, 0x15
add eax, 0x11111111
lea ecx, [esi + ebx]
imul esi, esi, 0x21
xor ecx, dword [edi]
shr ebx, 0xb
or ebx, eax
mov dword [edi], ecx
lea edi, [edi + 4]
add esi, 3
add esi, ecx
sub edx, 1
jne 0x445818
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x44584f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
shr edx, 2
mov esi, 0xeeeeeeee
push edi
mov edi, ecx
test edx, edx
je 0x44589b
push ebx
mov ebx, dword [ebp + 8]
mov ecx, dword [edi]
movzx eax, bl
add esi, dword [eax*4 + 0x777460]
lea eax, [esi + ebx]
imul esi, esi, 0x21
xor eax, ecx
mov dword [edi], eax
lea edi, [edi + 4]
mov eax, ebx
shr ebx, 0xb
not eax
shl eax, 0x15
add esi, 3
add eax, 0x11111111
add esi, ecx
or ebx, eax
sub edx, 1
jne 0x445866
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x44589f
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov edi, 0x7fed7fed
mov ecx, 0xeeeeeeee
mov al, byte [esi]
inc esi
test al, al
je 0x4458e3
shl ebx, 8
movzx eax, al
add edi, ecx
imul ecx, ecx, 0x21
mov al, byte [eax + 0x776360]
movzx edx, al
add ecx, 3
add ecx, edx
lea eax, [ebx + edx]
xor edi, dword [eax*4 + 0x776460]
mov al, byte [esi]
add ecx, edi
inc esi
test al, al
jne 0x4458ba
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x456489
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x6bd183
call fcn.006b6d3c
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push 0xf
mov dword [ebp - 0x10], edi
pop eax
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], eax
mov byte [edi + 4], bl
mov dword [ebp - 4], ebx
mov dword [edi], vtable.Blizzard::Streaming::Manifests::ServerItem.0
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], eax
mov byte [edi + 0x1c], bl
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], ebx
mov dword [edi + 0x40], ebx
mov dword [edi + 0x44], ebx
mov dword [edi + 0x48], ebx
mov byte [ebp - 4], 3
call fcn.00458763
mov dword [ebp - 0x20], eax
lea ecx, [edi + 0x40]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], edx
push eax
mov dword [ebp - 0x18], 0x64
call fcn.0046cd88
mov ecx, dword [ebp - 0xc]
mov eax, edi
mov dword [edi + 0x4c], ebx
mov dword [edi + 0x50], ebx
mov dword [edi + 0x54], 0xa
mov byte [edi + 0x58], 1
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x45d391
Capabilities:
Create process on windows
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x764
push ebx
push esi
push edi
mov edi, ecx
call fcn.0046ad4b
inc eax
mov dword [esp + 0x368], eax
cmp eax, 0x400
ja 0x45d3bf
lea esi, [esp + 0x370]
jmp 0x45d3c8
push eax
call fcn.0053b995
pop ecx
mov esi, eax
push 7
push str.file:__
push edi
mov dword [esp + 0x378], esi
call fcn.00553798
add esp, 0xc
test eax, eax
sete al
mov byte [esp + 0x13], al
test al, al
je 0x45d435
mov dl, byte [edi]
lea ecx, [edi + 1]
jmp 0x45d427
cmp dl, 0x25
jne 0x45d41d
mov al, byte [ecx]
test al, al
je 0x45d42b
mov bl, byte [ecx + 1]
add ecx, 2
test bl, bl
je 0x45d42b
movsx eax, al
mov dl, byte [eax + 0x78bb80]
movsx eax, bl
shl dl, 4
or dl, byte [eax + 0x78bb80]
mov byte [esi], dl
lea eax, [esi + 1]
mov dl, byte [ecx]
mov esi, eax
inc ecx
test dl, dl
jne 0x45d3f3
mov byte [esi], 0
mov edi, dword [esp + 0x36c]
push 0x3c
pop esi
push esi
lea eax, [esp + 0x18]
push 0
push eax
call fcn.005530b0
add esp, 0xc
mov dword [esp + 0x14], esi
xor ebx, ebx
mov dword [esp + 0x24], edi
lea eax, [esp + 0x14]
mov dword [esp + 0x20], str.open
inc ebx
mov dword [esp + 0x18], 0x400
push eax
mov dword [esp + 0x34], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
cmp eax, ebx
sete bl
cmp eax, 1
jne 0x45d484
xor ebx, ebx
inc ebx
jmp 0x45d53f
cmp byte [esp + 0x13], 0
jne 0x45d53f
lea eax, [esp + 0x158]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x45d53f
call fcn.0046c1ed
push eax
lea eax, [esp + 0x15c]
push eax
push str._sTempHTMLFile_x.html
lea eax, [esp + 0x5c]
push esi
push eax
call fcn.0046ae07
add esp, 0x14
lea eax, [esp + 0x50]
push 0x789aec
push eax
call fcn.00569819
pop ecx
pop ecx
test eax, eax
je 0x45d53f
push eax
call fcn.00567058
pop ecx
lea eax, [esp + 0x260]
push eax
push 0
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.SHELL32.dll_FindExecutableA]
mov esi, eax
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, 0x20
seta bl
jbe 0x45d53f
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x260]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x2c], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
lea eax, [esp + 0x370]
cmp dword [esp + 0x36c], eax
je 0x45d55c
push dword [esp + 0x36c]
call fcn.0053b990
pop ecx
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45da53
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
push edi
push esi
push 3
push esi
push esi
push dword [ebp + 8]
mov dword [edi + 0x1c], esi
push edx
push dword [edi]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebx, eax
test ebx, ebx
jne 0x45da91
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x45daba
push 0xffffffffffffffff
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [edi + 0x34]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 2
push ebx
call esi
push 4
lea eax, [ebp - 4]
push eax
push 6
push ebx
call esi
mov esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x45ef88
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x6bd7ba
call fcn.006b6d3c
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], ebx
lea esi, [edi + 0x28]
mov dword [edi], vtable.Blizzard::URL::HttpCallback.0
or eax, 0xffffffff
mov dword [edi + 4], 1
mov byte [edi + 8], 1
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], eax
mov dword [ebp - 0x14], esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
call fcn.00413f20
mov dword [esi], eax
mov eax, dword [ebp + 8]
lea ecx, [edi + 0x3c]
mov byte [ebp - 4], 1
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], eax
push 3
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], 0xf
push 0x7863f8
mov byte [ecx], bl
call fcn.00406551
mov dword [edi + 0x54], ebx
mov dword [edi + 0x58], ebx
lea ecx, [edi + 0x5c]
mov byte [ebp - 4], 3
call fcn.00467945
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x45f2c2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
xor eax, eax
mov dword [ebp - 4], ecx
push edi
mov edi, edx
xor esi, esi
inc eax
lock xadd dword [0x818a2c], eax
inc eax
cmp eax, 1
jne 0x45f34e
push ebx
push str.psapi.dll
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x20]
mov dword [ebp - 0x10], 1
push eax
push 0x45f180
push esi
push esi
mov dword [ebp - 0xc], 0x86060c
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x45f342
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x14]
test ebx, ebx
je 0x45f34d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
lock dec dword [0x818a2c]
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x45f461
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
push esi
mov esi, ecx
test esi, esi
je 0x45f4ac
push 2
call fcn.005675ae
push eax
push esi
call fcn.005692a8
add esp, 0xc
lea ecx, [esp + 8]
push esi
call fcn.0046aea9
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esp + 0x10]
cmp dword [esp + 0xc], eax
je 0x45f4ac
push dword [esp + 0xc]
call fcn.0053b990
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x460868
Capabilities:
Print debug messages
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x80bc5c]
sub esp, 0x14
push edi
mov edi, ecx
test eax, eax
je 0x460889
push edi
call eax
pop ecx
test al, al
je 0x460889
mov al, 1
jmp 0x460a09
mov eax, dword [0x80bc68]
test eax, eax
je 0x460896
push edi
call eax
pop ecx
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x4608c1
mov edx, 0x104
lea eax, [ecx + 0xa04]
push edx
push eax
lea eax, [ecx + 0xb08]
add ecx, 0x900
push 0x40
push eax
call fcn.00462549
add esp, 0x10
cmp dword [edi + 8], 1
jne 0x4608ce
mov ecx, edi
call fcn.004606c1
push esi
mov esi, dword [edi + 0x24]
lea eax, [ebp - 0x14]
push eax
add esi, 0xb48
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x14]
push eax
push str._04d__02d__02d__02d._02d._02d
push 0x40
push esi
call fcn.004624ca
add esp, 0x24
mov ecx, edi
call fcn.0045f80c
mov edx, dword [edi + 0x24]
sub edx, 0xffffff80
cmp byte [edx], 0
jne 0x46095f
mov ecx, dword [edi + 0x10]
mov eax, ecx
sub eax, 0x13370001
je 0x460941
sub eax, 1
je 0x46093a
mov eax, str.Unknown_Error
jmp 0x460946
mov eax, str.Assertion_Failure
jmp 0x460946
mov eax, str.Fatal_Exception
push eax
push ecx
movzx eax, cx
push eax
push str.ERROR__u__0x_08x___s
push 0x80
push edx
call fcn.004624ca
add esp, 0x18
mov eax, dword [0x80bc60]
test eax, eax
je 0x46096c
push edi
call eax
pop ecx
mov ecx, edi
call fcn.0045f77a
push dword [edi + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call esi
push 0x784930
call esi
mov eax, dword [0x80bc64]
test eax, eax
je 0x460992
push edi
call eax
pop ecx
mov ecx, edi
call fcn.0045f691
xor esi, esi
cmp dword [0x80a6a8], esi
jle 0x4609ce
mov eax, dword [esi*8 + 0x80a6c4]
test eax, eax
je 0x4609c5
push edi
call eax
pop ecx
test al, al
je 0x4609c5
mov eax, dword [esi*8 + 0x80a6c0]
test eax, eax
je 0x4609c5
push edi
call eax
pop ecx
inc esi
cmp esi, dword [0x80a6a8]
jl 0x4609a3
mov edi, dword [edi + 0x18]
push ecx
call fcn.00462429
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
pop ecx
test al, al
je 0x4609fc
lea eax, [ebp - 4]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4609fc
cmp dword [ebp - 4], 0x103
jne 0x460a06
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor al, al
pop esi
pop edi
leave
ret