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

Disassembly:
sub esp, 0x400
push esi
mov esi, eax
xor ecx, ecx
jmp 0x404a20
mov eax, ecx
shr eax, 1
test cl, 1
je 0x404a2e
xor eax, 0xedb88320
test al, 1
je 0x404a3b
shr eax, 1
xor eax, 0xedb88320
jmp 0x404a3d
shr eax, 1
test al, 1
je 0x404a4a
shr eax, 1
xor eax, 0xedb88320
jmp 0x404a4c
shr eax, 1
test al, 1
je 0x404a59
shr eax, 1
xor eax, 0xedb88320
jmp 0x404a5b
shr eax, 1
test al, 1
je 0x404a68
shr eax, 1
xor eax, 0xedb88320
jmp 0x404a6a
shr eax, 1
test al, 1
je 0x404a77
shr eax, 1
xor eax, 0xedb88320
jmp 0x404a79
shr eax, 1
test al, 1
je 0x404a86
shr eax, 1
xor eax, 0xedb88320
jmp 0x404a88
shr eax, 1
test al, 1
je 0x404a95
shr eax, 1
xor eax, 0xedb88320
jmp 0x404a97
shr eax, 1
mov dword [esp + ecx*4 + 4], eax
add ecx, 1
cmp ecx, 0x100
jl 0x404a20
or eax, 0xffffffff
test edx, edx
je 0x404acd
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 0x404ab1
not eax
pop esi
add esp, 0x400
ret

Function at 0x404ae0
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 0x404b1b
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 0x404b22
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 0x404b89
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 0x404b82
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x404b7c
push ebp
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x404b7c
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 0x404bb0
Capabilities:
Check os version

Disassembly:
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x404c03
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 0x404c03
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 0x404c09
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 0x404c2f
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 0x404bf3
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add esp, 0xc
ret

Function at 0x4054e0
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x41a018], 0
je 0x405565
mov eax, dword [0x40a008]
push 4
push 0x40927c
push 0x409280
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x405568
push esi
mov esi, dword [0x41c274]
call fcn.004010a0
mov ecx, dword [0x41a010]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
call fcn.00407a20
mov edx, dword [0x41a018]
push 0xea60
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
pop esi
je 0x40554e
mov eax, dword [0x41a018]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
call fcn.00407a20
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 0x4065e0
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 0x406788
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 0x40664f
push edi
push eax
call fcn.00407a20
add esp, 8
jmp 0x40676a
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 0x40675a
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4066a1
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 8]
push edx
push eax
jmp 0x4066aa
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + 0x14]
push ecx
push edx
call fcn.00407a20
xor ebx, ebx
add esp, 8
cmp dword [esp + 0x10], ebx
jbe 0x406652
add esi, 4
lea ecx, [ecx]
mov eax, dword [esi + 0x14]
test eax, eax
mov ecx, eax
jne 0x4066ce
mov ecx, 0x409298
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4066da
mov eax, 0x409298
push ecx
mov ecx, dword [esi]
push ecx
push eax
call fcn.00407a20
mov eax, dword [esi + 8]
add esp, 0xc
test al, 2
je 0x406726
mov edx, dword [esi + 0x10]
test edx, edx
je 0x406741
test edi, edi
jle 0x406741
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40670c
mov eax, dword [eax + 0x14]
call fcn.004048e0
test eax, eax
je 0x406741
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.004065e0
add esp, 0x10
jmp 0x406741
test byte [esi], 1
je 0x406741
push eax
call fcn.00407a20
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 0x4066c0
mov esi, dword [esp + 0x1c]
jmp 0x406652
cmp eax, 0x103
je 0x40676a
push eax
call fcn.00407a20
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x406778
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 0x4067f0
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
call fcn.00407a80
mov byte [0x41a01e], al
mov byte [0x41a01d], 0
mov byte [0x41a00f], 1
mov byte [0x41a00e], 0
call fcn.004077c0
mov bl, al
cmp bl, 2
jne 0x406825
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 0x406846
push eax
call fcn.004068a0
mov esi, eax
jmp 0x406848
xor esi, esi
cmp byte [0x41a01e], 0
jne 0x406870
cmp byte [0x41a01d], 0
jne 0x406870
cmp bl, 1
je 0x406870
call fcn.00407780
test al, al
je 0x406870
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00406d60
test esi, esi
je 0x40688a
call fcn.00406b30
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 0x406d60
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push esi
push edi
call fcn.00407a20
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 0x406da8
mov eax, dword [esp + 8]
test eax, 0x200
je 0x406da8
test eax, eax
jns 0x406e23
call fcn.00407030
test al, al
je 0x406e23
cmp byte [0x41a01d], 0
je 0x406e04
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.00407a20
add esp, 4
call fcn.004033b0
xor eax, eax
call fcn.00406f40
call fcn.004034a0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0x404d40
push 0
push 0x65
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
call fcn.00407880
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406f40
Capabilities:
Create thread

Disassembly:
push ecx
cmp byte [0x41a00e], 0
push esi
push edi
mov esi, eax
je 0x40701e
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 0x406f84
call fcn.00405e00
test esi, esi
je 0x406f97
mov ecx, dword [0x41c270]
push esi
push ecx
call fcn.00401c70
jmp 0x406fce
mov edx, dword [0x41c270]
push edx
call fcn.004019c0
mov eax, dword [0x41c270]
push 0
push 0
push eax
push 0x406790
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 0x406ff0
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 0x407017
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 0x4076a0
Capabilities:
Check os version

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

Function at 0x4076f0
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.00402940
mov esi, eax
test esi, esi
jne 0x407712
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 0x4077c0
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 0x4077f3
xor al, al
pop ebx
add esp, 8
ret
mov eax, 1
cmp dword [esp + 4], eax
jle 0x407868
push ebp
push esi
push edi
mov edi, dword [ecx + eax*4]
movzx ebp, word [edi]
cmp bp, 0x6e
jne 0x40784d
movzx ecx, word [edi + 2]
lea esi, [edi + 2]
xor edx, edx
test cx, cx
je 0x407841
jmp 0x407820
cmp cx, 0x30
jb 0x407841
cmp cx, 0x39
ja 0x407841
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 0x407820
mov ecx, dword [esp + 0x14]
mov dword [0x41a028], edx
mov bl, 2
cmp bp, 0x65
jne 0x40785c
cmp word [edi + 2], 0
jne 0x40785c
mov bl, 1
add eax, 1
cmp eax, dword [esp + 0x10]
jl 0x407801
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 0x407880
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 0x407a07
call fcn.00407a20
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x41c288]
push 0x17
call fcn.00402940
lea ecx, [esp + 0x14]
push ecx
mov ebp, eax
mov eax, dword [0x41c288]
push 0x38
call fcn.00402940
mov edi, eax
test edi, edi
je 0x407a07
test ebp, ebp
je 0x407a07
push 0x104
lea edx, [esp + 0x74]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x407a07
lea edx, [esp + 0x70]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4078f0
mov ecx, edi
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407900
mov eax, 0x41a238
mov si, word [eax]
add eax, 2
test si, si
jne 0x407910
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 0x407a07
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 0x407a07
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 0x4079de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00407a20
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.00404c60
mov eax, edi
call fcn.00404c60
mov eax, esi
call fcn.00404c60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x26c
ret

Function at 0x407a80
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x41c2ac]
sub esp, 0xc
test eax, eax
jne 0x407a97
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x41c2ac], eax
cmp al, 6
jae 0x407aab
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 0x407acb
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 0x407b00
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 0x407b20
mov word [0x41a030], di
jmp 0x407b4f
mov eax, 0x41a030
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407b25
sub eax, 0x41a030
sar eax, 1
sub eax, 1
je 0x407b4f
cmp word [eax*2 + 0x41a02e], 0x5c
jne 0x407b4f
mov word [eax*2 + 0x41a02e], di
push 0x400
push 0x41a238
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x407b74
mov word [0x41aa38], di
mov word [0x41a238], di
jmp 0x407bdb
mov edx, 0x400
xor eax, eax
jmp 0x407b80
movzx ecx, word [eax + 0x41a238]
mov word [eax + 0x41aa38], cx
add eax, 2
cmp cx, di
je 0x407b9b
sub edx, 1
jne 0x407b80
cmp edx, edi
jne 0x407ba6
mov word [0x41b236], di
mov eax, 0x41aa38
jmp 0x407bb0
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x407bb0
jmp 0x407bc0
sub eax, 2
cmp eax, 0x41aa38
je 0x407bd2
cmp word [eax], 0x5c
jne 0x407bc0
jmp 0x407bd8
cmp word [eax], 0x5c
jne 0x407bdb
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 0x407bfa
mov word [0x41b238], di
jmp 0x407c2a
mov eax, 0x41b238
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407c00
sub eax, 0x41b238
sar eax, 1
sub eax, 1
je 0x407c2a
cmp word [eax*2 + 0x41b236], 0x5c
jne 0x407c2a
mov word [eax*2 + 0x41b236], di
push edi
push edi
push 0x41ba38
push edi
call esi
test eax, eax
pop esi
jne 0x407c42
mov word [0x41ba38], di
pop edi
ret
mov eax, 0x41ba38
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x407c47
sub eax, 0x41ba38
sar eax, 1
sub eax, 1
je 0x407c71
cmp word [eax*2 + 0x41ba36], 0x5c
jne 0x407c71
mov word [eax*2 + 0x41ba36], di
pop edi
ret

Function at 0x407c80
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.00402940
mov edi, eax
test edi, edi
je 0x407d51
push 0x104
lea ecx, [esp + 0x14]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x407d41
mov edx, 0x409268
lea eax, [esp + 0x10]
mov esi, 0x104
lea ebx, [ebx]
cmp word [eax], 0
je 0x407cde
add eax, 2
sub esi, 1
jne 0x407cd0
test esi, esi
je 0x407d04
movzx ecx, word [edx]
mov word [eax], cx
add eax, 2
add edx, 2
test cx, cx
je 0x407cf8
sub esi, 1
jne 0x407ce2
test esi, esi
jne 0x407d04
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 0x407d44
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 0x408140
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.00402940
mov esi, eax
test esi, esi
mov dword [esp + 0x14], esi
je 0x40826e
lea edi, [esp + 0x10]
call fcn.004038b0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x408194
call fcn.00407a20
jmp 0x40825e
lea ecx, [esp + 0x1c]
push ecx
push ebp
mov dword [esp + 0x24], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x408257
mov ebx, dword [esp + 0x10]
test ebx, ebx
mov edi, ebx
je 0x408240
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 0x4081e3
cmp ax, 0x5a
ja 0x4081e3
add eax, 0x20
movzx ecx, ax
movzx eax, word [edx]
cmp ax, 0x41
jb 0x4081f8
cmp ax, 0x5a
ja 0x4081f8
add eax, 0x20
add edx, 2
test cx, cx
movzx eax, ax
je 0x408208
cmp cx, ax
je 0x4081d0
movzx edx, ax
movzx eax, cx
sub eax, edx
je 0x40821b
mov edi, dword [edi + 4]
test edi, edi
jne 0x4081c0
jmp 0x408240
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 0x408240
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 0x4081b3
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.004037b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x23c
ret

Function at 0x408290
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.00402940
mov edx, dword [esp + 0x224]
lea ecx, [esp + 0x14]
push ecx
mov esi, eax
mov eax, dword [0x41c288]
push edx
call fcn.00402940
test esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, eax
je 0x40833b
test ebx, ebx
je 0x408333
push 0x104
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x408333
lea eax, [esp + 0x18]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4082f3
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x18]
sub eax, edx
sar eax, 1
sub eax, 1
push eax
call fcn.004048a0
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 0x408347
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 0x408360
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.00402940
lea ecx, [esp + 0x18]
push ecx
mov esi, eax
mov eax, dword [0x41c288]
push 0x11
call fcn.00402940
test esi, esi
mov edi, eax
mov dword [esp + 0x1c], 0x400
je 0x4083ed
test edi, edi
je 0x4083ed
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 0x4083ed
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 0x4083f2
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 0x40840a
push esi
push 0
call ebp
push eax
call ebx
test edi, edi
je 0x408416
push edi
push 0
call ebp
push eax
call ebx
call fcn.00407c80
lea ecx, [esp + 0x20]
xor edx, edx
cmp byte [ecx], 0
je 0x40845b
add ecx, 1
cmp byte [ecx], 0
je 0x40844e
add ecx, 1
cmp byte [ecx], 0
je 0x408453
add ecx, 1
cmp byte [ecx], 0
je 0x408458
add edx, 4
add ecx, 1
cmp edx, 0x400
jb 0x408421
jmp 0x40845b
add edx, 1
jmp 0x40845b
add edx, 2
jmp 0x40845b
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 0x4084af
add eax, 1
cmp byte [eax], 0
je 0x4084a2
add eax, 1
cmp byte [eax], 0
je 0x4084a7
add eax, 1
cmp byte [eax], 0
je 0x4084ac
add edx, 4
add eax, 1
cmp edx, 0x400
jb 0x408475
jmp 0x4084af
add edx, 1
jmp 0x4084af
add edx, 2
jmp 0x4084af
add edx, 3
lea eax, [esp + 0x20]
call fcn.00404a10
push eax
lea edx, [esp + 0x24]
push edx
call fcn.00407a20
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret