joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dc10
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x23c
mov eax, dword [0x41b0a4]
push ebx
push esi
push edi
xor eax, ebp
mov dword [esp + 0x244], eax
xor eax, eax
mov byte [esp + 0x38], 0
mov ecx, 0x41
lea edi, [esp + 0x39]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
xor esi, esi
push 0x2001f
push esi
push str.SOFTWAREApple_Computer__Inc.QuickTimeInstalled_File_Types_
push 0x80000002
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
call fcn.0040e1e0
add esp, 0x14
test eax, eax
jne 0x40dddc
mov edx, dword [esp + 0x14]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x38]
push ecx
push esi
push esi
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x40ddd1
mov ebx, dword [esp + 0x1c]
dec ebx
cmp ebx, esi
mov dword [esp + 0x18], ebx
jl 0x40ddd1
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, 4
lea esp, [esp]
mov ecx, dword [esp + 0x14]
push 0x105
lea eax, [esp + 0x3c]
push eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x40ddc6
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 0x2001f
push eax
lea eax, [esp + 0x44]
push eax
push ecx
call fcn.0040e1e0
add esp, 0x14
test eax, eax
jne 0x40ddc6
xor edx, edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
lea ecx, [esp + 0x28]
push ecx
push edx
push edx
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x20]
push str.componentType
push edx
mov dword [esp + 0x24], edi
call esi
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push str.componentSubType
push edx
mov dword [esp + 0x24], edi
call esi
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x30]
push ecx
push 0
push 0
push str.componentManufacturer
push edx
mov dword [esp + 0x24], edi
call esi
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push str.doNotOverrideExistingApp
push edx
mov dword [esp + 0x24], edi
call esi
mov bl, byte [esp + 0x20]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x144]
push ecx
call fcn.00408060
xor edx, edx
test bl, bl
setne dl
push 0
lea eax, [esp + 0x14c]
lea ecx, [esp + 0x30]
or edx, 0x10
push edx
push eax
push ecx
call fcn.0040db50
mov edx, dword [esp + 0x28]
add esp, 0x18
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x18]
dec ebx
mov dword [esp + 0x18], ebx
jns 0x40dcb0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push 0
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov ecx, dword [esp + 0x244]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e6ab
mov esp, ebp
pop ebp
ret
Function at 0x40e440
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
mov eax, edx
push esi
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e450
sub eax, esi
inc eax
push eax
mov eax, dword [esp + 0xc]
push edx
push 1
push 0
push 0x41830c
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret

Function at 0x40e520
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 0xc]
mov eax, edx
push esi
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e530
mov ecx, dword [esp + 8]
sub eax, esi
inc eax
push eax
mov eax, dword [esp + 0x10]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret

Function at 0x40f0bd
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0x4189c0
call fcn.0040f6e8
mov edi, 0x94
mov eax, edi
call fcn.0040f3d0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x41c4cc], ecx
mov eax, dword [esi + 4]
mov dword [0x41c4d8], eax
mov edx, dword [esi + 8]
mov dword [0x41c4dc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x41c4d0], esi
cmp ecx, 2
je 0x40f11d
or esi, 0x8000
mov dword [0x41c4d0], esi
shl eax, 8
add eax, edx
mov dword [0x41c4d4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40f158
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40f158
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40f170
cmp eax, 0x20b
je 0x40f15d
mov dword [ebp - 0x1c], esi
jmp 0x40f184
cmp dword [ecx + 0x84], 0xe
jbe 0x40f158
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40f17e
cmp dword [ecx + 0x74], 0xe
jbe 0x40f158
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00411275
pop ecx
test eax, eax
jne 0x40f198
push 0x1c
call fcn.0040f099
pop ecx
call fcn.004109d6
test eax, eax
jne 0x40f1a9
push 0x10
call fcn.0040f099
pop ecx
call fcn.00412917
mov dword [ebp - 4], esi
call fcn.00412719
test eax, eax
jge 0x40f1c2
push 0x1b
call fcn.0040f074
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x41df40], eax
call fcn.004125f7
mov dword [0x41c34c], eax
call fcn.00412555
test eax, eax
jge 0x40f1e8
push 8
call fcn.0040f074
pop ecx
call fcn.00412322
test eax, eax
jge 0x40f1f9
push 9
call fcn.0040f074
pop ecx
push 1
call fcn.00411e43
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40f20f
push eax
call fcn.0040f074
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004122c5
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40f230
movzx eax, word [ebp - 0x40]
jmp 0x40f233
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00407000
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40f251
push edi
call fcn.00411f70
call fcn.00411f92
jmp 0x40f283
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040f723
ret
Function at 0x40f34b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40f36b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004129cc
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40f38e
test byte [esp + 8], 2
je 0x40f38e
call fcn.004129ba
mov dword [eax], 0xd
call fcn.004129c3
mov dword [eax], 5
jmp 0x40f367
xor eax, eax
ret

Function at 0x411ead
Capabilities:
Terminate process

Disassembly:
push 8
push 0x418d38
call fcn.0040f6e8
push 8
call fcn.0040f990
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x41c50c], esi
jne 0x411ee1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x41c508], esi
mov al, byte [ebp + 0x10]
mov byte [0x41c504], al
cmp dword [ebp + 0xc], edi
jne 0x411f2b
cmp dword [0x41dce8], edi
je 0x411f1b
mov eax, dword [0x41dce4]
sub eax, 4
mov dword [0x41dce4], eax
cmp eax, dword [0x41dce8]
jb 0x411f1b
mov eax, dword [eax]
cmp eax, edi
je 0x411efc
call eax
jmp 0x411efc
push 0x41b02c
mov eax, 0x41b024
call fcn.00411e2b
pop ecx
push 0x41b038
mov eax, 0x41b030
call fcn.00411e2b
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x411f5c
cmp dword [ebp + 0x10], edi
jne 0x411f6a
mov dword [0x41c50c], esi
push dword [ebp + 8]
call fcn.00411de9
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x411f69
push 8
call fcn.0040f8db
pop ecx
ret
call fcn.0040f723
ret
Function at 0x411fb0
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x41b0a4]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x41b358]
je 0x411fe7
inc eax
cmp eax, 0x13
jb 0x411fd8
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x41b358]
jne 0x41210a
mov eax, dword [0x41c354]
cmp eax, 1
je 0x4120e5
cmp eax, edx
jne 0x412017
cmp dword [0x41b0f4], 1
je 0x4120e5
cmp ecx, 0xfc
je 0x41210a
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41204d
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00413580
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.004111d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x412081
mov eax, edi
push eax
call fcn.004111d0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x418a14
push edi
call fcn.0040ef50
add esp, 0x10
push edi
call fcn.004111d0
push dword [esi + 0x41b35c]
mov ebx, eax
call fcn.004111d0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040f3d0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00413580
push edi
push ebx
call fcn.00413590
push 0x418a10
push ebx
call fcn.00413590
push dword [esi + 0x41b35c]
push ebx
call fcn.00413590
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041347e
add esp, 0x2c
jmp 0x41210a
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x41b35c]
push dword [esi]
call fcn.004111d0
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]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.0040e6ab
add ebp, 0x90
leave
ret
Function at 0x41347e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x41c62c], ebx
push esi
push edi
jne 0x4134fe
push 0x419200
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x413539
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4191f4
push edi
call esi
test eax, eax
mov dword [0x41c62c], eax
je 0x413539
push 0x4191e4
push edi
call esi
push 0x4191d0
push edi
mov dword [0x41c630], eax
call esi
cmp dword [0x41c4cc], 2
mov dword [0x41c634], eax
jne 0x4134fe
push str.GetUserObjectInformO
push edi
call esi
test eax, eax
mov dword [0x41c63c], eax
je 0x4134fe
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x41c638], eax
mov eax, dword [0x41c638]
test eax, eax
je 0x413543
call eax
test eax, eax
je 0x41352a
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x41c63c]
test eax, eax
je 0x41352a
test byte [ebp - 8], 1
jne 0x413543
cmp dword [0x41c4d8], 4
jb 0x41353d
or byte [ebp + 0x12], 0x20
jmp 0x413562
xor eax, eax
jmp 0x413572
or byte [ebp + 0x12], 4
jmp 0x413562
mov eax, dword [0x41c630]
test eax, eax
je 0x413562
call eax
mov ebx, eax
test ebx, ebx
je 0x413562
mov eax, dword [0x41c634]
test eax, eax
je 0x413562
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x41c62c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413678
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4136a6
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4136ad
cmp ebx, dword [eax + 4]
jae 0x4136ad
xor eax, eax
jmp 0x41389d
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4136be
xor eax, eax
inc eax
jmp 0x41389c
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4136d4
cmp ecx, edx
jae 0x413819
cmp dword [eax + 4], 0
je 0x4136dd
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4136c5
cmp dword [ebp + 8], 0
je 0x4136ff
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x413819
cmp eax, esi
jae 0x413819
mov eax, dword [0x41c640]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x413724
cmp dword [esi*4 + 0x41c648], edi
je 0x41381d
inc esi
cmp esi, eax
jl 0x413712
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x413899
cmp dword [ebp - 8], 0x1000000
jne 0x413899
test byte [ebp - 0xc], 0xcc
je 0x4137a2
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x413899
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x413899
cmp word [eax + 0x18], 0x10b
jne 0x413899
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x413899
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4137a2
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4137a2
test byte [ecx + 0x27], 0x80
jne 0x413819
push 1
push 0x41c688
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4136b6
mov ecx, dword [0x41c640]
test ecx, ecx
mov edx, ecx
jle 0x4137d6
lea eax, [ecx*4 + 0x41c644]
cmp dword [eax], edi
je 0x4137d6
dec edx
sub eax, 4
test edx, edx
jg 0x4137ca
test edx, edx
jne 0x413807
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4137e3
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4137fb
lea eax, [edx*4 + 0x41c648]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4137e9
cmp ecx, 0x10
jge 0x413807
inc ecx
mov dword [0x41c640], ecx
push 0
push 0x41c688
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4136b6
xor eax, eax
jmp 0x41389c
test esi, esi
jle 0x4136b6
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x41c688
call ebx
test eax, eax
jne 0x4136b6
cmp dword [esi*4 + 0x41c648], edi
je 0x413873
mov eax, dword [0x41c640]
lea esi, [eax - 1]
test esi, esi
jl 0x413861
cmp dword [esi*4 + 0x41c648], edi
je 0x41385d
dec esi
jns 0x413851
test esi, esi
jge 0x413871
cmp eax, 0x10
jge 0x41386c
inc eax
mov dword [0x41c640], eax
lea esi, [eax - 1]
jmp 0x413873
je 0x41388b
xor ecx, ecx
test esi, esi
jl 0x41388b
lea eax, [ecx*4 + 0x41c648]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x413879
push 0
push 0x41c688
call ebx
jmp 0x4136b6
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41530c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x41b0a4]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x415348
xor eax, eax
jmp 0x4154b2
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x41dbe0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x415386
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.00416dee
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x415420
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x415483
jmp 0x4153aa
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x4153e5
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4153d6
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x4153b6
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x415444
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x41544d
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x4153a8
jmp 0x41544d
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x415444
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x41544d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x4154ad
cmp dword [ebp - 0x68], eax
je 0x415480
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x415475
call fcn.004129ba
mov dword [eax], 9
call fcn.004129c3
mov dword [eax], esi
jmp 0x4154a8
push dword [ebp - 0x68]
call fcn.004129cc
pop ecx
jmp 0x4154a8
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x415495
cmp byte [edi], 0x1a
jne 0x415495
xor eax, eax
jmp 0x4154b0
call fcn.004129ba
mov dword [eax], 0x1c
call fcn.004129c3
and dword [eax], 0
or eax, 0xffffffff
jmp 0x4154b0
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.0040e6ab
add ebp, 0x3a4
leave
ret
Function at 0x416961
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040f3d0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4169fc
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x41c4cc]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4169fc
cmp eax, 1
je 0x416a1d
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4169fc
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4169c9
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4169f8
xor eax, eax
inc eax
jmp 0x416a3c
cmp edi, eax
jae 0x416a00
xor eax, eax
jmp 0x416a3c
cmp eax, esi
jae 0x416a07
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x41c4cc]
jmp 0x416a20
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002861
Capabilities:
Get common file path
Query or enumerate registry key
Query or enumerate registry value
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x32c
mov eax, dword [0x100d0ac]
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x214]
xor ebx, ebx
push eax
mov dword [ebp - 0x324], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10029ff
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x10c]
push 0x1001310
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
call fcn.0100a023
test eax, eax
je 0x10028dc
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
jmp 0x10029fe
call fcn.01009f21
test eax, eax
jne 0x10029f8
cmp dword [ebp + 8], ebx
jne 0x10029e1
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x10c]
push 0x1001300
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
call fcn.0100a023
test eax, eax
jne 0x10029f8
lea eax, [ebp - 0x320]
push eax
push 0x20019
push ebx
push 0x1001278
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10029f8
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x32c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x320]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x10029d3
cmp dword [ebp - 0x32c], 1
jne 0x10029d3
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x31c]
push eax
push 0x10012fc
push 0x10012f0
push 0x10012e8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x10029d3
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x10c]
push eax
push ebx
push ebx
lea eax, [ebp - 0x31c]
push eax
push dword [ebp - 0x320]
mov dword [ebp - 0x328], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10029d3
cmp byte [ebp - 0x10c], bl
je 0x10029d3
mov dword [ebp - 0x324], 1
push dword [ebp - 0x320]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10029f8
xor esi, esi
inc esi
cmp dword [ebp + 8], esi
jne 0x10029f8
call fcn.01003f18
test eax, eax
jne 0x10029f8
mov dword [ebp - 0x324], esi
mov eax, dword [ebp - 0x324]
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.01009b9d
leave
ret 8
Function at 0x1002a12
Capabilities:
Create process on windows
Extract resource via kernel32 functions
Get common file path
Write and execute a file
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x570
mov eax, dword [0x100d0ac]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push edi
mov dword [ebp - 0x530], eax
je 0x1002c55
cmp eax, ebx
je 0x1002c55
cmp byte [eax], bl
je 0x1002c55
push 0x105
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1002c55
push 0x1001398
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x1002c55
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x1002c55
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [ebp - 0x52c], eax
je 0x1002c55
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x528]
push 0x1001310
push eax
call esi
add esp, 0xc
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
lea eax, [ebp - 0x528]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x1002c55
push ebx
lea eax, [ebp - 0x534]
push eax
push dword [ebp - 0x52c]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp - 0x52c]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push edi
je 0x1002c4f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test byte [ebp + 0xc], 4
je 0x1002b30
mov dword [ebp - 0x52c], 0x100d020
jmp 0x1002b44
test byte [ebp + 0xc], 1
je 0x1002c55
mov dword [ebp - 0x52c], 0x100d018
push 0x41
pop ecx
xor eax, eax
mov byte [ebp - 0x214], bl
lea edi, [ebp - 0x213]
rep stosd dword es:[edi], eax
mov byte [ebp - 0x420], bl
mov ecx, 0x82
lea edi, [ebp - 0x41f]
rep stosd dword es:[edi], eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x530]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
cmp eax, ebx
je 0x1002c55
cmp eax, edi
ja 0x1002c55
lea eax, [ebp - 0x214]
push eax
push 0x100d038
push dword [ebp - 0x52c]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x420]
push 0x1001380
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0x528]
push eax
lea eax, [ebp - 0x420]
push eax
push 0x1001368
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x420]
push 0x1001330
push eax
call esi
add esp, 0xc
push 0xe
xor eax, eax
pop ecx
lea edi, [ebp - 0x56c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x55c], eax
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x558], eax
xor esi, esi
lea eax, [ebp - 0x570]
inc esi
push eax
mov dword [ebp - 0x570], 0x3c
mov dword [ebp - 0x56c], 0x400
mov dword [ebp - 0x554], esi
mov dword [ebp - 0x560], 0x1001320
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x1002c55
mov eax, esi
jmp 0x1002c57
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01009b9d
leave
ret 0xc