joyce8/EMBER2024-capa huggingface dataset:
Function at 0x494250
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x220
mov eax, dword [0x5ea2c4]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x18], ebx
push 0x206
mov esi, ecx
lea ecx, [esp + 0x26]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], ebx
mov word [esp + 0x2c], ax
call fcn.0052e300
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0x20019
push ebx
push 0x59ace8
push accept
call edi
test eax, eax
je 0x4942da
push ebx
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 0x59b2fc
mov word [esi + 4], ax
call fcn.00406150
jmp 0x4943b5
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push ebx
push str.shell
push edx
call edi
test eax, eax
je 0x4942ff
mov edx, 0x59b2fc
jmp 0x4943ae
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebx
push str.opencommand
push ecx
call edi
test eax, eax
jne 0x4942f5
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebx
push 0x59b2fc
push edx
mov dword [esp + 0x34], 0x104
mov dword [esp + 0x30], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call edi
mov ecx, dword [esp + 0x10]
push ecx
call edi
lea edx, [esp + 0x20]
push edx
call fcn.00529fdf
push 0x5ad968
push eax
call fcn.00527ed8
add esp, 0xc
cmp eax, ebx
je 0x4942f5
lea edi, [eax + 2]
push 0x5ad968
push edi
call fcn.00527ed8
add esp, 8
cmp eax, ebx
je 0x4942f5
xor ecx, ecx
push edi
mov word [eax], cx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, 0x59b2fc
test eax, eax
je 0x4943ae
mov edx, edi
mov eax, esi
call fcn.00406240
mov ecx, dword [esp + 0x228]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.005273c3
add esp, 0x220
ret

Function at 0x494490
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [esi + 4], eax
mov ecx, 1
lea edx, [esi + 8]
push edi
lea esp, [esp]
mov edi, eax
shr edi, 0x1e
xor edi, eax
imul edi, edi, 0x6c078965
lea eax, [edi + ecx]
mov dword [edx], eax
inc ecx
add edx, 4
cmp ecx, 0x270
jl 0x4944a0
mov dword [esi], 0x270
pop edi
ret
Function at 0x4949c0
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
push edi
lea ecx, [esi + 0x9c4]
mov edi, 0xe3
lea ecx, [ecx]
mov eax, dword [ecx + 4]
xor eax, dword [ecx]
and eax, 0x7fffffff
xor eax, dword [ecx]
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0x9908b0df
xor edx, dword [ecx + 0x634]
shr eax, 1
xor edx, eax
mov dword [ecx - 0x9c0], edx
add ecx, 4
sub edi, 1
jne 0x4949d0
lea ecx, [esi + 0xd50]
mov edi, 0x18c
mov ebp, 0x26f
mov eax, dword [ecx]
xor eax, dword [ecx + 4]
and eax, 0x7fffffff
xor eax, dword [ecx]
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0x9908b0df
xor edx, dword [ecx - 0xd4c]
shr eax, 1
xor edx, eax
mov dword [ecx - 0x9c0], edx
add ecx, 4
sub edi, 1
jne 0x494a16
mov eax, dword [esi + ebp*4 + 0x9c4]
xor eax, dword [esi + 4]
and eax, 0x7fffffff
xor eax, dword [esi + ebp*4 + 0x9c4]
mov ecx, eax
and cl, 1
movzx edx, cl
neg edx
sbb edx, edx
and edx, 0x9908b0df
xor edx, dword [esi + 0x634]
shr eax, 1
xor edx, eax
mov dword [esi + ebp*4 + 4], edx
mov dword [esi], edi
pop edi
pop ebp
ret

Function at 0x494a90
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
push esi
push edi
add eax, 0x638
mov ebp, 0x68
lea ecx, [ecx]
mov esi, dword [eax - 0x630]
mov ecx, dword [eax - 0x634]
xor ecx, esi
and ecx, 0x7fffffff
xor ecx, dword [eax - 0x634]
mov edi, dword [eax - 0x62c]
mov edx, ecx
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0x9908b0df
shr ecx, 1
xor edx, ecx
xor edx, dword [eax]
mov ecx, edi
mov dword [eax + 0x38c], edx
xor ecx, esi
and ecx, 0x7fffffff
xor ecx, esi
mov edx, ecx
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
mov esi, dword [eax - 0x628]
and edx, 0x9908b0df
xor edx, dword [eax + 4]
shr ecx, 1
xor edx, ecx
mov dword [eax + 0x390], edx
mov ecx, esi
xor ecx, edi
and ecx, 0x7fffffff
xor ecx, edi
mov edi, dword [eax - 0x624]
mov edx, ecx
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0x9908b0df
xor edx, dword [eax + 8]
shr ecx, 1
xor edx, ecx
mov dword [eax + 0x394], edx
mov ecx, edi
xor ecx, esi
and ecx, 0x7fffffff
xor ecx, esi
mov esi, dword [eax - 0x620]
mov edx, ecx
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0x9908b0df
xor edx, dword [eax + 0xc]
shr ecx, 1
xor edx, ecx
mov dword [eax + 0x398], edx
mov ecx, esi
xor ecx, edi
and ecx, 0x7fffffff
xor ecx, edi
mov edx, ecx
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0x9908b0df
xor edx, dword [eax + 0x10]
shr ecx, 1
xor edx, ecx
mov ecx, dword [eax - 0x61c]
xor ecx, esi
and ecx, 0x7fffffff
xor ecx, esi
mov dword [eax + 0x39c], edx
mov edx, ecx
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0x9908b0df
xor edx, dword [eax + 0x14]
shr ecx, 1
xor edx, ecx
mov dword [eax + 0x3a0], edx
add eax, 0x18
sub ebp, 1
jne 0x494aa0
pop edi
pop esi
pop ebp
ret
Function at 0x495c50
Capabilities:
Check os version

