joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403eb8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4040e8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403f3b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4040e8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403f3b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404104
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403fc4
xor eax, eax
push ebp
push 0x403fbd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00403d00
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x403fa2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404124
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x403fa2
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403fc4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4040de
cmp byte [ebp - 0xd], 0
jne 0x40400b
cmp byte [ebp - 0x12], 0
je 0x4040de
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404024
dec ebx
cmp byte [ebx], 0x2e
je 0x404033
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404023
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4040de
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404070
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4040de
cmp byte [ebp - 0xd], 0
je 0x4040de
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4040de
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403fc4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4040e8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403f3b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4040e8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403f3b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404104
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403fc4
xor eax, eax
push ebp
push 0x403fbd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00403d00
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x403fa2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404124
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x403fa2
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403fc4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4040de
cmp byte [ebp - 0xd], 0
jne 0x40400b
cmp byte [ebp - 0x12], 0
je 0x4040de
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404024
dec ebx
cmp byte [ebx], 0x2e
je 0x404033
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404023
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4040de
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404070
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4040de
cmp byte [ebp - 0xd], 0
je 0x4040de
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4040de
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405f54
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x405f8d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004036c4
jmp 0x405f96
mov eax, ebx
mov edx, esi
call fcn.00403628
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405fa0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x405fc1
mov al, byte [esp]
jmp 0x405fc3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x406648
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x4064c0
mov eax, dword [0x408394]
cmp byte [eax], 0
je 0x4066b5
mov eax, dword [0x4082f0]
call fcn.004026b0
call fcn.004025d8
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004053ac
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4066fc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4066eb
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4082d4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x409710]
call fcn.00403cc4
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40707c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x4070e0
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403818
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00405280
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4070e7
lea eax, [ebp - 0xc]
call fcn.004035d4
ret
Function at 0x407c18
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, dword [0x408394]
mov byte [eax], 1
mov eax, 0x407bd8
call fcn.00404414
xor eax, eax
mov dword [0x409858], eax
push 0x409858
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x407c63
mov ecx, 0x407cbc
mov dl, 1
mov eax, dword [0x404868]
call fcn.00406700
call fcn.00403034
push 0x40984c
push 0x407ce4
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [0x409848], 1
mov dword [0x409854], 2
push 0x40985c
push 0
push 0
push 0x409848
push 0
mov eax, dword [0x409858]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
push 0
push 6
call sub.user32.dll_ExitWindowsEx
call fcn.004034e4
add byte [eax], al
add bh, bh
invalid
Function at 0x401d60
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x440388
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x260
mov eax, dword [0x4551e4]
mov dword [esp + 0x25c], eax
mov eax, dword [ecx + 4]
test eax, eax
mov dword [esp + 0x268], 0
jne 0x401dcc
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 0x401dc5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x401ebf
push esi
mov esi, dword [esp + 0x274]
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
push str.__t__q__s:cn__r:WNGA
mov dword [esp + 0xc], eax
push esi
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x64]
mov dword [esp + 0x18], eax
push 0x443c9c
push ecx
mov dword [esp + 0x28], 0x44
mov dword [esp + 0x24], eax
call fcn.0042396a
add esp, 0x10
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 0x401e96
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 8]
push ecx
call edi
mov ecx, dword [0x45616c]
push 0x443c80
call fcn.00408490
lea eax, [esi - 0x10]
mov dword [esp + 0x270], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401e8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
jmp 0x401ebd
lea eax, [esi - 0x10]
mov dword [esp + 0x270], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401ebb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x25c]
call fcn.00423492
add esp, 0x26c
ret 4
Function at 0x401ef0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x440388
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x260
mov eax, dword [0x4551e4]
push ebx
mov dword [esp + 0x260], eax
mov ebx, ecx
mov eax, dword [ebx + 8]
test eax, eax
mov dword [esp + 0x26c], 0
je 0x401f62
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 0x401f58
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
jmp 0x402091
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x401f9c
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 0x401f95
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x402091
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 0x443ce8
push ecx
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x20], eax
call fcn.0042396a
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 0x402069
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
mov dword [ebx + 8], 1
mov ecx, dword [0x45616c]
push 0x443cd4
call fcn.00408490
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 0x402062
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
jmp 0x402090
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 0x40208e
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.00423492
add esp, 0x26c
ret 4
Function at 0x4020e0
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 0x4020fb
pop edi
pop ebx
ret 0xc
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x402111
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 0x402132
cmp esi, eax
jae 0x402109
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402124
cmp esi, eax
jae 0x402109
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret 0xc

Function at 0x402260
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4403a8
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
call fcn.0043d155
movzx ecx, word [esp + 0x28]
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x40]
push 0x443cf0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4022ae
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
push edi
call fcn.0043d155
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.0043d155
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.00438b88
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [esp + 0x20], 0
lea ecx, [esp + 8]
jne 0x402329
mov dword [esp + 0x20], 0xffffffff
call fcn.00438798
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.004384ac
lea ecx, [esp + 8]
call fcn.004386f7
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.00438798
mov ecx, dword [esp + 0x18]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8

Function at 0x4033a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4551e4]
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 0x443cf8
push ecx
call fcn.00423ed7
lea edx, [esp + 0xc]
push edx
push 0x443ce8
add esi, 0x10
push esi
call fcn.00403000
mov ecx, dword [esp + 0x220]
add esp, 0x14
pop esi
call fcn.00423492
add esp, 0x20c
ret
Function at 0x4038f0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
mov eax, dword [ecx + 0x14]
mov edx, dword [eax - 4]
push esi
lea esi, [ecx + 0x14]
sub eax, 0x10
mov ecx, 1
sub ecx, edx
mov edx, dword [eax + 8]
sub edx, 0x104
or ecx, edx
jge 0x40391d
push 0x104
mov ecx, esi
call fcn.004024c0
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 0x40393f
push eax
call fcn.00423ded
add esp, 4
test eax, eax
jl 0x403984
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x403984
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
push str.Shiqiang_
mov word [ecx + eax*2], 0
call fcn.00423ded
add esp, 4
push eax
push str.Shiqiang_
mov ecx, esi
call fcn.00402b50
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x403982
mov edx, dword [esi]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
ret
push 0x80070057
call fcn.004020c0
int3

Function at 0x403990
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4404bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7d8
mov eax, dword [0x4551e4]
push esi
push edi
mov esi, ecx
mov dword [esp + 0x7dc], eax
push str.wnsoft.ini
lea eax, [esi + 0x14]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.00403020
mov edi, dword [esp + 8]
push edi
push 0x104
lea edx, [esp + 0x14]
push edx
push 0x443d70
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, 0x18
call fcn.00423ded
add esp, 4
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00402960
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 0x403a41
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.00423492
add esp, 0x7e4
ret
Function at 0x404cc0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x440780
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.0043836f
mov ebx, eax
push edi
push ebx
call fcn.00423f01
add esp, 0xc
cmp esi, ebp
jl 0x404deb
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 0x404d33
test ax, ax
jne 0x404dd5
mov ecx, dword [esp + 0x14]
add ecx, ebx
push ecx
lea ecx, [esp + 0x14]
mov word [edi], 0
call fcn.00403ca0
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0x44]
add esi, 0x40
test eax, eax
lea edx, [edi + ebp]
mov byte [esp + 0x2c], 1
mov dword [esp + 0x14], edx
jne 0x404d66
xor edx, edx
jmp 0x404d6e
mov edx, dword [esi + 8]
sub edx, eax
sar edx, 2
test eax, eax
je 0x404da0
mov ecx, dword [esi + 0xc]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x404da0
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.00403620
add ebp, 4
mov dword [esi + 8], ebp
mov ebp, dword [esp + 0x20]
jmp 0x404db2
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
push edx
push 1
push eax
mov ecx, esi
call fcn.00403ec0
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 0x404dd5
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 0x404d21
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 0x404e11
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 0x4063d0
Capabilities:
Delete file
Get common file path
Get program files directory
Get startup folder

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x524
mov eax, dword [0x4551e4]
push ebx
push esi
push edi
push 0x104
mov dword [esp + 0x530], eax
mov ebx, ecx
call fcn.0043836f
push 0x208
mov dword [ebx], eax
call fcn.0043836f
mov edi, dword [ebx]
mov dword [ebx + 4], eax
xor eax, eax
mov ecx, 0x41
rep stosd dword es:[edi], eax
mov edi, dword [ebx + 4]
mov ecx, 0x41
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, dword [ebx]
mov ecx, 7
mov esi, str.clientBegin:gf
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 0x10]
mov ecx, dword [ebx + 4]
push 0x104
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x28], edx
call fcn.0042407a
add esp, 0x14
mov word [esp + 0x118], 0
xor eax, eax
push 0
mov ecx, 0x81
lea edi, [esp + 0x11e]
rep stosd dword es:[edi], eax
push 0x26
lea edx, [esp + 0x120]
push edx
push 0
stosw word es:[edi], ax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x4064b8
push eax
push 0x4443d4
push 0x4443ac
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov ecx, dword [esp + 0x52c]
call fcn.00423492
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x118]
push eax
call fcn.00423ded
add esp, 4
push eax
lea ecx, [esp + 0x11c]
lea esi, [ebx + 0x1c]
push ecx
mov ecx, esi
call fcn.00402960
mov ecx, ebx
call fcn.004033a0
mov ecx, ebx
call fcn.004038f0
mov ecx, ebx
call fcn.00403990
mov ecx, ebx
call fcn.00403400
mov edx, dword [ebx + 0x14]
push edx
lea eax, [esp + 0x324]
push 0x443ce8
push eax
call fcn.0042396a
lea ecx, [esp + 0x32c]
push str.Setup.ini
push ecx
call fcn.00423ed7
add esp, 0x14
push 0x8e
lea edx, [esp + 0x324]
push edx
mov ecx, ebx
call fcn.00402260
test eax, eax
je 0x4064a3
lea eax, [esp + 0x320]
push eax
mov ecx, ebx
call fcn.00404e30
lea ecx, [esp + 0x320]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.00402a30
mov eax, dword [eax]
push 0x443cf8
push eax
call fcn.00423d1d
add esp, 8
test eax, eax
mov eax, dword [esp + 0xc]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40659c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x4065ac
push 0x443cf8
mov ecx, esi
call fcn.004030e0
mov ecx, dword [esp + 0x52c]
mov eax, 1
call fcn.00423492
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret