joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419b50
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x12c
mov eax, dword [0x4946c0]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
push edi
push 0x128
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00451440
add esp, 0xc
push 0
push 2
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 8]
mov esi, eax
push ecx
push esi
call sub.KERNEL32.dll_Process32First
mov edi, dword [esp + 0x138]
test eax, eax
je 0x419bc5
cmp dword [esp + 0x20], edi
jne 0x419bb6
mov edx, dword [esp + 0x10]
push edx
call fcn.00419b50
add esp, 4
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x419ba3
push edi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x419be9
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x130]
pop edi
pop esi
xor ecx, esp
call fcn.00450c28
add esp, 0x12c
ret

Function at 0x41b160
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
push edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x41b198
mov edi, dword [esp + 0x10]
lea ecx, [ecx]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x41b190
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x41b19a
inc edx
add eax, 0x28
cmp edx, esi
jb 0x41b180
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x41b450
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push 0
push 0x80
push 3
push 0
push 1
push Ordinal_3
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41b48d
push 0
push 0x4719a0
push str.Couldnt_open_file_with_CreateFile__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
pop ebp
ret
push edi
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
jne 0x41b4c2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0x4719a0
push str.Couldnt_open_file_mapping_with_CreateFileMapping__
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
ret
push ebx
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0x41b4fb
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
push ebx
push 0x4719a0
push str.Couldnt_map_view_of_file_with_MapViewOfFile__
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, dword [esp + 0x18]
push 0x47404c
push eax
call fcn.00452b32
add esp, 8
mov dword [0x496b78], eax
test eax, eax
jne 0x41b52d
push eax
push 0x4719a0
push str.Couldnt_open_text_file
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebx
pop edi
pop esi
pop ebp
ret
push ebp
push str.Dump_of_file__s_n
push eax
call fcn.00454ff2
mov ecx, 0x5a4d
add esp, 0xc
cmp word [ebx], cx
jne 0x41b551
push ebx
call fcn.0041b420
add esp, 4
jmp 0x41b565
push 0
push 0x4719a0
push str.Unsupported_file_format
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
mov edx, dword [0x496b78]
push edx
call fcn.004526ff
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x41cd93
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
cmp dword [esi + 0x8c], 0
je 0x41cdd2
call fcn.0041c8f0
test eax, eax
je 0x41cdd9
lea eax, [esp + 8]
push eax
push 4
push esi
push 0x41cb10
push 0
push 0
call fcn.00455481
add esp, 0x18
mov dword [esi + 0xa8], eax
test eax, eax
je 0x41cdd2
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x41cdd2
mov ecx, dword [eax]
push edi
lea edx, [esp + 0xc]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov ecx, dword [esp + 8]
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
push 0
mov edx, dword [edx + 0x20]
mov edi, ecx
neg edi
push edi
mov edi, dword [esp + 0x14]
push edi
push ecx
mov ecx, dword [esi + 0x68]
push 0
push ecx
mov ecx, dword [esi + 0x64]
push ecx
mov ecx, dword [esi + 0x90]
push 0
push 0
push ecx
push eax
call edx
pop edi
test eax, eax
jne 0x41cdd2
push eax
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
pop esi
add esp, 8
ret
Function at 0x41e000
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov dx, word [esp + 0x10]
xor eax, eax
push eax
mov word [esp + 4], ax
lea eax, [esp + 0x14]
push eax
mov ecx, 1
mov word [esp + 0xa], cx
push 6
lea ecx, [esp + 0xc]
mov word [esp + 0x10], dx
mov edx, dword [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
add esp, 8
ret

Function at 0x41e060
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x2c
mov edx, dword [eax + 8]
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 4]
add edx, edx
mov dword [esp + 8], ecx
mov cx, word [eax + 0x10]
mov dword [esp + 0xc], edx
mov dx, word [eax + 0x12]
mov dword [esp + 4], 0x28
mov word [esp + 0x10], cx
mov word [esp + 0x12], dx
call fcn.0041e040
mov edx, eax
mov eax, dword [esp + 0x34]
call fcn.0041e040
add edx, eax
push 0
lea eax, [esp + 4]
push eax
push 0x28
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp]
add esp, 0x2c
ret

Function at 0x41e130
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x58
push esi
push edi
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x34]
push ecx
lea esi, [esp + 0x24]
call fcn.0041e0f0
add esp, 8
lea eax, [esp + 0x30]
call fcn.0041e040
mov edx, eax
lea eax, [esp + 0x48]
call fcn.0041e040
mov esi, dword [esp + 0x42]
mov edi, dword [esp + 0x40]
add edx, eax
cmp si, 8
jb 0x41e177
xor eax, eax
jmp 0x41e183
mov ecx, edi
imul ecx, esi
mov eax, 1
shl eax, cl
movzx ecx, byte [esp + 0x34]
mov byte [esp + 0xc], cl
movzx ecx, byte [esp + 0x38]
push 0
add edx, 0x28
mov byte [esp + 0x12], al
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x74]
mov byte [esp + 0x15], cl
push 0x10
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x70]
push ecx
push edx
mov byte [esp + 0x23], 0
mov word [esp + 0x24], di
mov word [esp + 0x26], si
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x2c]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call esi
mov ecx, dword [esp + 0x28]
push ecx
call esi
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x58
ret
Function at 0x41e1f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
push edi
mov esi, eax
lea eax, [esp + 0x1c]
push eax
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectA]
lea eax, [esp + 0x1c]
call fcn.0041e040
mov edi, eax
push edi
mov dword [esp + 0x1c], edi
call fcn.004525be
add esp, 4
mov ebx, eax
push ebx
push edi
push esi
call dword [sym.imp.GDI32.dll_GetBitmapBits]
mov esi, dword [esp + 0x24]
add esi, 0xffffffff
js 0x41e286
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x28]
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
imul eax, esi
add eax, ebx
push eax
push ebp
call edi
mov eax, dword [esp + 0x28]
test al, 3
je 0x41e27d
push 0
lea edx, [esp + 0x14]
push edx
mov ecx, 4
sub ecx, eax
push ecx
lea edx, [esp + 0x20]
push edx
push ebp
mov dword [esp + 0x28], 0
call edi
mov eax, dword [esp + 0x28]
sub esi, 1
jns 0x41e241
mov edi, dword [esp + 0x18]
push ebx
call fcn.00453c5c
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x41fbb0
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x4946c0]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
push edi
mov esi, ecx
push 0x1fc
xor edi, edi
lea eax, [esi + 0x54]
push edi
push eax
call fcn.00451440
push 0x90
lea ecx, [esp + 0x1c]
push edi
push ecx
mov dword [esi + 0x250], edi
mov dword [esi + 0x254], 1
mov dword [esi + 0x258], 1
mov dword [esi + 0x298], edi
mov dword [esi + 0x29c], 1
mov dword [esi + 0x25c], edi
mov dword [esi + 0x27c], edi
mov dword [esi + 0x294], edi
mov dword [esi + 0x264], edi
mov dword [esi + 0x2a0], edi
mov dword [esp + 0x20], 0x94
call fcn.00451440
add esp, 0x18
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x18], 2
jne 0x41fc77
cmp dword [esp + 0xc], 5
jb 0x41fc77
mov eax, 1
pop edi
mov dword [esi + 0x260], eax
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00450c28
add esp, 0x98
ret
mov ecx, dword [esp + 0x9c]
mov dword [esi + 0x260], edi
pop edi
pop esi
xor ecx, esp
call fcn.00450c28
add esp, 0x98
ret

Function at 0x4208e0
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x24
push esi
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x420917
push edi
mov edi, dword [esp + 0x30]
push edi
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
push edi
push 0x420820
push esi
call dword [sym.imp.USER32.dll_EnumChildWindows]
pop edi
pop esi
add esp, 0x24
ret
lea eax, [esp + 4]
push eax
push 5
mov dword [esp + 0xc], 0x24
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
test eax, eax
je 0x42098c
mov eax, dword [esp + 0x10]
cmp eax, 3
ja case.default.0x420939
jmp dword [eax*4 + 0x4209b8]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
lea edx, [ecx - 0x64]
add ecx, 0xfffffff0
mov dword [eax + 4], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov dword [eax + 8], edx
pop esi
add esp, 0x24
ret
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0xc], edx
lea edx, [ecx - 0x64]
add ecx, 0xfffffff0
mov dword [eax], edx
mov dword [eax + 8], ecx
pop esi
add esp, 0x24
ret
mov esi, dword [esp + 0x2c]
push 0
push esi
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
sub eax, 0x96
sub ecx, 0x1e
mov dword [esi], eax
mov dword [esi + 4], ecx
pop esi
add esp, 0x24
ret

Function at 0x422dc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x422dcf
xor eax, eax
ret
movzx eax, al
shr eax, 4
and eax, 1
ret
Function at 0x423230
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x4946c0]
xor eax, esp
mov dword [esp + 0x94], eax
push 0x94
lea eax, [esp + 4]
push 0
push eax
call fcn.00451440
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esp + 0x94]
xor eax, eax
cmp dword [esp + 4], 5
sete al
xor ecx, esp
call fcn.00450c28
add esp, 0x98
ret

Function at 0x4295b8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4295dc
cmp dword [edi + 0x54], 0
jne 0x4295dc
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00439332
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00429579
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x42f087
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x42f0ce
call fcn.00439332
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42f0ce
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x42f0ea
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0042ec01
mov esi, eax
test edi, edi
je 0x42f0e8
test ebx, ebx
je 0x42f0e8
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x430004
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x46ec90
call fcn.00455b97
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x430029
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x43006f
lea ecx, [ebp - 0x10]
call fcn.00401c80
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042f7c4
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401a20
mov eax, esi
call fcn.00455c6f
ret 8
Function at 0x439b9f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x439be7
call fcn.00439332
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x439be7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x439c2a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x439c13
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x439c13
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x439c27
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x43a857
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 1
mov ecx, esi
test al, 1
je 0x43a87b
mov eax, dword [esi]
push 0
call dword [eax + 0x98]
test eax, eax
jne 0x43a889
pop esi
ret
mov eax, dword [esi + 0x24]
mov edx, dword [esi]
push eax
call dword [edx + 0x98]
jmp 0x43a875
xor eax, eax
inc eax
pop esi
ret

Function at 0x441e1c
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x46fb1a
call fcn.00455b97
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00406cc0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x441e7e
call fcn.00438c0c
cmp eax, 1
jne 0x441e7e
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00406230
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00405ef0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401a20
mov dword [ebp + 8], reloc.dxwnd.dll_Ordinal_1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401a20
mov eax, esi
call fcn.00455c6f
ret 0x10
Function at 0x441ea7
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x46fb1a
call fcn.00455b97
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00406cc0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x441f09
call fcn.00438c0c
cmp eax, 1
jne 0x441f09
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00406230
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00405ef0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401a20
mov dword [ebp + 8], reloc.dxwnd.dll_Ordinal_1
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401a20
mov eax, esi
call fcn.00455c6f
ret 0x14

Function at 0x450c28
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4946c0]
jne 0x450c32
repz ret
jmp fcn.004584a2

Function at 0x466a27
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004593d3
and dword [ebp - 4], 0
cmp dword [0x49c4b0], 0
mov ebx, eax
jne 0x466ad8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x466b89
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x484b70
push edi
call esi
test eax, eax
je 0x466b89
push eax
call fcn.00459361
mov dword [esp], 0x484b60
push edi
mov dword [0x49c4b0], eax
call esi
push eax
call fcn.00459361
mov dword [esp], 0x484b4c
push edi
mov dword [0x49c4b4], eax
call esi
push eax
call fcn.00459361
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x49c4b8], eax
call esi
push eax
call fcn.00459361
pop ecx
mov dword [0x49c4c0], eax
test eax, eax
je 0x466ad8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00459361
pop ecx
mov dword [0x49c4bc], eax
mov eax, dword [0x49c4bc]
cmp eax, ebx
je 0x466b30
cmp dword [0x49c4c0], ebx
je 0x466b30
push eax
call fcn.004593dc
push dword [0x49c4c0]
mov esi, eax
call fcn.004593dc
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x466b30
test edi, edi
je 0x466b30
call esi
test eax, eax
je 0x466b27
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x466b27
test byte [ebp - 0xc], 1
jne 0x466b30
or dword [ebp + 0x10], 0x200000
jmp 0x466b69
mov eax, dword [0x49c4b4]
cmp eax, ebx
je 0x466b69
push eax
call fcn.004593dc
pop ecx
test eax, eax
je 0x466b69
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x466b69
mov eax, dword [0x49c4b8]
cmp eax, ebx
je 0x466b69
push eax
call fcn.004593dc
pop ecx
test eax, eax
je 0x466b69
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x49c4b0]
call fcn.004593dc
pop ecx
test eax, eax
je 0x466b89
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x466b8b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001ae00
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001ae3f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001ae3f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001ae3f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1001ae3f
cmp dword [ecx + 0x74], 0xe
jbe 0x1001ae3f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001dafd
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 0x1001db9a
push ebx
push esi
call fcn.1001dac6
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.1001da5a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001db47
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001db99
push edi
push eax
call fcn.1001bb3d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001db67
call fcn.1001c5a2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001db98
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001da5a
add esp, 0x20
test eax, eax
jne 0x1001db86
push edi
call fcn.1001c5a2
jmp 0x1001db8e
push ebx
call fcn.1001c5a2
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 0x1001de07
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025d10
push 0x10025d08
push str.FlsAlloc
push 0x1f
call fcn.1001dd23
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001de3b
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002414c]
call esi
jmp 0x1001de41
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001de85
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025d20
push 0x10025d18
push str.FlsGetValue
push 0x21
call fcn.1001dd23
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001debc
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002414c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001dec4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025d28
push 0x10025d20
push str.FlsSetValue
push 0x22
call fcn.1001dd23
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001defe
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002414c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100234a0
Capabilities:
Parse pe header

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