joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a880
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x44e6b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebx, ecx
push esi
push edi
push 0
mov esi, dword [ebx + 0x40]
mov edi, dword [ebx + 0x34]
mov eax, edi
mov ebp, esi
and eax, 0xffff
and ebp, 0xffff
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x1c]
lea eax, [eax + ebp + 0x1e]
push eax
mov dword [esp + 0x1c], eax
call fcn.004189c0
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x464f20]
push 1
mov dword [esp + 0x30], 0
mov dword [eax], ecx
mov eax, dword [esp + 0x20]
mov dx, word [ebx + 0xa]
mov word [eax + 4], dx
mov edx, dword [esp + 0x20]
mov cx, word [ebx + 0xc]
mov word [edx + 6], cx
mov ecx, dword [esp + 0x20]
mov ax, word [ebx + 0xe]
mov word [ecx + 8], ax
mov eax, dword [esp + 0x20]
mov dx, word [ebx + 0x10]
mov word [eax + 0xa], dx
mov edx, dword [esp + 0x20]
mov cx, word [ebx + 0x12]
mov word [edx + 0xc], cx
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx + 0x14]
mov dword [ecx + 0xe], eax
mov eax, dword [esp + 0x20]
mov edx, dword [ebx + 0x18]
mov dword [eax + 0x12], edx
mov edx, dword [esp + 0x20]
mov ecx, dword [ebx + 0x1c]
mov dword [edx + 0x16], ecx
mov eax, dword [esp + 0x20]
mov word [eax + 0x1a], si
mov ecx, dword [esp + 0x20]
mov word [ecx + 0x1c], di
mov edx, dword [esp + 0x20]
mov esi, dword [ebx + 0x3c]
mov ecx, ebp
mov eax, ecx
lea edi, [edx + 0x1e]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov esi, dword [ebx + 0x30]
mov eax, ecx
lea edi, [edx + ebp + 0x1e]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x38]
push edi
push ecx
mov ecx, esi
call fcn.00418750
lea ecx, [ebx + 0x2c]
call fcn.00418a00
mov ecx, esi
call fcn.00417f50
mov ecx, esi
mov word [ebx + 0x20], ax
call fcn.004188f0
sub eax, edi
lea ecx, [esp + 0x18]
mov dword [ebx + 0x28], eax
mov dword [esp + 0x2c], 0xffffffff
call fcn.004189f0
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x42f6f0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x42f6ff
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x468fcc]
test eax, eax
je 0x42f70d
call fcn.0042f690
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
cmp edx, 8
push ebx
not eax
jb 0x42f80f
push edi
mov edi, edx
shr edi, 3
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [ecx*4 + 0x46d920]
sub edx, 8
xor eax, ebx
inc esi
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x46d920]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x46d920]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x46d920]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x46d920]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x46d920]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x46d920]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x46d920]
xor eax, ecx
inc esi
dec edi
jne 0x42f727
pop edi
test edx, edx
je 0x42f831
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x46d920]
xor eax, ecx
inc esi
dec edx
jne 0x42f813
pop ebx
pop esi
not eax
ret 0xc
Function at 0x435480
Capabilities:
Copy file
Create service
Get common file path
Set file attributes
Start service

Disassembly:
sub esp, 0x108
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
push edi
mov edi, dword [esp + 0x120]
push edi
mov dword [esp + 0x14], 0
call ebx
mov esi, eax
test esi, esi
je 0x4354bc
mov al, byte [esi + edi - 1]
dec esi
cmp al, 0x5c
je 0x4354b7
test esi, esi
jne 0x4354a8
jmp 0x4354bc
test esi, esi
jbe 0x4354bc
inc esi
lea eax, [esp + 0x14]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
add esi, edi
push esi
call ebx
lea ecx, [esp + 0x14]
mov ebp, eax
push ecx
call ebx
lea edx, [eax + ebp + 0xa]
cmp edx, 0x104
jl 0x4354fb
push 3
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str.Drivers_
push eax
call ebx
lea ecx, [esp + 0x14]
push esi
push ecx
call ebx
lea edx, [esp + 0x14]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x14]
push edi
push eax
call fcn.00435880
add esp, 8
test eax, eax
je 0x435551
lea ecx, [esp + 0x14]
push 0
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x435551
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
jne 0x435571
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
lea edx, [esp + 0x14]
push str.System32Drivers_
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x14]
push esi
push eax
call ebx
push 0
mov edi, dword [esp + 0x120]
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push 0
push ecx
push 1
push 1
push 1
push 0xf01ff
push edi
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
jne 0x4355e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x431
jne 0x435634
mov eax, dword [esp + 0x124]
test eax, eax
je 0x435622
push 0xf003f
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x43562c
mov eax, dword [esp + 0x124]
xor ebx, ebx
test eax, eax
je 0x435611
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x435611
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x420
jne 0x435619
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x435634
mov dword [esp + 0x10], 1
jmp 0x435634
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x435660
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x48]
test edi, edi
je 0x435675
mov dword [edi], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
jne 0x435696
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov eax, dword [esp + 0x40]
push 0xf003f
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
jne 0x43570f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp ebp, 0x424
je 0x4356d5
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret
lea ecx, [esp + 0x48]
push ecx
call fcn.00434cc0
add esp, 4
test eax, eax
je 0x43570f
test edi, edi
je 0x4356f0
mov dword [edi], 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x424
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4357a9
lea edx, [esp + 0x48]
push edx
call fcn.00434cc0
add esp, 4
test eax, eax
je 0x4357a9
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x435797
lea eax, [esp + 0x18]
mov esi, 1
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x435757
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
jne 0x4357a3
cmp dword [esp + 0x1c], esi
je 0x4357a9
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 0x24
push edx
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x43578b
mov dword [esp + 0x1c], 4
jmp 0x435791
cmp dword [esp + 0x1c], esi
je 0x4357a9
test edi, edi
je 0x4357a9
jmp 0x4357a7
test edi, edi
je 0x4357a9
mov dword [edi], 1
jmp 0x4357a9
test edi, edi
je 0x4357a9
mov dword [edi], esi
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
mov ebp, eax
jne 0x4357d5
cmp ebp, 0x430
jne 0x4357d5
test edi, edi
je 0x4357d0
mov dword [edi], 1
mov esi, 1
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call edi
mov eax, dword [esp + 0x10]
push eax
call edi
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x435880
Capabilities:
Get file version info
Set file attributes

Disassembly:
sub esp, 0x220
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x234]
xor ebx, ebx
push ebx
push edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebp, dword [esp + 0x238]
push ebx
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
push ebx
push edi
mov esi, eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp esi, ebx
mov edi, eax
je 0x435a72
cmp edi, ebx
je 0x435a2b
push edi
call fcn.0043b7dd
mov ebx, eax
push esi
mov dword [esp + 0x1c], ebx
call fcn.0043b7dd
add esp, 8
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x435a2b
test eax, eax
je 0x435a2b
push eax
push esi
push 0
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x435a5b
mov ecx, ebx
push ecx
push edi
mov edi, dword [esp + 0x23c]
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x435a2b
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x24]
lea eax, [esp + 0x1c]
push edx
push eax
push str.NC.
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x435a5b
lea edx, [esp + 0x20]
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, ebx
push str.NC.
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x435a2b
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov eax, dword [edx + 8]
mov ecx, dword [esi + 8]
cmp eax, ecx
ja 0x435a2b
jb 0x435a5b
mov eax, dword [edx + 0xc]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
ja 0x435a2b
jb 0x435a5b
mov edx, ebp
lea ecx, [esp + 0x28]
mov esi, 0x104
lea eax, [esp + 0x28]
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x4359b2
mov byte [eax], cl
inc eax
dec esi
jne 0x4359a3
jmp 0x4359b6
test esi, esi
jne 0x4359b7
dec eax
mov edx, edi
lea ecx, [esp + 0x12c]
mov byte [eax], 0
mov esi, 0x104
lea eax, [esp + 0x12c]
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x4359e0
mov byte [eax], cl
inc eax
dec esi
jne 0x4359d1
jmp 0x4359e4
test esi, esi
jne 0x4359e5
dec eax
mov edi, dword [sym.imp.IMAGEHLP.dll_ImageLoad]
lea edx, [esp + 0x28]
push 0
push edx
mov byte [eax], 0
call edi
mov esi, eax
test esi, esi
je 0x435a5b
lea eax, [esp + 0x12c]
push 0
push eax
call edi
mov edi, eax
test edi, edi
je 0x435a52
mov ecx, dword [esi + 0xc]
mov edx, dword [edi + 0xc]
push esi
mov esi, dword [sym.imp.IMAGEHLP.dll_ImageUnload]
mov ebx, dword [ecx + 8]
mov ebp, dword [edx + 8]
call esi
push edi
call esi
cmp ebx, ebp
jbe 0x435a5b
mov edx, dword [esp + 0x14]
push edx
call fcn.0043b806
mov eax, dword [esp + 0x14]
push eax
call fcn.0043b806
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x220
ret
push esi
call dword [sym.imp.IMAGEHLP.dll_ImageUnload]
jmp 0x435a2b
mov eax, dword [esp + 0x14]
push eax
call fcn.0043b806
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0043b806
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x220
ret
Function at 0x438ba0
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.004239e0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x438c6b
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 0x438c6b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x438c1e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x438c29
or bh, 8
and edi, 0x8000000
je 0x438c44
mov eax, dword [0x46f13c]
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 0x438c6b
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 0x439040
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 0x43906b
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 0x43908f
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 0x4390aa
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 0x43c28d
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x43c2bd
push edi
call ebx
push eax
call fcn.004419a8
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
je 0x43c2e7
test byte [ebp - 4], 1
je 0x43c2e7
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x43c2e7
push edi
call ebx
push eax
call fcn.004419a8
cmp dword [esi + 4], edi
lea eax, [esi + 4]
je 0x43c38d
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.0043c1da
cmp dword [esi + 8], edi
lea eax, [esi + 8]
pop ecx
pop ecx
je 0x43c319
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.0043c1da
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
cmp dword [esi], edi
je 0x43c32f
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.0043c1da
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x43c359
push 0
call ebx
push eax
call fcn.004419a8
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x43c377
push eax
call ebx
push eax
call fcn.004419a8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x43c38b
push eax
call ebx
push eax
call fcn.004419a8
xor edi, edi
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
pop esi
je 0x43c3b4
test byte [ebp - 4], 1
jne 0x43c3b4
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x43c3b4
push edi
call ebx
push eax
call fcn.004419a8
pop edi
pop ebx
leave
ret 8

Function at 0x43ea84
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 0x43eac6
call fcn.0044968d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x43eac6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x43eabd
xor eax, eax
jmp 0x43eace
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0043ead4
pop edi
pop esi
pop ebx
ret 4
Function at 0x4639cc
Capabilities:
Encrypt data using aes

Disassembly:
xchg di, bx
mov bl, bh
jmp 0x4639d7
xor edx, esi
sub esp, 0xe
sub esp, 0x18
mov edi, 0x982300b2
bt esi, ebx
jmp 0x463a15
lea esp, [esp + 2]
jmp 0x4639fe

Function at 0x464430
Capabilities:
Encrypt data using aes

Disassembly:
push dword [esp]
mov dword [esp + 3], esi
jmp 0x464470
lea esp, [esp + 8]
jle 0x436940
lea edi, [esp + eax]
lea ecx, [eax - 1]
jmp 0x4644cb
mov ecx, 0xff
jmp 0x436927
mov bx, word [esp]
mov dword [ebp - 4], ecx
mov cl, ch
mov di, 0x9f19
jmp 0x464482

Function at 0x4646d3
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
iretd
mov edi, dword [edi*4 + reloc.USER32.dll_MessageBoxA]
clc
call fcn.00464759
cmp byte [edx + edx*2 + 0xe7ac435], bh
mov dword [ecx], ebx
js 0x464655
dec eax
mov al, byte [0x2adfb82a]
jmp 0xc4c9a9a0
invalid
invalid
add esp, 1
push word [esp + 1]
mov dword [esp], ecx
lea esp, [esp + 1]
jmp 0x4646b2

Function at 0x464759
Capabilities:
Encrypt data using aes

Disassembly:
movzx ebx, byte [esi + 6]
pushal
add esp, 0x1f
lea esp, [esp + 1]
jmp 0x4646fc
push word [esp + 9]
push dword [esp + 4]
lea esp, [esp + 0x28]
xor edi, dword [ebx*4 + reloc.USER32.dll_MessageBoxA]
bswap ebx
jmp 0x464714
and ebx, ecx
sub esp, 0xe
jmp 0x46472d

Function at 0x4649bc
Capabilities:
Encrypt data using aes

Disassembly:
xor edi, dword [edx*4 + reloc.USER32.dll_MessageBoxA]
mov edx, dword [esi + 0xc]
sub esp, 0x1e
pushal
call fcn.00464a29
inc edx
into
pop esp
cmp edx, esi
adc bl, bh
push ecx
shl byte [ecx], 1
and edx, ecx
invalid
invalid
and edx, ecx
lea esp, [esp + 0x40]
jmp 0x46499f

Function at 0x464ab7
Capabilities:
Encrypt data using aes

Disassembly:
call fcn.00464b11
dec dword [ebp - 4]
push edx
push ebx
pushal
jmp 0x464aee

Function at 0x464b11
Capabilities:
Encrypt data using aes

Disassembly:
lea esp, [esp + 3]
lea esp, [esp + 1]
lea esp, [esp + 4]
jmp 0x464abc

Function at 0x50d5c1
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0x50d541
mov dword [esp + 0xa8], edi
lea esp, [esp + 0xa8]
jmp 0x50d55c
Function at 0x41a850
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x481cdb
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.00476060
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x41a8d2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004736dd
mov eax, dword [eax]
push 0x49f1f4
push eax
call fcn.00465b94
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004762eb
test bl, bl
je 0x41a8d2
push 0x49f1f4
lea ecx, [esp + 0xc]
call fcn.0047667b
push 0x4a2d6c
lea ecx, [esp + 0xc]
call fcn.0047667b
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 0x41a90e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004762eb
jmp 0x41a9d9
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 0x41a992
lea edx, [esp + 0x7c]
push 0x4a2d68
push edx
call fcn.00465b94
add esp, 8
test eax, eax
je 0x41a992
lea eax, [esp + 0x7c]
push 0x4a2d64
push eax
call fcn.00465b94
add esp, 8
test eax, eax
je 0x41a992
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 0x41a922
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.004762eb
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 0x41b1d0
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 0x41b232
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