joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005cc80
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x1005ccb3
push esi
call fcn.1006b020
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x1005ccac
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x1005cd39
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x1005cd22
mov eax, dword [esi + 8]
test eax, eax
je 0x1005ccd7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x1005cd1e
cmp eax, 2
je 0x1005cd22
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1005ccca
cmp eax, 3
je 0x1005ccfd
cmp eax, 1
jne 0x1005ccca
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x1005ccca
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x1005ccca
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.1005cd60
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x1005cd48
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.1005cd60
add esp, 4
pop esi
ret

Function at 0x1005d5d0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x1005d5f1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x1005d5f1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x1005d5f1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x1005da40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x1005da4b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x1005db4e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x1009f448]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x1009f448]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x1009f448]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x1009f448]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x1009f448]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x1009f448]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x1009f448]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x1009f448]
xor eax, edx
inc ecx
dec edi
jne 0x1005da66
pop edi
test esi, esi
je 0x1005db70
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x1009f448]
xor eax, edx
inc ecx
dec esi
jne 0x1005db52
pop esi
pop ebx
not eax
ret
Function at 0x1008b71a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1008b752
push dword [esi + 0x1c]
call dword [sym.imp.USER32.DLL_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.100897eb
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.DLL_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.100897c3
jmp 0x1008b75e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x1008ce0c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x1008ce4e
call fcn.100927a7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x1008ce4e
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0x1008ce45
xor eax, eax
jmp 0x1008ce56
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.1008ce5c
pop edi
pop esi
pop ebx
ret 4

Function at 0x100f47fa
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.100f4879
jae 0x100f4806
xor ecx, ecx
call fcn.100f4879
jae 0x100f4830
xor eax, eax
call fcn.100f4879
jae 0x100f4841
mov al, 0x10
call fcn.100f4879
adc al, al
jae 0x100f4822
jne 0x100f486e
stosb byte es:[edi], al
jmp 0x100f4807
call fcn.100f4885
dec ecx
loop 0x100f484d
mov eax, ebp
call fcn.100f4883
jmp 0x100f486f
lodsb al, byte [esi]
shr eax, 1
je 0x100f4895
adc ecx, 2
mov ebp, eax
jmp 0x100f486f
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.100f4883
cmp eax, 0x7d00
jae 0x100f486d
cmp eax, 0x500
jae 0x100f486e
cmp eax, 0x7f
ja 0x100f486f
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x100f4807
pop ebp
ret 8
Function at 0x40e14b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x415048]
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.00409d03
and dword [ebp - 0x14], 0
cmp dword [0x416d2c], 0
mov dword [ebp - 0x18], eax
jne 0x40e1fe
push 0x412318
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40e2a6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41230c
push ebx
call edi
test eax, eax
je 0x40e2a6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4122fc
push ebx
mov dword [0x416d2c], eax
call edi
push eax
call esi
push 0x4122e8
push ebx
mov dword [0x416d30], eax
call edi
push eax
call esi
push 0x4122cc
push ebx
mov dword [0x416d34], eax
call edi
push eax
call esi
mov dword [0x416d3c], eax
test eax, eax
je 0x40e1fe
push 0x4122b4
push ebx
call edi
push eax
call esi
mov dword [0x416d38], eax
mov eax, dword [0x416d38]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40e257
cmp dword [0x416d3c], ecx
je 0x40e257
push eax
call esi
push dword [0x416d3c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40e257
test ebx, ebx
je 0x40e257
call edi
test eax, eax
je 0x40e24e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40e24e
test byte [ebp - 8], 1
jne 0x40e257
or dword [ebp + 0x10], 0x200000
jmp 0x40e28a
mov eax, dword [0x416d30]
cmp eax, dword [ebp - 0x18]
je 0x40e28a
push eax
call esi
test eax, eax
je 0x40e28a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40e28a
mov eax, dword [0x416d34]
cmp eax, dword [ebp - 0x18]
je 0x40e28a
push eax
call esi
test eax, eax
je 0x40e28a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x416d2c]
call esi
test eax, eax
je 0x40e2a6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40e2a8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404838
leave
ret

