joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10197530
Capabilities:
Hash data via bcrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101fd669
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x10285124]
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 dword [ebp - 0x50], edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
call fcn.100fba60
mov edx, esi
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.100fba60
push 8
push 0
push str.SHA1
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 2
push eax
call dword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
js 0x1019765a
push 0
lea eax, [ebp - 0x50]
push eax
push 4
lea eax, [ebp - 0x4c]
push eax
push 0x10255f88
push dword [ebp - 0x48]
call dword [sym.imp.bcrypt.dll_BCryptGetProperty]
test eax, eax
js 0x1019765a
push dword [ebp - 0x4c]
mov ecx, edi
call fcn.10106270
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push 0
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
push 0
push 0
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x48]
call dword [sym.imp.bcrypt.dll_BCryptCreateHash]
test eax, eax
js 0x1019765a
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [ebp - 0x44]
call dword [sym.imp.bcrypt.dll_BCryptHashData]
test eax, eax
js 0x1019765a
push 0
push dword [ebp - 0x4c]
push dword [edi]
push dword [ebp - 0x44]
call dword [sym.imp.bcrypt.dll_BCryptFinishHash]
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x10197668
push eax
call dword [sym.imp.bcrypt.dll_BCryptDestroyHash]
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x10197678
push 0
push eax
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1019768d
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.100a5f10
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp ecx, 0x10
jb 0x101976b4
inc ecx
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.100a5f10
mov eax, edi
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.101b451c
mov esp, ebp
pop ebp
ret
Function at 0x101a07bd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x101d45ad
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.101d4423

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x406400
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x415dcb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x404254
call fcn.00407735
push 4
mov dword [esp + 0x18], 0
call fcn.00408ab1
mov edi, eax
add esp, 4
test edi, edi
je 0x406474
push ebx
call fcn.00407530
mov dword [edi], eax
call fcn.004072ef
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.004076f6
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406468
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.0040771e
pop ebx
jmp 0x406476
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x409521
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x418db0]
jne 0x40952b
repz ret
jmp fcn.0040f71c
Function at 0x413c5c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x418db0]
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.0040b671
and dword [ebp - 0x14], 0
cmp dword [0x463258], 0
mov dword [ebp - 0x18], eax
jne 0x413d0f
push 0x403820
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x413db7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403814
push ebx
call edi
test eax, eax
je 0x413db7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403804
push ebx
mov dword [0x463258], eax
call edi
push eax
call esi
push 0x4037f0
push ebx
mov dword [0x46325c], eax
call edi
push eax
call esi
push 0x4037d4
push ebx
mov dword [0x463260], eax
call edi
push eax
call esi
mov dword [0x463268], eax
test eax, eax
je 0x413d0f
push 0x4037bc
push ebx
call edi
push eax
call esi
mov dword [0x463264], eax
mov eax, dword [0x463264]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x413d68
cmp dword [0x463268], ecx
je 0x413d68
push eax
call esi
push dword [0x463268]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x413d68
test ebx, ebx
je 0x413d68
call edi
test eax, eax
je 0x413d5f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x413d5f
test byte [ebp - 8], 1
jne 0x413d68
or dword [ebp + 0x10], 0x200000
jmp 0x413d9b
mov eax, dword [0x46325c]
cmp eax, dword [ebp - 0x18]
je 0x413d9b
push eax
call esi
test eax, eax
je 0x413d9b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x413d9b
mov eax, dword [0x463260]
cmp eax, dword [ebp - 0x18]
je 0x413d9b
push eax
call esi
test eax, eax
je 0x413d9b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x463258]
call esi
test eax, eax
je 0x413db7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x413db9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409521
leave
ret
Function at 0x415160
Capabilities:
Extract resource via kernel32 functions
Get disk information
Get file attributes
Read .ini file

Disassembly:
mov eax, 0x100c
call fcn.00414aa0
cmp dword [0x6e0b3c], 0x37
jne 0x41520f
push 0x404004
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 0
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x408]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0x404034
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0
lea edx, [esp + 0x80c]
push edx
push 0x404048
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TerminateJobObject]
lea eax, [esp]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
push 0
push 0x404060
push 0
push 0x40406c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringA]
mov ecx, dword [0x6e0b40]
mov eax, dword [0x6db48c]
mov dl, byte [ecx + esi + 0x3a02]
mov byte [eax + esi], dl
add esp, 0x100c
ret
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0x44ec3f
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x44ec3f
lcall 0x5de5, 0x8b10c483
jmp loc.00e9f0b8
Function at 0x40e680
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push esi
push edi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebx, esp
call fcn.0040e697

Function at 0x419940
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi + 8], 0
je 0x4199ca
cmp byte [edi + 1], 0
je 0x4199ca
push ebx
push esi
lea esi, [edi + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [edi + 4]
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
nop word [eax + eax]
cmp esi, 0x14
jl 0x41998b
cmp byte [edi + 3], 0
je 0x41999b
cmp byte [edi + 2], 0
jne 0x41999f
push 0x1f4
inc esi
call ebx
jmp 0x419980
cmp byte [edi + 2], 0
pop esi
pop ebx
jne 0x4199ca
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 4]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [edi + 8], 0
mov eax, dword [edi + 8]
pop edi
test eax, eax
je 0x4199d9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x41b7e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520cab
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x5793bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x21c], 7
push eax
push 0x5255e4
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.0041b090
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004f1300
add esi, 0x11c
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x41b867
mov esi, dword [esi]
push esi
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x5256d8
push 0x5256dc
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x218], 0
jne 0x41b897
xor ecx, ecx
jmp 0x41b8af
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b8a0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.0041b090
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.004f873c
mov ecx, dword [ebp - 0x21c]
add esp, 4
mov esi, eax
cmp ecx, 8
jb 0x41b8ff
inc ecx
push ecx
push dword [ebp - 0x230]
lea ecx, [ebp - 0x230]
call fcn.0041b190
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.0042774d
mov esp, ebp
pop ebp
ret
Function at 0x41b960
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520cf6
mov eax, dword fs:[0]
push eax
sub esp, 0x834
mov eax, dword [0x5793bc]
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, ecx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
cdq
push edx
push eax
lea eax, [ebp - 0x840]
push eax
call fcn.004da88e
add esp, 0xc
xor eax, eax
mov dword [ebp - 4], 0
push 0xffffffffffffffff
push eax
mov word [ebp - 0x828], ax
lea ecx, [ebp - 0x828]
lea eax, [ebp - 0x840]
mov dword [ebp - 0x814], 7
push eax
mov dword [ebp - 0x818], 0
call fcn.0041af70
push 0x800
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.004f1300
add esi, 0x11c
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x41ba0c
mov esi, dword [esi]
cmp dword [ebp - 0x82c], 8
lea ecx, [ebp - 0x810]
push esi
push 0x400
push ecx
lea eax, [ebp - 0x840]
cmovae eax, dword [ebp - 0x840]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x810], 0
jne 0x41ba44
xor ecx, ecx
jmp 0x41ba5f
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41ba50
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x828]
call fcn.0041b090
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.004f873c
mov ecx, dword [ebp - 0x814]
add esp, 4
mov esi, eax
cmp ecx, 8
jb 0x41baaf
inc ecx
push ecx
push dword [ebp - 0x828]
lea ecx, [ebp - 0x828]
call fcn.0041b190
xor eax, eax
mov dword [ebp - 0x814], 7
mov word [ebp - 0x828], ax
mov eax, dword [ebp - 0x82c]
mov dword [ebp - 0x818], 0
cmp eax, 8
jb 0x41baea
inc eax
lea ecx, [ebp - 0x840]
push eax
push dword [ebp - 0x840]
call fcn.0041b190
mov eax, esi
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.0042774d
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41bb10
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add ecx, 0x11c
cmp dword [ecx + 0x14], 8
jb 0x41bb21
mov ecx, dword [ecx]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop ebp
ret 0xc
Function at 0x41bb40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5793bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0x14]
push 0x208
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x20c]
push 0
push eax
mov dword [ebp - 0x218], 0
call fcn.004f1300
add esi, 0x11c
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x41bb9e
mov esi, dword [esi]
push esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
push dword [ebp - 0x214]
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp word [ebp - 0x20c], ax
jne 0x41bbde
xor ecx, ecx
jmp 0x41bbf6
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41bbe7
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.0041b090
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042774d
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41bc20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520d26
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5793bc]
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, ecx
movups xmm0, xmmword [str.identifierBegin:abcdefghijklmnopqrstuvwxyz:identifierEnd]
mov ecx, dword [ebp + 8]
push ecx
movups xmmword [edi], xmm0
mov ecx, edi
movups xmm0, xmmword [0x5255f8]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [0x525608]
movups xmmword [edi + 0x20], xmm0
movq xmm0, qword [0x525618]
movq qword [edi + 0x30], xmm0
mov al, byte [0x525620]
mov byte [edi + 0x38], al
call fcn.0041bd80
lea ebx, [edi + 0x104]
lea esi, [edi + 0x11c]
cmp esi, ebx
je 0x41bca9
push 0xffffffffffffffff
push 0
push ebx
mov ecx, esi
call fcn.0041af70
push 0xf
push str.SvcHostInfo.ini
mov ecx, esi
call fcn.0041c290
cmp dword [esi + 0x14], 8
jb 0x41bcc1
mov eax, dword [esi]
jmp 0x41bcc3
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41bd54
push str.PdZipOverlayout.ini
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.0041b410
add esp, 0xc
mov ebx, eax
cmp esi, ebx
je 0x41bd24
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x41bcfd
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.0041b190
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x41bd15
mov eax, dword [esi]
jmp 0x41bd17
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push ebx
call fcn.0041c020
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp eax, 8
jb 0x41bd40
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0041b190
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov ecx, edi
call fcn.0041be20
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.0042774d
mov esp, ebp
pop ebp
ret 4

Function at 0x41be20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5793bc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.004f1300
lea eax, [esi + 0x11c]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x41be5a
mov eax, dword [eax]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push str.NULL
push str.Spreader
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x20c], 0
jne 0x41be8a
xor ecx, ecx
jmp 0x41bea2
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41be93
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x134]
call fcn.0041b090
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042774d
mov esp, ebp
pop ebp
ret
Function at 0x41c4f0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfa4
mov eax, dword [0x5793bc]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x7d0
lea eax, [ebp - 0xfa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0xfa4]
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
lea eax, [eax + 2]
test cx, cx
jne 0x41c520
mov ecx, dword [0x525784]
mov dword [eax], ecx
mov ecx, dword [0x525788]
mov dword [eax + 4], ecx
mov ecx, dword [str.1Zs]
mov dword [eax + 8], ecx
mov ecx, dword [0x525790]
mov dword [eax + 0xc], ecx
mov cx, word [0x525794]
mov word [eax + 0x10], cx
lea eax, [ebp - 0xfa4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.0042774d
mov esp, ebp
pop ebp
ret
Function at 0x41f160
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5214e8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x5793bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test ecx, ecx
jle 0x41f1b9
xor edx, edx
xor esi, esi
test ecx, ecx
jle 0x41f1b9
nop
mov al, byte [edx + str.GUANGSU]
xor byte [esi + edi], al
lea eax, [edx + 1]
xor edx, edx
inc esi
cmp eax, 7
cmovl edx, eax
cmp esi, ecx
jl 0x41f1a0
lea ecx, [ebp - 0x58]
call fcn.00454300
push 1
push 0
push edi
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
call fcn.00456d30
push str.TheConfigure
lea ecx, [ebp - 0x58]
call fcn.00455110
mov esi, eax
test esi, esi
jne 0x41f211
push str.TheQueryInfo
lea ecx, [ebp - 0x58]
call fcn.00455110
mov esi, eax
test esi, esi
jne 0x41f211
test edi, edi
je 0x41f20a
push 1
push edi
call fcn.0042773f
add esp, 8
xor esi, esi
jmp 0x41f308
push str.JPQuery
mov ecx, esi
call fcn.00455110
test eax, eax
push 0x525c7c
cmove eax, esi
mov ecx, eax
call fcn.00455110
test eax, eax
push str.QueryInstallSoft
cmove eax, esi
mov ecx, eax
mov dword [ebp + 0xc], eax
call fcn.00455110
test eax, eax
je 0x41f285
mov ecx, eax
call fcn.004551b0
test eax, eax
je 0x41f285
mov ecx, str.open
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41f276
test dl, dl
je 0x41f272
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41f276
add eax, 2
add ecx, 2
test dl, dl
jne 0x41f256
xor eax, eax
jmp 0x41f27b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x41f285
mov dword [ebx], 1
mov ecx, dword [ebp + 0xc]
push str.QueryInstallSoftProbability
call fcn.00455110
test eax, eax
je 0x41f2f4
mov ecx, eax
call fcn.004551b0
test eax, eax
je 0x41f2f4
push 0x525cb8
push eax
call fcn.004f8790
mov ecx, eax
add esp, 8
xor ebx, ebx
mov dword [ebp + 0xc], ecx
xor eax, eax
test ecx, ecx
je 0x41f2dc
push 0x525cb8
push eax
call fcn.004f8790
push dword [ebp + 0xc]
mov esi, eax
call fcn.004f8766
push esi
mov ebx, eax
call fcn.004f8766
add esp, 0x10
push eax
push 0
call fcn.004da0ae
add esp, 8
cmp eax, ebx
jle 0x41f2f4
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
test edi, edi
je 0x41f303
push 1
push edi
call fcn.0042773f
add esp, 8
mov esi, 1
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x58], vtable.TiXmlDocument.0
cmp eax, 0x5835ec
je 0x41f322
push eax
call fcn.0042778a
add esp, 4
lea ecx, [ebp - 0x58]
call fcn.004547a0
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 8