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

Disassembly:
mov al, byte [0x46afe0]
push esi
xor esi, esi
test al, al
jne 0x401559
push 0x4c10db7
call fcn.00401480
add esp, 4
mov ecx, dword [esp + 0xc]
test ecx, ecx
jbe 0x401581
mov eax, dword [esp + 8]
push edi
movzx edi, byte [eax]
mov edx, esi
shr edx, 0x18
xor edx, edi
mov edi, dword [edx*4 + 0x46abe0]
shl esi, 8
xor esi, edi
inc eax
dec ecx
jne 0x401566
pop edi
mov eax, esi
pop esi
ret

Function at 0x401880
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x1e8
mov eax, dword [0x469d0c]
push esi
push edi
mov dword [esp + 0x1ec], eax
xor eax, eax
mov dword [esp + 0x18], 0x44
mov ecx, 0x10
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
push 0x190
lea eax, [esp + 0x60]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x5c]
push 0x5c
push ecx
call fcn.0044b5a0
lea edi, [esp + 0x64]
add esp, 8
mov byte [eax], 0
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4018d2
mov edx, dword [str.loadwb.exe]
mov eax, dword [0x45c2b8]
mov ecx, dword [0x45c2bc]
mov dword [edi], edx
mov dword [edi + 4], eax
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
mov dword [edi + 8], ecx
push 0
lea ecx, [esp + 0x7c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
mov ecx, dword [esp + 0x1ec]
pop edi
pop esi
call fcn.0044b588
add esp, 0x1e8
ret
Function at 0x401da0
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [0x469d0c]
push ebx
mov dword [esp + 0x43c], eax
push esi
push edi
xor eax, eax
mov ebx, ecx
mov byte [esp + 0x128], 0
mov ecx, 0x40
lea edi, [esp + 0x129]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x20], 0
mov ecx, 0x40
lea edi, [esp + 0x21]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
lea ecx, [esp + 0x24]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x20]
push 0x5c
push edx
call fcn.0044b5a0
add esp, 8
mov byte [eax], 0
mov dword [esp + 0x10], str.winpy
mov dword [esp + 0x14], str.winsp
mov dword [esp + 0x18], str.winwb86
mov dword [esp + 0x1c], str.winwb98
xor esi, esi
jmp 0x401e50
mov edi, dword [esp + esi*4 + 0x10]
push edi
lea eax, [esp + 0x12c]
push eax
lea ecx, [esp + 0x340]
push str._s_s.mb
push ecx
call fcn.0044b4ff
push edi
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x248]
push str._s_s.txt
push eax
call fcn.0044b4ff
add esp, 0x20
lea ecx, [esp + 0x230]
push ecx
lea edx, [esp + 0x33c]
push edx
mov ecx, ebx
call fcn.00401940
inc esi
cmp esi, 4
jb 0x401e50
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x33c]
push str._swinpy.txt
push ecx
call fcn.0044b4ff
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x240]
push str._spy_gb.txt
push eax
call fcn.0044b4ff
add esp, 0x18
push 1
lea ecx, [esp + 0x234]
push ecx
lea edx, [esp + 0x340]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [esp + 0x444]
call fcn.0044b588
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402a40
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x24]
test edi, edi
je 0x402af6
mov edx, dword [esp + 0x10]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402a57
sub eax, esi
mov dword [esp + 0x24], eax
je 0x402af6
push ebx
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x28]
push eax
push 0xf003f
push 0
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402a9a
test ebx, ebx
je 0x402a92
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
xor eax, eax
pop esi
ret 0x1c
mov eax, dword [esp + 0x1c]
mov edx, edi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402aa2
mov eax, dword [esp + 0x28]
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x402ade
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x1c]
push edi
lea edx, [esp + 0x28]
push edx
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x28]
push edx
mov edi, eax
call esi
jmp 0x402ae2
mov edi, dword [esp + 0x28]
test ebx, ebx
je 0x402ae9
push ebx
call esi
xor eax, eax
pop ebx
test edi, edi
pop edi
sete al
pop esi
ret 0x1c
pop edi
xor eax, eax
pop esi
ret 0x1c

Function at 0x402b00
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
push esi
je 0x402ba0
mov edx, dword [esp + 0x10]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402b17
sub eax, esi
mov dword [esp + 0x20], eax
je 0x402ba0
push edi
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x24]
push eax
push 0xf003f
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402b56
test edi, edi
je 0x402b4e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x18
mov eax, dword [esp + 0x24]
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x402b88
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push ebx
push edx
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x24]
push edx
mov ebx, eax
call esi
jmp 0x402b8c
mov ebx, dword [esp + 0x24]
test edi, edi
je 0x402b93
push edi
call esi
pop edi
xor eax, eax
test ebx, ebx
pop esi
sete al
pop ebx
ret 0x18
pop esi
xor eax, eax
pop ebx
ret 0x18
Function at 0x4031e0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x403200
xor eax, eax
add esp, 0x14
ret
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
push 0
lea edx, [esp + 0x10]
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4031fa
push eax
push 4
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
add esp, 0x14
ret
Function at 0x403ed0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [esi + 0xc]
push ecx
push 0
push esi
push 0x403e50
push 0
push 0
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
pop esi
ret 4

Function at 0x403f00
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push str.kernel32.dll
mov esi, ecx
call ebx
test eax, eax
mov dword [esi], eax
jne 0x403f1a
pop esi
pop ebx
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNativeSystemInfo
push eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi]
push str.IsWow64Process
push eax
call edi
mov ecx, dword [esi]
push str.Wow64DisableWow64FsRedirection
push ecx
mov dword [esi + 0xc], eax
call edi
mov edx, dword [esi]
push str.Wow64RevertWow64FsRedirection
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi]
push str.GetSystemWow64DirectoryA
push eax
call edi
push str.advapi32.dll
mov dword [esi + 0x10], eax
call ebx
test eax, eax
mov dword [esi + 4], eax
jne 0x403f72
pop edi
pop esi
pop ebx
ret
push str.Wow64RevertWow64FsRedirection
push eax
call edi
mov ecx, dword [esi + 4]
push str.Wow64RevertWow64FsRedirection
push ecx
mov dword [esi + 0x20], eax
call edi
pop edi
mov dword [esi + 0x1c], eax
pop esi
mov eax, 1
pop ebx
ret

Function at 0x4055f0
Capabilities:
Suspend thread
Terminate thread

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_PostThreadMessageA]
mov esi, ecx
xor ebp, ebp
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x10], 0x103
jne 0x405651
test ebp, ebp
jne 0x405635
mov edx, dword [esi + 0x20]
push ebp
push ebp
push 0x12
push edx
call edi
push 0xc8
call ebx
jmp 0x40564b
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ecx, dword [esi + 0x1c]
push 0x2f
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
inc ebp
cmp ebp, 2
jl 0x405605
mov edx, dword [esi + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x405710
Capabilities:
Create thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x45a548
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x18], 0
call fcn.00404650
lea ecx, [esi + 0x20]
push ecx
push 0
push esi
push 0x405670
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x1c], eax
cmp dword [esp + 0x2c], 0x10
jb 0x40576b
mov edx, dword [esp + 0x18]
push edx
call fcn.0044ad83
add esp, 4
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0x1c
Function at 0x405725
Capabilities:
Create thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x45a548
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x18], 0
call fcn.00404650
lea ecx, [esi + 0x20]
push ecx
push 0
push esi
push 0x405670
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x1c], eax
cmp dword [esp + 0x2c], 0x10
jb 0x40576b
mov edx, dword [esp + 0x18]
push edx
call fcn.0044ad83
add esp, 4
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0x1c

