joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402d20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x54
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esp + 0x10], 0
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push str.SOFTWAREFinalDataOptions
push 0x80000002
call esi
test eax, eax
mov edi, 4
je 0x402da8
lea ecx, [esp + 0xc]
push ecx
push str.SOFTWAREFinalDataOptions
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push str.SOFTWAREFinalDataOptions
push 0x80000002
call esi
test eax, eax
jne 0x402dee
lea ecx, [esp + 0x20]
push str.DDOption
push ecx
call fcn.004038a0
add esp, 8
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x2c]
push 0
push edx
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebp
call fcn.00402610
test eax, eax
je 0x402e2d
mov eax, dword [ebp + 0x170]
cmp eax, 0xffffffff
je 0x402e2d
lea edx, [esp + 0x1c]
push 0
push edx
push 0
push 0
lea ecx, [esp + 0x20]
push edi
push ecx
push 0x12350044
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x54
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x54
ret
Function at 0x402e80
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1c58
call fcn.00403910
mov edx, ecx
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0xc5d]
mov byte [esp + 0xc5c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [edx + 0x170]
mov dword [esp + 0xc], edx
cmp eax, 0xffffffff
jne 0x402ed6
xor eax, eax
pop edi
add esp, 0x1c58
ret
mov ecx, edx
call fcn.00402610
test eax, eax
jne 0x402ee9
pop edi
add esp, 0x1c58
ret
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push str.SOFTWAREFinalDataOptions
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402f13
xor eax, eax
pop edi
add esp, 0x1c58
ret
lea ecx, [esp + 0x1c]
push str.DDExceptionPaths
push ecx
call fcn.004038a0
add esp, 8
lea edx, [esp + 0x10]
lea eax, [esp + 0xc5c]
lea ecx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0xc]
push ecx
lea edx, [esp + 0x28]
push 0
push edx
push eax
mov dword [esp + 0x2c], 3
mov dword [esp + 0x28], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x402f72
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
add esp, 0x1c58
ret
mov edx, dword [esp + 4]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc60]
mov ebp, 4
test eax, eax
jbe 0x403044
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
mov dword [esp + 0x14], eax
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x68]
add ebp, 4
rep stosd dword es:[edi], eax
mov eax, dword [esp + ebp + 0xc64]
lea esi, [esp + ebp + 0xc68]
mov ecx, eax
lea edi, [esp + 0x68]
mov edx, ecx
add ebp, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor eax, eax
and ecx, 3
push 0x400
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x200
lea edi, [esp + 0x46c]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x6c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x46c]
dec ecx
push eax
push ecx
lea ecx, [esp + 0x74]
push ecx
push 0
push 0
call ebx
lea edx, [esp + 0x24]
push 0
push edx
mov edx, dword [esp + 0x20]
push 0
add eax, eax
push 0
lea ecx, [esp + 0x478]
push eax
mov eax, dword [edx + 0x170]
push ecx
push 0x1235003c
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
jne 0x402f9e
pop esi
pop ebx
pop ebp
mov eax, 1
pop edi
add esp, 0x1c58
ret
Function at 0x403060
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x54
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esp + 0x10], 0
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push str.SOFTWAREFinalDataOptions
push 0x80000002
call esi
test eax, eax
mov edi, 4
je 0x4030e8
lea ecx, [esp + 0xc]
push ecx
push str.SOFTWAREFinalDataOptions
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push str.SOFTWAREFinalDataOptions
push 0x80000002
call esi
test eax, eax
jne 0x40312e
lea ecx, [esp + 0x20]
push str.DDMaxSize
push ecx
call fcn.004038a0
add esp, 8
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x2c]
push 0
push edx
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebp
call fcn.00402610
test eax, eax
je 0x40316d
mov eax, dword [ebp + 0x170]
cmp eax, 0xffffffff
je 0x40316d
lea edx, [esp + 0x1c]
push 0
push edx
push 0
push 0
lea ecx, [esp + 0x20]
push edi
push ecx
push 0x1235004c
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x54
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x54
ret
Function at 0x403180
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x58
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esp + 0x14], 0
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push str.SOFTWAREFinalDataOptions
push 0x80000002
call esi
test eax, eax
je 0x403203
lea ecx, [esp + 0x10]
push ecx
push str.SOFTWAREFinalDataOptions
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push str.SOFTWAREFinalDataOptions
push 0x80000002
call esi
test eax, eax
jne 0x40324e
lea ecx, [esp + 0x24]
push str.IgnoreNoExt
push ecx
call fcn.004038a0
mov eax, 4
add esp, 8
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
lea edx, [esp + 0x18]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x30]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebp
call fcn.00402610
test eax, eax
je 0x40329c
mov eax, dword [ebp + 0x170]
cmp eax, 0xffffffff
je 0x40329c
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x20]
cmp edi, 1
push 0
sete dl
push ecx
mov byte [esp + 0x17], dl
push 0
push 0
lea edx, [esp + 0x1f]
push 1
push edx
push 0x12350048
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x58
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x58
ret

Function at 0x403940
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409168
push 0x406278
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x40cfc4], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x40cfc0], ecx
shl ecx, 8
add ecx, edx
mov dword [0x40cfbc], ecx
shr eax, 0x10
mov dword [0x40cfb8], eax
call fcn.00406230
test eax, eax
jne 0x4039aa
push 0x1c
call fcn.00403a90
add esp, 4
mov dword [ebp - 4], 0
call fcn.00406030
call fcn.00406020
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40e4b4], eax
call fcn.004059e0
mov dword [0x40cf70], eax
test eax, eax
je 0x4039dd
mov eax, dword [0x40e4b4]
test eax, eax
jne 0x4039e7
push 0xffffffffffffffff
call fcn.004053a0
add esp, 4
call fcn.00405730
call fcn.00405640
call fcn.00405370
mov eax, dword [0x40cfd4]
mov dword [0x40cfd8], eax
push eax
mov eax, dword [0x40cfcc]
push eax
mov ecx, dword [0x40cfc8]
push ecx
call fcn.00401360
add esp, 0xc
mov dword [ebp - 0x1c], eax
push eax
call fcn.004053a0
jmp 0x403a42
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403a90
Capabilities:
Terminate process

Disassembly:
cmp dword [0x40cf78], 2
je 0x403a9e
call fcn.00406350
mov eax, dword [esp + 4]
push eax
call fcn.00406390
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4053e0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40cff4]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x4053ff
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x40cff0], 1
mov byte [0x40cfec], bl
jne 0x405459
mov ecx, dword [0x40e4ac]
test ecx, ecx
je 0x405447
mov esi, dword [0x40e4a8]
sub esi, 4
cmp esi, ecx
jb 0x405447
mov eax, dword [esi]
test eax, eax
je 0x405440
call eax
mov ecx, dword [0x40e4ac]
sub esi, 4
cmp esi, ecx
jae 0x405432
push 0x40a020
push 0x40a018
call fcn.00405490
add esp, 8
push 0x40a02c
push 0x40a024
call fcn.00405490
add esp, 8
test ebx, ebx
jne 0x405480
push ebp
mov dword [0x40cff4], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x4059e0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x40d108]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x405a22
call edi
mov esi, eax
test esi, esi
je 0x405a0c
mov eax, 1
jmp 0x405a1d
call ebp
mov ebx, eax
test ebx, ebx
je 0x405b2f
mov eax, 2
mov dword [0x40d108], eax
cmp eax, 1
jne 0x405ac2
test esi, esi
jne 0x405a3b
call edi
mov esi, eax
test esi, esi
je 0x405b2f
cmp word [esi], 0
mov eax, esi
je 0x405a55
add eax, 2
cmp word [eax], 0
jne 0x405a43
add eax, 2
cmp word [eax], 0
jne 0x405a43
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x405ab4
push edi
call fcn.004079a0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x405ab4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x405aa6
push ebx
call fcn.00403ac0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x405b2f
test ebx, ebx
jne 0x405ad3
call ebp
mov ebx, eax
test ebx, ebx
je 0x405b2f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x405aeb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x405adb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x405adb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.004079a0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x405b0d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x406390
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x40a890
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x4063b4
add eax, 8
inc ebp
cmp eax, 0x40a920
jb 0x4063a5
cmp ecx, dword [ebp*8 + 0x40a890]
jne 0x40655b
mov eax, dword [0x40cf78]
cmp eax, 1
je 0x40651d
test eax, eax
jne 0x4063e0
cmp dword [0x40a6e4], 1
je 0x40651d
cmp ecx, 0xfc
je 0x40655b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40641b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x406464
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x409538
add ebx, ecx
push ebx
call fcn.00403710
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
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 edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x409518
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
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 edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x40a894]
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 + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00407b90
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x40e3a0]
test eax, eax
je 0x40652e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x406538
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x40a894]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x4074a0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x40e4a0]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x40764d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x40e3a0]
lea edi, [ecx*4 + 0x40e3a0]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x40764d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x40750e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x40751f
push 2
push ebp
push eax
call fcn.004073e0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x40767e
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x4075c9
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x40757a
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x407567
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x40754a
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40766f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x4075c5
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x407546
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40763e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x407612
cmp eax, 5
jne 0x4075fb
mov dword [0x40cfb0], eax
mov dword [0x40cfac], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00407df0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x407632
cmp byte [ebp], 0x1a
jne 0x407632
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x40cfac], 0x1c
jmp 0x407657
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x40cfac], 9
pop edi
pop esi
pop ebp
mov dword [0x40cfb0], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4075c5
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4076af
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x4075c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4075c9
Function at 0x4f9606
Capabilities:
Execute anti-debugging instructions

Disassembly:
add esp, 5
bsf dx, si
lea esp, [esp + 1]
xchg dword [esp + 0x14], ecx
jmp 0x4f95e1
lea ecx, [ecx - 0xcd]
sub esp, 0x1a
mov dx, word [esp + 0xa]
mov dword [esp + 0xd], ecx
jmp 0x4f95a1
xchg dword [esp], ecx
mov dh, 0x5a
bt edx, edi
mov dh, 0x5e
mov dh, 0xe6
bsf dx, si
jmp 0x4f95b7
bsf dx, si
mov dx, word [esp]
mov dh, 0x36
call fcn.004f961a
lea edx, [ebx*4]
mov dx, word [esp]
not edx
setp dh
mov dh, bh
jmp 0x4f95cf

Function at 0x4f9631
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov byte [esp + 1], dh
xchg word [esp], dx
lea esp, [esp + 4]
rol al, 0
call fcn.004f9606
Function at 0x50f4bd
Capabilities:
Encode data using xor

Disassembly:
mov dword [esp], eax
push dword [esp + 2]
push dword [esp]
lea esp, [esp + 0x2c]
popal
jmp 0x50f4ea
mov si, 0xecc5
jmp 0x50f543
pop esi
and bx, 0x6dc
mov ebx, dword [esp]
call 0x50f50b
loop 0x50f5a2
pop ss
loop 0x50f558
movsb byte es:[edi], byte [esi]
daa
mov bh, 0xd2
and dword [ecx - 0x5631a72e], edx
pop eax
in al, dx
xor eax, 0x10e1c124
shl ecx, 0x10
add edx, ecx
lea esp, [esp + 0x20]
jmp 0x50f521
jmp 0x50f7df
lodsd eax, dword [esi]
cmp ch, byte [eax - 0x7200c531]
pop ds
invalid
cmp edx, ecx
call 0x50f7a1
lea esp, [esp + 4]
add dword [edi + 4], eax
lea ebp, [eax*4]
jmp 0x50fa2b
pop ebp
call 0x50fa06

Function at 0x518452
Capabilities:
Encrypt data using aes

Disassembly:
push dword [esp + 0x14]
jmp 0x51850f
xor eax, edi
cmc
jmp 0x5184d9
mov ebp, 0xdd349984
lea ebp, [esp + ebx]
jmp 0x518477
shr edi, 0x18
movzx edi, byte [edi*4 + 0x4f6200]
mov bp, word [esp]
bsf bp, ax
jmp 0x51848d
lea esp, [esp + 2]
and edi, esi
sub esp, 0x18
push ebx
jmp 0x5184ef
mov edi, edx
or bp, 0xb1d6
lea ebp, [esi*4]
sub esp, 8
sub esp, 2
jmp 0x5184ba
mov ebx, edi
lea ebx, [ebx*4]
lea ebx, [ebx + 0x4f6200]
mov edi, dword [ebx]
jmp 0x518522
mov byte [esp + 0x12], dh
lea esp, [esp + 0x28]
popal
bswap ebp
rcl bp, cl
ror bp, cl
jmp 0x5184a5
pop ebx
bswap ebp
push esp
lea esp, [esp + 0x24]
mov ebp, 0xff00
jmp 0x51855d
invalid
clc
and edi, ebp
call fcn.00518658
or cl, byte [edx + eax - 0x63da6b9b]
sbb dword [ecx - 0x159e418], ecx
jp 0x51855c
invalid

Function at 0x51898b
Capabilities:
Encrypt data using aes

Disassembly:
pushal
bsr di, cx
xor edx, eax
jmp 0x518384

Function at 0x51fd7c
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov byte [esp], ah
push word [esp + 3]
push word [esp + 1]
jmp 0x51fdac

Function at 0x520cd8
Capabilities:
Execute anti-debugging instructions

Disassembly:
push esp
pushal
pushal
lea esp, [esp + 0x44]
jmp 0x520dbf
push dword [esp + 2]
pop word [esp + 3]
mov word [esp + 2], dx
jmp 0x520d16
lea esp, [esp + 2]
lea esp, [esp + 4]
lea ecx, [eax + 4]
stc
jmp 0x520d7c
push ebp
mov ebp, ecx
mov dword [ebp], eax
pop ebp
jmp 0x520e6d
lea esp, [esp + 4]
je 0x4edb05
pushal
jmp 0x520d42
test ecx, ecx
push esp
mov word [esp], bx
mov word [esp], bx
mov word [esp], bx
jmp 0x520d63
push esp
lea esp, [esp + 4]
and dword [esi + 8], 0
call fcn.00520d9b
lea esp, [esp + 0x20]
jmp 0x4edb05

Function at 0x5bad7c
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop word [esp + 0x27]
mov dx, 0xfe97
jmp 0x5baf1d
xchg si, dx
mov dx, 0xcc19
mov edx, dword [esp + 0x1c]
mov edx, 0xbba9f0ba
mov word [esp + 0x13], sp
jmp 0x5badd5
mov dh, ch
mov edx, esi
bswap eax
pop word [esp + 0xf]
pop ax
dec eax
jmp 0x5badee
mov si, 0x7fff
xchg ah, dh
sub esp, 0
ror dh, 5
add esp, 5
push word [esp + 0xe]
jmp 0x5bae09
pop edx
xchg esi, eax
pop word [esp + 0x1f]
bsf si, ax
add al, dh
bswap eax
jmp 0x5bae4a
inc dh
mov word [esp + 2], dx
mov dword [esp + 0x15], eax
xchg dword [esp + 0x14], eax
cmc
ror eax, 3
jmp 0x5bae78
Function at 0x5bb47d
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg word [esp + 1], dx
rdtsc
mov ax, 0x8d61
mov edx, dword [esp + 5]
bswap edx
mov ax, 0x415d
jmp 0x5bb109
mov dx, word [esp + 0x14]
jmp 0x5bb1b8

Function at 0x5bb815
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov al, ah
jmp 0x5bb914
xchg byte [esp + 0x11], dh
lea eax, [eax + edi]
xchg word [esp + 0x13], ax
mov edx, esp
not dx
inc edx
jmp 0x5bb8dc
mov edx, 0xc860840e
btr edx, esp
rcl si, cl
lea eax, [edx + edi]
lea esp, [esp + 1]
neg si
jmp 0x5bb8ad
pop dword [esp + 8]
xchg dh, al
clc
rdtsc
mov word [esp + 0xa], dx
shr dh, 7
jmp 0x5bb952
rdtsc
mov dword [esp], ebp
sub esp, 0x1e
rol dh, 3
pop si
mov dh, ch
jmp 0x5bb8c5
push dword [esp + 2]
xchg word [esp + 7], dx
lea esp, [esp + 0xb]
push word [esp + 3]
mov dh, byte [esp]
bts eax, edx
jmp 0x5bb8f3
setge dh
mov dx, word [esp + 0x12]
mov ax, 0xb35
xchg ah, dh
xchg byte [esp + 0x16], dh
xchg edx, esi
call fcn.005bb98b
and al, 0xb1
and dword [eax - 0x4d], eax
sbb byte [eax], dh
xor ebp, dword [edx]
inc ebp
hlt
not ax
neg eax
mov dword [esp + 0x13], esi
push word [esp + 0x13]
lea eax, [ebx*4]
mov dx, word [esp + 0xc]
jmp 0x5bb92e