joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404a20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 0x400
push esi
mov esi, eax
xor ecx, ecx
jmp 0x404a30
mov eax, ecx
shr eax, 1
test cl, 1
je 0x404a3e
xor eax, 0xedb88320
test al, 1
je 0x404a4b
shr eax, 1
xor eax, 0xedb88320
jmp 0x404a4d
shr eax, 1
test al, 1
je 0x404a5a
shr eax, 1
xor eax, 0xedb88320
jmp 0x404a5c
shr eax, 1
test al, 1
je 0x404a69
shr eax, 1
xor eax, 0xedb88320
jmp 0x404a6b
shr eax, 1
test al, 1
je 0x404a78
shr eax, 1
xor eax, 0xedb88320
jmp 0x404a7a
shr eax, 1
test al, 1
je 0x404a87
shr eax, 1
xor eax, 0xedb88320
jmp 0x404a89
shr eax, 1
test al, 1
je 0x404a96
shr eax, 1
xor eax, 0xedb88320
jmp 0x404a98
shr eax, 1
test al, 1
je 0x404aa5
shr eax, 1
xor eax, 0xedb88320
jmp 0x404aa7
shr eax, 1
mov dword [esp + ecx*4 + 4], eax
add ecx, 1
cmp ecx, 0x100
jl 0x404a30
or eax, 0xffffffff
test edx, edx
je 0x404add
movzx ecx, byte [esi]
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [esp + ecx*4 + 4]
sub edx, 1
add esi, 1
test edx, edx
jne 0x404ac1
not eax
pop esi
add esp, 0x400
ret

Function at 0x404af0
Capabilities:
Get graphical window text
Open clipboard
Write clipboard data

Disassembly:
push ecx
push ebp
push esi
push edi
push 0x3ed
push ebx
mov byte [esp + 0x17], 0
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebp, eax
lea esi, [ebp + 1]
test esi, esi
je 0x404b2b
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x404b32
pop edi
pop esi
xor al, al
pop ebp
pop ecx
ret
push esi
push edi
push 0x3ed
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push esi
push 0
mov byte [edi + ebp], 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x404b99
push esi
push edi
push ebp
call fcn.00401140
add esp, 0xc
push ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x404b92
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x404b8c
push ebp
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x404b8c
mov byte [esp + 0xf], 1
call dword [sym.imp.USER32.dll_CloseClipboard]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x404bc0
Capabilities:
Check os version

Disassembly:
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x404c13
lea eax, [esp]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x404c13
mov eax, dword [esp]
lea ecx, [esp + 8]
push ecx
push 4
lea edx, [esp + 0xc]
push edx
push 0x18
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x404c19
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
add esp, 0xc
ret
cmp dword [esp + 4], 0
je 0x404c3f
mov eax, dword [esp]
push 4
lea edx, [esp + 8]
push edx
push 0x18
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x404c03
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add esp, 0xc
ret

Function at 0x4054f0
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x41a018], 0
je 0x405575
mov eax, dword [0x40a008]
push 4
push 0x40927c
push 0x409280
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x405578
push esi
mov esi, dword [0x41c274]
call fcn.004010a0
mov ecx, dword [0x41a010]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
call fcn.00407a30
mov edx, dword [0x41a018]
push 0xea60
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
pop esi
je 0x40555e
mov eax, dword [0x41a018]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
call fcn.00407a30
mov ecx, dword [0x41a018]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x41a018], 0
mov al, 1
ret
xor al, al
ret
Function at 0x4065f0
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
push 0x4000
push 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0x4000
mov dword [esp + 0x18], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
mov dword [esp + 0x1c], esi
je 0x406798
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
lea eax, [esp + 0x14]
push eax
push ecx
push 0
push 0
push edi
call sub.MPR.dll_WNetOpenEnumW
test eax, eax
je 0x40665f
push edi
push eax
call fcn.00407a30
add esp, 8
jmp 0x40677a
mov edi, dword [ebp + 0x10]
push 0x4000
push 0
push esi
mov dword [esp + 0x24], 0x4000
mov dword [esp + 0x1c], 0xffffffff
call fcn.00401100
mov ecx, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x18]
push edx
push esi
lea eax, [esp + 0x18]
push eax
push ecx
call sub.MPR.dll_WNetEnumResourceW
test eax, eax
jne 0x40676a
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4066b1
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 8]
push edx
push eax
jmp 0x4066ba
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + 0x14]
push ecx
push edx
call fcn.00407a30
xor ebx, ebx
add esp, 8
cmp dword [esp + 0x10], ebx
jbe 0x406662
add esi, 4
lea ecx, [ecx]
mov eax, dword [esi + 0x14]
test eax, eax
mov ecx, eax
jne 0x4066de
mov ecx, 0x409298
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4066ea
mov eax, 0x409298
push ecx
mov ecx, dword [esi]
push ecx
push eax
call fcn.00407a30
mov eax, dword [esi + 8]
add esp, 0xc
test al, 2
je 0x406736
mov edx, dword [esi + 0x10]
test edx, edx
je 0x406751
test edi, edi
jle 0x406751
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40671c
mov eax, dword [eax + 0x14]
call fcn.004048f0
test eax, eax
je 0x406751
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
push edx
sub edi, 1
push edi
lea eax, [esi - 4]
push eax
push ecx
call fcn.004065f0
add esp, 0x10
jmp 0x406751
test byte [esi], 1
je 0x406751
push eax
call fcn.00407a30
mov edx, dword [esi + 0x10]
mov eax, dword [ebp + 0x14]
add esp, 4
push edx
push eax
call fcn.00401c70
add ebx, 1
add esi, 0x20
cmp ebx, dword [esp + 0x10]
jb 0x4066d0
mov esi, dword [esp + 0x1c]
jmp 0x406662
cmp eax, 0x103
je 0x40677a
push eax
call fcn.00407a30
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x406788
push eax
call sub.MPR.dll_WNetCloseEnum
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406800
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
call fcn.00407a90
mov byte [0x41a01e], al
mov byte [0x41a01d], 0
mov byte [0x41a00f], 1
mov byte [0x41a00e], 0
call fcn.004077d0
mov bl, al
cmp bl, 2
jne 0x406835
mov byte [0x41a01d], 1
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 1
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x406856
push eax
call fcn.004068b0
mov esi, eax
jmp 0x406858
xor esi, esi
cmp byte [0x41a01e], 0
jne 0x406880
cmp byte [0x41a01d], 0
jne 0x406880
cmp bl, 1
je 0x406880
call fcn.00407790
test al, al
je 0x406880
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00406d70
test esi, esi
je 0x40689a
call fcn.00406b40
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x406d70
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push esi
push edi
call fcn.00407a30
push 0x20
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00401100
add esp, 0xc
push 0x20
lea ecx, [esp + 0xc]
push ecx
push 0x58
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x406db8
mov eax, dword [esp + 8]
test eax, 0x200
je 0x406db8
test eax, eax
jns 0x406e33
call fcn.00407040
test al, al
je 0x406e33
cmp byte [0x41a01d], 0
je 0x406e14
mov esi, dword [0x41c274]
mov edi, dword [0x41a028]
push esi
mov byte [0x41a00e], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov dword [esi + 0x20], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [0x41a028]
push edx
call fcn.00407a30
add esp, 4
call fcn.004033c0
xor eax, eax
call fcn.00406f50
call fcn.004034b0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0x404d50
push 0
push 0x65
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
call fcn.00407890
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406f50
Capabilities:
Create thread

Disassembly:
push ecx
cmp byte [0x41a00e], 0
push esi
push edi
mov esi, eax
je 0x40702e
mov eax, dword [0x41c270]
push 0
push eax
call fcn.004012c0
mov eax, dword [0x41c270]
call fcn.004014c0
mov eax, dword [0x41c270]
call fcn.004015d0
cmp dword [0x41c23c], 0x7fffffff
jne 0x406f94
call fcn.00405e10
test esi, esi
je 0x406fa7
mov ecx, dword [0x41c270]
push esi
push ecx
call fcn.00401c70
jmp 0x406fde
mov edx, dword [0x41c270]
push edx
call fcn.004019c0
mov eax, dword [0x41c270]
push 0
push 0
push eax
push 0x4067a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x41c270]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, eax
je 0x407000
call fcn.00401220
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 8
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x407027
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [0x41c270], eax
pop edi
pop esi
pop ecx
ret
xor eax, eax
mov dword [0x41c270], eax
pop edi
pop esi
pop ecx
ret
Function at 0x4076b0
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x41c2ac]
sub esp, 8
test eax, eax
push ebx
jne 0x4076c8
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x41c2ac], eax
cmp al, 6
jae 0x4076d3
xor al, al
pop ebx
add esp, 8
ret
cmp byte [0x41a00e], 0
je 0x4076cc
lea eax, [esp + 8]
push eax
call dword [0x41c260]
call fcn.00407470
mov ecx, dword [esp + 8]
push ecx
mov bl, al
call dword [0x41c26c]
mov al, bl
pop ebx
add esp, 8
ret

