joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459550
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, dword [0x56953c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4595eb
sub esp, 0x30
lea ecx, [esp + 0x34]
mov dword [esp + 4], ecx
mov edx, dword [0x56953c]
mov edx, dword fs:[edx]
mov edx, dword [edx]
mov dword [esp + 8], 0
lea edi, [esp + 0xc]
xor eax, eax
call fcn.00462067
lea ecx, [sym.runtime.callers.func1]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
lea ecx, [esp + 8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0xc]
mov dword [esp], ecx
call sym.runtime.systemstack
mov ecx, dword [esp + 8]
mov dword [esp + 0x44], ecx
add esp, 0x30
ret
call sym.runtime.morestack_noctxt
jmp sym.runtime.callers
Function at 0x45ec40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x56953c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x45edd3
sub esp, 0x24
mov eax, dword [esp + 0x28]
test byte [eax], al
lea ecx, [eax + 0x18]
mov dword [esp + 0x20], ecx
nop
mov dword [esp], ecx
call sym.runtime.lock2
mov eax, dword [esp + 0x28]
movzx ecx, byte [eax + 0x1c]
test cl, cl
jne 0x45edbc
mov byte [eax + 0x1c], 1
inc dword [eax + 0x24]
inc dword [eax + 0x60]
mov dword [esp], eax
call sym.runtime._pollDesc_.publishInfo
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], 0x72
mov byte [esp + 8], 0
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], ecx
call sym.runtime.netpollunblock
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x28]
mov dword [esp], ecx
mov dword [esp + 4], 0x77
mov byte [esp + 8], 0
lea edx, [esp + 0x14]
mov dword [esp + 0xc], edx
call sym.runtime.netpollunblock
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x3c]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x18], edx
test ecx, ecx
je 0x45ed28
lea ecx, [eax + 0x28]
mov dword [esp], ecx
call sym.runtime.deltimer
mov eax, dword [0x5695d8]
test eax, eax
jne 0x45ed0f
mov eax, dword [esp + 0x28]
jmp 0x45ed1d
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x3c]
call sym.runtime.gcWriteBarrier1
mov dword [edi], ecx
mov dword [eax + 0x3c], 0
mov edx, dword [esp + 0x18]
mov ecx, dword [eax + 0x78]
test ecx, ecx
je 0x45ed5f
lea ecx, [eax + 0x64]
mov dword [esp], ecx
call sym.runtime.deltimer
mov eax, dword [0x5695d8]
test eax, eax
jne 0x45ed4a
mov eax, dword [esp + 0x28]
jmp 0x45ed58
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x78]
call sym.runtime.gcWriteBarrier1
mov dword [edi], ecx
mov dword [eax + 0x78], 0
nop
nop
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym.runtime.unlock2
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x45ed85
mov dword [esp], eax
mov dword [esp + 4], 3
call sym.runtime.netpollgoready
mov eax, dword [esp + 0x18]
test eax, eax
je 0x45ed9d
mov dword [esp], eax
mov dword [esp + 4], 3
call sym.runtime.netpollgoready
mov eax, dword [esp + 0x14]
test eax, eax
je 0x45edb8
nop
lea ecx, [0x56949c]
mov dword [esp], ecx
mov dword [esp + 4], eax
call sym.runtime_internal_atomic.Xadd
add esp, 0x24
ret
lea eax, [0x4a58ef]
mov dword [esp], eax
mov dword [esp + 4], 0x24
call sym.runtime.throw
nop
call sym.runtime.morestack_noctxt
jmp sym.internal_poll.runtime_pollUnblock

Function at 0x461d60
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x569426], 0
je 0x461d7a
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0xc]
lea edx, [esp + 0x10]
jmp sym.aeshashbody
jmp sym.runtime.memhashFallback

Function at 0x461d80
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x569426], 0
je 0x461d9b
mov eax, dword [esp + 4]
mov ebx, dword [eax + 4]
mov eax, dword [eax]
lea edx, [esp + 0xc]
jmp sym.aeshashbody
jmp sym.runtime.strhashFallback
Function at 0x462bc0
Capabilities:
Allocate thread local storage

