joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b649d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4b64bd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.004b7d3c
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4b64e0
test byte [esp + 8], 2
je 0x4b64e0
call fcn.004b7daf
mov dword [eax], 0xd
call fcn.004b7db8
mov dword [eax], 5
jmp 0x4b64b9
xor eax, eax
ret

Function at 0x4c06d3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x522760
cmp edx, dword [eax]
je 0x4c06f5
add eax, 8
inc ecx
cmp eax, 0x5227f0
jl 0x4c06e6
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x522760]
jne 0x4c0823
mov eax, dword [0x561184]
cmp eax, 1
je 0x4c07fd
test eax, eax
jne 0x4c0726
cmp dword [0x521454], 1
je 0x4c07fd
cmp edx, 0xfc
je 0x4c0823
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x4c075d
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004b4df0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004b5a30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c07a0
lea eax, [ebp - 0x1a4]
push eax
call fcn.004b5a30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4f6b90
push edi
call fcn.004b4cf0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004b4df0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004b4e00
lea eax, [ebp - 0xa0]
push 0x4f6b70
push eax
call fcn.004b4e00
push dword [esi + 0x522764]
lea eax, [ebp - 0xa0]
push eax
call fcn.004b4e00
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004c38a7
add esp, 0x2c
pop edi
jmp 0x4c0823
lea eax, [ebp + 8]
lea esi, [esi + 0x522764]
push 0
push eax
push dword [esi]
call fcn.004b5a30
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
leave
ret
Function at 0x4c8aa0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004b5fa0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4c8b6b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4c8b6b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4c8b1e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4c8b29
or bh, 8
and edi, 0x8000000
je 0x4c8b44
mov eax, dword [0x574f5c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4c8b6b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c8f40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4c8f6b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov esi, eax
test esi, esi
jne 0x4c8f8f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4c8faa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x4ccae4
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4ccb1c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004cf914
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004cf8ec
jmp 0x4ccb28
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4ce274
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4ce2b6
call fcn.004d565d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x4ce2b6
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0x4ce2ad
xor eax, eax
jmp 0x4ce2be
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ce2c4
pop edi
pop esi
pop ebx
ret 4

Function at 0x4cfc28
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x4cfc4a
cmp dword [edi + 0x3c], 0
jne 0x4cfc4a
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004d565d
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
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004cfc77
pop edi
pop esi
pop ebx
ret 8
Function at 0x401007
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax]
mov eax, dword [eax + 4]
xor esi, esi
cmp dword [0x2b04b04], 0x594
mov dword [ebp - 8], eax
jne 0x40103b
push esi
lea eax, [ebp - 0x438]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [0x42c078]
mov ebx, dword [0x42c07c]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
call fcn.00401000
mov eax, dword [0x42c080]
add dword [ebp - 0x18], 0x23f
mov dword [ebp - 0x2c], eax
mov eax, dword [0x42c084]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, edi
shl eax, 4
cmp dword [0x2b04b04], 0xc
mov dword [ebp - 4], eax
jne 0x4010b3
push esi
lea eax, [ebp - 0x438]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
push esi
lea eax, [ebp - 0x34]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [0x2b04b04]
cmp eax, 0xfa9
jne 0x4010cf
mov dword [0x2b04b00], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010ee
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov dword [0x2b044b4], esi
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov edx, edi
add eax, edi
shr edx, cl
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov dword [0x2b04afc], 0xf4ea3dee
add edx, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
xor edx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
nop
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
shr edx, cl
add edx, ebx
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor dword [ebp - 4], edx
sub edi, dword [ebp - 4]
add dword [ebp - 0x18], 0x61c88647
dec dword [ebp - 0x24]
jne 0x401072
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [eax], edi
pop edi
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 4
Function at 0x404b0a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42bb24]
jne 0x404b14
repz ret
jmp fcn.004077c2

Function at 0x4071f0
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.00402ce9
and dword [ebp - 4], 0
cmp dword [0x4303bc], 0
mov ebx, eax
jne 0x4072a1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407352
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407352
push eax
call fcn.00402c77
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4303bc], eax
call esi
push eax
call fcn.00402c77
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4303c0], eax
call esi
push eax
call fcn.00402c77
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4303c4], eax
call esi
push eax
call fcn.00402c77
pop ecx
mov dword [0x4303cc], eax
test eax, eax
je 0x4072a1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402c77
pop ecx
mov dword [0x4303c8], eax
mov eax, dword [0x4303c8]
cmp eax, ebx
je 0x4072f9
cmp dword [0x4303cc], ebx
je 0x4072f9
push eax
call fcn.00402cf2
push dword [0x4303cc]
mov esi, eax
call fcn.00402cf2
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4072f9
test edi, edi
je 0x4072f9
call esi
test eax, eax
je 0x4072f0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4072f0
test byte [ebp - 0xc], 1
jne 0x4072f9
or dword [ebp + 0x10], 0x200000
jmp 0x407332
mov eax, dword [0x4303c0]
cmp eax, ebx
je 0x407332
push eax
call fcn.00402cf2
pop ecx
test eax, eax
je 0x407332
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407332
mov eax, dword [0x4303c4]
cmp eax, ebx
je 0x407332
push eax
call fcn.00402cf2
pop ecx
test eax, eax
je 0x407332
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4303bc]
call fcn.00402cf2
pop ecx
test eax, eax
je 0x407352
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407354
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404f39
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404f91
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404f83
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x404f7f
cmp esi, ecx
jae 0x404f83
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec edx
jne 0x404f6f
cmp esi, ecx
jb 0x404f87
xor eax, eax
jmp 0x404f90
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x405278
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00405067
mov ecx, eax
test ecx, ecx
je 0x405462
mov eax, dword [ecx]
push ebx
push esi
push edi
call dword [eax + 0xc]
add eax, 0x10
mov ebx, 0x104
mov dword [ebp - 8], eax
or edi, 0xffffffff
lea eax, [ebp - 8]
mov dword [ebp - 0x14], edi
push ebx
mov ecx, eax
mov dword [ebp - 0x1c], eax
call fcn.0040583f
push ebx
push eax
xor ebx, ebx
mov dword [ebp - 0x18], eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.004057f0
test esi, esi
je 0x405444
cmp esi, 0x104
ja 0x405444
mov esi, dword [ebp - 8]
call fcn.00405067
push eax
lea ecx, [ebp - 0x10]
call fcn.00405816
test esi, esi
je 0x405315
test esi, 0xffff0000
jne 0x405315
movzx eax, si
lea ecx, [ebp - 0x10]
push eax
call fcn.004059b0
jmp 0x40531e
push esi
lea ecx, [ebp - 0x10]
call fcn.0040578b
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
call fcn.0040583f
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov esi, dword [ebp - 0x10]
push dword [esi - 8]
push esi
call fcn.0040761a
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00405925
lea eax, [esi - 0x10]
mov ecx, eax
mov dword [ebp - 0x24], eax
call fcn.00405950
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
mov dword [ebp - 0x10], ecx
lea edx, [eax + 0x10]
lea esi, [edx - 0x10]
mov dword [ebp - 0x20], esi
cmp esi, ecx
je 0x4053a0
cmp dword [ecx + 0xc], ebx
jl 0x405394
mov eax, dword [esi]
cmp eax, dword [ecx]
jne 0x405394
mov ecx, esi
call fcn.00405950
mov ecx, dword [ebp - 0x10]
mov esi, eax
call fcn.0040504b
lea eax, [esi + 0x10]
mov esi, dword [ebp - 0x20]
mov dword [ebp - 8], eax
jmp 0x4053a0
push dword [edx - 0xc]
lea ecx, [ebp - 8]
push edx
call fcn.00405877
mov ecx, esi
call fcn.0040504b
call fcn.00405067
mov ecx, eax
test ecx, ecx
je 0x405462
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push 0x104
mov ecx, eax
mov dword [ebp - 0x1c], eax
call fcn.0040583f
push eax
push ebx
push ebx
push 0x26
push ebx
mov dword [ebp - 0x18], eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
lea ecx, [ebp - 0x1c]
sets bl
call fcn.004057f0
test bl, bl
je 0x4053fa
xor ebx, ebx
jmp 0x405431
lea ecx, [ebp - 0xc]
call fcn.004057b6
lea ecx, [ebp - 8]
call fcn.004057b6
cmp dword [ebp - 0xc], 0
je 0x40542c
mov ecx, dword [ebp - 8]
cmp dword [ecx - 0xc], 0
jl 0x40542c
mov edx, dword [ebp - 0xc]
call fcn.00405bbe
test eax, eax
je 0x40542c
mov edi, eax
sub edi, dword [ebp - 8]
sar edi, 1
test edi, edi
sete bl
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.0040504b
mov ecx, dword [ebp - 0x24]
call fcn.0040504b
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.0040504b
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405d63
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404eb0
int3
Function at 0x40546d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0xc]
xor edi, edi
push eax
xor eax, eax
mov dword [ebp - 0xc], edi
push 0x20019
test cl, cl
mov esi, edx
push edi
setne al
push 0x404d08
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4054b8
jle 0x405515
movzx eax, ax
or eax, 0x80070000
jmp 0x405515
or dword [ebp - 0x14], 0xffffffff
mov ecx, esi
push 0x32
pop eax
push eax
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], esi
call fcn.0040583f
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], eax
push ecx
push eax
lea eax, [ebp - 8]
push eax
push edi
push 0x404cf0
push dword [ebp - 0xc]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.004057f0
test esi, esi
je 0x405508
jle 0x405504
movzx esi, si
or esi, 0x80070000
mov eax, esi
jmp 0x405515
mov eax, dword [ebp - 8]
dec eax
neg eax
sbb eax, eax
and eax, 0x8000ffff
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00405d63
mov esp, ebp
pop ebp
ret