Function at 0x407700
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x40
push esi
lea eax, [esp + 4]
push eax
mov eax, dword [0x41c288]
push 0x14
call fcn.00402950
mov esi, eax
test esi, esi
jne 0x407722
xor al, al
pop esi
add esp, 0x40
ret
push edi
push 0x3c
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.00401100
add esp, 0xc
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], 0x3c
mov dword [esp + 0x2c], 1
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0x41a238
mov dword [esp + 0x24], 0x4092b0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
test edi, edi
pop edi
setne al
pop esi
add esp, 0x40
ret

Function at 0x4077d0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 8
push ebx
lea eax, [esp + 4]
push eax
mov dword [0x41c24c], 0
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, eax
test ecx, ecx
mov dword [esp + 8], ecx
jne 0x407803
xor al, al
pop ebx
add esp, 8
ret
mov eax, 1
cmp dword [esp + 4], eax
jle 0x407878
push ebp
push esi
push edi
mov edi, dword [ecx + eax*4]
movzx ebp, word [edi]
cmp bp, 0x6e
jne 0x40785d
movzx ecx, word [edi + 2]
lea esi, [edi + 2]
xor edx, edx
test cx, cx
je 0x407851
jmp 0x407830
cmp cx, 0x30
jb 0x407851
cmp cx, 0x39
ja 0x407851
movzx ecx, cx
lea edx, [edx + edx*4]
add esi, 2
lea edx, [ecx + edx*2 - 0x30]
movzx ecx, word [esi]
test cx, cx
jne 0x407830
mov ecx, dword [esp + 0x14]
mov dword [0x41a028], edx
mov bl, 2
cmp bp, 0x65
jne 0x40786c
cmp word [edi + 2], 0
jne 0x40786c
mov bl, 1
add eax, 1
cmp eax, dword [esp + 0x10]
jl 0x407811
pop edi
pop esi
pop ebp
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, bl
pop ebx
add esp, 8
ret
Function at 0x407890
Capabilities:
Create process on windows
Query environment variable

Disassembly:
sub esp, 0x26c
cmp byte [0x40a00d], 0
push ebx
push ebp
push esi
push edi
je 0x407a17
call fcn.00407a30
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x41c288]
push 0x17
call fcn.00402950
lea ecx, [esp + 0x14]
push ecx
mov ebp, eax
mov eax, dword [0x41c288]
push 0x38
call fcn.00402950
mov edi, eax
test edi, edi
je 0x407a17
test ebp, ebp
je 0x407a17
push 0x104
lea edx, [esp + 0x74]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x407a17
lea edx, [esp + 0x70]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x407900
mov ecx, edi
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407910
mov eax, 0x41a238
mov si, word [eax]
add eax, 2
test si, si
jne 0x407920
sub eax, 0x41a238
sub ecx, edi
sar eax, 1
sar ecx, 1
lea eax, [ecx + eax*2 - 2]
lea ecx, [esp + 0x70]
sub edx, ecx
sar edx, 1
add eax, edx
lea eax, [eax + eax + 2]
test eax, eax
je 0x407a17
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x407a17
push 0x41a238
push 0x41a238
lea edx, [esp + 0x78]
push edx
push edi
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0x44
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.00401100
add esp, 0xc
push 0x10
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.00401100
add esp, 0xc
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push esi
push 0
mov dword [esp + 0x50], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4079ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00407a30
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x26c
ret
mov ecx, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call ebx
mov edx, dword [esp + 0x18]
push edx
call ebx
mov eax, ebp
call fcn.00404c70
mov eax, edi
call fcn.00404c70
mov eax, esi
call fcn.00404c70
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x26c
ret

Function at 0x407a90
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x41c2ac]
sub esp, 0xc
test eax, eax
jne 0x407aa7
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x41c2ac], eax
cmp al, 6
jae 0x407abb
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
sbb eax, eax
neg eax
add esp, 0xc
ret
lea eax, [esp]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x407adb
xor al, al
add esp, 0xc
ret
mov eax, dword [esp]
lea ecx, [esp + 8]
push ecx
push 4
lea edx, [esp + 0xc]
push edx
push 0x14
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [esp + 4], eax
setne al
add esp, 0xc
ret
Function at 0x407b10
Capabilities:
Get common file path

Disassembly:
push edi
push 0x104
push 0x41a030
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
xor edi, edi
test eax, eax
jne 0x407b30
mov word [0x41a030], di
jmp 0x407b5f
mov eax, 0x41a030
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407b35
sub eax, 0x41a030
sar eax, 1
sub eax, 1
je 0x407b5f
cmp word [eax*2 + 0x41a02e], 0x5c
jne 0x407b5f
mov word [eax*2 + 0x41a02e], di
push 0x400
push 0x41a238
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x407b84
mov word [0x41aa38], di
mov word [0x41a238], di
jmp 0x407beb
mov edx, 0x400
xor eax, eax
jmp 0x407b90
movzx ecx, word [eax + 0x41a238]
mov word [eax + 0x41aa38], cx
add eax, 2
cmp cx, di
je 0x407bab
sub edx, 1
jne 0x407b90
cmp edx, edi
jne 0x407bb6
mov word [0x41b236], di
mov eax, 0x41aa38
jmp 0x407bc0
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x407bc0
jmp 0x407bd0
sub eax, 2
cmp eax, 0x41aa38
je 0x407be2
cmp word [eax], 0x5c
jne 0x407bd0
jmp 0x407be8
cmp word [eax], 0x5c
jne 0x407beb
mov word [eax], di
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push edi
push 0x1a
push 0x41b238
push edi
call esi
test eax, eax
jne 0x407c0a
mov word [0x41b238], di
jmp 0x407c3a
mov eax, 0x41b238
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407c10
sub eax, 0x41b238
sar eax, 1
sub eax, 1
je 0x407c3a
cmp word [eax*2 + 0x41b236], 0x5c
jne 0x407c3a
mov word [eax*2 + 0x41b236], di
push edi
push edi
push 0x41ba38
push edi
call esi
test eax, eax
pop esi
jne 0x407c52
mov word [0x41ba38], di
pop edi
ret
mov eax, 0x41ba38
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x407c57
sub eax, 0x41ba38
sar eax, 1
sub eax, 1
je 0x407c81
cmp word [eax*2 + 0x41ba36], 0x5c
jne 0x407c81
mov word [eax*2 + 0x41ba36], di
pop edi
ret

Function at 0x407c90
Capabilities:
Get disk information
Query environment variable

Disassembly:
sub esp, 0x214
push esi
push edi
lea eax, [esp + 0xc]
push eax
mov eax, dword [0x41c288]
push 0x16
call fcn.00402950
mov edi, eax
test edi, edi
je 0x407d61
push 0x104
lea ecx, [esp + 0x14]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x407d51
mov edx, 0x409268
lea eax, [esp + 0x10]
mov esi, 0x104
lea ebx, [ebx]
cmp word [eax], 0
je 0x407cee
add eax, 2
sub esi, 1
jne 0x407ce0
test esi, esi
je 0x407d14
movzx ecx, word [edx]
mov word [eax], cx
add eax, 2
add edx, 2
test cx, cx
je 0x407d08
sub esi, 1
jne 0x407cf2
test esi, esi
jne 0x407d14
mov word [esp + 0x216], si
push 0
push 0
push 0
push 0
lea edx, [esp + 0x18]
push edx
push 0
push 0
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
push edi
push 0
je 0x407d54
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x214
ret
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
xor eax, eax
pop esi
add esp, 0x214
ret
Function at 0x408150
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
sub esp, 0x23c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x18]
push eax
mov eax, dword [0x41c288]
push 5
mov dword [esp + 0x18], 0
call fcn.00402950
mov esi, eax
test esi, esi
mov dword [esp + 0x14], esi
je 0x40827e
lea edi, [esp + 0x10]
call fcn.004038c0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4081a4
call fcn.00407a30
jmp 0x40826e
lea ecx, [esp + 0x1c]
push ecx
push ebp
mov dword [esp + 0x24], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x408267
mov ebx, dword [esp + 0x10]
test ebx, ebx
mov edi, ebx
je 0x408250
lea ecx, [ecx]
mov esi, dword [edi]
lea edx, [esp + 0x40]
mov eax, edx
sub esi, eax
lea ebx, [ebx]
movzx eax, word [esi + edx]
cmp ax, 0x41
jb 0x4081f3
cmp ax, 0x5a
ja 0x4081f3
add eax, 0x20
movzx ecx, ax
movzx eax, word [edx]
cmp ax, 0x41
jb 0x408208
cmp ax, 0x5a
ja 0x408208
add eax, 0x20
add edx, 2
test cx, cx
movzx eax, ax
je 0x408218
cmp cx, ax
je 0x4081e0
movzx edx, ax
movzx eax, cx
sub eax, edx
je 0x40822b
mov edi, dword [edi + 4]
test edi, edi
jne 0x4081d0
jmp 0x408250
mov ecx, dword [esp + 0x24]
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x408250
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x1c]
push edx
push ebp
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4081c3
mov esi, dword [esp + 0x14]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [esp + 0x10]
call fcn.004037c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x23c
ret

Function at 0x4082a0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x210
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x41c288]
push 0x16
call fcn.00402950
mov edx, dword [esp + 0x224]
lea ecx, [esp + 0x14]
push ecx
mov esi, eax
mov eax, dword [0x41c288]
push edx
call fcn.00402950
test esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, eax
je 0x40834b
test ebx, ebx
je 0x408343
push 0x104
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x408343
lea eax, [esp + 0x18]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408303
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x18]
sub eax, edx
sar eax, 1
sub eax, 1
push eax
call fcn.004048b0
add esp, 4
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
push esi
push 0
call ebp
push eax
call edi
test ebx, ebx
je 0x408357
push ebx
push 0
call ebp
push eax
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x210
ret
Function at 0x408370
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x410
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x18]
push eax
mov eax, dword [0x41c288]
push 0x10
call fcn.00402950
lea ecx, [esp + 0x18]
push ecx
mov esi, eax
mov eax, dword [0x41c288]
push 0x11
call fcn.00402950
test esi, esi
mov edi, eax
mov dword [esp + 0x1c], 0x400
je 0x4083fd
test edi, edi
je 0x4083fd
lea edx, [esp + 0x14]
push edx
push 0x20119
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4083fd
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x408402
mov byte [esp + 0x20], 0
test esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
je 0x40841a
push esi
push 0
call ebp
push eax
call ebx
test edi, edi
je 0x408426
push edi
push 0
call ebp
push eax
call ebx
call fcn.00407c90
lea ecx, [esp + 0x20]
xor edx, edx
cmp byte [ecx], 0
je 0x40846b
add ecx, 1
cmp byte [ecx], 0
je 0x40845e
add ecx, 1
cmp byte [ecx], 0
je 0x408463
add ecx, 1
cmp byte [ecx], 0
je 0x408468
add edx, 4
add ecx, 1
cmp edx, 0x400
jb 0x408431
jmp 0x40846b
add edx, 1
jmp 0x40846b
add edx, 2
jmp 0x40846b
add edx, 3
push eax
lea ecx, [esp + edx + 0x24]
push str.__08X
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x20]
xor edx, edx
cmp byte [eax], 0
je 0x4084bf
add eax, 1
cmp byte [eax], 0
je 0x4084b2
add eax, 1
cmp byte [eax], 0
je 0x4084b7
add eax, 1
cmp byte [eax], 0
je 0x4084bc
add edx, 4
add eax, 1
cmp edx, 0x400
jb 0x408485
jmp 0x4084bf
add edx, 1
jmp 0x4084bf
add edx, 2
jmp 0x4084bf
add edx, 3
lea eax, [esp + 0x20]
call fcn.00404a20
push eax
lea edx, [esp + 0x24]
push edx
call fcn.00407a30
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret