joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4324c8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x43a4a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x40f1f1
cmp byte [ebx + 0x49], 0
je 0x40f1f1
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x40f1e5
lea esi, [ebp - 0x2c]
call fcn.0040ec40
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x40f0d3
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x1c]
add edi, edx
push edi
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x40f10c
dec eax
je 0x40f110
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x40f1ec
call fcn.0040d8a0
xor al, al
jmp 0x40f1f3
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x40f120
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x40f14d
cmp edi, 0x10
jae 0x40f12f
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00421562
add esp, 0x10
cmp esi, eax
jne 0x40f1dd
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x40f1e9
test esi, esi
jne 0x40f0c7
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x40f20e
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x40f20e
cmp edi, esi
jae 0x40f1c6
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040f800
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x40f0c7
mov ecx, eax
cmp edi, 0x10
jae 0x40f1a2
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x40f1bd
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x40f0c1
test esi, esi
jne 0x40f198
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x40f1d5
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x40f0c1
lea ecx, [ebp - 0x2c]
call fcn.0040d8a0
xor al, al
jmp 0x40f1f3
lea ecx, [ebp - 0x2c]
call fcn.0040d8a0
mov al, 1
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.00420566
mov esp, ebp
pop ebp
ret
push 0x436728
call fcn.0041f361
int3
Function at 0x40f5f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43251b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x43a4a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], 0x436930
call fcn.004200f2
push 4
mov dword [ebp - 4], 0
call fcn.00420a45
mov edi, eax
add esp, 4
test edi, edi
je 0x40f66c
call fcn.0041f782
mov dword [edi], eax
call fcn.0041f541
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0041f476
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40f662
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0041f49e
jmp 0x40f66e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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 0x404495
Capabilities:
Encode data using xor

Disassembly:
enter 0x40c0, 0xffffffffffffffaa
push str._____P_attribute____Add_Basic_Proxy_Authentication__the_attributes_n
or eax, edx
inc eax
push edx
call [eax]
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push 0x408960
add eax, 0xd
push eax
call esi
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
add esp, 0x40
add ecx, 5
push 0xd540ece0
push ecx
call esi
mov ecx, ebp
enter 0x40c0, 0
push 0x2cecac
add byte [eax - 0x54], ch
in al, dx
sub al, 0
add edx, 0x40
push edx
call esi
jnp 0x404517
rol byte [eax], 0x96
jl 0x4044cd
inc eax
add byte [ebx - 0x15bf40], al
salc
mov ecx, dword [0x8e40dddd]
push str._____d______________Do_not_show_percentiles_served_table._n
add ecx, 0x40
invalid
inc eax
push eax
call esi
xor cl, byte [esi]
enter 0x1c0, 0
push 0x40e870
add ecx, 0x40
push ecx
call esi
mov edx, dword [0x40c01b]
push 0xa440eb34
add edx, 0x40
push edx
cmpsb byte [esi], byte es:[edi]
salc
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add esp, 0x40
add eax, 0x40
push 0xe4bcf4
xchg ebx, eax
xchg esi, eax
sub dword [ebx + 0x166a08dd], eax
invalid

Function at 0x40a3d0
Capabilities:
Terminate process

Disassembly:
push ebp
shr esp, 0x8b
inc ebp
or byte [ebx - 0x3f0aebfc], cl
je 0x40a410
mov ecx, dword [ebp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test dword [esi - 0x74a9e1a9], eax
xor eax, sym.imp.KERNEL32.dll_GetLastError
call esi
test eax, eax
jne 0x40a3fe
pop esi
pop ebp
ret 8
call esi
add eax, 0xafc80
cld
pop ebp
ret 8
mov eax, 0x7c00c93b
push cs
jnp 0x40a420
add byte [eax - 0x6f6f6f70], dl
nop
nop
ret
Function at 0x402bb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
mov ecx, 0x42958c
call fcn.0040d4e4
mov ebx, eax
mov dword [ebp - 4], 1
test ebx, ebx
je 0x402c64
test esi, esi
jne 0x402c64
mov eax, dword [ebp + 8]
shr eax, 4
inc eax
push esi
movzx ecx, ax
push ecx
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
je 0x402c48
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402c42
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402c42
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
add eax, esi
and ecx, 0xf
jbe 0x402c31
cmp esi, eax
jae 0x402c35
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402c23
cmp esi, eax
jb 0x402c39
xor eax, eax
jmp 0x402c42
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
mov esi, eax
test eax, eax
jne 0x402c6d
mov edi, dword [ebp - 4]
push edi
mov ecx, 0x42958c
call fcn.0040d4e4
mov ebx, eax
inc edi
mov dword [ebp - 4], edi
test ebx, ebx
jne 0x402bd5
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402d50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402d68
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402d9a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x402d96
cmp esi, eax
jae 0x402d9a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402d88
cmp esi, eax
jb 0x402da0
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x403cb0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, ebx
push esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403cc0
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push str.Start_Page
push str.SoftwareMicrosoftInternet_ExplorerMain
push edi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov esi, eax
cmp esi, 5
jne 0x403d35
push edi
mov dword [ebp - 4], vtable.CAccessPermission.0
call fcn.00403ec0
test eax, eax
je 0x403d35
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403d05
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push ebx
push 1
push str.Start_Page
push str.SoftwareMicrosoftInternet_ExplorerMain
push edi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push edi
mov esi, eax
call fcn.00403fa0
test esi, esi
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403ec0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa1c
mov eax, dword [0x4282d0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
add eax, 0x80000000
push esi
push edi
cmp eax, 3
ja case.default.0x403ee6
jmp dword [eax*4 + 0x403f84]
mov esi, str.CLASSES_ROOT
jmp 0x403f07
mov esi, str.CURRENT_USER
jmp 0x403f07
mov esi, str.MACHINE
jmp 0x403f07
mov esi, str.USERS
lea eax, [ebp - 0xa18]
push eax
lea ecx, [ebp - 0x214]
push ecx
mov dword [ebp - 0xa18], 0x202
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push str.SoftwareMicrosoftInternet_ExplorerMain
push esi
push str._s_s
lea edx, [ebp - 0xa14]
push 0x800
push edx
call fcn.0040f218
add esp, 0x14
push 0xf003f
lea eax, [ebp - 0x214]
push eax
push 2
lea edi, [ebp - 0xa14]
call fcn.00403dd0
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040d58c
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0040d58c
mov esp, ebp
pop ebp
ret 4

Function at 0x403fa0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa1c
mov eax, dword [0x4282d0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
add eax, 0x80000000
push esi
push edi
cmp eax, 3
ja case.default.0x403fc6
jmp dword [eax*4 + 0x404060]
mov esi, str.CLASSES_ROOT
jmp 0x403fe7
mov esi, str.CURRENT_USER
jmp 0x403fe7
mov esi, str.MACHINE
jmp 0x403fe7
mov esi, str.USERS
lea eax, [ebp - 0xa18]
push eax
lea ecx, [ebp - 0x214]
push ecx
mov dword [ebp - 0xa18], 0x202
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push str.SoftwareMicrosoftInternet_ExplorerMain
push esi
push str._s_s
lea edx, [ebp - 0xa14]
push 0x800
push edx
call fcn.0040f218
add esp, 0x14
push 2
lea eax, [ebp - 0x214]
push eax
push 3
lea edi, [ebp - 0xa14]
call fcn.00403dd0
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040d58c
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0040d58c
mov esp, ebp
pop ebp
ret 4
Function at 0x406360
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fa2f
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4282d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [esi], vtable.CBDInstall.0
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [esi + 4], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
lea edi, [esi + 8]
call edx
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 1
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [esi + 0xc], eax
mov byte [ebp - 4], 2
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [esi + 0x10], eax
mov byte [ebp - 4], 3
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [esi + 0x14], eax
mov byte [ebp - 4], 4
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [esi + 0x18], eax
mov byte [ebp - 4], 5
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [esi + 0x1c], eax
mov byte [ebp - 4], 6
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [esi + 0x20], eax
mov byte [ebp - 4], 7
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [esi + 0x24], eax
mov byte [ebp - 4], 8
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [esi + 0x28], eax
mov byte [ebp - 4], 9
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], vtable.CHttpWrapper.0
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
push 0x424a8c
push edi
mov byte [ebp - 4], 0xc
call fcn.004029b0
push 0x424a8c
lea eax, [esi + 0xc]
push eax
call fcn.004029b0
push 0x424a8c
lea eax, [esi + 0x10]
push eax
call fcn.004029b0
push 0x424a8c
lea eax, [esi + 0x14]
push eax
call fcn.004029b0
push 0x424a8c
lea eax, [esi + 0x20]
push eax
call fcn.004029b0
push 0x424a8c
lea eax, [esi + 0x24]
push eax
call fcn.004029b0
push 0x424a8c
lea eax, [esi + 0x28]
push eax
call fcn.004029b0
push 0x424a8c
lea eax, [esi + 0x2c]
push eax
call fcn.004029b0
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 0x406750
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4282d0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x212]
push edx
mov dword [ebp - 0x218], eax
mov word [ebp - 0x214], cx
call fcn.00410020
add esp, 0xc
push 0x208
lea eax, [ebp - 0x214]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x423cec
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x214]
lea edi, [esi + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4067c1
sub eax, edx
lea edx, [ebp - 0x214]
sar eax, 1
push edx
push edi
mov ebx, eax
call fcn.004029b0
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x4067fc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040d58c
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x218]
mov edx, dword [edi + 4]
test edx, edx
jne 0x40680d
xor eax, eax
jmp 0x406821
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406812
sub eax, ebx
sar eax, 1
push edx
lea ecx, [esi + 0x10]
push ecx
mov ebx, eax
call fcn.004029b0
mov ecx, dword [edi + 8]
lea edi, [esi + 8]
test ecx, ecx
jne 0x40683b
xor eax, eax
jmp 0x40684f
mov eax, ecx
lea ebx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x406840
sub eax, ebx
sar eax, 1
push ecx
push edi
mov ebx, eax
call fcn.004029b0
mov ecx, dword [ebp - 0x218]
mov ecx, dword [ecx + 0xc]
lea edi, [esi + 0x14]
test ecx, ecx
jne 0x40686c
xor eax, eax
jmp 0x406880
mov eax, ecx
lea ebx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x406871
sub eax, ebx
sar eax, 1
push ecx
push edi
mov ebx, eax
call fcn.004029b0
mov edx, dword [ebp - 0x218]
mov ecx, dword [edx + 0x10]
lea edi, [esi + 0x18]
test ecx, ecx
jne 0x40689d
xor eax, eax
jmp 0x4068b1
mov eax, ecx
lea ebx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4068a2
sub eax, ebx
sar eax, 1
push ecx
push edi
mov ebx, eax
call fcn.004029b0
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax + 0x14]
lea edi, [esi + 0x1c]
test ecx, ecx
jne 0x4068ce
xor eax, eax
jmp 0x4068e2
mov eax, ecx
lea ebx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4068d3
sub eax, ebx
sar eax, 1
push ecx
push edi
mov ebx, eax
call fcn.004029b0
mov ecx, dword [ebp - 0x218]
mov ecx, dword [ecx + 0x18]
lea edi, [esi + 0x20]
test ecx, ecx
jne 0x4068ff
xor eax, eax
jmp 0x406913
mov eax, ecx
lea ebx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x406904
sub eax, ebx
sar eax, 1
push ecx
push edi
mov ebx, eax
call fcn.004029b0
mov eax, dword [esi + 0x10]
cmp dword [eax - 0xc], 0
je 0x406947
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406947
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov ecx, dword [esi + 0x10]
push esi
call fcn.00406dd0
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.00406a90
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0040d58c
mov esp, ebp
pop ebp
ret 4
Function at 0x4096b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push 0x40
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.00410020
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x58]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x58], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40971b
mov edx, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0xc]
push eax
call esi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x409b80
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420146
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4282d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [esi + 0x1c]
mov ecx, 0x4249e8
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x409bda
test dx, dx
je 0x409bd6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x409bda
add eax, 4
add ecx, 4
test dx, dx
jne 0x409bb4
xor eax, eax
jmp 0x409bdf
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x409daa
cmp dword [0x42a4bc], 0
je 0x409daa
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.00410020
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x218]
call fcn.00401fe0
push 0xf
push 0x4249ec
lea ebx, [ebp - 0x21c]
mov dword [ebp - 4], 0
call fcn.004028f0
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [ebp - 0x220]
push edx
mov ecx, str.http:__dl.baofeng.com_baofeng5_BFAssistant.exe
call fcn.00401fe0
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call fcn.00409dd0
mov edx, dword [ebp - 0x21c]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x409ca5
xor eax, eax
mov ecx, ebx
call fcn.00402a90
mov edx, dword [ebp - 0x21c]
mov ebx, edx
mov edx, dword [ebp - 0x220]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x409ccf
xor eax, eax
lea ecx, [ebp - 0x220]
call fcn.00402a90
mov edx, dword [ebp - 0x220]
push edx
lea eax, [esi + 0x30]
call fcn.0040cc40
test eax, eax
je 0x409d5b
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0040e323
add esp, 8
test eax, eax
js 0x409dc4
mov ecx, dword [ebp - 0x220]
cmp eax, dword [ecx - 8]
jg 0x409dc4
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x220]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0040e323
add esp, 8
test eax, eax
js 0x409dc4
mov ecx, dword [ebp - 0x21c]
cmp eax, dword [ecx - 8]
jg 0x409dc4
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x21c]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp - 0x21c]
push ecx
push eax
call fcn.004096b0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409d81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409daa
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 ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d58c
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402e70
int3
Function at 0x40cd10
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, eax
push edi
test esi, esi
je 0x40cdbb
mov eax, dword [ebp + 8]
test eax, eax
je 0x40cdbb
push esi
mov dword [eax], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40cdbb
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40cdbb
lea eax, [ebp - 4]
push eax
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov eax, dword [ebp - 4]
test ebx, ebx
jne 0x40cd7e
test eax, eax
je 0x40cdb4
test eax, eax
jne 0x40cdb4
push ebx
call fcn.0040e89b
mov esi, eax
add esp, 4
test esi, esi
je 0x40cdb4
push 0
lea ecx, [ebp - 8]
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40cdc4
push esi
call fcn.0040e8a6
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
push edx
push ebx
call fcn.0040cdf0
push esi
mov edi, eax
call fcn.0040e8a6
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40d58c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4282d0]
jne 0x40d596
repz ret
jmp fcn.00410108