Disassembly:
mov ebp, esp
mov eax, dword [sym.imp.kernel32.dll_TlsAlloc]
call eax
mov esp, ebp
mov ecx, eax
cmp ecx, 0x40
jb 0x462bda
mov ecx, 0x14
jmp 0x462be3
shl ecx, 2
add ecx, 0xe10
mov dword [0x56953c], ecx
ret
Function at 0x488dd0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [0x56953c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x488e71
sub esp, 0x10
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [esp + 0x18]
cmp dword [edx], ecx
jne 0x488e67
movzx ecx, byte [eax + 4]
cmp byte [edx + 4], cl
jne 0x488e67
movzx ecx, byte [eax + 5]
cmp byte [edx + 5], cl
jne 0x488e67
movzx ecx, byte [eax + 6]
cmp byte [edx + 6], cl
jne 0x488e67
movzx ecx, byte [eax + 7]
cmp byte [edx + 7], cl
jne 0x488e67
movzx ecx, byte [eax + 8]
cmp byte [edx + 8], cl
jne 0x488e67
movzx ecx, byte [eax + 9]
cmp byte [edx + 9], cl
jne 0x488e67
movzx ecx, byte [eax + 0xa]
cmp byte [edx + 0xa], cl
jne 0x488e67
movzx ecx, byte [eax + 0xb]
cmp byte [edx + 0xb], cl
jne 0x488e67
movzx ecx, byte [eax + 0xc]
cmp byte [edx + 0xc], cl
jne 0x488e67
add eax, 0x10
mov dword [esp], eax
lea eax, [edx + 0x10]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x4c
call sym.runtime.memequal
movzx eax, byte [esp + 0xc]
jmp 0x488e69
xor eax, eax
mov byte [esp + 0x1c], al
add esp, 0x10
ret
call sym.runtime.morestack_noctxt
jmp sym.type:.eq.fmt.fmt
Function at 0x401da0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x44be18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x260
mov eax, dword [0x46420c]
mov dword [esp + 0x25c], eax
mov eax, dword [ecx + 4]
test eax, eax
mov dword [esp + 0x268], 0
jne 0x401e0c
mov eax, dword [esp + 0x270]
add eax, 0xfffffff0
mov dword [esp + 0x268], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401e05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x401f01
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x274]
push str.__t__q__s:cn__r:WNGA
mov dword [esp + 8], eax
push edi
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x60]
mov dword [esp + 0x14], eax
push 0x44fcbc
push ecx
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x20], eax
call fcn.0042b87a
add esp, 0x10
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x78]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401ed9
mov edx, dword [esp + 4]
push esi
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
mov ecx, dword [0x46532c]
push 0
push 0x44fca0
call fcn.0040a230
lea eax, [edi - 0x10]
mov dword [esp + 0x270], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
pop esi
jg 0x401ed2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
jmp 0x401f00
lea eax, [edi - 0x10]
mov dword [esp + 0x26c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401efe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
pop edi
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x25c]
call fcn.0042b3a1
add esp, 0x26c
ret 4
Function at 0x401f30
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x44be18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x260
mov eax, dword [0x46420c]
push ebx
mov dword [esp + 0x260], eax
mov ebx, ecx
mov eax, dword [ebx + 8]
test eax, eax
mov dword [esp + 0x26c], 0
je 0x401fa2
mov eax, dword [esp + 0x274]
add eax, 0xfffffff0
mov dword [esp + 0x26c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401f98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
jmp 0x4020d3
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x401fdc
mov eax, dword [esp + 0x274]
add eax, 0xfffffff0
mov dword [esp + 0x26c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401fd5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x4020d3
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x278]
mov dword [esp + 8], eax
push edi
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x60]
mov dword [esp + 0x14], eax
push 0x44fd08
push ecx
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x20], eax
call fcn.0042b87a
add esp, 0xc
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x7c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4020ab
mov edx, dword [esp + 8]
push esi
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
push 0
mov dword [ebx + 8], 1
mov ecx, dword [0x46532c]
push 0x44fcf4
call fcn.0040a230
lea eax, [edi - 0x10]
mov dword [esp + 0x274], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
pop esi
jg 0x4020a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
jmp 0x4020d2
lea eax, [edi - 0x10]
mov dword [esp + 0x270], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4020d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
pop edi
mov ecx, dword [esp + 0x264]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x260]
pop ebx
call fcn.0042b3a1
add esp, 0x26c
ret 4
Function at 0x402120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40213b
pop edi
pop ebx
ret 0xc
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x402151
pop esi
pop edi
xor eax, eax
pop ebx
ret 0xc
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402172
cmp esi, eax
jae 0x402149
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402164
cmp esi, eax
jae 0x402149
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret 0xc

Function at 0x402cd0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x46420c]
push esi
push 0
mov dword [esp + 0x214], eax
push 0x20
lea eax, [esp + 0x10]
push eax
push 0
mov dword [esp + 0x14], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x402d07
push 0x44fd64
jmp 0x402d1e
lea ecx, [esp + 8]
push str.Content.IE5_
push ecx
call fcn.0042be5b
add esp, 8
lea edx, [esp + 8]
push edx
mov esi, dword [esp + 0x21c]
mov ecx, esi
call fcn.004028f0
mov ecx, dword [esp + 0x210]
mov eax, esi
pop esi
call fcn.0042b3a1
add esp, 0x210
ret 4

