joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405c8b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4318c0]
push esi
push edi
mov esi, 0xc80000
mov ax, word [eax + 0x675c]
push 1
imul ax, ax, 0x3c
add eax, 0x50
push esi
movzx edi, ax
lea eax, [ebp - 0x10]
push eax
push 0x7f
push edi
call fcn.004038a9
add esp, 0x14
push edi
push dword [0x4316b0]
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push eax
mov eax, dword [0x4318c0]
push dword [ebp - 0xc]
add eax, 0x14cc
push dword [ebp - 0x10]
push esi
push eax
push dword [0x41643c]
push 1
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
push esi
call fcn.0040590c
pop ecx
mov edi, eax
pop ecx
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
test edi, edi
pop edi
pop esi
jne 0x405d6a
mov eax, dword [0x4318c0]
add eax, 0x1f2
push eax
call fcn.0040d410
test eax, eax
pop ecx
jle 0x405d66
mov ecx, dword [0x4318c0]
cmp byte [ecx + eax + 0x1f1], 0x5c
lea edx, [ecx + eax + 0x1f1]
jne 0x405d66
cmp eax, 3
jne 0x405d63
cmp byte [ecx + 0x1f3], 0x3a
je 0x405d66
and byte [edx], 0
xor eax, eax
leave
ret
mov eax, 0xbe
leave
ret

Function at 0x405dfe
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [0x4318c0]
push ebx
push esi
push edi
mov eax, dword [ecx + 0x6760]
mov esi, 0xc80000
add eax, dword [ecx + 0x675c]
push 1
push esi
cdq
sub eax, edx
sar eax, 1
imul eax, eax, 0x21
add eax, 0x9d
movzx edi, ax
lea eax, [ebp - 0x10]
push eax
push 0xd6
push edi
call fcn.004038a9
mov eax, dword [0x417930]
mov ecx, dword [ebp - 8]
add esp, 0x14
test eax, eax
je 0x405e5a
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
add ecx, eax
mov dword [ebp - 8], ecx
mov edx, dword [0x417934]
mov eax, dword [ebp - 4]
test edx, edx
je 0x405e72
sub eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], edx
add eax, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
sub eax, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x10]
push edi
push dword [0x4316b0]
push 0
push ebx
push eax
mov eax, dword [0x4318c0]
push ecx
add eax, 0x14cc
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push esi
push eax
push dword [0x416448]
push 1
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push ebx
mov edi, eax
call esi
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
push edi
call fcn.0040590c
pop ecx
mov dword [ebp + 8], eax
pop ecx
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x10]
push 1
mov dword [0x417930], eax
mov eax, dword [ebp - 0xc]
push ebx
mov dword [0x417934], eax
call esi
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [ebp + 8]
pop edi
neg eax
sbb eax, eax
pop esi
and eax, 0xbe
pop ebx
leave
ret
Function at 0x4077cb
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3b4
mov eax, dword [0x4318c0]
add eax, 0x2f2
cmp byte [eax], 0
je 0x4078b4
lea ecx, [ebp - 0x22c]
push 0x4178cc
push ecx
push eax
call fcn.004049b2
add esp, 0xc
lea eax, [ebp - 0x3b4]
push 0x4000
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
je 0x4078b4
mov eax, dword [0x4318c0]
push str.notepad
add eax, 0x2f2
push eax
call fcn.0040d320
lea eax, [ebp - 0x22c]
push eax
mov eax, dword [0x4318c0]
add eax, 0x2f2
push eax
call fcn.0040d330
mov eax, dword [0x4318c0]
add esp, 0x10
add eax, 0x2f2
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jb 0x4078b4
lea eax, [ebp - 0xc8]
push 0x4165f8
push eax
call fcn.0040d320
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x64]
push eax
mov eax, dword [0x4318c0]
push 0
add eax, 0x2fa
push 0
push eax
call fcn.0040de2e
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.0040d330
lea eax, [ebp - 0xc8]
push eax
call fcn.004079eb
add esp, 0x28
leave
ret

Function at 0x4079eb
Capabilities:
Enumerate gui resources

Disassembly:
push edi
mov edi, dword [esp + 8]
push edi
call fcn.0041326a
lea eax, [edi + 0x64]
push eax
call fcn.0041326a
pop ecx
pop ecx
and dword [0x4178f0], 0
push edi
push 0x407982
call dword [sym.imp.USER32.dll_EnumWindows]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x4178f0], 0
jne 0x407a01
pop edi
ret

Function at 0x407b57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push dword [0x417988]
call fcn.00407c79
push 0xc
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call fcn.0040e2e0
add esp, 0x10
xor edi, edi
lea esi, [ebp + edi - 0xc]
call fcn.00407c63
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.00407c04
inc edi
pop ecx
cmp edi, 0xc
jl 0x407b7d
mov eax, dword [0x416bc0]
movzx cx, byte [ebp - 1]
test byte [eax + 0x28], 2
je 0x407bb4
movzx eax, word [0x4293e6]
shr eax, 8
jmp 0x407bbc
mov eax, dword [0x4293ec]
shr eax, 0x18
movzx ecx, cx
cmp ecx, eax
je 0x407bc8
or eax, 0xffffffff
jmp 0x407c00
mov eax, dword [0x429388]
mov ecx, dword [0x418b64]
cmp eax, ecx
jle 0x407bd9
mov eax, ecx
mov esi, dword [0x429460]
mov ecx, eax
dec eax
test ecx, ecx
je 0x407bfe
lea edi, [eax + 1]
call fcn.00407c63
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.00407c04
inc esi
dec edi
pop ecx
jne 0x407be9
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x407c04
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [0x41797c]
mov edx, 0xff
mov eax, ecx
push esi
xor eax, dword [esp + 8]
shr ecx, 8
and eax, edx
mov eax, dword [eax*4 + 0x416634]
xor eax, ecx
mov ecx, dword [0x417984]
mov dword [0x41797c], eax
and eax, edx
add eax, dword [0x417980]
mov esi, ecx
and esi, edx
imul eax, eax, 0x8088405
inc eax
mov dword [0x417980], eax
shr eax, 0x18
xor eax, esi
pop esi
shr ecx, 8
mov eax, dword [eax*4 + 0x416634]
xor eax, ecx
mov dword [0x417984], eax
mov eax, dword [esp + 4]
ret
Function at 0x408abc
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, 0x4294a0
push edi
push esi
call fcn.0040d1fe
push esi
call fcn.0040d410
cmp byte [eax + 0x42949f], 0x5c
pop ecx
pop ecx
jne 0x408ae8
push 2
pop eax
jmp 0x408b6b
push 0x429420
push esi
call fcn.0040e710
pop ecx
test eax, eax
pop ecx
jne 0x408b0f
test byte [0x429426], 0x80
jne 0x408b0f
push 0x180
push esi
call fcn.0041339e
pop ecx
pop ecx
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
call edi
test al, 2
je 0x408b2a
push esi
call edi
xor eax, 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 1
xor eax, eax
pop edi
lea ecx, [ebp - 0xc]
push eax
push 0x80
push 2
push ecx
push eax
push 0x40000000
push esi
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x4293b4], eax
jne 0x408b63
mov eax, edi
jmp 0x408b6b
mov dword [0x431660], edi
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x408beb
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4187d0], 0
jne 0x408c79
push 1
push 0x2000
push dword [0x429384]
call fcn.004098bc
add esp, 0xc
cmp eax, 0xffffffff
mov dword [0x429388], eax
je 0x408c79
mov ecx, dword [0x416bc0]
push esi
mov esi, dword [0x429384]
mov dword [0x429460], esi
test byte [ecx + 0x28], 1
je 0x408c63
mov ecx, dword [0x418b64]
inc ecx
cmp eax, ecx
jg 0x408c3d
mov ecx, eax
mov edx, ecx
dec ecx
test edx, edx
je 0x408c63
push edi
lea edi, [ecx + 1]
call fcn.00407c63
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.00407c04
inc esi
dec edi
pop ecx
jne 0x408c48
mov eax, dword [0x429388]
pop edi
dec eax
pop esi
mov dword [0x429388], eax
mov eax, dword [0x429460]
movzx eax, byte [eax]
inc dword [0x429460]
ret
or eax, 0xffffffff
ret
Function at 0x408c7d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x43164c], 0
mov eax, dword [0x418b5c]
push ebx
push esi
push edi
jne 0x408d6f
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor esi, esi
mov ecx, ebx
cmp edi, esi
je 0x408cc4
lea edx, [edi]
mov dword [ebp + 8], edx
movzx edx, byte [ecx]
movzx esi, al
xor edx, esi
shr eax, 8
mov edx, dword [edx*4 + 0x416634]
xor eax, edx
inc ecx
dec dword [ebp + 8]
jne 0x408ca8
xor esi, esi
add dword [0x4318ec], edi
push dword [0x4318ec]
mov dword [0x418b5c], eax
push dword [0x4318e4]
call fcn.0040d133
pop ecx
pop ecx
mov cl, 0x64
sub cl, al
mov eax, dword [0x4318ec]
cmp eax, dword [0x4318e4]
mov byte [0x4318fd], cl
jne 0x408d1e
push dword [0x429480]
inc dword [0x429488]
mov byte [0x4318fd], 0x64
push dword [0x429488]
call fcn.0040d102
pop ecx
mov byte [0x429490], al
pop ecx
push 0x4318e0
push 0x406
call fcn.0040b8c1
cmp byte [0x43164c], 0
pop ecx
pop ecx
jne 0x408d6f
push dword [0x429484]
add dword [0x42948c], edi
push dword [0x42948c]
call fcn.0040d102
push 0x429480
push 0x96
mov byte [0x429491], al
call fcn.0040b8c1
add esp, 0x10
cmp byte [0x43164c], 0
je 0x408d79
mov eax, 0xbe
jmp 0x408ea8
cmp dword [0x431604], esi
jne 0x408ea6
cmp edi, esi
je 0x408ea6
cmp dword [0x431674], esi
je 0x408d9d
push 0x32
pop eax
jmp 0x408ea8
mov eax, dword [0x416bc0]
test byte [eax + 0x28], 8
jne 0x408dbd
push edi
push ebx
push dword [0x4293b4]
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, edi
jmp 0x408e9d
cmp dword [ebp + 0x10], esi
je 0x408dd2
mov edx, dword [0x429380]
mov ecx, 0x1040
mov dword [ebp + 8], edx
jmp 0x408de1
mov eax, dword [0x429478]
mov ecx, 0x2000
mov dword [ebp + 8], eax
mov edx, eax
cmp dword [0x4316ac], esi
je 0x408df5
mov dword [0x417990], esi
mov dword [0x4316ac], esi
cmp byte [ebx], 0xa
mov esi, ebx
jne 0x408e08
cmp dword [0x417990], 0
je 0x408e08
lea esi, [ebx + 1]
and dword [0x417990], 0
add edi, ebx
cmp esi, edi
mov eax, edx
jae 0x408ea6
lea ecx, [ecx + edx - 2]
mov dword [ebp + 0xc], ecx
mov cl, byte [esi]
cmp cl, 0xd
jne 0x408e50
mov byte [eax], cl
inc eax
lea ecx, [edi - 1]
mov byte [eax], 0xa
inc eax
cmp esi, ecx
jne 0x408e43
mov dword [0x417990], 1
jmp 0x408e60
cmp byte [esi + 1], 0xa
lea ecx, [esi + 1]
jne 0x408e60
mov esi, ecx
jmp 0x408e60
cmp cl, 0xa
jne 0x408e5d
mov byte [eax], 0xd
inc eax
mov byte [eax], cl
jmp 0x408e5f
mov byte [eax], cl
inc eax
cmp eax, dword [ebp + 0xc]
jbe 0x408e80
mov ebx, eax
sub ebx, edx
push ebx
push edx
push dword [0x4293b4]
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, ebx
jne 0x408e9f
mov eax, dword [ebp + 8]
mov edx, eax
inc esi
cmp esi, edi
jb 0x408e22
cmp eax, edx
jbe 0x408ea6
mov esi, eax
sub esi, edx
push esi
push edx
push dword [0x4293b4]
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, esi
je 0x408ea6
call fcn.00408ead
jmp 0x408ea8
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40ad90
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x40adac
lea eax, [ebp - 0xc]
push eax
call fcn.0040ad4a
pop ecx
mov dword [ebp - 4], eax
push dword [0x4293b4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp dword [ebp + 8], edi
mov dword [0x431660], edi
je 0x40ae14
push ebx
push edi
push 0x80
push 3
push edi
push edi
mov ebx, 0x4294a0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x40ae00
cmp dword [ebp - 4], edi
je 0x40ae00
lea ecx, [ebp - 0xc]
push ecx
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp + 8]
call esi
mov eax, dword [0x416bc0]
mov eax, dword [eax + 0x24]
and eax, 0x7f
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop ebx
pop edi
pop esi
leave
ret
Function at 0x40b55a
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
and byte [ebp + 0xb], 0
add al, 0x40
mov byte [ebp + 9], 0x3a
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 0xa], 0x2f
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
dec eax
dec eax
neg eax
sbb eax, eax
inc eax
pop ebp
ret
Function at 0x40d02f
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [str.:]
push esi
push 0x11
mov dword [ebp - 4], eax
call fcn.0040d55c
mov esi, eax
mov eax, dword [ebp + 8]
pop ecx
and byte [esi], 0
cmp byte [eax + 1], 0x3a
jne 0x40d08b
mov al, byte [eax]
and byte [ebp - 1], 0
push edi
push 0x11
mov byte [ebp - 4], al
call fcn.0040d55c
pop ecx
mov edi, eax
push 0x10
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push dword [ebp + 0xc]
push 0x10
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push edi
call fcn.0040d5e8
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x40dba8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40dbc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040df75
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40dbeb
test byte [esp + 8], 2
je 0x40dbeb
call fcn.0040dfe8
mov dword [eax], 0xd
call fcn.0040dff1
mov dword [eax], 5
jmp 0x40dbc4
xor eax, eax
ret

Function at 0x411909
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4175b0
cmp edx, dword [eax]
je 0x41192b
add eax, 8
inc ecx
cmp eax, 0x417640
jl 0x41191c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4175b0]
jne 0x411a59
mov eax, dword [0x4187fc]
cmp eax, 1
je 0x411a33
test eax, eax
jne 0x41195c
cmp dword [0x417214], 1
je 0x411a33
cmp edx, 0xfc
je 0x411a59
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x411993
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040d320
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040d410
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4119d6
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040d410
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x416394
push edi
call fcn.0040d770
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040d320
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040d330
lea eax, [ebp - 0xa0]
push 0x4146a8
push eax
call fcn.0040d330
push dword [esi + 0x4175b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040d330
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00412c24
add esp, 0x2c
pop edi
jmp 0x411a59
lea eax, [ebp + 8]
lea esi, [esi + 0x4175b4]
push 0
push eax
push dword [esi]
call fcn.0040d410
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 0x41339e
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4133c9
test byte [esp + 8], 0x80
je 0x4133b8
and al, 0xfe
jmp 0x4133ba
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4133da
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040df75
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x401037
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path

Disassembly:
call 0x401037
push 0
call sub.kernel32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffbf4
push esi
push edi
push ebx
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x403030], eax
mov dword [ebp - 8], 0
push 0xa
push section..data
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
je 0x401089
mov dword [ebp - 4], eax
push dword [ebp - 4]
push 0
call sub.kernel32.dll_SizeofResource
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
je 0x401089
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4010c1
push 4
push 0x1000
push dword [ebp - 0xc]
push 0
call sub.kernel32.dll_VirtualAlloc
mov edi, eax
push dword [ebp - 0xc]
push dword [ebp - 8]
push edi
call sub.kernel32.dll_RtlMoveMemory
mov dword [ebp - 8], edi
push 0xdeadbeef
push dword [ebp - 0xc]
push dword [ebp - 8]
call section..text
cmp dword [ebp - 8], 0
je 0x4010fb
lea eax, [ebp - 0x40c]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
push str.dup2patcher.dll
lea eax, [ebp - 0x40c]
push eax
call sub.kernel32.dll_lstrcatA
push dword [ebp - 0xc]
push dword [ebp - 8]
lea eax, [ebp - 0x40c]
push eax
call fcn.00401184
lea eax, [ebp - 0x40c]
push eax
call sub.kernel32.dll_LoadLibraryA
or eax, eax
je 0x401130
mov ebx, eax
push str.load_patcher
push ebx
call sub.kernel32.dll_GetProcAddress
or eax, eax
je 0x40111e
call eax
push ebx
call sub.kernel32.dll_FreeLibrary
lea eax, [ebp - 0x40c]
push eax
call sub.kernel32.dll_DeleteFileA
pop ebx
pop edi
pop esi
leave
ret

Function at 0x401184
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x4011af
xor eax, eax
leave
ret 0xc
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push dword [ebp - 4]
call sub.kernel32.dll_FlushFileBuffers
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
leave
ret 0xc
Function at 0x41089f
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00410a4f
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x41099d
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x410940
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x410983
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x410957
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x410972
test al, 0x40
je 0x410969
mov ecx, dword [edi + 0x20]
jmp 0x410970
test al, 0x80
je 0x410983
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x410983
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x41090f
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x421b60
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48427b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004789e2
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x421be2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004762ea
mov eax, dword [eax]
push 0x4c51c0
push eax
call fcn.00469054
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00478c6d
test bl, bl
je 0x421be2
push 0x4c51c0
lea ecx, [esp + 0xc]
call fcn.00478ffd
push 0x4c8d34
lea ecx, [esp + 0xc]
call fcn.00478ffd
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x421c1e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00478c6d
jmp 0x421ce9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x421ca2
lea edx, [esp + 0x7c]
push 0x4c8d30
push edx
call fcn.00469054
add esp, 8
test eax, eax
je 0x421ca2
lea eax, [esp + 0x7c]
push 0x4c8d2c
push eax
call fcn.00469054
add esp, 8
test eax, eax
je 0x421ca2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x421c32
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00478c6d
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4224e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x422542
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc