joyce8/EMBER2024-capa huggingface dataset:
Function at 0x498280
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.00438100
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x49834b
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 0x49834b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4982fe
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x498309
or bh, 8
and edi, 0x8000000
je 0x498324
mov eax, dword [0x533ebc]
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 0x49834b
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 0x498720
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 0x49874b
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 0x49876f
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 0x49878a
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 0x499a50
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4f1386
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push ebp
push esi
mov esi, dword [esp + 0x240]
push edi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.004560b0
mov ebp, dword [esp + 0x248]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.004560b0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
test ecx, edx
je 0x499b89
mov edx, dword [0x519974]
mov cx, word [0x519978]
mov dword [esp + 0x18], edx
add word [esp + 0x18], ax
lea edx, [esp + 0x18]
mov word [esp + 0x1c], cx
push edx
lea ecx, [esp + 0x28]
mov word [esp + 0x22], bx
call fcn.0044fec0
mov eax, dword [esi + 4]
lea ecx, [esp + 0x24]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x244], ebx
call fcn.00456650
mov edx, dword [0x4fab44]
mov dword [esp + 0x14], edx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x2c]
push 0x104
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x248], 1
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
push edx
mov word [esp + 0x236], bx
call fcn.004508e0
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.00456650
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], bl
call fcn.00450660
lea ecx, [esp + 0x24]
mov dword [esp + 0x23c], 0xffffffff
call fcn.00450660
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
inc eax
shl edx, 1
cmp eax, 0x1a
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edx
jb 0x499aab
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret

Function at 0x49cef0
Capabilities:
Terminate thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
mov dword [esi], 0x4fc360
test eax, eax
je 0x49cf69
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 8]
mov dword [esp + 8], ecx
push eax
lea ecx, [esp + 0xc]
push 0
push ecx
push 2
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x49cf50
mov ecx, dword [esi + 8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push edx
call edi
mov eax, dword [esi + 0x14]
push eax
call edi
mov dword [esi + 0xc], 0
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x49cf80
push eax
call edi
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x10]
push ecx
call edi
mov edx, dword [esi + 0x14]
push edx
call edi
pop edi
pop esi
add esp, 8
ret
Function at 0x49cfa0
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x49d00a
push ebx
push edi
mov edi, dword [esi + 0x20]
mov ebx, 4
test edi, edi
je 0x49cfc6
call fcn.0047d0d0
test eax, eax
je 0x49cfc6
mov ebx, 0x10004
lea eax, [esi + 4]
push eax
push ebx
push esi
push 0x49d1c0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov dword [esi + 8], eax
test eax, eax
pop ebx
je 0x49d00a
mov ecx, dword [esi + 0x24]
mov dword [esi + 0xc], 1
test ecx, ecx
je 0x49cff9
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x49d030
Capabilities:
Terminate thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x49d044
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 8]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 8]
push 0
push ecx
push 2
mov dword [esp + 0x18], edx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x49d090
mov ecx, dword [esi + 8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push edx
call edi
mov eax, dword [esi + 0x14]
push eax
call edi
mov dword [esi + 0xc], 0
pop edi
mov eax, 1
pop esi
add esp, 8
ret
Function at 0x4a2a04
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x80
call fcn.00438100
push ebx
push ebp
push esi
mov esi, dword [esp + 0x9c]
xor eax, eax
push edi
test esi, esi
je 0x4a29cb
mov ebx, dword [esp + 0x94]
mov eax, 1
mov dword [ebx], esi
jmp 0x4a29dd
mov ebx, dword [esp + 0x94]
mov ecx, dword [ebx]
mov dword [esp + 0xa0], ecx
mov esi, ecx
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0x4a2b49
push esi
call fcn.004a6520
mov edi, eax
add esp, 4
cmp edi, 0x80
jle 0x4a2a13
push str.j____int_sizeof_ctx__key_
push 0x54
push str..cryptohmachmac.c
call fcn.004a3a40
add esp, 0xc
mov ebp, dword [esp + 0x9c]
cmp edi, ebp
jge 0x4a2a52
mov edx, dword [esp + 0xa4]
lea edi, [ebx + 4]
push edx
push esi
push edi
call fcn.004a1a20
mov eax, dword [esp + 0xa4]
push ebp
push eax
push edi
call fcn.004a1b90
lea esi, [ebx + 0x34]
lea ecx, [ebx + 0x38]
push esi
push ecx
push edi
call fcn.004a1c90
add esp, 0x24
jmp 0x4a2a91
test ebp, ebp
jl 0x4a2a5e
cmp ebp, 0x80
jle 0x4a2a72
push str.len_0__len__int_sizeof_ctx__key_
push 0x5e
push str..cryptohmachmac.c
call fcn.004a3a40
add esp, 0xc
mov esi, dword [esp + 0x98]
mov ecx, ebp
mov edx, ecx
lea edi, [ebx + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x34]
mov dword [esi], ebp
mov esi, dword [esi]
cmp esi, 0x80
je 0x4a2ab6
mov ecx, 0x80
xor eax, eax
sub ecx, esi
lea edi, [esi + ebx + 0x38]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov esi, dword [esp + 0xa0]
xor eax, eax
mov cl, byte [ebx + eax + 0x38]
xor cl, 0x36
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x4a2abf
mov ebp, dword [esp + 0xa4]
lea edi, [ebx + 0x14]
push ebp
push esi
push edi
call fcn.004a1a20
push esi
call fcn.004a6520
lea edx, [esp + 0x20]
push eax
push edx
push edi
call fcn.004a1b90
add esp, 0x1c
xor eax, eax
mov cl, byte [ebx + eax + 0x38]
xor cl, 0x5c
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x4a2afb
lea edi, [ebx + 0x24]
push ebp
push esi
push edi
call fcn.004a1a20
push esi
call fcn.004a6520
lea edx, [esp + 0x20]
push eax
push edx
push edi
call fcn.004a1b90
add esp, 0x1c
lea eax, [ebx + 0x14]
add ebx, 4
push eax
push ebx
call fcn.004a1d40
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
test eax, eax
je 0x4a2b2e
jmp 0x4a2abd
Function at 0x4a38c0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104
call fcn.00438100
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x4a3909
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4a3909
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
push 0x51eed0
call fcn.004cd2f0
add esp, 0xc
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push eax
lea ecx, [ebp - 0x104]
push 0xff
push ecx
call fcn.004cd2a0
add esp, 0x10
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4a3a1b
call dword [sym.imp.USER32.dll_GetDesktopWindow]
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov ebx, eax
test ebx, ebx
je 0x4a3a1b
lea edx, [ebp - 4]
push edx
push 0
push 0
push 2
push ebx
call dword [sym.imp.USER32.dll_GetUserObjectInformationW]
test eax, eax
jne 0x4a3a1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4a3a1b
mov eax, dword [ebp - 4]
cmp eax, 0x200
ja 0x4a3a1b
lea esi, [eax + 1]
and esi, 0xfffffffe
mov dword [ebp - 4], esi
lea eax, [esi + 2]
add eax, 3
and al, 0xfc
call fcn.00438100
lea eax, [ebp - 4]
mov edi, esp
push eax
push esi
push edi
push 2
push ebx
call dword [sym.imp.USER32.dll_GetUserObjectInformationW]
test eax, eax
je 0x4a3a1b
mov ecx, dword [ebp - 4]
push str.Service_0x
push edi
lea eax, [ecx + 1]
and al, 0xfe
mov dword [ebp - 4], eax
shr eax, 1
mov word [edi + eax*2], 0
call fcn.0043812f
add esp, 8
test eax, eax
je 0x4a3a1b
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push 0
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x104]
push 1
push esi
mov dword [ebp - 4], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10
lea ecx, [ebp - 0x104]
push str.OpenSSL:_FATAL
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d3dd6
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4d3e0e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004d77e3
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004d77ba
jmp 0x4d3e1a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4d5bdb
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 0x4d5c1d
call fcn.004e3391
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x4d5c1d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4d5c14
xor eax, eax
jmp 0x4d5c25
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004d5c2b
pop edi
pop esi
pop ebx
ret 4
Function at 0x4013b0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47839b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
mov dword [ebp - 0x94], ecx
push 0x44
push 0
lea eax, [ebp - 0x6c]
push eax
call fcn.0044ffa0
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x24]
push ecx
call fcn.0044ffa0
add esp, 0xc
mov dword [ebp - 0x6c], 0x44
mov ecx, dword [ebp + 8]
call fcn.004018c0
add eax, 1
push eax
call fcn.00469548
add esp, 4
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp + 8]
call fcn.004018a0
push eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.00450510
add esp, 8
mov edx, dword [ebp - 0x94]
lea ecx, [ebp - 0x8c]
call fcn.00401660
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 4], 0
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0x9c]
call fcn.004018a0
push eax
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x94]
call fcn.004018a0
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
setne dl
mov byte [ebp - 0xd], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call fcn.004017d0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
push ecx
call fcn.0046954d
add esp, 4
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call fcn.004018a0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
pop ebp
ret
Function at 0x4066e0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x4b0b90]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x128], ecx
lea ecx, [ebp - 0x10]
call fcn.00403830
push 0x2001f
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x128]
mov edx, dword [ecx]
push edx
lea ecx, [ebp - 0x10]
call fcn.00406690
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x406740
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x11c], eax
lea ecx, [ebp - 0x10]
call fcn.00406520
mov eax, dword [ebp - 0x11c]
jmp 0x4067d1
mov dword [ebp - 4], 0x100
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x118]
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4067a6
lea edx, [ebp - 0x118]
push edx
lea ecx, [ebp - 0x10]
call fcn.004066e0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40679d
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x120], eax
lea ecx, [ebp - 0x10]
call fcn.00406520
mov eax, dword [ebp - 0x120]
jmp 0x4067d1
mov dword [ebp - 4], 0x100
jmp 0x406747
lea ecx, [ebp - 0x10]
call fcn.004065e0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x128]
call fcn.004065a0
mov dword [ebp - 0x124], eax
lea ecx, [ebp - 0x10]
call fcn.00406520
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0045040c
mov esp, ebp
pop ebp
ret 4
Function at 0x406e80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x406ec0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 0xc], 1
jne 0x406ed6
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 7
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esp, ebp
pop ebp
ret 8
Function at 0x40b210
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478d00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x274
mov eax, dword [0x4b0b90]
xor eax, ebp
mov dword [ebp - 0x14], eax
push edi
mov dword [ebp - 0x264], 0
mov ecx, 0x93
xor eax, eax
lea edi, [ebp - 0x260]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0xffffffff
mov ecx, dword [ebp + 8]
call fcn.004018c0
sub eax, 1
push eax
mov ecx, dword [ebp + 8]
call fcn.0040b7b0
movzx eax, word [eax]
cmp eax, 0x5c
je 0x40b27f
push 0x5c
mov ecx, dword [ebp + 8]
call fcn.0040b730
push 0x490468
mov ecx, dword [ebp + 8]
call fcn.00409640
lea ecx, [ebp - 0x264]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00408f00
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x40b3b7
mov edx, dword [ebp - 0x264]
and edx, 0x10
je 0x40b38d
push 0x490470
lea eax, [ebp - 0x238]
push eax
call fcn.00451bfe
add esp, 8
test eax, eax
je 0x40b38d
push 0x490474
lea ecx, [ebp - 0x238]
push ecx
call fcn.00451bfe
add esp, 8
test eax, eax
je 0x40b38d
push str.common
lea edx, [ebp - 0x238]
push edx
call fcn.00451bfe
add esp, 8
test eax, eax
je 0x40b38d
lea eax, [ebp - 0x238]
push eax
call fcn.00451637
add esp, 4
push eax
lea ecx, [ebp - 0x238]
push ecx
call dword [sym.imp.USER32.dll_CharLowerBuffW]
lea edx, [ebp - 0x238]
push edx
call fcn.00451637
add esp, 4
cmp eax, 2
je 0x40b353
lea eax, [ebp - 0x238]
push eax
call fcn.00451637
add esp, 4
cmp eax, 5
jne 0x40b38d
lea ecx, [ebp - 0x238]
push ecx
lea ecx, [ebp - 0x280]
call fcn.0040ca50
mov dword [ebp - 4], 0
lea edx, [ebp - 0x280]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.0040b850
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x280]
call fcn.00408ee0
lea eax, [ebp - 0x264]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40b2af
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, dword [ebp + 0xc]
call fcn.0040f800
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045040c
mov esp, ebp
pop ebp
ret
Function at 0x412270
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4791d4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov eax, dword [0x4b0b90]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x34]
call fcn.00401760
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
call fcn.004018a0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x412395
lea ecx, [ebp - 0x48]
call fcn.004149e0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00414a20
lea ecx, [ebp - 0x48]
call fcn.004159f0
push eax
lea ecx, [ebp - 0x48]
call fcn.00414a50
push eax
push 0
mov ecx, dword [ebp + 8]
call fcn.004018a0
push eax
call sub.VERSION.dll_GetFileVersionInfoA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x412389
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x50]
push eax
push 0x4905c0
lea ecx, [ebp - 0x48]
call fcn.004159f0
push eax
call sub.VERSION.dll_VerQueryValueW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x412389
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x5c], ecx
cmp dword [ebp - 0x58], 0x10005
jb 0x41237c
ja 0x412373
cmp dword [ebp - 0x5c], 0x32
jb 0x41237c
mov dword [ebp - 0x68], 1
jmp 0x412383
mov dword [ebp - 0x68], 0
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x14], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00414a00
xor eax, eax
cmp dword [ebp - 0x14], 0
setne al
mov byte [ebp - 0x5d], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004017d0
mov al, byte [ebp - 0x5d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0045040c
mov esp, ebp
pop ebp
ret 4