joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401062
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
xor edi, edi
cmp esi, edi
jne 0x401085
xor al, al
jmp 0x401192
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x40107e
push ebx
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
cmp ebx, edi
jne 0x4010b5
push edi
jmp 0x401189
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, edi
je 0x401181
push esi
push dword [ebp - 8]
push eax
call fcn.00529fa0
add esp, 0xc
lea eax, [ebp - 4]
push eax
push edi
push ebx
mov dword [ebp - 4], edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x401181
mov eax, dword [ebp - 4]
push 0x10
mov dword [ebp - 0xc], eax
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
cmp esi, edi
je 0x40111d
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [ebp - 8], edi
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromStream]
mov dword [esi + 8], eax
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
jmp 0x40111f
xor esi, esi
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp esi, edi
je 0x40118f
mov eax, dword [esi + 8]
mov dword [esi + 8], edi
cmp eax, edi
jne 0x401177
push 0xff000000
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
mov dword [ebp - 8], edi
call dword [sym.imp.gdiplus.dll_GdipCreateHBITMAPFromBitmap]
cmp eax, edi
je 0x401160
mov dword [esi + 8], eax
mov ecx, dword [ebp + 0xc]
call fcn.0042be11
push dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
call fcn.0042bde3
mov al, 1
jmp 0x401191
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
jmp 0x40118f
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor al, al
pop ebx
pop edi
pop esi
leave
ret
Function at 0x401f0a
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x5aff20]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str.00000409
lea esi, [ebp - 0x820]
call fcn.0040829d
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
call fcn.00527ca0
add esp, 0xc
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
cmp dword [ebp - 0x80c], 8
mov eax, dword [ebp - 0x820]
jae 0x401f6b
mov eax, esi
push dword [ebp - 0x810]
lea ecx, [ebp - 0x804]
push ecx
push eax
call fcn.00522e57
add esp, 0xc
test eax, eax
je 0x401fbc
cmp dword [ebp - 0x80c], 8
mov eax, dword [ebp - 0x820]
jae 0x401f9a
lea eax, [ebp - 0x820]
push 1
push eax
call dword [sym.imp.USER32.dll_LoadKeyboardLayoutW]
mov esi, eax
test esi, esi
je 0x401fbc
push 0x100
push esi
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
push esi
call dword [sym.imp.USER32.dll_UnloadKeyboardLayout]
push 1
xor edi, edi
lea esi, [ebp - 0x820]
call fcn.00409659
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005220b2
leave
ret

Function at 0x401fd9
Capabilities:
Get common file path

Disassembly:
push 0x80c
mov eax, 0x553aee
call fcn.00527be2
and dword [ebp - 4], 0
and dword [ebp - 0x814], 0
push 0x800
lea eax, [ebp - 0x810]
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x818], esi
call fcn.00527ca0
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x810]
push eax
call fcn.0040829d
and dword [ebp - 4], 0
push str.Lenovo
push esi
mov dword [ebp - 0x814], 1
call fcn.004082e5
cmp dword [esi + 0x14], 8
jb 0x402052
mov eax, dword [esi]
jmp 0x402054
mov eax, esi
push 6
push eax
call fcn.00522f0f
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x402076
cmp dword [esi + 0x14], 8
jb 0x40206d
mov eax, dword [esi]
jmp 0x40206f
mov eax, esi
push eax
call fcn.00522f27
pop ecx
mov eax, esi
call fcn.00527c65
ret
Function at 0x4020c9
Capabilities:
Query environment variable

Disassembly:
push 0x80c
mov eax, 0x553aee
call fcn.00527be2
xor edi, edi
mov dword [ebp - 4], edi
mov esi, ecx
push 0x585d54
mov dword [ebp - 0x818], esi
mov dword [ebp - 0x814], edi
call fcn.0040829d
xor eax, eax
mov dword [ebp - 4], edi
push 0x7fe
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push edi
push eax
mov dword [ebp - 0x814], 1
call fcn.00527ca0
add esp, 0xc
push 0x400
lea eax, [ebp - 0x810]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x810]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x402140
sub eax, ecx
sar eax, 1
lea ecx, [ebp - 0x810]
call fcn.00409cec
push str.Lenovo
push esi
call fcn.004082e5
cmp dword [esi + 0x14], 8
jb 0x40216f
mov eax, dword [esi]
jmp 0x402171
mov eax, esi
push edi
push eax
call fcn.00522f0f
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x4021b1
cmp dword [esi + 0x14], 8
jb 0x402189
mov eax, dword [esi]
jmp 0x40218b
mov eax, esi
push eax
call fcn.00522f27
pop ecx
cmp eax, 0xffffffff
jne 0x4021b1
cmp dword [esi + 0x14], 8
jb 0x4021a1
mov eax, dword [esi]
jmp 0x4021a3
mov eax, esi
push edi
push str.info
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, esi
call fcn.00527c65
ret

Function at 0x402356
Capabilities:
Get disk size
Query environment variable

Disassembly:
push 0x268
mov eax, 0x553a5e
call fcn.00527be2
lea eax, [ebp + 8]
xor ebx, ebx
push eax
lea esi, [ebp - 0x238]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x258], 1
call fcn.00408277
mov byte [ebp - 4], 1
cmp dword [ebp - 0x228], 2
jae 0x4023f0
xor eax, eax
push 0x206
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push ebx
push eax
call fcn.00527ca0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x21c]
push eax
push str.SYSTEMDRIVE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4023ce
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x21c]
lea esi, [ebp - 0x238]
call fcn.00409cec
jmp 0x402425
push 2
push ebx
lea eax, [ebp - 0x238]
push eax
lea esi, [ebp - 0x254]
call fcn.00408310
mov ebx, eax
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 2
call fcn.00409383
push 1
xor edi, edi
mov byte [ebp - 4], 1
call fcn.00409659
xor ebx, ebx
cmp dword [ebp - 0x228], ebx
jbe 0x40247e
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
jae 0x402442
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x274]
push ecx
lea ecx, [ebp - 0x26c]
push ecx
lea ecx, [ebp - 0x264]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x40247e
cmp dword [ebp - 0x260], ebx
ja 0x40247e
jb 0x402478
cmp dword [ebp - 0x264], 0x927c000
jae 0x40247e
mov dword [ebp - 0x258], ebx
push 1
xor edi, edi
lea esi, [ebp - 0x238]
mov byte [ebp - 4], bl
call fcn.00409659
or dword [ebp - 4], 0xffffffff
push 1
lea esi, [ebp + 8]
call fcn.00409659
mov eax, dword [ebp - 0x258]
call fcn.00527c65
ret 0x1c
Function at 0x40252f
Capabilities:
Write file on windows

