joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10041930
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x10041963
push esi
call fcn.1004fcd0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x1004195c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x100419e9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x100419d2
mov eax, dword [esi + 8]
test eax, eax
je 0x10041987
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x100419ce
cmp eax, 2
je 0x100419d2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1004197a
cmp eax, 3
je 0x100419ad
cmp eax, 1
jne 0x1004197a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x1004197a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x1004197a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.10041a10
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x100419f8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.10041a10
add esp, 4
pop esi
ret

Function at 0x10042280
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x100422a1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x100422a1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x100422a1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x100426f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x100426fb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x100427fe
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x100d64c0]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x100d64c0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x100d64c0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x100d64c0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x100d64c0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x100d64c0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x100d64c0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x100d64c0]
xor eax, edx
inc ecx
dec edi
jne 0x10042716
pop edi
test esi, esi
je 0x10042820
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x100d64c0]
xor eax, edx
inc ecx
dec esi
jne 0x10042802
pop esi
pop ebx
not eax
ret
Function at 0x1006fec7
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1006feff
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.1006df6b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.1006df43
jmp 0x1006ff0b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x100715be
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x10071600
call fcn.10076f56
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x10071600
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x100715f7
xor eax, eax
jmp 0x10071608
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.1007160e
pop edi
pop esi
pop ebx
ret 4
Function at 0x1012993d
Capabilities:
Check for software breakpoints

Disassembly:
clc
not bl
add edi, eax
movsx bx, cl
shrd ecx, edx, cl
mov ebx, dword [edx + 0x20]
sub ch, 0x23
shr cl, 6
cmp dh, al
add ebx, eax
shr cx, 5
bts cx, 0xc
rol ch, cl
sbb cx, ax
mov dword [ebp - 8], 0
stc
stc
movsx cx, cl
mov ecx, dword [edx + 0x18]
lea esp, [esp + 0x34]
jbe 0x10212e4d
sbb bh, 0x6b
shld bx, si, 0xd
ja 0x10217c77
mov edi, dword [edx + 0x24]
adc ch, ch
jmp 0x10126950
call fcn.1012494e
jmp 0x10216bab
bt si, 6
cmp bh, 0x6a
pushfd
sub ecx, dword [edx + 0x10]
jmp 0x10120445
xor di, si
bsf bx, ax
movsx di, dl
mov edi, dword [edx + 0x24]
xchg cx, bx
add edi, eax
sub bh, dh
mov bl, bh
btr bx, 8
mov ebx, dword [edx + 0x20]
or cl, dh
add ebx, eax
cmp ah, 0x77
mov dword [ebp - 8], 0
movzx cx, bl
adc cx, 0x6508
mov ecx, dword [edx + 0x18]
test dh, dl
cmp ecx, dword [ebp - 8]
jmp 0x101f5d0d
Function at 0x4053f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x4053ff
pop dword [ebp - 0x18]
mov eax, 0x3cc2a9
add eax, 0x39156
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x695d74e3
add dword [ebp - 0x28], 0xe4f4d068
mov dword [ebp - 0x24], 0x1c1ef73c
sub dword [ebp - 0x24], 0xe9ebaaf7
mov dword [ebp - 0x20], 0x1b095005
add dword [ebp - 0x20], 0x3142f429
mov dword [ebp - 0x1c], 0x588ad85d
add dword [ebp - 0x1c], 0xa77527a3
lea eax, [ebp - 0x28]
push eax
mov eax, 0x1cb517e5
add eax, 0xe38c388b
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x5c93ff97
sub dword [ebp - 0x28], 0xe8219641
mov dword [ebp - 0x24], 0xb7b0ec9b
add dword [ebp - 0x24], 0x89bb74da
mov dword [ebp - 0x20], 0xf2d8bcec
sub dword [ebp - 0x20], 0x8f695080
mov dword [ebp - 0x1c], 0x19331956
add dword [ebp - 0x1c], 0xe6cce6aa
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3a5a8
push 0
call eax
mov ecx, 0x196d7a16
add ecx, 0xe692cada
xor edi, edi
add edi, eax
mov esi, 0x69ada8ef
add esi, 0x9694bb11
add esi, dword [ebp - 0x18]
mov ebx, 0x11180713
xor dword [ebp - 0x14], 0xe074bdc7
mov edx, dword [esi]
add dword [ebp - 0x10], eax
xor edx, ebx
add dword [ebp - 0x10], 0x2c015a86
mov dword [edi], edx
add edi, 0x4251c7dc
add edi, 0xbdae3828
add esi, 0x3644ef21
add esi, 0xc9bb10e3
loop 0x405518
add eax, 0x10693
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x401c6e
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4406d0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x451bf0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.00411c58
and dword [esp + 0x18], 0
mov esi, vtable.CBitmap.0
mov dword [esp + 0x14], esi
and dword [esp + 0x68], 0
call fcn.00419a81
mov eax, dword [eax + 0xc]
mov edi, dword [sym.imp.USER32.dll_LoadBitmapA]
push 0x8e
push eax
call edi
push eax
lea ecx, [esp + 0x18]
call fcn.00418953
and dword [esp + 0x20], 0
mov dword [esp + 0x1c], esi
mov byte [esp + 0x68], 1
call fcn.00419a81
mov eax, dword [eax + 0xc]
push 0x8f
push eax
call edi
push eax
lea ecx, [esp + 0x20]
call fcn.00418953
lea eax, [esp + 0x44]
push eax
push 0x18
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_GetObjectA]
lea eax, [esp + 0x24]
push eax
push dword [ebx + 0xe8]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x24]
push eax
mov ecx, ebx
call fcn.00418654
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push 1
push dword [esp + 0x50]
lea ecx, [ebx + 0xc8]
push dword [esp + 0x50]
mov dword [esp + 0x1c], eax
push esi
push eax
call fcn.004178ca
lea ecx, [esp + 0x14]
call fcn.0041897f
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 0
push 0xf7
push dword [ebx + 0xe8]
call edi
mov eax, dword [esp + 0x4c]
push 1
push eax
push dword [esp + 0x50]
lea eax, [eax + esi*2]
push eax
push dword [esp + 0x20]
lea ecx, [ebx + 0x74]
call fcn.004178ca
lea ecx, [esp + 0x1c]
call fcn.0041897f
push eax
push 0
push 0xf7
push dword [ebx + 0x94]
call edi
imul esi, esi, 3
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x10]
and dword [esp + 0x34], 0
lea esi, [esi + eax*2]
mov eax, dword [esp + 0x48]
lea eax, [eax + ecx*2]
and dword [esp + 0x38], 0
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], eax
lea esi, [esp + 0x34]
lea edi, [esp + 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0
movsd dword es:[edi], dword [esi]
push 0xcf0000
lea eax, [esp + 0x2c]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_AdjustWindowRect]
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
push 1
push eax
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
mov ecx, ebx
push eax
push dword [esp + 0x34]
push dword [esp + 0x34]
call fcn.004178ca
push 0
mov ecx, ebx
call fcn.004143d5
mov byte [esp + 0x68], 0
mov esi, vtable.CBitmap.0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], esi
call fcn.004020d4
or dword [esp + 0x68], 0xffffffff
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], esi
call fcn.004020d4
xor eax, eax
inc eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4024e4
Capabilities:
Get file size

Disassembly:
push 0x14
mov eax, 0x440da8
call fcn.004264bc
mov eax, dword [0x456d84]
mov edi, eax
mov eax, dword [eax + 8]
cmp eax, dword [0x443d68]
je 0x4025a5
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402525
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4025a5
cmp esi, 0x32000
jb 0x40254c
lea esi, [edi + 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x4c]
mov eax, dword [edi + 0x18]
mov edx, dword [esi]
push ebx
push 0x1021
push eax
mov ecx, esi
call dword [edx + 0x20]
test eax, eax
je 0x4025a5
push ebx
call fcn.004219b3
mov dword [ebp - 0x20], eax
pop ecx
lea eax, [ebp - 0x20]
push eax
lea esi, [ebp - 0x14]
mov dword [ebp - 0x1c], edx
call fcn.00402897
push dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00402623
push 0x446e18
mov ecx, esi
call fcn.00402623
push 2
lea esi, [edi + 4]
push ebx
mov byte [ebp - 4], 1
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x28]
push dword [ebp - 0x14]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x54]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401ef4
call fcn.00426561
ret 4

Function at 0x402b60
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, 0x456f10
test eax, eax
jne 0x402bae
lea eax, [ebp - 8]
push eax
push esi
push 0
push 0
push str.Desktop
push dword [ebp - 4]
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x402bb3
Capabilities:
Get disk information

Disassembly:
push 8
mov eax, 0x4404b8
call fcn.00426489
mov al, byte [ebp + 8]
mov byte [ebp - 0xd], al
lea eax, [ebp - 0xd]
push eax
call fcn.00422c32
mov al, byte [edi]
movsx esi, al
pop ecx
mov byte [ebp + 0xb], al
sub esi, 0x41
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
mov ecx, esi
shr ebx, cl
test ebx, ebx
je 0x402c41
test bl, 1
je 0x402c3a
mov al, byte [ebp + 0xb]
cmp al, byte [ebp - 0xd]
je 0x402c3a
call fcn.0041901a
push eax
lea ecx, [ebp - 0x14]
call fcn.00401eb1
movsx eax, byte [ebp + 0xb]
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x14]
push 0x4477a8
push eax
call fcn.004020be
mov esi, dword [ebp - 0x14]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea ecx, [esi - 0x10]
cmp eax, 3
je 0x402c49
or dword [ebp - 4], 0xffffffff
call fcn.00401ef4
inc byte [ebp + 0xb]
shr ebx, 1
jne 0x402bea
xor al, al
call fcn.00426561
ret
mov al, byte [ebp + 0xb]
mov byte [edi], al
call fcn.00401ef4
mov al, 1
jmp 0x402c43
Function at 0x402c57
Capabilities:
Get common file path

Disassembly:
push 8
mov eax, 0x440d7c
call fcn.00426489
mov esi, dword [ebp + 8]
mov eax, dword [0x456b70]
mov eax, dword [eax*4 + 0x453700]
xor ebx, ebx
add eax, 0x66
push ebx
push eax
mov ecx, esi
call fcn.00411896
mov dword [ebp - 4], ebx
lea ecx, [esi + 0x90]
mov dword [esi], vtable.CAutoUpdateDlg.0
call fcn.00401ed6
lea ecx, [esi + 0xa0]
call fcn.00401ed6
lea ecx, [esi + 0xa8]
call fcn.00401ed6
lea ecx, [esi + 0xac]
call fcn.00401ed6
lea ecx, [esi + 0xb0]
call fcn.00401ed6
lea eax, [esi + 0xb4]
push eax
mov byte [ebp - 4], 5
call fcn.004086fb
lea eax, [esi + 0xcc]
push eax
mov byte [ebp - 4], 6
call fcn.004086fb
lea eax, [esi + 0xe4]
push eax
mov byte [ebp - 4], 7
call fcn.004086fb
lea eax, [esi + 0xfc]
push eax
mov byte [ebp - 4], 8
call fcn.004086fb
lea eax, [esi + 0x114]
push eax
mov byte [ebp - 4], 9
call fcn.004086fb
mov byte [ebp - 4], 0xa
lea edi, [esi + 0x9c]
push 0x448068
lea ecx, [esi + 0xa0]
mov dword [esi + 0x98], ebx
mov byte [edi], bl
mov byte [esi + 0x9d], bl
call fcn.004029d1
lea eax, [esi + 0xa0]
push eax
push esi
call fcn.004068ac
mov byte [edi], al
call fcn.00419a81
call fcn.00419a81
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esi + 0x8c], eax
mov dword [esi + 0x78], ebx
mov dword [esi + 0x74], ebx
xor eax, eax
lea edi, [esi + 0x7c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0041901a
push eax
lea ecx, [ebp - 0x10]
call fcn.00401eb1
mov edi, 0x104
push edi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xb
call fcn.00401ffc
push eax
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push dword [ebp - 0x14]
push edi
push 0x456b78
call fcn.004236ef
add esp, 0xc
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00409979
lea eax, [ebp - 0x10]
lea edi, [esi + 0xac]
push eax
mov ecx, edi
call fcn.0040992c
push str.ncstduioTemp
mov ecx, edi
call fcn.00402623
mov eax, dword [0x456b70]
push dword [eax*4 + 0x4539b8]
lea ecx, [esi + 0xb0]
call fcn.004029d1
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov dword [esi + 0xa4], ebx
call fcn.00401ef4
mov eax, esi
call fcn.00426561
ret 4
Function at 0x402ff8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push esi
push edi
xor esi, esi
inc esi
push 0x10
mov ecx, eax
sub esi, eax
pop edi
lea edx, [esi + ecx]
and edx, 0x8000000f
jns 0x403014
dec edx
or edx, 0xfffffff0
inc edx
mov dl, byte [edx + eax]
xor byte [ecx], dl
inc ecx
dec edi
jne 0x403004
movzx ecx, byte [eax + 0xf]
push ecx
movzx ecx, byte [eax + 0xe]
push ecx
movzx ecx, byte [eax + 0xd]
push ecx
movzx ecx, byte [eax + 0xc]
push ecx
movzx ecx, byte [eax + 0xb]
push ecx
movzx ecx, byte [eax + 0xa]
push ecx
movzx ecx, byte [eax + 9]
push ecx
movzx ecx, byte [eax + 8]
push ecx
movzx ecx, byte [eax + 7]
push ecx
movzx ecx, byte [eax + 6]
push ecx
movzx ecx, byte [eax + 5]
push ecx
movzx ecx, byte [eax + 4]
push ecx
movzx ecx, byte [eax + 3]
push ecx
movzx ecx, byte [eax + 2]
push ecx
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
push ecx
push eax
push str._02X_02X_02X_02X__02X_02X_02X_02X__02X_02X_02X_02X__02X_02X_02X_02X
push dword [esp + 0x50]
call fcn.004020be
add esp, 0x48
pop edi
pop esi
ret
Function at 0x403531
Capabilities:
Create directory

Disassembly:
push 0x124
mov eax, 0x441406
call fcn.004264f2
mov ebx, ecx
mov dword [ebp - 0x128], ebx
call fcn.0043e8f0
test al, al
je 0x40355d
push 0x44789c
call fcn.0043ee70
jmp 0x4035b7
cmp byte [ebx + 0x9c], 0
je 0x4035ad
lea ecx, [ebx + 0xa0]
mov eax, dword [ecx]
push dword [eax - 0xc]
call fcn.00401ffc
lea ecx, [ebp - 0x118]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x40357c
lea edi, [ebp - 0x118]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40358d
mov esi, 0x44789c
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0xffffffffffffffff
lea ecx, [ebx + 0xa0]
movsb byte es:[edi], byte [esi]
call fcn.00409979
jmp 0x4035c5
push 0x44789c
call fcn.0043eeb0
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
push str.ncstudio.dat
lea ecx, [ebp - 0x11c]
call fcn.00402853
and dword [ebp - 4], 0
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x120]
call fcn.00402853
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x120]
push eax
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.00406218
mov ecx, dword [ebp - 0x120]
add ecx, 0xfffffff0
call fcn.00401ef4
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x11c]
add ecx, 0xfffffff0
call fcn.00401ef4
lea edi, [ebx + 0xb4]
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
mov dword [ebp - 0x11c], edi
test eax, 0xfffffffc
je 0x403715
mov eax, dword [0x456b70]
push dword [eax*4 + 0x4539c0]
lea esi, [ebx + 0xb0]
mov ecx, esi
call fcn.00402623
mov esi, dword [esi]
push 4
push 0
push esi
mov ecx, ebx
call fcn.004138f8
cmp eax, 6
jne 0x403715
push 0x4478a4
mov dword [ebx + 0xa4], 1
call fcn.004025c8
pop ecx
call fcn.0043ecf0
push eax
lea ecx, [ebx + 0xa8]
call fcn.004029d1
add ebx, 0xac
push dword [ebx]
call fcn.0043e4b0
pop ecx
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebx, dword [edi + 0xc]
lea esi, [ebp - 0x124]
call fcn.00408d5a
mov edi, dword [ebp - 0x11c]
mov ebx, dword [edi + 0x10]
lea esi, [ebp - 0x130]
call fcn.00408d5a
mov eax, dword [ebp - 0x124]
test eax, eax
je 0x4036e3
cmp eax, dword [ebp - 0x130]
je 0x4036e8
call fcn.00422a6f
mov eax, dword [ebp - 0x120]
cmp eax, dword [ebp - 0x12c]
je 0x403715
lea esi, [ebp - 0x124]
call fcn.004086a8
mov edi, dword [ebp - 0x128]
mov ecx, eax
call fcn.00406b94
call fcn.004086d0
jmp 0x4036bd
call fcn.00426575
ret
Function at 0x405344
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x104
lea ebp, [esp - 4]
mov eax, dword [0x451bf0]
xor eax, ebp
mov dword [ebp + 0x104], eax
push 4
mov eax, 0x440b98
call fcn.00426489
cmp byte [0x457858], 0
mov edi, 0x457858
jne 0x4053da
push 1
push 0
lea eax, [ebp]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402853
and dword [ebp - 4], 0
mov esi, 0x104
push esi
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.004029d1
push 0x447990
lea ecx, [ebp - 0x10]
call fcn.00402623
push dword [ebp - 0x10]
push esi
push edi
call fcn.004236ef
mov ecx, dword [ebp - 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.00401ef4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.0042116f
add ebp, 0x108
leave
ret

Function at 0x4053ff
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x104
lea ebp, [esp - 4]
mov eax, dword [0x451bf0]
xor eax, ebp
mov dword [ebp + 0x104], eax
push 4
mov eax, 0x440b98
call fcn.00426489
cmp byte [0x457750], 0
mov edi, 0x457750
jne 0x405495
push 1
push 2
lea eax, [ebp]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402853
and dword [ebp - 4], 0
mov esi, 0x104
push esi
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.004029d1
push 0x447990
lea ecx, [ebp - 0x10]
call fcn.00402623
push dword [ebp - 0x10]
push esi
push edi
call fcn.004236ef
mov ecx, dword [ebp - 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.00401ef4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.0042116f
add ebp, 0x108
leave
ret

Function at 0x405527
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa0
mov eax, dword [0x451bf0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.00425b80
add esp, 0xc
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x405575
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x94
call esi
test eax, eax
je 0x405588
mov eax, dword [ebp - 0x18]
dec eax
je 0x405588
dec eax
jne 0x405588
cmp dword [ebp - 0x24], 6
sbb al, al
inc al
jmp 0x40558a
xor al, al
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
pop esi
call fcn.0042116f
add ebp, 0x78
leave
ret
Function at 0x40559a
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x160
mov eax, 0x440b62
call fcn.004264f2
mov eax, dword [ebp + 8]
and dword [ebp - 0x15c], 0
mov dword [ebp - 0x154], eax
mov dword [ebp - 4], 1
test byte [0x457748], 1
mov esi, 0x457744
jne 0x4055f4
or dword [0x457748], 1
push 0x448068
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00402853
push 0x441a2d
call fcn.004216bb
pop ecx
mov byte [ebp - 4], 1
test byte [0x457748], 2
jne 0x405626
or dword [0x457748], 2
push 0x447898
mov ecx, 0x457014
mov byte [ebp - 4], 3
call fcn.00402853
push 0x441a1f
call fcn.004216bb
pop ecx
mov byte [ebp - 4], 1
push 0x447b40
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x164]
push eax
call fcn.004084c1
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x150]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ecx, dword [ebp - 0x164]
add ecx, 0xfffffff0
mov dword [ebp - 0x158], eax
call fcn.00401ef4
cmp dword [ebp - 0x158], 0xffffffff
je 0x40576b
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
jmp 0x405748
lea eax, [ebp - 0x124]
push eax
push str.Next_file_name_is:__s_n
call fcn.00422c97
test byte [ebp - 0x150], 0x10
pop ecx
pop ecx
je 0x405748
lea eax, [ebp - 0x124]
push eax
mov ecx, 0x457014
call fcn.004088b2
test eax, eax
je 0x405748
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp + 0x10]
call fcn.004088b2
test eax, eax
je 0x405799
push ecx
lea eax, [ebp + 0x10]
mov dword [ebp - 0x16c], esp
mov ecx, esp
push eax
call fcn.004098a1
push 0x447990
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x15c]
push eax
mov byte [ebp - 4], 4
call fcn.004084c1
add esp, 8
mov ecx, esp
mov dword [ebp - 0x168], esp
lea edx, [ebp - 0x124]
push edx
push eax
push ecx
mov byte [ebp - 4], 5
call fcn.004084c1
add esp, 0xc
lea eax, [ebp - 0x160]
push eax
mov byte [ebp - 4], 6
call fcn.0040559a
mov ecx, dword [ebp - 0x160]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.00401ef4
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x15c]
add ecx, 0xfffffff0
call fcn.00401ef4
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x158]
call edi
test eax, eax
jne 0x40567a
push dword [ebp - 0x158]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x154]
push esi
call fcn.004098a1
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00401ef4
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00401ef4
mov eax, dword [ebp - 0x154]
call fcn.00426575
ret
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call fcn.0040992c
jmp 0x40576b