joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ffb9
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov ebx, ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 4], eax
test eax, eax
jne 0x45ffdc
xor al, al
jmp 0x460078
push eax
call fcn.00445da6
pop ecx
push eax
push dword [ebp - 4]
mov dword [ebx + 0x40], eax
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x45ffd5
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4b21a4
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x45ffd5
push esi
mov esi, dword [ebp - 0xc]
push edi
push 0xd
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
lea edi, [ebx + 4]
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x460074
mov esi, dword [ebp - 4]
shr esi, 2
xor ecx, ecx
push 4
pop edx
mov eax, esi
mul edx
seto cl
mov dword [ebx + 0x3c], esi
neg ecx
or ecx, eax
push ecx
call fcn.00445da6
mov dword [ebx + 0x38], eax
xor eax, eax
pop ecx
cmp dword [ebx + 0x3c], eax
jbe 0x460074
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx + 0x38]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x460062
pop edi
mov al, 1
pop esi
pop ebx
leave
ret 4

Function at 0x4636a8
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x4636da
xor eax, eax
jmp 0x463774
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.00445da6
pop ecx
push 0
mov ebx, eax
lea eax, [ebp - 4]
push eax
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp edi, dword [ebp - 4]
jne 0x463765
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi + 0x3c]
call fcn.00462c06
lea ecx, [esi + 0x24]
call fcn.004620b5
push 0x4c1ca2
mov ecx, esi
call fcn.00408db4
mov byte [ebx + edi], 0
mov ecx, esi
mov dword [esi + 0x54], ebx
call fcn.00460ec9
push eax
push 0
mov ecx, esi
call fcn.0046103d
test eax, eax
je 0x463765
call fcn.00460ec9
push eax
push 9
mov ecx, esi
call fcn.0046103d
test eax, eax
je 0x463765
push esi
call fcn.0046362f
test eax, eax
jne 0x463769
xor eax, eax
jmp 0x463773
push ebx
call fcn.00466dfa
xor eax, eax
pop ecx
inc eax
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x465130
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x4ae9c8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4db020]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [esp + 0x2c]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
mov dword [esp + 0x40], 2
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x465218
push 0
push 0
push 0
push 2
push 0
push esi
mov dword [esp + 0x44], esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
je 0x46520c
push 0
push 0
push 0
push 4
push ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x46521c
mov ecx, dword [esp + 0x30]
push ecx
push 0
push esi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push edi
mov ecx, ebp
call fcn.00464ec0
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x4651e4
push edi
call eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4651f4
push ebx
call edi
push esi
call edi
mov al, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x465218
push esi
call eax
xor al, al
jmp 0x4651f6
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x46522c
push ebx
call edi
push esi
call edi
xor al, al
jmp 0x4651f6

Function at 0x467491
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4db020]
jne 0x46749b
repz ret
jmp fcn.0047188c
Function at 0x486396
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.0046fe46
and dword [ebp - 4], 0
cmp dword [0x4e1544], 0
mov ebx, eax
jne 0x486447
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4864f8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4864f8
push eax
call fcn.0046fdd4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4e1544], eax
call esi
push eax
call fcn.0046fdd4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4e1548], eax
call esi
push eax
call fcn.0046fdd4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4e154c], eax
call esi
push eax
call fcn.0046fdd4
pop ecx
mov dword [0x4e1554], eax
test eax, eax
je 0x486447
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0046fdd4
pop ecx
mov dword [0x4e1550], eax
mov eax, dword [0x4e1550]
cmp eax, ebx
je 0x48649f
cmp dword [0x4e1554], ebx
je 0x48649f
push eax
call fcn.0046fe4f
push dword [0x4e1554]
mov esi, eax
call fcn.0046fe4f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x48649f
test edi, edi
je 0x48649f
call esi
test eax, eax
je 0x486496
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x486496
test byte [ebp - 0xc], 1
jne 0x48649f
or dword [ebp + 0x10], 0x200000
jmp 0x4864d8
mov eax, dword [0x4e1548]
cmp eax, ebx
je 0x4864d8
push eax
call fcn.0046fe4f
pop ecx
test eax, eax
je 0x4864d8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4864d8
mov eax, dword [0x4e154c]
cmp eax, ebx
je 0x4864d8
push eax
call fcn.0046fe4f
pop ecx
test eax, eax
je 0x4864d8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4e1544]
call fcn.0046fe4f
pop ecx
test eax, eax
je 0x4864f8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4864fa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x497350
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [esi - 0x55000004], edx
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.00496428
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004963dd
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.00496418
test al, 0xdd
sub dword [ebx + 0x10468], ecx
add byte [ebp - 0x12b7b], cl
call dword [eax - 1]
xchg ebp, eax
sub al, 0xfc
invalid
Function at 0x49eeb0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aed26
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
lea ecx, [ebp - 0x5d]
call fcn.004017a0
push eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
call fcn.00401850
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x94]
push ecx
call fcn.0049ebe0
mov dword [ebp - 0x98], eax
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
mov ecx, dword [ebp - 0x98]
call fcn.004018b0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x50]
call fcn.00401f90
lea ecx, [ebp - 0x94]
call fcn.00401600
movzx edx, byte [0x4e166d]
test edx, edx
jne 0x49efe3
xor eax, eax
mov word [ebp - 0x54], ax
mov dword [ebp - 0x58], 0
push 0
push 0
push 0
lea ecx, [ebp - 0x50]
call fcn.00401fd0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x58]
push ecx
push 2
lea edx, [ebp - 0x54]
push edx
lea ecx, [ebp - 0x50]
call fcn.00401fd0
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49efad
cmp dword [ebp - 0x58], 2
jne 0x49efad
movzx eax, word [ebp - 0x54]
xor ecx, ecx
cmp eax, 0xfeff
sete cl
mov byte [0x4e166d], cl
movzx edx, byte [0x4e166d]
test edx, edx
jne 0x49efdc
mov eax, 0xfeff
mov word [ebp - 0x5c], ax
push 0
lea ecx, [ebp - 0x10]
push ecx
push 2
lea edx, [ebp - 0x5c]
push edx
lea ecx, [ebp - 0x50]
call fcn.00401fd0
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [0x4e166d], 1
push 2
push 0
push 0
lea ecx, [ebp - 0x50]
call fcn.00401fd0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x44]
call fcn.00401760
shl eax, 1
push eax
lea ecx, [ebp - 0x48]
call fcn.004018b0
push eax
lea ecx, [ebp - 0x50]
call fcn.00401fd0
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x50]
call fcn.00401fb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00401600
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00467491
mov esp, ebp
pop ebp
ret 4
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
mov ecx, 0x58064cea
nop
nop
nop
test eax, eax
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x39a02b7e
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401c27
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
push edi
push edi
push edi
push dword [ebp + 8]
call dword [0x40f084]
lea eax, [ebp - 4]
push edi
push eax
push 0x100000
push 0x415e74
push dword [ebp + 8]
call dword [0x40f0f4]
test eax, eax
je 0x401c73
cmp word [0x415e74], 0x5a4d
jne 0x401c73
mov ecx, dword [0x415eb0]
cmp dword [ecx + 0x415e74], 0x4550
je 0x401c78
or eax, 0xffffffff
jmp 0x401ca3
push esi
xor eax, eax
movzx esi, word [ecx + 0x415e7a]
cmp esi, edi
jle 0x401ca2
lea edx, [ecx + 0x415f7c]
mov ecx, dword [edx + 4]
add ecx, dword [edx]
cmp ecx, eax
jbe 0x401c97
mov eax, ecx
add edx, 0x28
inc edi
movsx ecx, di
cmp ecx, esi
jl 0x401c8c
pop esi
pop edi
leave
ret
Function at 0x401510
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x406980
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CImageList::CImageList
xor esi, esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], esi
call sub.MFC42.DLL_CUIntArray::CUIntArray
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push edx
push eax
push ecx
mov ecx, edi
mov byte [esp + 0x44], 1
call fcn.00401610
mov ebx, eax
cmp ebx, esi
mov dword [esp + 0x38], ebx
jle 0x4015d0
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
cmp eax, esi
jle 0x4015d0
mov ebx, dword [sym.imp.COMCTL32.dll_ImageList_GetIcon]
push ebp
mov ebp, dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov eax, dword [esp + 0x14]
push 0
push esi
push eax
call ebx
test eax, eax
je 0x4015bb
mov ecx, dword [edi + 0xc]
push eax
push 0xffffffffffffffff
push ecx
call ebp
mov edx, dword [esp + 0x1c]
lea ecx, [edi + 0x10]
mov eax, dword [edx + esi*4]
mov edx, dword [ecx + 8]
push eax
push edx
call sub.MFC42.DLL_CUIntArray::SetAtGrow
mov eax, dword [esp + 0x14]
inc esi
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
cmp esi, eax
jl 0x401590
mov ebx, dword [esp + 0x3c]
pop ebp
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 0
call fcn.00405fec
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.00405ff2
mov ecx, dword [esp + 0x28]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 0xc
Function at 0x402b70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x406b88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x1c]
call fcn.00405faa
mov dword [esp + 0x1c], 0x407a48
mov edi, dword [esp + 0x70]
mov ebx, dword [esp + 0x6c]
push edi
push ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x6c], 0
call sub.MFC42.DLL_CWnd::SubclassDlgItem
test eax, eax
jne 0x402be4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x64], 0xffffffff
call sub.MFC42.DLL_CStatic::CStatic
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
add esp, 0x5c
ret 8
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [esp + 0xc]
mov ecx, edi
push edx
call sub.MFC42.DLL_CWnd::ScreenToClient
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CWnd::DestroyWindow
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
add ecx, 0xb4
add edx, 0x3c
mov dword [esp + 0x18], ecx
push 0
push ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x1c]
add eax, 0xaa
push edi
push ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
push 0x50040000
add edx, 0xa0
push 0
push 0
mov ecx, esi
mov dword [esp + 0x30], edx
call dword [eax + 0x5c]
lea ecx, [esp + 0x1c]
mov esi, eax
mov dword [esp + 0x64], 0xffffffff
call sub.MFC42.DLL_CStatic::CStatic
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret 8
Function at 0x402950
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3ff
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call ebx
push 0x3fc
push esi
call edi
push 0
push eax
call ebx
push 0x3fd
push esi
call edi
push 0
push eax
call ebx
push 0x3fe
push esi
call edi
push 0
push eax
call ebx
push 0x402
push esi
call edi
push 0
push eax
call ebx
push 0x403
push esi
call edi
push 0
push eax
call ebx
push 0x3f2
push esi
call edi
push 0
push eax
call ebx
push 0x3f3
push esi
call edi
push 0
push eax
call ebx
push 0x3f4
push esi
call edi
push 0
push eax
call ebx
push 0x3f5
push esi
call edi
push 0
push eax
call ebx
push 0x3f6
push esi
call edi
push 0
push eax
call ebx
push 0x400
push esi
call edi
mov ebp, eax
push 0
push ebp
call ebx
push 0
push ebp
mov ebp, dword [sym.imp.USER32.dll_EnableWindow]
call ebp
push 0x401
push esi
call edi
push 0
push eax
mov dword [esp + 0x1c], eax
call ebx
mov eax, dword [esp + 0x14]
push 0
push eax
call ebp
push 0x409
push esi
call edi
mov esi, eax
push 0
push esi
call ebx
push 0
push esi
call ebp
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x403670
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x210
mov al, byte [0x40d874]
push ebx
push ebp
push esi
mov ebx, dword [esp + 0x220]
push edi
mov byte [esp + 0x10], al
mov ecx, 0x83
xor eax, eax
lea edi, [esp + 0x11]
mov ebp, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x20d
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov esi, 1
push ecx
push 0x3ea
push ebx
call ebp
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x228]
not ecx
dec ecx
jne 0x4036de
cmp eax, 6
je 0x4036de
xor esi, esi
jmp case.default.0x4036f1
mov dl, byte [0x40d874]
cmp eax, 7
mov byte [esp + 0x10], dl
ja case.default.0x4036f1
jmp dword [eax*4 + 0x4037d0]
lea eax, [esp + 0x10]
push 0x20d
push eax
push 0x3f4
push ebx
call ebp
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
sbb esi, esi
neg esi
je case.default.0x4036f1
push 0x401
push ebx
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
jne case.default.0x4036f1
lea eax, [esp + 0x10]
push 0x20d
push eax
push 0x3f5
push ebx
call ebp
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
sbb esi, esi
neg esi
je case.default.0x4036f1
lea eax, [esp + 0x10]
push 0x20d
push eax
push 0x3f6
jmp 0x403796
mov esi, 1
jmp case.default.0x4036f1
lea eax, [esp + 0x10]
push 0x20d
push eax
push 0x3f2
push ebx
call ebp
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
sbb esi, esi
neg esi
push esi
push 1
push ebx
call ebp
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
Function at 0x4039a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x40d878]
sub esp, 0x44
test eax, eax
push esi
push edi
jne 0x403a53
lea eax, [esp + 0xc]
push eax
push str.SOFTWAREMicrosoftMSSQLServerSQLGUI
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x403a49
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push ecx
push 0x40d880
push eax
push eax
push str.StdFont
push edx
mov dword [esp + 0x20], 0x5c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403a30
mov eax, dword [esp + 8]
cmp eax, 0x5c
je 0x403a01
cmp eax, 0x3c
jne 0x403a30
cmp eax, 0x3c
jne 0x403a3e
push 0x40
push 0x40d89c
lea eax, [esp + 0x34]
push 0xffffffffffffffff
mov ecx, 0xf
mov esi, 0x40d880
lea edi, [esp + 0x1c]
push eax
push 0
push 0
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x403a3e
mov ecx, 0x17
xor eax, eax
mov edi, 0x40d880
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x40d878], 1
mov esi, dword [esp + 0x54]
test esi, esi
je 0x403a61
mov dword [esi], 1
cmp word [0x40d89c], 0
je 0x403a76
xor ecx, ecx
xor eax, eax
mov al, byte [0x40d897]
jmp 0x403adb
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
cmp eax, 0x3a8
ja 0x403aa4
je 0x403a98
cmp eax, 0x3a4
jne 0x403ab5
mov ecx, 1
mov eax, 0x80
jmp 0x403adb
mov ecx, 3
mov eax, 0x86
jmp 0x403adb
sub eax, 0x3b5
je 0x403ad1
dec eax
je 0x403ac5
sub eax, 0x19b
je 0x403ad1
test esi, esi
je 0x403abf
mov dword [esi], 0
xor ecx, ecx
xor eax, eax
jmp 0x403adb
mov ecx, 4
mov eax, 0x88
jmp 0x403adb
mov ecx, 2
mov eax, 1
mov edx, dword [esp + 0x50]
test edx, edx
je 0x403ae5
mov dword [edx], ecx
pop edi
pop esi
add esp, 0x44
ret

