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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
leave
jmp fcn.6736a1f0

Function at 0x6736fd6c
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x6c
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x5c], 0x67452301
mov dword [ebp - 0x58], 0xefcdab89
mov dword [ebp - 0x54], 0x98badcfe
mov dword [ebp - 0x50], 0x10325476
mov edi, edx
xor eax, eax
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
lea edi, [ebp - 0x5c]
mov dword [esp], edi
call fcn.6736fc20
mov dword [esp + 4], edi
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.6736fce0
add esp, 0x6c
pop edi
leave
ret
Function at 0x6736fdd8
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx + 0xc]
lea eax, [eax + eax + 0xc]
add eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [str.hn8gXn8g]
test eax, eax
je 0x6736fede
mov dword [eax], ebx
lea edx, [eax + 0xc]
mov dword [eax + 4], edx
mov ecx, dword [ebx + 0xc]
add ecx, edx
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 0x10]
cmp dword [ebx + 0x10], ecx
jb 0x6736fee8
mov dword [esp], edx
mov dword [ebp - 0x30], eax
call dword [ebx]
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + 8]
mov dword [esp], edx
call dword [ebx]
mov eax, dword [ebp + 0x10]
test eax, eax
mov eax, dword [ebp - 0x30]
je 0x6736ff2e
xor edi, edi
mov dword [ebp - 0x2c], esi
mov esi, eax
nop
mov edx, dword [ebp - 0x2c]
mov al, byte [edx + edi]
xor eax, 0x36
mov byte [ebp - 0x19], al
mov dword [esp + 8], 1
lea ecx, [ebp - 0x19]
mov dword [esp + 4], ecx
mov eax, dword [esi + 4]
mov dword [esp], eax
call dword [ebx + 4]
mov eax, dword [ebp - 0x2c]
mov dl, byte [eax + edi]
xor edx, 0x5c
mov byte [ebp - 0x19], dl
mov dword [esp + 8], 1
lea edx, [ebp - 0x19]
mov dword [esp + 4], edx
mov eax, dword [esi + 8]
mov dword [esp], eax
call dword [ebx + 4]
inc edi
cmp dword [ebp + 0x10], edi
ja 0x6736fe48
mov eax, esi
mov esi, dword [ebp + 0x10]
cmp esi, dword [ebx + 0x10]
jae 0x6736fede
mov edi, eax
nop
mov dword [esp + 8], 1
mov dword [esp + 4], 0x6739d500
mov eax, dword [edi + 4]
mov dword [esp], eax
call dword [ebx + 4]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x6739d501
mov eax, dword [edi + 8]
mov dword [esp], eax
call dword [ebx + 4]
inc esi
cmp dword [ebx + 0x10], esi
ja 0x6736fea4
mov eax, edi
add esp, 0x3c
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp], edx
mov dword [ebp - 0x30], eax
call dword [ebx]
mov edx, dword [ebp + 0x10]
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + 4]
mov dword [esp], edx
call dword [ebx + 4]
mov eax, dword [ebp - 0x30]
mov esi, dword [eax + 8]
add esi, dword [ebx + 0xc]
mov edx, dword [eax + 4]
mov dword [esp + 4], edx
mov dword [esp], esi
call dword [ebx + 8]
mov ecx, dword [ebx + 0x14]
mov dword [ebp + 0x10], ecx
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + 4]
jmp 0x6736fe1e
xor esi, esi
jmp 0x6736fe9b
Function at 0x67380ef0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [sym.imp.msvcrt.dll__iob]
mov dword [ebp - 4], esi
lea esi, [ebp + 0xc]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], 0x673a1a20
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x67380f40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x67380f66
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x67380ffa
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x67380fb5
cmp eax, 0x40
je 0x67380fb5
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x67380f59
cmp eax, 0x40
je 0x67380f59
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x67380f59
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.67380ef0
lea esi, [esi]
lea edi, [edi]
Function at 0x67384054
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [0x673a61a8], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffff
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateSemaphoreA
sub esp, 0x10
mov dword [0x673a61ac], eax
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x673840b8
mov dword [0x673a61b4], eax
mov dword [esp + 4], 0x673840c4
mov dword [esp], eax
call fcn.673870f0
test eax, eax
jne 0x673840bf
leave
ret
call sub.KERNEL32.dll_GetLastError
jmp 0x673840af
call sub.msvcrt.dll_abort
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 8]
mov edi, dword [esi]
test edi, edi
je 0x673840f0
xor ebx, ebx
mov eax, dword [esi + ebx*4 + 4]
test eax, eax
je 0x673840eb
mov eax, dword [eax - 4]
mov dword [esp], eax
call fcn.67386e58
inc ebx
cmp edi, ebx
ja 0x673840d8
mov dword [ebp + 8], esi
add esp, 0x1c
pop ebx
pop esi
pop edi
leave
jmp fcn.67386e58
Function at 0x67384100
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ecx, dword [0x673a6148]
test ecx, ecx
jne 0x6738412c
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
test eax, eax
je 0x673841c6
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 8]
test ebx, ebx
je 0x673841d8
mov edi, dword [0x673a61b4]
call sub.KERNEL32.dll_GetLastError
mov esi, eax
mov dword [esp], edi
call sub.KERNEL32.dll_TlsGetValue
push edi
mov dword [esp], esi
mov dword [ebp - 0x1c], eax
call sub.KERNEL32.dll_SetLastError
push ecx
mov eax, dword [ebp - 0x1c]
mov esi, eax
test eax, eax
je 0x67384186
mov edi, dword [eax]
cmp ebx, edi
ja 0x6738425b
dec ebx
mov eax, dword [esi + ebx*4 + 4]
test eax, eax
jne 0x67384121
mov eax, dword [ebp + 8]
call fcn.67383fd4
mov dword [esi + ebx*4 + 4], eax
jmp 0x67384121
lea edi, [ebx + 0x20]
mov dword [esp + 4], 4
lea eax, [ebx + 0x21]
mov dword [esp], eax
call sub.msvcrt.dll_calloc
mov esi, eax
test eax, eax
je 0x6738429e
mov dword [eax], edi
mov dword [esp + 4], esi
mov eax, dword [0x673a61b4]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
push edx
push edx
test eax, eax
jne 0x6738416f
call sub.KERNEL32.dll_GetLastError
jmp 0x6738416f
mov eax, edx
call fcn.67383fd4
mov edi, dword [ebp + 8]
mov dword [edi + 8], eax
jmp 0x67384121
cmp dword [0x67391024], 0
je 0x673842d4
mov dword [esp], 0x673a61a8
call sub.KERNEL32.dll_InterlockedIncrement
push esi
test eax, eax
jne 0x673842a3
mov edx, dword [ebp + 8]
mov ebx, dword [edx + 8]
test ebx, ebx
jne 0x67384214
mov ebx, dword [0x673a61b0]
inc ebx
mov dword [0x673a61b0], ebx
mov dword [edx + 8], ebx
cmp dword [0x673a6148], 0
je 0x6738413a
mov dword [esp], 0x673a61a8
call sub.KERNEL32.dll_InterlockedDecrement
push edx
test eax, eax
js 0x6738413a
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov eax, dword [0x673a61ac]
mov dword [esp], eax
call sub.KERNEL32.dll_ReleaseSemaphore
sub esp, 0xc
jmp 0x6738413a
lea edx, [edi + edi]
cmp ebx, edx
jbe 0x67384265
lea edx, [ebx + 0x20]
lea ecx, [edx*4 + 4]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [ebp - 0x1c], edx
call sub.msvcrt.dll_realloc
mov esi, eax
test eax, eax
mov edx, dword [ebp - 0x1c]
je 0x6738429e
mov dword [eax], edx
sub edx, edi
lea ecx, [edx*4]
lea edx, [eax + edi*4 + 4]
xor eax, eax
mov edi, edx
rep stosb byte es:[edi], al
jmp 0x673841a8
call sub.msvcrt.dll_abort
mov dword [esp + 4], 0xffffffff
mov eax, dword [0x673a61ac]
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
push ebx
push ebx
test eax, eax
je 0x673841fa
mov dword [esp], 0x673a61a8
call sub.KERNEL32.dll_InterlockedDecrement
push ecx
jmp 0x673841fa
mov dword [esp], 0x67391028
call sub.KERNEL32.dll_InterlockedIncrement
push edx
test eax, eax
je 0x673842fd
cmp dword [0x67391024], 0
jne 0x6738430c
mov dword [esp], 0
call sub.KERNEL32.dll_Sleep
push edi
jmp 0x673842e5
call fcn.67384054
mov dword [0x67391024], 1
cmp dword [0x673a6148], 0
je 0x673841fa
jmp 0x673841e5
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
je 0x431072
nop
nop
nop
nop
mov ebx, 0x40915c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x162c0559
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x431060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x373f0802
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4010df
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00404830
push ebx
push edi
xor ebx, ebx
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x1003]
mov byte [ebp - 0x1004], bl
push ebx
rep stosd dword es:[edi], eax
push 0x80
push 3
push ebx
push ebx
stosw word es:[edi], ax
push 0x80000000
push dword [ebp + 0xc]
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x40112c
xor eax, eax
jmp 0x401190
mov edi, dword [ebp + 0x10]
push esi
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1004]
push ebx
push eax
mov dword [ebp + 0xc], ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp + 0xc]
push ebx
push eax
lea eax, [ebp - 0x1004]
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp dword [ebp + 0xc], ebx
je 0x401183
push dword [ebp + 0xc]
lea eax, [ebp - 0x1004]
push eax
mov eax, dword [edi]
add eax, dword [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp + 0xc]
add esp, 0xc
add dword [edi], eax
jmp 0x401135
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 1
pop eax
pop esi
pop edi
pop ebx
leave
ret
Function at 0x401194
Capabilities:
Create directory
Create process on windows
Extract resource via kernel32 functions
Terminate process
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x528
push ebx
push esi
mov esi, 0x100000
push edi
push esi
call sub.MFC42.DLL_operatornew
xor ebx, ebx
push esi
push ebx
push eax
mov dword [ebp - 4], eax
call sub.MSVCRT.dll_memset
add esp, 0x10
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
call dword [sym.imp.MSVCRT.dll___p___argv]
mov eax, dword [eax]
push dword [eax]
push dword [ebp - 4]
call fcn.004010df
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x127]
mov byte [ebp - 0x128], bl
mov byte [ebp - 0x24], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x23]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x24]
push 5
push eax
call fcn.0040107c
add esp, 0x14
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edi, eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x128]
push str.c:_s.exe
push eax
and edi, 0x1ff
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x128]
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
push edi
mov dword [ebp - 8], eax
call sub.MFC42.DLL_operatornew
mov esi, dword [sym.imp.KERNEL32.DLL_Sleep]
pop ecx
push 0x64
mov dword [ebp - 0xc], eax
call esi
lea eax, [ebp - 0x14]
push ebx
push eax
push dword [ebp - 0x10]
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push 0x64
call esi
lea eax, [ebp - 0x14]
push ebx
push eax
push edi
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0xc]
call sub.MFC42.DLL_operatordelete
push dword [ebp - 4]
call sub.MFC42.DLL_operatordelete
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x527]
mov byte [ebp - 0x528], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll___p___argv]
mov eax, dword [eax]
push dword [eax]
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x528]
push str.cmd.exe__c_ping_127.0.0.1__n_2_s___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x528]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
push 0x1f4
call esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x40360a
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x403637
mov ecx, dword [0x452b98]
push edi
add eax, ecx
push edi
push eax
mov dword [0x4214b4], eax
push dword [0x40a5d4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00403735
cmp eax, edi
jl 0x40372e
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x40a5d4]
call ebx
test eax, eax
je 0x40372b
cmp dword [ebp - 4], esi
jne 0x40372b
push dword [ebp + 8]
add dword [0x4214b4], esi
call fcn.00403735
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x40372e
cmp dword [ebp + 0x10], edi
jne 0x4036fa
cmp dword [ebp + 8], edi
jle 0x403726
mov esi, 0x41d470
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x4036aa
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x40a5d4]
call ebx
test eax, eax
je 0x40372b
cmp edi, dword [ebp - 4]
jne 0x40372b
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4036f6
cmp dword [ebp + 0x14], edi
jne 0x4036f6
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x4214b4], eax
cmp dword [ebp + 8], 0
jg 0x40369d
jmp 0x403726
push 0xfffffffffffffffe
jmp 0x40372d
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403705
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a5d4]
call ebx
test eax, eax
je 0x40372b
mov eax, dword [ebp - 4]
add dword [0x4214b4], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x40372e
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403735
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x4214b4]
mov edi, eax
sub esi, dword [0x4153e4]
add edi, 0x1f4
add esi, dword [esp + 0x1c]
cmp esi, ebp
jle 0x403905
push dword [0x4294c0]
call fcn.00403947
push ebp
push ebp
push dword [0x4153e4]
push dword [0x40a5d4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x4294bc], esi
mov dword [0x4214b0], ebp
mov eax, dword [0x4214b8]
mov ebx, 0x4000
sub eax, dword [0x4294c0]
cmp eax, ebx
jg 0x4037a8
mov ebx, eax
mov esi, 0x41d470
push ebx
push esi
call fcn.00403915
test eax, eax
je 0x4038c6
add dword [0x4294c0], ebx
mov dword [0x415400], esi
mov dword [0x415404], ebx
cmp dword [0x452b48], ebp
je 0x403839
cmp dword [0x452be0], ebp
jne 0x403839
cmp dword [esp + 0x10], ebp
je 0x403806
mov eax, dword [0x4294bc]
push ebp
sub eax, dword [0x4214b4]
sub eax, dword [esp + 0x20]
add eax, dword [0x4153e4]
mov dword [0x4214b0], eax
call fcn.004069c4
jmp 0x403839
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jbe 0x403839
mov eax, dword [0x452b44]
neg eax
sbb eax, eax
not eax
and eax, str.unpacking_data:__d__
push eax
push 0x403262
push ebp
push 0x6f
push dword [0x452b40]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [esp + 0x10], eax
mov ecx, 0x4153e8
mov dword [0x415408], 0x415470
mov dword [0x41540c], 0x8000
call fcn.00406a99
test eax, eax
jl 0x403910
mov esi, dword [0x415408]
mov eax, 0x415470
sub esi, eax
je 0x4038a0
lea ecx, [esp + 0x14]
push ebp
push ecx
push esi
push eax
push dword [0x40a5d4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4038cb
cmp esi, dword [esp + 0x14]
jne 0x4038cb
add dword [0x4153e4], esi
cmp dword [0x415404], ebp
jne 0x4037ce
jmp 0x4038ac
cmp dword [0x415404], ebp
jne 0x403910
cmp ebx, ebp
je 0x403910
mov eax, dword [0x4214b4]
mov ecx, eax
sub ecx, dword [0x4153e4]
add ecx, dword [esp + 0x1c]
test ecx, ecx
jle 0x4038cf
jmp 0x403792
or eax, 0xffffffff
jmp 0x403907
push 0xfffffffffffffffe
jmp 0x403912
push ebp
push ebp
push eax
push dword [0x40a5d4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [esp + 0x10]
cmp esi, ebp
je 0x403905
mov eax, dword [0x4294bc]
push ebp
push ebp
push 0x113
push esi
mov dword [0x4214b0], eax
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 4
push 0xfffffffffffffffd
pop eax
jmp 0x403907
Function at 0x405ccc
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x441d00], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x405cf0
test al, 0x10
jne 0x405cf3
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x441d00
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405d1e
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x406099
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x43f500
push esi
call fcn.004064b4
push esi
call fcn.0040604a
mov edi, eax
test edi, edi
jne 0x4060ba
xor eax, eax
jmp 0x40610c
push edi
call fcn.00406728
test byte [0x452b50], 0x80
je 0x4060d3
mov al, byte [edi]
test al, al
je 0x4060b6
cmp al, 0x5c
je 0x4060b6
sub edi, esi
push esi
call fcn.004064ca
cmp eax, edi
push esi
jle 0x4060f6
call fcn.0040695c
test eax, eax
je 0x4060ee
test byte [eax], 0x10
je 0x4060b6
push esi
call fcn.00405ffe
jmp 0x4060d5
call fcn.00405fb7
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 0x406183
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 0x4061b2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x63
pop edi
mov dword [ebp + 8], 0x61736e
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 0x4061f7
mov eax, edi
dec edi
test eax, eax
jne 0x4061bd
and byte [esi], al
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4061f1
Function at 0x4061fb
Capabilities:
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push str.MoveFileExA
push str.KERNEL32.dll
call fcn.0040699a
test eax, eax
mov esi, dword [esp + 0x18]
je 0x406227
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x40636d
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x441e88], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x441e88
je 0x40626b
push 1
push 0
push esi
call fcn.00406183
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406373
cmp eax, edi
jg 0x406373
mov esi, 0x441900
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406373
cmp eax, edi
jg 0x406373
push esi
push ebp
push str._s_s_r_n
push 0x441500
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call fcn.004064d7
xor eax, eax
push eax
push 0x8000080
push 4
push eax
push eax
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40636d
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 0x406366
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406366
cmp edi, dword [esp + 0x18]
jne 0x406366
push str._Rename__r_n
push esi
call fcn.00406111
test eax, eax
jne 0x40637a
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.004064b4
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x441500
push eax
call fcn.0040615d
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x452bd0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40aa18
push eax
call fcn.00406111
test eax, eax
je 0x406331
inc eax
lea edx, [esi + edi]
cmp eax, edx
mov ecx, eax
jae 0x4063a3
mov dl, byte [ecx]
mov byte [ecx + ebx], dl
inc ecx
lea edx, [esi + edi]
cmp ecx, edx
jb 0x406396
sub eax, esi
jmp 0x406333
Function at 0x4063a7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40640b
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x2000
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4063fa
cmp dword [ebp + 0x14], 1
je 0x4063fc
cmp dword [ebp + 0x14], 2
je 0x4063fc
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10