joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420e86
Capabilities:
Create directory

Disassembly:
push 0x458
mov eax, 0x5d085a
call fcn.00492e9f
mov esi, dword [ebp + 8]
test esi, esi
jne 0x420ea3
xor eax, eax
jmp 0x420faa
push 0x100
xor ebx, ebx
lea eax, [ebp - 0x110]
push ebx
push eax
call fcn.005a8e00
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.005ac420
push esi
mov edi, ebx
call fcn.005ac520
add esp, 0x18
mov esi, eax
call fcn.0042118b
push eax
lea ecx, [ebp - 0x464]
call fcn.00420a4e
push 0x100
lea eax, [ebp - 0x210]
mov dword [ebp - 4], ebx
push ebx
push eax
call fcn.005a8e00
add esp, 0xc
cmp byte [ebp + esi - 0x111], 0x5c
je 0x420f0c
mov byte [ebp + esi - 0x110], 0x5c
cmp byte [ebp - 0x110], 0
mov esi, dword [ebp - 0x464]
je 0x420f9f
mov al, byte [ebp + edi - 0x110]
cmp al, 0x3a
jne 0x420f2f
push 2
pop eax
jmp 0x420f93
cmp al, 0x5c
jne 0x420f90
push edi
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.005a8300
add esp, 0xc
cmp edi, 0x100
jae 0x420fbf
lea eax, [ebp - 0x210]
mov byte [ebp + edi - 0x210], bl
push eax
lea ecx, [ebp - 0x464]
call fcn.00420b36
mov esi, dword [ebp - 0x464]
lea eax, [ebp - 0x460]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x420f90
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x420fb2
xor eax, eax
inc eax
add edi, eax
cmp byte [ebp + edi - 0x110], 0
jne 0x420f1f
lea ecx, [esi - 0x10]
call fcn.0042159d
xor eax, eax
inc eax
call fcn.00492e49
ret 4
lea ecx, [esi - 0x10]
call fcn.0042159d
jmp 0x420e9c
call fcn.00492b0b
int3

Function at 0x42182b
Capabilities:
Create thread

Disassembly:
mov edx, dword [ecx + 0x300]
or eax, 0xffffffff
cmp edx, eax
je 0x42183d
cmp edx, 1
jne 0x421858
xor eax, eax
push eax
push eax
push ecx
push 0x4215e0
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
ret
Function at 0x42199c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
push edi
mov dword [ebp - 4], eax
lea edi, [eax + 0x210]
mov esi, dword [edi]
mov dword [ebp - 8], edi
cmp esi, dword [eax + 0x214]
je 0x421a69
lea edi, [esi + 0x28]
lea ecx, [ebx + 0xa8]
mov dword [ebp + 8], edi
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x645854
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub edi, 0xffffff80
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x645854
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x645854
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x645854
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebx + 0xa8]
push edi
push eax
call fcn.005b7f70
mov edi, dword [ebp + 8]
pop ecx
pop ecx
test eax, eax
jne 0x421a45
lea eax, [ebx + 0x28]
push edi
push eax
call fcn.005b7f70
pop ecx
pop ecx
test eax, eax
je 0x421a86
mov eax, 0x1b0
lea ecx, [ebx + 0xa8]
add edi, eax
add esi, eax
mov eax, dword [ebp - 4]
mov dword [ebp + 8], edi
cmp esi, dword [eax + 0x214]
jne 0x4219cf
mov edi, dword [ebp - 8]
lea eax, [ebx + 0xa8]
push eax
call fcn.005ac520
pop ecx
test eax, eax
je 0x421a86
push ebx
mov ecx, edi
call fcn.004223c8
mov al, 1
jmp 0x421a88
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42230b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x656514]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, 0x114
push edi
push ebx
xor edi, edi
mov eax, dword [esi + 0x210]
mov dword [esi + 0x214], eax
lea eax, [ebp - 0x118]
push edi
push eax
call fcn.005a8e00
add esp, 0xc
mov dword [ebp - 0x118], ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x42236c
mov ecx, esi
call fcn.00421d62
jmp 0x422381
mov ebx, edi
test edi, edi
jne 0x422381
mov ecx, esi
call fcn.00421c3d
inc ebx
mov edi, eax
cmp ebx, 0xa
jl 0x42236e
mov eax, dword [esi + 0x214]
mov ecx, 0x1b0
sub eax, dword [esi + 0x210]
cdq
idiv ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00492e23
mov esp, ebp
pop ebp
ret

Function at 0x4233f3
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x1c]
push eax
xor eax, eax
push eax
push esi
push 0x4233e1
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x20], eax
test eax, eax
je 0x423429
cmp eax, 0xffffffff
je 0x423429
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x42aa5b
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x42b23d
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 0xb7
mov eax, esi
setne dl
mov dword [esi + 4], edx
pop esi
pop ebp
ret 4
Function at 0x42b99f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x665e74], 0
mov dword [ebp - 8], ecx
je 0x42baf2
add ecx, 8
cmp dword [ecx + 0x14], 8
jb 0x42b9c0
mov ecx, dword [ecx]
push esi
push 0x5d9ed4
push ecx
push dword [0x65603c]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x42baf1
push ebx
push edi
push esi
push dword [0x65603c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [0x65603c]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push edi
push eax
call fcn.005a8300
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 4]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
xor esi, esi
push esi
push dword [ebp - 4]
call fcn.0042c1af
pop ecx
pop ecx
test eax, eax
je 0x42baef
mov ebx, dword [ebp - 8]
mov ecx, 0x665e88
mov dword [ebx + 4], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0042b820
mov eax, dword [ebp - 0xc]
push esi
mov dword [eax + 0x14], ebx
push dword [0x65603c]
push esi
push dword [ebp + 8]
push esi
push esi
push esi
push SysReAllocString
push 0x80880000
push esi
push dword [0x656040]
push 0x80020
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push dword [ebp + 8]
mov dword [ebx + 0x20], eax
call esi
test eax, 0x10000000
jne 0x42baaf
mov byte [ebx + 0x28], 1
jmp 0x42bad5
test eax, 0x21000000
je 0x42babc
mov byte [ebx + 0x28], 5
jmp 0x42bad5
push 8
push dword [ebx + 0x20]
mov byte [ebx + 0x28], 7
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
mov ecx, ebx
call fcn.0042c471
push 0xfffffffffffffffc
push dword [ebp + 8]
call esi
push 0x42c280
push 0xfffffffffffffffc
push dword [ebp + 8]
mov dword [ebx + 0x24], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x42c9be
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc18
mov eax, dword [0x656514]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x208
lea eax, [ebp - 0x61c]
push esi
xor edi, edi
push edi
push eax
call fcn.005a8e00
lea eax, [ebp - 0x61c]
push str.C:log_
push eax
call fcn.005abfd0
push esi
lea eax, [ebp - 0x824]
push edi
push eax
call fcn.005a8e00
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.005a8e00
add esp, 0x2c
lea eax, [ebp - 0x20c]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.005a9145
xor ecx, ecx
push 0x3e8
push edi
mov word [eax], cx
lea eax, [ebp - 0xc10]
push eax
call fcn.005a8e00
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._sgswb.log
push eax
call fcn.0042cdd3
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x414]
add esp, 0x20
push eax
call esi
test eax, eax
je 0x42cb8f
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.005abff2
lea ecx, [ebp - 0x20a]
lea eax, [ecx + eax*2]
push eax
lea eax, [ebp - 0x824]
push eax
call fcn.005abfd0
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._s_s.txt
push eax
call fcn.0042cdd3
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 8]
lea eax, [ebp - 0xc10]
push 0x1f3
push eax
call fcn.00420900
xor eax, eax
add esp, 0x30
mov word [ebp - 0x82a], ax
lea eax, [ebp - 0x414]
push eax
call esi
xor ebx, ebx
inc ebx
test eax, eax
lea eax, [ebp - 0x414]
push 0x5d9074
push eax
cmovne edi, ebx
call fcn.005adc3e
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x42cb8e
test edi, edi
jne 0x42cb34
push esi
push 2
lea eax, [ebp - 0xc18]
mov dword [ebp - 0xc18], 0xfeff
push ebx
push eax
call fcn.005b6566
add esp, 0x10
lea eax, [ebp - 0xc10]
push eax
call fcn.005abff2
push esi
add eax, eax
push eax
lea eax, [ebp - 0xc10]
push ebx
push eax
call fcn.005b6566
push esi
push 2
lea eax, [ebp - 0xc14]
mov dword [ebp - 0xc14], 0xd
push ebx
push eax
call fcn.005b6566
push esi
push 2
lea eax, [ebp - 0xc14]
mov dword [ebp - 0xc14], 0xa
push ebx
push eax
call fcn.005b6566
push esi
call fcn.005b62ae
add esp, 0x38
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00492e23
mov esp, ebp
pop ebp
ret
Function at 0x42cb9f
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2038
call fcn.00492f50
mov eax, dword [0x656514]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x208
lea eax, [ebp - 0x61c]
push edi
xor esi, esi
push esi
push eax
call fcn.005a8e00
lea eax, [ebp - 0x61c]
push str.C:log_
push eax
call fcn.005abfd0
push edi
lea eax, [ebp - 0x824]
push esi
push eax
call fcn.005a8e00
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.005a8e00
add esp, 0x2c
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.005a9145
xor ecx, ecx
push 0x800
push esi
mov word [eax], cx
lea eax, [ebp - 0x1028]
push eax
call fcn.005a8e00
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._sgswb.log
push eax
call fcn.0042cdd3
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x414]
add esp, 0x20
push eax
call edi
test eax, eax
je 0x42cdc3
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.005abff2
lea ecx, [ebp - 0x20a]
lea eax, [ecx + eax*2]
push eax
lea eax, [ebp - 0x824]
push eax
call fcn.005abfd0
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._s_s.txt
push eax
call fcn.0042cdd3
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1028]
push 0x3ff
push eax
call fcn.00420900
push esi
call fcn.005b6ae8
mov dword [ebp - 0x2038], eax
lea eax, [ebp - 0x2038]
push eax
mov dword [ebp - 0x2034], edx
call fcn.005b6a42
lea ecx, [ebp - 0x1028]
push ecx
push dword [eax]
mov ecx, dword [eax + 0x10]
push dword [eax + 4]
inc ecx
push dword [eax + 8]
push dword [eax + 0xc]
mov eax, dword [eax + 0x14]
push ecx
add eax, 0x76c
push eax
lea eax, [ebp - 0x2028]
push str.__d__d__d__d__d__d_:_s
push eax
call fcn.0042cdd3
xor eax, eax
add esp, 0x5c
mov word [ebp - 0x82a], ax
lea eax, [ebp - 0x414]
push eax
call edi
xor ebx, ebx
inc ebx
test eax, eax
lea eax, [ebp - 0x414]
push 0x5d9074
push eax
cmovne esi, ebx
call fcn.005adc3e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x42cdc2
test esi, esi
jne 0x42cd68
push edi
push 2
lea eax, [ebp - 0x2030]
mov dword [ebp - 0x2030], 0xfeff
push ebx
push eax
call fcn.005b6566
add esp, 0x10
lea eax, [ebp - 0x2028]
push eax
call fcn.005abff2
push edi
add eax, eax
push eax
lea eax, [ebp - 0x2028]
push ebx
push eax
call fcn.005b6566
push edi
push 2
lea eax, [ebp - 0x202c]
mov dword [ebp - 0x202c], 0xd
push ebx
push eax
call fcn.005b6566
push edi
push 2
lea eax, [ebp - 0x202c]
mov dword [ebp - 0x202c], 0xa
push ebx
push eax
call fcn.005b6566
push edi
call fcn.005b62ae
add esp, 0x38
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00492e23
mov esp, ebp
pop ebp
ret
Function at 0x42cf65
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x656514]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
xor edi, edi
push edi
push eax
call fcn.005a8e00
add esp, 0xc
lea eax, [ebp - 0x20c]
push edi
push 0x19
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], edi
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
js 0x42d033
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x218]
push edi
push edx
push edi
lea edx, [ebp - 0x20c]
mov dword [ebp - 0x214], edi
push edx
push edi
mov dword [ebp - 0x218], edi
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x42d033
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x214]
push edx
push 0x5ddce0
push edi
push dword [ebp - 0x218]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
js 0x42d033
mov eax, dword [ebp - 0x210]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
push dword [ebp - 0x214]
call fcn.0042cdee
mov eax, dword [ebp - 0x214]
pop ecx
pop ecx
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00492e23
mov esp, ebp
pop ebp
ret

Function at 0x42d1f2
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x656514]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.005a8e00
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push 0x25
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x42d2bf
push str.kernel32.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x42d2bf
push ebx
push esi
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42d2be
push edi
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x42d2bd
push edi
push ebx
push esi
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x42d2b6
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], esi
push eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], esi
push eax
push 0x6411b8
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42d2b6
mov eax, dword [ebp - 0x210]
mov esi, dword [eax + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00492e23
mov esp, ebp
pop ebp
ret
Function at 0x42d2d0
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
mov eax, dword [0x656514]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x2bc]
push eax
xor ebx, ebx
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x2bc], ebx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jne 0x42d361
push edi
mov edi, 0x2b4
lea eax, [ebp - 0x2b8]
push edi
push ebx
push eax
call fcn.005a8e00
add esp, 0xc
lea eax, [ebp - 0x2b8]
push 0x208
push edi
push eax
push ebx
push dword [ebp - 0x2bc]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
pop edi
setne bl
test bl, bl
je 0x42d355
push 0x208
lea eax, [ebp - 0x2ac]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push dword [ebp - 0x2bc]
call dword [sym.imp.SHELL32.dll_ILFree]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.00492e23
mov esp, ebp
pop ebp
ret 8

Function at 0x42d375
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x656514]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
xor edi, edi
push edi
push eax
call fcn.005a8e00
add esp, 0xc
lea eax, [ebp - 0x20c]
push edi
push 0x10
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], edi
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
js 0x42d443
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x218]
push edi
push edx
push edi
lea edx, [ebp - 0x20c]
mov dword [ebp - 0x214], edi
push edx
push edi
mov dword [ebp - 0x218], edi
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x42d443
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x214]
push edx
push 0x5ddce0
push edi
push dword [ebp - 0x218]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
js 0x42d443
mov eax, dword [ebp - 0x210]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
push dword [ebp - 0x214]
call fcn.0042cdee
mov eax, dword [ebp - 0x214]
pop ecx
pop ecx
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00492e23
mov esp, ebp
pop ebp
ret
Function at 0x42ef40
Capabilities:
Check if file exists
Create directory
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc38
mov eax, dword [0x656514]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, 0x208
lea eax, [ebp - 0x61c]
push ebx
xor esi, esi
mov edi, ecx
push esi
push eax
call fcn.005a8e00
push ebx
lea eax, [ebp - 0x824]
push esi
push eax
call fcn.005a8e00
push ebx
lea eax, [ebp - 0xa2c]
push esi
push eax
call fcn.005a8e00
push ebx
lea eax, [ebp - 0xc34]
push esi
push eax
call fcn.005a8e00
push ebx
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.005a8e00
push ebx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.005a8e00
add esp, 0x48
lea eax, [ebp - 0x414]
push esi
push 0x2b
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x414]
push str._shiqiang_
push eax
call fcn.005abf5f
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42eff9
push esi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.005abfd0
lea eax, [ebp - 0x20c]
push str.wnsoft.ini
push eax
call fcn.005abf5f
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x20c]
add esp, 0x10
mov ebx, str.Globals
push eax
push 0x104
lea eax, [ebp - 0x61c]
push eax
push 0x640078
push str.OnlyIdentifier1
push ebx
call esi
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [ebp - 0x824]
push eax
push 0x640078
push str.OnlyIdentifier2
push ebx
call esi
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [ebp - 0xa2c]
push eax
push 0x640078
push str.OnlyIdentifier3
push ebx
call esi
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [ebp - 0xc34]
push eax
push 0x640078
push str.OnlyIdentifier4
push ebx
call esi
lea eax, [ebp - 0x61c]
push eax
call fcn.005abff2
mov esi, eax
lea eax, [ebp - 0x824]
push eax
call fcn.005abff2
mov dword [ebp - 0xc38], eax
lea eax, [ebp - 0xa2c]
push eax
call fcn.005abff2
mov ebx, eax
lea eax, [ebp - 0xc34]
push eax
call fcn.005abff2
add esp, 0x10
test esi, esi
je 0x42f14f
cmp dword [ebp - 0xc38], 0
je 0x42f14f
test ebx, ebx
je 0x42f14f
test eax, eax
je 0x42f14f
lea eax, [ebp - 0x61c]
push eax
push dword [edi]
call fcn.005abfd0
lea eax, [ebp - 0x824]
push eax
mov eax, dword [edi]
add eax, 0x208
push eax
call fcn.005abfd0
lea eax, [ebp - 0xa2c]
push eax
mov eax, dword [edi]
add eax, 0x410
push eax
call fcn.005abfd0
lea eax, [ebp - 0xc34]
push eax
mov eax, dword [edi]
add eax, 0x618
push eax
call fcn.005abfd0
xor eax, eax
add esp, 0x20
inc eax
jmp 0x42f151
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00492e23
mov esp, ebp
pop ebp
ret
Function at 0x42f3fe
Capabilities:
Get mac address on windows

