joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10014ca0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10019a28
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10023018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [edi + 0x44], 0
je 0x10014da8
cmp byte [edi + 0x49], 0
je 0x10014da8
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x10014d9c
lea esi, [ebp - 0x2c]
call fcn.10014a50
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
mov ecx, eax
cmp edx, 0x10
jae 0x10014d13
lea ecx, [ebp - 0x2c]
mov eax, ecx
add ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x30]
push edx
push ecx
mov ecx, dword [edi + 0x44]
push eax
lea eax, [edi + 0x4c]
push eax
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x10014d3b
dec eax
je 0x10014d3f
sub eax, 2
lea esi, [ebp - 0x2c]
jne 0x10014d97
jmp 0x10014da3
mov byte [edi + 0x49], 0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp edx, 0x10
jae 0x10014d4f
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x10014d79
cmp edx, 0x10
jae 0x10014d5e
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x10014d94
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x10014da0
test esi, esi
jne 0x10014d07
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.100010e0
jmp 0x10014d01
lea esi, [ebp - 0x2c]
call fcn.10001040
xor al, al
jmp 0x10014daa
lea esi, [ebp - 0x2c]
call fcn.10001040
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10017c55
mov esp, ebp
pop ebp
ret

Function at 0x10015cf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, 2
xor ecx, ecx
jmp 0x10015d00
mov al, byte [edi + ecx - 0x321a2a]
xor al, dl
inc edx
and edx, 0x800000ff
mov byte [ecx + esi], al
jns 0x10015d1d
dec edx
or edx, 0xffffff00
inc edx
inc ecx
cmp ecx, 0x26
jl 0x10015d00
mov byte [esi + 0x26], 0
mov eax, esi
ret

Function at 0x10015d30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, 2
xor ecx, ecx
jmp 0x10015d40
mov al, byte [edi + ecx - 0x321a2a]
xor al, dl
inc edx
and edx, 0x800000ff
mov byte [ecx + esi], al
jns 0x10015d5d
dec edx
or edx, 0xffffff00
inc edx
inc ecx
cmp ecx, 0x20
jl 0x10015d40
mov byte [esi + 0x20], 0
mov eax, esi
ret

Function at 0x100163a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, 0x50
xor ecx, ecx
jmp 0x100163b0
mov al, byte [edi + ecx + 0x2b9e1f4b]
xor al, dl
inc edx
and edx, 0x800000ff
mov byte [ecx + esi], al
jns 0x100163cd
dec edx
or edx, 0xffffff00
inc edx
inc ecx
cmp ecx, 0xc
jl 0x100163b0
mov byte [esi + 0xc], 0
mov eax, esi
ret
Function at 0x10017540
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10019c68
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x10023018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0x10
mov byte [ebp - 0x7c], al
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], 0x67452301
mov dword [ebp - 0x2c], 0xefcdab89
mov dword [ebp - 0x28], 0x98badcfe
mov dword [ebp - 0x24], 0x10325476
jae 0x100175a3
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0x18]
lea esi, [ebp - 0x7c]
call fcn.10017300
mov ecx, esi
call fcn.100173b0
mov ecx, edi
mov ebx, esi
call fcn.10017490
cmp dword [ebp + 0x1c], 0x10
jb 0x100175d2
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10017c55
mov esp, ebp
pop ebp
ret
Function at 0x100178d0
Capabilities:
Access peb ldr_data
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10019778
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10023018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
xor edx, edx
mov ecx, 0x49
xor eax, eax
lea esp, [esp]
mov bl, byte [eax + 0x1001e780]
xor bl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x20], bl
jns 0x1001792d
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xc
jl 0x10017910
mov byte [ebp - 0x14], dl
mov dword [ebp - 4], edx
mov dword [ebp - 0x2c], edx
mov ebx, dword fs:[0x30]
mov ebx, dword [ebx + 0xc]
mov ebx, dword [ebx + 0x14]
mov ebx, dword [ebx]
mov ebx, dword [ebx]
mov ebx, dword [ebx + 0x10]
mov dword [ebp - 0x2c], ebx
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x20]
push ecx
push edx
call fcn.10017690
add esp, 8
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x30]
call dword [ebp - 0x34]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x10017981
xor eax, eax
jmp 0x100179b8
push esi
push eax
call fcn.10017690
add esp, 8
mov dword [ebp - 0x34], eax
test eax, eax
je 0x1001797d
test edi, edi
jle 0x100179af
lea eax, [ebp + 0xc]
mov ecx, edi
jmp 0x100179a0
mov edx, dword [eax + 4]
add eax, 4
mov dword [ebp - 0x30], edx
push dword [ebp - 0x30]
dec ecx
jne 0x100179a0
call dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10017c55
mov esp, ebp
pop ebp
ret

Function at 0x100179e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10019810
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x10023018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, 0x8b
xor eax, eax
mov dl, byte [eax + 0x1001e790]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x1c], dl
jns 0x10017a2f
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xb
jl 0x10017a12
mov byte [ebp - 0x11], 0
mov ecx, 0x3e9c1eca
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.10017bd0
push 0
push esi
push edi
push 0x10
push 4
push eax
lea esi, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.100178d0
add esp, 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10017c55
mov esp, ebp
pop ebp
ret

Function at 0x10017b90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, 0x6c
xor ecx, ecx
jmp 0x10017ba0
mov al, byte [edi + ecx + 0x6fad512a]
xor al, dl
inc edx
and edx, 0x800000ff
mov byte [ecx + esi], al
jns 0x10017bbd
dec edx
or edx, 0xffffff00
inc edx
inc ecx
cmp ecx, 0xc
jl 0x10017ba0
mov byte [esi + 0xc], 0
mov eax, esi
ret

Function at 0x10017c55
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10023018]
jne 0x10017c5f
repz ret
jmp fcn.1001811d
Function at 0x40f570
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa000]
push edi
or ebp, 0xffffffff
jmp 0x40f592
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40f599
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40f588
mov eax, 1
add ebx, ebx
jne 0x40f5ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40f5a0
jne 0x40f5bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f5a0
xor ecx, ecx
sub eax, 3
jb 0x40f5d0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40f642
mov ebp, eax
add ebx, ebx
jne 0x40f5db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40f5e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40f60c
inc ecx
add ebx, ebx
jne 0x40f5f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40f5ed
jne 0x40f609
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f5ed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40f62c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40f61d
jmp 0x40f58e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40f62c
add edi, ecx
jmp 0x40f58e
pop esi
mov edi, esi
mov ecx, 0x157
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40f64a
cmp byte [edi], 0xa
jne 0x40f64a
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 eax, ebx
loop 0x40f64f
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40f6be
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x103ec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1043c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40f67c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x10440]
or eax, eax
je 0x40f6b8
mov dword [ebx], eax
add ebx, 4
jmp 0x40f699
call dword [esi + 0x10444]
popal
jmp 0x401921
Function at 0x10001010
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
mov esi, dword [ebp + 0xc]
xor edx, edx
or eax, 0xffffffff
mov ecx, dword [ebp + 8]
lea esp, [esp]
lea esp, [esp]
nop
mov dl, byte [esi]
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x10001050]
add esi, 1
sub ecx, 1
jne 0x10001030
not eax
pop edx
pop ecx
pop esi
leave
ret 8

Function at 0x1000148b
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 + 0xc]
push dword [ebp + 8]
call sub.kernel32.dll_FindResourceA
or eax, eax
jne 0x100014ac
jmp 0x100014ce
push eax
push eax
push dword [ebp + 8]
call sub.kernel32.dll_SizeofResource
mov dword [0x1000d880], eax
pop eax
push eax
push dword [ebp + 8]
call sub.kernel32.dll_LoadResource
or eax, eax
jne 0x100014cb
jmp 0x100014ce
mov dword [ebp - 4], eax
popal
mov eax, dword [ebp - 4]
leave
ret 8

Function at 0x10001535
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
mov byte [ebp - 0x401], 0
pushal
mov esi, dword [ebp + 0xc]
lea ebx, [ebp - 0x400]
push esi
push ebx
call sub.kernel32.dll_lstrcpyA
xor ecx, ecx
jmp 0x1000155b
inc ecx
cmp byte [ecx + ebx], 0x5c
jne 0x1000155a
mov byte [ecx + ebx], 0
lea esi, [ecx + esi + 1]
push ebx
call fcn.10001647
or eax, eax
je 0x100015c2
mov byte [ebx], 0
test dword [ebp + 0x14], 8
je 0x10001586
mov edx, 1
jmp 0x10001588
xor edx, edx
push edx
push dword [ebp + 0x10]
push esi
push eax
push ebx
call sym.dup2patcher.dll_GetRegString
push section..data
push ebx
call fcn.100015f7
test dword [ebp + 0x14], 1
je 0x100015ae
push ebx
call fcn.100015ce
cmp byte [ebx], 0
je 0x100015c2
push ebx
push dword [ebp + 8]
call sub.kernel32.dll_SetEnvironmentVariableA
mov byte [ebp - 0x401], al
popal
movzx eax, byte [ebp - 0x401]
leave
ret 0x10
Function at 0x100016d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
push dword [ebp + 0x10]
push ebx
call sub.user32.dll_LoadBitmapA
test eax, eax
je 0x1000188f
mov dword [ebp - 8], eax
push dword [ebp + 0x14]
push ebx
call sub.user32.dll_LoadBitmapA
or eax, eax
jne 0x10001700
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
push dword [ebp + 0x18]
push ebx
call sub.user32.dll_LoadBitmapA
or eax, eax
jne 0x10001713
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
call sub.user32.dll_GetDlgItem
test eax, eax
je 0x1000188f
mov esi, eax
push ebx
lea ebx, [ebp - 0x38]
push ebx
push esi
call sub.user32.dll_GetWindowRect
lea edi, [ebp - 0x28]
push edi
push dword [ebp + 0xc]
call sub.user32.dll_GetWindowRect
mov eax, dword [ebx]
sub eax, dword [edi]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 4]
sub eax, dword [edi + 4]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
call fcn.100018a0
pop ebx
push 0
push esi
call sub.user32.dll_ShowWindow
jmp 0x1000177e
lea esi, [ebp - 0x68]
mov dword [esi], 0x30
mov dword [esi + 4], 0x2000
mov dword [esi + 8], 0x10001970
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], 0x1000176d
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 + 0x1c]
push dword [ebp + 0xc]
push 0
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push 0x50000000
push 0
push 0x1000176d
push 0x20
call sub.user32.dll_CreateWindowExA
mov ebx, eax
push dword [ebp - 8]
push 0
push ebx
call sub.user32.dll_SetWindowLongA
push dword [ebp - 0xc]
push 4
push ebx
call sub.user32.dll_SetWindowLongA
push dword [ebp - 0x10]
push 8
push ebx
call sub.user32.dll_SetWindowLongA
push 0
push dword [ebp + 8]
push dword [ebp + 0x1c]
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 - 8]
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 0x18

Function at 0x10001b7b
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 0x10001bbc
push 0
push 0
call sub.kernel32.dll_CreateThread
push eax
call sub.kernel32.dll_CloseHandle
leave
ret 4
Function at 0x10001fd3
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 0x1000d0ef
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 0x100020a2
mov dword [0x1000d89e], eax
mov esi, str.BASSMOD_Init
mov ebx, 0x1000d88a
jmp 0x10002061
push esi
push dword [0x1000d89e]
call sub.kernel32.dll_GetProcAddress
or eax, eax
je 0x1000204a
mov dword [ebx], eax
add ebx, 4
jmp 0x10002042
inc esi
cmp byte [esi], 0
jne 0x10002041
inc esi
jmp 0x10002061
push dword [0x1000d89e]
call sub.kernel32.dll_FreeLibrary
mov dword [0x1000d89e], 0
jmp 0x100020a2
cmp byte [esi], 0
jne 0x1000202a
push 0
push 0xac44
push 0xffffffffffffffff
call dword [0x1000d88a]
cmp eax, 1
jne 0x100020a2
call dword [0x1000d88e]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
add eax, 4
push 6
push ecx
push 0
push eax
push 1
call dword [0x1000d892]
cmp eax, 1
jne 0x100020a2
call dword [0x1000d896]
inc edi
mov eax, edi
pop edx
pop ecx
pop ebx
pop edi
pop esi
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
pushal
push 0x6b
push dword [0x1000d8a6]
call sub.user32.dll_IsDlgButtonChecked
cmp eax, 1
jne 0x10002353
mov esi, 0x1000dd11
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 0x1000234c
push 0
push esi
push dword [ebp + 8]
call sub.kernel32.dll_CopyFileA
mov al, 0
jmp 0x1000234e
mov al, 1
mov byte [0x1000e52d], al
popal
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
pushal
push 0x6b
push dword [0x1000d8a6]
call sub.user32.dll_IsDlgButtonChecked
cmp eax, 1
jne 0x100023fc
mov esi, 0x1000dd11
cmp dword [ebp + 8], 0
jne 0x100023a4
cmp byte [0x1000e52d], 0
jne 0x10002393
push 0
push 0x1000d911
push esi
call sub.kernel32.dll_CopyFileA
cmp byte [0x1000e52d], 0
jne 0x100023fc
push esi
call sub.kernel32.dll_DeleteFileA
jmp 0x100023fc
mov eax, 1
cmp byte [0x1000e95c], 1
jne 0x100023c0
cmp byte [0x1000e95d], 0
jne 0x100023c0
mov eax, 0
cmp eax, 1
jne 0x100023fa
push 0x400
push 0x10012e3d
push 0xd
push dword [0x1000d8a2]
call sub.user32.dll_LoadStringA
push 0x10012e3d
call sym.dup2patcher.dll_AddMsg
push esi
call sym.dup2patcher.dll_AddMsg
push dword [0x1000e511]
push esi
call sub.kernel32.dll_SetFileAttributesA
jmp 0x100023fc
jmp 0x10002393
popal
leave
ret 4
Function at 0x10002401
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 0x1000244e
push 1
push dword [ebp + 8]
push esi
call sub.kernel32.dll_CopyFileA
cmp eax, 1
jne 0x1000244e
mov eax, 1
pop esi
leave
ret 4
Function at 0x100028cc
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
pushal
mov esi, dword [0x1000e515]
or esi, esi
je 0x100029b1
test dword [ebp + 0xc], 0x20
je 0x10002906
call fcn.100029e3
or eax, eax
je 0x100028fc
push str.PE_CheckSum_Fix_:_OK
call sym.dup2patcher.dll_AddMsg
jmp 0x10002906
push str.PE_CheckSum_Fix_:_Failed
call sym.dup2patcher.dll_AddMsg
push dword [0x1000e521]
call sub.kernel32.dll_UnmapViewOfFile
push dword [0x1000e525]
call sub.kernel32.dll_CloseHandle
push 0
push 0x1000e51d
push dword [0x1000e529]
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.10002358
push dword [0x1000e511]
push 0x1000d911
call sub.kernel32.dll_SetFileAttributesA
test dword [ebp + 0xc], 0x10
je 0x100029b1
push 0
push 0x82
push 3
push 0
push 0
push 0xc0000000
push 0x1000d911
call sub.kernel32.dll_CreateFileA
mov dword [0x1000e515], eax
cmp eax, 0xffffffff
je 0x100029b1
push 0x1000f191
push 0x1000f189
push 0x1000f181
push dword [0x1000e515]
call sub.kernel32.dll_SetFileTime
push dword [0x1000e515]
call sub.kernel32.dll_CloseHandle
push str.Restore_original_file_time_:_OK
call sym.dup2patcher.dll_AddMsg
popal
leave
ret 8

Function at 0x10002a71
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
mov byte [ebp - 1], 0
push 1
push 8
push dword [0x1000d8a2]
call fcn.10001450
or eax, eax
je 0x10002ac5
mov esi, eax
push 0x1000e111
push 0x400
call sub.kernel32.dll_GetTempPathA
push str._bassmod.dll
push 0x1000e111
call sub.kernel32.dll_lstrcatA
mov ecx, dword [esi + 1]
lea eax, [esi + 5]
push ecx
push eax
push 0x1000e111
call sym.dup2patcher.dll_write_disk_file
mov byte [ebp - 1], 1
popal
movzx eax, byte [ebp - 1]
leave
ret
Function at 0x100038cc
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 [0x1000d8a6]
call sub.user32.dll_GetDlgItem
or eax, eax
je 0x10003a8a
mov dword [ebp - 0x404], eax
push 0
push dword [ebp - 0x404]
call sub.user32.dll_ShowWindow
mov esi, 0x1000f15f
push 9
push dword [0x1000d8aa]
call fcn.10002a47
mov dword [esi + 4], eax
push eax
call fcn.10006c90
or eax, eax
je 0x10003a8a
push dword [0x1000d8a6]
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 [0x1000d8a6]
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 [0x1000d8a6]
call fcn.100018a0
push 1
push 0x12
push dword [0x1000d8a2]
call fcn.10001450
or eax, eax
je 0x10003990
mov eax, dword [eax + 1]
mov dword [esi + 0x1d], eax
push 1
push 0xb
push dword [0x1000d8a2]
call fcn.10001450
or eax, eax
je 0x100039ab
mov eax, dword [eax + 1]
jmp 0x100039bd
cmp dword [esi + 0x1d], 0
je 0x100039b8
mov eax, 0xfe
jmp 0x100039bd
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 str.MS_SANS_SERIF
lea eax, [ebx + 0x1c]
push eax
call sub.kernel32.dll_lstrcpyA
push 1
push 0x13
push dword [0x1000d8a2]
call fcn.10001450
or eax, eax
je 0x10003a7b
mov edi, eax
push dword [edi + 0x11]
pop dword [esi + 0x18]
push dword [edi + 5]
pop dword [ebx]
test dword [edi + 9], 1
je 0x10003a1a
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.10003a8f
lea edx, [edi + 0x15]
cmp byte [edx], 0
jne 0x10003a71
xor ebx, ebx
jmp 0x10003a7b
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.10001b7b
pop ebx
pop edi
pop esi
leave
ret