joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10079546
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor eax, eax
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x10079631
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
call fcn.10074b9a
xor eax, eax
push ebp
push 0x10079614
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x14]
lea edx, [ebp - 8]
mov eax, ebx
call fcn.10068d5e
test al, al
je 0x10079601
lea ecx, [ebp - 0x10]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.10074f9a
test al, al
je 0x10079601
cmp dword [ebp - 0xc], 0
jne 0x100795a7
cmp dword [ebp - 0x10], 0
je 0x10079601
call fcn.1006e192
lea eax, [ebp - 0x18]
push eax
push 0x40
push 8
push ebx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x10079601
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
mov ecx, 8
mov edx, ebx
call fcn.10073386
test al, al
jne 0x100795e5
mov eax, dword [ebp - 0x10]
mov dword [ebx], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 4], eax
mov edx, 8
mov eax, ebx
call fcn.10076666
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 8
push ebx
call sub.KERNEL32.dll_VirtualProtect
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1007961b
call fcn.10074d2a
ret
Function at 0x1007ad96
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x1007af00
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x14]
mov ecx, esi
mov edx, 0x1007af16
call fcn.10065c2e
mov eax, dword [ebp - 0x14]
call fcn.10065bb2
push eax
call sub.KERNEL32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x1007aee8
mov eax, dword [ebx]
push eax
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov dword [ebp - 0x10], eax
mov ecx, dword [ebx]
mov edx, dword [ebp - 0x10]
mov eax, ebx
call fcn.100645f6
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
sub edi, 0x18
dec edi
test edi, edi
jl 0x1007ae3c
inc edi
xor esi, esi
mov al, byte [ebp - 0xc]
xor al, byte [ecx]
mov edx, esi
and dl, 0xff
xor al, dl
mov byte [ecx], al
inc ecx
inc esi
dec edi
jne 0x1007ae29
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
sub edx, 0x18
mov ebx, dword [ebp - 0x10]
add ebx, 0x18
mov eax, ebx
call fcn.10072152
mov eax, dword [ebp - 0x10]
lea esi, [ebp - 0x28]
lea edi, [eax + 4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
sub edi, 0x18
dec edi
test edi, edi
jl 0x1007ae9c
inc edi
xor esi, esi
mov eax, esi
mov ebx, 0x14
cdq
idiv ebx
mov eax, dword [ebp - 0x10]
mov al, byte [eax + edx + 4]
xor edx, edx
mov dl, al
shr edx, 4
xor dl, byte [ecx]
and al, 0xf
shl eax, 4
xor dl, al
mov byte [ecx], dl
inc ecx
inc esi
dec edi
jne 0x1007ae74
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_DeviceIoControl
cmp eax, 1
sbb ebx, ebx
inc ebx
call sub.KERNEL32.dll_GetLastError
mov esi, eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.dll_LocalFree
push esi
call sub.KERNEL32.dll_SetLastError
jmp 0x1007aeea
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1007af07
lea eax, [ebp - 0x14]
call fcn.10065a0a
ret
Function at 0x1007af22
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebp, edx
mov edi, eax
push esp
push 0xf003f
push 0
push ebp
push edi
call sub.ADVAPI32.dll_RegOpenKeyExW
test eax, eax
jne 0x1007af7f
xor esi, esi
push 0x208
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
jmp 0x1007af5b
mov edx, ebx
mov eax, dword [esp]
call fcn.1007af22
inc esi
push 0x104
push ebx
push esi
mov eax, dword [esp + 0xc]
push eax
call sub.ADVAPI32.dll_RegEnumKeyW
test eax, eax
je 0x1007af50
push ebx
call sub.KERNEL32.dll_LocalFree
mov eax, dword [esp]
push eax
call sub.ADVAPI32.dll_RegCloseKey
push ebp
push edi
call sub.ADVAPI32.dll_RegDeleteKeyW
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x1007bc76
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
xor ebx, ebx
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call sub.KERNEL32.dll_CreateFileW
mov edi, eax
cmp edi, 0xffffffff
je 0x1007bd1d
push 0
push 0
push 0
push 2
push 0
push edi
call sub.KERNEL32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x1007bd17
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.dll_MapViewOfFile
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1007bd11
push 0
push edi
call sub.KERNEL32.dll_GetFileSize
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x1007bce8
cmp ebx, dword [ebp - 8]
jbe 0x1007bce8
mov ebx, dword [ebp - 8]
lea ecx, [ebp - 0x20]
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.10072152
mov eax, dword [ebp - 4]
push esi
push edi
lea esi, [ebp - 0x20]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov bl, 1
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
push esi
call sub.KERNEL32.dll_CloseHandle
push edi
call sub.KERNEL32.dll_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1007cd4e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x1007ceb1
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
call sub.KERNEL32.dll_lstrlenW
mov edx, eax
cmp byte [ebp - 1], 0
je 0x1007cd9b
mov eax, edx
sub eax, 2
cmp eax, 1
jl 0x1007cd9b
cmp word [ebx + eax*2], 0x5c
jne 0x1007cd96
mov word [ebx + eax*2], 0
mov edx, eax
jmp 0x1007cd9b
dec eax
test eax, eax
jne 0x1007cd85
test edx, edx
jle 0x1007cdb4
cmp word [ebx + edx*2 - 2], 0x5c
je 0x1007cdb4
mov word [ebx + edx*2], 0x5c
mov word [ebx + edx*2 + 2], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp dword [eax], 0
jne 0x1007cdf2
lea ecx, [ebp - 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax]
mov dl, 1
call fcn.10072f86
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
xor edx, edx
mov eax, ebx
call fcn.10072f86
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
pop ecx
call fcn.100656d6
jmp 0x1007ce2e
lea eax, [ebp - 0x14]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx]
call fcn.1006562e
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
mov dl, 1
call fcn.10072fda
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
xor edx, edx
mov eax, ebx
call fcn.10072f86
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
pop ecx
call fcn.100656d6
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
call fcn.1006568a
cmp eax, 6
jle 0x1007ce7c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
cmp byte [eax + 2], 0x3a
je 0x1007ce69
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
cmp byte [eax], 0x5c
jne 0x1007ce7c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
cmp byte [eax + 2], 0x5c
jne 0x1007ce7c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
push eax
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x1007ce80
xor ebx, ebx
jmp 0x1007ce82
mov bl, 1
test bl, bl
je 0x1007ce96
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
mov dword [edx], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1007ceb8
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.1006545a
ret
Function at 0x1007cec2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov bl, 1
push ebp
xor edx, edx
xor eax, eax
call fcn.1007cd4e
pop ecx
test al, al
jne 0x1007cf7d
push 0x104
lea eax, [ebp - 0x212]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameW
push ebp
lea eax, [ebp - 0x212]
mov dl, 1
call fcn.1007cd4e
pop ecx
test al, al
jne 0x1007cf7d
push 0x104
lea eax, [ebp - 0x212]
push eax
mov eax, dword [0x100a1658]
push eax
call sub.KERNEL32.dll_GetModuleFileNameW
push ebp
lea eax, [ebp - 0x212]
mov dl, 1
call fcn.1007cd4e
pop ecx
test al, al
jne 0x1007cf7d
lea eax, [ebp - 0x212]
push eax
push 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryW
push ebp
lea eax, [ebp - 0x212]
xor edx, edx
call fcn.1007cd4e
pop ecx
test al, al
jne 0x1007cf7d
push 0x104
lea eax, [ebp - 0x212]
push eax
call sub.KERNEL32.dll_GetSystemDirectoryW
push ebp
lea eax, [ebp - 0x212]
xor edx, edx
call fcn.1007cd4e
pop ecx
mov ebx, eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1007da56
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp dword [eax], 0
je 0x1007daed
push 2
lea ecx, [ebp - 2]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.1007d9a2
test al, al
je 0x1007daed
cmp word [ebp - 2], 0x5a4d
jne 0x1007daed
push 4
lea ecx, [ebp - 8]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
add edx, 0x3c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.1007d9a2
test al, al
je 0x1007daed
push 0xf8
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
add edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.1007d9a2
test al, al
je 0x1007daed
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
cmp dword [eax], 0x4550
jne 0x1007daed
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
test byte [eax + 0x17], 0x20
je 0x1007daf1
xor eax, eax
jmp 0x1007daf3
mov al, 1
test al, al
je 0x1007db10
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx]
movzx ecx, word [ebp - 2]
add edx, ecx
add edx, 0x78
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
mov dword [ecx], edx
pop ecx
pop ecx
pop ebp
ret
Function at 0x1007e1ba
Capabilities:
Get number of processors

Disassembly:
mov eax, dword gs:[0x60]
mov edx, dword gs:[0x64]
ret
Function at 0x1007fd8a
Capabilities:
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 1
push 0
push 1
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
call fcn.1007e9de
mov ebx, eax
test bl, bl
je 0x1007fde4
test esi, 4
jne 0x1007fdef
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.dll_ResumeThread
jmp 0x1007fdef
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.dll_TerminateProcess
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1008262a
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
push ebx
xor eax, eax
mov dword [ebp - 0x154], eax
xor eax, eax
push ebp
push 0x100826d6
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
lea eax, [ebp - 0x154]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
call fcn.1006562e
mov eax, dword [ebp - 0x154]
lea edx, [ebp - 0x150]
xor ecx, ecx
call fcn.100808ae
mov ebx, eax
test bl, bl
je 0x100826bd
mov eax, dword [ebp - 0x144]
push eax
call sub.KERNEL32.dll_CloseHandle
push 0x64
mov eax, dword [ebp - 0x12c]
push eax
call sub.KERNEL32.dll_WaitForSingleObject
cmp eax, 0x102
jne 0x100826a5
push 0
mov eax, dword [ebp - 0x12c]
push eax
call sub.KERNEL32.dll_TerminateThread
mov eax, dword [ebp - 0x148]
push eax
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebp - 0x12c]
push eax
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x100826dd
lea eax, [ebp - 0x154]
call fcn.10065436
ret
Function at 0x10082962
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x10082b4c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x100a0d0c], 0
jne 0x10082b31
lea eax, [ebp - 4]
push eax
push 0x28
call sub.KERNEL32.dll_GetCurrentProcess
push eax
call sub.ADVAPI32.dll_OpenProcessToken
test eax, eax
je 0x10082b2a
xor eax, eax
push ebp
push 0x10082b23
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 3
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_GetTokenInformation
cmp dword [ebp - 8], 0
je 0x10082b0c
mov eax, dword [ebp - 8]
add eax, eax
push eax
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
add eax, eax
push eax
push ebx
push 3
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_GetTokenInformation
test eax, eax
je 0x10082b06
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x24]
mov eax, dword [0x1009fd40]
call fcn.10068b16
mov eax, dword [ebp - 0x24]
call fcn.1006588a
push eax
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x10082a3a
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x28]
mov eax, dword [0x1009fd44]
call fcn.10068b16
mov eax, dword [ebp - 0x28]
call fcn.1006588a
push eax
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x10082a6d
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x2c]
mov eax, dword [0x1009fd48]
call fcn.10068b16
mov eax, dword [ebp - 0x2c]
call fcn.1006588a
push eax
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x10082aa0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov esi, dword [ebx]
dec esi
test esi, esi
jl 0x10082af2
inc esi
xor ecx, ecx
lea edi, [ecx + ecx*2]
mov eax, dword [ebx + edi*4 + 4]
mov edx, dword [ebx + edi*4 + 8]
cmp edx, dword [ebp - 0xc]
jne 0x10082abd
cmp eax, dword [ebp - 0x10]
je 0x10082aee
lea eax, [ecx + ecx*2]
mov edx, dword [ebx + eax*4 + 8]
mov eax, dword [ebx + eax*4 + 4]
cmp edx, dword [ebp - 0x14]
jne 0x10082ad2
cmp eax, dword [ebp - 0x18]
je 0x10082aee
lea eax, [ecx + ecx*2]
mov edx, dword [ebx + eax*4 + 8]
mov eax, dword [ebx + eax*4 + 4]
cmp edx, dword [ebp - 0x1c]
jne 0x10082ae7
cmp eax, dword [ebp - 0x20]
je 0x10082aee
or dword [ebx + edi*4 + 0xc], 2
inc ecx
dec esi
jne 0x10082aaa
push 0
push 0
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_AdjustTokenPrivileges
push ebx
call sub.KERNEL32.dll_LocalFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10082b2a
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_CloseHandle
ret
mov byte [0x100a0d0c], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10082b53
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.1006545a
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov dword [ebp - 0xdc], 0
push str.6_4_2003
push str._nSLIDELIB_1.2____s_
push 0x40a3a8
call fcn.00401f29
add esp, 0xc
push str._n_C__Copyright_1987_1989_1994_1996__2003_Autodesk__Inc.
push 0x40a3a8
call fcn.00401f29
add esp, 8
push str._n______All_Rights_Reserved
push 0x40a3a8
call fcn.00401f29
add esp, 8
push 0x40a0b4
push 0x40a3a8
call fcn.00401f29
add esp, 8
mov dword [ebp - 8], 1
jmp 0x401072
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 8]
jge 0x4011c6
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0x2d
jne 0x401123
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov al, byte [edx]
mov byte [ebp - 9], al
cmp dword [0x40a358], 1
jle 0x4010ca
push 2
movsx ecx, byte [ebp - 9]
push ecx
call fcn.00401eab
add esp, 8
mov dword [ebp - 0xe0], eax
jmp 0x4010e0
movsx edx, byte [ebp - 9]
mov eax, dword [str.________________________________H]
movzx ecx, word [eax + edx*2]
and ecx, 2
mov dword [ebp - 0xe0], ecx
cmp dword [ebp - 0xe0], 0
je 0x4010f9
movsx edx, byte [ebp - 9]
push edx
call fcn.00401dd4
add esp, 4
mov byte [ebp - 9], al
mov al, byte [ebp - 9]
mov byte [ebp - 0xe4], al
cmp byte [ebp - 0xe4], 0x3f
je 0x40110d
jmp 0x40111e
push 1
call fcn.004018e6
add esp, 4
push 0
call fcn.00401d94
jmp 0x4011c1
cmp dword [ebp - 0xdc], 0
je 0x401173
push str._nError:__Only_one_library_file_name_is_allowed.
push 0x40a3a8
call fcn.00401f29
add esp, 8
push str._n________Perhaps_you_forgot_the_redirection
push 0x40a3a8
call fcn.00401f29
add esp, 8
push str._n________character_______on_the_filelist.
push 0x40a3a8
call fcn.00401f29
add esp, 8
push 2
call fcn.004018e6
add esp, 4
push 1
call fcn.00401d94
push 0x2e
mov ecx, dword [ebp - 4]
push ecx
call fcn.00401c10
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x401190
mov edx, dword [ebp - 0x10]
mov byte [edx], 0
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0xd8]
push ecx
call fcn.00401b10
add esp, 8
push str..slb
lea edx, [ebp - 0xd8]
push edx
call fcn.00401b20
add esp, 8
mov dword [ebp - 0xdc], 1
jmp 0x401069
cmp dword [ebp - 0xdc], 0
jne 0x4011f2
push str._nNo_library_file_name_specified.
push 0x40a3a8
call fcn.00401f29
add esp, 8
push 2
call fcn.004018e6
add esp, 4
push 1
call fcn.00401d94
push 0x40a368
lea eax, [ebp - 0xd8]
push eax
call fcn.00401210
add esp, 8
jmp 0x40120a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4018b1
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
movsx eax, word [ebp + 8]
push eax
call fcn.004027cd
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4018df
push str.Boom_____Memory_capacity_exceeded.
call fcn.00401af3
add esp, 4
push 1
call fcn.00401d94
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x401cd2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40ab3c], esi
push edi
jne 0x401cf2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40ab38], esi
mov byte [0x40ab34], al
jne 0x401d58
mov ecx, dword [0x40c06c]
test ecx, ecx
je 0x401d39
mov eax, dword [0x40c068]
sub eax, 4
cmp eax, ecx
jmp 0x401d32
mov eax, dword [eax]
test eax, eax
je 0x401d24
call eax
mov eax, dword [0x40c068]
sub eax, 4
cmp eax, dword [0x40c06c]
mov dword [0x40c068], eax
jae 0x401d1c
mov eax, 0x40a020
mov esi, 0x40a028
cmp eax, esi
mov edi, eax
jae 0x401d58
mov eax, dword [edi]
test eax, eax
je 0x401d51
call eax
add edi, 4
cmp edi, esi
jb 0x401d49
mov eax, 0x40a02c
mov esi, 0x40a030
cmp eax, esi
mov edi, eax
jae 0x401d77
mov eax, dword [edi]
test eax, eax
je 0x401d70
call eax
add edi, 4
cmp edi, esi
jb 0x401d68
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x401d92
push dword [ebp + 8]
mov dword [0x40ab3c], 1
call fcn.00401c3d
pop ecx
pop ebp
ret
Function at 0x40294e
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x408510
call fcn.00405c74
mov edi, 0x94
mov eax, edi
call fcn.00405cc0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x40aafc], ecx
mov eax, dword [esi + 4]
mov dword [0x40ab08], eax
mov edx, dword [esi + 8]
mov dword [0x40ab0c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40ab00], esi
cmp ecx, 2
je 0x4029ae
or esi, 0x8000
mov dword [0x40ab00], esi
shl eax, 8
add eax, edx
mov dword [0x40ab04], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x4029e7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4029e7
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4029ff
cmp eax, 0x20b
je 0x4029ec
mov dword [ebp - 0x1c], edi
jmp 0x402a13
cmp dword [ecx + 0x84], 0xe
jbe 0x4029e7
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x402a0d
cmp dword [ecx + 0x74], 0xe
jbe 0x4029e7
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.00403e59
pop ecx
test eax, eax
jne 0x402a3f
cmp dword [0x40ab4c], 2
je 0x402a2c
call fcn.004056d1
push 0x1c
call fcn.0040555a
push 0xff
call fcn.00401c3d
pop ecx
pop ecx
call fcn.00402bce
mov dword [ebp - 4], edi
call fcn.00403ab3
test eax, eax
jge 0x402a58
push 0x1b
call fcn.00402929
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40b040], eax
call fcn.00405b50
mov dword [0x40ab44], eax
call fcn.00405aae
test eax, eax
jge 0x402a7e
push 8
call fcn.00402929
pop ecx
call fcn.0040587b
test eax, eax
jge 0x402a8f
push 9
call fcn.00402929
pop ecx
call fcn.00401c6d
mov dword [ebp - 0x20], eax
cmp eax, edi
je 0x402aa2
push eax
call fcn.00402929
pop ecx
mov eax, dword [0x40ab1c]
mov dword [0x40ab20], eax
push eax
push dword [0x40ab14]
push dword [0x40ab10]
call section..text
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x1c], edi
jne 0x402ad1
push esi
call fcn.00401d94
call fcn.00401db6
jmp 0x402b03
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.00405caf
ret