joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48ddf8
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4c2d08], 0
jne 0x48de79
cmp dword [0x4c2d28], 0
jne 0x48de28
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4c2d28], eax
test eax, eax
jne 0x48de28
push str.GetEnvironmentStrings_failed
call fcn.0048d678
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4c2d28]
jmp 0x48de3c
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004848b4
pop ecx
mov edi, eax
test eax, eax
jne 0x48de34
lea edi, [ebp + 1]
push edi
call fcn.00484114
pop ecx
mov ebx, eax
mov dword [0x4c2d0c], ebx
test ebx, ebx
jne 0x48de66
xor eax, eax
jmp 0x48df3c
push edi
mov edx, dword [0x4c2d28]
push edx
push ebx
call fcn.004846e0
add esp, 0xc
jmp 0x48de99
xor esi, esi
mov ebx, dword [0x4c2d08]
jmp 0x48de93
push eax
call fcn.004848b4
pop ecx
test eax, eax
jne 0x48de8f
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x48de83
lea ebx, [esi + 4]
push 4
mov dword [0x4c2d10], ebx
inc ebx
push ebx
call fcn.00483bec
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x48debc
xor eax, eax
jmp 0x48df3c
cmp dword [0x4c2d08], 0
jne 0x48deed
xor esi, esi
mov ebx, dword [0x4c2d0c]
mov eax, dword [esp]
mov ebp, eax
jmp 0x48dede
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004848b4
pop ecx
mov edi, eax
test eax, eax
jne 0x48ded4
jmp 0x48df1e
xor esi, esi
mov ebx, dword [0x4c2d08]
mov eax, dword [esp]
mov edi, eax
jmp 0x48df18
push eax
call fcn.004848b4
pop ecx
test eax, eax
je 0x48df0d
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x48df11
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x48defc
mov eax, dword [0x4c2d08]
test eax, eax
je 0x48df2e
push eax
call fcn.00484124
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4c2d08], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x493efc
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x493f2a
mov eax, ebx
call fcn.004949b4
cmp dword [ebx + 0x3c], 0
je 0x493f23
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x493f9b
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x493f8d
cmp dword [ebx + 8], 0
je 0x493f4c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x493f5e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x493f8d
cmp dword [ebx + 8], 0
je 0x493f3f
cmp eax, 3
je 0x493f71
dec eax
jne 0x493f3f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x493f3f
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x493f3f
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x493fb9
cmp dword [ebx + 0x10], 0xcc
je 0x493fb9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00493fc4
pop ebx
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x403203
pop dword [ebp - 0x14]
mov eax, 0xeb83b75b
sub eax, 0xeb438558
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x8568502
add dword [ebp - 0x24], 0x45fbc049
mov dword [ebp - 0x20], 0xa110e556
add dword [ebp - 0x20], 0x912266ef
mov dword [ebp - 0x1c], 0x329ba6ce
sub dword [ebp - 0x1c], 0xe64f62a0
mov dword [ebp - 0x18], 0xf8e293b8
sub dword [ebp - 0x18], 0xf8e293b8
lea eax, [ebp - 0x24]
push eax
mov eax, 0xc175a9e9
sub eax, 0xc135295d
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x242427e3
add dword [ebp - 0x24], 0x504e4173
mov dword [ebp - 0x20], 0x778c0178
add dword [ebp - 0x20], 0xc9e05ffd
mov dword [ebp - 0x1c], 0x3f26778d
add dword [ebp - 0x1c], 0x2448f4df
mov dword [ebp - 0x18], 0xc3f4dba5
add dword [ebp - 0x18], 0x3c0b245b
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0x1b024412
add eax, 0xe53e3cc2
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x3a2f9
push 0
call eax
mov ecx, 0x565e
mov esi, eax
mov edi, 0x893bb3b2
sub edi, 0x88faa3b2
add edi, dword [ebp - 0x14]
mov ebx, 0xe0fad93
sub ebx, 0xcbdb595a
add dword [ebp - 0x10], 0x6f4e55eb
mov edx, dword [edi]
xor dword [ebp - 8], ecx
sub edx, ebx
add dword [ebp - 0x10], 0xc2a154
mov dword [esi], edx
add esi, 0xa3101ce0
add esi, 0x5cefe324
add edi, 4
loop 0x40331f
add eax, 0x14c4b
mov ebx, eax
add eax, 0xedeb2622
add eax, 0x1214d9e3
mov ecx, 0x2323aa46
add ecx, 0xdd1c55ba
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x474b94
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.00474b20
ret
Function at 0x4049f0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x45221c
call fcn.004324bc
sub esp, 0x5c
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
push 1
lea ecx, [ebp - 0x68]
call fcn.0043f827
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebx, eax
mov eax, dword [esi]
push 0x80
push eax
call edi
test eax, eax
je 0x404a70
push dword [0x45f4b0]
mov eax, dword [esi]
lea ecx, [ebp - 0x68]
push 0xa9
push eax
call fcn.0043f919
mov eax, dword [ebp - 0x68]
mov eax, dword [eax + 4]
mov eax, dword [ebp + eax - 0x64]
cmp dword [eax + 0x4c], 0xffffffff
jne 0x404a62
mov dword [ebp - 0x10], 1
jmp 0x404a6a
lea ecx, [ebp - 0x68]
call fcn.0043fde5
mov esi, dword [esi]
push ebx
push esi
call edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.0043f8d8
lea ecx, [ebp - 0x60]
call fcn.0043f7ae
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40634d
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x452714
call fcn.004324bc
sub esp, 0x150
push ebx
push esi
push edi
lea ecx, [ebp - 0x14]
push dword [ebp + 8]
xor ebx, ebx
xor edi, edi
call fcn.00447ffc
lea eax, [ebp - 0x15c]
mov dword [ebp - 4], ebx
push eax
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str..bld
call fcn.004482f5
push ecx
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x10], esp
push dword [ebp + 8]
call fcn.00447ffc
lea eax, [ebp - 0x18]
mov byte [ebp - 4], bl
push eax
call fcn.0040bffd
add esp, 0x10
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00407868
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [ebp - 0x18]
mov esi, eax
mov byte [ebp - 4], bl
call fcn.00448287
cmp esi, 0xffffffff
je 0x4064d9
push ebx
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push 0x46f0f8
call fcn.004482f5
push ecx
lea eax, [ebp - 0x130]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
mov byte [ebp - 4], 3
call fcn.004482f5
mov byte [ebp - 4], bl
call fcn.0040f1f4
add esp, 0xc
cmp eax, ebx
jne 0x4064bc
push ebx
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push 0x46f318
call fcn.004482f5
push ecx
lea eax, [ebp - 0x130]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
mov byte [ebp - 4], 4
call fcn.004482f5
mov byte [ebp - 4], bl
call fcn.0040f1f4
add esp, 0xc
cmp eax, ebx
jne 0x4064bc
cmp dword [ebp - 0x15c], 0x10
je 0x4064bc
push ebx
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push str..BLD
call fcn.004482f5
push ecx
lea eax, [ebp - 0x130]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
mov byte [ebp - 4], 5
call fcn.004482f5
mov byte [ebp - 4], bl
call fcn.0040f192
add esp, 0xc
cmp eax, ebx
je 0x4064bc
push ebx
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push 0x46f304
call fcn.004482f5
push ecx
lea eax, [ebp - 0x130]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
mov byte [ebp - 4], 6
call fcn.004482f5
mov byte [ebp - 4], bl
call fcn.0040f192
add esp, 0xc
cmp eax, ebx
jne 0x4064bc
push 1
pop edi
lea eax, [ebp - 0x15c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4063d4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00448287
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x40b31f
Capabilities:
Create directory

Disassembly:
mov eax, 0x4531b8
call fcn.004324bc
sub esp, 0xc
push esi
and dword [ebp - 4], 0
push 0x4747d0
lea ecx, [ebp - 0x10]
call fcn.004482f5
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
mov byte [ebp - 4], 1
call fcn.00447ffc
lea eax, [ebp - 0x14]
push eax
call fcn.0040b60c
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00448374
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00448287
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], 0
je 0x40b393
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00447ffc
call fcn.0040b31f
pop ecx
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00447ffc
call fcn.0040dbce
test eax, eax
pop ecx
jne 0x40b3ba
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
jmp 0x40b3bd
push 1
pop esi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00448287
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00448287
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x40c18a
Capabilities:
Delete directory

Disassembly:
mov eax, 0x453548
call fcn.004324bc
sub esp, 0xc
push esi
and dword [ebp - 4], 0
push 0x4747d0
lea ecx, [ebp - 0x10]
call fcn.004482f5
push dword [ebp + 8]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, eax
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00447ffc
lea eax, [ebp - 0x14]
push eax
call fcn.0040b60c
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00448374
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00448287
test esi, esi
je 0x40c213
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 8]
test eax, eax
je 0x40c213
cmp eax, 3
jle 0x40c213
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00447ffc
call fcn.0040c18a
pop ecx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00448287
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00448287
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x40c9ca
Capabilities:
Move file

Disassembly:
mov eax, 0x45370c
call fcn.004324bc
sub esp, 0x28
push ebx
push esi
xor ebx, ebx
push 0x4747d0
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.004482f5
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00445734
mov ecx, 0x474988
mov byte [ebp - 4], 2
call fcn.00421cc6
cmp eax, 1
jne 0x40cb45
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.WININIT.INI
call fcn.004482f5
push ecx
mov ecx, 0x474930
mov eax, esp
mov dword [ebp - 0x1c], esp
push ebx
push eax
mov byte [ebp - 4], 3
call fcn.004033f9
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push eax
call fcn.0040bffd
add esp, 0x10
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.00448374
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00448287
lea eax, [ebp - 0x34]
push ebx
push eax
push ecx
mov esi, str.rename
mov ecx, esp
mov dword [ebp - 0x1c], esp
push esi
call fcn.004482f5
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov byte [ebp - 4], 5
call fcn.00447ffc
mov byte [ebp - 4], 2
call fcn.0040d5db
add esp, 0xc
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.00447ffc
lea eax, [ebp - 0x18]
push eax
call fcn.0040c23a
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x14]
push str.NUL
push eax
mov byte [ebp - 4], 6
call fcn.00448544
push eax
lea ecx, [ebp - 0x34]
push dword [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.00445a09
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.00448287
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00448287
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push esi
call fcn.004482f5
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
mov byte [ebp - 4], 8
call fcn.00447ffc
mov byte [ebp - 4], 2
call fcn.0040d459
pop ecx
lea eax, [ebp - 0x34]
pop ecx
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push esi
call fcn.004482f5
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
mov byte [ebp - 4], 9
call fcn.00447ffc
mov byte [ebp - 4], 2
call fcn.0040d4d8
add esp, 0xc
push 1
pop esi
jmp 0x40cb53
push 4
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov esi, eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00445767
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00448287
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00448287
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x40d23f
Capabilities:
Copy file
Delete file

Disassembly:
mov eax, 0x4538fb
call fcn.004324bc
sub esp, 0x4c4
push ebx
push esi
push edi
push 1
xor esi, esi
pop ebx
lea ecx, [ebp - 0x10]
push 0x4747d0
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], ebx
call fcn.004482f5
push ebx
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], bl
call fcn.0043fcdf
push ebx
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 2
call fcn.0043f827
push dword [0x45f4ac]
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 3
push 0x21
push dword [ebp + 8]
call fcn.0043fda3
lea eax, [ebp - 0x1c]
push eax
call fcn.0040b586
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.00448374
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00448287
push ecx
lea eax, [ebp - 0x10]
mov edi, esp
mov dword [ebp - 0x14], esp
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00447ffc
push edi
call fcn.0040b60c
pop ecx
pop ecx
call fcn.0040b31f
pop ecx
push dword [0x45f4ac]
lea ecx, [ebp - 0xd0]
push 2
push dword [ebp - 0x10]
call fcn.0043f919
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + eax - 0x74]
cmp dword [ecx + 0x4c], 0xffffffff
je 0x40d3fa
mov ecx, dword [ebp - 0xd0]
mov ecx, dword [ecx + 4]
mov ecx, dword [ebp + ecx - 0xcc]
cmp dword [ecx + 0x4c], 0xffffffff
je 0x40d3fa
test byte [ebp + eax - 0x70], bl
jne 0x40d3d7
call fcn.0040db88
push 0xa
lea eax, [ebp - 0x4d0]
push 0x3ff
push eax
lea ecx, [ebp - 0x78]
call fcn.0040f0b7
push ecx
lea eax, [ebp - 0x4d0]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.004482f5
call fcn.0040cf2e
test eax, eax
pop ecx
je 0x40d39f
push 0
push ecx
mov esi, esp
mov dword [ebp - 0x14], esp
push ecx
lea eax, [ebp - 0x4d0]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.004482f5
push esi
call fcn.0040cc70
pop ecx
pop ecx
push dword [ebp + 0xc]
call fcn.0040ff22
add esp, 0xc
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
je 0x40d3cc
lea eax, [ebp - 0x4d0]
lea ecx, [ebp - 0xd0]
push eax
call fcn.0043ffc7
push 0x40f115
push 0xa
mov ecx, eax
call fcn.00440283
mov ecx, eax
call fcn.0040f106
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 4]
jmp 0x40d327
lea ecx, [ebp - 0xd0]
call fcn.0043fde5
lea ecx, [ebp - 0x78]
call fcn.0043fde5
push 0
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 2
call fcn.0043f8d8
lea ecx, [ebp - 0xc8]
call fcn.0043f7ae
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], bl
call fcn.0043fd90
lea ecx, [ebp - 0x6c]
call fcn.0043f7ae
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00448287
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00448287
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x40dbce
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x453a80
call fcn.004324bc
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ebx
cmp dword [eax - 8], ebx
je 0x40dccf
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.00447ffc
lea eax, [ebp - 0x10]
push eax
call fcn.0040b6a8
mov eax, dword [eax]
pop ecx
pop ecx
xor ecx, ecx
cmp dword [eax - 8], ebx
sete cl
mov esi, ecx
lea ecx, [ebp - 0x10]
call fcn.00448287
cmp esi, ebx
jne 0x40dccf
push ecx
mov esi, 0x46f23c
mov ecx, esp
mov dword [ebp - 0x14], esp
push esi
call fcn.004482f5
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov byte [ebp - 4], 1
call fcn.00447ffc
lea eax, [ebp - 0x10]
mov byte [ebp - 4], bl
push eax
call fcn.0040f794
add esp, 0xc
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.00448374
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00448287
mov ecx, dword [ebp + 8]
mov eax, dword [ecx - 8]
dec eax
cmp eax, ebx
jl 0x40dc8b
mov al, byte [eax + ecx]
xor edx, edx
cmp al, 0x3a
sete dl
mov eax, edx
jmp 0x40dc8d
xor eax, eax
cmp eax, ebx
je 0x40dcba
lea eax, [ebp + 8]
push esi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004484d0
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.00448374
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00448287
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40dccd
test al, 0x10
je 0x40dccd
push 1
pop edi
mov ebx, edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00448287
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x40dcec
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov eax, dword [eax]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x40dd1e
xor eax, eax
jmp 0x40ddaf
push esi
push edi
push 1
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [ebp + 0xc]
mov esi, 0x400
push esi
mov dword [edi], ebx
call fcn.004487e3
pop ecx
mov dword [ebp + 0xc], eax
lea eax, [ebp + 8]
push ebx
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
and eax, 3
cmp eax, dword [ebp + 8]
jae 0x40dd74
mov ecx, dword [ebp + 8]
sub ecx, eax
add ecx, 3
shr ecx, 2
mov eax, dword [edx]
add edx, 4
add dword [edi], eax
dec ecx
jne 0x40dd6a
cmp dword [ebp + 8], esi
je 0x40dd3f
test byte [ebp + 8], 3
je 0x40dd98
xor esi, esi
mov eax, dword [ebp + 8]
and eax, 3
cmp esi, eax
jl 0x40dd8e
mov byte [esi + edx], bl
inc esi
cmp esi, 4
jb 0x40dd81
mov eax, dword [edx]
add dword [edi], eax
push dword [ebp + 0xc]
call fcn.0044880c
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410f18
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x454593
call fcn.004324bc
sub esp, 0x110
and dword [ebp - 0x18], 0
push ebx
push 1
lea ecx, [ebp - 0x10]
pop ebx
push 0x4747d0
mov dword [ebp - 4], ebx
call fcn.004482f5
lea eax, [ebp - 0x1c]
and dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp + 0x10]
mov byte [ebp - 4], 2
mov dword [ebp - 0x1c], 0xff
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x410fad
mov eax, dword [0x470b50]
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
mov dword [ecx], eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004483c4
lea eax, [ebp + 0xc]
push eax
call fcn.0040f605
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00448374
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.00448287
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00447ffc
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00448287
and byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.00448287
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x41102c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
mov dword [ebp - 8], 0xff
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4110a7
cmp dword [ebp - 4], 4
je 0x41106e
cmp dword [ebp - 4], 3
jne 0x4110a7
cmp dword [ebp - 8], 4
jne 0x4110a7
movzx eax, byte [ebp - 0x105]
movzx ecx, byte [ebp - 0x106]
shl eax, 8
add eax, ecx
push 1
movzx ecx, byte [ebp - 0x107]
shl eax, 8
add eax, ecx
pop esi
movzx ecx, byte [ebp - 0x108]
shl eax, 8
add eax, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
lea ecx, [ebp + 0xc]
call fcn.00448287
mov eax, esi
pop esi
leave
ret