joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403b1f
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x4dcc3d
call fcn.00471fb4
push ecx
mov eax, dword [0x51f320]
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 4]
mov dword [ecx], eax
mov eax, dword [0x51f320]
and dword [ebp - 4], 0
lea edi, [esi + 8]
mov dword [edi], eax
mov eax, dword [0x51f320]
lea ebx, [esi + 0xc]
mov dword [ebx], eax
mov eax, dword [0x51f320]
mov dword [esi + 0x10], eax
mov eax, dword [0x51f320]
mov dword [esi + 0x14], eax
mov eax, dword [0x51f320]
mov dword [esi + 0x18], eax
mov eax, dword [0x51f320]
mov dword [esi + 0x1c], eax
mov eax, dword [0x51f320]
mov dword [esi + 0x20], eax
mov eax, dword [0x51f320]
mov dword [esi + 0x24], eax
mov eax, dword [0x51f320]
mov dword [esi + 0x2c], eax
mov eax, dword [0x51f320]
mov dword [esi + 0x30], eax
mov byte [ebp - 4], 0xa
mov dword [esi], 0x4e9d14
call fcn.004d2c14
mov ecx, edi
call fcn.004d2c14
mov ecx, ebx
call fcn.004d2c14
lea ecx, [esi + 0x10]
call fcn.004d2c14
lea ecx, [esi + 0x14]
call fcn.004d2c14
lea ecx, [esi + 0x18]
call fcn.004d2c14
lea ecx, [esi + 0x1c]
call fcn.004d2c14
lea ecx, [esi + 0x20]
call fcn.004d2c14
lea ecx, [esi + 0x24]
call fcn.004d2c14
and dword [esi + 0x28], 0
lea ecx, [esi + 0x2c]
call fcn.004d2c14
lea ecx, [esi + 0x30]
call fcn.004d2c14
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x403b30
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x4dcc3d
call fcn.00471fb4
push ecx
mov eax, dword [0x51f320]
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 4]
mov dword [ecx], eax
mov eax, dword [0x51f320]
and dword [ebp - 4], 0
lea edi, [esi + 8]
mov dword [edi], eax
mov eax, dword [0x51f320]
lea ebx, [esi + 0xc]
mov dword [ebx], eax
mov eax, dword [0x51f320]
mov dword [esi + 0x10], eax
mov eax, dword [0x51f320]
mov dword [esi + 0x14], eax
mov eax, dword [0x51f320]
mov dword [esi + 0x18], eax
mov eax, dword [0x51f320]
mov dword [esi + 0x1c], eax
mov eax, dword [0x51f320]
mov dword [esi + 0x20], eax
mov eax, dword [0x51f320]
mov dword [esi + 0x24], eax
mov eax, dword [0x51f320]
mov dword [esi + 0x2c], eax
mov eax, dword [0x51f320]
mov dword [esi + 0x30], eax
mov byte [ebp - 4], 0xa
mov dword [esi], 0x4e9d14
call fcn.004d2c14
mov ecx, edi
call fcn.004d2c14
mov ecx, ebx
call fcn.004d2c14
lea ecx, [esi + 0x10]
call fcn.004d2c14
lea ecx, [esi + 0x14]
call fcn.004d2c14
lea ecx, [esi + 0x18]
call fcn.004d2c14
lea ecx, [esi + 0x1c]
call fcn.004d2c14
lea ecx, [esi + 0x20]
call fcn.004d2c14
lea ecx, [esi + 0x24]
call fcn.004d2c14
and dword [esi + 0x28], 0
lea ecx, [esi + 0x2c]
call fcn.004d2c14
lea ecx, [esi + 0x30]
call fcn.004d2c14
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x403c22
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x4dccb6
call fcn.00471fb4
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x4e9d14
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 9
call fcn.004d2c89
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 8
call fcn.004d2c89
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 7
call fcn.004d2c89
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 6
call fcn.004d2c89
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 5
call fcn.004d2c89
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 4
call fcn.004d2c89
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 3
call fcn.004d2c89
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 2
call fcn.004d2c89
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
call fcn.004d2c89
and byte [ebp - 4], 0
lea ecx, [esi + 8]
call fcn.004d2c89
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 4]
call fcn.004d2c89
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x404f15
Capabilities:
Check http status code