Function at 0x403d90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push 5
push eax
push edi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x403df3
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x403df3
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x403deb
mov ecx, dword [esp + 0x20]
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
call fcn.00403e00
add esp, 0xc
mov dword [esp + 0x10], eax
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x405910
Capabilities:
Get hostname
Get system information on windows

Disassembly:
sub esp, 0x68
push ebx
push ebp
push esi
mov esi, dword [esp + 0x78]
push edi
mov dword [0x40e224], esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x405943
mov ebx, 1
xor ebp, ebp
mov dword [0x40b23c], ebx
mov dword [0x40dbfc], ebp
jmp 0x405956
xor ebp, ebp
mov ebx, 1
mov dword [0x40b23c], ebp
mov dword [0x40dbfc], ebx
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor ecx, ecx
cmp word [esp + 0x2c], bp
lea edx, [esp + 0x7c]
mov edi, 0x10
sete cl
push edx
push 0x40f420
mov dword [0x40b240], ecx
mov dword [0x40dbfc], ebx
mov dword [esp + 0x84], edi
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
cmp dword [esp + 0x80], ebp
jne 0x405a0e
push 0x64
push esi
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], 0x405aa0
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], 0x1e
mov dword [esp + 0x68], esi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push ebp
mov dword [esp + 0x6c], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], ebp
mov dword [esp + 0x68], eax
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x78], 0x40b244
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
jne 0x405a0e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 0x10
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov ecx, dword [0x40e224]
push ebp
push ebp
push ebp
push 0x64
push ecx
call dword [sym.imp.USER32.dll_CreateDialogParamA]
test eax, eax
je 0x405a8a
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push ebp
push ebp
lea edx, [esp + 0x18]
push ebp
push edx
call esi
test eax, eax
je 0x405a7c
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
mov ecx, dword [0x40f434]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x405a6e
lea edx, [esp + 0x10]
push edx
call edi
lea eax, [esp + 0x10]
push eax
call ebx
push ebp
push ebp
lea ecx, [esp + 0x18]
push ebp
push ecx
call esi
test eax, eax
jne 0x405a4a
mov edx, dword [0x40f430]
push ebp
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 0x10