Function at 0x4056e9
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call fcn.00405278
mov bl, al
call fcn.00405067
mov ecx, eax
test ecx, ecx
je 0x405780
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ebp - 4], eax
mov dl, bl
lea eax, [ebp - 4]
push eax
call fcn.00405525
mov esi, dword [ebp - 4]
mov edi, eax
pop ecx
test edi, edi
js 0x40576d
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
jne 0x40573f
call fcn.0040520b
mov edi, eax
jmp 0x40576d
push 0x404cf8
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x405761
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call edi
mov edi, eax
jmp 0x405766
mov edi, 0x80004005
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esi - 0x10]
call fcn.0040504b
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00404eb0
int3
Function at 0x40bbd5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040a1c3
mov dword [ebp - 0x14], eax
cmp dword [0x413f74], esi
jne 0x40bcc8
push 0x800
push esi
push 0x4022d4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40bc55
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40bda8
push esi
push esi
push 0x4022d4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40bda8
push 0x4022ec
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40bda8
push eax
call ebx
push 0x4022f8
push edi
mov dword [0x413f74], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x402308
push edi
mov dword [0x413f78], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x40231c
push edi
mov dword [0x413f7c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x413f84], eax
test eax, eax
je 0x40bcc5
push 0x402338
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x413f80], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40bced
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40bce0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40bd02
push 4
pop eax
jmp 0x40bdaa
cmp dword [ebp - 0x14], esi
je 0x40bd02
push dword [0x413f74]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40bce7
mov eax, dword [0x413f80]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40bd60
cmp dword [0x413f84], edi
je 0x40bd60
push eax
call ebx
push dword [0x413f84]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40bd60
test eax, eax
je 0x40bd60
call ecx
test eax, eax
je 0x40bd55
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 0x40bd55
test byte [ebp - 8], 1
jne 0x40bd60
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40bd90
mov eax, dword [0x413f78]
cmp eax, edi
je 0x40bd8d
push eax
call ebx
test eax, eax
je 0x40bd8d
call eax
mov esi, eax
test esi, esi
je 0x40bd8d
mov eax, dword [0x413f7c]
cmp eax, edi
je 0x40bd8d
push eax
call ebx
test eax, eax
je 0x40bd8d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x413f74]
call ebx
test eax, eax
je 0x40bda8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40bdaa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405d63
mov esp, ebp
pop ebp
ret
Function at 0x40ac2c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x8c
mov dword [esp + 4], 0x487400
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov esi, eax
test eax, eax
je 0x40ad24
lea eax, [ebp - 0x84]
mov dword [esp], eax
call fcn.00419610
mov dword [esp], 0xc800
call fcn.004774a8
mov ebx, eax
jmp 0x40ac8e
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
lea eax, [ebp - 0x84]
mov dword [esp], eax
call fcn.00419fa0
mov edi, ebx
mov ecx, 0xc800
xor eax, eax
rep stosb byte es:[edi], al
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0xc800
mov dword [esp + 4], 1
mov dword [esp], ebx
call sub.msvcrt.dll_fread
test eax, eax
jg 0x40ac78
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [ebp - 0x2a], 0
lea edi, [ebp - 0x26]
mov ecx, 0xc
xor eax, eax
rep stosb byte es:[edi], al
lea esi, [ebp - 0x2a]
mov dword [esp + 4], esi
lea eax, [ebp - 0x84]
mov dword [esp], eax
call fcn.0041a068
test ebx, ebx
je 0x40acf5
mov dword [esp], ebx
call fcn.00477484
lea eax, [ebp - 0x1a]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x10
mov dword [esp + 4], esi
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00452018
mov eax, dword [ebp + 8]
add esp, 0x8c
pop ebx
pop esi
pop edi
leave
ret 4
lea eax, [ebp - 0x19]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x487403
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00451fcc
mov eax, dword [ebp + 8]
add esp, 0x8c
pop ebx
pop esi
pop edi
leave
ret 4