joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43fa99
Capabilities:
Encode data using base64

Disassembly:
push 0x18
mov eax, 0x46d09f
call fcn.0046bb47
mov dword [ebp - 0x20], edx
mov edi, ecx
mov dword [ebp - 0x1c], edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
mov eax, dword [0x487258]
cmp eax, dword [esi + 4]
jle 0x43fb1a
mov esi, 0x487258
push esi
call fcn.0044d367
cmp dword [0x487258], 0xffffffff
pop ecx
jne 0x43fb1a
mov dword [ebp - 4], 1
mov ecx, 0x487278
push str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov dword [0x487278], ebx
mov dword [0x487288], ebx
mov dword [0x48728c], 0xf
call fcn.0044b945
push 0x46eaca
call fcn.0044d7be
push esi
call fcn.0044d31d
pop ecx
pop ecx
mov dword [edi], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], 0xf
mov byte [edi], bl
mov eax, dword [ebp + 8]
mov edi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], 1
test eax, eax
je 0x43fc8e
push 3
pop esi
mov ecx, dword [ebp - 0x20]
dec eax
mov dword [ebp + 8], eax
mov al, byte [ecx]
inc ecx
mov byte [ebp + edi - 0x14], al
inc edi
mov dl, byte [ebp - 0x13]
mov dword [ebp - 0x20], ecx
mov ch, byte [ebp - 0x12]
mov cl, byte [ebp - 0x14]
mov byte [ebp - 0xf], ch
mov byte [ebp - 0xd], dl
mov byte [ebp - 0xe], cl
cmp edi, esi
jne 0x43fbd7
mov esi, dword [ebp - 0x1c]
mov al, cl
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov edi, ebx
shl cl, 4
mov al, dl
shr al, 4
add cl, al
mov al, ch
mov byte [ebp - 0x17], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
and ch, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], ch
cmp dword [0x48728c], 0x10
mov ecx, 0x487278
movzx eax, byte [ebp + edi - 0x18]
cmovae ecx, dword [0x487278]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
call fcn.0044b8c4
inc edi
cmp edi, 4
jl 0x43fb9f
mov dl, byte [ebp - 0xd]
mov edi, ebx
mov cl, byte [ebp - 0xe]
mov ch, byte [ebp - 0xf]
push 3
pop esi
mov eax, dword [ebp + 8]
test eax, eax
jne 0x43fb42
mov dword [ebp + 8], edi
test edi, edi
je 0x43fc8e
mov eax, edi
cmp edi, esi
jge 0x43fc0d
cmp eax, esi
jae 0x43fc97
mov byte [ebp + eax - 0x14], bl
inc eax
cmp eax, esi
jl 0x43fbf5
mov ch, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl cl, 4
add cl, al
shl dl, 2
mov al, ch
mov byte [ebp - 0x17], cl
shr al, 6
and ch, 0x3f
add dl, al
mov byte [ebp - 0x15], ch
lea eax, [edi + 1]
mov byte [ebp - 0x16], dl
mov dword [ebp - 0x20], eax
test eax, eax
jle 0x43fc79
mov esi, dword [ebp - 0x1c]
mov edi, eax
cmp dword [0x48728c], 0x10
mov ecx, 0x487278
movzx eax, byte [ebp + ebx - 0x18]
cmovae ecx, dword [0x487278]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
call fcn.0044b8c4
inc ebx
cmp ebx, edi
jl 0x43fc4a
mov edi, dword [ebp + 8]
push 3
pop esi
cmp edi, esi
jge 0x43fc8e
sub esi, edi
mov ecx, dword [ebp - 0x1c]
push 0x3d
call fcn.0044b8c4
sub esi, 1
jne 0x43fc7f
mov eax, dword [ebp - 0x1c]
call fcn.0046bb15
ret
call fcn.0044d154
int3
Function at 0x440105
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x48500c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x134], ecx
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x44013a
xor eax, eax
jmp 0x4401c3
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 0x128
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
jmp 0x4401ab
lea eax, [ebp - 0x10c]
push str.lsass.exe
push eax
call fcn.0045633f
pop ecx
pop ecx
test eax, eax
jne 0x44019d
push dword [ebp - 0x128]
push esi
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x44019d
push dword [ebp - 0x134]
push 0xb
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push ebx
test eax, eax
jne 0x4401b1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x130]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x440154
jmp 0x4401ba
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044d024
leave
ret
Function at 0x448819
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ecx
push esi
push edi
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x448881
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x448881
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x44887b
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
je 0x448874
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x448854
sub ecx, edi
push 3
push ecx
mov ecx, dword [0x486fbc]
push edx
mov edx, str.ClipText.txt
call fcn.0042e156
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ecx
ret
Function at 0x44af64
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Get common file path
Get startup folder
Log keystrokes via polling
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x324
mov eax, dword [0x48500c]
xor eax, esp
mov dword [esp + 0x320], eax
push ebx
push esi
push edi
push str.20dksm01pejgq0fneok1nsmqka2jcy30
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
test edi, edi
je 0x44b0b9
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x44b0b9
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x44afaa
call fcn.0042a0eb
push eax
call fcn.00455ea9
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [esp + 0x14]
pop ecx
push eax
push ebx
push ebx
push 0x1c
push ebx
call esi
lea eax, [esp + 0x10]
mov ebx, 0x485b58
push eax
mov ecx, ebx
call fcn.0044b490
lea eax, [esp + 0x118]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x118]
mov ecx, 0x485b70
push eax
call fcn.0044b490
lea eax, [esp + 0x220]
push eax
xor eax, eax
push eax
push eax
push 0x1a
push eax
call esi
lea eax, [esp + 0x220]
mov esi, 0x485af8
push eax
mov ecx, esi
call fcn.0044b490
push ecx
call fcn.0042e14c
pop ecx
mov dword [0x486fbc], eax
call fcn.00448527
call fcn.00444949
call fcn.0044705c
call fcn.0044612a
sub esp, 0x18
mov ecx, esp
push esi
call fcn.0044b564
sub esp, 0x18
mov ecx, esp
push esi
call fcn.0044b564
call fcn.0044252b
add esp, 0x18
mov ecx, esp
push ebx
call fcn.0044b564
sub esp, 0x18
mov ecx, esp
push ebx
call fcn.0044b564
call fcn.0044252b
add esp, 0x30
call fcn.00445d5f
call fcn.00446de7
call fcn.00448819
call fcn.00443c43
call fcn.0044770b
call fcn.0044abab
call fcn.00448965
call fcn.0042e18b
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor ebx, ebx
push ebx
call fcn.00455e72
int3

Function at 0x463c2b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00463aa1
Function at 0x401491
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x47eaf0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x401526
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x4014e3
cmp dword [ebp + 0x10], ebx
jne 0x40151a
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.00401491
test eax, eax
jne 0x4014f5
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014ca
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00406371
cmp eax, ebx
je 0x40152d
push ebx
push dword [0x47eaf0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x401526
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x47eaf0], ebx
jne 0x401523
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x401523
jmp 0x401526
Function at 0x405cb0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x461d60
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x461d60], 0x44
push eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x405ceb
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405ea2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405ebf
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
ret 4

Function at 0x405ec2
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
ret 0xc

Function at 0x405ef1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a670]
mov dword [ebp - 8], eax
mov eax, dword [0x40a674]
dec edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
test eax, eax
jne 0x405f41
test edi, edi
jne 0x405efe
mov word [esi], ax
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405f3b

Function at 0x405f45
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
mov word [esi], ax
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405fbe
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x4000
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405fa7
cmp dword [ebp + 0x14], 1
je 0x405fac
cmp dword [ebp + 0x14], 2
je 0x405fac
xor eax, eax
mov word [esi], ax
push dword [ebp + 0x18]
xor eax, eax
mov word [esi + 0x3ffe], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret 0x14
Function at 0x40615c
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406185
mov eax, dword [0x40c058]
cmp eax, 0xffffffff
je 0x406179
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
or dword [0x40c058], 0xffffffff
jmp 0x406230
cmp dword [0x46d184], ebx
je 0x406230
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_WriteFile]
cmp word [0x4761a0], bx
je 0x4061fc
cmp dword [0x40c058], 0xffffffff
jne 0x406205
mov esi, 0x4761a0
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
push 4
push 0x40000000
push esi
mov dword [ebp + 8], eax
call fcn.00405ec2
mov dword [0x40c058], eax
cmp eax, 0xffffffff
je 0x40622e
cmp dword [ebp + 8], 0xffffffff
jne 0x4061f1
push ebx
lea ecx, [ebp - 4]
push ecx
push 2
lea ecx, [ebp + 8]
push ecx
push eax
mov dword [ebp + 8], 0xfeff
call edi
mov eax, dword [0x40c058]
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp dword [0x40c058], 0xffffffff
je 0x40622e
push 0x40a68c
mov esi, 0x46d1a0
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push ebx
lea ecx, [ebp + 8]
push ecx
add eax, eax
push eax
push esi
push dword [0x40c058]
call edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x406371
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x104
push esi
lea eax, [ebp - 0x23c]
shl edi, 3
mov ebx, dword [edi + 0x40c060]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
cmp eax, esi
jbe 0x4063a2
xor eax, eax
test eax, eax
je 0x4063b5
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4063b5
xor ecx, ecx
jmp 0x4063b8
xor ecx, ecx
inc ecx
push ebx
lea ecx, [ecx*2 + 0x409838]
push ecx
lea eax, [ebp + eax*2 - 0x23c]
push str._s_hs.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
test eax, eax
jne 0x4063f3
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
test eax, eax
je 0x406400
push dword [edi + 0x40c064]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x406853
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x461da8
push esi
call fcn.0040607c
push esi
call fcn.00405dcb
mov edi, eax
test edi, edi
jne 0x406874
xor eax, eax
jmp 0x4068d2
push edi
call fcn.004060ab
test byte [0x47ea68], 0x80
je 0x406891
movzx eax, word [edi]
test ax, ax
je 0x406870
cmp ax, 0x5c
je 0x406870
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrlenW]
sar edi, 1
jmp 0x4068b3
push esi
call fcn.0040634a
test eax, eax
je 0x4068ad
test byte [eax], 0x10
je 0x4068d7
push esi
call fcn.00406826
push esi
call ebx
cmp eax, edi
jg 0x40689e
push esi
call fcn.004067f7
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x4068d1
Function at 0x406b69
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x40a89c
mov ebx, 0x465da8
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
mov esi, 0x400
cmp edi, ebp
je 0x406bb7
push 1
push ebp
push edi
call fcn.00405ec2
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetShortPathNameW]
cmp eax, ebp
je 0x406d2e
cmp eax, esi
jg 0x406d2e
push esi
mov edi, 0x46b3f8
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.DLL_GetShortPathNameW]
cmp eax, ebp
je 0x406d2e
cmp eax, esi
jg 0x406d2e
push ebp
push ebp
push esi
push 0x4665a8
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
push ebp
push ebp
call ebx
test eax, eax
je 0x406d2e
push ebp
push ebp
push esi
mov esi, 0x466bf8
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
test eax, eax
je 0x406d2e
push esi
push 0x4665a8
push str._s_s_r_n
push 0x466ff8
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x47ea0c]
push dword [eax + 0x128]
push edi
call fcn.004068db
push 4
push 0xc0000000
push edi
call fcn.00405ec2
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x406d2e
push ebp
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov esi, eax
cmp esi, ebp
je 0x406d24
push ebp
lea eax, [esp + 0x14]
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x406d24
cmp edi, dword [esp + 0x10]
jne 0x406d24
push str._Rename__r_n
push esi
call fcn.00405e28
cmp eax, ebp
jne 0x406cbb
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
add edi, 0xa
jmp 0x406cec
push 0x40a890
add eax, 0xa
push eax
call fcn.00405e28
mov ebp, eax
test ebp, ebp
je 0x406cea
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406cdd
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406cd7
sub ebp, esi
inc ebp
mov eax, ebp
xor ebp, ebp
jmp 0x406cee
xor ebp, ebp
mov eax, edi
push ebx
push 0x466ff8
add eax, esi
push eax
call fcn.00405e7e
push ebp
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push ebp
lea eax, [esp + 0x14]
push eax
add edi, ebx
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x407363
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x46bbfc], 0
jne 0x4073a1
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x407377
mov dword [ecx*4 + 0x46bbf8], eax
inc ecx
cmp ecx, 0x100
jl 0x407372
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4073ce
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46bbf8]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4073af
not eax
pop ebp
ret 0xc
Function at 0x4047f7
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x12c], 0x128
lea eax, [ebp - 0x12c]
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40489b
push esi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x108]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40485b
test dl, dl
je 0x404857
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40485b
add eax, 2
add ecx, 2
test dl, dl
jne 0x40483b
xor eax, eax
jmp 0x404860
sbb eax, eax
or eax, 1
test eax, eax
jne 0x404889
push dword [ebp - 0x124]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x404889
push 9
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x12c]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x404832
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00404cbf
leave
ret

Function at 0x404c78
Capabilities:
Hide graphical window

Disassembly:
call fcn.00404c45
test eax, eax
jne 0x404c85
or eax, 0xffffffff
ret
call fcn.00404c5f
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x270f
push str.hidden
call fcn.00404c0e
pop ecx
pop ecx
xor eax, eax
ret

Function at 0x4054c0
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40af4c
push ebx
push esi
call fcn.0040ae78
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040ae0c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40aef9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40af4b
push edi
push eax
call fcn.0040b9e1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40af19
call fcn.0040996d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40af4a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040ae0c
add esp, 0x20
test eax, eax
jne 0x40af38
push edi
call fcn.0040996d
jmp 0x40af40
push ebx
call fcn.0040996d
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40c15e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4156a0
push 0x415698
push str.FlsAlloc
push 0x1f
call fcn.0040c01d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c192
push dword [ebp + 8]
mov ecx, esi
call dword [0x412144]
call esi
jmp 0x40c198
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40c1dc
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4156b0
push 0x4156a8
push str.FlsGetValue
push 0x21
call fcn.0040c01d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c213
push dword [ebp + 8]
mov ecx, esi
call dword [0x412144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40c21b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4156b8
push 0x4156b0
push str.FlsSetValue
push 0x22
call fcn.0040c01d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c255
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x412144]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4116b0
Capabilities:
Parse pe header

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