joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a7e50
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ba89f
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x649ffc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x64f3c8], 0
je 0x4a7e8a
xor al, al
jmp 0x4a7f49
push 0x18
call fcn.0056e9a6
mov edi, eax
add esp, 4
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x4a7eda
lea eax, [ebp - 0x29]
mov ecx, edi
push eax
push 1
call fcn.004a6b90
lea esi, [edi + 0xc]
mov byte [ebp - 4], 1
mov ecx, esi
mov dword [ebp - 0x34], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004a8a00
mov dword [esi], eax
mov dword [edi + 0x14], 1
jmp 0x4a7edc
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov dword [0x64f3c8], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov dword [ebp - 0x18], 0
mov ecx, edx
mov dword [ebp - 0x14], 7
xor eax, eax
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a7f10
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00409cd1
mov ecx, dword [0x64f3c8]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 4], 2
call fcn.004a8470
lea ecx, [ebp - 0x28]
call fcn.00409de3
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056e987
mov esp, ebp
pop ebp
ret

Function at 0x4a8470
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ba9a8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x649ffc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x28]
push ecx
push 3
push eax
call fcn.004a0530
add esp, 0xc
cmp dword [ebp - 0x18], 0
je 0x4a8503
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 0
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov dword [ebp - 4], 0
push esi
push dword [ebp - 0x2c]
mov ecx, edi
call fcn.004a8090
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4a8539
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a852f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a8556
push edx
push ecx
call fcn.0056e998
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056e987
mov esp, ebp
pop ebp
ret 4
call fcn.0058ac68
int3
Function at 0x4a9f50
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bac48
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x649ffc]
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 esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push ecx
mov eax, esp
push str.SELECT_name_FROM_sqlite_master_WHERE_type__AND_name_
push eax
call fcn.004aa510
lea ecx, [ebp - 0x30]
call fcn.004a8a60
mov ecx, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a9fb5
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.00403b05
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
push 0
lea ecx, [ebp - 0x30]
call fcn.004a8d60
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x4aa012
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4aa008
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4aa0bb
push edx
push ecx
call fcn.0056e998
add esp, 8
mov ecx, esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4aa030
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00403b05
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
push 1
lea ecx, [ebp - 0x30]
call fcn.004a8d60
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x4aa089
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4aa07f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4aa0c0
push edx
push ecx
call fcn.0056e998
add esp, 8
lea ecx, [ebp - 0x30]
call fcn.004a8f30
lea ecx, [ebp - 0x30]
mov bl, al
call fcn.004a8b70
mov al, bl
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.0056e987
mov esp, ebp
pop ebp
ret 8
call fcn.0058ac68
call fcn.0058ac68
int3
Function at 0x4b97a0
Capabilities:
Check if file exists
Check os version
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x649ffc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push esi
push edi
push eax
xor esi, esi
mov dword [ebp - 0x11c], ecx
call fcn.004cac10
mov edi, eax
add esp, 4
test edi, edi
jne 0x4b97e4
pop edi
lea eax, [esi + 7]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056e987
mov esp, ebp
pop ebp
ret
mov eax, dword [0x650254]
test eax, eax
jne 0x4b9816
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
cmp dword [ebp - 0x108], 2
sete al
inc eax
mov dword [0x650254], eax
push ebx
cmp eax, 2
jne 0x4b9856
nop dword [eax]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4b9846
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x11c], eax
cmp eax, 5
jne 0x4b988c
inc esi
cmp esi, 5
jge 0x4b988c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4b9820
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4b987c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x11c], eax
cmp eax, 5
jne 0x4b988c
inc esi
cmp esi, 5
jge 0x4b988c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4b9856
push edi
call fcn.00595b6f
add esp, 4
cmp ebx, 0xffffffff
pop ebx
jne 0x4b98b6
cmp dword [ebp - 0x11c], 2
jne 0x4b98b6
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056e987
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xa0a
pop edi
xor ecx, ebp
pop esi
call fcn.0056e987
mov esp, ebp
pop ebp
ret
Function at 0x4d8440
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edx, dword [esi + 0x3c]
cmp dword [edx], ebx
jne 0x4d847e
mov eax, dword [esi + 0x78]
mov ecx, dword [esi]
or eax, 0x1e
push ebx
and eax, 0x87f3f
push eax
mov eax, dword [ecx + 0x18]
push edx
push ebx
push ecx
call eax
mov ebx, eax
add esp, 0x14
mov dword [ebp - 4], ebx
test ebx, ebx
jne 0x4d855b
mov ecx, dword [esi + 0x18]
cmp ecx, dword [esi + 0x24]
jbe 0x4d84b7
mov eax, dword [esi + 0x80]
push 0
cdq
push ecx
push edx
push eax
call fcn.0056fb10
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x3c]
mov dword [ebp - 8], edx
lea edx, [ebp - 0xc]
push edx
push 5
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x28]
call eax
mov eax, dword [esi + 0x18]
add esp, 0xc
mov dword [esi + 0x24], eax
push edi
mov edi, dword [ebp + 0xc]
nop dword [eax + eax]
test edi, edi
je 0x4d8558
mov ebx, dword [edi + 0xc]
cmp ebx, dword [esi + 0x18]
ja 0x4d854a
test byte [edi + 0x14], 0x20
jne 0x4d854a
mov eax, dword [esi + 0x80]
lea ecx, [ebx - 1]
cdq
push edx
push eax
push 0
push ecx
call fcn.0056fb10
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
cmp ebx, 1
jne 0x4d84fe
push edi
call fcn.004d83c0
add esp, 4
push dword [ebp - 4]
mov eax, dword [edi]
push dword [ebp - 8]
mov edx, dword [esi + 0x80]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x3c]
push edx
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0xc]
call eax
add esp, 0x14
mov dword [ebp - 4], eax
cmp ebx, 1
jne 0x4d8534
mov eax, dword [ebp + 8]
movups xmm0, xmmword [eax + 0x18]
movups xmmword [esi + 0x64], xmm0
cmp ebx, dword [esi + 0x20]
jbe 0x4d853c
mov dword [esi + 0x20], ebx
push dword [edi]
push ebx
push dword [esi + 0x58]
call fcn.004dfc70
add esp, 0xc
mov ebx, dword [ebp - 4]
mov edi, dword [edi + 8]
test ebx, ebx
je 0x4d84c0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ea190
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
sub esp, 0x10
push ebx
push edi
xor edi, edi
mov ebx, edx
test edx, edx
jne 0x4ea1a8
mov dword [ebp - 4], edi
jmp 0x4ea1c1
cmp byte [edx], 0
je 0x4ea1b6
nop dword [eax]
inc ebx
cmp byte [ebx], 0
jne 0x4ea1b0
sub ebx, edx
and ebx, 0x3fffffff
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, dword [eax + 4]
mov dword [ebp - 0xc], ebx
test ebx, ebx
jle 0x4ea2cd
mov ebx, dword [eax + 8]
mov dword [ebp - 0x10], ebx
push esi
nop
mov eax, ecx
xor eax, 1
cmp ecx, 2
cmovge eax, ecx
mov ecx, dword [ebp + 0x10]
shl eax, 4
mov esi, dword [eax + ebx + 0xc]
mov dword [ebp + 8], esi
test ecx, ecx
je 0x4ea24f
mov edx, dword [eax + ebx]
mov bl, byte [ecx]
test bl, bl
je 0x4ea234
mov esi, ecx
mov al, bl
sub esi, edx
nop dword [eax + eax]
movzx ecx, byte [edx]
mov bl, al
movzx eax, al
mov al, byte [eax + 0x5cfac8]
cmp al, byte [ecx + 0x5cfac8]
jne 0x4ea231
mov al, byte [esi + edx + 1]
inc edx
mov bl, al
test al, al
jne 0x4ea210
mov esi, dword [ebp + 8]
movzx eax, byte [edx]
movzx ecx, byte [eax + 0x5cfac8]
movzx eax, bl
movzx eax, byte [eax + 0x5cfac8]
sub eax, ecx
jne 0x4ea2b6
mov edx, dword [ebp + 0xc]
cmp dword [esi + 0x24], 0
lea ecx, [esi + 0x18]
mov ebx, dword [ebp - 4]
mov dword [ebp + 8], ecx
je 0x4ea290
mov edi, edx
mov esi, ebx
xor edx, edx
test ebx, ebx
je 0x4ea288
movzx eax, byte [edi]
lea edi, [edi + 1]
dec esi
movzx ecx, byte [eax + 0x5cfac8]
lea eax, [edx*8]
xor ecx, eax
xor edx, ecx
test esi, esi
jg 0x4ea268
mov ecx, dword [ebp + 8]
mov eax, edx
xor edx, edx
div dword [ecx]
jmp 0x4ea292
xor edx, edx
push edx
push ebx
push dword [ebp + 0xc]
push ecx
call fcn.004ce000
add esp, 0x10
test eax, eax
je 0x4ea2b4
mov edi, dword [eax + 8]
test edi, edi
je 0x4ea2b6
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
mov ecx, dword [ebp - 8]
inc ecx
mov dword [ebp - 8], ecx
cmp ecx, dword [ebp - 0xc]
jge 0x4ea2ab
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x10]
jmp 0x4ea1e0
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ea2e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 8], eax
push ebx
mov ebx, edx
push esi
test edx, edx
jne 0x4ea2fb
mov dword [ebp - 4], eax
jmp 0x4ea310
cmp byte [edx], al
je 0x4ea305
nop
inc ebx
cmp byte [ebx], al
jne 0x4ea300
sub ebx, edx
and ebx, 0x3fffffff
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov esi, dword [ebx + 4]
mov dword [ebp - 0x10], esi
test esi, esi
jle 0x4ea3fc
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
xor esi, 1
cmp ecx, 2
cmovge esi, ecx
test edi, edi
je 0x4ea393
mov eax, dword [ebx + 8]
mov ecx, esi
mov bl, byte [edi]
add ecx, ecx
mov edx, dword [eax + ecx*8]
test bl, bl
je 0x4ea371
mov al, bl
sub edi, edx
nop dword [eax]
movzx ecx, byte [edx]
mov bl, al
movzx eax, al
mov al, byte [eax + 0x5cfac8]
cmp al, byte [ecx + 0x5cfac8]
jne 0x4ea371
mov al, byte [edi + edx + 1]
inc edx
mov bl, al
test al, al
jne 0x4ea350
movzx eax, byte [edx]
movzx ecx, byte [eax + 0x5cfac8]
movzx eax, bl
movzx eax, byte [eax + 0x5cfac8]
sub eax, ecx
jne 0x4ea409
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 8]
add esi, esi
mov ebx, dword [ebp - 4]
mov ecx, dword [eax + esi*8 + 0xc]
add ecx, 8
mov dword [ebp - 8], ecx
cmp dword [ecx + 0xc], 0
je 0x4ea3dd
mov edi, edx
mov esi, ebx
xor edx, edx
test ebx, ebx
je 0x4ea3d5
movzx eax, byte [edi]
lea edi, [edi + 1]
dec esi
movzx ecx, byte [eax + 0x5cfac8]
lea eax, [edx*8]
xor ecx, eax
xor edx, ecx
test esi, esi
jg 0x4ea3b5
mov ecx, dword [ebp - 8]
mov eax, edx
xor edx, edx
div dword [ecx]
jmp 0x4ea3df
xor edx, edx
push edx
push ebx
push dword [ebp + 0xc]
push ecx
call fcn.004ce000
add esp, 0x10
test eax, eax
je 0x4ea402
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
test eax, eax
je 0x4ea40c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x4ea40c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
inc ecx
mov dword [ebp - 0xc], ecx
cmp ecx, dword [ebp - 0x10]
jge 0x4ea3fb
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
jmp 0x4ea327
Function at 0x4eb540
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x10
mov eax, dword [eax]
push esi
xor esi, esi
test dword [eax + 0xc], 0x4000000
je 0x4eb67d
mov eax, dword [ebp + 0xc]
push ebx
push edi
mov ebx, dword [eax + 0x24]
test ebx, ebx
je 0x4eb598
mov edi, dword [ebx + 0x14]
test edi, edi
jle 0x4eb58e
lea edx, [ebx + 0x24]
mov ecx, dword [edx]
cmp ecx, 0x1f
jle 0x4eb57d
or eax, 0xffffffff
jmp 0x4eb584
mov eax, 1
shl eax, cl
or esi, eax
add edx, 8
sub edi, 1
jne 0x4eb571
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x4eb567
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edi, ecx
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x4eb5b6
cmp byte [ecx], 0
je 0x4eb5ae
inc edi
cmp byte [edi], 0
jne 0x4eb5a8
sub edi, ecx
and edi, 0x3fffffff
mov eax, dword [eax + 0x44]
xor edx, edx
add eax, 0x38
mov dword [ebp - 4], edi
mov dword [ebp - 8], eax
cmp dword [eax + 0xc], edx
je 0x4eb602
mov dword [ebp - 0xc], ecx
mov ebx, edi
test edi, edi
je 0x4eb5f7
mov edi, ecx
movzx eax, byte [edi]
lea edi, [edi + 1]
dec ebx
movzx ecx, byte [eax + 0x5cfac8]
lea eax, [edx*8]
xor ecx, eax
xor edx, ecx
test ebx, ebx
jg 0x4eb5d4
mov edi, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 8]
mov eax, edx
xor edx, edx
div dword [ebx]
mov eax, ebx
push edx
push edi
push ecx
push eax
call fcn.004ce000
add esp, 0x10
test eax, eax
je 0x4eb674
mov ebx, dword [eax + 8]
test ebx, ebx
je 0x4eb674
nop dword [eax]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004d3050
mov edx, dword [ebp - 8]
add esp, 0x14
test edx, edx
je 0x4eb66d
mov edi, dword [edx + 4]
test edi, edi
jle 0x4eb66d
mov edx, dword [edx + 8]
nop dword [eax]
mov ecx, dword [edx]
cmp ecx, 0x1f
jle 0x4eb65c
or eax, 0xffffffff
jmp 0x4eb663
mov eax, 1
shl eax, cl
or esi, eax
add edx, 4
sub edi, 1
jne 0x4eb650
mov ebx, dword [ebx + 0xc]
test ebx, ebx
jne 0x4eb620
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x50bcc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
jle 0x50bcf0
push ebx
mov ebx, dword [ebp + 8]
movzx eax, byte [ebx]
lea ecx, [esi*8]
dec edi
lea ebx, [ebx + 1]
movzx edx, byte [eax + 0x5cfac8]
xor edx, ecx
xor esi, edx
test edi, edi
jg 0x50bcd2
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x512b10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bb917
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x649ffc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [ebp + 8], 0
mov esi, dword [ebp + 0xc]
je 0x512bc4
xor eax, eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x218]
push eax
push 0
push 0xffffffffffffffff
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x512b6e
xor al, al
jmp 0x512cac
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00409872
lea eax, [ebp - 0x248]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x230]
call fcn.0049ea30
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0040e1e0
lea ecx, [ebp - 0x230]
call fcn.0049ea70
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0xffffffff
call fcn.00409de3
jmp 0x512bd3
push esi
push 0x6c
call fcn.004ab7f0
add esp, 8
test al, al
je 0x512b67
lea eax, [ebp - 0x268]
mov dword [ebp - 0x268], str.Microsoft
push eax
lea eax, [ebp - 0x230]
mov dword [ebp - 0x264], 9
push eax
mov ecx, esi
call fcn.0049ee10
push eax
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.0040e1e0
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0xffffffff
call fcn.0049ea70
lea eax, [ebp - 0x268]
mov dword [ebp - 0x268], str.Internet_Explorer
push eax
lea eax, [ebp - 0x230]
mov dword [ebp - 0x264], 0x11
push eax
mov ecx, esi
call fcn.0049ee10
push eax
mov ecx, esi
mov dword [ebp - 4], 3
call fcn.0040e1e0
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0xffffffff
call fcn.0049ea70
lea eax, [ebp - 0x270]
mov dword [ebp - 0x270], str.Quick_Launch
push eax
lea eax, [ebp - 0x260]
mov dword [ebp - 0x26c], 0xc
push eax
mov ecx, esi
call fcn.0049ee10
push eax
mov ecx, esi
mov dword [ebp - 4], 4
call fcn.0040e1e0
lea ecx, [ebp - 0x260]
call fcn.0049ea70
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056e987
mov esp, ebp
pop ebp
ret

Function at 0x5139e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [ecx + 4]
push esi
mov esi, dword [ecx]
sub eax, esi
sar eax, 2
test eax, eax
je 0x513a51
push ebx
push edi
mov edi, eax
mov ebx, dword [esi]
lea esi, [esi + 4]
movzx edx, al
movzx ecx, bl
xor edx, ecx
shr eax, 8
mov ecx, ebx
shr ecx, 8
xor eax, dword [edx*4 + 0x5d7950]
movzx edx, cl
movzx ecx, al
xor edx, ecx
shr eax, 8
mov ecx, ebx
shr ebx, 0x18
shr ecx, 0x10
xor eax, dword [edx*4 + 0x5d7950]
movzx edx, cl
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x5d7950]
movzx ecx, al
xor ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x5d7950]
sub edi, 1
jne 0x5139f3
pop edi
pop ebx
pop esi
ret
Function at 0x515350
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bbd8a
mov eax, dword fs:[0]
push eax
sub esp, 0x148
push esi
mov eax, dword [0x649ffc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, dword [ebp + 8]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x51544b
push 1
push 2
lea ecx, [ebp - 0xa4]
call fcn.00405fae
push 0x600638
push 0xffffffffffffffff
push str._vs.
push dword [esi]
lea eax, [ebp - 0xa4]
mov dword [ebp - 4], 0
push 0x600644
push str.slot_____DWORD_0xFFFFFFFF_
push eax
call fcn.00407ad3
add esp, 8
push eax
call fcn.00407ad3
add esp, 8
mov ecx, eax
call fcn.00440a5a
push eax
call fcn.00407ad3
add esp, 8
mov ecx, eax
call fcn.00440a5a
push eax
call fcn.00407ad3
push 0x18
call fcn.0056e9a6
add esp, 0xc
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x515415
push eax
lea ecx, [ebp - 0xa4]
call fcn.00405ef1
mov esi, eax
jmp 0x515417
xor esi, esi
lea ecx, [ebp - 0xa4]
mov dword [ebp - 4], 0xffffffff
call fcn.00405bba
test esi, esi
je 0x51544b
push esi
push 0x12
push str.e:others360downloadmanager_src_base_threading_thread_local_win.cc
lea ecx, [ebp - 0x154]
call fcn.004a07e0
lea ecx, [ebp - 0x154]
call fcn.004a08f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5158f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x649ffc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x515913
test eax, eax
jne 0x5159b9
mov eax, dword [0x649c6c]
cmp eax, 0xffffffff
je 0x5159b9
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x5159b8
push esi
push edi
lea eax, [ebp - 0x104]
mov ecx, 0x40
push eax
push dword [0x649c6c]
mov esi, ebx
lea edi, [ebp - 0x104]
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.0056ebf4
add esp, 4
mov edi, 0x40
mov esi, dword [0x6503a0]
xor dl, dl
test esi, esi
jle 0x51599f
mov ecx, dword [ebp + esi*4 - 0x104]
test ecx, ecx
je 0x51599a
mov eax, dword [esi*4 + 0x6503a8]
test eax, eax
je 0x51599a
push ecx
mov dword [ebp + esi*4 - 0x104], 0
call eax
add esp, 4
mov dl, 1
dec esi
test esi, esi
jg 0x515971
dec edi
test edi, edi
jle 0x5159a8
test dl, dl
jne 0x515965
push 0
push dword [0x649c6c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056e987
mov esp, ebp
pop ebp
ret 0xc
Function at 0x518361
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov cl, byte [ebp + 8]
mov eax, dword [esi + 8]
mov byte [esi + 0x13], cl
test eax, eax
je 0x5183da
test cl, cl
je 0x518383
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x5183da
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
mov edx, 0x10000000
test edx, ecx
jne 0x5183a4
mov byte [esi + 0x10], 1
jmp 0x5183b4
and eax, 0x21000000
neg eax
sbb al, al
and al, 0xfe
add al, 7
mov byte [esi + 0x10], al
and ecx, 0x31000000
cmp ecx, edx
jne 0x5183da
push 4
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov ecx, esi
call sym.yuntun.exe_protected:_void___thiscall_DuiLib::CShadowUI::Update_struct_HWND____
pop esi
pop ebp
ret 4
Function at 0x51a61c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x649ffc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, ecx
push ebx
mov ecx, eax
mov dword [ebp - 0x214], edx
push esi
mov esi, dword [ebp + 0xc]
shr ecx, 0x10
push edi
test cx, cx
je 0x51a684
cmp word [eax], 0x3c
lea ebx, [edx + 0x28]
mov ecx, ebx
jne 0x51a676
push eax
call sym.yuntun.exe_public:_bool___thiscall_DuiLib::CMarkup::Load_wchar_t_const__
test al, al
jne 0x51a6e8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056e987
leave
ret 8
push 0
push eax
call sym.yuntun.exe_public:_bool___thiscall_DuiLib::CMarkup::LoadFromFile_wchar_t_const___int_
test al, al
je 0x51a663
jmp 0x51a6e8
push esi
push eax
call sym.yuntun.exe_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x51a663
push edi
call sym.yuntun.exe_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push edi
test ebx, ebx
jne 0x51a6b4
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x51a663
call sym.yuntun.exe_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, dword [ebp - 0x214]
push 0
push esi
add ebx, 0x28
push eax
mov ecx, ebx
call sym.yuntun.exe_public:_bool___thiscall_DuiLib::CMarkup::LoadFromMem_unsigned_char___unsigned_long_int__int_
test al, al
je 0x51a663
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea eax, [ebp - 0x210]
mov ecx, ebx
push eax
call sym.yuntun.exe_public:_class_DuiLib::CMarkupNode___thiscall_DuiLib::CMarkup::GetRoot_void_
sub esp, 0x20c
mov esi, eax
mov edi, esp
mov ecx, 0x83
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x214]
call sym.yuntun.exe_public:_int___thiscall_DuiLib::CResourceManager::LoadResource_class_DuiLib::CMarkupNode_
jmp 0x51a665