joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450432
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00449f80
mov eax, dword [0x4094e4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00450313
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x450565
push 2
push esi
push dword [ebp + 8]
call fcn.00450313
add esp, 0xc
cmp eax, ebx
je 0x450565
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x450505
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0044ea80
push 0x8000
push dword [ebp + 8]
call fcn.00454333
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x4504bb
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0044d8f2
add esp, 0xc
cmp eax, 0xffffffff
je 0x4504db
sub edi, eax
test edi, edi
jg 0x4504b3
jmp 0x4504f3
call fcn.00448da4
cmp dword [eax], 5
jne 0x4504f0
call fcn.00448d9b
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00454333
pop ecx
pop ecx
jmp 0x45054d
jge 0x45054d
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00450313
push dword [ebp + 8]
call fcn.0044fd2d
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x45054d
call fcn.00448d9b
mov dword [eax], 0xd
call fcn.00448da4
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.00450313
add esp, 0xc
mov eax, esi
pop edi
jmp 0x450567
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0044f6d7
leave
ret
Function at 0x4527bc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4527ea
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4527f1
cmp ebx, dword [eax + 4]
jae 0x4527f1
xor eax, eax
jmp 0x4529e1
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x452802
xor eax, eax
inc eax
jmp 0x4529e0
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x452818
cmp ecx, edx
jae 0x45295d
cmp dword [eax + 4], 0
je 0x452821
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x452809
cmp dword [ebp + 8], 0
je 0x452843
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x45295d
cmp eax, esi
jae 0x45295d
mov eax, dword [0x402ed8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x452868
cmp dword [esi*4 + 0x402ee0], edi
je 0x452961
inc esi
cmp esi, eax
jl 0x452856
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4529dd
cmp dword [ebp - 8], 0x1000000
jne 0x4529dd
test byte [ebp - 0xc], 0xcc
je 0x4528e6
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4529dd
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4529dd
cmp word [eax + 0x18], 0x10b
jne 0x4529dd
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4529dd
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4528e6
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4528e6
test byte [ecx + 0x27], 0x80
jne 0x45295d
push 1
push 0x402f20
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4527fa
mov ecx, dword [0x402ed8]
test ecx, ecx
mov edx, ecx
jle 0x45291a
lea eax, [ecx*4 + 0x402edc]
cmp dword [eax], edi
je 0x45291a
dec edx
sub eax, 4
test edx, edx
jg 0x45290e
test edx, edx
jne 0x45294b
push 0xf
pop ebx
cmp ecx, ebx
jg 0x452927
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x45293f
lea eax, [edx*4 + 0x402ee0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x45292d
cmp ecx, 0x10
jge 0x45294b
inc ecx
mov dword [0x402ed8], ecx
push 0
push 0x402f20
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4527fa
xor eax, eax
jmp 0x4529e0
test esi, esi
jle 0x4527fa
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x402f20
call ebx
test eax, eax
jne 0x4527fa
cmp dword [esi*4 + 0x402ee0], edi
je 0x4529b7
mov eax, dword [0x402ed8]
lea esi, [eax - 1]
test esi, esi
jl 0x4529a5
cmp dword [esi*4 + 0x402ee0], edi
je 0x4529a1
dec esi
jns 0x452995
test esi, esi
jge 0x4529b5
cmp eax, 0x10
jge 0x4529b0
inc eax
mov dword [0x402ed8], eax
lea esi, [eax - 1]
jmp 0x4529b7
je 0x4529cf
xor ecx, ecx
test esi, esi
jl 0x4529cf
lea eax, [ecx*4 + 0x402ee0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4529bd
push 0
push 0x402f20
call ebx
jmp 0x4527fa
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45335c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x402f28], ebx
push esi
push edi
jne 0x4533dc
push 0x43bf58
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x453417
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43bf4c
push edi
call esi
test eax, eax
mov dword [0x402f28], eax
je 0x453417
push 0x43bf3c
push edi
call esi
push 0x43bf28
push edi
mov dword [0x402f2c], eax
call esi
cmp dword [0x4029a8], 2
mov dword [0x402f30], eax
jne 0x4533dc
push 0x43bf0c
push edi
call esi
test eax, eax
mov dword [0x402f38], eax
je 0x4533dc
push 0x43bef4
push edi
call esi
mov dword [0x402f34], eax
mov eax, dword [0x402f34]
test eax, eax
je 0x453421
call eax
test eax, eax
je 0x453408
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x402f38]
test eax, eax
je 0x453408
test byte [ebp - 8], 1
jne 0x453421
cmp dword [0x4029b4], 4
jb 0x45341b
or byte [ebp + 0x12], 0x20
jmp 0x453440
xor eax, eax
jmp 0x453450
or byte [ebp + 0x12], 4
jmp 0x453440
mov eax, dword [0x402f2c]
test eax, eax
je 0x453440
call eax
mov ebx, eax
test ebx, ebx
je 0x453440
mov eax, dword [0x402f30]
test eax, eax
je 0x453440
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x402f28]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x455149
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x455162
or eax, 0xffffffff
jmp 0x4551c3
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x4551bf
push 0x3d
push esi
call fcn.004555f1
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4551bf
cmp esi, eax
je 0x4551bf
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x4029c8]
sete cl
cmp eax, dword [0x4029cc]
mov dword [ebp - 8], ecx
jne 0x4551a5
mov edi, eax
call fcn.004550e8
mov dword [0x4029c8], eax
cmp eax, ebx
jne 0x4551fe
cmp dword [ebp + 0xc], ebx
je 0x4551c7
cmp dword [0x4029d0], ebx
je 0x4551c7
call fcn.0045406d
test eax, eax
je 0x4551fe
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x4551d0
xor eax, eax
jmp 0x4551c2
push 4
call fcn.00448a20
cmp eax, ebx
pop ecx
mov dword [0x4029c8], eax
je 0x4551bf
mov dword [eax], ebx
cmp dword [0x4029d0], ebx
jne 0x4551fe
push 4
call fcn.00448a20
cmp eax, ebx
pop ecx
mov dword [0x4029d0], eax
je 0x4551bf
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x4029c8]
call fcn.0045509b
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x45525f
cmp dword [esi], ebx
je 0x45525f
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0044746e
cmp dword [ebp - 8], ebx
pop ecx
jne 0x455242
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x4552a0
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x455239
mov eax, edi
shl eax, 2
push eax
push dword [0x4029c8]
call fcn.00448a32
cmp eax, ebx
pop ecx
pop ecx
je 0x4552a0
jmp 0x45529b
cmp dword [ebp - 8], ebx
jne 0x45530b
cmp edi, ebx
jge 0x45526e
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4029c8]
call fcn.00448a32
cmp eax, ebx
pop ecx
pop ecx
je 0x4551bf
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x4029c8], eax
cmp dword [ebp + 0xc], ebx
je 0x4552f5
push dword [ebp - 4]
call fcn.0044d6f0
inc eax
inc eax
push eax
call fcn.00448a20
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4552f5
push dword [ebp - 4]
push esi
call fcn.0044e980
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4552ee
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0044746e
pop ecx
cmp dword [ebp - 8], ebx
je 0x455303
push dword [ebp - 4]
call fcn.0044746e
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4551c2
push dword [ebp - 4]
call fcn.0044746e
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x4551cc
Function at 0x45531e
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x43c150
call fcn.0044c0a4
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x402f50], edi
jne 0x455362
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x45534d
mov dword [0x402f50], ebx
jmp 0x455362
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x455362
mov dword [0x402f50], 2
mov eax, dword [0x402f50]
cmp eax, ebx
jne 0x455382
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x455445
cmp eax, 2
je 0x45538b
cmp eax, edi
jne 0x4553b3
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x45539e
mov eax, dword [0x402d8c]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x4553ba
xor eax, eax
jmp 0x455445
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00449f80
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x4553ed
cmp esi, edi
jne 0x455403
push dword [ebp - 0x20]
call fcn.00448a20
pop ecx
mov esi, eax
cmp esi, edi
je 0x4553b3
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x455436
cmp dword [ebp + 0x14], edi
jne 0x455420
push edi
push edi
jmp 0x455426
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x455442
push esi
call fcn.0044746e
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0044c0df
ret
Function at 0x45544e
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x43c160
call fcn.0044c0a4
xor esi, esi
cmp dword [0x402f54], esi
jne 0x455492
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x45547d
mov dword [0x402f54], edi
jmp 0x455492
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x455492
mov dword [0x402f54], 2
mov eax, dword [0x402f54]
cmp eax, 2
je 0x455573
cmp eax, esi
je 0x455573
cmp eax, 1
jne 0x4554d7
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x4554c0
mov eax, dword [0x402d8c]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x4554de
xor eax, eax
jmp 0x455585
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00449f80
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x455514
cmp edi, esi
jne 0x45552f
lea eax, [ebx + ebx]
push eax
call fcn.00448a20
pop ecx
mov edi, eax
cmp edi, esi
je 0x4554d7
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x455562
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x45554c
push esi
push esi
jmp 0x455552
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x45556e
push edi
call fcn.0044746e
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x455585
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.0044c0df
ret
Function at 0x4012f0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4361b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push str.BaofengThemeFileMap
mov edi, ecx
lea ecx, [ebx + 0x20c]
push ecx
push 0
push 4
push 0
push 0xffffffffffffffff
mov esi, edx
mov dword [ebp - 0x218], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
je 0x4013bc
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x214], eax
test eax, eax
je 0x4013bc
push 0x208
lea edx, [ebp - 0x20c]
push 0
push edx
call sub.MSVCR100.dll_memset
lea edx, [ebp - 0x20c]
add esp, 0xc
mov dword [ebp - 0x210], ebx
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401376
mov edi, dword [ebp - 0x214]
mov eax, dword [ebp - 0x218]
mov ecx, 0x83
lea esi, [ebp - 0x210]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x214]
push ebx
push eax
lea ecx, [esi + 0x20c]
push ecx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042391e
mov esp, ebp
pop ebp
ret 4
Function at 0x4013d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x720
mov eax, dword [0x4361b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [sym.imp.MSVCR100.dll_wcsstr]
mov esi, eax
push str._Shell
push esi
call edi
add esp, 8
test eax, eax
jne 0x401414
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042391e
mov esp, ebp
pop ebp
ret
push str._Dll
push esi
call edi
add esp, 8
test eax, eax
je 0x401402
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_wcschr]
lea edi, [eax + 0xc]
push 0x22
push edi
call ebx
mov esi, eax
add esp, 8
test esi, esi
jne 0x40144e
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042391e
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x516]
push ecx
mov word [ebp - 0x518], ax
call sub.MSVCR100.dll_memset
mov edx, esi
sub edx, edi
sar edx, 1
push edx
push edi
lea eax, [ebp - 0x518]
push 0x104
push eax
call dword [sym.imp.MSVCR100.dll_wcsncpy_s]
add esi, 4
push 0x20
push esi
call ebx
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x30e]
push edx
mov edi, eax
mov word [ebp - 0x310], cx
call sub.MSVCR100.dll_memset
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x71e]
push ecx
mov word [ebp - 0x720], ax
call sub.MSVCR100.dll_memset
add esp, 0x3c
test edi, edi
jne 0x4014e2
push esi
lea edx, [ebp - 0x310]
push 0x104
push edx
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
jmp 0x401515
mov eax, edi
sub eax, esi
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x310]
push 0x104
push ecx
call dword [sym.imp.MSVCR100.dll_wcsncpy_s]
add edi, 2
push edi
lea edx, [ebp - 0x720]
push 0x104
push edx
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0x1c
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call sub.MSVCR100.dll_memset
lea eax, [ebp - 0x310]
add esp, 0xc
lea edx, [eax + 2]
jmp 0x401540
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401540
push 0
push 0
push 0x104
sub eax, edx
lea ecx, [ebp - 0x108]
push ecx
sar eax, 1
push eax
lea edx, [ebp - 0x310]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x518]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4015b1
lea ecx, [ebp - 0x108]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4015aa
lea edx, [ebp - 0x720]
push edx
call eax
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.0042391e
mov esp, ebp
pop ebp
ret
Function at 0x401d50
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
push edi
push str.BaofengPlatform_Mutex
push 1
push 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x437fb4], eax
call edi
cmp eax, 0xb7
jne 0x401e20
push str.BaofengPlatform2_Mutex
push 1
push 0
call esi
mov dword [0x437fb8], eax
call edi
cmp eax, 0xb7
jne 0x401dc4
mov eax, dword [0x437fb4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [0x437fb8]
push ecx
mov dword [0x437fb4], 0
call esi
pop edi
mov dword [0x437fb8], 0
mov al, 1
pop esi
ret
push str.BaofengPlatform_Closing_Event
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov edi, eax
test edi, edi
je 0x401e25
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x437fc4
push 0
mov esi, eax
push esi
push 0x401cb0
push 0
push 0
call dword [sym.imp.MSVCR100.dll__beginthreadex]
add esp, 0x18
push 0xffffffffffffffff
push esi
mov dword [0x437fc0], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
pop edi
xor al, al
pop esi
ret
mov edx, dword [0x437fb4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, 1
pop esi
ret
Function at 0x401e40
Capabilities:
Initialize winsock library
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a4
mov eax, dword [0x4361b0]
xor eax, esp
mov dword [esp + 0x1a0], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [0x437fb0], edi
call fcn.004013d0
test al, al
je 0x401e8b
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a0]
xor ecx, esp
call fcn.0042391e
mov esp, ebp
pop ebp
ret 0x10
call fcn.00401d50
test al, al
jne 0x401e72
call fcn.00417890
test al, al
jne 0x401e72
xor ebx, ebx
cmp byte [0x437fd0], bl
je 0x401eb7
push 1
push str.PlatformCrashTime
call dword [sym.imp.crt.dll_Ordinal_32]
add esp, 8
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 8
mov dword [esp + 0x18], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
call fcn.00409980
call fcn.00409750
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov esi, dword [sym.imp.crt.dll_Ordinal_3]
push 1
call esi
add esp, 4
push 2
call esi
add esp, 4
mov ecx, edi
call fcn.00401920
mov eax, dword [0x438048]
cmp eax, ebx
je 0x401f37
push str.StormPlayer
push 0x401a90
push str.Daily.Platform_Exception
push str.ClassCrashPlatform
push 0x42a338
push ebx
call eax
add esp, 0x18
mov eax, dword [0x438058]
cmp eax, ebx
je 0x401f42
call eax
call fcn.00402630
mov eax, dword [0x437340]
cmp eax, ebx
je 0x401f57
push 1
call eax
add esp, 4
push 0x18e
lea edx, [esp + 0x1e]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x24], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.00401af0
mov edi, eax
cmp dword [0x438044], ebx
je 0x401fae
mov eax, dword [0x43804c]
cmp eax, ebx
je 0x401f9b
call eax
mov ecx, dword [0x438044]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x438044], ebx
push 1
push str.PlatformCrashTime
call dword [sym.imp.crt.dll_Ordinal_32]
push 2
call dword [sym.imp.crt.dll_Ordinal_4]
mov eax, dword [0x437344]
add esp, 0xc
cmp eax, ebx
je 0x401fd1
call eax
mov esi, 0x437338
call fcn.00409dd0
mov edx, dword [0x437fb4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
call dword [sym.imp.WS2_32.dll_WSACleanup]
call fcn.004025d0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [0x437fbc]
cmp eax, ebx
je 0x402010
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x437fbc]
push eax
call esi
mov eax, dword [0x437fc0]
mov dword [0x437fbc], ebx
cmp eax, ebx
je 0x402038
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x437fc0]
push eax
call esi
mov dword [0x437fc0], ebx
mov ecx, dword [esp + 0x1ac]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042391e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40bcd0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42517b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x4361b0]
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 eax, ecx
mov ecx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x218], edi
mov dword [ebp - 4], edi
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 0x218]
mov eax, dword [eax]
or ebx, 0x2001f
mov dword [ebp - 0x228], edi
cmp esi, edi
je 0x40bd52
push ecx
push eax
lea edi, [ebp - 0x228]
call fcn.0040bbf0
xor edi, edi
jmp 0x40bd63
lea edx, [ebp - 0x228]
push edx
push ebx
push edi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x40be5c
mov ecx, dword [ebp - 0x220]
xor eax, eax
cmp ecx, edi
je 0x40bd86
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x220], edi
mov ecx, dword [ebp - 0x228]
and ebx, 0x300
mov dword [ebp - 0x21c], edi
mov esi, eax
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], ebx
cmp eax, edi
jne 0x40be5c
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x238]
push eax
push edi
push edi
push edi
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x214]
push eax
push edi
push ecx
mov dword [ebp - 0x224], 0x100
call esi
test eax, eax
jne 0x40be2c
mov edi, edi
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x220]
call fcn.0040bcd0
mov ebx, eax
cmp ebx, edi
jne 0x40bea0
lea edx, [ebp - 0x238]
push edx
mov edx, dword [ebp - 0x220]
push edi
push edi
push edi
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x214]
push ecx
push edi
push edx
mov dword [ebp - 0x224], 0x100
call esi
test eax, eax
je 0x40bde0
mov eax, dword [ebp - 0x220]
cmp eax, edi
je 0x40be43
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x220], edi
mov ebx, dword [ebp - 0x230]
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x21c], edi
call fcn.0040bf40
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
cmp eax, edi
je 0x40be7a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x220], edi
mov eax, esi
mov dword [ebp - 0x21c], 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.0042391e
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
cmp eax, edi
je 0x40bebe
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x220], edi
mov eax, ebx
jmp 0x40be7c