joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a200
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ad88b
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x4e52d0]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push edi
mov eax, dword [0x4e52d0]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1e]
push ecx
mov word [esp + 0x20], ax
call fcn.004950a0
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
call fcn.00402120
push 0x19
push str.BaoFengDefaultBdSetup.xml
lea ebx, [esp + 0x14]
mov dword [esp + 0x238], 0
call fcn.00409220
mov eax, dword [0x4eb378]
mov edi, dword [esp + 0xc]
push str.RESOURCE_DATA
push 0x8f
push eax
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41a2bd
push edi
mov ecx, ebx
call fcn.004015f0
add esp, 4
lea edi, [esi + 0x44]
lea eax, [esp + 0xc]
call fcn.00404600
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41a309
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [esp + 0xc]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x14], esp
mov edi, esp
call fcn.004046f0
add eax, 0x10
push esi
mov dword [edi], eax
call fcn.0041a360
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.0041b5f0
mov dword [esp + 0x230], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41a334
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.004912db
mov esp, ebp
pop ebp
ret
Function at 0x41efc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af97b
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x4e52d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x41f00b
mov eax, dword [eax + 0x60]
push 0
push eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
test eax, eax
je 0x41f00b
push 3
push 0xf060
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov esi, dword [0x4eb380]
cmp dword [esi + 0x9c], 0
jne 0x41f04e
push 0x1a0
call fcn.004917be
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x41f03f
push 0
push eax
call fcn.00422b70
jmp 0x41f041
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x9c], eax
mov esi, dword [esi + 0x9c]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
push 0
push esi
push 0x4243d0
push 0
push 0
mov dword [0x4eb388], eax
call fcn.00493359
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x41f660
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, ecx
cmp ebx, 0x18
je 0x41f6ce
cmp ebx, 0x113
je 0x41f6bc
cmp ebx, 0x496
jne 0x41f70f
mov eax, dword [esi + 0x238]
test eax, eax
je 0x41f70f
cmp dword [esi + 0x23c], 0
je 0x41f70f
cmp dword [ebp + 0x10], 0
setne bl
mov cl, bl
call fcn.00452670
mov ecx, dword [esi + 0x23c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x50]
push ebx
call edx
mov ebx, dword [ebp + 0xc]
jmp 0x41f70f
cmp dword [ebp + 0x10], 0x10d5a
jne 0x41f70f
mov eax, esi
call fcn.00420460
jmp 0x41f70f
cmp dword [esi + 0x234], 0
je 0x41f70f
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 0
call dword [sym.imp.SensApi.dll_IsNetworkAlive]
test eax, eax
jne 0x41f705
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41f705
push 0
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov dword [esi + 0x234], 0
mov edi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push edi
push edx
push ebx
push eax
mov ecx, esi
call fcn.0044b530
cmp dword [ebp + 0xc], 5
mov ebx, eax
jne 0x41f746
mov edx, dword [esi]
mov edx, dword [edx + 0xa8]
movsx eax, di
shr edi, 0x10
movsx ecx, di
push ecx
push eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, esi
call edx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x420a20
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [ebx]
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea esi, [eax + 1]
test esi, esi
jns 0x420a3b
push 0x80070057
call fcn.00402bc0
mov eax, dword [edi]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, esi
or ecx, edx
jge 0x420a57
mov eax, esi
mov ecx, edi
call fcn.00402280
mov eax, dword [edi]
push esi
push eax
mov eax, dword [ebx]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x420a7e
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x420a82
push ecx
push eax
call fcn.004923b5
add esp, 8
test eax, eax
js 0x420a31
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x420a31
mov dword [ecx - 0xc], eax
mov ecx, dword [edi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, esi
pop esi
ret
Function at 0x4221a0
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.SensApi.dll_IsNetworkAlive]
test eax, eax
jne 0x4221e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4221c7
xor al, al
jmp 0x4221e4
push 0
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x4221c3
mov al, byte [ebp - 4]
test al, 0x20
jne 0x4221c3
test al, 7
je 0x4221c3
mov al, 1
mov ecx, dword [0x4eb380]
xor edx, edx
test al, al
setne dl
mov word [ecx + 0x98], 1
mov byte [ecx + 0x9a], dl
mov esp, ebp
pop ebp
ret

Function at 0x422250
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x1c
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [eax - 0xc], ebx
jne 0x422288
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42227f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
call esi
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x10]
mov edi, eax
push edx
lea eax, [ebp - 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4222c5
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
shrd edx, eax, 0x14
shr eax, 0x14
mov dword [ecx], edx
mov ebx, 1
push edi
call esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4222e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4232b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4e52d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x118]
mov ebx, 0x114
push eax
mov esi, ecx
mov dword [ebp - 0x118], ebx
call edi
cmp dword [ebp - 0x114], 6
jne 0x423309
cmp dword [ebp - 0x110], 1
jne 0x423309
lea eax, [esi + 0x54]
push str.1234
push eax
mov ebx, 1
call fcn.00402030
jmp 0x423369
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], ebx
call edi
cmp dword [ebp - 0x114], 5
jne 0x42333e
mov ebx, 1
cmp dword [ebp - 0x110], ebx
jne 0x42333e
lea eax, [esi + 0x54]
push 0x4bdb50
push eax
call fcn.00402030
jmp 0x423369
call fcn.00404eb0
test al, al
je 0x42334e
mov edx, 0x4bdb54
jmp 0x423361
call fcn.00404e50
mov edx, 0x4bdb58
test al, al
jne 0x423361
mov edx, 0x4bd9b4
lea edi, [esi + 0x54]
call fcn.004020e0
call fcn.00404f00
add esi, 0x58
mov ebx, 1
test al, al
je 0x423381
push 0x4bdb50
jmp 0x423386
push str.1234
push esi
call fcn.00402030
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004912db
mov esp, ebp
pop ebp
ret
Function at 0x423d30
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push 0x4bb300
push edi
xor ebx, ebx
xor esi, esi
call fcn.00402030
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 5
push 0xffffffffffffffff
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x423da1
mov edx, dword [ebp - 4]
cmp edx, esi
jne 0x423d6f
xor eax, eax
jmp 0x423d83
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x423d74
sub eax, ebx
sar eax, 1
push edx
push edi
mov ebx, eax
call fcn.00402030
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x423e90
Capabilities:
Create thread

Disassembly:
mov ecx, dword [ebx + 0xa8]
push esi
mov esi, dword [ebx + 0xa4]
cmp esi, ecx
je 0x423ec4
mov eax, ecx
sub eax, ecx
push edi
sar eax, 2
lea edi, [eax*4]
push edi
push ecx
push esi
call fcn.00491840
add esp, 0xc
add edi, esi
mov dword [ebx + 0xa8], edi
pop edi
push 0
push 0
push ebx
push 0x423fe0
push 0
push 0
call fcn.00493359
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x423ef0
Capabilities:
Check internet connectivity via wininet
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov ebx, eax
push edi
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 0
call dword [sym.imp.SensApi.dll_IsNetworkAlive]
test eax, eax
jne 0x423f4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x423fd6
push 0
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x423fd6
mov al, byte [esp + 0xc]
test al, 0x20
jne 0x423fd6
test al, 7
je 0x423fd6
push ebx
call fcn.0043b8c0
cmp byte [0x4e6790], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
je 0x423f66
call esi
mov dword [0x4eb36c], eax
call fcn.00439890
push ebx
call fcn.00439ff0
cmp byte [0x4e6790], 0
je 0x423fd6
call esi
mov dword [0x4eb370], eax
sub eax, dword [0x4eb36c]
mov edi, 0x4eb3f4
push eax
push 0x4bdfe0
push 0x4bdff8
call fcn.00402360
mov edx, dword [0x4eb3f4]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [0x4eb374]
test eax, eax
je 0x423fd6
push eax
mov eax, dword [0x4eb3f4]
mov ecx, dword [eax - 0xc]
push ecx
push 2
push eax
call fcn.00493e99
mov edx, dword [0x4eb374]
push edx
call fcn.00494637
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42f7b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ae7b6
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4e52d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [edi + 0x50]
sub eax, 0x10
call fcn.004046f0
lea ebx, [eax + 0x10]
mov dword [ebp - 0x224], ebx
lea esi, [ebp - 0x220]
mov eax, edi
mov dword [ebp - 4], 0
call fcn.00423e60
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x220]
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsSameRootW]
neg eax
sbb eax, eax
push esi
inc eax
push ebx
mov ecx, edi
mov dword [edi + 0x3c], eax
call fcn.0043c250
push 0
push ebx
mov dword [ebp - 0x21c], eax
call fcn.00403e90
add esp, 8
cmp dword [ebp - 0x21c], 0
jne 0x42f88f
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f862
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f885
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x3ea
jmp 0x42f918
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov word [ebp - 0x218], cx
call fcn.004950a0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push esi
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsSameRootW]
add esi, 0xfffffff0
mov dword [edi + 0x38], eax
mov byte [ebp - 4], 0
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x42f8f0
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f913
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004912db
mov esp, ebp
pop ebp
ret
Function at 0x437410
Capabilities:
Create thread
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad268
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4e52d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0
push 0
push edi
push 0x43cd20
push 0
push 0
call fcn.00493359
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
add esp, 0x18
mov dword [ebp - 0x10], esi
call ebx
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0xa0]
sub eax, 0x10
call fcn.004046f0
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
je 0x43748b
mov esi, eax
call fcn.004397f0
mov esi, dword [ebp - 0x10]
test eax, eax
jne 0x4374a0
add edi, 0xa4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x1f41
call fcn.00407530
call ebx
cmp byte [0x4e6790], 0
je 0x4374fd
sub eax, dword [ebp - 0x14]
mov edi, 0x4eb3f4
push eax
push 0x4c41e0
push 0x4bdff8
call fcn.00402360
mov eax, dword [0x4eb3f4]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [0x4eb374]
test eax, eax
je 0x4374fd
mov ecx, dword [0x4eb3f4]
mov edx, dword [ecx - 0xc]
push eax
push edx
push 2
push ecx
call fcn.00493e99
mov ecx, dword [0x4eb374]
push ecx
call fcn.00494637
add esp, 0x14
call ebx
mov edi, eax
test esi, esi
je 0x437515
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
cmp byte [0x4e6790], 0
je 0x437571
sub eax, edi
push eax
push 0x4c41f8
push 0x4bdff8
mov edi, 0x4eb3f4
call fcn.00402360
mov edx, dword [0x4eb3f4]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [0x4eb374]
test eax, eax
je 0x437571
mov ecx, dword [0x4eb3f4]
mov edx, dword [ecx - 0xc]
push eax
push edx
push 2
push ecx
call fcn.00493e99
mov eax, dword [0x4eb374]
push eax
call fcn.00494637
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x437597
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4397f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a7e88
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4e52d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43986d
mov dword [ebp - 0x54], vtable.CAccessRight.0
xor eax, eax
push 0x3e
push eax
lea ecx, [ebp - 0x4e]
mov dword [ebp - 4], 0
push ecx
mov word [ebp - 0x50], ax
call fcn.004950a0
add esp, 0xc
push 0x20
push str.Users
lea edx, [ebp - 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0
lea eax, [ebp - 0x50]
push eax
push esi
call fcn.00402c50
add esp, 0xc
mov eax, 1
jmp 0x43986f
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004912db
mov esp, ebp
pop ebp
ret

Function at 0x439a70
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4adf1b
mov eax, dword fs:[0]
push eax
sub esp, 0x674
mov eax, dword [0x4e52d0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov ebx, ecx
test esi, esi
jne 0x439ab1
xor eax, eax
jmp 0x439b6e
push 0x4bb1a8
push esi
push 0x4bb17c
lea eax, [ebp - 0x428]
push 0x104
push eax
mov edi, 1
call fcn.00492772
add esp, 0x14
lea ecx, [ebp - 0x678]
push ecx
lea edx, [ebp - 0x428]
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x680], eax
cmp eax, 0xffffffff
je 0x439aaa
cmp word [ebp - 0x64c], 0x2e
je 0x439b47
test byte [ebp - 0x678], 0x10
je 0x439b8c
lea eax, [ebp - 0x64c]
push eax
push esi
push str._s_s_
lea ecx, [ebp - 0x220]
push 0x104
push ecx
call fcn.00492772
add esp, 0x14
push 1
lea eax, [ebp - 0x220]
xor edx, edx
push eax
mov ecx, ebx
mov word [ebp - 0x1a], dx
call fcn.00439a70
mov edi, eax
mov edx, dword [ebp - 0x680]
lea ecx, [ebp - 0x678]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x439afb
mov eax, dword [ebp - 0x680]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004912db
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp + 0xc], 0
je 0x439b47
lea ecx, [ebp - 0x67c]
push ecx
lea ecx, [ebp - 0x64c]
call fcn.00402120
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x67c]
push str.ASBarBroker.exe
push edx
call fcn.004924d8
add esp, 8
test eax, eax
jne 0x439bcc
push eax
push esi
call fcn.00403e90
add esp, 8
mov edi, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x67c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x439b47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x439b47
Function at 0x43bf30
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4addc0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4e52d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea esi, [ebp - 0x10]
call fcn.0043c110
mov esi, dword [ebp + 8]
add esi, 0x50
mov edi, esi
mov dword [ebp - 4], 0
call fcn.00404600
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43bf9a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x14]
push esi
push ecx
mov ebx, str.Archive.7z
call fcn.00404520
add esp, 8
mov ebx, dword [ebp + 8]
lea edi, [ebx + 0x4c]
mov dword [ebp - 4], 1
call fcn.00404600
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43bfe4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
call fcn.0043c0a0
mov eax, dword [0x4eb378]
mov ebx, dword [edi]
push str.RESOURCE_DATA
push 0x8a
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x43c01a
mov ecx, dword [ebp + 8]
push ebx
call fcn.004015f0
add esp, 4
test al, al
jne 0x43c030
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi]
push 2
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [edi]
mov esi, dword [esi]
push eax
call fcn.00422b00
add esp, 4
push eax
push esi
call fcn.00422b00
add esp, 4
push eax
call fcn.00410430
mov eax, dword [edi]
add esp, 4
sub eax, 0x10
mov dword [ebp + 8], esp
mov esi, esp
call fcn.004046f0
add eax, 0x10
mov dword [esi], eax
call fcn.00403aa0
xor edx, edx
add esp, 4
test eax, eax
setne dl
mov eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43c110
Capabilities:
Get common file path
Get disk information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4e52d0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
mov dword [ebp - 0x210], 0
push ecx
mov word [ebp - 0x20c], ax
call fcn.004950a0
add esp, 0xc
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x210]
push ecx
push 0x4bb300
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsStormPlayer.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x214], 0x102
mov dword [ebp - 0x210], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x43c1e5
push 0x4bb300
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x43c1e5
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x43c20e
push 0x104
lea edx, [ebp - 0x20c]
push 0
push edx
call fcn.004950a0
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x20c]
push eax
jmp 0x43c206
push 0x104
lea ecx, [ebp - 0x20c]
push 0
push ecx
call fcn.004950a0
add esp, 0xc
push 1
push 0x1a
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.BaofengTemp_
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push esi
lea ecx, [ebp - 0x20c]
call fcn.00402120
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.004912db
mov esp, ebp
pop ebp
ret