joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407f04
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
push esi
push edi
push dword [ebp + 8]
mov ebx, ecx
call fcn.00402174
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 4], eax
je 0x407feb
xor esi, esi
push esi
push eax
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
cmp edi, 0x800000
jae 0x407fe0
lea eax, [edi + 1]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
push esi
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x407f79
mov ebx, dword [ebp + 8]
push 0x407ec2
push esi
mov byte [ebx + edi], 0
call fcn.004022c8
pop ecx
pop ecx
jmp 0x407fd7
mov eax, dword [ebx + 0x40108]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
lea eax, [ebp - 0x40c]
push eax
call fcn.004020ef
lea eax, [ebp - 0x40c]
push eax
push edi
lea eax, [ebp - 0x80c]
push str.Error__d:__s
push eax
call sub.msvcrt.dll_sprintf
add esp, 0x14
cmp dword [ebx + 0x4010c], esi
mov dword [ebx + 0x402c0], edi
je 0x407fd7
push 0x30
push str.Error
lea eax, [ebp - 0x80c]
push eax
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp + 8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x408045
mov esi, dword [ebx + 0x40108]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
lea eax, [ebp - 0x80c]
push eax
call fcn.004020ef
lea eax, [ebp - 0x80c]
push eax
push edi
lea eax, [ebp - 0x40c]
push str.Error__d:__s
push eax
call sub.msvcrt.dll_sprintf
add esp, 0x14
cmp dword [ebx + 0x4010c], 0
mov dword [ebx + 0x402c0], edi
je 0x408045
push 0x30
push str.Error
lea eax, [ebp - 0x40c]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40804c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3824
call fcn.00410c10
push ebx
push esi
xor ebx, ebx
test byte [0x416a8c], 1
push edi
jne 0x40807f
or dword [0x416a8c], 1
push 0x410ccf
mov dword [0x416a88], ebx
call fcn.004108e8
pop ecx
push 0x1fe
lea eax, [ebp - 0x522]
push ebx
push eax
mov word [ebp - 0x524], bx
call sub.msvcrt.dll_memset
mov esi, 0x10fe
push esi
lea eax, [ebp - 0x1623]
push ebx
push eax
mov byte [ebp - 0x1624], bl
call sub.msvcrt.dll_memset
push 0x21fc
lea eax, [ebp - 0x3822]
push ebx
push eax
mov word [ebp - 0x3824], bx
call sub.msvcrt.dll_memset
push dword [ebp + 0xc]
lea eax, [ebp - 0x1624]
push str.nircmd.exe__s
push eax
call sub.msvcrt.dll_sprintf
add esp, 0x30
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
lea eax, [ebp - 0x3824]
push eax
or edi, 0xffffffff
push edi
lea eax, [ebp - 0x1624]
push eax
push ebx
push ebx
call esi
push 0xff
lea eax, [ebp - 0x524]
push eax
push edi
push dword [ebp + 8]
push ebx
push ebx
call esi
mov eax, dword [0x416a78]
cmp eax, ebx
jne 0x40812e
push str.NetRemoteTOD
call fcn.0040dae2
cmp eax, ebx
mov dword [0x416a78], eax
je 0x40813d
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x524]
push ecx
call eax
mov edi, eax
cmp edi, ebx
jne 0x408264
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
imul ecx, ecx, 0x3c
sub ecx, dword [eax + 0x18]
add ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
imul ecx, ecx, 0x3c
lea eax, [ecx + eax + 0x43]
cmp eax, ebx
jge 0x408169
add eax, 0x15180
jmp 0x408174
mov ecx, 0x15180
cmp eax, ecx
jl 0x408174
sub eax, ecx
imul eax, eax, 0x3e8
cmp dword [ebp + 0x10], ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x3824]
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov dword [ebp - 8], eax
mov dword [ebp + 0xc], ebx
je 0x40820e
push 0x104
lea eax, [ebp - 0x11b]
push ebx
push eax
mov byte [ebp - 0x11c], bl
call sub.msvcrt.dll_memset
push 0x207
lea eax, [ebp - 0x323]
push ebx
push eax
mov byte [ebp - 0x324], bl
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x11c]
push eax
call fcn.004028de
push dword [ebp + 8]
lea eax, [ebp - 0x324]
push eax
call sub.msvcrt.dll_strcpy
lea esi, [ebp - 0x324]
call fcn.004021c8
mov eax, esi
push str.admin__nircmd.exe
push eax
call sub.msvcrt.dll_strcat
add esp, 0x2c
push ebx
mov eax, esi
push eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
mov eax, dword [0x416a74]
cmp eax, ebx
jne 0x40822a
push str.NetScheduleJobAdd
call fcn.0040dae2
cmp eax, ebx
mov dword [0x416a74], eax
je 0x40823f
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x524]
push ecx
call eax
mov edi, eax
jmp 0x408242
or edi, 0xffffffff
mov eax, dword [0x416a7c]
cmp eax, ebx
mov esi, dword [ebp - 4]
jne 0x408261
push str.NetApiBufferFree
call fcn.0040dae2
cmp eax, ebx
mov dword [0x416a7c], eax
je 0x408264
push esi
call eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40dc6c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
cmp byte [esi + 1], 0x3a
je 0x40dd19
lea eax, [esi + 2]
push 0x3a
push eax
call sub.msvcrt.dll_strchr
test eax, eax
pop ecx
pop ecx
je 0x40dc97
dec eax
push eax
jmp 0x40dd1a
push str._systemroot
mov eax, esi
call fcn.004021ea
test eax, eax
pop ecx
mov dword [ebp - 4], eax
jl 0x40dd19
push ebx
push edi
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x10b]
push 0
push eax
mov byte [ebp - 0x10c], 0
call sub.msvcrt.dll_memset
add esp, 0xc
cmp byte [0x416960], 0
mov edi, 0x416960
jne 0x40dce6
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
mov dword [0x416a68], eax
lea eax, [ebp - 0x10c]
push edi
push eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call sub.msvcrt.dll_strcpy
mov eax, dword [ebp - 4]
lea eax, [eax + esi + 0xb]
push eax
push dword [ebp + 8]
call sub.msvcrt.dll_strcat
add esp, 0x18
pop edi
pop ebx
jmp 0x40dd24
push esi
push dword [ebp + 8]
call sub.msvcrt.dll_strcpy
pop ecx
pop ecx
mov eax, dword [ebp + 8]
leave
ret

Function at 0x40e31d
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [sym.imp.USER32.dll_EnumWindows]
push edi
xor eax, eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov edi, 0x40e2d0
push edi
mov dword [ebp - 8], 1
call esi
cmp dword [ebp - 4], 0
jne 0x40e35c
and dword [ebp - 8], 0
lea eax, [ebp - 0xc]
push eax
push edi
call esi
xor eax, eax
cmp dword [ebp - 4], eax
pop edi
setg al
pop esi
leave
ret

Function at 0x40e368
Capabilities:
Terminate process

Disassembly:
push esi
push edi
push dword [esp + 0xc]
xor edi, edi
push edi
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
cmp esi, edi
je 0x40e390
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
Function at 0x40e395
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x36c
push ebx
mov ebx, dword [ebp + 0x7c]
push esi
add ebx, 0x28
push edi
mov esi, ebx
call fcn.0040e631
xor edi, edi
push edi
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
push 0x124
mov dword [ebp + 0x70], eax
lea eax, [ebp - 0x1ec]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1f0]
push eax
push dword [ebp + 0x70]
mov dword [ebp - 0x1f0], 0x128
call sub.KERNEL32.DLL_Process32First
jmp 0x40e52d
mov eax, dword [ebp - 0x1e8]
mov ecx, dword [ebp - 0x1d8]
push eax
push edi
push 0x410
mov byte [ebp - 0xc4], 0
mov dword [ebp + 0x48], edi
mov dword [ebp + 0x4c], edi
mov dword [ebp + 0x50], edi
mov dword [ebp + 0x54], edi
mov dword [ebp + 0x58], edi
mov dword [ebp + 0x5c], edi
mov dword [ebp + 0x60], edi
mov dword [ebp + 0x64], edi
mov dword [ebp - 0xc8], eax
mov dword [ebp + 0x44], ecx
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
cmp eax, edi
mov dword [ebp + 0x6c], eax
je 0x40e4df
mov esi, 0x104
push esi
lea eax, [ebp - 0x2f7]
push edi
push eax
mov byte [ebp - 0x2f8], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2f8]
push eax
push dword [ebp + 0x6c]
mov eax, dword [ebp + 0x7c]
call fcn.0040e557
cmp byte [ebp - 0xc4], 0
jne 0x40e4c3
cmp dword [0x416a80], edi
mov dword [ebp + 0x68], esi
jne 0x40e4a9
push str.kernel32.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
cmp eax, edi
je 0x40e4a9
push str.QueryFullProcessImageNameA
push eax
mov dword [0x416a80], 1
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x416a84], eax
mov eax, dword [0x416a84]
cmp eax, edi
je 0x40e4c3
lea ecx, [ebp + 0x68]
push ecx
lea ecx, [ebp - 0x2f8]
push ecx
push edi
push dword [ebp + 0x6c]
call eax
lea eax, [ebp - 0xc4]
push eax
lea esi, [ebp - 0x2f8]
call fcn.0040dc6c
pop ecx
push dword [ebp + 0x6c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, dword [ebx + 0xc]
cmp esi, edi
jl 0x40e52d
cmp esi, 0xffffffff
mov eax, dword [ebx + 8]
jne 0x40e4f7
push dword [ebx]
call sub.msvcrt.dll_free
jmp 0x40e50a
push eax
push 0x130
lea eax, [ebx + 4]
mov edx, esi
mov edi, ebx
call fcn.00402269
pop ecx
lea eax, [esi + 1]
cmp dword [ebx + 0xc], eax
pop ecx
jge 0x40e516
mov dword [ebx + 0xc], eax
mov edi, esi
imul edi, edi, 0x130
add edi, dword [ebx]
push 0x4c
pop ecx
lea esi, [ebp - 0xc8]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
lea eax, [ebp - 0x1f0]
push eax
push dword [ebp + 0x70]
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x40e3f0
push dword [ebp + 0x70]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4
Function at 0x40e57f
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi], 0
jne 0x40e5d4
push edi
push str.psapi.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.GetModuleBaseNameA
push eax
mov dword [esi], eax
call edi
push str.EnumProcessModules
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.GetModuleFileNameExA
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.EnumProcesses
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.GetModuleInformation
push dword [esi]
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0xc], eax
pop edi
ret