Function at 0x401c2e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
and byte [ebp - 0x100], 0
push edi
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0xff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 8
lea eax, [ebp - 0x100]
push 0x404008
push eax
call fcn.00401ca0
mov ecx, 0x401bdc
mov eax, 0x4017fd
sub ecx, eax
push ecx
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.00401d18
push 0x100
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.004020d0
add esp, 0x24
call fcn.00401846
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x402660
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x402671
sub esi, ecx
je 0x4027c4
mov eax, esi
and eax, 0x80000003
jns 0x402690
dec eax
or eax, 0xfffffffc
add eax, 1
jne 0x4027c4
xor ecx, ecx
test esi, esi
jle 0x4026bc
lea esp, [esp]
mov al, byte [ecx + edi]
cmp al, 0x3d
je 0x4026b7
movsx eax, al
cmp byte [eax + 0x44e040], 0xff
je 0x4027c4
inc ecx
cmp ecx, esi
jl 0x4026a0
xor ebx, ebx
cmp byte [esi + edi - 1], 0x3d
sete bl
jne 0x4026d4
cmp byte [esi + edi - 2], 0x3d
jne 0x4026d4
mov ebx, 2
lea eax, [esi - 4]
mov ecx, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
sub ecx, eax
sub ecx, ebx
push ecx
mov dword [ebp - 0xc], ecx
call sub.msvcrt.dll_malloc
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
je 0x4027c4
mov dword [ebp - 4], 0
mov edx, eax
test esi, esi
jle 0x4027b5
add edi, 2
movsx eax, byte [edi - 1]
mov cl, byte [eax + 0x44e040]
movsx eax, byte [edi - 2]
shr cl, 4
mov al, byte [eax + 0x44e040]
shl al, 2
add cl, al
lea eax, [esi - 4]
mov byte [edx], cl
cmp dword [ebp - 4], eax
jne 0x402762
test ebx, ebx
je 0x402762
cmp ebx, 1
jne 0x40275e
movsx eax, byte [edi]
mov cl, byte [eax + 0x44e040]
movsx eax, byte [edi - 1]
shr cl, 2
mov al, byte [eax + 0x44e040]
shl al, 4
add cl, al
mov byte [edx + 1], cl
sub edx, ebx
jmp 0x40279b
movsx eax, byte [edi]
mov cl, byte [eax + 0x44e040]
movsx eax, byte [edi - 1]
shr cl, 2
movzx eax, byte [eax + 0x44e040]
shl al, 4
add cl, al
mov byte [edx + 1], cl
movsx eax, byte [edi]
movsx ecx, byte [edi + 1]
movzx eax, byte [eax + 0x44e040]
shl al, 6
add al, byte [ecx + 0x44e040]
mov byte [edx + 2], al
mov eax, dword [ebp - 4]
add edi, 4
add eax, 4
add edx, 3
mov dword [ebp - 4], eax
cmp eax, esi
jl 0x402711
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov byte [ecx + eax - 1], 0
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402a40
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x44ef24]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x420], 1
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x420]
push eax
push 0x440678
push 0x4406e8
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
lea eax, [ebp - 0x20c]
jne 0x402aca
mov eax, 0x44066c
push ebx
push eax
lea ecx, [ebp - 0x418]
call fcn.004027d0
mov eax, dword [ebp - 0x418]
mov ebx, dword [ebp + 0xc]
cmp dword [eax - 0xc], ebx
ja 0x402bb8
push eax
call esi
test eax, eax
je 0x402bb2
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x414]
push str.360Base.dll
push dword [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x402bb2
xor esi, esi
test ebx, ebx
je 0x402b38
cmp ebx, 0x7fffffff
jbe 0x402b3d
mov esi, 0x80070057
test esi, esi
js 0x402b9c
mov esi, ebx
test ebx, ebx
je 0x402b77
mov ecx, 0x7ffffffe
lea edx, [ebp - 0x414]
sub ecx, ebx
sub edx, edi
lea eax, [ecx + esi]
test eax, eax
je 0x402b73
movzx eax, word [edx + edi]
test ax, ax
je 0x402b73
mov word [edi], ax
add edi, 2
sub esi, 1
jne 0x402b56
jmp 0x402b77
test esi, esi
jne 0x402b7a
sub edi, 2
xor eax, eax
neg esi
mov word [edi], ax
mov eax, dword [ebp - 0x418]
sbb esi, esi
and esi, 0x7ff8ff86
add esi, 0x8007007a
not esi
shr esi, 0x1f
jmp 0x402bba
test ebx, ebx
je 0x402ba5
xor eax, eax
mov word [edi], ax
mov eax, dword [ebp - 0x418]
not esi
shr esi, 0x1f
jmp 0x402bba
mov eax, dword [ebp - 0x418]
xor esi, esi
add eax, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [eax + 0xc], ecx
dec ecx
pop ebx
test ecx, ecx
jg 0x402bd3
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00427ee9
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x44ef24]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov dword [ebp - 0x210], esi
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x210], 1
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x440678
push 0x4406e8
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, esi
test eax, eax
je 0x402c7d
lea eax, [ebp - 0x20c]
push eax
jmp 0x402c82
push 0x44066c
call fcn.004027d0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00427ee9
mov esp, ebp
pop ebp
ret
Function at 0x402ca0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x44ef24]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x402cd5
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427ee9
mov esp, ebp
pop ebp
ret
push ebx
push 0x228
xor ebx, ebx
lea eax, [ebp - 0x22c]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x402d32
push edi
mov edi, dword [ebp + 8]
lea esp, [esp]
cmp dword [ebp - 0x228], edi
je 0x402d2b
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x402d10
jmp 0x402d31
mov ebx, dword [ebp - 0x218]
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
xor ecx, ebp
pop esi
call fcn.00427ee9
mov esp, ebp
pop ebp
ret
Function at 0x403620
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403679
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403679
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40366a
cmp esi, edx
jae 0x403679
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x403658
cmp esi, edx
jae 0x403679
cmp word [esi], 0
je 0x403679
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x403fa0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d8f1
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x44ef24]
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, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x230], eax
test edi, edi
je 0x4041da
test esi, esi
je 0x4041da
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x22c], 1
lea eax, [ebp - 0x220]
mov ebx, 0x104
mov dword [ebp - 0x220], ebx
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x22c]
push eax
push esi
push edi
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4040b4
lea eax, [ebp - 0x218]
push eax
push str.TS::Browser::_anonymous_namespace::GetBrowserAppPath
push str.__s__app_path_HKCU:__s
call fcn.00401530
mov eax, dword [ebp - 0x220]
add esp, 0xc
test eax, eax
je 0x4040b4
mov ebx, eax
lea ecx, [ebp - 0x21c]
lea eax, [ebp - 0x218]
push eax
call fcn.004027d0
push 0
push 0x441614
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0
call fcn.00405060
push dword [ebp - 0x21c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
test eax, eax
jne 0x404151
call fcn.004018f0
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], ebx
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x22c]
push eax
push esi
push edi
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4041da
lea eax, [ebp - 0x218]
push eax
push str.TS::Browser::_anonymous_namespace::GetBrowserAppPath
push 0x441618
call fcn.00401530
add esp, 0xc
test ebx, ebx
je 0x4041da
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x224]
call fcn.004027d0
push 0
push 0x441614
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 1
call fcn.00405060
push dword [ebp - 0x224]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ebp - 0x224]
test eax, eax
je 0x4041d5
mov dword [ebp - 4], 0xffffffff
call fcn.004018f0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x228]
call fcn.004027d0
push 0
push 0x441614
lea ecx, [ebp - 0x228]
mov dword [ebp - 4], 2
call fcn.00405060
mov eax, dword [ebp - 0x228]
mov edx, eax
lea esi, [edx + 2]
lea esp, [esp]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x404190
mov ecx, dword [ebp - 0x230]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.00403680
mov edx, dword [ebp - 0x228]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4041d1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
jmp 0x4041dc
call fcn.004018f0
xor al, al
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.00427ee9
mov esp, ebp
pop ebp
ret
Function at 0x40afb0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret

Function at 0x40b960
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43df48
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x44ef24]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
xor esi, esi
lea eax, [ebp - 0x28]
push eax
call fcn.004232e0
add esp, 4
test eax, eax
je 0x40ba27
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x40b9be
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b9e7
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x40b9d5
mov eax, dword [ebp - 0x28]
push eax
call fcn.0040bd50
add esp, 4
mov byte [0x44fda6], 1
mov esi, eax
lea eax, [ebp - 0x28]
push eax
call fcn.00423260
add esp, 4
test eax, eax
je 0x40ba27
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x40ba03
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ba29
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x40ba1a
mov eax, dword [ebp - 0x28]
push eax
call fcn.0040bd50
add esp, 4
mov esi, eax
jmp 0x40ba29
xor esi, esi
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40ba5f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ba55
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ba7b
push edx
push ecx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00427ee9
mov esp, ebp
pop ebp
ret
call fcn.004262c0
int3
Function at 0x40bd50
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40bdf5
push 0x800
mov esi, 0x400
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
je 0x40bddd
push ebx
push esi
push edi
push str.general
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
lea ecx, [esi - 2]
cmp eax, ecx
jb 0x40bdd8
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
add esp, 4
cmp esi, 0x7fff
jae 0x40bdf5
add esi, esi
cmp esi, 0x7fff
jbe 0x40bdb5
mov esi, 0x7fff
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
jne 0x40bd80
jmp 0x40bddd
xor ecx, ecx
mov dword [edi + eax*2], ecx
push edi
call fcn.0040ba90
push edi
mov esi, eax
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x40c9c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e079
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x44ef24]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
call fcn.00402990
mov dword [edi + 4], vtable.InternetProtectionSettingsMonitor::INetwrokSettingEvent.0
lea eax, [edi + 8]
xor ecx, ecx
mov dword [edi], vtable.CProxyWnd.0
mov dword [edi + 4], vtable.CProxyWnd.1.0
lea ebx, [edi + 4]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
push ecx
mov dword [eax + 0x10], ecx
push eax
mov dword [ebp - 4], 0
mov dword [eax + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x40ca4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40ca46
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x40cb4e
mov dword [edi + 0x20], 0
lea esi, [edi + 0x30]
mov dword [edi + 0x24], 0
mov ecx, esi
mov dword [edi + 0x28], 0
push 0
mov dword [edi + 0x2c], 0
push 0
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040f730
mov dword [esi], eax
lea esi, [edi + 0x38]
mov byte [ebp - 4], 2
push 0
push 0
mov ecx, esi
mov dword [ebp - 0x18], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040f700
mov dword [esi], eax
push 0
push 0
push 0
push 0
mov byte [ebp - 4], 3
mov dword [edi + 0x40], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x24], eax
call fcn.0040d890
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
push 0
push esi
push 0x40e270
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
test eax, eax
jne 0x40caf9
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x40cafb
mov al, 1
mov byte [esi + 8], al
test al, al
je 0x40cb3a
mov dword [ebp - 0x10], ebx
call fcn.0040d890
mov esi, eax
cmp byte [esi + 8], 0
je 0x40cb3a
push ebx
push 0x443a28
push str._s____listener:_p
call fcn.00401530
add esp, 0xc
lea eax, [ebp - 0x10]
lea ecx, [esi + 0xc]
push dword [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
call fcn.0040c6d0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call fcn.00401cf0
int3