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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [ebp - 8], eax
mov ebx, eax
push dword [ebp + 0xc]
push ebx
call sub.user32.dll_LoadBitmapA
test eax, eax
je 0x4013e8
mov dword [ebp - 0xc], eax
push dword [ebp + 0x10]
push ebx
call sub.user32.dll_LoadBitmapA
or eax, eax
jne 0x401259
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
push dword [ebp + 0x14]
push ebx
call sub.user32.dll_LoadBitmapA
or eax, eax
jne 0x40126c
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
push dword [ebp + 0x18]
push dword [ebp + 8]
call sub.user32.dll_GetDlgItem
test eax, eax
je 0x4013e8
mov esi, eax
push ebx
lea ebx, [ebp - 0x3c]
push ebx
push esi
call sub.user32.dll_GetWindowRect
lea edi, [ebp - 0x2c]
push edi
push dword [ebp + 8]
call sub.user32.dll_GetWindowRect
mov eax, dword [ebx]
sub eax, dword [edi]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 4]
sub eax, dword [edi + 4]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call fcn.004013f0
pop ebx
push 0
push esi
call sub.user32.dll_ShowWindow
jmp 0x4012d7
lea esi, [ebp - 0x6c]
mov dword [esi], 0x30
mov dword [esi + 4], 0x2000
mov dword [esi + 8], 0x4014c0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0x14
mov dword [esi + 0x14], ebx
mov dword [esi + 0x20], 0x10
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0x4012c6
mov dword [esi + 0x18], 0
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [esi + 0x1c], eax
mov dword [esi + 0x2c], 0
push esi
call sub.user32.dll_RegisterClassExA
push 0
push ebx
push dword [ebp + 0x18]
push dword [ebp + 8]
push 0
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push 0x50000000
push 0
push 0x4012c6
push 0x20
call sub.user32.dll_CreateWindowExA
mov ebx, eax
push dword [ebp - 0xc]
push 0
push ebx
call sub.user32.dll_SetWindowLongA
push dword [ebp - 0x10]
push 4
push ebx
call sub.user32.dll_SetWindowLongA
push dword [ebp - 0x14]
push 8
push ebx
call sub.user32.dll_SetWindowLongA
push 0
push dword [ebp - 8]
push dword [ebp + 0x18]
push ebx
push 0
push 0
push 0
push 0
push 0x5000000e
push 0
push str.STATIC
push 0
call sub.user32.dll_CreateWindowExA
mov dword [ebp - 4], eax
push dword [ebp - 0xc]
push 0
push 0x172
push eax
call sub.user32.dll_SendMessageA
push edi
push dword [ebp - 4]
call sub.user32.dll_GetWindowRect
push dword [ebp - 4]
push 0xc
push ebx
call sub.user32.dll_SetWindowLongA
mov ecx, dword [edi + 0xc]
sub ecx, dword [edi + 4]
mov eax, dword [edi + 8]
sub eax, dword [edi]
push 2
push ecx
push eax
push 0
push 0
push 0
push ebx
call sub.user32.dll_SetWindowPos
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x4016cb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
push 0x40170c
push 0
push 0
call sub.kernel32.dll_CreateThread
push eax
call sub.kernel32.dll_CloseHandle
leave
ret 4
Function at 0x401a53
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
push esi
push edi
push ebx
push ecx
push edx
lea eax, [ebp - 0x400]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
push 0x4060e2
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcatA
xor edi, edi
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_LoadLibraryA
or eax, eax
je 0x401b22
mov dword [0x40669e], eax
mov esi, 0x406091
mov ebx, 0x40668a
jmp 0x401ae1
push esi
push dword [0x40669e]
call sub.kernel32.dll_GetProcAddress
or eax, eax
je 0x401aca
mov dword [ebx], eax
add ebx, 4
jmp 0x401ac2
inc esi
cmp byte [esi], 0
jne 0x401ac1
inc esi
jmp 0x401ae1
push dword [0x40669e]
call sub.kernel32.dll_FreeLibrary
mov dword [0x40669e], 0
jmp 0x401b22
cmp byte [esi], 0
jne 0x401aaa
push 0
push 0xac44
push 0xffffffffffffffff
call dword [0x40668a]
cmp eax, 1
jne 0x401b22
call dword [0x40668e]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
add eax, 4
push 6
push ecx
push 0
push eax
push 1
call dword [0x406692]
cmp eax, 1
jne 0x401b22
call dword [0x406696]
inc edi
mov eax, edi
pop edx
pop ecx
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x401b50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
lea eax, [ebp - 4]
push eax
push 0
push 0
push dword [ebp + 8]
push 0
push 0
call sub.kernel32.dll_CreateThread
push eax
call sub.kernel32.dll_CloseHandle
popal
leave
ret 4

Function at 0x401c08
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
pushal
mov esi, 0x406b07
push dword [ebp + 8]
push esi
call sub.kernel32.dll_lstrcpyA
push str..BAK
push esi
call sub.kernel32.dll_lstrcatA
push esi
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x401c3f
push 0
push esi
push dword [ebp + 8]
call sub.kernel32.dll_CopyFileA
mov al, 0
jmp 0x401c41
mov al, 1
mov byte [0x406f1f], al
popal
leave
ret 4

Function at 0x401c4b
Capabilities:
Copy file
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
pushal
mov esi, 0x406b07
cmp dword [ebp + 8], 0
jne 0x401c81
cmp byte [0x406f1f], 0
jne 0x401c70
push 0
push 0x406707
push esi
call sub.kernel32.dll_CopyFileA
cmp byte [0x406f1f], 0
jne 0x401cd1
push esi
call sub.kernel32.dll_DeleteFileA
jmp 0x401cd1
push 0x6b
push dword [0x4066a6]
call sub.user32.dll_IsDlgButtonChecked
cmp byte [0x406fc6], 1
jne 0x401cac
cmp byte [0x406fc7], 1
jne 0x401ca7
mov eax, 1
jmp 0x401cac
mov eax, 0
cmp eax, 1
jne 0x401ccf
push 0x406149
call fcn.00401bc7
push esi
call fcn.00401bc7
push dword [0x406f07]
push esi
call sub.kernel32.dll_SetFileAttributesA
jmp 0x401cd1
jmp 0x401c70
popal
leave
ret 4
Function at 0x401cd6
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
push esi
lea esi, [ebp - 0x400]
push dword [ebp + 8]
push esi
call sub.kernel32.dll_lstrcpyA
push str..tmp
push esi
call sub.kernel32.dll_lstrcatA
push esi
call sub.kernel32.dll_DeleteFileA
push esi
push dword [ebp + 8]
call sub.kernel32.dll_MoveFileA
cmp eax, 1
jne 0x401d23
push 1
push dword [ebp + 8]
push esi
call sub.kernel32.dll_CopyFileA
cmp eax, 1
jne 0x401d23
mov eax, 1
pop esi
leave
ret 4
Function at 0x401d28
Capabilities:
Check if file exists
Get file attributes
Get file size
Query environment variable
Set environment variable
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7fc
pushal
mov dword [ebp - 0x804], 0
mov byte [0x406f20], 0
push 0x400
push 0x406707
push dword [ebp + 8]
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov esi, 0x406707
jmp 0x401d78
lodsb al, byte [esi]
cmp al, 0x25
jne 0x401d78
push 0x406707
call fcn.004042d0
push eax
push 0x406707
call sub.kernel32.dll_lstrcpyA
jmp 0x401d7d
cmp byte [esi], 0
jne 0x401d5c
push 0x406707
call sub.kernel32.dll_GetFileAttributesA
mov dword [0x406f07], eax
test eax, 1
je 0x401da1
xor eax, 1
push eax
push 0x406707
call sub.kernel32.dll_SetFileAttributesA
push 0x406707
call fcn.00401c08
push 0
push 0x82
push 3
push 0
push 2
push 0xc0000000
push 0x406707
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x401f03
cmp byte [0x406fc6], 0
jne 0x401efe
push 0x406707
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x401ea4
push 0x406707
call fcn.004042d0
cmp word [eax], 0x2e2a
je 0x401e27
cmp word [eax], 0
je 0x401e27
push 0x34
push 0x406707
push 0x40615b
push dword [0x4066a6]
call sub.user32.dll_MessageBoxA
cmp eax, 6
jne 0x401efe
lea esi, [ebp - 0x400]
mov edi, 0x406707
cmp byte [edi + 1], 0x3a
jne 0x401e40
push edi
call fcn.004042d0
mov edi, eax
push edi
push esi
call sub.kernel32.dll_lstrcpyA
push esi
call sub.kernel32.dll_lstrlenA
cmp eax, 0
jbe 0x401e53
inc eax
push esi
push eax
add esi, eax
push edi
push esi
call sub.kernel32.dll_lstrcpyA
pop eax
add esi, eax
push 0x2e
push str.Exe
push esi
call sub.kernel32.dll_RtlMoveMemory
pop esi
lea ebx, [ebp - 0x800]
push 0x406707
push ebx
call sub.kernel32.dll_lstrcpyA
push ebx
call fcn.00401b76
push dword [0x4066a6]
push ebx
push esi
push 0x406707
call fcn.00404270
cmp eax, 1
jne 0x401ea2
jmp 0x401d7d
jmp 0x401efe
test dword [ebp + 0x10], 2
je 0x401edd
cmp byte [0x406f20], 0
jne 0x401efe
push 0x406707
call fcn.00401cd6
cmp eax, 1
jne 0x401edb
mov byte [0x406f20], 1
push 0x4061b1
call fcn.00401bc7
jmp 0x401d7d
jmp 0x401efe
push 0x34
push 0x406707
push 0x4061d7
push dword [0x4066a6]
call sub.user32.dll_MessageBoxA
cmp eax, 6
jne 0x401efe
jmp 0x401d7d
jmp 0x401fb9
push 0x406252
call fcn.00401bc7
push 0x406707
call fcn.00401bc7
mov dword [0x406f0b], eax
push 0
push eax
call sub.kernel32.dll_GetFileSize
mov dword [0x406f0f], eax
cmp dword [ebp + 0xc], 0
jne 0x401f32
mov dword [ebp + 0xc], eax
test dword [ebp + 0x10], 4
je 0x401f54
add eax, 0x22e
add eax, dword [0x406680]
push 0x100
push eax
call fcn.00404310
mov dword [ebp + 0xc], eax
push dword [ebp + 0xc]
pop dword [0x406f1b]
push 0
push dword [0x406f1b]
push 0
push 4
push 0
push dword [0x406f0b]
call sub.kernel32.dll_CreateFileMappingA
or eax, eax
jne 0x401f86
push 0x406260
call fcn.00401bc7
jmp 0x401fb9
mov dword [0x406f17], eax
push 0
push 0
push 0
push 2
push eax
call sub.kernel32.dll_MapViewOfFile
or eax, eax
jne 0x401f9f
jmp 0x401f7a
mov dword [0x406f13], eax
mov dword [ebp - 0x804], eax
push 0x406707
push str.dup2_last_file
call sub.kernel32.dll_SetEnvironmentVariableA
popal
mov eax, dword [ebp - 0x804]
leave
ret 0xc
Function at 0x401fc4
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
pushal
mov esi, dword [0x406f0b]
or esi, esi
je 0x40201c
push dword [0x406f13]
call sub.kernel32.dll_UnmapViewOfFile
push dword [0x406f17]
call sub.kernel32.dll_CloseHandle
push 0
push 0
push dword [0x406f1b]
push esi
call sub.kernel32.dll_SetFilePointer
push esi
call sub.kernel32.dll_SetEndOfFile
push esi
call sub.kernel32.dll_CloseHandle
push dword [ebp + 8]
call fcn.00401c4b
push dword [0x406f07]
push 0x406707
call sub.kernel32.dll_SetFileAttributesA
popal
leave
ret 4

