joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443b10
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov ebp, dword [esp + 0x44]
movzx eax, word [ebp]
mov dword [esp], 0x999afdcf
mov byte [esp + 4], 0
mov ecx, 0x2524631b
movzx edx, byte [esp + ecx - 0x2524631b]
mov esi, ecx
and esi, edx
add edx, ecx
add esi, esi
mov edi, edx
sub edi, esi
and edx, 1
xor edi, 1
lea edx, [edi + edx*2]
add dl, 0x78
mov byte [esp + ecx - 0x2524631b], dl
inc ecx
cmp ecx, 0x25246320
jne 0x443b30
xor ecx, ecx
cmp dword [esp], eax
setne cl
xor eax, eax
jmp dword [ecx*4 + 0x44f9ac]
Function at 0x444630
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov edi, dword [esp + 0x4c]
mov ebp, dword [esp + 0x48]
mov esi, dword [esp + 0x3c]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0x444650
mov ebx, eax
sar ebx, 1
cmp ebx, 0xfffffffb
jge 0x44466b
mov eax, 0xffffffff
jmp 0x44466e
add eax, 0xa
push eax
call fcn.0040c820
add esp, 4
mov dword [eax], 0x3f005c
mov dword [eax + 4], 0x5c003f
mov word [eax + 8], 0
mov ecx, eax
add ecx, 8
movzx edx, word [esi]
test dx, dx
je 0x4446b1
add esi, 2
nop
nop
nop
nop
nop
nop
mov word [ecx], dx
add ecx, 2
movzx edx, word [esi]
add esi, 2
test dx, dx
jne 0x4446a0
mov word [ecx], 0
lea ecx, [ebx*2 + 8]
mov word [esp + 8], cx
lea ecx, [ebx*2 + 0xa]
mov word [esp + 0xa], cx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0x18
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 0x40
lea ecx, [esp + 8]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp], 0xd8dbdac5
mov word [esp + 4], 0
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + ecx]
mov ebx, ecx
and ebx, 1
xor ebx, 0xd1695251
mov edx, ecx
and edx, 6
sub edx, ebx
xor edx, esi
add edx, 0x5333f796
mov esi, edx
xor esi, 0x3c255c02
and edx, 0x1caa1fd
add edx, edx
sub edx, esi
mov esi, edx
and esi, 1
xor edx, 1
lea edx, [edx + esi*2]
mov byte [esp + ecx], dl
inc ecx
cmp ecx, 6
jne 0x444720
mov esi, dword [esp]
mov ecx, dword [0x450e9c]
test ecx, ecx
je 0x4447c1
xor edx, edx
mov ebx, dword [0x450ea0]
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebx + edx*8], 0x266686e9
je 0x444790
inc edx
cmp ecx, edx
jne 0x444780
jmp 0x4447c1
mov ecx, dword [ebx + edx*8 + 4]
cmp ecx, esi
je 0x4447c1
mov edx, esp
lea esi, [esp + 0x10]
push edi
push ebp
push edx
push esi
push dword [esp + 0x54]
push dword [esp + 0x54]
push 6
push dword [0x450ea4]
push ecx
mov edi, eax
call fcn.00441230
add esp, 0x24
mov esi, eax
mov eax, edi
push eax
call fcn.0040c830
add esp, 4
mov eax, esi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4447e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov ebx, dword [ebp + 8]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + eax + 2], 0
lea eax, [eax + 2]
jne 0x444800
mov esi, eax
sar esi, 1
cmp esi, 0xfffffffb
jge 0x44481b
mov eax, 0xffffffff
jmp 0x44481e
add eax, 0xa
push eax
call fcn.0040c820
add esp, 4
mov dword [eax], 0x3f005c
mov dword [eax + 4], 0x5c003f
lea ecx, [esi + 4]
mov word [eax + 8], 0
mov edx, eax
add edx, 8
movzx edi, word [ebx]
test di, di
je 0x444861
add ebx, 2
nop
nop
nop
mov word [edx], di
add edx, 2
movzx edi, word [ebx]
add ebx, 2
test di, di
jne 0x444850
mov word [edx], 0
mov edx, ecx
and edx, 0xfffd
and esi, 2
mov edi, esi
xor edi, 2
imul edi, edx
or ecx, 2
imul ecx, esi
lea edx, [ecx + edi]
mov word [esp], dx
add ecx, edi
add ecx, 2
mov word [esp + 2], cx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0x40
mov ecx, esp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0xd8dbdac5
mov word [esp + 0x24], 0
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + ecx + 0x20]
mov edi, ecx
and edi, 1
xor edi, 0xd1695251
mov edx, ecx
and edx, 6
sub edx, edi
xor edx, esi
add edx, 0x5333f796
mov esi, edx
xor esi, 0x3c255c02
and edx, 0x1caa1fd
add edx, edx
sub edx, esi
mov esi, edx
and esi, 1
xor edx, 1
lea edx, [edx + esi*2]
mov byte [esp + ecx + 0x20], dl
inc ecx
cmp ecx, 6
jne 0x4448e0
mov esi, dword [esp + 0x20]
mov ecx, dword [0x450e9c]
test ecx, ecx
je 0x444979
xor edx, edx
mov edi, dword [0x450ea0]
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x87573896
je 0x444950
inc edx
cmp ecx, edx
jne 0x444940
jmp 0x444979
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, esi
je 0x444979
lea edx, [esp + 0x20]
lea esi, [esp + 8]
push edx
push esi
push 2
push dword [0x450ea4]
push ecx
mov edi, eax
call fcn.00441230
add esp, 0x14
mov esi, eax
mov eax, edi
push eax
call fcn.0040c830
add esp, 4
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x44498f
mov eax, dword [esp + 0x40]
mov dword [ecx], eax
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4449a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [esp], 0xd8dbdac5
mov word [esp + 4], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax]
mov ebx, eax
and ebx, 1
xor ebx, 0xd1695251
mov edx, eax
and edx, 6
sub edx, ebx
xor edx, ecx
add edx, 0x5333f796
mov ecx, edx
xor ecx, 0x3c255c02
and edx, 0x1caa1fd
add edx, edx
sub edx, ecx
mov ecx, edx
and ecx, 1
xor edx, 1
lea ecx, [edx + ecx*2]
mov byte [esp + eax], cl
inc eax
cmp eax, 6
jne 0x4449d0
mov eax, dword [esp]
mov edx, dword [0x450e9c]
test edx, edx
je 0x444a68
xor ebx, ebx
mov ecx, dword [0x450ea0]
nop
nop
nop
nop
nop
nop
nop
cmp dword [ecx + ebx*8], 0xa70a987f
je 0x444a40
inc ebx
cmp edx, ebx
jne 0x444a30
jmp 0x444a68
mov edx, dword [ecx + ebx*8 + 4]
cmp edx, eax
je 0x444a68
mov eax, esp
lea ecx, [esp + 0x1c]
push 5
push 0x18
push eax
push ecx
push dword [ebp + 8]
push 5
push dword [0x450ea4]
push edx
call fcn.00441230
add esp, 0x20
test edi, edi
je 0x444a72
mov ecx, dword [esp + 8]
mov dword [edi], ecx
test esi, esi
je 0x444a7e
cmp byte [esp + 0x15], 0
setne byte [esi]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x444a90
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov dword [esp], 0xd8dbdac5
mov word [esp + 4], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [esp + eax]
mov ebp, eax
and ebp, 1
xor ebp, 0xd1695251
mov ebx, eax
and ebx, 6
sub ebx, ebp
xor ebx, edi
add ebx, 0x5333f796
mov edi, ebx
xor edi, 0x3c255c02
and ebx, 0x1caa1fd
add ebx, ebx
sub ebx, edi
mov edi, ebx
and edi, 1
xor ebx, 1
lea ebx, [ebx + edi*2]
mov byte [esp + eax], bl
inc eax
cmp eax, 6
jne 0x444ac0
mov eax, dword [esp]
mov ebx, dword [0x450e9c]
test ebx, ebx
je 0x444b5e
xor ebp, ebp
mov edi, dword [0x450ea0]
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + ebp*8], 0xd41f89d1
je 0x444b30
inc ebp
cmp ebx, ebp
jne 0x444b20
jmp 0x444b5e
mov ebx, dword [edi + ebp*8 + 4]
cmp ebx, eax
je 0x444b5e
lea eax, [esp + 8]
push 0
push 0
push edx
push ecx
push eax
push 0
push 0
push 0
push dword [esp + 0x44]
push 9
push dword [0x450ea4]
push ebx
call fcn.00441230
add esp, 0x30
cmp eax, 0x103
jne 0x444c19
mov dword [esp], 0xd8dbdac5
mov word [esp + 4], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax]
mov edi, eax
and edi, 1
xor edi, 0xd1695251
mov ecx, eax
and ecx, 6
sub ecx, edi
xor ecx, edx
add ecx, 0x5333f796
mov edx, ecx
xor edx, 0x3c255c02
and ecx, 0x1caa1fd
add ecx, ecx
sub ecx, edx
mov edx, ecx
and edx, 1
xor ecx, 1
lea ecx, [ecx + edx*2]
mov byte [esp + eax], cl
inc eax
cmp eax, 6
jne 0x444b80
mov eax, dword [esp]
mov ecx, dword [0x450e9c]
test ecx, ecx
je 0x444c11
xor edx, edx
mov edi, dword [0x450ea0]
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x53f09cfa
je 0x444bf0
inc edx
cmp ecx, edx
jne 0x444be0
jmp 0x444c11
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, eax
je 0x444c11
push 0
push 0
push dword [esp + 0x2c]
push 3
push dword [0x450ea4]
push ecx
call fcn.00441230
add esp, 0x18
test eax, eax
js 0x444c19
mov eax, dword [esp + 8]
test esi, esi
je 0x444c2c
xor ecx, ecx
cmp eax, 0xc0000011
je 0x444c2a
mov ecx, dword [esp + 0xc]
mov dword [esi], ecx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x444de0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
xor ebx, ebx
nop
nop
nop
cmp word [edi + ebx], 0
lea ebx, [ebx + 2]
jne 0x444e00
add ebx, 0xfffffffe
and ebx, 0xfffe
mov word [esp + 8], bx
add ebx, 2
mov word [esp + 0xa], bx
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], 0x18
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], 0x40
lea eax, [esp + 8]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp], 0xd8dbdac5
mov word [esp + 4], 0
xor eax, eax
movzx ebx, byte [esp + eax]
mov ebp, eax
and ebp, 1
xor ebp, 0xd1695251
mov edi, eax
and edi, 6
sub edi, ebp
xor edi, ebx
add edi, 0x5333f796
mov ebx, edi
xor ebx, 0x3c255c02
and edi, 0x1caa1fd
add edi, edi
sub edi, ebx
mov ebx, edi
and ebx, 1
xor edi, 1
lea ebx, [edi + ebx*2]
mov byte [esp + eax], bl
inc eax
cmp eax, 6
jne 0x444e60
mov eax, dword [esp]
mov edi, dword [0x450e9c]
test edi, edi
je 0x444ef2
xor ebx, ebx
mov ebp, dword [0x450ea0]
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebp + ebx*8], 0x9ecf05eb
je 0x444ed1
inc ebx
cmp edi, ebx
jne 0x444ec0
jmp 0x444ef2
mov edi, dword [ebp + ebx*8 + 4]
cmp edi, eax
je 0x444ef2
lea eax, [esp + 0x10]
push esi
push eax
push edx
push ecx
push 4
push dword [0x450ea4]
push edi
call fcn.00441230
add esp, 0x1c
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4014a3
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x124]
push ebx
sub esp, 0x13c
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov esi, dword [ebp + 0xc]
and edi, 0x300
mov dword [esp], ebx
mov eax, edi
mov dword [esp + 4], esi
or eax, 8
mov dword [esp + 8], eax
call fcn.00407c43
sub esp, 0x10
test eax, eax
jne 0x4015ae
mov eax, dword [ebp + 0x10]
and eax, 1
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x124]
lea edx, [ebp - 0x11d]
mov dword [esp + 0xc], 0x105
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea edx, [ebp - 0x11d]
sub esp, 0x10
test eax, eax
jne 0x401564
cmp dword [ebp - 0x12c], 0
mov eax, dword [ebp - 0x124]
je 0x40154a
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
push ecx
jmp 0x4015ae
mov ecx, dword [ebp + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.004014a3
sub esp, 0xc
test eax, eax
je 0x4014f4
mov eax, dword [ebp - 0x124]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov dword [esp], 3
call fcn.0040896b
push edx
test eax, eax
je 0x40159f
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call eax
sub esp, 0x10
jmp 0x4015ae
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push edx
push edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x4039fd
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x428460]
cmp dword [ebp + 8], 0
je 0x403a28
test eax, eax
je 0x403a1c
mov dword [esp], eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push ecx
mov dword [0x428460], 0
jmp 0x403a92
test eax, eax
je 0x403a3b
mov dword [esp], 0
call fcn.004089dd
push edx
jmp 0x403a92
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x437180]
jbe 0x403a92
mov eax, dword [0x4371ac]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x403948
mov dword [esp + 8], 0
mov dword [esp + 4], 0x6f
mov dword [esp], eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
sub esp, 0x14
mov dword [0x428460], eax
mov dword [esp + 4], 5
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push eax
push eax
leave
ret
Function at 0x40754c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x38]
lea edi, [ebp - 0x2c]
push ebx
sub esp, 0x3c
mov esi, dword [ebp + 8]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x2c], 0x40001
mov dword [ebp - 0x28], 0x40b610
mov dword [ebp - 0x24], 0x40b610
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x40b600
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x30], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push edx
push edx
test eax, eax
je 0x4075a9
xor eax, eax
jmp 0x4075d6
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
jne 0x4075d6
mov dword [esp + 8], edi
mov dword [esp + 4], 0x80000007
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
sub esp, 0xc
test eax, eax
jne 0x4075a5
call ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4

Function at 0x40760e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [0x435a80], 0x44
lea eax, [ebp - 0x18]
mov dword [esp + 0x20], 0x435a80
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x4000000
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edx, eax
sub esp, 0x28
xor eax, eax
test edx, edx
je 0x40768c
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
mov eax, dword [ebp - 0x18]
leave
ret 4

Function at 0x407690
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x3c
mov dword [eax + 0x24], 0
pop ebp
jmp dword [sym.imp.SHELL32.dll_ShellExecuteExA]

Function at 0x4078ed
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
inc eax
push edx
je 0x40791b
mov eax, ebx
mov dword [esp], esi
and eax, 0xfffffffe
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push eax
push eax
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 4

Function at 0x407926
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [esp], ebx
call fcn.004078ed
push ecx
cmp eax, 0xffffffff
jne 0x407947
xor edi, edi
jmp 0x407984
mov dword [esp], ebx
mov esi, eax
test edi, 1
je 0x40797c
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push edx
test eax, eax
jne 0x407975
and edi, 4
jne 0x407943
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push eax
push eax
jmp 0x407984
mov edi, 1
jmp 0x407984
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40795a
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x407990
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edx
cmp eax, 0xffffffff
jne 0x4079ab
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, dword [ebp - 4]
sub esp, 0x1c
leave
ret 0xc

