joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1015da71
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1015d9ed
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1015dbe0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1015dbe0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1015db95
jg 0x1015dacd
test eax, eax
je 0x1015db8b
push 1
push 0x1000
call fcn.1014f278
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1015daf0
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1015db82
push 0x8000
push ebx
call fcn.1015d91e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1015db19
jg 0x1015db14
cmp ecx, 0x1000
jb 0x1015db19
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10152f3d
add esp, 0x10
cmp eax, 0xffffffff
je 0x1015db5e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1015db14
jl 0x1015db45
test ecx, ecx
jne 0x1015db06
push dword [ebp - 0xc]
push ebx
call fcn.1015d91e
push esi
call fcn.1014f45f
add esp, 0xc
xor ebx, ebx
jmp 0x1015dbee
cmp byte [edi + 0x24], 0
je 0x1015db75
cmp dword [edi + 0x20], 5
jne 0x1015db75
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1015db80
mov ebx, dword [edi + 0x18]
jmp 0x1015db82
xor ebx, ebx
push esi
call fcn.1014f45f
pop ecx
jmp 0x1015dbee
test ecx, ecx
jg 0x1015db57
jl 0x1015db95
test eax, eax
jae 0x1015db57
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10154dab
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1015dbb5
cmp byte [edi + 0x1c], 0
je 0x1015db57
jmp 0x1015dbe6
push ebx
call fcn.1015c1a1
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1015db57
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1015dbee
cmp byte [edi + 0x1c], 0
je 0x1015dbeb
mov ebx, dword [edi + 0x18]
jmp 0x1015dbee
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10154dab
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1015f1d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1015f1fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1015f1fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401000
Capabilities:
Delete file

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
push 0x80
push ebx
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x208
push 0x408660
mov dword [0x408868], eax
call fcn.00401210
add esp, 8
test eax, eax
je 0x40103e
mov al, byte [0x408660]
test al, al
jne 0x40104d
push 0x30
push 0x4060c4
call fcn.00401480
add esp, 8
push 0
push 0x401120
push 0
push 0x66
push ebx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
test eax, eax
je 0x401112
push ebp
push esi
push edi
mov edi, 0x408660
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Update.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004014a0
call fcn.004015c0
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.00401290
mov esi, eax
add esp, 8
test esi, esi
je 0x4010f7
lea ecx, [esp + 0x10]
push ecx
push ebx
call fcn.00401330
add esp, 8
lea edx, [esp + 0x10]
mov esi, eax
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.004016b0
pop edi
test esi, esi
pop esi
pop ebp
jne 0x401112
push 0x10
push 0x406094
call fcn.00401480
add esp, 8
xor eax, eax
pop ebx
add esp, 0x208
ret 0x10

Function at 0x401210
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov edx, ecx
push edi
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0xc], 0
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsBpwin.exe]
lea eax, [esp + 0x14]
push eax
push 1
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x401280
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push str.Path
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x14]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
pop ecx
ret
Function at 0x401290
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push str.Program
push 0x66
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4012af
pop edi
pop esi
pop ebx
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test ebx, ebx
mov edi, eax
jne 0x4012d4
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [esp + 0x14]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4012fe
pop edi
pop esi
xor eax, eax
pop ebx
ret
lea ecx, [esp + 0x10]
push 0
push ecx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, edi
pop edi
pop esi
pop ebx
sete al
ret

