joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003ce0
Capabilities:
Move file
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x418
mov eax, dword [0x10020ae4]
xor eax, esp
mov dword [esp + 0x414], eax
push edi
mov edi, dword [esp + 0x420]
push 0x10017260
push 0x100177f0
push edi
call fcn.10003f60
add esp, 0xc
mov dword [esp + 4], 0
lea eax, [esp + 8]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x200
push eax
lea eax, [esp + 0x21c]
push eax
push 0x10017580
push edi
call sub.msi.dll_MsiGetSummaryInformationA
test eax, eax
jne 0x10003f36
push esi
push 0x7c
lea eax, [esp + 0x220]
push eax
push 0
push 0
call fcn.100019b0
mov esi, eax
lea ecx, [esp + 0x22c]
push 0x7c
add ecx, esi
push ecx
push 0
push 0
call fcn.100019b0
add esi, eax
lea eax, [esp + 0x23c]
push 0x7c
add eax, esi
push eax
lea eax, [esp + 0x140]
push 0x104
push eax
call fcn.100019b0
push edi
call fcn.10005880
push str.Version
lea eax, [esp + 0x40]
push 0x2001f
push eax
call fcn.10004010
add esp, 0x40
pop esi
test al, al
je 0x10003f36
lea eax, [esp + 8]
mov dword [esp + 8], 0x104
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push 0
push str.MenuFolder
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10003e5b
lea eax, [esp + 0x114]
push eax
lea eax, [esp + 0x14]
push 0x104
push eax
call fcn.1000ac42
lea ecx, [esp + 0x1c]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003e05
sub ecx, edx
cmp byte [esp + ecx + 0xf], 0x5c
jne 0x10003e26
dec ecx
cmp ecx, 0x104
jae 0x10003f50
mov byte [esp + ecx + 0x10], al
lea eax, [esp + 0x10]
push 0x5c
push eax
call fcn.100070b0
add esp, 8
test eax, eax
je 0x10003e56
push 0x1001780c
mov byte [eax + 1], 0
lea eax, [esp + 0x14]
push 0x104
push eax
call fcn.1000ac9c
add esp, 0xc
jmp 0x10003e5b
mov byte [esp + 0x10], 0
cmp byte [esp + 0x114], 0
je 0x10003f2c
cmp byte [esp + 0x10], 0
je 0x10003f2c
lea ecx, [esp + 0x10]
lea eax, [esp + 0x114]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10003ea0
test dl, dl
je 0x10003e9c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10003ea0
add eax, 2
add ecx, 2
test dl, dl
jne 0x10003e80
xor eax, eax
jmp 0x10003ea5
sbb eax, eax
or eax, 1
test eax, eax
je 0x10003f2c
push str.MoveStartMenu___rename
push 0x100177f0
push edi
call fcn.10003f60
lea eax, [esp + 0x1c]
push eax
push 0x100177f0
push edi
call fcn.10003f60
lea eax, [esp + 0x12c]
push eax
push 0x100177f0
push edi
call fcn.10003f60
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.1000ae90
lea ecx, [esp + 0x140]
add esp, 0x2c
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003f00
sub ecx, edx
lea eax, [ecx + 1]
push eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0x118]
push eax
push 1
push 0
push str.MenuFolder
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x418]
xor eax, eax
pop edi
xor ecx, esp
call fcn.10005b76
add esp, 0x418
ret 4
call fcn.10005ff7
int3
Function at 0x10003fb0
Capabilities:
Print debug messages

Disassembly:
push esi
push 2
call sub.msi.dll_MsiDatabaseExportA
push str.Calling_Card_Install:__1__:__2_
mov esi, eax
push 0
push esi
call sub.msi.dll_MsiReinstallFeatureFromDescriptorW
push dword [esp + 0xc]
push 1
push esi
call sub.msi.dll_MsiReinstallFeatureFromDescriptorW
push dword [esp + 0x10]
push 2
push esi
call sub.msi.dll_MsiReinstallFeatureW
push esi
push 0x4000000
push dword [esp + 0x10]
call sub.msi.dll_MsiProvideComponentW
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test esi, esi
je 0x10004002
push esi
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
pop esi
ret

Function at 0x100040b0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x10020ae4]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [esp + 0x218]
push 0x10017260
push 0x100174fc
push esi
call fcn.10003f60
add esp, 0xc
mov dword [esp + 4], 0x208
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push str.INSTALLCMPFLDR
push esi
call sub.msi.dll_MsiGetSummaryInformationA
test eax, eax
jne 0x1000412e
lea eax, [esp + 8]
push eax
push 0x100174fc
push esi
call fcn.10003f60
add esp, 0xc
lea eax, [esp + 8]
push 1
push eax
push 0
push str.readme.txt
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [esp + 0x210]
xor eax, eax
pop esi
xor ecx, esp
call fcn.10005b76
add esp, 0x210
ret 4
Function at 0x10004330
Capabilities:
Delete registry value
Query or enumerate registry key

Disassembly:
sub esp, 0x1ac
mov eax, dword [0x10020ae4]
xor eax, esp
mov dword [esp + 0x1a8], eax
push ebx
mov ebx, dword [esp + 0x1b4]
push ebp
push esi
push edi
push 0x10017260
push 0x10017b80
push ebx
call fcn.10003f60
mov ecx, 6
mov dword [esp + 0x1c], 0
mov esi, str.LogMeInRescueCallingCard
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov ecx, 6
lea eax, [esp + 0x56]
push 0x66
xor ebp, ebp
movsb byte es:[edi], byte [esi]
mov esi, str.LogMeInRescueCallingCards
lea edi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
push ebp
push eax
movsw word es:[edi], word [esi]
call fcn.10006e20
push ebx
call fcn.10005720
push 0x10021254
lea eax, [esp + 0x50]
push 0x80
push eax
call fcn.1000ac9c
push 0x105
lea eax, [esp + 0xdc]
push ebp
push eax
call fcn.10006e20
add esp, 0x34
lea eax, [esp + 0xb0]
push 0x105
push eax
push ebp
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x100044e6
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [esp]
lea eax, [esp + 0xb0]
inc ebp
push str._Classes
push eax
call fcn.100071f0
add esp, 8
test eax, eax
je 0x10004449
mov ecx, str._Classes
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10004440
test dl, dl
je 0x1000443c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10004440
add eax, 2
add ecx, 2
test dl, dl
jne 0x10004420
xor eax, eax
jmp 0x10004445
sbb eax, eax
or eax, 1
test eax, eax
je 0x100044ae
push 0x1001793c
lea eax, [esp + 0xb4]
push 0x105
push eax
call fcn.1000ac9c
add esp, 0xc
mov dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [esp + 0xcc]
push eax
push 0x80000003
call edi
test eax, eax
jne 0x100044ae
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
call esi
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x14]
call esi
push dword [esp + 0x10]
call ebx
push 0x105
lea eax, [esp + 0xb4]
push 0
push eax
call fcn.10006e20
add esp, 0xc
lea eax, [esp + 0xb0]
push 0x105
push eax
push ebp
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x10004400
mov ecx, dword [esp + 0x1b8]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10005b76
add esp, 0x1ac
ret 4

Function at 0x10004510
Capabilities:
Delete file

Disassembly:
sub esp, 0x10c
mov eax, dword [0x10020ae4]
xor eax, esp
mov dword [esp + 0x108], eax
push 0x10017260
push 0x100176bc
push dword [esp + 0x118]
call fcn.10003f60
push 0x104
lea eax, [esp + 0x14]
push 0
push eax
call fcn.10006e20
add esp, 0x18
mov dword [esp], 0x104
lea eax, [esp]
push eax
lea eax, [esp + 8]
push eax
push str.MSI_is_copied
push dword [esp + 0x11c]
call sub.msi.dll_MsiGetSummaryInformationA
test eax, eax
jne 0x10004584
cmp byte [esp + 4], al
je 0x10004584
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x108]
xor eax, eax
xor ecx, esp
call fcn.10005b76
add esp, 0x10c
ret 4
Function at 0x10004620
Capabilities:
Move file

