joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ad70
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aa3d1
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4e42d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov edi, 1
mov dword [ebp - 4], edi
mov eax, dword [0x4e3f18]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e3f18
call edx
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
push 0x288
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], 0x288
call fcn.0048f80a
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40ae6c
lea edx, [ebp - 0x10]
push edx
mov esi, ebx
push ebx
mov dword [ebp - 0x14], esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
je 0x40adf9
cmp eax, 0x6f
jne 0x40ae6c
mov eax, dword [ebp - 0x10]
push eax
call fcn.0048f80a
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x40ae19
push ebx
call fcn.0048f6c0
mov esi, edi
add esp, 4
mov dword [ebp - 0x14], esi
test esi, esi
je 0x40ae79
lea ecx, [ebp - 0x10]
push ecx
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x40ae6c
movzx edx, byte [esi + 0x199]
movzx eax, byte [esi + 0x198]
movzx ecx, byte [esi + 0x197]
mov edi, dword [ebp + 8]
push edx
movzx edx, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push ecx
movzx ecx, byte [esi + 0x194]
push edx
push eax
push ecx
push str._02X_02X_02X_02X_02X_02X
call fcn.00402d60
add esp, 0x1c
test esi, esi
je 0x40ae79
push esi
call fcn.0048f6c0
add esp, 4
mov eax, dword [ebp + 8]
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 0x40b340
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor edx, edx
jmp 0x40b350
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x4ebb20], ecx
inc edx
cmp edx, 0x100
jb 0x40b350
cmp edx, 0x800
jae 0x40b429
lea ebx, [ebx]
mov eax, dword [edx*4 + 0x4eb720]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x4ebb20]
inc edx
mov dword [edx*4 + 0x4ebb1c], eax
cmp edx, 0x800
jb 0x40b400
lea esi, [ebp - 0x24]
mov dword [0x4ea660], 0x40b4f0
call fcn.0040eed0
test eax, eax
je 0x40b4e6
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov esi, eax
shr eax, 4
shr esi, 8
and eax, 0xf00f
and esi, 0xff00f
xor edi, edi
mov dword [ebp - 4], eax
mov ecx, 0x4e57c8
xor edx, edx
mov eax, dword [ecx - 8]
cmp eax, dword [ebp - 0x20]
jne 0x40b47c
mov eax, dword [ebp - 0x1c]
cmp dword [ecx - 4], eax
jne 0x40b47c
cmp dword [ecx], ebx
je 0x40b4b4
add edx, 0xc
inc edi
add ecx, 0xc
cmp edx, 0x24
jb 0x40b468
or ecx, 0xffffffff
sub ecx, 0
je 0x40b4cc
dec ecx
je 0x40b4b8
dec ecx
jne 0x40b4e6
cmp esi, 6
jb 0x40b4e6
jne 0x40b4dc
cmp dword [ebp - 4], 0xf
jb 0x40b4e6
mov dword [0x4ea660], 0x40b5a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edi
jmp 0x40b48b
cmp esi, 5
jb 0x40b4e6
jne 0x40b4dc
mov eax, dword [ebp - 4]
cmp eax, 6
jb 0x40b4e6
cmp eax, 0xa
jmp 0x40b4da
cmp esi, 6
jb 0x40b4e6
jne 0x40b4dc
cmp dword [ebp - 4], 0x100c
je 0x40b4e6
mov dword [0x4ea660], 0x40b5a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40bfe0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [edi]
mov ebx, eax
test esi, esi
je 0x40c03f
mov dword [edi], 0
jmp 0x40c000
mov eax, 0x400000
cmp esi, 0x400000
ja 0x40c00f
mov eax, esi
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x40c047
test ecx, ecx
je 0x40c03f
test esi, esi
jne 0x40c000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [edi]
mov ebx, eax
test esi, esi
je 0x40c0bf
mov dword [edi], 0
jmp 0x40c080
mov eax, 0x400000
cmp esi, 0x400000
ja 0x40c08f
mov eax, esi
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x40c0c7
test ecx, ecx
je 0x40c0bf
test esi, esi
jne 0x40c080
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ed30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x40ed49
mov esp, ebp
pop ebp
ret
add dword [ebp + 0xc], 5
push ebx
push esi
mov esi, dword [ebp + 8]
lea ebx, [esi + ecx - 4]
push edi
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], ebx
mov esi, dword [ebp + 8]
lea edi, [eax + esi]
cmp edi, ebx
jae 0x40ed7d
jmp 0x40ed70
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x40ed7d
inc edi
cmp edi, ebx
jb 0x40ed70
mov eax, edi
sub eax, esi
mov ecx, eax
sub ecx, dword [ebp - 8]
cmp edi, ebx
jae 0x40eea2
cmp ecx, 3
jbe 0x40ed9a
xor esi, esi
mov dword [ebp - 4], esi
jmp 0x40eddd
dec ecx
shl edx, cl
and edx, 7
mov dword [ebp - 4], edx
je 0x40edda
mov ecx, edx
movzx edx, byte [ecx + 0x4baec8]
mov esi, edi
sub esi, edx
cmp byte [ecx + 0x4baec0], 0
mov dl, byte [esi + 4]
je 0x40edc7
test dl, dl
je 0x40edc7
cmp dl, 0xff
jne 0x40edda
and ecx, 3
add ecx, ecx
or ecx, 1
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
inc eax
mov edx, ecx
jmp 0x40ed61
mov esi, dword [ebp - 4]
mov cl, byte [edi + 4]
mov dword [ebp - 8], eax
test cl, cl
je 0x40edff
cmp cl, 0xff
je 0x40edff
and esi, 3
add esi, esi
or esi, 1
mov dword [ebp - 4], esi
inc eax
mov edx, esi
jmp 0x40ed61
movzx edx, cl
movzx ecx, byte [edi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
lea ecx, [ecx]
cmp dword [ebp + 0x14], 0
je 0x40ee2e
lea ebx, [edx + eax]
add ebx, dword [ebp + 0xc]
jmp 0x40ee35
sub edx, eax
sub edx, dword [ebp + 0xc]
mov ebx, edx
test esi, esi
je 0x40ee72
movzx esi, byte [esi + 0x4baec8]
add esi, esi
add esi, esi
add esi, esi
mov ecx, 0x18
sub ecx, esi
mov edx, ebx
shr edx, cl
mov cl, dl
test cl, cl
je 0x40ee5c
cmp cl, 0xff
jne 0x40ee72
mov ecx, 0x20
sub ecx, esi
mov esi, dword [ebp - 4]
mov edx, 1
shl edx, cl
dec edx
xor edx, ebx
jmp 0x40ee20
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
shr ecx, 8
mov byte [edi + 3], dl
mov edx, dword [ebp - 4]
mov byte [edi + 1], bl
mov ebx, dword [ebp - 0xc]
mov byte [edi + 2], cl
add eax, 5
jmp 0x40ed61
pop edi
pop esi
pop ebx
cmp ecx, 3
jbe 0x40eeb5
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov dword [ecx], edx
mov esp, ebp
pop ebp
ret
dec ecx
shl edx, cl
mov ecx, dword [ebp + 0x10]
and edx, 7
mov dword [ecx], edx
mov esp, ebp
pop ebp
ret
Function at 0x410b60
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x4e42d0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x103
mov esi, ecx
lea ecx, [ebp - 0x113]
push 0
push ecx
mov dword [ebp - 0x120], eax
mov byte [ebp - 0x114], 0
call fcn.00493520
lea edx, [ebp - 0x114]
add esp, 0xc
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x410ba7
lea edi, [ebp - 0x114]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410bb8
mov eax, dword [ebp - 0x120]
mov dx, word [0x4baed0]
push eax
lea esi, [ebp - 0x11c]
mov word [edi], dx
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
call fcn.00410ab0
mov eax, dword [ebp - 0x11c]
add esp, 4
mov ecx, eax
jmp 0x410c00
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x410c00
lea edi, [ebp - 0x114]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x410c12
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x11c]
push ecx
push 0x4e57b0
call dword [0x4e57b4]
add esp, 8
push 0
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x410c62
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0048f6cb
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.0048f6cb
mov esp, ebp
pop ebp
ret
Function at 0x411b50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aa37b
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x4e42d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, 4
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x230]
push edx
push str.OutputTimeFile
push str.SoftwareBaofengVideoInstallOption
push SysReAllocString
mov dword [ebp - 0x22c], 0
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x411bd1
cmp dword [ebp - 0x22c], eax
setne al
jmp 0x411bd3
xor al, al
mov byte [0x4e5790], al
test al, al
je 0x411cf0
mov eax, dword [0x4ea67c]
test eax, eax
je 0x411bf2
push eax
call fcn.00490eba
add esp, 4
lea eax, [ebp - 0x228]
push eax
mov dword [0x4ea67c], 0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [0x4e3f18]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e3f18
call eax
add eax, 0x10
mov dword [ebp - 0x22c], eax
mov dword [ebp - 4], 0
movzx ecx, word [ebp - 0x21c]
movzx edx, word [ebp - 0x21e]
movzx eax, word [ebp - 0x220]
push ecx
movzx ecx, word [ebp - 0x222]
push edx
movzx edx, word [ebp - 0x226]
push eax
movzx eax, word [ebp - 0x228]
push ecx
push edx
push eax
push str...Time_04d_02d_02d__02d_02d_02d.txt
lea edi, [ebp - 0x22c]
call fcn.00402d60
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov word [ebp - 0x218], cx
call fcn.00493520
mov ecx, dword [0x4ea680]
add esp, 0x28
push 0x104
lea eax, [ebp - 0x218]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [ebp - 0x22c]
push esi
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push str.wt__ccsUTF_8
push eax
call fcn.00490def
mov dword [0x4ea67c], eax
lea eax, [esi - 0x10]
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411cf0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048f6cb
mov esp, ebp
pop ebp
ret
Function at 0x411ed0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4e42d0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x411f05
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048f6cb
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x18]
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.0048f6cb
mov esp, ebp
pop ebp
ret

Function at 0x418490
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aa2e3
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4e42d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [esi], vtable.CAutoLog.0
mov dword [ebp - 4], 0
mov eax, dword [0x4e3f18]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e3f18
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
mov eax, dword [esi + 4]
push eax
push str._End___s
lea edi, [ebp - 0x10]
call fcn.00402d60
mov edi, dword [ebp - 0x10]
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418520
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov esi, dword [esi + 4]
sub esi, 0x10
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418546
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x418590
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aaa93
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4e42d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov dword [esi], vtable.CAutoLog.0
mov eax, dword [0x4e3f18]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e3f18
lea edi, [esi + 4]
call edx
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
test ebx, ebx
je 0x418608
mov eax, ebx
lea edx, [eax + 2]
jmp 0x4185f0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4185f0
sub eax, edx
push ebx
sar eax, 1
push edi
mov ebx, eax
call fcn.00402a30
mov eax, dword [0x4e3f18]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e3f18
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
mov eax, dword [edi]
push eax
push str._Begin___s
lea edi, [ebp - 0x10]
call fcn.00402d60
mov edi, dword [ebp - 0x10]
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41865e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
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 0x41a1e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi + 0x94], 0
je 0x41a24a
cmp dword [esi + 0x98], 0
jbe 0x41a24a
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 0
jb 0x41a205
mov eax, dword [eax]
push 0x4bbb50
push eax
lea eax, [ebp - 4]
push eax
call fcn.00490e06
add esp, 0xc
test eax, eax
jne 0x41a24a
mov eax, dword [ebp - 4]
test eax, eax
je 0x41a24a
mov ecx, dword [esi + 0x98]
mov edx, dword [esi + 0x94]
push eax
push 1
push ecx
push edx
call fcn.00492295
mov eax, dword [ebp - 4]
push eax
call fcn.00490eba
add esp, 0x14
mov al, 1
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x41a2b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a703f
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4e42d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [esi], vtable.CSkinApplication.0
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov eax, 1
mov dword [esi + 0x10], eax
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 4], edi
mov dword [esi + 0x20], edi
mov dword [ebp - 4], edi
mov dword [esi], vtable.CB5_InstallApp.0
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov byte [ebp - 4], al
mov eax, dword [0x4e3f18]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e3f18
lea ebx, [esi + 0x44]
call edx
add eax, 0x10
mov dword [ebx], eax
lea eax, [esi + 0x50]
push 0x1388
push eax
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov byte [ebp - 4], 3
mov dword [esi + 0x68], vtable.CHighResolutionTimer.0
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
lea eax, [esi + 0x7c]
push 0x1388
push eax
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov byte [ebp - 4], 5
push 0x4ba358
push ebx
xor ebx, ebx
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x40], edi
call fcn.00402a30
mov al, 1
mov byte [esi + 0x9a], al
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x9c], edi
mov word [esi + 0x98], 0x101
mov dword [ebp - 4], 0xffffffff
mov eax, esi
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 0x41a400
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a703f
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4e42d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [esi], vtable.CB5_InstallApp.0
mov dword [ebp - 4], 5
mov eax, dword [esi + 0x94]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x48]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
cmp eax, ebx
je 0x41a459
push eax
call edi
mov dword [esi + 0x48], ebx
mov eax, dword [esi + 0x94]
cmp eax, ebx
je 0x41a46c
push eax
call edi
mov dword [esi + 0x94], ebx
mov ecx, dword [esi + 0x9c]
cmp ecx, ebx
je 0x41a484
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esi + 0x9c], ebx
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 4
mov edi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push ecx
call edi
mov byte [ebp - 4], 3
mov eax, dword [esi + 0x70]
mov dword [esi + 0x68], vtable.CHighResolutionTimer.0
cmp eax, ebx
je 0x41a4b0
push eax
call dword [sym.imp.WINMM.dll_timeKillEvent]
mov dword [esi + 0x70], ebx
lea edx, [esi + 0x50]
push edx
mov byte [ebp - 4], 2
call edi
mov byte [ebp - 4], 1
mov eax, dword [esi + 0x44]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a4dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov edi, dword [esi + 0x28]
cmp edi, ebx
je 0x41a509
mov eax, dword [esi + 0x2c]
cmp eax, ebx
jbe 0x41a4fd
mov ebx, eax
mov eax, edi
call fcn.0041b4b0
add edi, 0x30
dec ebx
jne 0x41a4f0
mov ecx, dword [esi + 0x28]
push ecx
call fcn.0048f989
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [esi], vtable.CSkinApplication.0
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 0x41aa30
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4abc4b
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x4e42d0]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push edi
mov eax, dword [0x4e42d0]
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.00493520
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.00402b20
push 0x19
push str.BaoFengDefaultBdSetup.xml
lea ebx, [esp + 0x14]
mov dword [esp + 0x238], 0
call fcn.00409bd0
mov eax, dword [0x4ea680]
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 0x41aaed
push edi
mov ecx, ebx
call fcn.004015d0
add esp, 4
lea edi, [esi + 0x44]
lea eax, [esp + 0xc]
call fcn.00405000
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41ab39
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.004050f0
add eax, 0x10
push esi
mov dword [edi], eax
call fcn.0041ab90
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.0041bed0
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 0x41ab64
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.0048f6cb
mov esp, ebp
pop ebp
ret
Function at 0x41f030
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4adaeb
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x4e42d0]
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 0x41f07b
mov eax, dword [eax + 0x60]
push 0
push eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
test eax, eax
je 0x41f07b
push 3
push 0xf060
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov esi, dword [0x4ea688]
cmp dword [esi + 0x9c], 0
jne 0x41f0be
push 0x1a0
call fcn.0048fbae
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x41f0af
push 0
push eax
call fcn.00424e20
jmp 0x41f0b1
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 0x426650
push 0
push 0
mov dword [0x4ea690], eax
call fcn.00491819
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 0x41f6f0
Capabilities:
Get common file path
Get disk information
Query or enumerate registry value

Disassembly:
push esi
mov esi, ecx
call fcn.00445860
mov eax, dword [esi + 0x70]
mov edx, dword [eax + 0x4c]
push 0
push 0x4e689c
push 0x4e6720
lea ecx, [esi + 0x70]
push 0
push 0x30a3dd9
call edx
push eax
call fcn.004a496e
add esp, 0x14
mov dword [esi + 0x14c], eax
test eax, eax
je 0x41f738
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x80]
mov dword [esi + 0x160], ecx
mov ecx, dword [0x4ea698]
mov edx, dword [ecx + 0x70]
mov eax, dword [edx + 0x4c]
push 0
push 0x4e68b8
push 0x4e6720
add ecx, 0x70
push 0
push 0xdf0681c
call eax
push eax
call fcn.004a496e
add esp, 0x14
mov dword [esi + 0x158], eax
mov ecx, esi
pop esi
jmp fcn.0041f990