Function at 0x405780
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x214
mov eax, dword [0x469d0c]
push esi
xor esi, esi
push esi
mov dword [esp + 0x218], eax
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x4058aa
lea eax, [esp + 4]
push eax
push 0x463bdc
push 1
push esi
push 0x463bec
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4058a4
mov edx, dword [esp + 0x220]
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x50]
mov eax, dword [esp + 0x224]
test eax, eax
je 0x4057ec
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x1c]
mov ecx, dword [esp + 0x228]
test ecx, ecx
je 0x405802
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x3c]
mov ecx, dword [esp + 0x22c]
test cx, cx
je 0x405819
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x34]
mov ecx, dword [esp + 0x230]
test ecx, ecx
je 0x40582f
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x24]
mov ecx, dword [esp + 0x234]
test ecx, ecx
je 0x405845
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x2c]
mov eax, dword [esp + 4]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push 0x463bfc
push eax
call dword [ecx]
test eax, eax
jl 0x40589a
mov ecx, dword [esp + 0x21c]
push 0x104
lea eax, [esp + 0x10]
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 8]
mov edx, dword [eax]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 8]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov esi, 1
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
call fcn.0044b588
add esp, 0x214
ret 0x1c
Function at 0x405e30
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x428
mov eax, dword [0x469d0c]
push esi
push edi
mov dword [esp + 0x42c], eax
mov esi, ecx
xor eax, eax
mov byte [esp + 8], 0
mov ecx, 0x40
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
stosb byte es:[edi], al
push 0x16
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x405e88
mov ecx, dword [esp + 0x42c]
call fcn.0044b588
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x114]
push 0x45c818
push edx
call fcn.0044b4ff
add esp, 0xc
lea eax, [esp + 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x114]
push 0x45c800
push edx
call fcn.0044b4ff
mov eax, dword [0x46b128]
mov ecx, dword [eax + 4]
push ecx
lea edx, [esp + 0x330]
push str._swnwbwnwb.exe
push edx
call fcn.0044b4ff
mov eax, dword [0x46b128]
mov ecx, dword [eax + 4]
push ecx
lea edx, [esp + 0x234]
push str._swnwb
push edx
call fcn.0044b4ff
add esp, 0x24
push 0
lea eax, [esp + 0x21c]
push eax
push 0x657
push 1
push 0x45c7e0
lea ecx, [esp + 0x334]
push ecx
lea edx, [esp + 0x128]
push edx
mov ecx, esi
call fcn.00405780
mov ecx, dword [esp + 0x42c]
mov eax, 1
call fcn.0044b588
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x405f50
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x428
mov eax, dword [0x469d0c]
push esi
push edi
mov dword [esp + 0x42c], eax
mov esi, ecx
xor eax, eax
mov byte [esp + 8], 0
mov ecx, 0x40
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
stosb byte es:[edi], al
push 0x17
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x405fa8
mov ecx, dword [esp + 0x42c]
call fcn.0044b588
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x114]
push 0x45c818
push edx
call fcn.0044b4ff
add esp, 0xc
lea eax, [esp + 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x114]
push 0x45c800
push edx
call fcn.0044b4ff
mov eax, dword [0x46b128]
mov ecx, dword [eax + 4]
push ecx
lea edx, [esp + 0x330]
push str._swnwbwnwb.exe
push edx
call fcn.0044b4ff
mov eax, dword [0x46b128]
mov ecx, dword [eax + 4]
push ecx
lea edx, [esp + 0x234]
push str._swnwb
push edx
call fcn.0044b4ff
add esp, 0x24
push 0
lea eax, [esp + 0x21c]
push eax
push 0x657
push 1
push 0x45c7e0
lea ecx, [esp + 0x334]
push ecx
lea edx, [esp + 0x128]
push edx
mov ecx, esi
call fcn.00405780
mov ecx, dword [esp + 0x42c]
mov eax, 1
call fcn.0044b588
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407530
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x45a5eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
mov eax, dword [0x469d0c]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x118], eax
call fcn.00407020
mov eax, dword [esp + 0x12c]
lea ebx, [esp + 0x14]
mov dword [esp + 0x124], 0
sub ebx, eax
mov edi, edi
mov cl, byte [eax]
mov byte [ebx + eax], cl
inc eax
test cl, cl
jne 0x407580
mov eax, dword [0x469a0c]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407591
lea edi, [esp + 0x14]
sub eax, esi
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4075a0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40770b
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebp
call fcn.00407030
mov edx, dword [ebp]
push 0
push 0
push 0
push str.begin_
push edx
call fcn.00414520
mov eax, dword [ebp]
push 0
push 0
push 0
push str.CREATE_TABLE_yf_mb_crc_mcode_int__mcode_text__crc_mdata_int__mdata_text__mb_type_int__
push eax
call fcn.00414520
mov ecx, dword [ebp]
push 0
push 0
push 0
push str.end_
push ecx
call fcn.00414520
mov edx, dword [ebp]
push edx
call fcn.004123f0
mov eax, dword [esp + 0x16c]
add esp, 0x40
mov dword [ebp], 0
lea esp, [esp]
mov cl, byte [eax]
mov byte [ebx + eax], cl
inc eax
test cl, cl
jne 0x407630
mov eax, dword [0x469a10]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407641
lea edi, [esp + 0x14]
sub eax, esi
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x407650
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x407681
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x14]
push edx
mov ecx, ebp
call fcn.00407030
mov eax, dword [ebp]
push 0
push 0
push 0
push str.begin_
push eax
call fcn.00414520
add esp, 0x14
xor ebx, ebx
mov cl, bl
add cl, 0x61
movsx edx, cl
push edx
lea eax, [esp + 0x14]
push str.CREATE_TABLE_tp_mb_c_crc_mcode_int__mcode_text__crc_mdata_int__mdata_text__lasttime_bigint__
push eax
call fcn.004011e0
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp]
push 0
push 0
push 0
push ecx
push edx
call fcn.00414520
add esp, 0x20
lea ecx, [esp + 0x10]
call fcn.004011c0
inc ebx
cmp ebx, 0x1a
jl 0x4076a6
mov eax, dword [ebp]
push 0
push 0
push 0
push str.end_
push eax
call fcn.00414520
mov ecx, dword [ebp]
push ecx
call fcn.004123f0
add esp, 0x18
mov dword [ebp], 0
lea ecx, [esp + 0x10]
mov dword [esp + 0x124], 0xffffffff
call fcn.004011c0
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x10c]
pop ebx
call fcn.0044b588
add esp, 0x118
ret 4
Function at 0x40b220
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x45a8db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x31c
mov eax, dword [0x469d0c]
push esi
lea ecx, [esp + 4]
mov dword [esp + 0x31c], eax
call fcn.00403990
mov esi, dword [esp + 0x330]
push esi
lea eax, [esp + 0x14]
push str._s.
push eax
mov dword [esp + 0x334], 0
call fcn.0044b4ff
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 8]
call fcn.00403a90
test eax, eax
je 0x40b2e7
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
lea ecx, [esp + 0xc]
call fcn.004039d0
lea ecx, [esp + 0xc]
mov edi, eax
call fcn.004039a0
test eax, eax
jne 0x40b2e1
lea edx, [esp + 0x11c]
push edx
lea ecx, [esp + 0x10]
call fcn.00403a10
lea eax, [esp + 0x11c]
push eax
push esi
lea ecx, [esp + 0x228]
push str._s_s
push ecx
call fcn.0044b4ff
add esp, 0x10
lea edx, [esp + 0x220]
push edx
call ebx
test edi, edi
jne 0x40b290
pop edi
pop ebx
lea ecx, [esp + 4]
mov dword [esp + 0x328], 0xffffffff
call fcn.00403a40
mov ecx, dword [esp + 0x320]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x31c]
mov eax, 1
pop esi
call fcn.0044b588
add esp, 0x328
ret 4

