joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c05d
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4bf4f4
push eax
push dword fs:[0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x43c0dd
arpl word [edx + esi], si
add ch, byte [edi + 0x31]
sub dword [eax + 0x70388653], edi
sub al, byte [ecx - 0x655bcad7]
xor al, 0x18
push edi
sbb ecx, dword [0xb2b35f85]
xor eax, 0x34369aa4
sbb byte [edi + 0x1b], dl
or eax, 0xb2b35f85
mov bl, 0xb2
push es
push esp
aam 0xf9
aam 0xa1
inc edi
inc esi
or al, byte fs:[esi]
xor al, 0x14
mul bh
je 0x43c097
int 0x6d
pushfd
retf
mov edi, 0x3f59c67f
pop eax
pop esp
xor eax, 0xd5a48a8d
push ecx
or ch, bh
mov edi, 0x761167b3
dec edx
xchg ebx, eax
out 0x6a, eax
std
std
test dword [edi], ebx
add byte [ebp + 0x38], ch
not dword [ecx]
insb byte es:[edi], dx
aas
out dx, al
loopne 0x43c08c
fld dword [ebx]
fist word [ebx]
test eax, 0x7e660e7b
iretd
jle 0x43c0af
and eax, 0xfc4bcd48
aaa
invalid
Function at 0x4024b0
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4061d8
push 0x4057b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x45c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
or esi, 0xffffffff
mov dword [ebp - 0x264], esi
mov bl, 1
push 0x4092b8
mov eax, dword [ebp + 8]
push eax
push str._s_s
push 0x104
lea ecx, [ebp - 0x25c]
push ecx
call fcn.00402440
add esp, 0x14
mov byte [ebp - 0x159], 0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x158]
push edx
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x264], eax
cmp eax, esi
jne 0x40254a
mov dword [ebp - 4], esi
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp + 0xc]
mov esi, 0x4092b4
lea eax, [ebp - 0x12c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40257c
test cl, cl
je 0x402578
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40257c
add eax, 2
add esi, 2
test cl, cl
jne 0x402558
xor eax, eax
jmp 0x402581
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402658
mov esi, 0x4092b0
lea eax, [ebp - 0x12c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4025b8
test cl, cl
je 0x4025b4
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4025b8
add eax, 2
add esi, 2
test cl, cl
jne 0x402594
xor eax, eax
jmp 0x4025bd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402658
test byte [ebp - 0x158], 0x10
je 0x40260a
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str._s_s_
push 0x104
lea edx, [ebp - 0x368]
push edx
call fcn.00402440
add esp, 0x14
mov byte [ebp - 0x265], 0
push edi
lea eax, [ebp - 0x368]
push eax
call fcn.004024b0
mov bl, al
jmp 0x402652
lea ecx, [ebp - 0x12c]
push ecx
mov edx, dword [ebp + 8]
push edx
push str._s_s
push 0x104
lea eax, [ebp - 0x46c]
push eax
call fcn.00402440
add esp, 0x14
mov byte [ebp - 0x369], 0
test edi, edi
je 0x40263e
cmp edi, 1
jne 0x402658
lea ecx, [ebp - 0x46c]
push ecx
call fcn.004021d0
mov ebx, eax
neg ebx
sbb ebx, ebx
neg ebx
mov byte [ebp - 0x260], bl
lea edx, [ebp - 0x158]
push edx
mov eax, dword [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40254d
mov ecx, dword [ebp - 0x264]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
or esi, 0xffffffff
mov dword [ebp - 0x264], esi
test edi, edi
je 0x402693
cmp edi, 2
jne 0x4026bd
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ebx, eax
neg ebx
sbb ebx, ebx
neg ebx
mov byte [ebp - 0x260], bl
test bl, bl
jne 0x4026bd
push 0
push edi
call fcn.00402700
mov byte [ebp - 0x260], bl
mov dword [ebp - 4], esi
jmp 0x4026e6
xor eax, eax
test bl, bl
sete al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x402cd0
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Move file
Set file attributes

Disassembly:
sub esp, 0x29c
push esi
mov esi, dword [esp + 0x2a4]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edx, eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1a1]
mov byte [esp + 0x1a0], 0
mov byte [esp + 0x9c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x9d]
mov dword [esp + 8], 0x94
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0xc]
cmp edx, 0xffffffff
rep stosd dword es:[edi], eax
jne 0x402d46
pop edi
mov eax, 1
pop esi
add esp, 0x29c
ret
test dl, 0x10
je 0x402d56
pop edi
xor eax, eax
pop esi
add esp, 0x29c
ret
push 0x104
lea eax, [esp + 0x1a4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [esp + 0x1a0]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea edx, [esp + 0x9c]
lea eax, [esp + 0x1a0]
push edx
push 0
push str.del
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 2
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x18], 2
jne 0x402e10
lea edx, [esp + 0x9c]
push 1
push edx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov edi, eax
test edi, edi
je 0x402def
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x9c]
push 0
push ecx
call fcn.00402700
mov eax, edi
pop edi
pop esi
add esp, 0x29c
ret
lea edx, [esp + 0x9c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push esi
call fcn.00402700
mov eax, edi
pop edi
pop esi
add esp, 0x29c
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, eax
test edi, edi
jne 0x402e24
push eax
push esi
call fcn.00402700
mov eax, edi
pop edi
pop esi
add esp, 0x29c
ret

Function at 0x403f60
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 8], eax
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], eax
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
mov dword [esp + 0x10], eax
push ecx
push edx
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x30], eax
push eax
mov eax, dword [esp + 0x80]
push eax
push 0
mov dword [esp + 0x40], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
test esi, esi
je 0x403fbd
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret 4

Function at 0x403fe0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
push esi
xor esi, esi
cmp eax, esi
je 0x404017
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push esi
push ecx
push fcn.00404030
push esi
push esi
mov dword [esp + 0x24], esi
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x404021
mov eax, 1
pop esi
ret 8
mov edx, dword [esp + 8]
push edx
call fcn.00404030
mov eax, esi
pop esi
ret 8
Function at 0x404110
Capabilities:
Read .ini file

Disassembly:
mov al, byte [ecx + 0xc]
push esi
lea esi, [ecx + 0xc]
test al, al
jne 0x404121
push esi
call fcn.004054a0
mov eax, dword [esp + 0x10]
push esi
test eax, eax
jne 0x404140
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 2
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop esi
ret 0x10
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
push edx
push eax
mov eax, dword [esp + 0x18]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, 0xfffffc19
pop esi
ret 0x10

Function at 0x404220
Capabilities:
Delete file

Disassembly:
sub esp, 0x30c
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x320]
mov edx, dword [esp + 0x31c]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00404570
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], 0
rep stosd dword es:[edi], eax
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x409e4c
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x114]
push eax
call ebp
lea ecx, [esp + 0x110]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x215]
mov byte [esp + 0x214], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [esp + 0x110]
lea eax, [esp + 0x214]
push edx
push eax
call ebp
lea ecx, [esp + 0x214]
push str._box
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0xc]
lea eax, [esp + 0x110]
push edx
push eax
mov ecx, esi
call fcn.00404600
test eax, eax
jne 0x40430a
lea ecx, [esp + 0xc]
lea edx, [esp + 0x214]
push ecx
push edx
mov ecx, esi
call fcn.00404600
test eax, eax
je 0x404315
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x30c
ret 8
Function at 0x404330
Capabilities:
Delete file
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
mov dword [esp + 0xc], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
mov dword [esp + 8], 0x100
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404440
lea ecx, [esp + 8]
push esi
mov esi, dword [esp + 0x118]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404434
lea edx, [esp + 0x14]
push ebx
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push str.Common_AppData
push esi
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x4043f8
mov edi, str.MicrosoftInternet_ExplorerQuick_Launch_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x120]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop ebx
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
add esp, 0x10c
ret 8
Function at 0x404450
Capabilities:
Delete file
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
mov dword [esp + 0xc], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
mov dword [esp + 8], 0x100
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404560
lea ecx, [esp + 8]
push esi
mov esi, dword [esp + 0x118]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404554
lea edx, [esp + 0x14]
push ebx
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push str.AppData
push esi
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x404518
mov edi, str.MicrosoftInternet_ExplorerQuick_Launch_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x120]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop ebx
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
add esp, 0x10c
ret 8

Function at 0x404570
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x10c]
pop edi
cmp eax, 0x1010
jne 0x4045c0
lea eax, [esp]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea ecx, [esp]
push str.MicrosoftInternet_ExplorerQuick_Launch
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x4045d2
lea edx, [esp]
push edx
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov eax, dword [esp + 0x10c]
mov edx, dword [esp + 0x110]
lea ecx, [esp]
push eax
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
add esp, 0x104
ret 0xc
Function at 0x4048d0
Capabilities:
Check if file exists
Delete file
Get common file path
Set file attributes

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov edi, str.Storm_tracfg.xml
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
pop edi
pop esi
test eax, eax
pop ebx
je 0x40495c
lea ecx, [esp]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x104
ret

Function at 0x404970
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov edi, str.Storm_thumb
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.004049f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x404d50
Capabilities:
Delete registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SoftwareStorm_skinsclassic2
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404d8c
mov ecx, dword [esp]
push str.pref
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret

Function at 0x404d90
Capabilities:
Check if file exists
Delete file
Get common file path
Set file attributes

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov edi, str.Storm_stmMgrCfg.xml
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
pop edi
pop esi
test eax, eax
pop ebx
je 0x404e1c
lea ecx, [esp]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x104
ret

Function at 0x404f20
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x928
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
call fcn.00404fb0
mov ecx, 0x208
xor eax, eax
lea edi, [esp + 0x109]
mov byte [esp + 0x108], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x930]
lea edx, [esp + 0x108]
stosw word es:[edi], ax
push ecx
push str.http:__www.baofeng.com_hd_tc_tc.htm_vid_s
push 0x824
push edx
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea eax, [esp + 0x108]
push 5
push 0
push 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
add esp, 0x928
ret 4
Function at 0x404fd0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x410
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x219]
mov byte [esp + 0x218], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], bl
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
lea ecx, [esp + 0x114]
stosw word es:[edi], ax
push 0x104
lea edx, [esp + 0x21c]
push ecx
push edx
stosb byte es:[edi], al
call esi
mov ebp, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea eax, [esp + 0x114]
push eax
call ebp
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x31d]
mov byte [esp + 0x31c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x31c]
push 0x104
push ecx
push ebx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [esp + 0x10]
push 0x104
lea eax, [esp + 0x320]
push edx
push eax
call esi
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea edx, [esp + 0x10]
push edx
call ebp
lea eax, [esp + 0x114]
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
mov eax, 1
je 0x4050d6
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret

Function at 0x4051d0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x108
lea ecx, [esp + 4]
push eax
push 0x104
push ecx
call fcn.004050f0
add esp, 0xc
test eax, eax
je 0x4051fc
xor eax, eax
add esp, 0x108
ret 8
push 0
push 0x80
push 3
push 0
push 3
lea edx, [esp + 0x18]
push closesocket
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
test eax, eax
jne 0x405226
add esp, 0x108
ret 8
mov edx, dword [esp + 0x110]
lea ecx, [esp]
push 0
push ecx
push 8
push edx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
neg eax
add esp, 0x108
ret 8
Function at 0x405260
Capabilities:
Copy file
Get common file path

Disassembly:
sub esp, 0x71c
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x41d]
mov byte [esp + 0x41c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x521]
mov byte [esp + 0x520], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x319]
mov byte [esp + 0x318], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x318]
lea edx, [esp + 0x520]
push ecx
push edx
stosb byte es:[edi], al
push ebx
lea eax, [esp + 0x18]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__splitpath]
mov esi, dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
lea ecx, [esp + 0x318]
lea edx, [esp + 0x520]
push ecx
push edx
push str._s._s
lea eax, [esp + 0x428]
push 0x104
push eax
call esi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x125]
mov byte [esp + 0x124], bl
rep stosd dword es:[edi], eax
add esp, 0x14
lea ecx, [esp + 0x110]
stosw word es:[edi], ax
push ecx
push 0x104
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 0x110]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x215]
mov byte [esp + 0x214], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x41c]
push eax
lea ecx, [esp + 0x114]
lea edx, [esp + 0x218]
push ecx
push str._s_s
push 0x104
push edx
call esi
add esp, 0x14
lea eax, [esp + 0x214]
lea ecx, [esp + 0xc]
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x625]
mov byte [esp + 0x624], bl
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x72c]
lea ecx, [esp + 0x624]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x214]
push edx
push eax
push str._s__path:_s
push 0x104
push ecx
call esi
add esp, 0x14
lea edx, [esp + 0x624]
push ebx
push edx
call fcn.00405420
pop edi
pop esi
pop ebx
add esp, 0x71c
ret 4
Function at 0x405420
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov dword [esp + 4], eax
lea ecx, [esp + 4]
mov dword [esp + 8], eax
lea edx, [esp + 0x14]
mov dword [esp + 0xc], eax
push ecx
push edx
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x2c], eax
push eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x34], 0x44
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x405495
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x40547f
mov ecx, dword [esp]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
pop esi
add esp, 0x54
ret 8

Function at 0x4054a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea edx, [esp + 4]
push str.Storm_
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 4]
mov ecx, dword [esp + 0x10c]
push eax
push str._sConfig.ini
push 0x104
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
pop edi
add esp, 0x104
ret 4