Disassembly:
mov eax, 0x4dce53
call fcn.00471fb4
mov eax, 0x1002c
call fcn.00472d20
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
cmp edi, ebx
je 0x404f5f
mov eax, dword [edi + 0x18]
lea esi, [edi + 0x18]
cmp dword [eax - 8], ebx
jne 0x404f58
push str.Accept:___r_n_r_n
mov ecx, esi
call fcn.004d2e12
mov eax, dword [esi]
mov ecx, dword [eax - 8]
jmp 0x404f86
mov esi, str.Accept:___r_n_r_n
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
lea ecx, [ebp - 0x24]
mov dword [ebp + 0x14], eax
call fcn.004d2cf7
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 4], ebx
jmp 0x404f88
mov eax, esi
mov eax, dword [eax]
push ebx
push 0x84000100
push ecx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00449061
add esp, 0x18
cmp eax, ebx
sete byte [ebp + 0x17]
or dword [ebp - 4], 0xffffffff
mov dword [ebp + 0xc], eax
test byte [ebp - 0x18], 1
je 0x404fbb
lea ecx, [ebp - 0x24]
call fcn.004d2c89
cmp byte [ebp + 0x17], bl
je 0x404fc4
push 1
jmp 0x405013
push 4
lea eax, [ebp - 0x2c]
pop esi
mov dword [ebp - 0x20], ebx
push ebx
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x2c], esi
push eax
push 0x20000013
push dword [ebp + 0xc]
call fcn.00449019
add esp, 0x14
test eax, eax
je 0x405011
mov eax, dword [ebp - 0x20]
cmp edi, ebx
je 0x404ff4
mov dword [edi + 4], eax
cmp eax, 0xc8
jne 0x405011
push 0x5199e0
push dword [ebp + 0x10]
call fcn.00472cbc
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp + 0x14], eax
jne 0x405019
push 2
pop eax
jmp 0x405106
lea eax, [ebp - 0x30]
push ebx
push eax
lea eax, [ebp - 0x14]
push eax
push 0x20000005
push dword [ebp + 0xc]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x14], ebx
xor esi, esi
call fcn.00449019
add esp, 0x14
test eax, eax
jne 0x405041
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10038]
push 0x4000
push eax
push dword [ebp + 0xc]
call fcn.00448fd4
add esp, 0x10
test eax, eax
je 0x4050f0
cmp dword [ebp - 0x10], ebx
push dword [ebp + 0x14]
je 0x4050f5
push dword [ebp - 0x10]
lea eax, [ebp - 0x10038]
push 1
push eax
call fcn.00472b52
mov ecx, dword [ebp - 0x14]
add esi, dword [ebp - 0x10]
add esp, 0x10
cmp ecx, ebx
je 0x4050a4
cmp edi, ebx
je 0x4050a4
mov eax, esi
xor edx, edx
imul eax, eax, 0x64
div ecx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], esi
mov dword [edi + 0x14], eax
fldz
fstp dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x28]
je 0x4050cf
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
fild qword [ebp - 0x1c]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ebx
fmul dword [0x4e9d34]
fidiv dword [ebp - 0x38]
fstp dword [ebp + 8]
cmp edi, ebx
je 0x405041
fld dword [ebp + 8]
call fcn.00472d50
mov dword [edi + 0x10], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
test eax, eax
jne 0x405041
push 3
pop ebx
jmp 0x4050fb
call fcn.004729ec
pop ecx
push dword [ebp + 0x14]
call fcn.0047296f
pop ecx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40572b
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x4dced4
call fcn.00471fb4
push ecx
push ecx
push esi
mov esi, ecx
push edi
push 0x527a08
and byte [esi + 0x2c], 0
and dword [esi + 0x30], 0
lea ecx, [ebp - 0x10]
call fcn.004d2cf7
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.PlayFlashDll
call fcn.004d2cf7
push bind
mov ecx, esi
call fcn.00405933
test eax, eax
jne 0x4057a6
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.00405863
push dword [eax]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push str._sFlashPlayDll.dll
push eax
call fcn.004ccbe3
and byte [ebp - 4], 0
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.004d2c89
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 0x30], eax
je 0x40582f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InitFlashDLL
push eax
call edi
push str.PlayFile
mov dword [esi + 8], eax
push dword [esi + 0x30]
call edi
push str.PlayFile1
mov dword [esi + 0xc], eax
push dword [esi + 0x30]
call edi
push str.PlayFile2
mov dword [esi + 0x10], eax
push dword [esi + 0x30]
call edi
push str.StopPlay
mov dword [esi + 0x14], eax
push dword [esi + 0x30]
call edi
push str.Exit
mov dword [esi + 0x18], eax
push dword [esi + 0x30]
call edi
push str.DllWndMsg
mov dword [esi + 0x1c], eax
push dword [esi + 0x30]
call edi
push str.DllMoveWindow
mov dword [esi + 0x20], eax
push dword [esi + 0x30]
call edi
push str.DllOnCmdMsg
mov dword [esi + 0x24], eax
push dword [esi + 0x30]
call edi
mov dword [esi + 0x28], eax
call fcn.004d92e7
mov eax, dword [eax + 4]
mov ecx, esi
push dword [eax + 0x68]
call fcn.00405a42
test al, al
je 0x405849
mov byte [esi + 0x2c], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004d2c89
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x405933
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4dcf1c
call fcn.00471fb4
sub esp, 0x4d0
push esi
mov ecx, dword [ebp + 0x10]
xor esi, esi
push 0x527a08
mov dword [ebp - 4], esi
call fcn.004d2e12
push dword [ebp + 0xc]
lea eax, [ebp - 0xdc]
push 0x5198ec
push eax
call fcn.0047291d
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push 0x20019
lea eax, [ebp - 0xdc]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
je 0x40599b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004d2c89
xor eax, eax
jmp 0x405a0f
mov al, byte [0x527a08]
push edi
mov byte [ebp - 0x4dc], al
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x4db]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 8]
mov dword [ebp - 0x14], esi
push eax
lea eax, [ebp - 0x4dc]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push str.playflash
mov dword [ebp + 8], 0x400
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, esi
pop edi
jne 0x4059f8
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x4dc]
push eax
call fcn.004d2e12
push 1
pop esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004d2c89
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x405e08
Capabilities:
Create thread

Disassembly:
mov eax, 0x4dcf90
call fcn.00471fb4
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea edi, [esi + 0x24]
cmp edi, ebx
je 0x405e2b
inc dword [edi + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0x10], edi
cmp dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
je 0x405e4b
push dword [ebp + 8]
call fcn.004723b0
pop ecx
push eax
lea ecx, [esi + 8]
push dword [ebp + 8]
call fcn.00404079
mov ecx, esi
call fcn.00405d6c
test eax, eax
jne 0x405e78
mov dword [esi + 0x20], ebx
lea eax, [esi + 4]
push eax
push ebx
push esi
push 0x405f85
push ebx
push ebx
call fcn.00473165
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x18], eax
je 0x405e78
push 1
pop ebx
lea ecx, [ebp - 0x10]
call fcn.00405df5
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x405e93
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x4dcfac
call fcn.00471fb4
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea edi, [esi + 0x24]
mov dword [ebp - 0x10], ebx
cmp edi, ebx
je 0x405eba
inc dword [edi + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0x14], edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
cmp edi, ebx
jg 0x405ecc
mov edi, 0x5fffffff
mov ecx, esi
call fcn.00405d6c
test eax, eax
je 0x405f21
cmp dword [ebp + 8], ebx
je 0x405ee5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x64
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub edi, 0x64
cmp eax, 0x102
jne 0x405f21
cmp edi, ebx
jg 0x405ecc
cmp dword [esi + 0x18], ebx
jne 0x405f2a
mov dword [esi + 0x20], ebx
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x405f17
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], ebx
lea ecx, [ebp - 0x14]
call fcn.00405df5
jmp 0x405f71
mov dword [ebp - 0x10], 1
jmp 0x405f03
mov eax, dword [0x51f320]
mov dword [ebp + 8], eax
push dword [esi + 4]
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push 0x519b48
push eax
call fcn.004ccbe3
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.004d2c89
lea ecx, [ebp - 0x14]
call fcn.00405df5
push 0xfffffffffffffff4
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x405ea0
Capabilities:
Print debug messages
Terminate thread

Disassembly:
mov eax, 0x4dcfac
call fcn.00471fb4
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea edi, [esi + 0x24]
mov dword [ebp - 0x10], ebx
cmp edi, ebx
je 0x405eba
inc dword [edi + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0x14], edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
cmp edi, ebx
jg 0x405ecc
mov edi, 0x5fffffff
mov ecx, esi
call fcn.00405d6c
test eax, eax
je 0x405f21
cmp dword [ebp + 8], ebx
je 0x405ee5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x64
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub edi, 0x64
cmp eax, 0x102
jne 0x405f21
cmp edi, ebx
jg 0x405ecc
cmp dword [esi + 0x18], ebx
jne 0x405f2a
mov dword [esi + 0x20], ebx
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x405f17
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], ebx
lea ecx, [ebp - 0x14]
call fcn.00405df5
jmp 0x405f71
mov dword [ebp - 0x10], 1
jmp 0x405f03
mov eax, dword [0x51f320]
mov dword [ebp + 8], eax
push dword [esi + 4]
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push 0x519b48
push eax
call fcn.004ccbe3
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.004d2c89
lea ecx, [ebp - 0x14]
call fcn.00405df5
push 0xfffffffffffffff4
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x406076
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4dcfdc
call fcn.00471fb4
sub esp, 0x40
mov al, byte [ebp + 0xb]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
push ebx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0xd], bl
mov byte [ebp - 0x4c], al
call fcn.00404133
cmp dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
je 0x4060b9
push dword [ebp + 8]
call fcn.004723b0
pop ecx
push eax
lea ecx, [ebp - 0x4c]
push dword [ebp + 8]
call fcn.00404079
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x3c], al
call fcn.00404133
cmp dword [ebp + 0xc], ebx
mov byte [ebp - 4], 1
je 0x4060e6
push dword [ebp + 0xc]
call fcn.004723b0
pop ecx
push eax
lea ecx, [ebp - 0x3c]
push dword [ebp + 0xc]
call fcn.00404079
mov al, byte [esi]
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2c], al
call fcn.00404133
push dword [0x4e9d2c]
lea ecx, [ebp - 0x2c]
push ebx
push esi
call fcn.004053cf
push dword [0x4e9d2c]
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
push ebx
push eax
call fcn.00406b03
mov eax, dword [ebp - 0x28]
mov edi, 0x4e9d18
cmp eax, ebx
jne 0x406129
mov eax, edi
lea ecx, [ebp - 0x1c]
push ecx
push eax
push dword [esi + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x406143
mov byte [ebp + 0xb], bl
jmp 0x4061ca
cmp dword [ebp - 0x38], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0x406
je 0x406155
mov edi, dword [ebp - 0x38]
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push esi
push eax
push ebx
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4061bb
mov eax, dword [ebp - 0x18]
push 2
pop ecx
cmp eax, ecx
je 0x4061ab
push 1
pop edx
cmp eax, edx
je 0x4061ab
cmp eax, 4
jne 0x406191
mov byte [ebp - 0xd], dl
mov dword [esi + 0x40c], edx
jmp 0x4061bb
cmp eax, 3
jne 0x4061bb
mov eax, dword [ebp - 0x14]
mov byte [ebp - 0xd], 1
mov dword [esi + 0x408], eax
mov dword [esi + 0x40c], ecx
jmp 0x4061bb
mov eax, dword [ebp - 0x14]
mov byte [ebp - 0xd], 1
mov byte [eax + esi], bl
mov dword [esi + 0x40c], ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0xd]
mov byte [ebp + 0xb], al
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00404133
push 1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call fcn.00404133
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x4c]
call fcn.00404133
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x406207
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4dd000
call fcn.00471fb4
sub esp, 0x38
mov al, byte [ebp + 0xb]
and byte [ebp - 0xd], 0
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
lea ecx, [ebp - 0x44]
push edi
mov byte [ebp - 0x44], al
call fcn.00404133
cmp dword [ebp + 8], edi
mov dword [ebp - 4], edi
je 0x40624b
push dword [ebp + 8]
call fcn.004723b0
pop ecx
push eax
lea ecx, [ebp - 0x44]
push dword [ebp + 8]
call fcn.00404079
mov al, byte [ebp + 0xb]
push edi
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x24], al
call fcn.00404133
cmp dword [ebp + 0xc], edi
mov byte [ebp - 4], 1
je 0x406278
push dword [ebp + 0xc]
call fcn.004723b0
pop ecx
push eax
lea ecx, [ebp - 0x24]
push dword [ebp + 0xc]
call fcn.00404079
mov al, byte [esi]
push edi
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x34], al
call fcn.00404133
push dword [0x4e9d2c]
lea ecx, [ebp - 0x34]
push edi
push esi
call fcn.004053cf
push dword [0x4e9d2c]
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
push edi
push eax
call fcn.00406b03
mov eax, dword [ebp - 0x30]
cmp eax, edi
jne 0x4062b9
mov eax, 0x4e9d18
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [esi + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4062d2
xor bl, bl
jmp 0x40638d
mov edi, dword [ebp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [edi + 0x40c], 3
jne 0x406315
mov eax, dword [ebp - 0x20]
mov dword [ebp + 8], 0x4e9d18
test eax, eax
je 0x4062fb
mov dword [ebp + 8], eax
push edi
call ebx
inc eax
push eax
push edi
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x406315
mov byte [ebp - 0xd], 1
mov eax, dword [edi + 0x40c]
test eax, eax
jne 0x40633f
mov eax, dword [ebp - 0x20]
mov dword [ebp + 8], 0x4e9d18
test eax, eax
je 0x406330
mov dword [ebp + 8], eax
push edi
call ebx
inc eax
push eax
push edi
push 2
push 0
push dword [ebp + 8]
jmp 0x406374
cmp eax, 1
jne 0x406357
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x406350
mov eax, 0x4e9d18
push 4
push edi
push 4
jmp 0x406371
cmp eax, 2
jne 0x406381
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x406368
mov eax, 0x4e9d18
push dword [edi + 0x408]
push edi
push 3
push 0
push eax
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x406381
mov byte [ebp - 0xd], 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, byte [ebp - 0xd]
push 1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00404133
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x24]
call fcn.00404133
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x44]
call fcn.00404133
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x406640
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x4dd040
call fcn.00471fb4
sub esp, 0x24
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
mov esi, ecx
je 0x40672a
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x30], al
call fcn.00404133
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.004723b0
pop ecx
push eax
lea ecx, [ebp - 0x30]
push dword [ebp + 8]
call fcn.00404079
mov al, byte [esi]
push ebx
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], al
call fcn.00404133
push dword [0x4e9d2c]
lea ecx, [ebp - 0x20]
push ebx
push esi
call fcn.004053cf
push dword [0x4e9d2c]
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
push ebx
push eax
call fcn.00406b03
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x4066c4
mov eax, 0x4e9d18
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [esi + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4066db
mov byte [ebp + 0xb], bl
jmp 0x4066ef
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x40670f
mov byte [ebp + 0xb], 1
push 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.00404133
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x30]
call fcn.00404133
mov al, byte [ebp + 0xb]
jmp 0x40672c
push 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.00404133
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x30]
call fcn.00404133
xor al, al
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x407c66
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x407c7d
cmp eax, 0xffffffff
je 0x407c7d
push 1
pop eax
ret
xor eax, eax
ret
Function at 0x407c80
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x4dd180
call fcn.00471fb4
sub esp, 0x30
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
cmp dword [ebp + 8], ebx
mov esi, ecx
je 0x407d74
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2c], al
call fcn.00404133
push dword [ebp + 8]
call fcn.004723b0
pop ecx
push eax
lea ecx, [ebp - 0x2c]
push dword [ebp + 8]
call fcn.00404079
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x1c], al
call fcn.00404133
push 1
lea eax, [ebp + 0xb]
pop edi
lea ecx, [ebp - 0x2c]
push edi
push ebx
push eax
mov byte [ebp - 4], 1
mov byte [ebp + 0xb], 0x5c
call fcn.004080ec
cmp eax, ebx
jge 0x407d28
add esi, 4
push 0x519a30
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.004055f4
add esp, 0xc
push dword [0x4e9d2c]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
push ebx
push eax
call fcn.004053cf
push edi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00404133
push dword [0x4e9d2c]
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x1c]
push ebx
push eax
call fcn.00406b03
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jne 0x407d47
mov eax, 0x4e9d18
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x407d57
cmp eax, 0xffffffff
jne 0x407d59
xor edi, edi
push 1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00404133
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x2c]
call fcn.00404133
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x407f6a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
call fcn.00407f11
cmp dword [ebp + 8], 0
mov ebx, eax
je 0x407f83
mov ebx, dword [ebp + 8]
and dword [ebp - 4], 0
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp dword [ebp + 8], ecx
jbe 0x407f93
mov ebx, ecx
cmp dword [ebp + 0xc], eax
jae 0x407fcc
lea eax, [ebx + 1]
push eax
call fcn.004d31ed
pop ecx
mov edi, eax
push 0xffffffffffffffff
mov ecx, esi
push dword [ebp + 0xc]
call fcn.00407f28
lea eax, [ebp - 4]
push 0
push eax
push ebx
push edi
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407fd5
push edi
call fcn.004d3216
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
mov ecx, esi
call fcn.00407ff0
mov eax, dword [ebp - 4]
and byte [eax + edi], 0
mov eax, dword [ebp - 4]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x28], edi
mov eax, edi
jmp 0x407fce