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

Disassembly:
push esi
test ecx, ecx
je 0x100268aa
lea esi, [ecx - 0xc]
jmp 0x100268ac
xor esi, esi
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx + 0x18]
lea eax, [esi + 0x18]
push eax
call edx
mov esi, dword [esi + 0x9c]
test esi, esi
je 0x100268cb
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 8

Function at 0x10027660
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x1c
test eax, eax
je 0x10027672
lea edx, [eax - 0x10]
jmp 0x10027674
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, 7
lea edi, [ebp - 0x1c]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, edx
mov dword [ebp + 8], 0
call fcn.1001fef0
test eax, eax
je 0x100276a8
mov eax, dword [ebp + 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edx + 0x60]
mov dword [ebp + 8], 0
test eax, eax
jne 0x100276c2
xor ecx, ecx
mov dword [ebp + 8], ecx
mov eax, 0x80004005
jmp 0x100276d5
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [ebp + 8]
push ecx
push 0x100aaa30
push eax
call edx
mov ecx, dword [ebp + 8]
test eax, eax
jl 0x10027725
test ecx, ecx
je 0x10027720
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
xor esi, esi
call edi
test ax, ax
jge 0x100276f3
mov esi, 1
push 0x11
call edi
test ax, ax
jge 0x100276ff
add esi, 2
push 0x12
call edi
test ax, ax
jge 0x1002770b
add esi, 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push esi
lea edx, [ebp - 0x1c]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov ecx, dword [ebp + 8]
jmp 0x10027725
mov eax, 1
xor edx, edx
test eax, eax
setne dl
mov esi, edx
test ecx, ecx
je 0x1002773a
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x1002b5b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a6456
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x100db690]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor edx, edx
mov dword [ebp - 0x428], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], edx
mov dword [ebp - 0x418], edx
push 2
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x1002b62d
call fcn.10020d40
mov edi, eax
jmp 0x1002b736
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x1002b646
call fcn.10020d40
jmp 0x1002b72d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
test ebx, ebx
jne 0x1002b664
call fcn.10020d40
jmp 0x1002b72d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x420], edi
cmp eax, edi
jae 0x1002b6a9
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1002b694
lea ecx, [ebp - 0x418]
call fcn.10021b70
lea ecx, [ebp - 0x428]
call fcn.10021b10
mov eax, 0x8007000e
jmp 0x1002b752
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.100235d0
mov dword [ebp - 4], 1
jmp 0x1002b6e1
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x1002b6f2
mov edi, 0x8007000e
jmp 0x1002b72f
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [0x100a81b8]
test eax, eax
jne 0x1002b70b
call fcn.10020d40
jmp 0x1002b72d
mov edx, dword [ebp - 0x418]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x418]
push eax
push ecx
lea ecx, [ebp - 0x430]
call fcn.10024bb0
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x414]
cmp dword [ebp - 0x418], edx
je 0x1002b750
lea ecx, [ebp - 0x418]
call fcn.10021b70
nop
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1002e502
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1002bfb0
Capabilities:
Delete file
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, 0x100de8d8
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1002bfc0
sub eax, edx
sar eax, 1
je 0x1002c0be
mov eax, 0x100de958
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1002bfe0
sub eax, edx
sar eax, 1
je 0x1002c0be
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push pe_nt_image_headers32
push 4
push 0
push 0
push 0xc0000000
push 0x100de958
call edi
mov ebx, dword [0x100a81c8]
mov esi, eax
test esi, esi
je 0x1002c06a
cmp esi, 0xffffffff
je 0x1002c06a
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x800
jbe 0x1002c0b0
push esi
call ebx
push 0x100de958
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push pe_nt_image_headers32
push 4
push 0
push 0
push 0xc0000000
push 0x100de958
call edi
mov esi, eax
test esi, esi
je 0x1002c06a
cmp esi, 0xffffffff
jne 0x1002c0b0
mov edi, dword [0x100a8200]
call edi
call edi
test eax, 0x20000000
je 0x1002c0a0
test eax, eax
jle 0x1002c089
and eax, 0xffff
or eax, 0xa0070000
mov edi, eax
test esi, esi
je 0x1002c097
cmp esi, 0xffffffff
je 0x1002c097
push esi
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jle 0x1002c089
and eax, 0xffff
or eax, 0x80070000
jmp 0x1002c089
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x80070057
mov esp, ebp
pop ebp
ret
Function at 0x1002c0d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x100db690]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push 0x7fe
lea ecx, [ebp - 0x802]
xor eax, eax
push ebx
push ecx
mov dword [ebp - 0x80c], ebx
mov word [ebp - 0x804], ax
call fcn.1002e520
mov eax, 0x100de8d8
add esp, 0xc
mov dword [ebp - 0x818], ebx
mov dword [ebp - 0x808], ebx
mov dword [ebp - 0x810], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1002c124
sub eax, edx
sar eax, 1
je 0x1002c261
mov eax, 0x100de958
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1002c141
sub eax, edx
sar eax, 1
je 0x1002c261
mov eax, dword [0x100deb60]
cmp eax, ebx
je 0x1002c261
cmp eax, 0xffffffff
je 0x1002c261
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push eax
lea ecx, [ebp - 0x804]
push 0x3fc
push ecx
call fcn.1002ff49
push 0x100aae84
lea edx, [ebp - 0x804]
push 0x400
push edx
call fcn.1002fd49
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x808]
push ecx
lea edx, [ebp - 0x804]
push edx
call fcn.1001e9f0
add esp, 0x28
cmp eax, ebx
jl 0x1002c24e
mov eax, dword [0x100deb60]
push esi
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1002c1e2
mov esi, dword [0x100a8200]
call esi
call esi
jmp 0x1002c24d
lea ecx, [ebp - 0x80c]
push ecx
call fcn.1002bfb0
mov esi, dword [ebp - 0x80c]
add esp, 4
cmp esi, ebx
je 0x1002c240
push edi
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp - 0x808]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1002c212
push ebx
lea ecx, [ebp - 0x818]
push ecx
sub eax, edi
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop edi
cmp esi, 0xffffffff
je 0x1002c240
push esi
call dword [0x100a81c8]
mov edx, dword [0x100deb60]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop esi
mov eax, dword [ebp - 0x808]
cmp eax, ebx
je 0x1002c261
push eax
call fcn.1002e59a
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1002e502
mov esp, ebp
pop ebp
ret
Function at 0x1002de8f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x100debc0], 0
push esi
jne 0x1002de02
call fcn.1002dd28
test eax, eax
je 0x1002de45
mov eax, dword [0x100debc0]
cmp eax, 1
jne 0x1002de23
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [0x100a82f4]
test eax, eax
je 0x1002de45
pop esi
ret
push eax
call dword [0x100debc8]
test eax, eax
jne 0x1002de8d
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1002de49
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x100debc0]
call dword [0x100debc8]
mov edi, eax
test edi, edi
je 0x1002de6e
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1002de8a
mov edi, esi
add esi, 0xff0
push edi
push dword [0x100debc0]
call dword [0x100debc4]
add edi, 0x10
cmp edi, esi
jb 0x1002de76
mov eax, edi
pop edi
pop esi
ret
jmp 0x1002ddef

Function at 0x1002e502
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100db690]
jne 0x1002e50c
repz ret
jmp fcn.10031988
Function at 0x1004147c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1003327b
and dword [ebp - 4], 0
cmp dword [0x100df61c], 0
mov ebx, eax
jne 0x1004152d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100415de
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x100415de
push eax
call fcn.10033209
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x100df61c], eax
call esi
push eax
call fcn.10033209
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100df620], eax
call esi
push eax
call fcn.10033209
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x100df624], eax
call esi
push eax
call fcn.10033209
pop ecx
mov dword [0x100df62c], eax
test eax, eax
je 0x1004152d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10033209
pop ecx
mov dword [0x100df628], eax
mov eax, dword [0x100df628]
cmp eax, ebx
je 0x10041585
cmp dword [0x100df62c], ebx
je 0x10041585
push eax
call fcn.10033284
push dword [0x100df62c]
mov esi, eax
call fcn.10033284
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10041585
test edi, edi
je 0x10041585
call esi
test eax, eax
je 0x1004157c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1004157c
test byte [ebp - 0xc], 1
jne 0x10041585
or dword [ebp + 0x10], 0x200000
jmp 0x100415be
mov eax, dword [0x100df620]
cmp eax, ebx
je 0x100415be
push eax
call fcn.10033284
pop ecx
test eax, eax
je 0x100415be
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100415be
mov eax, dword [0x100df624]
cmp eax, ebx
je 0x100415be
push eax
call fcn.10033284
pop ecx
test eax, eax
je 0x100415be
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100df61c]
call fcn.10033284
pop ecx
test eax, eax
je 0x100415de
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100415e0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100573c0
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.1002f700
mov eax, dword [0x100db690]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x10057425
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x10057425
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.1003bd7d
add eax, 0x40
push eax
call fcn.1009f928
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1002e502
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.1009f7f0
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x100574b4
call fcn.10057280
test eax, eax
jle 0x100574b4
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1002e502
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1002e502
add esp, 0x108
ret
Function at 0x10079bc0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x10079bd9
mov esi, edi
mov edi, eax
jmp 0x10079bdb
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x10079beb
mov eax, ebx
jmp 0x10079bf5
push eax
push ebx
call fcn.10048100
add esp, 8
test eax, eax
jne 0x10079bfd
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x10079c19
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [edi + 4]
jl 0x10079c04
cmp eax, dword [esi + 4]
jge 0x10079c30
mov edi, edi
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [esi + 4]
jl 0x10079c20
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
test eax, eax
jle 0x10079c51
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x10079c4e
dec eax
test eax, eax
jg 0x10079c40
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x100e9c10
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x100e9d1c
test eax, eax
je 0x100e9d1c
push esi
push edi
mov ecx, 0x10
mov esi, 0x10104fe8
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0x100e9d03
lea edi, [eax + 4]
jmp 0x100e9c67
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x100e9c7c
mov dword [ebp - 4], 2
jmp 0x100e9c9d
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x100e9c93
mov dword [ebp - 4], 1
jmp 0x100e9c9d
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x100e9d13
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0x100e9cd6
mov byte [ecx], 0x3d
jmp 0x100e9ce2
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0x100e9ced
mov byte [ecx], 0x3d
jmp 0x100e9cf3
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x100e9c64
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402a36
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x7a2750]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402aca
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a87
cmp dword [ebp + 0x10], ebx
jne 0x402abe
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a36
test eax, eax
jne 0x402a99
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a6e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405d0e
cmp eax, ebx
je 0x402ad1
push ebx
push dword [0x7a2750]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402aca
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x7a2750], ebx
jne 0x402ac7
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ac7
jmp 0x402aca
Function at 0x405250
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x7a0cb8], 0x44
push eax
xor eax, eax
push 0x7a0cb8
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40528b
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405315
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.004055c4
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x405349
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x7a2728], eax
jmp 0x4054dd
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x405367
test eax, eax
je 0x405488
test byte [ebp + 0xc], 2
je 0x405488
mov esi, 0x79fcb8
push edi
push esi
call fcn.004059f0
test ebx, ebx
je 0x405384
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40538a
push edi
call fcn.0040552a
cmp byte [edi], 0
jne 0x405398
cmp byte [0x79fcb8], 0x5c
jne 0x4053a3
push 0x409010
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x40547e
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.0040550e
cmp byte [eax], 0
je 0x4053e9
cmp byte [ebp - 0x18], 0
je 0x4053e9
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x4053ff
mov al, byte [esi + 1]
test al, al
je 0x40545d
cmp al, 0x2e
jne 0x4053ff
cmp byte [esi + 2], 0
je 0x40545d
push esi
push ebx
call fcn.004059f0
test byte [ebp - 0x148], 0x10
je 0x405424
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40545d
push dword [ebp + 0xc]
push edi
call fcn.00405315
jmp 0x40545d
push edi
call fcn.004056a8
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405455
test byte [ebp + 0xc], 4
je 0x40544d
push edi
push 0xfffffffffffffff1
call fcn.00404d8e
push 0
push edi
call fcn.0040573e
jmp 0x40545d
inc dword [0x7a2728]
jmp 0x40545d
push edi
push 0xfffffffffffffff2
call fcn.00404d8e
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4053c7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x405488
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4054dd
cmp dword [ebp - 8], esi
jne 0x40549d
inc dword [0x7a2728]
jmp 0x4054dd
push edi
call fcn.00405ce7
test eax, eax
je 0x4054dd
push edi
call fcn.004054e3
push edi
call fcn.004056a8
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4054d5
test byte [ebp + 0xc], 4
je 0x405495
push edi
push 0xfffffffffffffff1
call fcn.00404d8e
push esi
push edi
call fcn.0040573e
jmp 0x4054dd
push edi
push 0xffffffffffffffe5
call fcn.00404d8e
pop edi
pop esi
leave
ret 8
Function at 0x4055c4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x7a00b8
push esi
call fcn.004059f0
push esi
call fcn.00405577
mov edi, eax
test edi, edi
jne 0x4055e5
xor eax, eax
jmp 0x405637
push edi
call fcn.00405c4e
test byte [0x7a26b8], 0x80
je 0x4055fe
mov al, byte [edi]
test al, al
je 0x4055e1
cmp al, 0x5c
je 0x4055e1
sub edi, esi
jmp 0x405616
call fcn.00405ce7
test eax, eax
je 0x405610
test byte [eax], 0x10
je 0x4055e1
push esi
call fcn.0040552a
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405602
call fcn.004054e3
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4056a8
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 0x4056c4
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4056c7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x4056f6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x40573a
test edi, edi
jne 0x405701
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405734