Function at 0x402d50
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x44bec8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
lea eax, [esp + 4]
push eax
mov esi, ecx
call fcn.00402cd0
mov ecx, dword [esp + 4]
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, dword [esp + 4]
jne 0x402da8
add eax, 0xfffffff0
mov dword [esp + 0x10], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x402dcc
push eax
mov ecx, esi
call fcn.00402990
mov eax, dword [esp + 4]
add eax, 0xfffffff0
mov dword [esp + 0x10], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402dd6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x403300
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x128
mov eax, dword [0x46420c]
push esi
push edi
mov esi, ecx
mov dword [esp + 0x12c], eax
xor eax, eax
mov ecx, 0x47
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
mov dword [esi + 0x334], 0
mov dword [esp + 0xc], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0xc], 6
jne 0x40337b
mov eax, dword [esp + 0x10]
test eax, eax
mov eax, 1
jne 0x403380
cmp byte [esp + 0x122], al
jne 0x403380
mov dword [esi + 0x334], eax
mov ecx, dword [esp + 0x12c]
call fcn.0042b3a1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
mov ecx, dword [esp + 0x12c]
call fcn.0042b3a1
pop edi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x428
mov eax, dword [0x46420c]
push esi
push edi
mov dword [esp + 0x42c], eax
mov esi, ecx
xor eax, eax
mov word [esp + 0x18], 0
mov ecx, 0x81
lea edi, [esp + 0x1a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push str.Software_risingRav
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4034e9
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push 0x44fef4
push ecx
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x18]
push eax
call fcn.0042baa6
add esp, 4
cmp eax, 1
jb 0x4034e9
lea ecx, [esp + 0x18]
push ecx
call fcn.0042baa6
mov ax, word [esp + eax*2 + 0x1a]
add esp, 4
cmp ax, 0x5c
je 0x403478
cmp ax, 0x2f
je 0x403478
lea edx, [esp + 0x18]
push 0x44fef0
push edx
call fcn.0042be5b
add esp, 8
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x224]
push str._sRsMain.exe
push ecx
call fcn.0042b87a
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
lea edx, [esp + 0x18]
push edx
call edi
test eax, eax
jne 0x4034c8
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x224]
push str._sRav.exe
push ecx
call fcn.0042b87a
add esp, 0xc
lea edx, [esp + 0x18]
push edx
call edi
test eax, eax
je 0x4034e9
mov dword [esi + 0x338], 1
mov eax, 1
mov ecx, dword [esp + 0x42c]
call fcn.0042b3a1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x42c]
xor eax, eax
call fcn.0042b3a1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403520
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44bee8
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
call fcn.00448bdd
movzx ecx, word [esp + 0x28]
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x40]
push 0x44ff34
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40356e
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
push edi
call fcn.00448bdd
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x40]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
call fcn.00448bdd
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x40]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x28]
push 0x1001
push edx
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.00444610
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [esp + 0x20], 0
lea ecx, [esp + 8]
jne 0x4035e9
mov dword [esp + 0x20], 0xffffffff
call fcn.00444220
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
push esi
push edi
call fcn.00443f34
lea ecx, [esp + 8]
call fcn.0044417f
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.00444220
mov ecx, dword [esp + 0x18]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8

Function at 0x404210
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x46420c]
push esi
mov dword [esp + 0x20c], eax
push 0x104
lea eax, [esp + 8]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp + 4]
push 0x44fef0
push ecx
call fcn.0042be5b
lea edx, [esp + 0xc]
push edx
push 0x44fd08
add esi, 0x218
push esi
call fcn.00402810
mov ecx, dword [esp + 0x220]
add esp, 0x14
pop esi
call fcn.0042b3a1
add esp, 0x20c
ret
Function at 0x4047c0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
mov eax, dword [ecx + 0x21c]
mov edx, dword [eax - 4]
push esi
lea esi, [ecx + 0x21c]
sub eax, 0x10
mov ecx, 1
sub ecx, edx
mov edx, dword [eax + 8]
sub edx, 0x104
or ecx, edx
jge 0x4047f3
push 0x104
mov ecx, esi
call fcn.004022f0
mov eax, dword [esi]
push 0
push 0x2b
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [esi]
test eax, eax
je 0x404819
push eax
call fcn.0042baa6
add esp, 4
test eax, eax
jl 0x4048ab
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x4048ab
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
push 0x44fef0
mov word [ecx + eax*2], 0
call fcn.0042baa6
add esp, 4
push eax
push 0x44fef0
mov ecx, esi
call fcn.00403b80
mov eax, dword [esi]
mov ecx, dword [eax - 4]
sub eax, 0x10
cmp ecx, 1
jle 0x404861
mov edx, dword [eax + 4]
push edx
mov ecx, esi
call fcn.004021d0
mov eax, dword [esi]
push 0x10000000
push str.Everyone
push eax
mov ecx, 0x465328
call fcn.00411a30
push str.Shiqiang_
call fcn.0042baa6
add esp, 4
push eax
push str.Shiqiang_
mov ecx, esi
call fcn.00403b80
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4048a9
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
ret
push 0x80070057
call fcn.00402100
int3