Disassembly:
push 0x48
mov eax, 0x5d155b
call fcn.00492e9f
mov ebx, dword [ebp + 8]
push ebx
mov dword [ebp - 0x48], 4
call fcn.005abff2
push eax
push 0
push ebx
call fcn.005a8e00
push 0x288
call fcn.005ac5b0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x42f597
lea eax, [ebp - 0x48]
push eax
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x42f463
push esi
call fcn.005ac5ab
push dword [ebp - 0x48]
call fcn.005ac5b0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x42f597
lea eax, [ebp - 0x48]
push eax
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x42f590
and dword [ebp - 0x4c], eax
lea edi, [ebp - 0x2a]
push 6
pop ecx
mov word [ebp - 0x2c], ax
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ecx
and dword [ebp - 4], ecx
mov edi, esi
test esi, esi
je 0x42f561
movzx eax, byte [edi + 0x199]
push eax
movzx eax, byte [edi + 0x198]
push eax
movzx eax, byte [edi + 0x197]
push eax
movzx eax, byte [edi + 0x196]
push eax
movzx eax, byte [edi + 0x195]
push eax
movzx eax, byte [edi + 0x194]
push eax
lea eax, [ebp - 0x2c]
push str._02X_02X_02X_02X_02X_02X
push eax
call fcn.0042cdd3
lea eax, [edi + 0x10c]
push eax
call fcn.005bddab
push 0x5da020
push eax
call fcn.005aa810
add esp, 0x2c
test eax, eax
jne 0x42f59f
cmp dword [edi + 0x1a0], 0x47
je 0x42f59f
and dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp word [ebp - 0x2c], ax
je 0x42f524
lea eax, [ebp - 0x2c]
push eax
call fcn.005abff2
pop ecx
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x44]
call fcn.004022f0
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x54]
call fcn.004207ff
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.00402230
mov edi, dword [edi]
test edi, edi
jne 0x42f499
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
sub eax, ecx
push 0x18
cdq
pop ecx
idiv ecx
test eax, eax
je 0x42f588
push 0
lea ecx, [ebp - 0x54]
call fcn.0042fed0
cmp dword [eax + 0x14], 8
jb 0x42f57f
mov eax, dword [eax]
push eax
push ebx
call fcn.005abfd0
pop ecx
pop ecx
lea ecx, [ebp - 0x54]
call fcn.0042022c
push esi
call fcn.005ac5ab
pop ecx
call fcn.00492e49
ret 4
lea eax, [ebp - 0x2c]
jmp 0x42f57f