Function at 0x401330
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov dword [esp + 4], eax
lea ecx, [esp + 4]
mov dword [esp + 8], eax
lea edx, [esp + 0x14]
mov dword [esp + 0xc], eax
push ecx
push edx
push eax
push eax
push 0x10
push eax
push eax
mov dword [esp + 0x2c], eax
push eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x34], 0x44
push eax
push 0
mov dword [esp + 0x68], 1
mov word [esp + 0x6c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
jne 0x401392
add esp, 0x54
ret
mov ecx, dword [esp]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
add esp, 0x54
ret
Function at 0x4014a0
Capabilities:
Persist via default file association registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x214
mov ecx, dword [str.BD2File_shellopencommand]
lea eax, [esp]
push eax
push 3
push 0
push ecx
push 0x80000000
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4015ab
push ebx
push esi
lea edx, [esp + 0xc]
push edi
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0
push edx
mov dword [esp + 0x28], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40159d
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x18]
dec ecx
sub eax, 2
mov esi, 0x406188
add ecx, eax
mov dl, byte [ecx]
mov bl, byte [esi]
mov al, dl
cmp dl, bl
jne 0x401544
test al, al
je 0x401540
mov dl, byte [ecx + 1]
mov bl, byte [esi + 1]
mov al, dl
cmp dl, bl
jne 0x401544
add ecx, 2
add esi, 2
test al, al
jne 0x40151c
xor eax, eax
jmp 0x401549
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40159d
mov edi, 0x406184
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push 1
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
add esp, 0x214
ret
Function at 0x4015c0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x208
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp]
push ebx
push ebp
push esi
push edi
mov edi, 0x408660
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.datamaster_data00.bd2
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and ecx, 3
lea eax, [esp + 0x10]
rep movsb byte es:[edi], byte [esi]
push eax
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
and al, 0xfe
lea ecx, [esp + 0x10]
push eax
push ecx
call ebp
mov edi, 0x408660
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.data_team2000.txt
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
lea eax, [esp + 0x10]
rep movsb byte es:[edi], byte [esi]
push eax
call ebx
and al, 0xfe
lea ecx, [esp + 0x10]
push eax
push ecx
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x4016b0
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x208
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp]
push ebx
push ebp
push esi
push edi
mov edi, 0x408660
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.datamaster_data00.bd2
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and ecx, 3
lea eax, [esp + 0x10]
rep movsb byte es:[edi], byte [esi]
push eax
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
or al, 1
lea ecx, [esp + 0x10]
push eax
push ecx
call ebp
mov edi, 0x408660
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.data_team2000.txt
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
lea eax, [esp + 0x10]
rep movsb byte es:[edi], byte [esi]
push eax
call ebx
or al, 1
lea ecx, [esp + 0x10]
push eax
push ecx
call ebp
mov edi, 0x408660
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.datamaster_data00.bv2
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret

Function at 0x409c7f
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x405fa8], 0
jne 0x409cf9
cmp dword [0x405f9c], 0
jne 0x409cf9
push 0x405f94
push 0x405fac
push 0x405fa4
push 0x406620
call fcn.00409cff
add esp, 0x10
test eax, eax
jne 0x409cb5
xor eax, eax
jmp 0x409cfe
xor edx, edx
mov dword [0x406410], edx
cmp dword [0x405fa4], edx
jbe 0x409cf9
mov eax, dword [0x405f94]
mov ecx, dword [0x406410]
movsx eax, byte [eax + edx]
shr ecx, 8
xor eax, dword [0x406410]
and eax, 0xff
inc edx
mov eax, dword [eax*4 + str.DOMAIN_error_r_n]
xor eax, ecx
cmp dword [0x405fa4], edx
mov dword [0x406410], eax
ja 0x409cc5
mov eax, 1
ret
Function at 0x40a972
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
lea ecx, [ebp - 0xc]
push eax
lea edx, [ebp - 8]
push ecx
push edx
push dword [ebp + 8]
call fcn.00409cff
add esp, 0x10
test eax, eax
jne 0x40a997
xor eax, eax
jmp 0x40a9ea
xor edx, edx
mov dword [0x406418], edx
cmp dword [ebp - 8], edx
jbe 0x40a9d3
mov eax, dword [ebp - 4]
mov ecx, dword [0x406418]
movsx eax, byte [eax + edx]
shr ecx, 8
xor eax, dword [0x406418]
and eax, 0xff
inc edx
mov eax, dword [eax*4 + str.DOMAIN_error_r_n]
xor eax, ecx
cmp dword [ebp - 8], edx
mov dword [0x406418], eax
ja 0x40a9a4
push dword [ebp - 4]
call dword [0x407174]
push dword [ebp - 0xc]
call dword [0x40717c]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x401120
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Create process on windows
Log keystrokes via polling
Read .ini file
Terminate process