Function at 0x40204b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
pushal
mov byte [ebp - 0x401], 0
push 1
push 8
call fcn.00401057
or eax, eax
je 0x4020a8
mov esi, eax
lea eax, [ebp - 0x400]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
push str._bassmod.dll
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcatA
mov ecx, dword [esi + 1]
lea eax, [esi + 5]
push ecx
push eax
lea eax, [ebp - 0x400]
push eax
call fcn.0040420c
mov byte [ebp - 0x401], 1
popal
movzx eax, byte [ebp - 0x401]
leave
ret
Function at 0x402b1e
Capabilities:
Get common file path
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffba0
push esi
push edi
push ebx
push 0x70
push dword [0x4066a6]
call sub.user32.dll_GetDlgItem
or eax, eax
je 0x402cb4
mov dword [ebp - 0x404], eax
push 0
push dword [ebp - 0x404]
call sub.user32.dll_ShowWindow
mov esi, 0x4073c9
push 9
push dword [0x4066aa]
call fcn.00402021
mov dword [esi + 4], eax
push eax
call sub.kernel32.dll_lstrlenA
or eax, eax
je 0x402cb4
push dword [0x4066a6]
pop dword [esi]
lea ebx, [ebp - 0x414]
push ebx
push dword [ebp - 0x404]
call sub.user32.dll_GetWindowRect
lea edi, [ebp - 0x424]
push edi
push dword [0x4066a6]
call sub.user32.dll_GetWindowRect
mov eax, dword [ebx]
sub eax, dword [edi]
mov dword [esi + 8], eax
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 4]
sub eax, dword [edi + 4]
mov dword [esi + 0xc], eax
lea eax, [esi + 8]
lea ecx, [esi + 0xc]
push ecx
push eax
push dword [0x4066a6]
call fcn.004013f0
push 1
push 0xb
call fcn.00401057
or eax, eax
je 0x402bde
mov eax, dword [eax + 1]
jmp 0x402be3
mov eax, 0xff
mov byte [esi + 0x1c], al
push 1
push 0x12
call fcn.00401057
or eax, eax
je 0x402bf6
mov eax, dword [eax + 1]
mov dword [esi + 0x1d], eax
lea ebx, [ebp - 0x460]
push 0x3c
push ebx
call sub.kernel32.dll_RtlZeroMemory
mov dword [ebx], 7
mov byte [ebx + 0x17], 1
mov byte [ebx + 0x1a], 4
push 0x40637b
lea eax, [ebx + 0x1c]
push eax
call sub.kernel32.dll_lstrcpyA
push 1
push 0x13
call fcn.00401057
or eax, eax
je 0x402ca5
mov edi, eax
push dword [edi + 0x11]
pop dword [esi + 0x18]
push dword [edi + 5]
pop dword [ebx]
test dword [edi + 9], 1
je 0x402c4d
mov dword [ebx + 0x10], 0x2bc
lea eax, [ebp - 0x400]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
lea edx, [edi + 0x15]
push edx
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcatA
lea edx, [edi + 0x95]
push edx
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcatA
lea edx, [edi + 0x9b]
mov ecx, dword [edi + 0xd]
lea eax, [ebp - 0x400]
push eax
push ecx
push edx
call fcn.00402cb9
lea edx, [edi + 0x15]
push edx
lea eax, [ebx + 0x1c]
push eax
call sub.kernel32.dll_lstrcpyA
push ebx
call sub.gdi32.dll_CreateFontIndirectA
mov dword [esi + 0x14], eax
push esi
call fcn.004016cb
pop ebx
pop edi
pop esi
leave
ret
Function at 0x403354
Capabilities:
Create process on windows
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf0
push esi
push edi
push ebx
push 0x4064f6
call fcn.00401bc7
lea eax, [ebp - 0x400]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
push str._regpatch.reg
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcatA
mov esi, dword [ebp + 8]
mov eax, dword [esi + 1]
add eax, 0x100000
mov dword [ebp - 0x40c], eax
push 4
push 0x1000
push eax
push 0
call sub.kernel32.dll_VirtualAlloc
mov dword [ebp - 0x404], eax
lea eax, [esi + 9]
push dword [ebp - 0x404]
push eax
call fcn.00403566
mov ecx, dword [ebp - 0x404]
test dword [esi + 5], 1
je 0x403410
mov eax, dword [esi + 1]
add eax, 0x100000
mov dword [ebp - 0x410], eax
push 4
push 0x1000
push eax
push 0
call sub.kernel32.dll_VirtualAlloc
mov dword [ebp - 0x408], eax
push dword [ebp - 0x410]
push dword [ebp - 0x408]
push dword [ebp - 0x404]
call fcn.004034c9
mov ecx, dword [ebp - 0x408]
push eax
push ecx
lea eax, [ebp - 0x400]
push eax
call fcn.0040420c
test eax, eax
je 0x403457
mov edi, 0x406707
push str.regedit.exe__s__
push edi
call sub.kernel32.dll_lstrcpyA
lea eax, [ebp - 0x400]
push eax
push edi
call sub.kernel32.dll_lstrcatA
push 0x406526
push edi
call sub.kernel32.dll_lstrcatA
push 0
push edi
call sub.kernel32.dll_WinExec
cmp eax, 0x1f
ja 0x403463
push 0x406528
call fcn.00401bc7
jmp 0x40346d
push 0x40653f
call fcn.00401bc7
push 0x4000
push dword [ebp - 0x40c]
push dword [ebp - 0x404]
call sub.kernel32.dll_VirtualFree
test dword [esi + 5], 1
je 0x4034a2
push 0x4000
push dword [ebp - 0x410]
push dword [ebp - 0x408]
call sub.kernel32.dll_VirtualFree
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_DeleteFileA
push 0x406139
call fcn.00401bc7
push 0x406142
call fcn.00401bc7
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x4034c9
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push esi
push edi
mov eax, dword [ebp + 0x10]
add eax, 0x100000
mov dword [ebp - 8], eax
push 4
push 0x1000
push eax
push 0
call sub.kernel32.dll_VirtualAlloc
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
push esi
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov esi, dword [ebp - 4]
or eax, eax
je 0x403548
push dword [ebp + 8]
push esi
call sub.kernel32.dll_lstrcmpA
or eax, eax
je 0x403548
mov bl, 0
jmp 0x403540
lodsb al, byte [esi]
cmp word [esi], 0x5b0a
jne 0x403522
mov bl, 1
cmp al, 0x5c
jne 0x403536
or bl, bl
jne 0x403536
cmp byte [esi], 0x5c
je 0x403536
cmp byte [esi - 2], 0x5c
je 0x403536
stosb byte es:[edi], al
stosb byte es:[edi], al
cmp word [esi], 0xd5d
jne 0x403540
mov bl, 0
cmp byte [esi], 0
jne 0x403518
mov byte [edi], 0
push 0x4000
push dword [ebp - 8]
push dword [ebp - 4]
call sub.kernel32.dll_VirtualFree
push dword [ebp + 0xc]
call sub.kernel32.dll_lstrlenA
pop edi
pop esi
leave
ret 0xc
Function at 0x403b4a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push esi
push edi
push ebx
cmp byte [0x406702], 1
jne 0x403b76
push 5
push dword [0x4066be]
call sub.user32.dll_ShowWindow
push 0
push dword [0x4066c2]
call sub.user32.dll_ShowWindow
push 0
push 0
push 0x184
push dword [0x4066be]
call sub.user32.dll_SendMessageA
push 0x40661c
call fcn.00401bc7
push 0x406142
call fcn.00401bc7
call fcn.004011a7
xor ebx, ebx
jmp 0x403bdb
cmp byte [esi], 3
jne 0x403bb6
push esi
call fcn.0040308e
jmp 0x403bdb
cmp byte [esi], 4
jne 0x403bc3
push esi
call fcn.00403228
jmp 0x403bdb
cmp byte [esi], 0x11
jne 0x403bd0
push esi
call fcn.00403860
jmp 0x403bdb
cmp byte [esi], 5
jne 0x403bdb
push esi
call fcn.00403354
inc ebx
push ebx
call fcn.00401098
mov esi, eax
or esi, esi
jne 0x403ba9
push 0x40662d
call fcn.00401bc7
push 0x6c
push dword [0x4066a6]
call sub.user32.dll_GetDlgItem
push 0
push eax
call sub.user32.dll_EnableWindow
push 1
push 0
push 0
push dword [0x4066a6]
call sub.user32.dll_RedrawWindow
pop ebx
pop edi
pop esi
leave
ret

Function at 0x403c1d
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
push edx
push esi
push edi
mov esi, dword [ebp + 8]
xor ecx, ecx
jmp 0x403c4a
inc ecx
cmp ecx, dword [0x406f0f]
jne 0x403c4a
push 0x40663d
call fcn.00401bc7
xor eax, eax
pop edi
pop esi
pop edx
pop ecx
pop ebx
leave
ret 0x10
cmp dword [ecx + esi], 0x4550
jne 0x403c2c
add esi, ecx
mov eax, dword [ebp + 8]
add eax, dword [0x406f0f]
cmp dword [eax - 4], 0x32505564
jne 0x403c73
push 0x406654
call fcn.00401bc7
jmp 0x403c3f
push esi
movzx eax, word [esi + 6]
dec eax
imul eax, eax, 0x28
movzx ecx, word [esi + 0x14]
add esi, 0x18
add esi, ecx
mov edi, esi
or dword [edi + 0x24], 0x80000000
add edi, eax
pop esi
cmp dword [ebp + 0xc], 4
jne 0x403c9c
mov ecx, dword [esi + 0x34]
jmp 0x403c9e
xor ecx, ecx
mov dword [0x403f6d], ecx
mov ebx, dword [esi + 0x28]
mov ecx, dword [esi + 0x34]
mov dword [0x403f65], ebx
add dword [0x403f65], ecx
mov eax, dword [edi + 0xc]
add eax, dword [edi + 0x10]
mov dword [esi + 0x28], eax
cmp dword [ebp + 0xc], 4
jne 0x403ccf
mov eax, dword [edi + 0xc]
mov ebx, dword [edi + 0x10]
add eax, ebx
jmp 0x403cd1
xor eax, eax
mov dword [0x403f71], eax
mov eax, dword [ebp + 8]
add eax, dword [edi + 0x14]
add eax, dword [edi + 0x10]
mov ecx, 0x403d5a
mov ebx, 0x22e
mov edx, eax
add edx, ebx
push edx
push ebx
push ecx
push eax
call sub.kernel32.dll_RtlMoveMemory
pop edx
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + 0x16]
lea ecx, [eax + ecx]
mov ebx, dword [0x406680]
sub ebx, eax
push ebx
push ecx
push edx
call sub.kernel32.dll_RtlMoveMemory
mov eax, dword [ebp + 0x10]
push 0x100
push eax
call fcn.00404310
add dword [edi + 8], eax
add dword [edi + 0x10], eax
or dword [edi + 0x24], 0xe0000000
mov eax, dword [edi + 0xc]
add eax, dword [edi + 8]
mov ebx, dword [esi + 0x38]
push ebx
push eax
call fcn.00404310
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 8]
add eax, dword [0x406f1b]
mov dword [eax - 4], 0x32505564
xor eax, eax
inc eax
pop edi
pop esi
pop edx
pop ecx
pop ebx
leave
ret 0x10
Function at 0x40420c
Capabilities:
Write file on windows

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

Function at 0x404330
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], 1
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call sub.advapi32.dll_RegOpenKeyA
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
push dword [ebp + 0x14]
push dword [ebp - 8]
call sub.advapi32.dll_RegQueryValueExA
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call sub.advapi32.dll_RegCreateKeyExA
or eax, eax
jne 0x4043b2
mov eax, 4
mov dword [ebp - 4], eax
inc dword [ebp - 0xc]
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x14]
push dword [ebp - 8]
call sub.advapi32.dll_RegQueryValueExA
push eax
push dword [ebp - 8]
call sub.advapi32.dll_RegCloseKey
pop eax
leave
ret 0x10

Function at 0x404430
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
pushal
cmp dword [ebp + 8], 0
jne 0x404470
push 0
call sub.kernel32.dll_GetModuleHandleA
lea esi, [ebp - 0x200]
push 0x200
push esi
push eax
call sub.kernel32.dll_GetModuleFileNameA
push esi
call sub.kernel32.dll_lstrlenA
push esi
add esi, eax
jmp 0x404465
dec esi
cmp byte [esi], 0x5c
jne 0x404464
mov byte [esi], 0
pop esi
jmp 0x404473
mov esi, dword [ebp + 8]
push esi
call sub.kernel32.dll_SetCurrentDirectoryA
popal
leave
ret 4

Function at 0x4044f0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
pushal
mov byte [ebp - 1], 0
mov esi, dword [ebp + 8]
or esi, esi
je 0x40454a
push esi
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x40454a
cmp byte [esi], 0
je 0x40454a
lea edi, [ebp - 0x401]
jmp 0x40451f
lodsb al, byte [esi]
stosb byte es:[edi], al
cmp byte [esi], 0x5c
je 0x404529
cmp byte [esi], 0
jne 0x40451d
cmp al, 0x3a
je 0x40451d
lodsb al, byte [esi]
stosb byte es:[edi], al
mov byte [edi], 0
push 0
lea eax, [ebp - 0x401]
push eax
call sub.kernel32.dll_CreateDirectoryA
cmp byte [esi - 1], 0
jne 0x40451b
mov byte [ebp - 1], 1
popal
movzx eax, byte [ebp - 1]
leave
ret 4
Function at 0x404560
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
mov byte [ebp - 1], 0
mov esi, dword [ebp + 8]
or esi, esi
je 0x4045ce
push esi
call sub.kernel32.dll_lstrlenA
or eax, eax
je 0x4045ce
mov ebx, eax
push 0
call sub.user32.dll_OpenClipboard
cmp eax, 1
jne 0x4045ce
add ebx, 2
push ebx
push 0x2042
call sub.kernel32.dll_GlobalAlloc
or eax, eax
je 0x4045c9
mov ebx, eax
push ebx
call sub.kernel32.dll_GlobalLock
or eax, eax
je 0x4045c9
mov edi, eax
push esi
push edi
call sub.kernel32.dll_lstrcpyA
call sub.user32.dll_EmptyClipboard
cmp eax, 1
jne 0x4045c9
push edi
call sub.kernel32.dll_GlobalUnlock
push ebx
push 1
call sub.user32.dll_SetClipboardData
call sub.user32.dll_CloseClipboard
popal
movzx eax, byte [ebp - 1]
leave
ret 4
Function at 0x58a958
Capabilities:
Encrypt data using aes

Disassembly:
lea esp, [esp + 8]
jmp 0x5b7ac7
cmp eax, 1
call fcn.005b7a8a
mov ebx, dword [ebx*4 + reloc.WINMM.dll_midiStreamOut]
bsf di, si
lea edi, [edx + edi]
jmp 0x5b7b35
mov di, 0xd045
lea esp, [esp + 2]
mov edi, edx
push esp
jmp 0x5b7b65
add esi, 0x10
mov edx, dword [esi]
sub esp, 6
mov di, word [esp]
jmp 0x5b7b13
shr edi, 0x18
pushal
mov edi, dword [edi*4 + reloc.WINMM.dll_midiStreamOut]
call 0x5b7b43

Function at 0x5b7a8a
Capabilities:
Encrypt data using aes

Disassembly:
pushal
jmp 0x5b8238
jmp 0x5b7ae5
lea ecx, [eax - 1]
shr bx, cl
setno dh
jmp 0x5b7a9d
jle 0x58a8c6
shr ch, 5
mov ebx, 0xf3bfbde4
mov di, 0x8449
mov cl, 0xa2
jmp 0x5b7a4d
mov word [esp], dx
push word [esp + 1]
lea esp, [esp + 2]
lea esp, [esp + 4]
jmp 0x5b7a64
push edx
pushal
mov dword [esp + 0x14], ebp
popal
jmp 0x5b7aaa
lea edx, [edx - 4]
mov dword [edx], ecx
pop edx
mov ecx, 0xff
jmp 0x58a8dc
movzx ebx, byte [esi + 0x11]
lea edi, reloc.WINMM.dll_midiStreamOut
bsf di, ax
mov di, 0x6c1
clc
jmp 0x5b7acf
lea esp, [esp + 0x20]
pop edi
lea ebx, [ecx + edi]
jmp 0x5b8288
pop ebx
call 0x5b8266
or ecx, dword [ebp - reloc.WINMM.dll_midiStreamOut]
push edx
jmp 0x5b8272
lea esp, [esp + 1]
lea esp, [esp + 3]
jmp 0x5b82ac
pop esi
mov bx, 0x9935
xchg bl, bh
mov bx, word [esp]
jmp 0x5b825f
ret

Function at 0x5b7b75
Capabilities:
Encrypt data using aes

Disassembly:
sub esp, 0x1e
add esp, 9
lea esp, [esp + 1]
jmp 0x5b8170
and ebx, ecx
stc
stc
call fcn.005b7c6d
movzx ebx, byte [esi + 2]
push edx
mov ebx, dword [ebx*4 + reloc.WINMM.dll_midiStreamOut]
sub esp, 0x1c
jmp 0x5b7daa
lea esp, [esp + 0x48]
xor edi, dword [ebx*4 + reloc.WINMM.dll_midiStreamOut]
lea ebx, [eax*4]
mov bl, byte [esp]
jmp 0x5b7f2a