Disassembly:
push 0x160
mov eax, 0x55525d
call fcn.00527be2
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
mov esi, ecx
mov dword [ebp - 0x16c], eax
call fcn.00401edb
pop ecx
lea ecx, [ebp - 0x164]
call fcn.004020c9
push 0x585004
push eax
lea eax, [ebp - 0x148]
mov dword [ebp - 4], ebx
call fcn.0040adbd
add esi, 0x1c
lea ecx, [ebp - 0x12c]
push esi
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040ade1
add esp, 0x10
push 1
xor edi, edi
lea esi, [ebp - 0x148]
mov byte [ebp - 4], 3
call fcn.00409659
push 1
lea esi, [ebp - 0x164]
mov byte [ebp - 4], 4
call fcn.00409659
cmp dword [ebp - 0x118], 8
mov eax, dword [ebp - 0x12c]
jae 0x4025c3
lea eax, [ebp - 0x12c]
push 0x585008
push eax
call fcn.00523017
pop ecx
pop ecx
mov dword [ebp - 0x168], eax
cmp eax, ebx
je 0x402679
push 0xff
lea eax, [ebp - 0x10f]
push ebx
push eax
call fcn.00527ca0
mov eax, dword [ebp - 0x16c]
mov esi, 0x585010
lea edi, [ebp - 0x110]
movsw word es:[edi], word [esi]
add esp, 0xc
movsb byte es:[edi], byte [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402609
lea edi, [ebp - 0x110]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x402619
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push ebx
mov ecx, eax
push 2
push dword [ebp - 0x168]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.005230b8
lea eax, [ebp - 0x110]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40264b
push dword [ebp - 0x168]
sub eax, ecx
push eax
lea eax, [ebp - 0x110]
push 1
push eax
call fcn.0052328b
push dword [ebp - 0x168]
call fcn.00523372
add esp, 0x14
mov bl, 1
or dword [ebp - 4], 0xffffffff
push 1
xor edi, edi
lea esi, [ebp - 0x12c]
call fcn.00409659
mov al, bl
call fcn.00527c65
ret 4
Function at 0x402696
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5aff20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 0
jbe 0x402801
cmp dword [eax + 0x14], 8
jb 0x4026be
mov eax, dword [eax]
push 0x585014
push eax
call fcn.00523017
pop ecx
pop ecx
mov dword [ebp - 0x108], eax
test eax, eax
je 0x402801
push esi
push edi
push 0xff
lea eax, [ebp - 0x103]
push 0
push eax
call fcn.00527ca0
mov eax, dword [ebp + 0xc]
add esp, 0xc
sub eax, 0
push 7
pop ecx
mov esi, str._ResponseResult__r_nResultCode
lea edi, [ebp - 0x104]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
je 0x4027b0
dec eax
je 0x40279a
dec eax
je 0x402784
dec eax
je 0x40276e
dec eax
je 0x402758
dec eax
je 0x402742
dec eax
jne 0x4027c6
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402730
mov esi, 0x585054
jmp 0x4027c4
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402749
mov esi, 0x585050
jmp 0x4027c4
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40275f
mov esi, 0x58504c
jmp 0x4027c4
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402775
mov esi, 0x585048
jmp 0x4027c4
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40278b
mov esi, 0x585044
jmp 0x4027c4
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4027a1
mov esi, 0x585040
jmp 0x4027c4
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4027b7
mov esi, str.0123456
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x104]
pop edi
lea edx, [eax + 1]
pop esi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4027d1
push dword [ebp - 0x108]
sub eax, edx
push eax
lea eax, [ebp - 0x104]
push 1
push eax
call fcn.0052328b
push dword [ebp - 0x108]
call fcn.00523372
add esp, 0x14
mov al, 1
jmp 0x402803
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005220b2
leave
ret 8
Function at 0x402b7a
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0xc
mov eax, 0x5531fc
call fcn.00527b79
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x38], 8
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0x10], ebx
jae 0x402b9c
lea ecx, [ebp + 0x24]
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x402ba8
lea eax, [ebp + 8]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x402bed
push 1
xor edi, edi
lea esi, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00409659
push 1
lea esi, [ebp + 0x24]
mov byte [ebp - 4], 0
call fcn.00409659
or dword [ebp - 4], 0xffffffff
push 1
lea esi, [ebp + 0x40]
call fcn.00409659
mov eax, ebx
call fcn.00527c51
ret 0x54
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x402c5f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp dword [ebp + 0x54], 8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x40]
jae 0x402c19
lea eax, [ebp + 0x40]
xor edi, edi
push edi
push 0x80
push 2
push edi
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x402c5f
push edi
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x14], edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], ebx
jne 0x402c5f
mov dword [ebp - 0x10], 1
mov ebx, dword [ebp - 0x10]
jmp 0x402bb7

Function at 0x402c96
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push 0
mov eax, 0x5531c9
call fcn.00527b79
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x402cae
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402ce9
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x402cc6
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
or dword [ebp - 4], 0xffffffff
push 1
xor edi, edi
lea esi, [ebp + 8]
call fcn.00409659
mov eax, ebx
call fcn.00527c51
ret 0x1c
xor ebx, ebx
jmp 0x402ccf
Function at 0x402d1c
Capabilities:
Set registry value

Disassembly:
push 8
mov eax, 0x5531a6
call fcn.00527b79
mov esi, ecx
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
push 8
pop ebx
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x14], edi
cmp dword [ebp + 0x1c], ebx
jae 0x402d44
lea eax, [ebp + 8]
lea ecx, [ebp - 0x14]
push ecx
push 0xf003f
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x402dad
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], ebx
jae 0x402d65
lea eax, [ebp + 8]
lea ecx, [ebp - 0x14]
push ecx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x402dad
xor bl, bl
push 1
xor edi, edi
lea esi, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00409659
push 1
lea esi, [ebp + 0x24]
mov byte [ebp - 4], 0
call fcn.00409659
or dword [ebp - 4], 0xffffffff
push 1
lea esi, [ebp + 0x40]
call fcn.00409659
mov al, bl
call fcn.00527c51
ret 0x54
mov ecx, dword [ebp + 0x40]
cmp dword [ebp + 0x54], ebx
jae 0x402db8
lea ecx, [ebp + 0x40]
mov eax, dword [ebp + 0x24]
cmp dword [ebp + 0x38], ebx
jae 0x402dc3
lea eax, [ebp + 0x24]
mov edx, dword [ebp + 0x50]
add edx, edx
push edx
push ecx
push 1
push edi
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x402ddf
mov byte [ebp - 0xd], 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, byte [ebp - 0xd]
jmp 0x402d77

Function at 0x402ded
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x814
mov eax, 0x5539d2
call fcn.00527be2
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x81c], esi
mov dword [ebp - 0x820], ebx
push 2
pop edi
push 0x585d54
mov dword [ebp - 4], edi
call fcn.0040829d
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x820], 1
mov dword [ebp - 0x814], ebx
jae 0x402e38
lea eax, [ebp + 8]
lea ecx, [ebp - 0x814]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402eda
push 0x7fe
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push ebx
push eax
call fcn.00527ca0
mov eax, dword [ebp + 0x24]
add esp, 0xc
cmp dword [ebp + 0x38], 8
mov dword [ebp - 0x818], 0x800
jae 0x402e8b
lea eax, [ebp + 0x24]
lea ecx, [ebp - 0x818]
push ecx
lea ecx, [ebp - 0x810]
push ecx
push ebx
push ebx
push eax
push dword [ebp - 0x814]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402ece
lea eax, [ebp - 0x810]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, edi
cmp cx, bx
jne 0x402eb5
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x810]
call fcn.00409cec
push dword [ebp - 0x814]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
xor edi, edi
lea esi, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00409659
push 1
lea esi, [ebp + 0x24]
mov byte [ebp - 4], bl
call fcn.00409659
mov eax, dword [ebp - 0x81c]
call fcn.00527c65
ret 0x38
Function at 0x402fda
Capabilities:
Delete registry key

Disassembly:
push 4
mov eax, 0x553410
call fcn.00527b79
xor ecx, ecx
mov dword [ebp - 4], ecx
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
jae 0x402ffa
lea eax, [ebp + 8]
lea esi, [ebp - 0x10]
push esi
push 0xf003f
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40302f
cmp dword [ebp + 0x38], 8
mov eax, dword [ebp + 0x24]
jae 0x40301c
lea eax, [ebp + 0x24]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
xor edi, edi
lea esi, [ebp + 8]
call fcn.00409659
or dword [ebp - 4], 0xffffffff
push 1
lea esi, [ebp + 0x24]
call fcn.00409659
call fcn.00527c51
ret 0x38
Function at 0x403051
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x858
mov eax, 0x5545db
call fcn.00527be2
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0x85c], ecx
mov dword [ebp - 0x854], eax
xor eax, eax
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp + 0x34], eax
jae 0x4030ad
xor ebx, ebx
mov dword [ebp - 0x84c], ebx
push 1
xor edi, edi
lea esi, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.00409659
or dword [ebp - 4], 0xffffffff
push 1
lea esi, [ebp + 0x24]
call fcn.00409659
mov eax, dword [ebp - 0x84c]
call fcn.00527c65
ret 0x3c
lea eax, [ebp - 0x848]
push 0x585004
push eax
lea ebx, [ebp + 8]
call fcn.0040ae0a
lea ecx, [ebp + 0x24]
push ecx
lea ecx, [ebp - 0x82c]
push ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0040ade1
add esp, 0x10
push 1
xor edi, edi
lea esi, [ebp - 0x848]
mov byte [ebp - 4], 4
call fcn.00409659
mov eax, dword [ebp - 0x82c]
xor ebx, ebx
cmp dword [ebp - 0x818], 8
mov dword [ebp - 0x850], ebx
jae 0x40310a
lea eax, [ebp - 0x82c]
lea ecx, [ebp - 0x850]
push ecx
push 0xf003f
push ebx
push eax
push dword [ebp - 0x854]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4032b2
mov edi, 0x800
push edi
lea eax, [ebp - 0x810]
push ebx
push eax
mov dword [ebp - 0x858], edi
call fcn.00527ca0
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x858]
push eax
lea eax, [ebp - 0x810]
push eax
push ebx
push dword [ebp - 0x850]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x4031ae
sub esp, 0x1c
lea eax, [ebp + 0x24]
mov esi, esp
mov dword [ebp - 0x85c], esp
push eax
call fcn.00408277
sub esp, 0x1c
mov byte [ebp - 4], 5
lea eax, [ebp + 8]
mov esi, esp
mov dword [ebp - 0x84c], esp
push eax
call fcn.00408277
mov edx, dword [ebp - 0x854]
mov byte [ebp - 4], 4
call fcn.00402fda
jmp 0x4032a6
cmp eax, ebx
jne 0x4032a6
push dword [ebp - 0x854]
lea eax, [ebp - 0x810]
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x84c], esp
push eax
call fcn.0040829d
sub esp, 0x1c
mov byte [ebp - 4], 6
lea eax, [ebp - 0x82c]
mov esi, esp
mov dword [ebp - 0x860], esp
push eax
call fcn.00408277
mov ecx, dword [ebp - 0x85c]
mov byte [ebp - 4], 4
call fcn.00403051
push edi
lea eax, [ebp - 0x810]
push ebx
push eax
mov dword [ebp - 0x858], edi
call fcn.00527ca0
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x858]
push eax
lea eax, [ebp - 0x810]
push eax
push ebx
push dword [ebp - 0x850]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x84c], eax
lea eax, [ebp - 0x810]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x403242
sub eax, ecx
sar eax, 1
je 0x4032a6
cmp dword [ebp - 0x84c], 0x103
jne 0x40329a
sub esp, 0x1c
lea eax, [ebp + 0x24]
mov esi, esp
mov dword [ebp - 0x860], esp
push eax
call fcn.00408277
sub esp, 0x1c
lea eax, [ebp + 8]
mov esi, esp
mov dword [ebp - 0x864], esp
push eax
mov byte [ebp - 4], 7
call fcn.00408277
mov edx, dword [ebp - 0x854]
mov byte [ebp - 4], 4
call fcn.00402fda
cmp dword [ebp - 0x84c], ebx
je 0x4031b6
push dword [ebp - 0x850]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
xor edi, edi
lea esi, [ebp - 0x82c]
mov byte [ebp - 4], 1
call fcn.00409659
mov dword [ebp - 0x84c], 1
jmp 0x403082
Function at 0x403405
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5aff20]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x4034a7
push 0x228
lea eax, [ebp - 0x22c]
push edi
push eax
mov dword [ebp - 0x230], 0x22c
call fcn.00527ca0
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x403497
lea eax, [ebp - 0x20c]
push str.Leplus.exe
push eax
call fcn.005233e6
pop ecx
pop ecx
test eax, eax
jne 0x40349d
lea eax, [ebp - 0x20c]
push 0x585148
push eax
call fcn.005233e6
pop ecx
pop ecx
test eax, eax
jne 0x40349d
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40345b
jmp 0x4034a0
xor edi, edi
inc edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.005220b2
leave
ret

Function at 0x4035f8
Capabilities:
Read file on windows

Disassembly:
push 0x444
mov eax, 0x55456c
call fcn.00527be2
push 0
call fcn.00401edb
pop ecx
lea ecx, [ebp - 0x448]
call fcn.00401fd9
and dword [ebp - 4], 0
push str.ThirdPart.ini
push eax
lea eax, [ebp - 0x42c]
call fcn.0040adbd
cmp dword [eax + 0x14], 8
pop ecx
pop ecx
jb 0x403639
mov eax, dword [eax]
push 0x5851d8
push eax
call fcn.00523017
pop ecx
xor ebx, ebx
pop ecx
inc ebx
push ebx
xor edi, edi
lea esi, [ebp - 0x42c]
mov dword [ebp - 0x44c], eax
call fcn.00409659
or dword [ebp - 4], 0xffffffff
push ebx
lea esi, [ebp - 0x448]
call fcn.00409659
cmp dword [ebp - 0x44c], edi
je 0x40373c
push 0x3ff
lea eax, [ebp - 0x40f]
push edi
push eax
mov byte [ebp - 0x410], 0
call fcn.00527ca0
push dword [ebp - 0x44c]
lea eax, [ebp - 0x410]
push 0x400
push ebx
push eax
call fcn.0052389a
add esp, 0x1c
test eax, eax
je 0x403730
lea eax, [ebp - 0x410]
push str.Baofeng
push eax
call fcn.005238c0
pop ecx
pop ecx
test eax, eax
je 0x403730
mov eax, dword [0x5b968c]
mov esi, 0x90
test eax, eax
jne 0x4036fd
push esi
call fcn.00423341
pop ecx
mov dword [ebp - 0x450], eax
mov dword [ebp - 4], ebx
test eax, eax
je 0x4036f2
push eax
call fcn.004032d4
jmp 0x4036f4
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [0x5b968c], eax
mov ecx, eax
mov dword [ecx + 8], ebx
test eax, eax
jne 0x40372d
push esi
call fcn.00423341
pop ecx
mov dword [ebp - 0x450], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x403726
push eax
call fcn.004032d4
jmp 0x403728
xor eax, eax
mov dword [0x5b968c], eax
mov dword [eax + 4], ebx
push dword [ebp - 0x44c]
call fcn.00523372
pop ecx
call fcn.00527c65
ret