joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420b90
Capabilities:
Check mutex on windows
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, dword [ebp + 8]
mov dword [esp], edi
call sym._strlen
mov ebx, eax
lea eax, [eax + 0x40]
and eax, 0xfffffff0
call fcn.0040de00
mov edx, 0x326d
sub esp, eax
lea eax, [esp + 0x1b]
mov dword [esp + 4], edi
mov dword [esp + 8], ebx
lea esi, [esp + 0xc]
mov word [esp + 0x18], dx
mov dword [esp + 0xc], 0x2d636367
mov dword [esp], eax
mov dword [esp + 0x10], 0x656d6873
mov dword [esp + 0x14], 0x64742d6d
mov byte [esp + 0x1a], 0x2d
call sym._memcpy
lea eax, [ebx + 0x10]
lea edi, [esi + eax]
mov dword [ebp - 0x24], eax
lea eax, [ebx + 0x30]
mov dword [edi], 0x61616161
mov dword [edi + 4], 0x61616161
mov dword [edi + 8], 0x61616161
mov dword [edi + 0xc], 0x61616161
mov dword [edi + 0x10], 0x61616161
mov dword [edi + 0x14], 0x61616161
mov dword [edi + 0x18], 0x61616161
mov dword [edi + 0x1c], 0x61616161
mov dword [ebp - 0x1c], eax
mov byte [esp + ebx + 0x3c], 0
mov byte [esp + ebx + 0x1b], 0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
sub esp, 0xc
mov byte [esi + ebx + 0xf], 0x2d
mov dword [ebp - 0x20], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
je 0x420c7f
int3
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
sub esp, 4
test ax, ax
jne 0x420d23
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._malloc
mov edx, edi
mov ebx, eax
mov eax, 0x20
nop
lea esi, [esi]
bt ebx, eax
jae 0x420cb8
mov byte [edx], 0x41
add edx, 1
sub eax, 1
jne 0x420cb0
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
je 0x420d20
mov ecx, dword [ebp - 0x24]
mov edx, esi
movzx eax, ax
mov dword [esp], ecx
mov ecx, dword [ebp - 0x1c]
call sym._get_ptr_from_atom_1
cmp eax, ebx
mov esi, eax
je 0x420d3a
mov dword [esp], ebx
call sym._free
mov edi, dword [ebp - 0x20]
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
int3
mov ecx, dword [ebp - 0x24]
mov edx, esi
movzx eax, ax
mov dword [esp], ecx
mov ecx, dword [ebp - 0x1c]
call sym._get_ptr_from_atom_1
mov esi, eax
jmp 0x420cf2
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
call sym._memset
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x420cf2
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x420cf2
Function at 0x4267a0
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
call sym._mcount
mov dword [ebp - 0x1c], ecx
mov dword [esp], 0x48d016
call sym._system
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
mov dword [esp], edx
mov ecx, eax
call method.Gird.Get_int_
sub esp, 4
movsx ebx, al
mov dword [esp + 4], str.Turn_To:
mov dword [esp], 0x48c3c0
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [esp + 4], ebx
mov dword [esp], eax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_
mov dword [esp + 4], 0xa
mov dword [esp], eax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_
mov dword [esp + 4], str.___1_2_3_4_5_6_7_8_9_101112131415_n
mov dword [esp], 0x48c3c0
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [ebp - 0xc], 1
jmp 0x4268d1
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov ecx, 0x48c3c0
call method.std::ostream.operator___int_
sub esp, 4
mov dword [esp + 4], 0x48d047
mov dword [esp], eax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
cmp dword [ebp - 0xc], 9
jg 0x42685e
mov dword [esp + 4], 0x48d047
mov dword [esp], 0x48c3c0
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [ebp - 0x10], 1
jmp 0x4268b3
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
mov eax, edx
shl eax, 4
add eax, edx
mov edx, dword [ebp - 0x10]
add eax, edx
mov edx, dword [ecx + eax*4]
mov eax, dword [ebp - 0x1c]
mov dword [esp], edx
mov ecx, eax
call method.Gird.Get_int_
sub esp, 4
movsx eax, al
mov dword [esp + 4], eax
mov dword [esp], 0x48c3c0
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_
mov dword [esp + 4], 0x48d047
mov dword [esp], eax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
add dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 0xf
jle 0x426867
mov dword [esp + 4], 0x48d049
mov dword [esp], 0x48c3c0
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0xf
jle 0x426821
mov ebx, dword [ebp - 4]
leave
ret 4
Function at 0x40277c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004039f4
test esi, esi
jne 0x4027b2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403ae4
jmp 0x4027d0
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402690
mov edi, eax
test esi, esi
je 0x4027d0
cmp dword [ebx], 0
je 0x4027d0
dec esi
jmp 0x4027b9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402c58
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x40b008], 0x8088405
inc edx
mov dword [ebx + 0x40b008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x402e38
Capabilities:
Clear file content

Disassembly:
movzx edx, word [eax + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x402e56
push dword [eax]
call sub.KERNEL32.DLL_SetEndOfFile_1
dec eax
je 0x402e60
jmp fcn.00402644
mov eax, 0x67
jmp fcn.00402634
ret

Function at 0x402f70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40b014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403008
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x402fe8
xor eax, eax
push ebp
push 0x402fe1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403024
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402fe8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov ax, word [0x40b014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40b014], ax
mov esp, ebp
pop ebp
ret

Function at 0x403878
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40c038], 0
je 0x4038d9
cmp word [0x40c20c], 0xd7b2
jne 0x4038a1
cmp dword [0x40c214], 0
jbe 0x4038a1
mov eax, 0x40c208
call dword [0x40c224]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40b080
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403900
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x40b020], 0
jne 0x4038f5
push 0
push 0x40b078
push 0x40b080
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4042a4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40430a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403b60
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402e64
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4042f4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404311
lea eax, [ebp - 0x10]
call fcn.004039f4
ret

Function at 0x406b04
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ecx
push ebx
push edx
xor edx, edx
push 0x406ad4
push dword fs:[edx]
mov dword [0x40c7e0], esp
mov dword [0x40c7e4], ebp
mov dword [0x40c7e8], 0x406ba0
mov dword fs:[edx], esp
mov edi, dword [ebp + 8]
mov ecx, 0x96
xor al, al
repne scasb al, byte es:[edi]
mov ecx, edi
sub ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
cmp word [edx], 0x5a4d
jne 0x406ba0
add edx, dword [edx + 0x3c]
cmp dword [edx], 0x4550
jne 0x406ba0
mov edx, dword [edx + 0x78]
or edx, edx
je 0x406ba0
add edx, dword [ebp + 0xc]
mov ebx, dword [edx + 0x20]
add ebx, dword [ebp + 0xc]
xor eax, eax
mov edi, dword [ebx]
add edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push ecx
repe cmpsb byte [esi], byte es:[edi]
pop ecx
je 0x406b80
add ebx, 4
inc eax
cmp eax, dword [edx + 0x18]
jb 0x406b67
jmp 0x406ba0
shl eax, 1
add eax, dword [edx + 0x24]
add eax, dword [ebp + 0xc]
mov ax, word [eax]
and eax, 0xffff
shl eax, 2
add eax, dword [edx + 0x1c]
add eax, dword [ebp + 0xc]
mov eax, dword [eax]
add eax, dword [ebp + 0xc]
jmp 0x406ba2
xor eax, eax
xor edx, edx
pop dword fs:[edx]
add esp, 4
pop edx
pop ebx
pop ecx
pop edi
pop esi
pop ebp
ret 8
Function at 0x402b0e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x7a1ff0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402ba2
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402b5f
cmp dword [ebp + 0x10], ebx
jne 0x402b96
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402b0e
test eax, eax
jne 0x402b71
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402b46
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406139
cmp eax, ebx
je 0x402ba9
push ebx
push dword [0x7a1ff0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402ba2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x7a1ff0], ebx
jne 0x402b9f
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402b9f
jmp 0x402ba2
Function at 0x402f33
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402f50
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x402f62
mov dword [ebp - 0xc], 0x78d0f8
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402f77
mov ecx, dword [0x7a1f98]
add ecx, eax
push ecx
call fcn.00403138
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403122
test eax, eax
je 0x403110
test byte [ebp + 0x17], 0x80
je 0x4030bb
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x40a858], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov byte [0x40a840], 0xb
mov dword [ebp + 8], eax
jle 0x403118
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402fcd
mov esi, dword [ebp + 0x14]
mov edi, 0x7890f8
push esi
push edi
call fcn.00403122
test eax, eax
je 0x403110
sub dword [ebp + 0x14], esi
mov dword [0x40a830], edi
mov dword [0x40a834], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x40a830
mov dword [0x40a838], edi
mov dword [0x40a83c], eax
call fcn.0040621c
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x4030b3
mov esi, dword [0x40a838]
sub esi, edi
call ebx
test byte [0x7a1ff4], 1
mov edi, eax
je 0x40306e
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x40303b
cmp dword [ebp + 0x14], 0
jne 0x40306e
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00404fb9
mov dword [ebp - 0x10], edi
test esi, esi
je 0x4030a7
cmp dword [ebp + 0x10], 0
jne 0x40308d
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.00405aba
test eax, eax
je 0x4030b7
add dword [ebp - 4], esi
jmp 0x40309b
mov eax, dword [0x40a838]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 4
jne 0x402ff0
jmp 0x403118
cmp dword [ebp + 0x14], 0
jg 0x402fc0
jmp 0x403118
push 0xfffffffffffffffc
jmp 0x403112
push 0xfffffffffffffffe
jmp 0x403112
test edi, edi
jne 0x4030fd
cmp dword [ebp + 0x14], edi
jle 0x403118
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x4030d1
mov esi, ebx
mov edi, 0x7890f8
push esi
push edi
call fcn.00403122
test eax, eax
je 0x403110
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405aba
test eax, eax
je 0x4030b7
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x4030c7
jmp 0x403118
cmp dword [ebp + 0x14], esi
jge 0x403105
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403122
test eax, eax
jne 0x403115
push 0xfffffffffffffffd
pop eax
jmp 0x40311b
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40547f
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x407374
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x407364
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4054d0
xor eax, eax
jmp 0x4054f7
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x4054f7
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x4054cc
call esi
pop esi
leave
ret 4

Function at 0x405531
Capabilities:
Create process on windows

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

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.004059ee
mov edi, eax
cmp edi, 0xffffffff
je 0x40563b
test byte [esp + 0x10], 1
push esi
je 0x40561d
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405623
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40562c
xor eax, eax
inc eax
jmp 0x40563d
test byte [esp + 0x10], 4
jne 0x40563b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405642
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405900
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405681
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x7a1fc8], eax
jmp 0x40580b
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x40569b
test eax, eax
je 0x4057b9
test bl, 2
je 0x4057b9
mov esi, 0x79f548
push edi
push esi
call fcn.00405da0
cmp dword [ebp + 8], 0
je 0x4056ba
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4056c0
push edi
call fcn.00405859
cmp byte [edi], 0
jne 0x4056ce
cmp byte [0x79f548], 0x5c
jne 0x4056d9
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4057af
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.0040583d
cmp byte [eax], 0
je 0x40571f
cmp byte [ebp - 0x1c], 0
je 0x40571f
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405735
mov al, byte [esi + 1]
test al, al
je 0x40578e
cmp al, 0x2e
jne 0x405735
cmp byte [esi + 2], 0
je 0x40578e
push esi
push ebx
call fcn.00405da0
test byte [ebp - 0x14c], 0x10
je 0x40575a
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40578e
push dword [ebp + 0xc]
push edi
call fcn.00405642
jmp 0x40578e
push dword [ebp - 4]
push edi
call fcn.004055fa
test eax, eax
jne 0x405786
cmp dword [ebp - 4], eax
je 0x40577e
push edi
push 0xfffffffffffffff1
call fcn.00404fb9
push 0
push edi
call fcn.00405c5b
jmp 0x40578e
inc dword [0x7a1fc8]
jmp 0x40578e
push edi
push 0xfffffffffffffff2
call fcn.00404fb9
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4056fd
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4057b9
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40580b
cmp dword [ebp - 0xc], esi
jne 0x4057cd
inc dword [0x7a1fc8]
jmp 0x40580b
push edi
call fcn.004060a4
test eax, eax
je 0x40580b
push edi
call fcn.00405812
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004055fa
test eax, eax
jne 0x405803
cmp dword [ebp - 4], esi
je 0x4057c5
push edi
push 0xfffffffffffffff1
call fcn.00404fb9
push esi
push edi
call fcn.00405c5b
jmp 0x40580b
push edi
push 0xffffffffffffffe5
call fcn.00404fb9
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405900
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x79f948
push esi
call fcn.00405da0
push esi
call fcn.004058ab
mov edi, eax
test edi, edi
jne 0x405921
xor eax, eax
jmp 0x405973
push edi
call fcn.0040600b
test byte [0x7a1f58], 0x80
je 0x40593a
mov al, byte [edi]
test al, al
je 0x40591d
cmp al, 0x5c
je 0x40591d
sub edi, esi
jmp 0x405952
call fcn.004060a4
test eax, eax
je 0x40594c
test byte [eax], 0x10
je 0x40591d
push esi
call fcn.00405859
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x40593e
call fcn.00405812
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4059ee
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405a0d
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x405a13
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405a42
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x4093ac]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405a87
test edi, edi
jne 0x405a4d
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405a81
Function at 0x405ae9
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, 0x7a02d0
push 0x4093c8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
mov ebx, 0x400
je 0x405b37
push 1
push 0
push esi
call fcn.00405a13
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x405c56
cmp eax, ebx
jg 0x405c56
mov esi, 0x7a06d0
push ebx
push esi
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x405c56
cmp eax, ebx
jg 0x405c56
push esi
push edi
push str._s_s_r_n
push 0x79fed0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x7a1f50]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405dc2
push 4
push 0xc0000000
push esi
call fcn.00405a13
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x405c56
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405c4f
push edi
push esi
push ebp
call fcn.00405a8b
test eax, eax
je 0x405c4f
push str._Rename__r_n
push esi
call fcn.00405978
test eax, eax
jne 0x405bed
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405c22
add eax, 0xa
push 0x4093b0
push eax
call fcn.00405978
mov ebp, eax
test ebp, ebp
je 0x405c1e
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405c0f
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405c09
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405c24
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x79fed0
push eax
call fcn.004059ce
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405aba
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405c5b
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x405c7e
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405ae9
pop ecx
pop ecx
inc dword [0x7a1fd0]
ret 8
Function at 0x405c87
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405cf8
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405ce7
cmp dword [ebp + 0x14], 1
je 0x405ce9
cmp dword [ebp + 0x14], 2
je 0x405ce9
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14