Function at 0x4048c0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x44c01b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7d8
mov eax, dword [0x46420c]
push esi
push edi
mov esi, ecx
mov dword [esp + 0x7dc], eax
push str.wnsoft.ini
lea eax, [esi + 0x21c]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.00403e70
mov edi, dword [esp + 8]
push edi
push 0x104
lea edx, [esp + 0x14]
push edx
push 0x44fd64
push str.StartInstallPath
push str.Globals
mov dword [esp + 0x800], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0xc]
push eax
add esi, 0x220
call fcn.0042baa6
add esp, 4
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004024b0
lea eax, [edi - 0x10]
mov dword [esp + 0x7e8], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
pop edi
pop esi
jg 0x404977
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x7d8]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x7d4]
call fcn.0042b3a1
add esp, 0x7e4
ret
Function at 0x406140
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x44c3f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], ecx
mov edi, dword [esp + 0x34]
mov esi, dword [edi - 0xc]
lea eax, [esi + esi + 2]
xor ebp, ebp
push eax
mov dword [esp + 0x30], ebp
call fcn.00443df7
mov ebx, eax
push edi
push ebx
call fcn.0042be85
add esp, 0xc
cmp esi, ebp
jl 0x406271
mov dword [esp + 0x14], ebp
mov ebp, 2
sub ebp, ebx
inc esi
mov edi, ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], esi
mov ax, word [edi]
cmp ax, 0x7c
je 0x4061b3
test ax, ax
jne 0x40625b
mov ecx, dword [esp + 0x14]
add ecx, ebx
push ecx
lea ecx, [esp + 0x14]
mov word [edi], 0
call fcn.004028f0
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0x254]
add esi, 0x250
test eax, eax
lea edx, [edi + ebp]
mov byte [esp + 0x2c], 1
mov dword [esp + 0x14], edx
jne 0x4061ec
xor edx, edx
jmp 0x4061f4
mov edx, dword [esi + 8]
sub edx, eax
sar edx, 2
test eax, eax
je 0x406226
mov ecx, dword [esi + 0xc]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x406226
mov eax, dword [esp + 0x34]
mov ebp, dword [esi + 8]
push eax
push esi
lea ecx, [esp + 0x18]
push ecx
push 1
push ebp
call fcn.004044f0
add ebp, 4
mov dword [esi + 8], ebp
mov ebp, dword [esp + 0x20]
jmp 0x406238
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
push edx
push 1
push eax
mov ecx, esi
call fcn.00404f80
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40625b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add edi, 2
dec eax
mov dword [esp + 0x18], eax
jne 0x4061a1
mov edi, dword [esp + 0x34]
lea eax, [edi - 0x10]
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
pop ebp
pop ebx
jg 0x406297
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x4062b0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x44c3f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], ecx
mov edi, dword [esp + 0x34]
mov esi, dword [edi - 0xc]
lea eax, [esi + esi + 2]
xor ebp, ebp
push eax
mov dword [esp + 0x30], ebp
call fcn.00443df7
mov ebx, eax
push edi
push ebx
call fcn.0042be85
add esp, 0xc
cmp esi, ebp
jl 0x4063e1
mov dword [esp + 0x14], ebp
mov ebp, 2
sub ebp, ebx
inc esi
mov edi, ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], esi
mov ax, word [edi]
cmp ax, 0x7c
je 0x406323
test ax, ax
jne 0x4063cb
mov ecx, dword [esp + 0x14]
add ecx, ebx
push ecx
lea ecx, [esp + 0x14]
mov word [edi], 0
call fcn.004028f0
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0x278]
add esi, 0x274
test eax, eax
lea edx, [edi + ebp]
mov byte [esp + 0x2c], 1
mov dword [esp + 0x14], edx
jne 0x40635c
xor edx, edx
jmp 0x406364
mov edx, dword [esi + 8]
sub edx, eax
sar edx, 2
test eax, eax
je 0x406396
mov ecx, dword [esi + 0xc]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x406396
mov eax, dword [esp + 0x34]
mov ebp, dword [esi + 8]
push eax
push esi
lea ecx, [esp + 0x18]
push ecx
push 1
push ebp
call fcn.004044f0
add ebp, 4
mov dword [esi + 8], ebp
mov ebp, dword [esp + 0x20]
jmp 0x4063a8
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
push edx
push 1
push eax
mov ecx, esi
call fcn.00404f80
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4063cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add edi, 2
dec eax
mov dword [esp + 0x18], eax
jne 0x406311
mov edi, dword [esp + 0x34]
lea eax, [edi - 0x10]
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
pop ebp
pop ebx
jg 0x406407
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4