Function at 0x40e65f
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [esi]
test eax, eax
je 0x40e66f
push eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
and dword [esi], 0
push str.rasapi32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test eax, eax
mov dword [esi], eax
je 0x40e6cf
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.RasSetEntryDialParamsA
push eax
call edi
push str.RasEnumConnectionsA
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.RasGetConnectStatusA
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.RasHangUpA
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.RasGetEntryDialParamsA
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.RasDialA
push dword [esi]
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
pop edi
xor eax, eax
cmp dword [esi], eax
setne al
ret

Function at 0x40e988
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
call fcn.0040e8d5
add esp, 0xc
test eax, eax
jne 0x40e9cf
mov eax, dword [ebp + 0x14]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40e9c6
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x40e9d4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
call fcn.0040e8d5
add esp, 0xc
test eax, eax
jne 0x40ea14
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 3
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40ea0b
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x40ea19
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x2001f
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
call fcn.0040e8bc
add esp, 0x10
test eax, eax
jne 0x40ea55
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x40ea4c
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x40ea5a
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 0x20019
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
call fcn.0040e8bc
add esp, 0x10
test eax, eax
jne 0x40eaab
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push dword [ebp - 8]
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
push dword [ebp - 8]
mov esi, eax
neg esi
sbb esi, esi
not esi
and esi, dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x40ee16
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
mov esi, edi
xor ebx, ebx
call fcn.0040ebbe
test eax, eax
jne 0x40ee32
push 5
push str.regedit.exe
call dword [sym.imp.KERNEL32.DLL_WinExec]
call fcn.0040ebbe
test eax, eax
je 0x40ee95
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x20000000
je 0x40ee56
push 9
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, dword [esp + 0xc]
push edi
call fcn.0040ed07
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, edi
call fcn.0040eab0
test eax, eax
je 0x40ee8a
push dword [edi + 8]
mov ebx, dword [esp + 0x14]
or eax, 0xffffffff
call fcn.0040ec15
push dword [edi + 8]
call fcn.0040ec5d
xor ebx, ebx
inc ebx
pop esi
mov eax, ebx
pop ebx
ret 8
Function at 0x40f21c
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
call fcn.0040f115
xor ebx, ebx
cmp dword [0x4163bc], ebx
je 0x40f25e
call fcn.004023ff
cmp dword [eax + 0x10], 1
jne 0x40f24f
cmp esi, 0x19
je 0x40f25e
cmp esi, 0x17
je 0x40f25e
cmp esi, 0x16
je 0x40f25e
push ebx
push esi
push edi
push ebx
call dword [0x4163bc]
jmp 0x40f300
push 0x103
lea eax, [ebp - 0x127]
push ebx
push eax
mov byte [ebp - 0x128], bl
call sub.msvcrt.dll_memset
add esp, 0xc
cmp esi, 0x19
je 0x40f288
cmp esi, 0x17
je 0x40f288
cmp esi, 0x16
jne 0x40f29e
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
jmp 0x40f2b2
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40f2ea
lea ecx, [ebp - 0x24]
mov eax, esi
call fcn.0040f15a
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
mov eax, 0x104
call fcn.0040e8fd
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x128]
push eax
push edi
call sub.msvcrt.dll_strcpy
xor eax, eax
cmp byte [edi], bl
pop ecx
pop ecx
setne al
pop ebx
leave
ret
Function at 0x4109ae
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x411400
call fcn.00410b9c
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4109eb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4109eb
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x410a03
cmp eax, 0x20b
je 0x4109f0
mov dword [ebp - 0x1c], ebx
jmp 0x410a17
cmp dword [ecx + 0x84], 0xe
jbe 0x4109eb
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x410a11
cmp dword [ecx + 0x74], 0xe
jbe 0x4109eb
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x416a94], 0xffffffff
or dword [0x416a98], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x41603c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x416038]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x416a90], eax
call fcn.00410b98
cmp dword [section..data], ebx
jne 0x410a72
push fcn.00410b98
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.00410b86
push 0x4113d0
push 0x4113cc
call sub.msvcrt.dll__initterm
mov eax, dword [0x416034]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x416030]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x4113c8
push 0x4113b4
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x410b08
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x410adc
cmp al, 0x22
jne 0x410ace
cmp byte [esi], 0x22
jne 0x410ae5
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x410aef
cmp al, 0x20
jbe 0x410ae1
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
test byte [ebp - 0x4c], 1
je 0x410b13
movzx eax, word [ebp - 0x48]
jmp 0x410b16
cmp byte [esi], 0x20
jbe 0x410ae5
inc esi
mov dword [ebp - 0x34], esi
jmp 0x410b08
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x410b33
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x410b68
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00410bd5
ret
Function at 0x10004ef8
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x10004ea7
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x10004ec5
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x10004f23
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x10004f0a
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x10004f13
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x10004f1d
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x10004eff
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x10004e89
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x10004f70
dec eax
je 0x10004f67
sub eax, 3
je 0x10004f5e
mov dword [ebp - 4], 0x40
jmp 0x10004f8d
mov dword [ebp - 4], 4
jmp 0x10004f73
mov dword [ebp - 4], 0x20
jmp 0x10004f73
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x10004fbf
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x10004f3f
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.100047d0
and eax, dword [edx - 0x58]
mov esi, 0x6a1475ff
add dword [esi - 1], edx
xlatb
mov eax, esi
jmp 0x10004fcb
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10005084
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.100047e0
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10004795
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.100047e0
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10004795
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.100047d0
adc byte [ebp + eax*2 + 0x63], al
and byte [ebp - 0x534], 0
and byte [ebp - 0x533], 0
mov byte [ebp - 0x532], 0x68
and byte [ebp - 0x531], 0
mov byte [ebp - 0x530], 0xd4
mov byte [ebp - 0x52f], 0xfb
mov byte [ebp - 0x52e], 0xf8
mov byte [ebp - 0x52d], 0xe4
mov byte [ebp - 0x52c], 0xf2
mov byte [ebp - 0x52b], 0xdf
mov byte [ebp - 0x52a], 0xf6
mov byte [ebp - 0x529], 0xf9
mov byte [ebp - 0x528], 0xf3
invalid
test ecx, ebx
cli
invalid
Function at 0x10006b9d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10015108
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x1001a1b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
mov dword [eax], vtable.CDownloadDlg.1.0
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x44], vtable.CDownloadDlg.0
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax + 4]
test eax, eax
jne 0x10006bf9
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x68]
sub eax, 0x10
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
call fcn.10005d49
mov eax, dword [ebp - 0x28]
add eax, 0x44
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
add eax, 8
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add eax, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0
je 0x10006c40
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
call fcn.1000988a
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x28]
call fcn.100010d1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret