joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406a30
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x128
lea eax, [esp + 0x24]
push esi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, 0x104
lea eax, [esp + 0x28]
cmp byte [eax], 0
je 0x406a5b
inc eax
dec ecx
jne 0x406a50
jmp 0x406a9f
test ecx, ecx
je 0x406a9f
lea edx, [esp + 0x14]
test edx, edx
je 0x406a70
mov eax, 0x104
sub eax, ecx
jmp 0x406a74
mov eax, dword [esp + 0x14]
mov edx, 0x104
sub edx, eax
lea eax, [esp + eax + 0x28]
je 0x406a9f
mov esi, str.Regsrv.exe
sub esi, eax
mov cl, byte [esi + eax]
test cl, cl
je 0x406a97
mov byte [eax], cl
inc eax
dec edx
jne 0x406a88
jmp 0x406a9b
test edx, edx
jne 0x406a9c
dec eax
mov byte [eax], 0
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x406ab6
pop esi
add esp, 0x128
ret
lea ecx, [esp + 0x18]
lea edx, [esp + 0x28]
mov al, 0x20
push ecx
push edx
mov byte [esp + 0xc], 8
mov byte [esp + 0xd], 0xc4
mov byte [esp + 0xe], 0x60
mov byte [esp + 0xf], al
mov byte [esp + 0x10], al
mov byte [esp + 0x11], 0x5b
mov byte [esp + 0x12], 0xd6
mov byte [esp + 0x13], 0xb6
mov byte [esp + 0x14], 0x62
mov byte [esp + 0x15], 0x98
mov byte [esp + 0x16], 0xd2
mov byte [esp + 0x17], 0xf9
mov byte [esp + 0x18], 0xed
mov byte [esp + 0x19], 0x32
mov byte [esp + 0x1a], 0xd8
mov byte [esp + 0x1b], 0xaf
call fcn.00404a70
add esp, 8
test eax, eax
jne 0x406b24
pop esi
add esp, 0x128
ret
push edi
mov ecx, 4
lea edi, [esp + 0x1c]
lea esi, [esp + 8]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
pop edi
je 0x406b41
pop esi
add esp, 0x128
ret
mov eax, dword [esp + 0x130]
test eax, eax
je 0x406b59
lea ecx, [esp + 0x28]
push ecx
call fcn.004032f0
add esp, 4
mov eax, 1
pop esi
add esp, 0x128
ret
Function at 0x406b70
Capabilities:
Delete file
Enumerate files on windows
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d348
push 0x40aaaa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x160]
push eax
push edi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
lea ecx, [ebp - 0x13c]
push ecx
push esi
call fcn.00404a70
add esp, 8
test eax, eax
je 0x406dad
mov esi, 0x104
push esi
lea edx, [ebp - 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp + eax - 0x11c]
mov dword [ebp - 0x168], eax
cmp byte [eax - 1], 0x5c
je 0x406bf8
mov byte [eax], 0x5c
inc eax
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x2ac], esi
mov edx, str..___
mov dword [ebp - 0x2c0], edx
mov dword [ebp - 0x2bc], esi
mov dword [ebp - 0x2b8], eax
mov dword [ebp - 0x2b4], edi
cmp esi, edi
je 0x406c42
mov cl, byte [edx]
test cl, cl
je 0x406c3e
mov byte [eax], cl
inc eax
mov dword [ebp - 0x2b8], eax
inc edx
mov dword [ebp - 0x2c0], edx
dec esi
mov dword [ebp - 0x2bc], esi
jmp 0x406c1b
cmp esi, edi
jne 0x406c54
dec eax
mov dword [ebp - 0x2b8], eax
mov edi, 0x8007007a
mov dword [ebp - 0x2b4], edi
mov byte [eax], 0
mov dword [ebp - 0x2b0], edi
lea eax, [ebp - 0x2a8]
push eax
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
mov dword [ebp - 0x164], ebx
cmp ebx, 0xffffffff
je 0x406dad
cmp byte [ebp - 0x27c], 0x2e
je 0x406d87
test byte [ebp - 0x2a8], 0x10
jne 0x406d87
mov edx, dword [ebp - 0x288]
cmp edx, dword [ebp - 0x140]
jne 0x406d87
mov eax, dword [ebp - 0x28c]
cmp eax, dword [ebp - 0x144]
jne 0x406d87
mov esi, 0x104
mov dword [ebp - 0x2c4], esi
lea edx, [ebp - 0x27c]
mov dword [ebp - 0x2d8], edx
mov dword [ebp - 0x2d4], esi
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x2d0], eax
xor edi, edi
mov dword [ebp - 0x2cc], edi
test esi, esi
je 0x406d18
mov cl, byte [edx]
test cl, cl
je 0x406d14
mov byte [eax], cl
inc eax
mov dword [ebp - 0x2d0], eax
inc edx
mov dword [ebp - 0x2d8], edx
dec esi
mov dword [ebp - 0x2d4], esi
jmp 0x406cf1
test esi, esi
jne 0x406d2a
dec eax
mov dword [ebp - 0x2d0], eax
mov edi, 0x8007007a
mov dword [ebp - 0x2cc], edi
mov byte [eax], 0
mov dword [ebp - 0x2c8], edi
lea ecx, [ebp - 0x12c]
push ecx
lea edx, [ebp - 0x11c]
push edx
call fcn.00404a70
add esp, 8
test eax, eax
je 0x406d87
mov ecx, 4
lea edi, [ebp - 0x12c]
lea esi, [ebp - 0x13c]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x406d87
push 0x80
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 4
push 0
lea edx, [ebp - 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [ebp - 0x2a8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406c79
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x406dad
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 0x406dd0
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Move file
Set file attributes

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea esi, [esp + eax + 4]
mov al, byte [esp + eax + 3]
cmp al, 0x5c
je 0x406df7
mov byte [esi], 0x5c
inc esi
push 0
push 0x22
push 0
push esi
call fcn.00406eb0
add esp, 0x10
test eax, eax
je 0x406e97
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push eax
add ecx, esi
push 0x17
push 3
mov byte [ecx], 0x2e
inc ecx
push ecx
call fcn.00406eb0
add esp, 0x10
test eax, eax
pop edi
je 0x406e97
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406e97
test al, 2
je 0x406e97
mov eax, dword [esp + 0x10c]
test eax, eax
je 0x406e8c
lea edx, [esp + 4]
push edx
call fcn.00406b70
add esp, 4
lea eax, [esp + 4]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 4
lea ecx, [esp + 8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov eax, 1
pop esi
add esp, 0x104
ret
or eax, 0xffffffff
pop esi
add esp, 0x104
ret
xor eax, eax
pop esi
add esp, 0x104
ret

Function at 0x406eb0
Capabilities:
Get disk information

Disassembly:
sub esp, 8
lea eax, [esp]
push 0
push 0
push 0
push 0
push eax
push 0
push 0
push 0x410e34
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x406ed7
add esp, 8
ret
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, dword [esp + 8]
not ebp
add ebp, 0x7b
push esi
test eax, eax
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x28], str.abcdefghijklmnopqrstuvwxyz
je 0x406f00
mov dword [esp + 0x28], str.abcdef0123456789
mov edi, dword [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ebx, ebx
mov dword [esp + 0x14], ecx
jne 0x406f22
mov ebx, ebp
and ebx, 7
add ebx, 2
mov ecx, dword [esp + 0x1c]
xor esi, esi
test ebx, ebx
jbe 0x406f52
mov eax, dword [esp + 0x24]
lea edi, [eax + 1]
imul edi, ebp
add edi, eax
mov eax, edi
xor edx, edx
div dword [esp + 0x14]
mov eax, dword [esp + 0x28]
inc esi
add edi, ebp
cmp esi, ebx
mov dl, byte [edx + eax]
mov byte [esi + ecx - 1], dl
jb 0x406f38
mov byte [esi + ecx], 0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
Function at 0x407670
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x108
lea eax, [esp + 4]
push ebx
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea esi, [esp + eax + 0x10]
mov edx, str.driverscdnprot.sys
mov edi, 0x104
mov eax, esi
sub edx, esi
mov cl, byte [edx + eax]
test cl, cl
je 0x4076aa
mov byte [eax], cl
inc eax
dec edi
jne 0x40769b
jmp 0x4076ae
test edi, edi
jne 0x4076af
dec eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ecx, [esp + 0x10]
push ecx
mov byte [eax], 0
call ebx
cmp eax, 0xffffffff
je 0x4076d3
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x108
ret
mov edx, str.driverscnprov.sys
mov edi, 0x104
mov eax, esi
sub edx, esi
mov cl, byte [edx + eax]
test cl, cl
je 0x4076f0
mov byte [eax], cl
inc eax
dec edi
jne 0x4076e1
jmp 0x4076f4
test edi, edi
jne 0x4076f5
dec eax
lea edx, [esp + 0x10]
mov byte [eax], 0
push edx
call ebx
cmp eax, 0xffffffff
je 0x407713
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x108
ret
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.00402e90
add esp, 8
mov ecx, 0x104
lea eax, [esp + 0x10]
cmp byte [eax], 0
je 0x407739
inc eax
dec ecx
jne 0x40772e
jmp 0x40777d
test ecx, ecx
je 0x40777d
lea edx, [esp + 0xc]
test edx, edx
je 0x40774e
mov eax, 0x104
sub eax, ecx
jmp 0x407752
mov eax, dword [esp + 0xc]
mov edx, 0x104
sub edx, eax
lea eax, [esp + eax + 0x10]
je 0x40777d
mov esi, str.OCINSidnsvr.exe
sub esi, eax
mov cl, byte [esi + eax]
test cl, cl
je 0x407775
mov byte [eax], cl
inc eax
dec edx
jne 0x407766
jmp 0x407779
test edx, edx
jne 0x40777a
dec eax
mov byte [eax], 0
lea eax, [esp + 0x10]
push eax
call ebx
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
pop edi
pop esi
mov eax, ecx
pop ebx
add esp, 0x108
ret
Function at 0x408020
Capabilities:
Get disk information

Disassembly:
sub esp, 0x210
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ebp
push 0x100
push eax
push ecx
lea eax, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x128]
push 0x100
push ecx
push 0x411ff0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x408064
pop ebp
add esp, 0x210
ret
mov ecx, dword [esp + 0x224]
cmp ecx, 4
ja case.default.0x408070
jmp dword [ecx*4 + 0x408138]
mov ebp, str.0123456789ABCDEF
jmp 0x408091
mov ebp, str.ABCDEFGHIJKLMNOPQRSTUVWXYZ
jmp 0x408091
mov ebp, str.abcdefghijklmnopqrstuvwxyz
jmp 0x408091
mov ebp, str.0123456789abcdefghijklmnopqrstuvwxyz
test ebp, ebp
jne 0x40809f
xor eax, eax
pop ebp
add esp, 0x210
ret
push ebx
mov ebx, dword [esp + 0x220]
push esi
push edi
test ebx, ebx
jne 0x4080bf
mov eax, dword [esp + 0x10]
xor edx, edx
mov esi, 7
div esi
mov ebx, edx
add ebx, 2
cmp ecx, 4
jne 0x4080d9
mov eax, 0x51eb851f
mul dword [esp + 0x10]
mov eax, edx
xor edx, edx
shr eax, 5
div ebx
inc edx
mov ebx, edx
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x224]
test ebx, ebx
jle 0x408121
mov eax, dword [esp + 0x22c]
lea edi, [eax + 1]
imul edi, dword [esp + 0x10]
add edi, eax
mov eax, edi
xor edx, edx
div dword [esp + 0x14]
inc esi
mov dl, byte [edx + ebp]
mov byte [esi + ecx - 1], dl
mov edx, dword [esp + 0x10]
add edi, edx
cmp esi, ebx
jl 0x408107
mov byte [esi + ecx], 0
pop edi
pop esi
pop ebx
mov eax, 1
pop ebp
add esp, 0x210
ret

Function at 0x4091a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push str.CLSID9C194C3F_615E_47EC_8552_88BB30DFF968
push 0x80000000
call fcn.00402e50
add esp, 8
test eax, eax
jne 0x409203
push str.hngind.TFlashExecuteHook
push 0x80000000
call fcn.00402e50
add esp, 8
test eax, eax
jne 0x409203
lea eax, [esp]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp]
push str.hngind.dll
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [esp]
push edx
call fcn.00402f50
add esp, 4
test eax, eax
je 0x40920d
mov dword [0x4127b8], 1
add esp, 0x104
ret

Function at 0x4093a0
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp]
push str.Driverswsfit32.sys
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [esp]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4093f3
mov eax, dword [str.SYSTEMCurrentControlSetServiceswsfit32]
push eax
push 0x80000002
call fcn.00402e50
add esp, 8
test eax, eax
jne 0x4093f3
add esp, 0x104
ret
mov eax, 1
add esp, 0x104
ret
Function at 0x4095d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
jne 0x4095e7
xor edi, edi
jmp 0x409614
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0040aab0
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp + 8]
push eax
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
je 0x4096f5
cmp dword [ebp + 8], 2
jl 0x4096f5
mov esi, dword [eax + 4]
push 0x2c
push esi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x409646
mov word [eax], 0
lea ecx, [ebp - 0x208]
push ecx
push str..dll
push esi
call fcn.00409710
add esp, 0xc
test eax, eax
je 0x4096f5
lea edx, [ebp - 0x208]
test edx, edx
jne 0x409671
xor esi, esi
jmp 0x4096ac
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0040aab0
mov esi, esp
push 0
push 0
push edi
push esi
lea ecx, [ebp - 0x208]
push 0xffffffffffffffff
push ecx
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp + 0xc]
mov edx, esi
mov edi, 0x104
sub edx, eax
mov cl, byte [edx + eax]
test cl, cl
je 0x4096db
mov byte [eax], cl
inc eax
dec edi
jne 0x4096b8
dec eax
mov byte [eax], 0
mov eax, 1
lea esp, [ebp - 0x214]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x4096e0
dec eax
mov byte [eax], 0
mov eax, 1
lea esp, [ebp - 0x214]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea esp, [ebp - 0x214]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40a120
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
ret

Function at 0x40a190
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 4], 5
jne 0x40a1bd
mov ecx, dword [esp + 8]
mov eax, 1
cmp ecx, eax
jae 0x40a1bf
xor eax, eax
add esp, 0x94
ret
Function at 0x40a500
Capabilities:
Get session user name

Disassembly:
sub esp, 0x130
push ebx
mov ebx, dword [esp + 0x138]
push ebp
push esi
xor esi, esi
push edi
cmp ebx, esi
mov edi, ecx
jne 0x40a528
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x130
ret 0x14
mov ebp, dword [esp + 0x150]
cmp ebp, esi
jne 0x40a560
lea eax, [esp + 0x10]
lea ecx, [esp + 0x3c]
push eax
push ecx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x40a55c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret 0x14
lea ebp, [esp + 0x3c]
mov ecx, dword [esp + 0x148]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push esi
push eax
push esi
push esi
push 4
push ecx
push ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoA]
test eax, eax
jne 0x40a637
mov ebx, dword [esp + 0x14c]
cmp ebx, 2
je 0x40a59f
cmp ebx, 1
jne 0x40a5ae
mov edx, dword [esp + 0x14]
push ebp
push 3
push edx
mov ecx, edi
call fcn.0040a490
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x1c]
push 3
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x158]
push ebx
push eax
lea ecx, [esp + 0x28]
push ebp
push ecx
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameA]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclA]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
jne 0x40a62c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x148]
mov ecx, dword [esp + 0x144]
push 0
push edx
push 0
push 0
push 4
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
mov esi, eax
mov eax, dword [esp + 0x10]
neg esi
sbb esi, esi
inc esi
test eax, eax
je 0x40a62c
push eax
call edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40a637
push eax
call edi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret 0x14

Function at 0x40ab50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x40abc1
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x40abc1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x40abaa
jmp 0x40abc1
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x40688e
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push esi
push edi
mov eax, 0x1a1
cmp eax, 0x24
ja 0x40689c
call 0x856686c
mov al, byte [0x8b640041]
cmp eax, 0x30
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x446630], eax
sub eax, eax
je 0x4068c1
jmp 0xa8cf50e6
call 0x401154
call 0x406651
pop edi
xor eax, eax
pop esi
ret

Function at 0x407515
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407554
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407554
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407554
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407554
cmp dword [ecx + 0x74], 0xe
jbe 0x407554
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40d5eb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c2c8
push 0x41c2c0
push str.FlsAlloc
push 0x1e
call fcn.0040d4ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d61f
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a120]
call esi
jmp 0x40d625
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d669
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c2d8
push 0x41c2d0
push str.FlsGetValue
push 0x20
call fcn.0040d4ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d6a0
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a120]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x401154
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCacheEx]
xor esi, esi
call edi
sub byte [esi + 0x4228d0], 0xc
call edi
add byte [esi + 0x4228d0], 0x6a
call edi
xor byte [esi + 0x4228d0], 0xc2
call edi
add byte [esi + 0x4228d0], 0xd
call edi
add byte [esi + 0x4228d0], 0x51
call edi
add byte [esi + 0x4228d0], 0xe3
call edi
add byte [esi + 0x4228d0], 0xea
call edi
xor byte [esi + 0x4228d0], 0x40
call edi
add byte [esi + 0x4228d0], 0x36
call edi
add byte [esi + 0x4228d0], 0x78
call edi
xor byte [esi + 0x4228d0], 0xf7
call edi
add byte [esi + 0x4228d0], 0x29
call edi
add byte [esi + 0x4228d0], 0xa4
call edi
add byte [esi + 0x4228d0], 0xfe
call edi
add byte [esi + 0x4228d0], 0xcc
call edi
add byte [esi + 0x4228d0], 0x9e
call edi
xor byte [esi + 0x4228d0], 0xd7
call edi
add byte [esi + 0x4228d0], 0xbe
call edi
add byte [esi + 0x4228d0], 0x43
call edi
add byte [esi + 0x4228d0], 0x9e
call edi
add byte [esi + 0x4228d0], 0x5d
call edi
add byte [esi + 0x4228d0], 0x70
call edi
add byte [esi + 0x4228d0], 0x93
call edi
add byte [esi + 0x4228d0], 0xaa
call edi
add byte [esi + 0x4228d0], 0x51
call edi
xor byte [esi + 0x4228d0], 0x5e
call edi
add byte [esi + 0x4228d0], 0xcf
call edi
add byte [esi + 0x4228d0], 0xc3
call edi
add byte [esi + 0x4228d0], 0xcd
call edi
add byte [esi + 0x4228d0], 0x4f
call edi
add byte [esi + 0x4228d0], 0xbb
call edi
xor byte [esi + 0x4228d0], 0xa2
call edi
xor byte [esi + 0x4228d0], 0xf9
call edi
xor byte [esi + 0x4228d0], 0xac
call edi
add byte [esi + 0x4228d0], 0x52
call edi
add byte [esi + 0x4228d0], 0xb1
call edi
xor byte [esi + 0x4228d0], 0x9b
call edi
add byte [esi + 0x4228d0], 0xf1
call edi
add byte [esi + 0x4228d0], 0x21
call edi
xor byte [esi + 0x4228d0], 0x16
call edi
add byte [esi + 0x4228d0], 0x44
call edi
xor byte [esi + 0x4228d0], 0xbf
call edi
add byte [esi + 0x4228d0], 0xda
call edi
xor byte [esi + 0x4228d0], 0xec
call edi
add byte [esi + 0x4228d0], 0xca
call edi
xor byte [esi + 0x4228d0], 0xb3
call edi
add byte [esi + 0x4228d0], 0x3b
call edi
add byte [esi + 0x4228d0], 0x26
call edi
add byte [esi + 0x4228d0], 0xd2
inc esi
cmp esi, 0x23000
jb 0x40115e
pop edi
pop esi
ret
Function at 0x4085eb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x408619
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x408620
cmp ebx, dword [eax + 4]
jae 0x408620
xor eax, eax
jmp 0x408810
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x408631
xor eax, eax
inc eax
jmp 0x40880f
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x408647
cmp ecx, edx
jae 0x40878c
cmp dword [eax + 4], 0
je 0x408650
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x408638
cmp dword [ebp + 8], 0
je 0x408672
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40878c
cmp eax, esi
jae 0x40878c
mov eax, dword [0x1c3b908]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x408697
cmp dword [esi*4 + 0x1c3b910], edi
je 0x408790
inc esi
cmp esi, eax
jl 0x408685
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x1c390ac]
test eax, eax
je 0x40880c
cmp dword [ebp - 8], 0x1000000
jne 0x40880c
test byte [ebp - 0xc], 0xcc
je 0x408715
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40880c
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40880c
cmp word [eax + 0x18], 0x10b
jne 0x40880c
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40880c
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x408715
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x408715
test byte [ecx + 0x27], 0x80
jne 0x40878c
push 1
push 0x1c3b950
call dword [0x1c390a8]
test eax, eax
jne 0x408629
mov ecx, dword [0x1c3b908]
test ecx, ecx
mov edx, ecx
jle 0x408749
lea eax, [ecx*4 + 0x1c3b90c]
cmp dword [eax], edi
je 0x408749
dec edx
sub eax, 4
test edx, edx
jg 0x40873d
test edx, edx
jne 0x40877a
push 0xf
pop ebx
cmp ecx, ebx
jg 0x408756
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40876e
lea eax, [edx*4 + 0x1c3b910]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40875c
cmp ecx, 0x10
jge 0x40877a
inc ecx
mov dword [0x1c3b908], ecx
push 0
push 0x1c3b950
call dword [0x1c390a8]
jmp 0x408629
xor eax, eax
jmp 0x40880f
test esi, esi
jle 0x408629
mov ebx, dword [0x1c390a8]
push 1
push 0x1c3b950
call ebx
test eax, eax
jne 0x408629
cmp dword [esi*4 + 0x1c3b910], edi
je 0x4087e6
mov eax, dword [0x1c3b908]
lea esi, [eax - 1]
test esi, esi
jl 0x4087d4
cmp dword [esi*4 + 0x1c3b910], edi
je 0x4087d0
dec esi
jns 0x4087c4
test esi, esi
jge 0x4087e4
cmp eax, 0x10
jge 0x4087df
inc eax
mov dword [0x1c3b908], eax
lea esi, [eax - 1]
jmp 0x4087e6
je 0x4087fe
xor ecx, ecx
test esi, esi
jl 0x4087fe
lea eax, [ecx*4 + 0x1c3b910]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4087ec
push 0
push 0x1c3b950
call ebx
jmp 0x408629
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret