joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420d90
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041a7c5
and dword [ebp - 4], 0
cmp dword [0x4492d0], 0
mov ebx, eax
jne 0x420e41
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x420ef2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x420ef2
push eax
call fcn.0041a753
mov dword [esp], 0x42ca88
push edi
mov dword [0x4492d0], eax
call esi
push eax
call fcn.0041a753
mov dword [esp], 0x42ca74
push edi
mov dword [0x4492d4], eax
call esi
push eax
call fcn.0041a753
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4492d8], eax
call esi
push eax
call fcn.0041a753
pop ecx
mov dword [0x4492e0], eax
test eax, eax
je 0x420e41
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041a753
pop ecx
mov dword [0x4492dc], eax
mov eax, dword [0x4492dc]
cmp eax, ebx
je 0x420e99
cmp dword [0x4492e0], ebx
je 0x420e99
push eax
call fcn.0041a7ce
push dword [0x4492e0]
mov esi, eax
call fcn.0041a7ce
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x420e99
test edi, edi
je 0x420e99
call esi
test eax, eax
je 0x420e90
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x420e90
test byte [ebp - 0xc], 1
jne 0x420e99
or dword [ebp + 0x10], 0x200000
jmp 0x420ed2
mov eax, dword [0x4492d4]
cmp eax, ebx
je 0x420ed2
push eax
call fcn.0041a7ce
pop ecx
test eax, eax
je 0x420ed2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x420ed2
mov eax, dword [0x4492d8]
cmp eax, ebx
je 0x420ed2
push eax
call fcn.0041a7ce
pop ecx
test eax, eax
je 0x420ed2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4492d0]
call fcn.0041a7ce
pop ecx
test eax, eax
je 0x420ef2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x420ef4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401040
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x43b1b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov esi, ecx
push 0x206
push eax
lea ecx, [ebp - 0x61a]
push ecx
mov dword [ebp - 0x82c], esi
mov word [ebp - 0x61c], ax
call fcn.004277f0
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x412]
push eax
mov word [ebp - 0x414], dx
call fcn.004277f0
mov edx, dword [0x43d030]
add esp, 0x18
push 0x104
lea ecx, [ebp - 0x414]
push ecx
push edx
call dword [0x42d204]
push 0x42dcd4
lea eax, [ebp - 0x414]
push eax
call dword [0x42d398]
cmp dword [esi + 4], 0
mov edi, dword [0x42d2c0]
jne 0x4010fe
lea ecx, [ebp - 0x414]
push ecx
push str._sStormPlayer.dll
lea edx, [ebp - 0x61c]
push 0x104
push edx
call edi
add esp, 0x10
push 1
push 0
lea eax, [ebp - 0x61c]
push eax
call dword [0x42d208]
mov dword [esi + 4], eax
cmp dword [esi + 8], 0
jne 0x4012dd
lea ecx, [ebp - 0x414]
push ecx
push str._sSkinStormPlayer.bftheme
lea edx, [ebp - 0x61c]
push 0x104
push edx
call edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.004277f0
push 0
push 0x104
lea edx, [ebp - 0x20c]
push edx
push str.ThemeFile
call dword [sym.imp.crt.dll_Ordinal_27]
xor eax, eax
add esp, 0x2c
cmp word [ebp - 0x20c], ax
jne 0x40118d
jmp 0x401170
movzx ecx, word [ebp + eax - 0x61c]
mov word [ebp + eax - 0x20c], cx
add eax, 2
test cx, cx
jne 0x401170
jmp 0x401258
push 0x206
lea ecx, [ebp - 0x822]
push 0
push ecx
mov word [ebp - 0x824], ax
call fcn.004277f0
add esp, 0xc
cmp word [ebp - 0x20a], 0x3a
jne 0x4011da
cmp word [ebp - 0x208], 0x5c
jne 0x4011da
xor eax, eax
movzx ecx, word [ebp + eax - 0x20c]
mov word [ebp + eax - 0x824], cx
add eax, 2
test cx, cx
jne 0x4011c0
jmp 0x4011fe
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x414]
push eax
push str._sSkin_s
lea ecx, [ebp - 0x824]
push 0x104
push ecx
call edi
add esp, 0x14
lea edx, [ebp - 0x824]
push edx
call dword [0x42d394]
test eax, eax
je 0x40123a
xor eax, eax
jmp 0x401220
movzx ecx, word [ebp + eax - 0x824]
mov word [ebp + eax - 0x20c], cx
add eax, 2
test cx, cx
jne 0x401220
jmp 0x401258
xor eax, eax
lea esp, [esp]
movzx ecx, word [ebp + eax - 0x61c]
mov word [ebp + eax - 0x20c], cx
add eax, 2
test cx, cx
jne 0x401240
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [0x42d20c]
mov esi, eax
cmp esi, 0xffffffff
je 0x4012dd
push ebx
push 0
push esi
call dword [0x42d19c]
mov ebx, eax
push ebx
call dword [0x42d2c8]
add esp, 4
push 0
lea ecx, [ebp - 0x828]
push ecx
push ebx
mov edi, eax
push edi
push esi
mov dword [ebp - 0x828], 0
call dword [0x42d200]
test eax, eax
je 0x4012d5
mov ebx, dword [ebp - 0x828]
mov edx, dword [ebp - 0x82c]
push edi
lea ecx, [ebp - 0x20c]
call fcn.004012f0
push edi
call dword [0x42d260]
add esp, 4
push esi
call dword [0x42d148]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042728e
mov esp, ebp
pop ebp
ret
Function at 0x401d60
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [0x42d124]
push edi
push str.BaofengPlatform_Mutex
push 1
push 0
call esi
mov edi, dword [0x42d0fc]
mov dword [0x43d034], eax
call edi
cmp eax, 0xb7
jne 0x401e30
push str.BaofengPlatform2_Mutex
push 1
push 0
call esi
mov dword [0x43d038], eax
call edi
cmp eax, 0xb7
jne 0x401dd4
mov eax, dword [0x43d034]
mov esi, dword [0x42d148]
push eax
call esi
mov ecx, dword [0x43d038]
push ecx
mov dword [0x43d034], 0
call esi
pop edi
mov dword [0x43d038], 0
mov al, 1
pop esi
ret
push str.BaofengPlatform_Closing_Event
push 0
push 0x100000
call dword [0x42d11c]
mov edi, eax
test edi, edi
je 0x401e35
push 0
push 0
push 1
push 0
call dword [0x42d0c4]
push 0x43d044
push 0
mov esi, eax
push esi
push 0x401cc0
push 0
push 0
call dword [0x42d2d4]
add esp, 0x18
push 0xffffffffffffffff
push esi
mov dword [0x43d040], eax
call dword [0x42d0c8]
push esi
mov esi, dword [0x42d148]
call esi
push edi
call esi
pop edi
xor al, al
pop esi
ret
mov edx, dword [0x43d034]
push edx
call dword [0x42d148]
pop edi
mov al, 1
pop esi
ret
Function at 0x401e50
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a4
mov eax, dword [0x43b1b0]
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 [0x43d030], edi
call fcn.004013d0
test al, al
je 0x401e9b
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a0]
xor ecx, esp
call fcn.0042728e
mov esp, ebp
pop ebp
ret 0x10
call fcn.00401d60
test al, al
jne 0x401e82
call fcn.00418ae0
test al, al
jne 0x401e82
xor ebx, ebx
cmp byte [0x43d058], bl
je 0x401ec7
push 1
push str.PlatformCrashTime
call dword [sym.imp.crt.dll_Ordinal_32]
add esp, 8
push ebx
call dword [0x42d658]
push ebx
push ebx
push ebx
push ebx
call dword [0x42d528]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 8
mov dword [esp + 0x18], 4
call dword [0x42d024]
call fcn.00409a00
call fcn.004097d0
push ebx
call dword [0x42d620]
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.00401930
mov eax, dword [0x43d0d0]
cmp eax, ebx
je 0x401f47
push str.StormPlayer
push 0x401aa0
push str.Daily.Platform_Exception
push str.ClassCrashPlatform
push 0x42e388
push ebx
call eax
add esp, 0x18
mov eax, dword [0x43d0e0]
cmp eax, ebx
je 0x401f52
call eax
call fcn.00402660
mov eax, dword [0x43c390]
cmp eax, ebx
je 0x401f67
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 fcn.004277f0
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.00401b00
mov edi, eax
cmp dword [0x43d0cc], ebx
je 0x401fbe
mov eax, dword [0x43d0d4]
cmp eax, ebx
je 0x401fab
call eax
mov ecx, dword [0x43d0cc]
push ecx
call dword [0x42d0a8]
mov dword [0x43d0cc], 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 [0x43c394]
add esp, 0xc
cmp eax, ebx
je 0x401fe1
call eax
mov esi, 0x43c388
call fcn.00409e50
mov edx, dword [0x43d034]
mov esi, dword [0x42d148]
push edx
call esi
call dword [sym.imp.WS2_32.dll_WSACleanup]
call fcn.00402600
call dword [0x42d650]
mov eax, dword [0x43d03c]
cmp eax, ebx
je 0x402020
push eax
call dword [0x42d0cc]
mov eax, dword [0x43d03c]
push eax
call esi
mov eax, dword [0x43d040]
mov dword [0x43d03c], ebx
cmp eax, ebx
je 0x402048
push ebx
push eax
call dword [0x42d0d0]
mov eax, dword [0x43d040]
push eax
call esi
mov dword [0x43d040], ebx
mov ecx, dword [esp + 0x1ac]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042728e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40bd40
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428c3b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x43b1b0]
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 0x40bdc2
push ecx
push eax
lea edi, [ebp - 0x228]
call fcn.0040bc60
xor edi, edi
jmp 0x40bdd3
lea edx, [ebp - 0x228]
push edx
push ebx
push edi
push ecx
push eax
call dword [section..rdata]
mov esi, eax
cmp esi, edi
jne 0x40becc
mov ecx, dword [ebp - 0x220]
xor eax, eax
cmp ecx, edi
je 0x40bdf6
push ecx
call dword [0x42d01c]
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 0x40becc
mov esi, dword [0x42d014]
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], pe_nt_image_headers32
call esi
test eax, eax
jne 0x40be9c
mov edi, edi
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x220]
call fcn.0040bd40
mov ebx, eax
cmp ebx, edi
jne 0x40bf10
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], pe_nt_image_headers32
call esi
test eax, eax
je 0x40be50
mov eax, dword [ebp - 0x220]
cmp eax, edi
je 0x40beb3
push eax
call dword [0x42d01c]
mov dword [ebp - 0x220], edi
mov ebx, dword [ebp - 0x230]
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x21c], edi
call fcn.0040bfb0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
cmp eax, edi
je 0x40beea
push eax
call dword [0x42d01c]
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.0042728e
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
cmp eax, edi
je 0x40bf2e
push eax
call dword [0x42d01c]
mov dword [ebp - 0x220], edi
mov eax, ebx
jmp 0x40beec
Function at 0x410fd0
Capabilities:
Create process on windows

Disassembly:
add eax, 0xffff7ff7
push edi
mov edi, ecx
cmp eax, 0xb
ja case.0x410fdd.32779
jmp dword [eax*4 + 0x411078]
mov eax, dword [edi + 0x84c]
test eax, eax
je 0x410ffc
mov eax, dword [eax + 4]
push eax
call dword [0x42d3c8]
test eax, eax
jne case.0x410fdd.32779
push 1
call fcn.00411110
test eax, eax
je case.0x410fdd.32779
push 0
push 0
push 0
push 1
push str.DAILY.SF_QUITBYRIGHTBUTTON
call dword [sym.imp.crt.dll_Ordinal_58]
mov ecx, dword [edi + 4]
add esp, 0x14
push 0
push 0xf060
push 0x112
push ecx
mov dword [edi + 0x850], 1
mov dword [edi + 0x78c], 2
call dword [0x42d548]
pop edi
ret
pop edi
jmp fcn.004110b0
mov edx, dword [edi + 4]
push 5
push 0
push 0
push str.http:__www.baofeng.com
push str.open
push edx
call dword [0x42d370]
pop edi
ret
pop edi
jmp fcn.0040f4a0
pop edi
jmp fcn.0040f130
Function at 0x411290
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42baa8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x43b1b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x43d030]
push 0x6f
push eax
call dword [0x42d46c]
mov edx, dword [0x43b17c]
mov eax, dword [edx + 0xc]
mov ecx, 0x43b17c
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0x10]
lea edi, [ebp - 0x10]
cmp eax, 0x4e25
jne 0x4112ff
push 0x42f880
call fcn.0040d900
add esp, 4
jmp 0x41130f
push eax
push 1
push 0x42f89c
call fcn.0040d900
add esp, 0xc
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov edi, dword [esi + 0x6b8]
lea ebx, [esi + 0x6b8]
lea eax, [ecx - 0x10]
sub edi, 0x10
mov dword [ebp + 8], eax
cmp eax, edi
je 0x411372
cmp dword [edi + 0xc], 0
jl 0x411365
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x411365
call fcn.00411990
mov dword [ebp - 0x14], eax
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41135b
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x10
mov dword [ebx], ecx
jmp 0x41136f
push ecx
push ebx
mov ebx, dword [ecx - 0xc]
call fcn.0040e470
mov eax, dword [ebp + 8]
cmp dword [esi + 0x6b0], 0
jne 0x41139f
call dword [0x42d0c0]
mov edx, dword [esi - 0x188]
push 0
push 0x12c
push eax
push edx
call dword [0x42d40c]
mov dword [esi + 0x6b0], eax
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 0x64
jne 0x4113f7
mov ecx, dword [esi + 0x6b0]
test ecx, ecx
je 0x4113f7
mov eax, dword [esi - 0x188]
push ecx
push eax
call dword [0x42d410]
mov ecx, dword [0x43d030]
push 0x6c
push ecx
mov dword [esi + 0x6b0], 0
call dword [0x42d46c]
test eax, eax
je 0x4113f4
mov ecx, dword [esi + 0x6b8]
mov edx, dword [esi - 0x164]
add esi, 0xfffffe9c
push ecx
push eax
mov eax, dword [edx + 0x10]
push esi
call eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411417
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0xc
Function at 0x411430
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
test eax, eax
jne 0x4114aa
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x6b0]
test eax, eax
je 0x4114f8
push eax
mov eax, dword [esi - 0x188]
push eax
call dword [0x42d410]
mov ecx, dword [0x43d030]
push 0x6c
push ecx
mov dword [esi + 0x6b0], 0
call dword [0x42d46c]
mov ebx, eax
test ebx, ebx
je 0x4114f8
lea edi, [esi + 0x6b8]
mov edx, 0x42f67c
call fcn.0040e370
mov ecx, dword [edi]
mov edx, dword [esi - 0x164]
mov edx, dword [edx + 0x10]
lea eax, [esi - 0x164]
push ecx
push ebx
push eax
call edx
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc
cmp eax, 1
jne 0x4114f8
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add edi, 0x6bc
test edx, edx
jne 0x4114d3
xor eax, eax
push edx
push edi
mov ebx, eax
call fcn.0040e470
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc
mov eax, edx
lea esi, [eax + 2]
jmp 0x4114e0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4114e0
sub eax, esi
sar eax, 1
push edx
push edi
mov ebx, eax
call fcn.0040e470
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc
Function at 0x411610
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b3d1
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x43b1b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.004277f0
mov esi, dword [sym.imp.crt.dll_Ordinal_18]
push 0x208
lea edx, [ebp - 0x218]
push edx
push 0x42f3bc
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun360Disabled
push Ordinal_4
call esi
add esp, 0x20
cmp word [ebp - 0x218], 0
jne 0x4117db
push 0x208
lea eax, [ebp - 0x218]
push eax
push 0x42f3bc
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push Ordinal_4
call esi
add esp, 0x14
cmp word [ebp - 0x218], 0
jne 0x4117db
push 0x208
lea ecx, [ebp - 0x218]
push ecx
push 0x42f3bc
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push Ordinal_4
call esi
add esp, 0x14
cmp word [ebp - 0x218], 0
jne 0x4117db
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x41e]
push eax
mov word [ebp - 0x420], dx
call fcn.004277f0
mov edx, dword [0x43b17c]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x43b17c
call eax
add eax, 0x10
mov dword [ebp - 0x424], eax
mov dword [ebp - 4], 1
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push 0
call dword [0x42d204]
lea edx, [ebp - 0x420]
push edx
push str.__s___AutoRun
lea edi, [ebp - 0x424]
call fcn.0040d900
mov edi, dword [ebp - 0x424]
mov ebx, dword [sym.imp.crt.dll_Ordinal_19]
push edi
push 0x42f3bc
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push Ordinal_4
call ebx
push 0x208
lea ecx, [ebp - 0x218]
push ecx
push 0x42f3bc
xor eax, eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push Ordinal_4
mov word [ebp - 0x218], ax
call esi
add esp, 0x2c
cmp word [ebp - 0x218], 0
jne 0x4117b8
push edi
push 0x42f3bc
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push Ordinal_4
call ebx
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4117db
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
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042728e
mov esp, ebp
pop ebp
ret
Function at 0x412060
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x43b1b0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
push 0x206
mov edi, ecx
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.004277f0
mov eax, dword [0x43cc64]
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
push eax
call dword [0x42d204]
push str...BaofengPlatform.resource
lea ecx, [ebp - 0x20c]
push ecx
call dword [0x42d398]
lea edx, [ebp - 0x20c]
push edx
call dword [0x42d394]
test eax, eax
je 0x412119
push esi
lea eax, [ebp - 0x20c]
push eax
lea esi, [edi + 0x6c]
push esi
call fcn.0041c6d0
test al, al
jne 0x4120f6
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042728e
mov esp, ebp
pop ebp
ret
add edi, 0x2c
push edi
push esi
call fcn.0041cd00
xor ecx, ecx
test al, al
setne cl
pop esi
pop edi
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042728e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop edi
call fcn.0042728e
mov esp, ebp
pop ebp
ret

Function at 0x412221
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x100]
push edi
push eax
call dword [0x42d4b8]
mov edi, dword [0x42d3ac]
mov ebx, dword [0x42d3a8]
test eax, eax
je 0x412258
mov ecx, dword [esi + 0x100]
push 0
push ecx
call edi
mov edx, dword [esi + 0x100]
push 0
push edx
call ebx
mov eax, dword [esi + 0xf8]
test eax, eax
je 0x412278
mov eax, dword [eax + 4]
push 0
push eax
call edi
mov ecx, dword [esi + 0xf8]
mov edx, dword [ecx + 4]
push 0
push edx
call ebx
pop edi
pop esi
pop ebx
ret 4
Function at 0x415b30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x429310
mov eax, dword fs:[0]
push eax
sub esp, 0x6b4
mov eax, dword [0x43b1b0]
xor eax, esp
mov dword [esp + 0x6ac], eax
push esi
push edi
mov eax, dword [0x43b1b0]
xor eax, esp
push eax
lea eax, [esp + 0x6c0]
mov dword fs:[0], eax
mov edi, ecx
test edi, edi
je 0x415d71
cmp word [edi], 0
je 0x415d71
xor eax, eax
push 0x7e
push eax
lea ecx, [esp + 0x36]
push ecx
mov word [esp + 0x38], ax
call fcn.004277f0
add esp, 0xc
xor edx, edx
push 0x3fe
push edx
lea eax, [esp + 0x2be]
push eax
mov word [esp + 0x2c0], dx
call fcn.004277f0
add esp, 0xc
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0xb6]
push edx
mov word [esp + 0xb8], cx
call fcn.004277f0
xor eax, eax
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
mov word [esp + 0x20], ax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov word [esp + 0x2e], ax
call dword [0x42d160]
movzx edx, word [esp + 0x22]
movzx eax, word [esp + 0x1e]
movzx ecx, word [esp + 0x1c]
push edx
push eax
push ecx
push str._04d__02d__02d.plog
lea edx, [esp + 0x3c]
push 0x40
push edx
call dword [0x42d2ec]
push 0
push 1
push 2
push 0x104
lea eax, [esp + 0xd4]
push eax
push str.User
call dword [sym.imp.crt.dll_Ordinal_34]
add esp, 0x30
test al, al
je 0x415d71
lea ecx, [esp + 0xac]
push ecx
call dword [0x42d394]
test eax, eax
jne 0x415c6d
lea edx, [esp + 0xac]
push edx
call dword [sym.imp.crt.dll_Ordinal_72]
add esp, 4
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0xb0]
push ecx
call dword [0x42d398]
xor esi, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x6c8], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x6c8], 1
movzx edx, word [esp + 0x28]
movzx eax, word [esp + 0x26]
movzx ecx, word [esp + 0x24]
push edi
push edx
push eax
push ecx
push str._02d:_02d:_02d__s_r_n
push 0xffffffffffffffff
lea edx, [esp + 0x2cc]
push 0x200
push edx
call dword [0x42d320]
add esp, 0x20
push esi
push 0x80
push 4
push esi
push esi
push 0xc0000000
lea eax, [esp + 0xc4]
push eax
call dword [0x42d20c]
cmp eax, 0xffffffff
jne 0x415d94
call fcn.0040adb0
test eax, eax
jne 0x415d53
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x2b8]
call fcn.00417fc0
mov byte [esp + 0x6c8], 2
mov edx, dword [esp + 0xc]
mov edi, dword [edx - 0xc]
lea ecx, [esp + 0x10]
call fcn.004156d0
mov ecx, dword [esp + 0xc]
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push ecx
push esi
call dword [0x42d16c]
test eax, eax
jne 0x415d41
call fcn.0040adb0
mov byte [esp + 0x6c8], 1
lea edx, [esp + 0xc]
push edx
call fcn.00418050
mov dword [esp + 0x6c8], 0xffffffff
test esi, esi
je 0x415d71
push esi
call dword [0x42d148]
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x6c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x6ac]
xor ecx, esp
call fcn.0042728e
mov esp, ebp
pop ebp
ret
mov esi, eax
mov dword [esp + 0x10], esi
jmp 0x415cfb