Disassembly:
sub esp, 0x108
push ebx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x82
push 0x403408
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push 0
push 0x403408
call dword [sym.imp.SHLWAPI.dll_StrRChrA]
inc eax
push eax
push 1
push 0
mov dword [0x40350c], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4012dc
mov eax, dword [0x40350c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str..cfg_setting.cfg
push 0x400
push 0x403008
push 0x40209d
push str.File
push eax
call esi
mov ecx, dword [0x40350c]
push str..cfg_setting.cfg
push 0x400
push 0x403510
push 0x40209d
push 0x4020b0
push ecx
call esi
push str..cfg_setting.cfg
push 4
lea edx, [esp + 0x14]
push edx
push 0x40209d
push str.edit_permission
push 0x4020cc
call esi
push 0x4020d0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov esi, eax
neg esi
sbb esi, esi
neg esi
je 0x40121c
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x40121c
push 0
push section..text
push 0
push 0x66
push edi
call dword [sym.imp.USER32.dll_DialogBoxParamA]
jmp 0x4012db
mov al, byte [0x403008]
mov dl, byte [0x403510]
test al, al
jne 0x401267
test dl, dl
jne 0x401267
test esi, esi
je 0x401267
mov ecx, dword [0x40350c]
push ecx
lea edx, [esp + 0x14]
push str.Launch_application_is_not_set._r_nSetting:_Shift_key___s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x40350c]
add esp, 0xc
push 0x1010
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4012db
xor ecx, ecx
test al, al
je 0x40127d
test dl, dl
je 0x401276
mov ecx, 0x403510
mov eax, 0x403008
jmp 0x401282
mov eax, 0x403510
push 5
push 0
push ecx
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x4012d0
push 0x403510
push 0x403008
push eax
lea edx, [esp + 0x1c]
push str.Failed_to_run_Error_code:_d_._n_nAutoRunFile:_s_nParameter:_s_n
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x40350c]
add esp, 0x14
push 0x1010
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
test ebx, ebx
je 0x4012e7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x409870
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x23c
lea eax, [esp + 0x34]
mov esi, dword [esp + 0x254]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0xc], 0xf003f
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x250]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x4099d7
lea ebp, [esp + 0x3c]
lea ecx, [esp + 0x40]
lea ebx, [esp + 0x3a]
mov eax, ebp
sub eax, ecx
add eax, 0x1f4
shr eax, 2
mov dword [esp + 0x28], eax
jmp 0x40995b
mov dword [esp], esi
call sub.msvcrt.dll_wcslen
mov dword [esp], ebx
mov edi, eax
call sub.msvcrt.dll_wcslen
lea edx, [edi + eax + 2]
lea eax, [edx + edx]
cmp edx, 0x3f800000
mov edx, 0xffffffff
cmova eax, edx
mov dword [esp], eax
call sub.libstdc_6.dll_operator_new___unsigned_int_
mov dword [esp + 4], esi
mov edi, eax
mov dword [esp], eax
call sub.msvcrt.dll_wcscpy
mov dword [esp + 4], 0x40e462
mov dword [esp], edi
call sub.msvcrt.dll_wcscat
mov dword [esp + 4], ebx
mov dword [esp], edi
call sub.msvcrt.dll_wcscat
mov eax, dword [esp + 0x250]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.00409870
sub esp, 8
mov dword [esp], edi
call sub.libstdc_6.dll_operator_delete___void_
movzx eax, word [0x40e466]
mov ecx, dword [esp + 0x28]
lea edi, [esp + 0x40]
mov word [esp + 0x3a], ax
xor eax, eax
mov dword [ebp], 0
mov dword [ebp + 0x1f0], 0
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], 0xfb
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
je 0x4098e0
mov eax, dword [esp + 0x250]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
sub esp, 8
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 4
add esp, 0x23c
pop ebx
pop esi
pop edi
pop ebp
ret 8

Function at 0x40a7e0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.0040a840
Function at 0x40b1e0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x40b218
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x40b20e
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x40b21a
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x40b200
xor eax, eax
pop ebx
pop esi
ret

Function at 0x40b4e0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
sub esp, 8
test eax, eax
mov dword [esp + 0x2c], eax
je 0x40b641
mov edx, dword [esp + 0x3c]
lea eax, [edx*4]
cmp edx, 0x1fc00000
mov edx, 0xffffffff
cmova eax, edx
xor ebx, ebx
mov dword [esp], eax
call sub.libstdc_6.dll_operator_new___unsigned_int_
mov edx, dword [esp + 0x3c]
mov edi, eax
test edx, edx
jle 0x40b5e9
nop
mov eax, dword [esp + 0x2c]
mov ebp, dword [eax + ebx*4]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebp
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x20
mov dword [esp], eax
mov dword [esp + 0x28], eax
call sub.libstdc_6.dll_operator_new___unsigned_int_
mov ecx, dword [esp + 0x28]
mov esi, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x20
mov dword [edi + ebx*4], esi
add ebx, 1
cmp dword [esp + 0x3c], ebx
jg 0x40b540
mov eax, dword [esp + 0x2c]
xor ebx, ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
sub esp, 4
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.004041b0
mov esi, eax
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x40b62d
mov edx, dword [edi + ebx*4]
test edx, edx
je 0x40b624
mov dword [esp], edx
call sub.libstdc_6.dll_operator_delete___void_
add ebx, 1
cmp dword [esp + 0x3c], ebx
jg 0x40b615
mov dword [esp], edi
call sub.libstdc_6.dll_operator_delete___void_
mov eax, esi
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov eax, 0xffffffff
jmp 0x40b637
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
jmp loc.00401219