Disassembly:
sub esp, 0x130
mov eax, dword [0x5ea2c4]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
mov ebx, dword [esp + 0x138]
push ebp
push esi
lea esi, [ebx + 0x210]
push edi
mov edi, dword [esi + 0x10]
xor ebp, ebp
cmp dword [esi + 0xc], edi
jbe 0x495c84
call fcn.00527d8a
mov ecx, dword [esi + 0xc]
mov eax, dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
cmp ecx, dword [esi + 0x10]
jbe 0x495c9f
call fcn.00527d8a
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [esi]
push edi
push edx
push ecx
push eax
lea edi, [esp + 0x28]
call fcn.004960a0
push 0x114
lea eax, [esp + 0x24]
push 0
push eax
call fcn.0052e300
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x30], 2
jne 0x495ce8
push ebx
call fcn.00495550
jmp 0x495d02
xor edi, edi
lea ebx, [ebx]
test ebp, ebp
jne 0x495d02
push ebx
call fcn.004958a0
inc edi
cmp edi, 0xa
mov ebp, eax
jl 0x495cf0
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x4bda12f7
imul ecx
mov ecx, dword [esp + 0x13c]
pop edi
sar edx, 7
pop esi
pop ebp
mov eax, edx
shr eax, 0x1f
pop ebx
xor ecx, esp
add eax, edx
call fcn.005273c3
add esp, 0x130
ret 4
Function at 0x495d40
Capabilities:
Print debug messages

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
add ebx, 0x210
push esi
mov esi, dword [ebx + 0xc]
push edi
mov dword [esp + 0x10], ebx
cmp esi, dword [ebx + 0x10]
jbe 0x495d62
call fcn.00527d8a
mov edi, dword [ebx]
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [esp + 0x18], esi
add esi, 0x28
mov dword [esp + 0x20], esi
mov esi, dword [ebx + 0x10]
cmp dword [ebx + 0xc], esi
jbe 0x495d82
call fcn.00527d8a
mov eax, dword [ebx]
test edi, edi
je 0x495d8c
cmp edi, eax
je 0x495d91
call fcn.00527d8a
cmp dword [esp + 0x18], esi
je 0x495ef0
mov ebx, dword [esp + 0x24]
add ebx, 0xa8
push ebx
call ebp
push 0x5d2d74
call ebp
test edi, edi
jne 0x495e52
call fcn.00527d8a
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x10]
jb 0x495dcc
call fcn.00527d8a
mov esi, dword [esp + 0x20]
sub esi, 0xffffff80
push esi
call ebp
push 0x5d2d74
call ebp
mov eax, dword [esp + 0x24]
add eax, 0x28
push eax
call ebp
push 0x5d2d74
call ebp
test edi, edi
jne 0x495e59
call fcn.00527d8a
xor eax, eax
mov edx, dword [esp + 0x18]
cmp edx, dword [eax + 0x10]
jb 0x495e07
call fcn.00527d8a
mov eax, dword [esp + 0x20]
push eax
call ebp
push 0x5d2d74
call ebp
test edi, edi
jne 0x495e5d
call fcn.00527d8a
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x10]
jb 0x495e2e
call fcn.00527d8a
mov ecx, esi
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x495e61
test dl, dl
je 0x495e4e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x495e61
add eax, 2
add ecx, 2
test dl, dl
jne 0x495e32
xor eax, eax
jmp 0x495e66
mov eax, dword [edi]
jmp 0x495dbe
mov eax, dword [edi]
jmp 0x495df9
mov eax, dword [edi]
jmp 0x495e20
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x495ebd
test edi, edi
jne 0x495eb0
call fcn.00527d8a
xor eax, eax
mov edx, dword [esp + 0x18]
cmp edx, dword [eax + 0x10]
jb 0x495e83
call fcn.00527d8a
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
add eax, 0x28
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x495eb4
test dl, dl
je 0x495eac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x495eb4
add eax, 2
add ecx, 2
test dl, dl
jne 0x495e90
xor eax, eax
jmp 0x495eb9
mov eax, dword [edi]
jmp 0x495e75
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x495f1f
test edi, edi
jne 0x495eec
call fcn.00527d8a
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x10]
jb 0x495ed6
call fcn.00527d8a
mov ebx, dword [esp + 0x10]
mov eax, 0x1b0
add dword [esp + 0x18], eax
add dword [esp + 0x20], eax
jmp 0x495d75
mov eax, dword [edi]
jmp 0x495ec8
mov esi, dword [esp + 0x24]
lea eax, [esi + 0xa8]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x495f00
sub eax, edx
je 0x495f1f
push esi
mov edi, ebx
call fcn.00495f30
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret 8
Function at 0x4970e0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x589eb0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x5ea2c4]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x5c]
xor edi, edi
xor eax, eax
mov word [esp + 0x30], ax
mov eax, edx
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], edi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x497124
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x34]
call fcn.00406150
mov dword [esp + 0x50], edi
xor ecx, ecx
mov eax, ebx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], edi
mov word [esp + 0x14], cx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x497160
sub eax, edx
sar eax, 1
push eax
push ebx
lea esi, [esp + 0x18]
call fcn.00406150
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x2c]
mov byte [esp + 0x50], 1
mov edx, dword [ecx + 0x20]
mov edx, dword [edx + 8]
add ecx, 0x20
push eax
mov eax, esi
push eax
call edx
mov esi, 8
cmp dword [esp + 0x28], esi
jb 0x4971ae
mov eax, dword [esp + 0x14]
push eax
call fcn.005273b8
add esp, 4
xor ecx, ecx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], edi
mov word [esp + 0x14], cx
cmp dword [esp + 0x44], esi
jb 0x4971d4
mov edx, dword [esp + 0x30]
push edx
call fcn.005273b8
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x44
ret 8
Function at 0x49a0d0
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x42c
mov eax, dword [0x5ea2c4]
xor eax, esp
mov dword [esp + 0x428], eax
mov eax, dword [esp + 0x430]
push esi
lea ecx, [esp + 4]
push ecx
xor esi, esi
push 9
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push reloc.WS2_32.dll_accept
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x49a134
xor eax, eax
pop esi
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.005273c3
add esp, 0x42c
ret 4
push ebp
push 0x206
lea eax, [esp + 0x26]
xor edx, edx
push esi
push eax
mov word [esp + 0x2c], dx
call fcn.0052e300
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
add esp, 0xc
push 0x104
lea ecx, [esp + 0x24]
push ecx
push esi
push edx
call ebp
test eax, eax
jne 0x49a22d
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ebx, [eax + 1]
lea ebx, [ebx]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x49a20f
push 0x206
push eax
lea ecx, [esp + 0x23a]
push ecx
mov dword [esp + 0x28], 0x104
mov word [esp + 0x23c], ax
call fcn.0052e300
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x234]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push str.DisplayName
push edx
mov dword [esp + 0x3c], ebx
call edi
test eax, eax
jne 0x49a204
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x234]
push ecx
call fcn.00527ed8
add esp, 8
test eax, eax
je 0x49a204
mov dword [esp + 0x18], ebx
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
push 0x104
lea eax, [esp + 0x2c]
push eax
add esi, ebx
push esi
push ecx
call ebp
test eax, eax
je 0x49a180
pop edi
pop ebx
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x430]
mov eax, dword [esp + 0x10]
pop ebp
pop esi
xor ecx, esp
call fcn.005273c3
add esp, 0x42c
ret 4
Function at 0x49a770
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x589e66
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x5ea2c4]
xor eax, esp
mov dword [esp + 0x244], eax
push ebx
push ebp
push esi
mov eax, dword [0x5ea2c4]
xor eax, esp
push eax
lea eax, [esp + 0x25c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x26c]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x56]
push ecx
mov word [esp + 0x58], ax
call fcn.0052e300
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add esp, 0xc
push 0
push 0x19
lea edx, [esp + 0x54]
push edx
push 0
call ebx
test eax, eax
je 0x49a891
xor eax, eax
mov word [esp + 0x34], ax
lea eax, [esp + 0x4c]
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49a804
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x50]
push ecx
lea esi, [esp + 0x38]
call fcn.00406150
push 1
push 0x5a9d50
mov eax, esi
mov dword [esp + 0x26c], 0
call fcn.00404070
cmp dword [esp + 0x48], 8
mov ecx, dword [esp + 0x34]
jae 0x49a84a
lea ecx, [esp + 0x34]
mov edx, ebp
call fcn.0049a980
mov esi, eax
test esi, esi
je 0x49a872
cmp dword [esp + 0x48], 8
jb 0x49a86b
mov edx, dword [esp + 0x34]
push edx
call fcn.005273b8
add esp, 4
mov eax, esi
jmp 0x49a94b
mov dword [esp + 0x264], 0xffffffff
cmp dword [esp + 0x48], 8
jb 0x49a891
mov eax, dword [esp + 0x34]
push eax
call fcn.005273b8
add esp, 4
push 0
push 0x10
lea ecx, [esp + 0x54]
push ecx
push 0
call ebx
test eax, eax
je 0x49a949
xor edx, edx
lea eax, [esp + 0x4c]
mov word [esp + 0x18], dx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49a8c4
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x50]
push eax
lea esi, [esp + 0x1c]
call fcn.00406150
push 1
push 0x5a9d50
mov eax, esi
mov dword [esp + 0x26c], 1
call fcn.00404070
mov ecx, dword [esp + 0x18]
mov ebx, 8
cmp dword [esp + 0x2c], ebx
jae 0x49a90e
lea ecx, [esp + 0x18]
mov edx, ebp
call fcn.0049a980
mov esi, eax
test esi, esi
je 0x49a936
cmp dword [esp + 0x2c], ebx
jb 0x49a86b
mov ecx, dword [esp + 0x18]
push ecx
call fcn.005273b8
add esp, 4
mov eax, esi
jmp 0x49a94b
cmp dword [esp + 0x2c], ebx
jb 0x49a949
mov edx, dword [esp + 0x18]
push edx
call fcn.005273b8
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x25c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.005273c3
add esp, 0x258
ret 4
Function at 0x49b3e0
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0x63c
mov eax, dword [0x5ea2c4]
xor eax, esp
mov dword [esp + 0x638], eax
xor eax, eax
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x2a]
push edx
mov word [esp + 0x18], ax
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov word [esp + 0x2a], ax
mov word [esp + 0x2c], cx
call fcn.0052e300
add esp, 0xc
push 0x104
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 3
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00528d34
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x446]
push ecx
mov word [esp + 0x448], ax
call fcn.0052e300
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x24a]
push eax
mov word [esp + 0x24c], dx
call fcn.0052e300
add esp, 0x24
push 0x104
lea ecx, [esp + 0x22c]
push ecx
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0x104
lea edx, [esp + 0x448]
push edx
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x49b4ff
mov ecx, dword [esp]
push ecx
push str._08X
push esi
call fcn.00527adc
add esp, 0xc
mov ecx, dword [esp + 0x638]
xor ecx, esp
call fcn.005273c3
add esp, 0x63c
ret
mov eax, 0x59b2fc
mov edx, esi
sub edx, eax
jmp 0x49b510
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x49b510
mov ecx, dword [esp + 0x638]
xor ecx, esp
call fcn.005273c3
add esp, 0x63c
ret
Function at 0x49c570
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x5ea2c4]
xor eax, esp
mov dword [esp + 0x410], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.0052e300
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x21e]
push eax
mov word [esp + 0x220], dx
call fcn.0052e300
add esp, 0x18
push 0
push 0x2b
lea ecx, [esp + 8]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x49c5d2
mov edx, dword [str._shiqiang_]
mov ecx, dword [0x5d3188]
mov dword [eax], edx
mov edx, dword [0x5d318c]
mov dword [eax + 4], ecx
mov ecx, dword [0x5d3190]
mov dword [eax + 8], edx
mov edx, dword [0x5d3194]
mov dword [eax + 0xc], ecx
mov cx, word [0x5d3198]
mov dword [eax + 0x10], edx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea edx, [esp + 4]
push edx
mov word [eax + 0x14], cx
call esi
test eax, eax
jne 0x49c633
push eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
jmp 0x49c640
movzx ecx, word [esp + eax + 4]
mov word [esp + eax + 0x20c], cx
add eax, 2
test cx, cx
jne 0x49c640
lea eax, [esp + 0x20c]
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x49c660
mov ecx, dword [str.wnsoft.ini]
mov edx, dword [0x5d31a0]
mov dword [eax], ecx
mov ecx, dword [0x5d31a4]
mov dword [eax + 4], edx
mov edx, dword [0x5d31a8]
mov dword [eax + 8], ecx
mov ecx, dword [0x5d31ac]
mov dword [eax + 0xc], edx
mov dx, word [0x5d31b0]
mov dword [eax + 0x10], ecx
mov word [eax + 0x14], dx
lea eax, [esp + 4]
push eax
call esi
test eax, eax
je 0x49c721
mov edx, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [esp + 0x20c]
push ecx
push edx
push str.OnlyIdentifier1
push str.Globals
call esi
mov ecx, dword [edi]
lea eax, [esp + 0x20c]
push eax
add ecx, 0x208
push ecx
push str.OnlyIdentifier2
push str.Globals
call esi
mov eax, dword [edi]
lea edx, [esp + 0x20c]
push edx
add eax, 0x410
push eax
push str.OnlyIdentifier3
push str.Globals
call esi
mov edx, dword [edi]
lea ecx, [esp + 0x20c]
push ecx
add edx, 0x618
push edx
push str.OnlyIdentifier4
push str.Globals
call esi
mov ecx, dword [esp + 0x414]
pop esi
xor ecx, esp
call fcn.005273c3
add esp, 0x414
ret
Function at 0x49c740
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push str.software
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x49c81a
mov edx, dword [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push eax
push 0xf003f
push eax
push eax
push eax
push str.ShiQiang
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x49c81a
mov eax, dword [edi]
mov ecx, dword [esp]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x104
push eax
push 1
push 0
push str.OnlyIdentifier1
push ecx
call esi
mov edx, dword [edi]
mov eax, dword [esp + 4]
push 0x104
add edx, 0x208
push edx
push 1
push 0
push str.OnlyIdentifier2
push eax
call esi
mov ecx, dword [edi]
mov edx, dword [esp + 4]
push 0x104
add ecx, 0x410
push ecx
push 1
push 0
push str.OnlyIdentifier3
push edx
call esi
mov eax, dword [edi]
mov ecx, dword [esp + 4]
push 0x104
add eax, 0x618
push eax
push 1
push 0
push str.OnlyIdentifier4
push ecx
call esi
mov edx, dword [esp + 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
pop esi
add esp, 8
ret
Function at 0x4a3d90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x588cb8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ea2c4]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, ecx
mov ebp, dword [esp + 0x8c]
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 4]
mov esi, dword [edi + 0x14]
sub eax, 2
mov ebx, 1
cmp esi, eax
ja 0x4a3dfa
cmp dword [edi + 0x18], eax
je 0x4a3dfa
push ebx
push eax
call fcn.00405af0
test al, al
je 0x4a3dfa
cmp dword [edi + 0x18], 0x10
mov dword [edi + 0x14], esi
jb 0x4a3df3
mov eax, dword [edi + 4]
jmp 0x4a3df6
lea eax, [edi + 4]
mov byte [eax + esi], 0
mov esi, dword [ebp + 4]
mov ecx, dword [ebp + 8]
sub ecx, ebx
add esi, ebx
mov dword [esp + 0x18], ecx
cmp esi, ecx
je 0x4a3fcc
jmp 0x4a3e16
mov ecx, dword [esp + 0x18]
mov al, byte [esi]
add esi, ebx
mov byte [esp + 0x20], al
cmp al, 0x22
je 0x4a3fcc
cmp al, 0x5c
jne 0x4a3f1a
cmp esi, ecx
je 0x4a3f35
mov al, byte [esi]
movsx eax, al
add esi, ebx
add eax, 0xffffffde
mov dword [esp + 0x8c], esi
cmp eax, 0x53
ja case.0x4a3e57.35
movzx eax, byte [eax + 0x4a400c]
jmp dword [eax*4 + 0x4a3fe4]
push 0x22
jmp 0x4a3f1f
push 0x2f
jmp 0x4a3f1f
push 0x5c
jmp 0x4a3f1f
push 8
jmp 0x4a3f1f
push 0xc
jmp 0x4a3f1f
push 0xa
jmp 0x4a3f1f
push 0xd
jmp 0x4a3f1f
push 9
jmp 0x4a3f1f
mov eax, dword [esp + 0x88]
lea edx, [esp + 0x1c]
push edx
push ecx
push ebp
push eax
lea ecx, [esp + 0x9c]
call fcn.004a4060
test al, al
je 0x4a3f70
mov ecx, dword [esp + 0x1c]
push ecx
lea esi, [esp + 0x44]
call fcn.004a2460
add esp, 4
push 0xffffffffffffffff
push 0
push eax
mov esi, edi
mov dword [esp + 0x8c], ebx
call fcn.0040ea40
mov dword [esp + 0x80], 0xffffffff
cmp dword [esp + 0x58], 0x10
jb 0x4a3efc
mov edx, dword [esp + 0x44]
push edx
call fcn.005273b8
add esp, 4
mov esi, dword [esp + 0x8c]
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
jmp 0x4a3f26
mov eax, dword [esp + 0x20]
push eax
mov eax, ebx
call fcn.0040ec40
cmp esi, dword [esp + 0x18]
jne 0x4a3e12
jmp 0x4a3fcc
push str.Empty_escape_sequence_in_string
lea ecx, [esp + 0x60]
call fcn.004057a0
mov edx, dword [esp + 0x88]
push esi
push ebp
lea ecx, [esp + 0x64]
mov dword [esp + 0x88], 0
call fcn.004a4310
cmp dword [esp + 0x74], 0x10
mov bl, al
jb 0x4a3fcc
mov ecx, dword [esp + 0x60]
push ecx
jmp 0x4a3fc4
xor al, al
jmp 0x4a3fce
push 0x1d
push str.Bad_escape_sequence_in_string
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
call fcn.00405bb0
mov edx, dword [esp + 0x88]
push esi
push ebp
lea ecx, [esp + 0x2c]
mov dword [esp + 0x88], 2
call fcn.004a4310
cmp dword [esp + 0x3c], 0x10
mov bl, al
jb 0x4a3fcc
mov edx, dword [esp + 0x28]
push edx
call fcn.005273b8
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret 8