Function at 0x4079e8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, 0x65
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 8]
dec esi
je 0x407a3c
mov dword [ebp - 0xc], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x1a
xor edx, edx
mov dword [esp + 0xc], ebx
div ecx
mov dword [esp + 8], 0
lea eax, [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
add byte [ebp - 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
sub esp, 0x10
test eax, eax
je 0x4079f8
jmp 0x407a41
mov byte [ebx], 0
xor ebx, ebx
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 8

Function at 0x407a4c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0xc]
sub esp, 0x34
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x407a8b
xor eax, eax
cmp dword [ebp - 0xc], ebx
sete al
mov ebx, dword [ebp - 4]
leave
ret 0xc

Function at 0x407a92
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0xc]
sub esp, 0x34
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x407ad1
xor eax, eax
cmp dword [ebp - 0xc], ebx
sete al
mov ebx, dword [ebp - 4]
leave
ret 0xc
Function at 0x407d07
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x10], 0x400
test eax, eax
je 0x407d25
mov eax, 0x100
or eax, 0x20019
lea edx, [ebp - 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00407c43
sub esp, 0x10
test eax, eax
je 0x407d53
mov byte [ebx], 0
jmp 0x407da6
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [ebp - 0x14]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
mov byte [ebx + 0x3ff], 0
test esi, esi
jne 0x407d4e
mov eax, dword [ebp - 0xc]
dec eax
cmp eax, 1
ja 0x407d4e
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0x14
Function at 0x4082c5
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x434e80], 0x4c554e
test esi, esi
jne 0x408314
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x434a80
mov dword [esp], eax
call ebx
sub esp, 0xc
test eax, eax
je 0x408508
cmp eax, 0x400
jle 0x408365
jmp 0x408508
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.00407990
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x434e80
mov dword [esp], esi
call ebx
sub esp, 0xc
test eax, eax
je 0x408508
cmp eax, 0x400
jle 0x4082e5
jmp 0x408508
mov dword [esp + 0xc], 0x434a80
mov dword [esp + 8], 0x434e80
mov dword [esp + 4], str._s_s_r_n
mov dword [esp], 0x434680
call dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x437120]
mov eax, dword [eax + 0x128]
mov dword [esp], 0x434a80
mov dword [esp + 4], eax
call fcn.00407fce
push esi
push esi
mov dword [esp + 8], 4
mov dword [esp + 4], 0xc0000000
mov dword [esp], 0x434a80
call fcn.00407990
sub esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
je 0x408508
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov eax, dword [ebp - 0x1c]
push ecx
push ecx
add eax, esi
mov dword [ebp - 0x24], eax
add eax, 0xa
mov dword [esp + 4], eax
mov dword [esp], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push ebx
push ebx
mov ebx, eax
test eax, eax
je 0x4084fe
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00407a4c
sub esp, 0xc
test eax, eax
je 0x4084fe
mov dword [esp + 4], str._Rename__r_n
mov dword [esp], ebx
call fcn.00407865
push edx
push edx
lea edx, [ebx + esi]
test eax, eax
jne 0x40845f
mov dword [esp + 4], str._Rename__r_n
add esi, 0xa
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, esi
push eax
push eax
jmp 0x40849e
add eax, 0xa
mov dword [esp + 4], 0x40b45e
mov dword [esp], eax
mov dword [ebp - 0x28], edx
call fcn.00407865
mov dword [ebp - 0x20], eax
push ecx
push ecx
mov ecx, esi
test eax, eax
je 0x40849e
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
add ecx, ebx
cmp dword [ebp - 0x20], edx
jae 0x408496
mov al, byte [edx]
dec edx
dec ecx
mov byte [ecx + 1], al
jmp 0x408488
mov eax, dword [ebp - 0x20]
sub eax, ebx
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x1c]
add ecx, ebx
mov dword [esp + 4], 0x434680
mov dword [esp], ecx
mov dword [esp + 8], eax
call fcn.004078d0
add esi, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.00407a92
sub esp, 0xc
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40858d
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov eax, dword [ebp + 8]
mov dword [esp], 0x435280
mov dword [esp + 4], eax
call fcn.00407e8c
push ebx
push ebx
mov dword [esp], 0x435280
call fcn.004077dd
push edx
test eax, eax
jne 0x4085be
xor eax, eax
jmp 0x40863a
mov dword [esp], eax
mov ebx, eax
call fcn.00407f05
push ecx
test byte [0x437184], 0x80
je 0x4085f5
mov al, byte [ebx]
test al, al
je 0x4085ba
cmp al, 0x5c
jne 0x4085f5
jmp 0x4085ba
call fcn.00408555
push edx
test eax, eax
jne 0x408618
mov dword [esp], 0x435280
call fcn.00407777
push eax
mov dword [esp], 0x435280
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, ebx
push ecx
sub edx, 0x435280
mov dword [esp], 0x435280
cmp edx, eax
jl 0x4085de
jmp 0x40861f
test byte [eax], 0x10
jne 0x4085e8
jmp 0x4085ba
call fcn.00407ec0
push eax
mov dword [esp], 0x435280
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
inc eax
push edx
setne al
movzx eax, al
mov ebx, dword [ebp - 4]
leave
ret 4