joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
mov ecx, 0x73a3140e
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
nop
mov ecx, 0x1d060666
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a6004]
jne 0x40100a
repz ret
jmp fcn.00401424

Function at 0x406ecc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a6004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404a1c
and dword [ebp - 0x14], 0
cmp dword [0x4a8958], 0
mov dword [ebp - 0x18], eax
jne 0x406f7f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407027
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x407027
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4a8958], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4a895c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4a8960], eax
call edi
push eax
call esi
mov dword [0x4a8968], eax
test eax, eax
je 0x406f7f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4a8964], eax
mov eax, dword [0x4a8964]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x406fd8
cmp dword [0x4a8968], ecx
je 0x406fd8
push eax
call esi
push dword [0x4a8968]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x406fd8
test ebx, ebx
je 0x406fd8
call edi
test eax, eax
je 0x406fcf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406fcf
test byte [ebp - 8], 1
jne 0x406fd8
or dword [ebp + 0x10], 0x200000
jmp 0x40700b
mov eax, dword [0x4a895c]
cmp eax, dword [ebp - 0x18]
je 0x40700b
push eax
call esi
test eax, eax
je 0x40700b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40700b
mov eax, dword [0x4a8960]
cmp eax, dword [ebp - 0x18]
je 0x40700b
push eax
call esi
test eax, eax
je 0x40700b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4a8958]
call esi
test eax, eax
je 0x407027
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407029
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret
Function at 0x432006
Capabilities:
Encode data using xor

Disassembly:
call 0x43200c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401907
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push 0xa
push 0x1001
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
jne 0x401925
jmp 0x401b16
mov dword [0x403c74], eax
push eax
push 0
call sub.kernel32.dll_SizeofResource
or eax, eax
jne 0x40193b
jmp 0x401b16
mov dword [0x403c78], eax
push dword [0x403c74]
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
jne 0x401956
jmp 0x401b16
mov dword [0x403c7c], eax
push eax
call sub.kernel32.dll_LockResource
or eax, eax
jne 0x40196a
jmp 0x401b16
mov dword [0x403c80], eax
mov ebx, eax
mov dword [ebp - 8], eax
push 0x10
push ebx
push 0x403450
call sub.kernel32.dll_RtlMoveMemory
add ebx, 0x10
mov eax, dword [0x403c78]
sub eax, 0x10
push eax
push ebx
call fcn.00401a90
mov eax, dword [ebx]
add ebx, 4
mov dword [0x410684], eax
mov eax, dword [ebx]
add ebx, 4
test eax, eax
je 0x401a09
mov dword [ebp - 4], eax
push dword [ebp - 4]
push 8
push dword [0x403c70]
call sub.kernel32.dll_HeapAlloc
mov dword [0x410690], eax
push dword [ebp - 4]
push ebx
push dword [0x410690]
call sub.kernel32.dll_RtlMoveMemory
add ebx, dword [ebp - 4]
mov eax, dword [ebx]
add ebx, 4
mov dword [ebp - 4], eax
push dword [ebp - 4]
push 8
push dword [0x403c70]
call sub.kernel32.dll_HeapAlloc
mov dword [0x410694], eax
push dword [ebp - 4]
push ebx
push dword [0x410694]
call sub.kernel32.dll_RtlMoveMemory
add ebx, dword [ebp - 4]
mov eax, dword [ebx]
mov dword [0x410698], eax
add ebx, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [0x41069c], eax
cmp dword [0x41069c], 2
jne 0x401a43
mov eax, dword [ebx]
add ebx, 4
mov dword [0x4106a8], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [0x4106a0], eax
cmp dword [0x4106a0], 1
jne 0x401a43
mov eax, dword [ebx]
add ebx, 4
mov dword [0x4106a4], eax
mov eax, dword [ebx]
mov dword [0x4106b0], eax
add ebx, 4
mov ecx, ebx
sub ecx, dword [ebp - 8]
mov eax, dword [0x403c78]
sub eax, ecx
mov dword [0x41068c], eax
push dword [0x41068c]
push 0x40
call sub.kernel32.dll_GlobalAlloc
mov dword [0x410688], eax
push dword [0x41068c]
push ebx
push dword [0x410688]
call sub.kernel32.dll_RtlMoveMemory
push dword [0x403c7c]
call sub.kernel32.dll_FreeResource
pop ebx
leave
ret

Function at 0x401921
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401960
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401960
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401960
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401960
cmp dword [ecx + 0x74], 0xe
jbe 0x401960
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00408afe
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00408afe
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00408afe
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00408afe
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00408afe
mov dword [0x41203c], eax
call fcn.00408afe
test eax, eax
jge 0x402550
push 8
call fcn.00408afe
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00408afe
pop ecx
push 1
call fcn.00408afe
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00408afe
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00408afe
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00408afe
jmp 0x402495

Function at 0x408afe
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x408b0d
pop dword [ebp - 0x30]
mov eax, 0x2ba68d70
add eax, 0xd499fd9d
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x3637c
push 0
mov eax, 0x7e99c6cf
add eax, 0x81a71a09
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0x3c11
mov edx, eax
mov ebx, 0xd6d2f5c0
add ebx, 0x296e4604
add ebx, dword [ebp - 0x30]
mov esi, 0x894c24fc
add esi, 0x5a8ce740
sub dword [ebp - 0x28], eax
mov edi, dword [ebx]
mov dword [ebp - 8], 0x303eb1ab
xor edi, esi
sub dword [ebp - 0x24], 0x661ec418
mov dword [edx], edi
xor dword [ebp - 8], 0x4154bf59
add edx, 0x52c664df
sub edx, 0x52c664db
add ebx, 4
loop 0x408b66
add eax, 0xbc143326
sub eax, 0xbc13500f
mov ebx, eax
add eax, 0x7296a588
add eax, 0x8d695a7d
mov ecx, 0x465f6e36
sub ecx, 0x461f6e36
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x52f0a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd8000]
push edi
jmp 0x52f0ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x52f0c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52f0b0
mov eax, 1
add ebx, ebx
jne 0x52f0d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x52f0e4
jne 0x52f103
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52f103
dec eax
add ebx, ebx
jne 0x52f0f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x52f0c8
add ebx, ebx
jne 0x52f0ff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x52f155
xor ecx, ecx
sub eax, 3
jb 0x52f11b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x52f18a
sar eax, 1
mov ebp, eax
jmp 0x52f126
add ebx, ebx
jne 0x52f126
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52f0f4
inc ecx
add ebx, ebx
jne 0x52f134
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52f0f4
add ebx, ebx
jne 0x52f141
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x52f136
jne 0x52f152
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x52f136
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x52f174
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x52f166
jmp 0x52f0b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x52f174
add edi, ecx
jmp 0x52f0b6
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x52f192
cmp byte [edi], 0x11
jne 0x52f192
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 0x52f197
lea edi, [esi + 0x128000]
mov eax, dword [edi]
or eax, eax
je 0x52f20f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x185400]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x18557c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x52f1c4
mov ecx, edi
jns 0x52f1f3
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 + 0x185580]
or eax, eax
je 0x52f209
mov dword [ebx], eax
add ebx, 4
jmp 0x52f1e1
call dword [esi + 0x185590]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x52f240
cmp al, 0xef
ja 0x52f233
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x52f215
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x52f222
mov ebp, dword [esi + 0x185584]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x52f274
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x401230
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42921f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x434f48]
push esi
push edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x18], 0
mov esi, edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x24], 1
mov dword [esp + 8], eax
mov dword [esp + 0x30], eax
test edi, edi
mov byte [esp + 0x24], 3
je 0x401319
push ebx
mov bl, 4
lea eax, [esi + 0x38]
lea ecx, [esp + 0x34]
push eax
call fcn.00420114
lea ecx, [esp + 0x34]
call fcn.0041f7d8
lea ecx, [esp + 0x34]
call fcn.0041f724
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4012bb
lea edx, [esp + 0x34]
lea ecx, [esp + 0xc]
push edx
call fcn.00420114
jmp 0x40130d
lea eax, [esp + 0x34]
push 0x4333a8
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.0042022f
lea edx, [esp + 0xc]
mov byte [esp + 0x28], bl
push edx
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004201c9
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 5
call fcn.00420114
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.00420027
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 3
call fcn.00420027
mov esi, dword [esi + 8]
test esi, esi
jne 0x401281
pop ebx
mov ecx, dword [esp + 8]
mov edx, dword [edi + 0x34]
mov eax, dword [str.___s__s_]
push ecx
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.0041f630
mov esi, dword [esp + 0x3c]
add esp, 0x10
lea edx, [esp + 0xc]
mov ecx, esi
push edx
call fcn.0041fd9c
mov dword [esp + 0x18], 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 2
call fcn.00420027
lea ecx, [esp + 8]
mov byte [esp + 0x24], 1
call fcn.00420027
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call fcn.00420027
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x401390
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x42925f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x434f48]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea edi, [esi + 0xc]
mov dword [edi], eax
mov ecx, dword [0x434f48]
lea ebp, [esi + 0x10]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [ebp], ecx
mov dword [esi + 0x14], 0x42b4b0
mov dword [esi + 0x18], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x1c], ebx
lea ecx, [esi + 0x138]
mov byte [esp + 0x1c], 2
call fcn.00404040
mov ecx, ebp
mov byte [esp + 0x1c], 3
mov dword [esi], 0x42b4ac
mov byte [esi + 0x28], 1
mov byte [esi + 4], 0x4e
mov dword [esi + 0x134], ebx
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 8], ebx
call fcn.0041ffb2
mov ecx, edi
call fcn.0041ffb2
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4065f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [eax]
lea edi, [0x433aa0]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
lea edx, [esi + ebx]
xor eax, eax
mov bl, byte [esi]
mov al, cl
inc esi
xor al, bl
shr ecx, 8
mov ebx, dword [edi + eax*4]
xor ecx, ebx
cmp edx, esi
jne 0x40660b
pop eax
mov dword [eax], ecx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x406630
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429668
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x20
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.004209dc
lea eax, [ebp - 0x18]
push 8
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00420c56
cmp eax, 8
jne 0x4066bb
cmp dword [ebp - 0x18], 0x434c4646
jne 0x4066bb
lea ecx, [ebp - 0x28]
push ecx
call fcn.00406860
mov ecx, dword [ebp - 0x14]
add esp, 4
cmp ecx, eax
jne 0x4066bb
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00420a7c
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00420a7c
jmp 0x4066da
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x130]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x20
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x130]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [ebp - 4], 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..bak
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x130]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x28]
call fcn.004209dc
lea ecx, [ebp - 0x18]
push 8
push ecx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00420c56
cmp eax, 8
jne 0x406841
cmp dword [ebp - 0x18], 0x434c4646
jne 0x406841
lea edx, [ebp - 0x28]
push edx
call fcn.00406860
mov ecx, dword [ebp - 0x14]
add esp, 4
cmp ecx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
jne 0x406848
call fcn.00420a7c
push 0
lea eax, [ebp - 0x130]
or esi, 0xffffffff
push ebx
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x406809
mov ecx, dword [0x434f48]
mov dword [ebp + 8], ecx
mov dword [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x433a90
call fcn.0040c340
add esp, 4
lea edx, [ebp + 8]
push eax
push edx
call fcn.0041f643
mov eax, dword [ebp + 8]
add esp, 0x10
push 0
push 0
push eax
call fcn.00426fb4
lea ecx, [ebp + 8]
mov dword [ebp - 4], esi
call fcn.00420027
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x433a98
call fcn.0040c340
add esp, 4
push eax
call fcn.00426fb4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00420a7c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407630
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x429810
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [esp + 0x38]
push ebp
mov ebp, ecx
push eax
lea ecx, [esp + 8]
call fcn.00420095
push str..
lea ecx, [esp + 8]
mov dword [esp + 0x38], 0
call fcn.00420376
lea ecx, [esp + 0x10]
call fcn.00410da3
mov ecx, dword [esp + 4]
push 0
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 1
call fcn.00410e66
test eax, eax
je 0x40776a
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov bl, 2
lea ecx, [esp + 0x1c]
call fcn.00411086
lea edx, [esp + 0x14]
lea ecx, [esp + 0x1c]
push edx
mov esi, eax
call fcn.00411155
mov eax, dword [esp + 0x1c]
push 0x10
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], bl
call dword [eax + 0x38]
test eax, eax
je 0x4076e9
lea ecx, [esp + 0x1c]
call fcn.0041104d
test eax, eax
jne 0x4076e9
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, ebp
call fcn.00407630
jmp 0x407751
lea edx, [esp + 0x48]
lea ecx, [esp + 0x1c]
push edx
call fcn.0041127e
mov eax, dword [esp + 0x48]
push str.ncstudio.dat
push eax
mov byte [esp + 0x48], 3
call fcn.00412a3f
add esp, 8
test eax, eax
je 0x407728
mov ecx, dword [esp + 0x48]
push str.ncstudio.dat.bak
push ecx
call fcn.00412a3f
add esp, 8
test eax, eax
jne 0x407744
lea edx, [esp + 0x18]
lea ecx, [esp + 0x1c]
push edx
call fcn.00411155
mov eax, dword [eax]
push eax
call edi
lea ecx, [esp + 0x18]
call fcn.00420027
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], bl
call fcn.00420027
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 1
call fcn.00420027
test esi, esi
jne 0x4076a0
pop edi
pop esi
pop ebx
lea ecx, [esp + 0x10]
call fcn.00410e1c
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 0
call fcn.00410de0
lea ecx, [esp + 4]
mov dword [esp + 0x34], 0xffffffff
call fcn.00420027
mov ecx, dword [esp + 0x2c]
pop ebp
mov dword fs:[0], ecx
add esp, 0x34
ret 4
Function at 0x4077b0
Capabilities:
Get common file path
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x429836
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push esi
mov esi, ecx
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x14]
add esi, 0x1c
push ecx
mov ecx, esi
call fcn.00420164
push str.Ncstduio
mov ecx, esi
call fcn.00420376
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x4370b8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0040c240
push eax
lea ecx, [esp + 0x10]
call fcn.00420095
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x118]
push str.setup.cfg
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x230], 0
call fcn.0042022f
mov eax, dword [eax]
lea edx, [esp + 0x118]
push eax
push 0x104
push edx
push 0x436600
push str.PATH
push str.SETTINGS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x10]
call fcn.00420027
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
call fcn.0041fd9c
lea ecx, [esp + 0x118]
mov byte [esp + 0x224], 1
push ecx
lea ecx, [esp + 0xc]
call fcn.00420376
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
pop edi
pop esi
test eax, eax
jne 0x40790a
lea ecx, [esp]
mov byte [esp + 0x21c], al
call fcn.00420027
lea ecx, [esp + 4]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00420027
xor al, al
mov ecx, dword [esp + 0x214]
mov dword fs:[0], ecx
add esp, 0x220
ret
mov eax, dword [esp]
push eax
call fcn.0040c730
add esp, 4
lea ecx, [esp]
mov byte [esp + 0x21c], 0
call fcn.00420027
lea ecx, [esp + 4]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00420027
mov ecx, dword [esp + 0x214]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x220
ret