Disassembly:
mov eax, 0x1044
call fcn.100060e0
mov eax, dword [0x10020ae4]
xor eax, esp
mov dword [esp + 0x1040], eax
push ebx
mov ebx, dword [esp + 0x1054]
lea eax, [esp + 0x824]
push esi
mov esi, dword [esp + 0x105c]
push edi
mov edi, dword [esp + 0x1058]
push 0x820
push 0
push eax
call fcn.10006e20
push 0x820
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.10006e20
push edi
lea eax, [esp + 0x848]
push 0x410
push eax
call fcn.1000abde
add esp, 0x24
lea eax, [esp + 0x82c]
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push eax
call esi
push edi
lea eax, [esp + 0x10]
push 0x410
push eax
call fcn.1000abde
add esp, 0xc
lea eax, [esp + 0xc]
push ebx
push eax
call esi
mov esi, dword [esp + 0x1054]
lea eax, [esp + 0x82c]
push eax
push str.RenameFile
push esi
call fcn.10003fb0
lea eax, [esp + 0x18]
push eax
push str.RenameFile
push esi
call fcn.10003fb0
add esp, 0x18
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x830]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [esp + 0x104c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10005b76
add esp, 0x1044
ret
Function at 0x10004710
Capabilities:
Get common file path

Disassembly:
sub esp, 0xe48
mov eax, dword [0x10020ae4]
xor eax, esp
mov dword [esp + 0xe44], eax
mov eax, dword [esp + 0xe58]
push ebx
mov ebx, dword [esp + 0xe54]
push ebp
mov ebp, dword [esp + 0xe5c]
push esi
mov esi, dword [esp + 0xe58]
push edi
mov edi, dword [esp + 0xe6c]
push str.desktopFolder
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xe74]
push str.RenameShortcuts
push esi
mov dword [esp + 0x1c], eax
call fcn.10003f60
push 0x820
lea eax, [esp + 0x644]
push 0
push eax
call fcn.10006e20
add esp, 0x18
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0x100186a8
call sub.SHELL32.dll_SHGetKnownFolderPath
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x100047a3
xor al, al
jmp 0x1000494b
push eax
lea eax, [esp + 0x638]
push 0x410
push eax
call fcn.1000abde
add esp, 0xc
push dword [esp + 0x18]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp word [esp + 0x634], 0
je 0x1000479c
push str.startMenuFolder
push str.RenameShortcuts
push esi
call fcn.10003f60
push 0x208
lea eax, [esp + 0x234]
push 0
push eax
call fcn.10006e20
push 0x104
lea eax, [esp + 0x240]
push eax
push esi
call fcn.100033c0
add esp, 0x24
test eax, eax
jne 0x1000479c
push 0x208
push eax
lea eax, [esp + 0x24]
push eax
call fcn.10006e20
push str.Rename_desktop_shortcut
push str.RenameShortcuts
push esi
call fcn.10003f60
push edi
push ebx
lea eax, [esp + 0x654]
push eax
lea eax, [esp + 0x40]
push 0x104
push eax
call fcn.10001db0
lea eax, [esp + 0x48]
push eax
call fcn.10005460
push edi
lea eax, [esp + 0x50]
push 0x104
push eax
call fcn.1000ab69
push ebp
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x678]
push eax
push esi
call fcn.10004620
add esp, 0x4c
push str.Rename_start_menu_shortcut
push str.RenameShortcuts
push esi
call fcn.10003f60
push edi
push ebx
lea eax, [esp + 0x238]
push eax
lea eax, [esp + 0x34]
push 0x104
push eax
call fcn.10001db0
push edi
lea eax, [esp + 0x40]
push 0x104
push eax
call fcn.1000ab69
push ebp
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x258]
push eax
push esi
call fcn.10004620
push dword [esp + 0x4c]
lea eax, [esp + 0x46c]
push 0x104
push eax
call fcn.1000abde
add esp, 0x48
lea eax, [esp + 0x42c]
push ebx
push 0x104
push eax
call fcn.1000ab69
push str.Rename_start_menu_uninstaller_shortcut
push str.RenameShortcuts
push esi
call fcn.10003f60
push edi
lea eax, [esp + 0x448]
push eax
lea eax, [esp + 0x244]
push eax
lea eax, [esp + 0x40]
push 0x104
push eax
call fcn.10001db0
push edi
lea eax, [esp + 0x4c]
push 0x104
push eax
call fcn.1000ab69
push dword [esp + 0x4c]
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x264]
push eax
push esi
call fcn.10004620
add esp, 0x48
mov al, 1
mov ecx, dword [esp + 0xe54]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10005b76
add esp, 0xe48
ret
Function at 0x10004970
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [0x10020ae4]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x18]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100049d0
push 0
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push edi
call fcn.10001980
add esp, 4
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xc]
pop edi
pop esi
xor ecx, esp
call fcn.10005b76
add esp, 8
ret

Function at 0x100050e0
Capabilities:
Identify system language via api

Disassembly:
push edi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push eax
call fcn.10003500
add esp, 4
mov edi, eax
push edi
push str.Language
push dword [esp + 0x10]
call sub.msi.dll_MsiSummaryInfoGetPropertyCount
push 0
push 0
push edi
push 0x65
push dword [0x1002124c]
mov ecx, 0x10021274
call fcn.100010a0
push edi
push str.SetLanguage
push dword [esp + 0x10]
call fcn.10003fb0
add esp, 0xc
pop edi
ret
Function at 0x10005170
Capabilities:
Copy file
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x31c
mov eax, dword [0x10020ae4]
xor eax, esp
mov dword [esp + 0x318], eax
push edi
mov edi, dword [esp + 0x324]
push 0x10017260
push 0x100176dc
push edi
call fcn.10003f60
push 0x104
lea eax, [esp + 0x20]
push eax
push edi
call fcn.10003ab0
add esp, 0x18
cmp byte [esp + 0x10], 0
je 0x10005368
lea eax, [esp + 8]
mov dword [esp + 8], 0x104
push eax
lea eax, [esp + 0x118]
push eax
push str.OriginalDatabase
push edi
call sub.msi.dll_MsiGetSummaryInformationA
test eax, eax
jne 0x10005368
push esi
lea eax, [esp + 0x118]
push 0x5c
push eax
call fcn.100070b0
mov esi, eax
add esp, 8
test esi, esi
je 0x100051fe
inc esi
jmp 0x10005205
lea esi, [esp + 0x118]
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
lea eax, [esp + 0x20]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10005367
lea eax, [esp + 0xc]
mov dword [esp + 0x10], 1
push eax
lea eax, [esp + 0x220]
mov dword [esp + 0x10], 0x104
push eax
lea eax, [esp + 0x18]
push eax
push 0
push str.PackageName
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000535d
lea ecx, [esp + 0x21c]
mov eax, esi
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10005290
test dl, dl
je 0x1000528c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10005290
add eax, 2
add ecx, 2
test dl, dl
jne 0x10005270
xor eax, eax
jmp 0x10005295
sbb eax, eax
or eax, 1
test eax, eax
je 0x1000535d
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100052a2
sub ecx, edx
lea eax, [ecx + 1]
push eax
push esi
push 1
push 0
push str.PackageName
push dword [esp + 0x1c]
mov dword [esp + 0x24], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x118]
push eax
lea eax, [esp + 0x18]
push 0x104
push eax
call fcn.1000ac42
lea eax, [esp + 0x20]
push 0x5c
push eax
call fcn.100070b0
add esp, 0x14
test eax, eax
je 0x10005318
mov byte [eax + 1], 0
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x18]
push 0x104
push eax
call fcn.1000ac9c
jmp 0x1000532f
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x18]
push 0x104
push eax
call fcn.1000ac42
add esp, 0xc
lea eax, [esp + 0x14]
push 1
push eax
lea eax, [esp + 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x10005367
lea eax, [esp + 0x14]
push eax
push str.MSI_is_copied
push edi
call sub.msi.dll_MsiSummaryInfoGetPropertyA
jmp 0x10005367
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [esp + 0x31c]
xor eax, eax
pop edi
xor ecx, esp
call fcn.10005b76
add esp, 0x31c
ret 4
Function at 0x10005460
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov eax, dword [0x10020ae4]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push str.Version
push 0x2001f
push eax
mov dword [esp + 0x10], 0
call fcn.10004010
add esp, 0xc
test al, al
jne 0x100054a6
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.10005b76
add esp, 8
ret
mov eax, esi
lea edx, [eax + 2]
jmp 0x100054b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100054b0
sub eax, edx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push 0x10017614
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 8]
mov al, 1
pop esi
xor ecx, esp
call fcn.10005b76
add esp, 8
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x6dfc2600
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x6dfc265b
cmp byte [esi + ebx - 1], 0xa
je 0x6dfc262f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x6dfc3118], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x4659a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x457015
lea edi, [esi - 0x56015]
push edi
or ebp, 0xffffffff
jmp 0x4659c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4659c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4659b8
mov eax, 1
add ebx, ebx
jne 0x4659db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4659d0
jne 0x4659ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4659d0
xor ecx, ecx
sub eax, 3
jb 0x465a00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x465a72
mov ebp, eax
add ebx, ebx
jne 0x465a0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x465a18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x465a3c
inc ecx
add ebx, ebx
jne 0x465a28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x465a1d
jne 0x465a39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x465a1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x465a5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x465a4d
jmp 0x4659be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x465a5c
add edi, ecx
jmp 0x4659be
pop esi
mov edi, esi
mov ecx, 0x33e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x465a7a
cmp byte [edi], 0
jne 0x465a7a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x465a7f
lea edi, [esi + 0x63000]
mov eax, dword [edi]
or eax, eax
je 0x465aee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x651f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x65254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x465aac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x65258]
or eax, eax
je 0x465ae8
mov dword [ebx], eax
add ebx, 4
jmp 0x465ac9
call dword [esi + 0x6525c]
popal
jmp 0x40da18
Function at 0x401040
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x4351b0]
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 - 0x412]
push ecx
mov dword [ebp - 0x624], esi
mov word [ebp - 0x414], ax
call sub.MSVCR100.dll_memset
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x61a]
push eax
mov word [ebp - 0x61c], dx
call sub.MSVCR100.dll_memset
mov edx, dword [0x436f8c]
add esp, 0x18
push 0x104
lea ecx, [ebp - 0x61c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x428c54
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [esi + 4], 0
mov edi, dword [sym.imp.MSVCR100.dll__snwprintf]
jne 0x4010fe
lea ecx, [ebp - 0x61c]
push ecx
push str._sStormPlayer.dll
lea edx, [ebp - 0x414]
push 0x104
push edx
call edi
add esp, 0x10
push 1
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [esi + 4], eax
cmp dword [esi + 8], 0
jne 0x40121d
lea ecx, [ebp - 0x61c]
push ecx
push str._sSkinStormPlayer.bfskin
lea edx, [ebp - 0x414]
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 sub.MSVCR100.dll_memset
push 0
push 0x104
lea edx, [ebp - 0x20c]
push edx
push str.SkinFile
call dword [sym.imp.crt.dll_Ordinal_27]
add esp, 0x2c
cmp word [ebp - 0x20c], 0
je 0x401174
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401198
xor eax, eax
jmp 0x401180
movzx ecx, word [ebp + eax - 0x414]
mov word [ebp + eax - 0x20c], cx
add eax, 2
test cx, cx
jne 0x401180
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40121d
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_]
add esp, 4
push 0
lea edx, [ebp - 0x620]
push edx
push ebx
mov edi, eax
push edi
push esi
mov dword [ebp - 0x620], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401215
mov ebx, dword [ebp - 0x620]
mov edx, dword [ebp - 0x624]
push edi
lea ecx, [ebp - 0x20c]
call fcn.00401230
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004223ce
mov esp, ebp
pop ebp
ret
Function at 0x401230
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4351b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push str.BaofengSkinFilemap
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 0x4012fc
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 0x4012fc
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 0x4012b6
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.004223ce
mov esp, ebp
pop ebp
ret 4