joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1018dce6
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x101e005c], 0
mov byte [0x101e0060], 0
mov dword [0x101e0050], 0x17f8
mov dword [0x101e0058], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x101e0058]
add eax, 1
mov dword [0x101e0058], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1018dd2b
xor eax, eax
mov dword [0x101e0054], 0x13a1
mov dword [0x101e0058], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x101e0064], 0
mov edi, dword [0x101e0050]
add edi, 0x26cf
mov dword [0x101e0054], edi
mov edi, dword [0x101e005c]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x101e0064], esi
mov eax, esi
cdq
idiv ecx
mov dword [0x101e005c], edx
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x101e0060], cl
mov dword [0x101e0054], 0x194a
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov esi, dword [0x101e0050]
add esi, 0x634
mov dword [0x101e0054], esi
mov cl, byte [0x101e0060]
mov esi, dword [0x101e005c]
mov byte [ebx + esi], cl
mov esi, dword [0x101e0058]
add esi, 1
mov dword [0x101e0058], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x1018dd6a
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1018e0f1
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x101e0054], 0x157c
mov dword [0x101e0058], 0
mov dword [0x101e005c], 0
mov dword [0x101e0068], 0
mov dword [0x101e0050], 0x252e
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
jne 0x1018e16c
mov dword [0x101e0050], 0x1d6f
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov edi, eax
add edi, 1
add ecx, 1
mov dword [0x101e0054], 0xffffef4b
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x101e0058], edx
mov dword [0x101e0050], 0x22ee
mov ecx, dword [ebp - 0x20]
movzx ebx, byte [ecx + edx]
mov ecx, dword [ebp - 0x30]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x101e005c], edx
mov dword [0x101e0050], 0xffffd0d1
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x101e0060], cl
mov dword [0x101e0050], 0xffffc08d
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov dword [0x101e0054], 0x138c
mov cl, byte [0x101e0060]
mov edx, dword [0x101e005c]
mov byte [ebx + edx], cl
mov edx, dword [0x101e0058]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x101e005c]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x101e0068], ecx
mov edx, dword [0x101e0054]
mov esi, edx
add esi, 0xfffff4f6
mov dword [0x101e0050], esi
mov cl, byte [ebx + ecx]
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x2c]
mov ch, byte [esi + ebx]
add edx, 0xffffde87
mov dword [0x101e0050], edx
xor ch, cl
mov byte [0x101e006c], ch
mov dword [0x101e0054], 0xb66
mov edx, dword [ebp - 0x1c]
mov byte [edx + ebx], ch
mov edx, dword [0x101e0050]
add edx, 0x1496
mov dword [0x101e0050], edx
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x38], edi
je 0x1018e15a
mov eax, dword [0x101e005c]
mov ecx, dword [0x101e0058]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], edx
jmp 0x1018e16c
Function at 0x1018e2ae
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x80]
lea ecx, [esp + 0x20]
mov edx, dword [0x101e0050]
add edx, 0xffffe5e9
mov dword [0x101e0054], edx
mov dword [0x101e0050], 0x1979
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.1018d6d5
lea ecx, [0x1018d9c2]
mov edx, dword [0x101e0050]
mov esi, dword [esp + 0x80]
mov dword [esp + 0x30], esi
mov dword [esp + 0x44], 0x15a200
mov esi, dword [0x101e003c]
mov dword [esp + 0x70], esi
mov esi, dword [0x101e0040]
mov dword [esp + 0x3c], esi
mov dword [0x101e0054], 0x28c4
mov esi, dword [0x101e0044]
mov dword [esp + 0x48], esi
mov esi, dword [0x101e0048]
mov dword [esp + 0x38], esi
mov esi, dword [0x101e004c]
mov dword [esp + 0x6c], esi
add edx, 0xffffee29
mov dword [0x101e0050], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
je 0x1018e38a
mov dword [0x101e0054], 0x1aac
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x1018e35d
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
jne 0x1018e36c
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov dword [0x101e0054], 0x12f6
mov dword [0x101e0050], 0x804
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x5c], edx
call fcn.1018d448
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
jne 0x1018e433
lea eax, [esp + 0x20]
mov ecx, dword [0x101e0050]
add ecx, 0xffffe7a5
mov dword [0x101e0050], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1018d065
mov dword [0x101e0054], 0x5df
mov ecx, esp
lea edx, [esp + 0x20]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov ecx, dword [0x101e0050]
add ecx, 0xfffff5b2
mov dword [0x101e0054], ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x401f20
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x401f6b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401f64
test esi, esi
je 0x401f64
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401f40
mov dword [esp], 0x408044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402150
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4021a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402274
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x4021de
cmp eax, 4
jne 0x402200
test esi, esi
je 0x4021f2
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x4021e4
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x40223f
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x402231
cmp ecx, 0x40
je 0x4021f2
cmp ecx, 4
je 0x4021f2
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402150
lea esi, [esi]
Function at 0x3903700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0390378f
jae 0x390370e
xor ecx, ecx
call fcn.0390378f
jae 0x390373d
xor eax, eax
call fcn.0390378f
jae 0x390374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0390378f
adc al, al
jae 0x390372f
jne 0x3903779
stosb byte es:[edi], al
jmp 0x3903711
call fcn.0390379b
sub ecx, ebx
jne 0x3903756
call fcn.03903799
jmp 0x3903775
lodsb al, byte [esi]
shr eax, 1
je 0x3903783
adc ecx, ecx
jmp 0x3903772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.03903799
cmp eax, 0x7d00
jae 0x3903772
cmp ah, 5
jae 0x3903773
cmp eax, 0x7f
ja 0x3903774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x3903711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x4226cc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x4226db
pop dword [ebp - 0x10]
mov eax, 0x4226db
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x4136a
push 0
mov eax, 0x6a7f5b53
sub eax, 0x6a3d093b
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0x5593
mov edx, eax
mov edi, 0xaed00d9d
sub edi, 0xae8cb99d
add edi, dword [ebp - 0x10]
mov esi, 0xacf5238b
add esi, 0xd1d64b0c
sub dword [ebp - 4], 0x6166b5ba
mov ebx, dword [edi]
xor dword [ebp - 0xc], 0x6645c25b
xor ebx, esi
add dword [ebp - 0xc], 0xadcdd743
mov dword [edx], ebx
sub dword [ebp - 8], edi
add edx, 0x33463d3f
sub edx, 0x33463d3b
add edi, 4
loop 0x42272f
add eax, 0x7086f8e
sub eax, 0x707266f
xor ebx, ebx
add ebx, eax
add eax, 0xea029178
sub eax, 0xea029173
mov ecx, 0x7db23274
sub ecx, 0x7d723274
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x403560
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
and byte [ebp - 0x14], 0
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and byte [ebp - 0x118], 0
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x117]
push 5
rep stosd dword es:[edi], eax
push dword [ebp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.USER32.dll_GetWindow]
call edi
push dword [ebp + 0xc]
mov ebx, eax
lea eax, [ebp - 0x14]
push str.Dialog_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, 0x104
lea eax, [ebp - 0x118]
push esi
push eax
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.00401457
add esp, 0x1c
test eax, eax
jne 0x4035e4
lea eax, [ebp - 0x118]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [ebp - 0x118], 0
mov esi, dword [sym.imp.USER32.dll_SetWindowTextA]
je 0x403605
cmp dword [ebp + 0x10], 0
jne 0x403605
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 8]
call esi
test ebx, ebx
je 0x403640
push 0xfffffffffffffff4
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0x208
push dword [0x416174]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00401457
add esp, 0x10
test eax, eax
je 0x403637
push dword [0x416174]
push ebx
call esi
push 2
push ebx
call edi
mov ebx, eax
jmp 0x403605
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x4040b7
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and byte [ebp - 0x104], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
and byte [ebp - 0x208], 0
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x207]
cmp dword [0x416190], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
je 0x403fa1
push dword [0x416178]
call fcn.004038a7
cmp eax, dword [0x416118]
pop ecx
je 0x403fa1
push 0x23
pop eax
mov dword [0x416138], eax
jmp 0x4040b4
push ebx
push esi
push dword [ebp + 8]
call 0x4040b7
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
test eax, eax
mov dword [0x416138], eax
mov edi, str._spftw_d.pkg
jne 0x404057
cmp dword [0x4160ec], 0
jne 0x404066
push dword [0x416178]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x208]
push eax
add byte [eax + 0x60], dl
clc
mov eax, dword [esp - 4]
add eax, 2
mov dword [esp - 4], eax
mov eax, dword [esp - 8]
sub esp, 4
ret
mov byte [edx + 3], 1
pop ebx
ret

Function at 0x404be2
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x657], 0xf8
lea eax, [ebp - 0x664]
push eax
call fcn.0040408a
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040403f
add esp, 0xc
mov dword [ebp - 0x67c], eax
and byte [ebp - 0x524], 0
and byte [ebp - 0x523], 0
mov byte [ebp - 0x522], 0x15
and byte [ebp - 0x521], 0
mov byte [ebp - 0x520], 0xa2
mov byte [ebp - 0x51f], 0x8f
mov byte [ebp - 0x51e], 0x8b
mov byte [ebp - 0x51d], 0x9a
mov byte [ebp - 0x51c], 0xac
mov byte [ebp - 0x51b], 0x98
mov byte [ebp - 0x51a], 0x8f
mov byte [ebp - 0x519], 0x8f
mov byte [ebp - 0x518], 0xea
lea eax, [ebp - 0x524]
push eax
call fcn.0040408a
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040403f
add esp, 0xc
mov dword [ebp - 0x39c], eax
call fcn.0040407a
mov dl, byte [edx + edi*4 + 0x19]
and byte [ebp - 0x514], 0
and byte [ebp - 0x513], 0
mov byte [ebp - 0x512], 0xe3
and byte [ebp - 0x511], 0
mov byte [ebp - 0x510], 0x5b
mov byte [ebp - 0x50f], 0x79
invalid
Function at 0x40141e
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x214
lea eax, [esp]
push ebp
push esi
mov esi, dword [esp + 0x228]
push edi
mov edi, dword [esp + 0x22c]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or eax, 9
push eax
push dword [esp + 0x230]
push dword [esp + 0x230]
call fcn.00406483
test eax, eax
jne 0x401527
xor ebp, ebp
test byte [esp + 0x22c], 2
je 0x401493
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebp
push eax
lea eax, [esp + 0x28]
push eax
push ebp
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x401503
push 0x105
lea eax, [esp + 0x18]
push eax
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x4014ce
test edi, edi
jne 0x401503
push dword [esp + 0x22c]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call fcn.0040141e
test eax, eax
jne 0x4014d8
push 0x105
lea eax, [esp + 0x18]
push eax
push edi
push dword [esp + 0x18]
call ebp
test eax, eax
je 0x4014a6
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406a91
test eax, eax
jne 0x401514
push dword [esp + 0x228]
push dword [esp + 0x228]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x401527
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x401527
push 0
push esi
push dword [esp + 0x230]
push dword [esp + 0x230]
call eax
pop edi
pop esi
pop ebp
add esp, 0x214
ret 0xc
Function at 0x40331f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push edi
xor edi, edi
test ecx, ecx
js 0x403348
mov eax, dword [0x429598]
push edi
add eax, ecx
push edi
push eax
push dword [0x40a014]
mov dword [0x40c954], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.004031a0
test eax, eax
js 0x40341e
push ebx
push esi
push 4
lea eax, [ebp + 8]
push eax
push dword [0x40a014]
call fcn.00406af3
test eax, eax
je 0x403419
push dword [ebp + 8]
add dword [0x40c954], 4
call fcn.004031a0
mov esi, eax
test esi, esi
js 0x403415
cmp dword [ebp + 0x10], edi
jne 0x4033e9
mov ecx, dword [ebp + 8]
test ecx, ecx
jle 0x403415
mov ebx, 0x4000
mov edi, 0x4149f8
cmp ecx, ebx
mov eax, ebx
cmovl eax, ecx
push eax
push edi
push dword [0x40a014]
mov dword [ebp - 4], eax
call fcn.00406af3
test eax, eax
je 0x403419
push dword [ebp - 4]
push edi
push dword [ebp + 0xc]
call fcn.00406bb6
test eax, eax
je 0x4033e5
mov eax, dword [ebp - 4]
add esi, eax
mov ecx, dword [ebp + 8]
add dword [0x40c954], eax
sub ecx, eax
mov dword [ebp + 8], ecx
test ecx, ecx
jg 0x4033a1
jmp 0x403415
push 0xfffffffffffffffe
jmp 0x40341b
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x14]
cmp dword [ebp + 8], eax
cmovl eax, dword [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403419
mov esi, dword [ebp - 4]
add dword [0x40c954], esi
mov eax, esi
jmp 0x40341c
push 0xfffffffffffffffd
pop eax
pop esi
pop ebx
pop edi
leave
ret 0x10

Function at 0x403441
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
cmp dword [ebp + 8], 0
je 0x403469
mov eax, dword [0x40c968]
test eax, eax
je 0x403460
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x40c968], 0
leave
ret
cmp dword [0x40c968], 0
je 0x40347b
push 0
call fcn.004063ba
leave
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x429540]
jbe 0x4034e5
cmp dword [0x428538], 0
je 0x4034c0
test byte [0x429634], 1
je 0x4034e5
call fcn.00403423
push eax
lea eax, [ebp - 0x80]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push 0
call fcn.00405ef4
leave
ret
push 0
push 0x40379f
push 0
push 0x6f
push dword [0x428534]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 5
push eax
mov dword [0x40c968], eax
call dword [sym.imp.USER32.dll_ShowWindow]
leave
ret
Function at 0x405fd8
Capabilities:
Create directory

Disassembly:
push esi
xor esi, esi
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405ff2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret 4
Function at 0x406349
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
lea eax, [ebp - 0x23c]
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
ja 0x406383
test eax, eax
je 0x406383
add eax, eax
cmp word [ebp + eax - 0x23e], 0x5c
je 0x406385
mov ecx, 0x4082a8
jmp 0x40638a
xor eax, eax
mov ecx, 0x4082aa
push dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x23c]
add eax, ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4063e8
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40640b
push dword [esp + 8]
push dword [esp + 8]
call fcn.004064b1
pop ecx
pop ecx
inc dword [0x429610]
ret 8

Function at 0x4064b1
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebx, 0x400
mov dword [0x426680], 0x55004e
mov ebp, 0x426680
mov dword [0x426684], 0x4c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
je 0x406507
push 1
push 0
push esi
call fcn.00406ac6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebp
push esi
call edi
test eax, eax
je 0x4065e7
cmp eax, ebx
jg 0x4065e7
push ebx
mov esi, 0x425e80
push esi
push dword [esp + 0x1c]
call edi
test eax, eax
je 0x4065e7
cmp eax, ebx
jg 0x4065e7
push esi
push ebp
push str._ls_ls_r_n
push 0x425a80
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x429550]
add esp, 0x10
mov ebp, eax
push dword [ecx + 0x128]
push esi
call fcn.00406053
push 4
push 0xc0000000
push esi
call fcn.00406ac6
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4065e7
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [ebp + 0xa]
add ecx, esi
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4065e0
push esi
push edi
push ebx
call fcn.00406af3
test eax, eax
je 0x4065e0
push str._Rename__r_n
push edi
call fcn.00406ce1
test eax, eax
jne 0x4065ec
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0xa
mov ecx, esi
push ebp
push 0x425a80
lea eax, [ecx + edi]
push eax
call fcn.0040685f
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esi + ebp]
push eax
push edi
push ebx
call fcn.00406bb6
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x40899c
add eax, 0xa
push eax
call fcn.00406ce1
mov ecx, eax
test ecx, ecx
je 0x4065b1
lea edx, [edi + esi]
jmp 0x40660b
mov al, byte [edx]
mov byte [edx + ebp], al
dec edx
cmp edx, ecx
ja 0x406605
sub ecx, edi
inc ecx
jmp 0x4065b3
Function at 0x406730
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.00406d48
mov edi, eax
cmp edi, 0xffffffff
je 0x406773
test byte [ebp + 0xc], 1
push dword [ebp + 8]
je 0x406754
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40675a
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x406763
xor eax, eax
inc eax
jmp 0x406775
test byte [ebp + 0xc], 4
jne 0x406773
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop ebp
ret 8

Function at 0x4067e3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov ebx, 0x425280
push ebx
call fcn.00406cc5
push ebx
call fcn.00406d70
mov esi, eax
test esi, esi
je 0x406858
push esi
call fcn.00406ee8
test byte [0x42954c], 0x80
je 0x40681c
movzx eax, word [esi]
test ax, ax
je 0x406858
cmp eax, 0x5c
je 0x406858
sub esi, ebx
sar esi, 1
jmp 0x406836
call fcn.0040677a
test eax, eax
je 0x406830
test byte [eax], 0x10
je 0x406858
push ebx
call fcn.00406ebb
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
cmp eax, esi
jg 0x406822
call fcn.00406701
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406858
xor eax, eax
inc eax
jmp 0x40685a
xor eax, eax
pop esi
pop ebx
ret 4

Function at 0x406881
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x424a38], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x424a38
xor eax, eax
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4068c0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4