Function at 0x40b330
Capabilities:
Delete directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
mov eax, dword [0x469d0c]
push esi
push edi
mov dword [esp + 0x114], eax
xor eax, eax
mov esi, ecx
mov byte [esp + 8], 0
mov ecx, 0x40
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
test eax, eax
push 0
je 0x40b373
push 0x17
lea eax, [esp + 0x10]
push eax
jmp 0x40b37a
push 2
lea ecx, [esp + 0x10]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x40b39a
mov ecx, dword [esp + 0x114]
call fcn.0044b588
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
lea edi, [esp + 8]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40b3a0
mov edx, dword [0x45c90c]
mov eax, dword [0x45c910]
mov cx, word [0x45c914]
mov dword [edi], edx
mov dword [edi + 4], eax
mov word [edi + 8], cx
lea edi, [esp + 8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40b3c8
mov edx, dword [0x45cf38]
mov eax, dword [0x45cf3c]
lea ecx, [esp + 8]
mov dword [edi], edx
push ecx
mov ecx, esi
mov dword [edi + 4], eax
call fcn.0040b220
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x114]
mov eax, 1
call fcn.0044b588
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40b410
Capabilities:
Delete directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
mov eax, dword [0x469d0c]
push esi
push edi
mov dword [esp + 0x114], eax
xor eax, eax
mov esi, ecx
mov byte [esp + 8], 0
mov ecx, 0x40
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
test eax, eax
push 0
je 0x40b453
push 0x17
lea eax, [esp + 0x10]
push eax
jmp 0x40b45a
push 2
lea ecx, [esp + 0x10]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x40b47a
mov ecx, dword [esp + 0x114]
call fcn.0044b588
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
lea edi, [esp + 8]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40b480
mov edx, dword [0x45c90c]
mov eax, dword [0x45c910]
mov cx, word [0x45c914]
mov dword [edi], edx
mov dword [edi + 4], eax
mov word [edi + 8], cx
lea edi, [esp + 8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40b4a8
mov edx, dword [0x45cf40]
mov eax, dword [0x45cf44]
lea ecx, [esp + 8]
mov dword [edi], edx
push ecx
mov ecx, esi
mov dword [edi + 4], eax
call fcn.0040b220
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x114]
mov eax, 1
call fcn.0044b588
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x41db80
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
mov esi, dword [esp + 0x48]
mov eax, dword [esi + 0x40]
mov ecx, dword [eax]
push edi
push ecx
call fcn.0042dda0
movzx ecx, word [esi + 0xe]
movzx edx, byte [esi + 8]
mov ebp, dword [esi + 0x44]
mov dword [esp + 0x20], ecx
movzx ecx, word [esi + 0x14]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x40]
movzx ebx, word [ecx + 0x1e]
xor ecx, ecx
mov ch, byte [edx + ebp + 5]
mov dword [esp + 0x24], eax
add esp, 4
mov dword [esp + 0x24], edx
mov cl, byte [edx + ebp + 6]
mov edi, ecx
mov ecx, ebx
sub ecx, edi
lea esi, [edi + ebp]
add edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
test esi, esi
jle 0x41dc63
mov ecx, dword [esp + 0x1c]
add ecx, ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
jmp 0x41dc00
mov ecx, dword [esp + 0x10]
mov edi, edi
mov eax, dword [esp + 0x20]
xor edx, edx
mov dh, byte [ecx]
mov dl, byte [ecx + 1]
mov ecx, edx
mov edx, dword [esp + 0x4c]
lea esi, [ecx + eax]
lea ecx, [esp + 0x28]
push ecx
push esi
push edx
call fcn.0041d9b0
movzx ecx, word [esp + 0x52]
sub ebx, ecx
mov eax, ecx
shr ecx, 2
lea edi, [ebx + ebp]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
sar ecx, 8
mov byte [eax], cl
mov byte [eax + 1], bl
add eax, 2
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
add esp, 0xc
dec eax
mov dword [esp + 0x14], eax
jne 0x41dbfa
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, ebx
sar eax, 8
mov byte [edx + ebp + 5], al
mov byte [edx + ebp + 6], bl
mov byte [edx + ebp + 1], 0
mov byte [edx + ebp + 2], 0
mov byte [edx + ebp + 7], 0
lea edx, [ecx + esi*2]
mov ecx, ebx
sub ecx, edx
lea edi, [edx + ebp]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x38
ret