joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000be80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004b976
mov eax, dword fs:[0]
push eax
sub esp, 0x828
mov eax, dword [0x10064244]
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 ebx, ecx
cmp dword [ebx + 0x48], 0
jne 0x1000c03e
lea eax, [ebp - 0x834]
mov dword [ebx + 0x48], 1
push 1
push eax
call fcn.1001bea0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call fcn.10028360
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
add esp, 0x14
push 0x1004e7d4
push dword [ebp - 0x834]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000bf26
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10028360
add esp, 0xc
lea eax, [ebp - 0x218]
push str.ver.json
push eax
lea eax, [ebp - 0x420]
push eax
call esi
lea eax, [ebp - 0x420]
lea ecx, [ebx + 0x68]
push eax
call fcn.1000c060
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.100151d0
push 0x208
mov edi, eax
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.10028360
add esp, 0x14
lea eax, [ebp - 0x218]
push str.cfg.json
push eax
lea eax, [ebp - 0x628]
push eax
call esi
lea eax, [ebp - 0x628]
lea ecx, [ebx + 0x6c]
push eax
call fcn.1000c060
lea eax, [ebx + 0x18]
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.100151d0
push 0x208
mov esi, eax
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.10028360
add esp, 0x14
lea eax, [ebp - 0x218]
push str.slowcfg.json
push eax
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x830]
lea ecx, [ebx + 0x70]
push eax
call fcn.1000c060
lea eax, [ebx + 0x30]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.100151d0
push eax
push esi
push edi
push str.Load_local_cache_cfg__ver_d__allraw_d__slowcfg_d
call fcn.10014700
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x834]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000c03e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
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.1001f0c8
mov esp, ebp
pop ebp
ret
Function at 0x100139b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004cbfb
mov eax, dword fs:[0]
push eax
sub esp, 0x620
mov eax, dword [0x10064244]
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
lea eax, [ebp - 0x62c]
push 1
push eax
call fcn.1001bea0
add esp, 8
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push 0x1004f934
push dword [ebp - 0x62c]
mov dword [ebp - 4], 0
push eax
call esi
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10028360
add esp, 0xc
lea eax, [ebp - 0x218]
push str.ConfigCenter.log.on
push eax
lea eax, [ebp - 0x420]
push eax
call esi
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0x208
mov dword [0x10065dd4], eax
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.10028360
add esp, 0xc
lea eax, [ebp - 0x628]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
push str._cfgcenter.log
push esi
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
push esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10013ab0
sub eax, edx
lea ecx, [edi + 0x2c]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.1000a020
mov edx, dword [ebp - 0x62c]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10013af4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.1001f0c8
mov esp, ebp
pop ebp
ret
Function at 0x10013fd0
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 0x10014029
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10014029
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 0x1001401a
cmp esi, edx
jae 0x10014029
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x10014008
cmp esi, edx
jae 0x10014029
cmp word [esi], 0
je 0x10014029
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x100149d0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
jne 0x100149f4
lea eax, [esi + 0xc]
push eax
push 0
push esi
push 0x10014a60
push 0
push 0
call fcn.1002df5c
add esp, 0x18
mov dword [esi + 8], eax
pop esi
ret
Function at 0x100151d0
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004cdb8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10064244]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10015218
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
push 0
push 0
push 0x80
push 3
push 1
push 0x80000000
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.10015130
mov esi, dword [ebp - 0x20]
test eax, eax
js 0x10015355
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [ebp - 0x18], ebx
cmp ebx, 0xffffffff
jne 0x10015278
call fcn.10014fe0
test eax, eax
js 0x10015355
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
test eax, eax
jb 0x10015355
ja 0x10015355
test ebx, ebx
je 0x10015355
test eax, eax
ja 0x10015355
jb 0x100152a7
cmp ebx, 0x500000
jae 0x10015355
mov edi, dword [ebp + 0xc]
mov edx, dword [edi + 0x10]
cmp ebx, edx
ja 0x100152c4
mov dword [edi + 0x10], ebx
mov eax, edi
cmp dword [edi + 0x14], 0x10
jb 0x100152be
mov eax, dword [edi]
mov byte [eax + ebx], 0
jmp 0x10015311
mov eax, dword [edi + 0x14]
mov ecx, ebx
sub ecx, edx
mov dword [ebp - 0x10], eax
sub eax, edx
mov dword [ebp - 0x14], ecx
cmp ecx, eax
ja 0x100152ff
cmp dword [ebp - 0x10], 0x10
mov eax, edi
mov dword [edi + 0x10], ebx
jb 0x100152e4
mov eax, dword [edi]
push ecx
lea esi, [eax + edx]
push 0
push esi
call fcn.10028360
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov byte [esi + eax], 0
mov esi, dword [ebp - 0x20]
jmp 0x10015311
push 0
push ecx
mov byte [ebp - 0x14], 0
push dword [ebp - 0x14]
push ecx
mov ecx, edi
call fcn.10014d10
cmp dword [edi + 0x14], 0x10
jb 0x10015319
mov edi, dword [edi]
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10015341
call fcn.10014fe0
mov esi, eax
not esi
shr esi, 0x1f
jmp 0x10015357
xor esi, esi
mov eax, 0x80070026
cmp dword [ebp - 0x10], ebx
cmovne esi, eax
not esi
shr esi, 0x1f
jmp 0x10015357
xor esi, esi
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10015365
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10015420
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push 0
push 0
push 0x80
push 2
push 1
push 0x40000000
push dword [ebp + 8]
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.10015130
mov edi, dword [ebp - 8]
test eax, eax
js 0x100154a8
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x10015468
mov eax, dword [eax]
push 0
lea edx, [ebp - 4]
push edx
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10015486
call fcn.10014fe0
mov esi, eax
test esi, esi
js 0x100154a1
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x1001549f
call fcn.10014fe0
mov esi, eax
not esi
shr esi, 0x1f
jmp 0x100154aa
xor esi, esi
not esi
shr esi, 0x1f
jmp 0x100154aa
xor esi, esi
test edi, edi
je 0x100154b5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10016d70
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push dword [ebp + 8]
mov esi, ecx
push 0
push 0
push 1
mov eax, dword [esi + 0x1c]
push 1
push 0
push 0
push 0xcf0000
push eax
push eax
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 0xe0], eax
test eax, eax
jne 0x10016da8
pop esi
pop ebp
ret 4
push esi
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
push dword [esi + 0xe0]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
pop esi
pop ebp
ret 4

Function at 0x10016dd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
push dword [esi + 0xe0]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x10016eda
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x10016df6
xor ecx, ecx
jmp 0x10016e10
mov ecx, edx
push ebx
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016e00
sub ecx, ebx
sar ecx, 1
pop ebx
push ecx
push edx
lea ecx, [esi + 0x1c]
call fcn.1000a020
mov edi, dword [ebp + 8]
test edi, edi
je 0x10016e3e
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016e26
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.1000a020
push dword [0x10066224]
mov ecx, esi
call fcn.10016cf0
test ax, ax
jne 0x10016e65
push 0x1004fb40
call fcn.10014700
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
push dword [0x10066224]
mov ecx, esi
call fcn.10016d70
test eax, eax
jne 0x10016e8b
push 0x1004fb50
call fcn.10014700
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
push edi
push edi
call dword [sym.imp.USER32.dll_FindWindowW]
cmp dword [esi + 0x78], 0
mov dword [esi + 0x20], eax
jne 0x10016eb5
push 0
push 0
push esi
push 0x10017aa0
push 0
push 0
call fcn.1002df5c
add esp, 0x18
mov dword [esi + 0x78], eax
cmp dword [esi + 0xd8], 0
jne 0x10016eda
push 0
push 0
push esi
push 0x100170b0
push 0
push 0
call fcn.1002df5c
add esp, 0x18
mov dword [esi + 0xd8], eax
pop edi
mov eax, 1
pop esi
pop ebp
ret 8
Function at 0x10016ef0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 0xe0]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x10017087
mov edx, dword [ebp + 0xc]
push ebx
push edi
test edx, edx
jne 0x10016f17
xor ecx, ecx
jmp 0x10016f2f
mov ecx, edx
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016f20
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x1c]
call fcn.1000a020
mov edx, dword [ebp + 8]
test edx, edx
je 0x10016f5e
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016f45
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 4]
call fcn.100183c0
mov eax, dword [esi + 0x1c]
mov ebx, dword [esi]
sub ebx, 0x10
mov dword [ebp + 8], eax
lea edi, [eax - 0x10]
cmp edi, ebx
je 0x10016ff6
cmp dword [ebx + 0xc], 0
jl 0x10016feb
mov ecx, dword [edi]
cmp ecx, dword [ebx]
jne 0x10016feb
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
mov ecx, eax
lea eax, [edi + 0xc]
jl 0x10016f99
cmp ecx, dword [edi]
jne 0x10016f99
lock inc dword [eax]
jmp 0x10016fcd
mov eax, dword [ecx]
lea edx, [edi + 4]
push 2
push dword [edx]
mov dword [ebp + 0xc], edx
call dword [eax]
mov edi, eax
test edi, edi
je 0x10017091
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov dword [edi + 4], eax
mov eax, dword [ecx]
inc eax
push eax
push dword [ebp + 8]
push eax
lea eax, [edi + 0x10]
push eax
call fcn.1000bdf0
add esp, 0x10
or eax, 0xffffffff
lea ecx, [ebx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10016fe4
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [edi + 0x10]
mov dword [esi], eax
jmp 0x10016ff6
push dword [eax - 0xc]
mov ecx, esi
push eax
call fcn.1000a020
push dword [0x10066224]
mov ecx, esi
call fcn.10016cf0
pop edi
pop ebx
test ax, ax
jne 0x1001701e
push 0x1004fb40
call fcn.10014700
add esp, 4
xor eax, eax
pop esi
pop ebp
ret 8
push dword [0x10066224]
mov ecx, esi
call fcn.10016d70
test eax, eax
jne 0x10017043
push 0x1004fb50
call fcn.10014700
add esp, 4
xor eax, eax
pop esi
pop ebp
ret 8
cmp dword [esi + 0x78], 0
jne 0x10017062
push 0
push 0
push esi
push 0x10017aa0
push 0
push 0
call fcn.1002df5c
add esp, 0x18
mov dword [esi + 0x78], eax
cmp dword [esi + 0xd8], 0
jne 0x10017087
push 0
push 0
push esi
push 0x100170b0
push 0
push 0
call fcn.1002df5c
add esp, 0x18
mov dword [esi + 0xd8], eax
mov eax, 1
pop esi
pop ebp
ret 8
call fcn.1000a540
int3
Function at 0x10019250
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx]
test ecx, ecx
je 0x1001925f
pop ebp
jmp fcn.10019d60
xor eax, eax
pop ebp
ret 0xc
Function at 0x10019d60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004d290
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10064244]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x34]
mov dword [ebp - 0x18], vtable._BaseModule::CAutoLocker.0
mov dword [ebp - 0x14], edi
test edi, edi
je 0x10019da0
mov eax, dword [edi]
push edi
call dword [eax]
cmp dword [esi + 0x24], 0
mov dword [ebp - 4], 0
jl 0x10019db7
mov esi, 1
jmp 0x10019f04
mov ebx, dword [ebp + 8]
mov dword [esi + 0x24], ebx
test ebx, ebx
jns 0x10019dc8
xor esi, esi
jmp 0x10019f04
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10019dd8
push eax
lea ecx, [esi + 0x30]
call fcn.100193d0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10019dea
push eax
lea ecx, [esi + 0x2c]
call fcn.100193d0
jmp 0x10019e23
lea eax, [ebp + 8]
push ebx
push eax
call fcn.1001c160
add esp, 8
push eax
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 1
call fcn.10014e80
mov edx, dword [ebp + 8]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10019e23
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, esi
call fcn.1001a090
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.1001b7a0
add esp, 8
push dword [ebp - 0x10]
mov byte [ebp - 4], 2
push 0
push str.stat_rand
push str.statistic
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x10019ee0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.1002d4b9
add esp, 4
call fcn.1002d498
cdq
mov ecx, 0x64
idiv ecx
inc edx
mov dword [esi + 0x1c], edx
call fcn.10008030
mov ecx, eax
test ecx, ecx
je 0x10019f2b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
push dword [esi + 0x1c]
lea eax, [ebp + 8]
mov byte [ebp - 4], 3
push 0x100505b4
push eax
call fcn.10010760
mov esi, dword [ebp + 8]
add esp, 0xc
push dword [ebp - 0x10]
push esi
push str.stat_rand
push str.statistic
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10019ee0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov esi, 1
mov byte [ebp - 4], 0
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10019f04
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 4
test edi, edi
je 0x10019f15
mov ecx, dword [edi]
push edi
call dword [ecx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.10003630
int3
Function at 0x10019f40
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004d2c3
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x10064244]
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 ebx, ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], 0
test esi, esi
je 0x10019fe5
cmp word [esi], di
je 0x10019fe5
test eax, eax
je 0x10019fa1
cmp word [eax], di
je 0x10019fa1
push edi
push edi
push eax
push esi
push edi
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
js 0x10019fe5
jmp 0x10019fe0
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10028360
add esp, 0xc
lea eax, [ebp - 0x420]
push 0
push 0
push 0x104
push eax
push esi
push 0
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
js 0x10019fe5
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 1
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x1001a05c
mov eax, dword [ebx + 0x24]
test eax, eax
js 0x1001a047
lea esi, [ebx + 0x34]
mov dword [ebp - method._BaseModule::CAutoLocker.virtual_0], vtable._BaseModule::CAutoLocker.0
mov dword [ebp - 0x428], esi
test esi, esi
je 0x1001a015
mov eax, dword [esi]
push esi
call dword [eax]
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebp + 0x34]
mov byte [ebp - 4], 1
test eax, eax
js 0x1001a036
mov dword [ebp - 0x424], edi
test ecx, ecx
je 0x1001a07c
mov eax, dword [ecx]
lea edx, [ebp - 0x424]
push edx
call dword [eax + 8]
mov ecx, dword [ebp + 0x34]
mov byte [ebp - 4], 2
test esi, esi
je 0x1001a047
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x1001a05c
mov edx, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
xor eax, eax
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.1001f0c8
mov esp, ebp
pop ebp
ret 0x30
call fcn.10018d89
int3
Function at 0x1001d570
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x10064244]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
js 0x1001d6dc
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10028360
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call edi
test esi, esi
jle 0x1001d5df
lea eax, [ebp - 0x20c]
push eax
call edi
sub esi, 1
jne 0x1001d5d1
mov eax, dword [0x100662ec]
mov esi, dword [eax]
cmp esi, eax
je 0x1001d6dc
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
nop word [eax + eax]
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.10028360
add esp, 0xc
lea eax, [ebp - 0x20c]
push dword [esi + 0x14]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [esi + 0x10]
test eax, eax
jne 0x1001d703
cmp ecx, 9
jne 0x1001d694
push 0x208
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.10028360
add esp, 0xc
lea eax, [ebp - 0x414]
push 0
push 0x1a
push eax
push 0
call edi
push str.MasterPDFData
lea eax, [ebp - 0x414]
push eax
call ebx
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x1001d6ef
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x1001d6ba
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x1001d6b6
cmp esi, dword [eax + 8]
jne 0x1001d6b6
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x1001d6a6
mov esi, eax
jmp 0x1001d6d0
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x1001d6d0
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x1001d6c4
cmp esi, dword [0x100662ec]
jne 0x1001d600
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001f0c8
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001f0c8
mov esp, ebp
pop ebp
ret
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001f0c8
mov esp, ebp
pop ebp
ret
Function at 0x1001d7d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001d841
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x1001d80f
cmp eax, 2
jne 0x1001d82b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x1001d83b
test ecx, ecx
je 0x1001d836
test cl, 1
jne 0x1001d82b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x1001d83b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x100207c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
xor al, al
push edi
xor edi, edi
test esi, esi
je 0x10020887
push ebx
mov ecx, dword [ebp + 8]
mov dl, byte [edi + ecx]
xor dl, al
mov cl, dl
shr cl, 1
mov al, cl
xor al, 0x8c
and dl, 1
movzx ebx, al
movzx eax, cl
cmove ebx, eax
mov cl, bl
shr cl, 1
mov al, cl
xor al, 0x8c
and bl, 1
movzx edx, al
movzx eax, cl
cmove edx, eax
mov cl, dl
shr cl, 1
mov al, cl
xor al, 0x8c
and dl, 1
movzx ebx, al
movzx eax, cl
cmove ebx, eax
mov cl, bl
shr cl, 1
mov al, cl
xor al, 0x8c
and bl, 1
movzx edx, al
movzx eax, cl
cmove edx, eax
mov cl, dl
shr cl, 1
mov al, cl
xor al, 0x8c
and dl, 1
movzx ebx, al
movzx eax, cl
cmove ebx, eax
mov cl, bl
shr cl, 1
mov al, cl
xor al, 0x8c
and bl, 1
movzx edx, al
movzx eax, cl
cmove edx, eax
mov cl, dl
shr cl, 1
mov al, cl
xor al, 0x8c
and dl, 1
movzx ebx, al
movzx eax, cl
cmove ebx, eax
mov cl, bl
shr cl, 1
mov al, cl
movzx ecx, cl
xor al, 0x8c
and bl, 1
movzx eax, al
cmove eax, ecx
inc edi
cmp edi, esi
jb 0x100207d5
pop ebx
pop edi
pop esi
pop ebp
ret