joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b7583
Capabilities:
Enumerate processes

Disassembly:
push 0x28c
mov eax, 0x5a4fe2
call fcn.00485177
mov edi, dword [ebp + 0xc]
xor eax, eax
mov ebx, dword [ebp + 0x10]
mov esi, eax
mov dword [ebp - 0x294], esi
mov dword [ebp - 0x290], eax
mov dword [ebp - 0x28c], eax
push 0x22c
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x288], eax
lea eax, [ebp - 0x284]
push eax
call fcn.004d7c10
add esp, 0xc
lea ecx, [ebp - 0x58]
push edi
call fcn.004276b0
push ebx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004276b0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
call fcn.004b81ca
lea eax, [ebp - 0x40]
push eax
call fcn.004b81ca
pop ecx
pop ecx
xor ebx, ebx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x4b7740
lea eax, [ebp - 0x284]
mov dword [ebp - 0x284], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4b76dd
mov esi, dword [ebp + 8]
cmp dword [ebp - 0x27c], esi
je 0x4b76c2
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
cmp word [ebp - 0x260], ax
jne 0x4b765a
mov eax, ebx
jmp 0x4b7667
lea eax, [ebp - 0x260]
push eax
call fcn.004d915b
pop ecx
push eax
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x28]
call fcn.00427e30
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
call fcn.004b81ca
pop ecx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.00433050
test eax, eax
jne 0x4b76b3
mov eax, dword [ebp - 0x27c]
lea ecx, [ebp - 0x294]
mov dword [ebp - 0x298], eax
lea eax, [ebp - 0x298]
push eax
call fcn.004b969e
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00427d40
lea eax, [ebp - 0x284]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4b7631
mov esi, dword [ebp - 0x294]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x290]
jmp 0x4b7736
push dword [esi]
lea eax, [ebp - 0x28]
push eax
call fcn.004b6031
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
call fcn.004b81ca
add esp, 0xc
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x28]
cmovae eax, dword [ebp - 0x40]
push dword [ebp - 0x30]
push ebx
push eax
call fcn.00439130
lea ecx, [ebp - 0x28]
cmp eax, 0xffffffff
jg 0x4b776b
push ebx
push 1
mov byte [ebp - 4], 2
call fcn.00427d40
add esi, 4
cmp esi, edi
jne 0x4b76ec
mov ebx, dword [ebp - 0x288]
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00427d40
push 0
push 1
lea ecx, [ebp - 0x58]
call fcn.00427d40
lea ecx, [ebp - 0x294]
call fcn.00456791
mov eax, ebx
call fcn.00485121
ret
xor ebx, ebx
inc ebx
push 0
push ebx
call fcn.00427d40
jmp 0x4b7740
Function at 0x4b7778
Capabilities:
Enumerate processes

Disassembly:
push 0x260
mov eax, 0x5a4ceb
call fcn.00485177
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x26c]
xor ebx, ebx
push 0x22c
push ebx
push eax
mov edi, ebx
call fcn.004d7c10
add esp, 0xc
lea ecx, [ebp - 0x40]
push esi
call fcn.004276b0
lea eax, [ebp - 0x40]
mov dword [ebp - 4], ebx
push eax
call fcn.004b81ca
pop ecx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4b77cd
jmp 0x4b786e
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x4b7859
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
cmp word [ebp - 0x248], ax
jne 0x4b7803
mov eax, ebx
jmp 0x4b7810
lea eax, [ebp - 0x248]
push eax
call fcn.004d915b
pop ecx
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x28]
call fcn.00427e30
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.004b81ca
pop ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00433050
lea ecx, [ebp - 0x28]
push ebx
push 1
test eax, eax
je 0x4b785f
mov byte [ebp - 4], bl
call fcn.00427d40
lea eax, [ebp - 0x26c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4b77e6
jmp 0x4b7867
xor edi, edi
inc edi
call fcn.00427d40
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.00427d40
mov eax, edi
call fcn.00485121
ret

Function at 0x4b7ae2
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x62b370]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
push 0
push eax
call fcn.004d7c10
add esp, 0xc
mov dword [ebp - 0x120], esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 0xa
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.00484636
mov esp, ebp
pop ebp
ret

Function at 0x4b7b39
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x62b370]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
push 0
push eax
call fcn.004d7c10
add esp, 0xc
mov dword [ebp - 0x120], esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
pop esi
jb 0x4b7b8f
cmp dword [ebp - 0x118], 2
jb 0x4b7b8f
xor eax, eax
inc eax
jmp 0x4b7b99
cmp dword [ebp - 0x11c], 0xa
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00484636
mov esp, ebp
pop ebp
ret
Function at 0x4b7ba7
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x62b370]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push str..del
push esi
call fcn.004d7710
pop ecx
pop ecx
test eax, eax
je 0x4b7bdf
push 5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x4b7c6e
push edi
xor edi, edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004d7c10
add esp, 0xc
lea eax, [ebp - 0x20c]
test edi, edi
jne 0x4b7c13
push esi
push str._s.del
push eax
call fcn.004b9a6e
add esp, 0xc
jmp 0x4b7c23
push edi
push esi
push str._s.del_d
push eax
call fcn.004b9a6e
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b7c4d
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4b7c4d
cmp edi, 0xa
jge 0x4b7c6d
inc edi
jmp 0x4b7be2
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.004eb37c
pop ecx
pop ecx
push 5
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00484636
mov esp, ebp
pop ebp
ret

Function at 0x4b7d75
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 4]
push edi
push eax
xor edi, edi
mov ebx, 0xf013f
push ebx
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push reloc.WS2_32.dll_closesocket
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
call esi
test eax, eax
jne 0x4b7e4d
lea eax, [ebp - 8]
push eax
push ebx
push edi
push str.SoftWare
push dword [ebp - 4]
call esi
test eax, eax
je 0x4b7dce
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4b7e4d
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0xc]
push edi
push eax
push edi
push ebx
push edi
push edi
push edi
push dword [ebp + 8]
push dword [ebp - 8]
call esi
test eax, eax
je 0x4b7df2
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4b7e43
push edi
lea eax, [ebp - 0x10]
push eax
push edi
push ebx
push edi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x4b7e10
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4b7e3e
push dword [ebp + 0x18]
call fcn.004d915b
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0x18]
push 1
push edi
push dword [ebp + 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0xc]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b7e54
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
lea eax, [ebp - 0xc]
xor edi, edi
push eax
mov ebx, 0xf013f
mov dword [ebp - 0xc], edi
push ebx
push edi
push str.SoftWare
push reloc.WS2_32.dll_accept
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4b7f11
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 8]
push edi
push eax
push edi
push ebx
push edi
push edi
push edi
push dword [ebp + 8]
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x4b7eb2
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4b7f10
push edi
lea eax, [ebp - 4]
push eax
push edi
push ebx
push edi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp - 8]
call esi
test eax, eax
je 0x4b7ed8
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 4]
jmp 0x4b7f0e
push dword [ebp + 0x14]
call fcn.004d915b
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0x14]
push 1
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 0xc]
call esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b80ae
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x62b370]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
push 0
push eax
call fcn.004d7c10
add esp, 0xc
mov dword [ebp - 0x120], esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
pop esi
jg 0x4b8111
cmp dword [ebp - 0x118], 2
jg 0x4b8111
xor eax, eax
inc eax
jmp 0x4b8113
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00484636
mov esp, ebp
pop ebp
ret
Function at 0x4b8706
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x5a49f6
call fcn.00485177
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4b8806
cmp byte [ebx + 0x3d], 0
je 0x4b8806
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x4b8740
xor al, al
jmp 0x4b8808
xor eax, eax
mov dword [ebp - 0x14], 0xf
push eax
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.004b8f52
and dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x28]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4b879e
sub eax, 1
je 0x4b87a2
dec eax
sub eax, 1
je 0x4b87f4
xor bl, bl
jmp 0x4b87f6
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x4b87da
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.004de4db
add esp, 0x10
cmp esi, eax
jne 0x4b879a
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp byte [ebx + 0x3d], 0
je 0x4b87f4
test esi, esi
jne 0x4b8764
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.004b8ef2
jmp 0x4b875e
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00427fb0
mov al, bl
jmp 0x4b8808
mov al, 1
call fcn.00485121
ret

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

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, 0xe3
push edi
lea edi, [esi + 0x9c4]
mov ecx, dword [edi + 4]
xor ecx, dword [edi]
and ecx, 0x7fffffff
xor ecx, dword [edi]
lea edi, [edi + 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub ebx, 1
jne 0x4b8cd0
lea edi, [esi + 0xd50]
mov ebx, 0x18c
mov ecx, dword [edi + 4]
xor ecx, dword [edi]
and ecx, 0x7fffffff
xor ecx, dword [edi]
lea edi, [edi + 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd50]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub ebx, 1
jne 0x4b8d10
mov ecx, dword [esi + 0x1380]
xor ecx, dword [esi + 4]
and ecx, 0x7fffffff
xor ecx, dword [esi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
and dword [esi], ebx
pop esi
pop ebx
ret
Function at 0x4b8d80
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
lea edx, [ecx + 8]
mov esi, 0x270
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x4b8d89
pop esi
ret

Function at 0x4b947f
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x5a523f
call fcn.00485177
mov esi, ecx
mov dword [ebp - 0x30], esi
mov ecx, dword [ebp + 8]
or ebx, 0xffffffff
cmp ecx, ebx
sete al
test al, al
je 0x4b94ab
xor eax, eax
cmp ecx, ebx
cmovne eax, ecx
jmp 0x4b960c
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x4b94d9
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x4b94d9
mov eax, dword [ebp + 8]
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x4b960c
cmp dword [esi + 0x4c], 0
je 0x4b960a
mov ecx, esi
call fcn.004b8e5f
xor ecx, ecx
cmp dword [esi + 0x38], ecx
jne 0x4b9509
push dword [esi + 0x4c]
mov esi, dword [ebp + 8]
push esi
call fcn.004b3b8a
test al, al
pop ecx
pop ecx
cmovne ebx, esi
jmp 0x4b960a
mov eax, dword [ebp + 8]
push ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
lea ecx, [ebp - 0x28]
push 8
mov byte [ebp - 0x2c], al
mov dword [ebp - 0x14], 0xf
call fcn.004b8f52
and dword [ebp - 4], 0
lea eax, [esi + 0x40]
mov dword [ebp - 0x34], eax
mov edi, dword [ebp - 0x14]
mov esi, dword [esi + 0x38]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmp edi, 0x10
lea edx, [ebp - 0x28]
mov edi, dword [esi]
cmovae ecx, dword [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
add eax, ecx
push eax
push edx
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
lea eax, [ebp - 0x2b]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x34]
call dword [edi + 0x1c]
test eax, eax
js 0x4b95fe
cmp eax, 1
jg 0x4b95e3
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp edi, 0x10
mov edx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x30]
cmovae eax, ecx
sub edx, eax
mov dword [ebp - 0x3c], edx
je 0x4b95b4
push dword [esi + 0x4c]
cmp edi, 0x10
lea eax, [ebp - 0x28]
push edx
cmovae eax, ecx
push 1
push eax
call fcn.004de4db
mov edx, dword [ebp - 0x3c]
add esp, 0x10
cmp edx, eax
jne 0x4b95fe
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x40], eax
jne 0x4b95de
test edx, edx
jne 0x4b9534
cmp dword [ebp - 0x18], 0x20
jae 0x4b95fe
push edx
push 8
lea ecx, [ebp - 0x28]
call fcn.004b8ef2
jmp 0x4b9531
mov ebx, dword [ebp + 8]
jmp 0x4b95fe
cmp eax, 3
jne 0x4b95fe
mov eax, dword [ebp - 0x30]
push dword [eax + 0x4c]
push dword [ebp - 0x2c]
call fcn.004b3b8a
test al, al
pop ecx
cmovne ebx, dword [ebp + 8]
pop ecx
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00427fb0
mov eax, ebx
call fcn.00485121
ret 4
Function at 0x4b97e9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ecx + 4], edx
push edi
inc esi
lea edi, [ecx + 8]
mov ebx, 0x270
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul edx, dword [ebp + 0xc]
add edx, esi
inc esi
mov dword [edi], edx
lea edi, [edi + 4]
cmp esi, ebx
jl 0x4b9800
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
pop ebp
ret 8
Function at 0x4ba3e9
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 [0x62b370]
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.004d7c10
push ebx
lea eax, [ebp - 0x824]
push esi
push eax
call fcn.004d7c10
push ebx
lea eax, [ebp - 0xa2c]
push esi
push eax
call fcn.004d7c10
push ebx
lea eax, [ebp - 0xc34]
push esi
push eax
call fcn.004d7c10
push ebx
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004d7c10
push ebx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004d7c10
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.004ddf30
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4ba4a2
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.004d95d7
lea eax, [ebp - 0x20c]
push str.wnsoft.ini
push eax
call fcn.004ddf30
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 0x6172ac
push str.OnlyIdentifier1
push ebx
call esi
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [ebp - 0x824]
push eax
push 0x6172ac
push str.OnlyIdentifier2
push ebx
call esi
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [ebp - 0xa2c]
push eax
push 0x6172ac
push str.OnlyIdentifier3
push ebx
call esi
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [ebp - 0xc34]
push eax
push 0x6172ac
push str.OnlyIdentifier4
push ebx
call esi
lea eax, [ebp - 0x61c]
push eax
call fcn.004d915b
mov esi, eax
lea eax, [ebp - 0x824]
push eax
call fcn.004d915b
mov dword [ebp - 0xc38], eax
lea eax, [ebp - 0xa2c]
push eax
call fcn.004d915b
mov ebx, eax
lea eax, [ebp - 0xc34]
push eax
call fcn.004d915b
add esp, 0x10
test esi, esi
je 0x4ba5f8
cmp dword [ebp - 0xc38], 0
je 0x4ba5f8
test ebx, ebx
je 0x4ba5f8
test eax, eax
je 0x4ba5f8
lea eax, [ebp - 0x61c]
push eax
push dword [edi]
call fcn.004d95d7
lea eax, [ebp - 0x824]
push eax
mov eax, dword [edi]
add eax, 0x208
push eax
call fcn.004d95d7
lea eax, [ebp - 0xa2c]
push eax
mov eax, dword [edi]
add eax, 0x410
push eax
call fcn.004d95d7
lea eax, [ebp - 0xc34]
push eax
mov eax, dword [edi]
add eax, 0x618
push eax
call fcn.004d95d7
xor eax, eax
add esp, 0x20
inc eax
jmp 0x4ba5fa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00484636
mov esp, ebp
pop ebp
ret
Function at 0x4baa49
Capabilities:
Get mac address on windows

Disassembly:
push 0x48
mov eax, 0x5a5326
call fcn.00485177
mov ebx, dword [ebp + 8]
push ebx
mov dword [ebp - 0x48], 4
call fcn.004d915b
push eax
push 0
push ebx
call fcn.004d7c10
push 0x288
call fcn.004d93e5
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4baa3c
lea eax, [ebp - 0x48]
push eax
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x4ba908
push esi
call fcn.004d93e0
push dword [ebp - 0x48]
call fcn.004d93e5
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4baa3c
lea eax, [ebp - 0x48]
push eax
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x4baa35
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 0x4baa06
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.00430670
lea eax, [edi + 0x10c]
push eax
call fcn.0057fbfb
push 0x5bc254
push eax
call fcn.004d79a0
add esp, 0x2c
test eax, eax
jne 0x4baa44
cmp dword [edi + 0x1a0], 0x47
je 0x4baa44
and dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp word [ebp - 0x2c], ax
je 0x4ba9c9
lea eax, [ebp - 0x2c]
push eax
call fcn.004d915b
pop ecx
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x44]
call fcn.00427e30
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x54]
call fcn.00438cb0
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.00427d40
mov edi, dword [edi]
test edi, edi
jne 0x4ba93e
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
sub eax, ecx
push 0x18
cdq
pop ecx
idiv ecx
test eax, eax
je 0x4baa2d
push 0
lea ecx, [ebp - 0x54]
call fcn.004bb338
cmp dword [eax + 0x14], 8
jb 0x4baa24
mov eax, dword [eax]
push eax
push ebx
call fcn.004d95d7
pop ecx
pop ecx
lea ecx, [ebp - 0x54]
call fcn.00431140
push esi
call fcn.004d93e0
pop ecx
call fcn.00485121
ret 4
lea eax, [ebp - 0x2c]
jmp 0x4baa24
push ebp
mov ebp, esp
lea ecx, [ebp + 0xb]
pop ebp
jmp 0x4ba8a3
Function at 0x4baa7c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa34
mov eax, dword [0x62b370]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x208
lea eax, [ebp - 0x414]
push esi
xor ebx, ebx
mov edi, ecx
push ebx
push eax
call fcn.004d7c10
push esi
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.004d7c10
push esi
lea eax, [ebp - 0x824]
push ebx
push eax
call fcn.004d7c10
push esi
lea eax, [ebp - 0xa2c]
push ebx
push eax
call fcn.004d7c10
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004d7c10
lea eax, [ebp - 0x20c]
push 0x5bbae4
push eax
call fcn.004d95d7
add esp, 0x44
lea eax, [ebp - 0x20c]
push str.MySoft
push eax
call fcn.004ddf30
lea eax, [ebp - 0x20c]
push 0x6194dc
push eax
call fcn.004ddf30
add esp, 0x10
lea eax, [ebp - 0xa34]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x20c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4babc5
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xa30]
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0xa30], 0x104
push eax
push ebx
push ebx
push str.OnlyIdentifier1
push dword [ebp - 0xa34]
call esi
lea eax, [ebp - 0xa30]
push eax
lea eax, [ebp - 0x61c]
push eax
push ebx
push ebx
push str.OnlyIdentifier2
push dword [ebp - 0xa34]
call esi
lea eax, [ebp - 0xa30]
push eax
lea eax, [ebp - 0x824]
push eax
push ebx
push ebx
push str.OnlyIdentifier3
push dword [ebp - 0xa34]
call esi
lea eax, [ebp - 0xa30]
push eax
lea eax, [ebp - 0xa2c]
push eax
push ebx
push ebx
push str.OnlyIdentifier4
push dword [ebp - 0xa34]
call esi
push dword [ebp - 0xa34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x414]
push eax
call fcn.004d915b
mov esi, eax
lea eax, [ebp - 0x61c]
push eax
call fcn.004d915b
mov dword [ebp - 0xa30], eax
lea eax, [ebp - 0x824]
push eax
call fcn.004d915b
mov ebx, eax
lea eax, [ebp - 0xa2c]
push eax
call fcn.004d915b
add esp, 0x10
test esi, esi
je 0x4bac75
cmp dword [ebp - 0xa30], 0
je 0x4bac75
test ebx, ebx
je 0x4bac75
test eax, eax
je 0x4bac75
lea eax, [ebp - 0x414]
push eax
push dword [edi]
call fcn.004d95d7
lea eax, [ebp - 0x61c]
push eax
mov eax, dword [edi]
add eax, 0x208
push eax
call fcn.004d95d7
lea eax, [ebp - 0x824]
push eax
mov eax, dword [edi]
add eax, 0x410
push eax
call fcn.004d95d7
lea eax, [ebp - 0xa2c]
push eax
mov eax, dword [edi]
add eax, 0x618
push eax
call fcn.004d95d7
xor eax, eax
add esp, 0x20
inc eax
jmp 0x4bac77
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00484636
mov esp, ebp
pop ebp
ret