joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445ee4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x532b98]
cmp dword [eax + 0x30], 0
je 0x445f8e
cmp dword [ebx + 0x94], 0
jne 0x445f88
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x445e74
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x445f88
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x445f4e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x445f88
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00416d5c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x445f5d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x446a2c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x446a61
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040464c
jmp 0x446a6e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004045b0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x447ab8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x447af9
mov eax, esi
call fcn.0045cd8c
test al, al
je 0x447af9
mov eax, dword [ebx + 0x84]
call fcn.0045ca88
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x447af9
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045ca88
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x44b9ac
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.0040455c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44b9fb
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004047c4
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x453f38
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x532c14], 0
je 0x454087
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x531704]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x454087
mov eax, dword [0x532c18]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x532c14]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x454056
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x532c14]
call fcn.00416d5c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x45404e
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x45404e
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x45404e
mov eax, dword [ebp - 0x14]
call fcn.0045ca88
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45404e
push ebp
call fcn.00453ef4
pop ecx
test al, al
jne 0x45404e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x45400a
mov eax, dword [ebp - 0x14]
call fcn.0045b5e4
dec eax
jle 0x45404e
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.0040394c
cmp byte [ebp - 1], 0
je 0x45404e
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x45404e
mov edx, dword [ebp - 0x14]
mov eax, dword [0x532c18]
call fcn.004536bc
inc edi
dec ebx
jne 0x453f9d
mov eax, dword [0x532c18]
cmp dword [eax + 8], 0
jle 0x45406e
mov eax, dword [0x532c18]
call fcn.0045374c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x454087
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00453d5c
pop ecx
test al, al
jne 0x454087
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x457650
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x45769c
mov eax, esi
call fcn.0043e340
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x45769c
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x45769c
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x4577e0
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x4576dc
cmp eax, 0x108
ja 0x4576dc
mov eax, esi
call fcn.0043e340
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4577d7
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x4577e0
jmp 0x4577d7
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x4577be
cmp eax, 0x20a
ja 0x4577be
test byte [esi + 0x50], 0x80
jne 0x45770e
sub eax, 0x203
je 0x45770b
sub eax, 3
je 0x45770b
sub eax, 3
jne 0x45770e
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x457722
dec eax
je 0x457737
dec eax
je 0x457757
dec eax
je 0x457737
jmp 0x45775e
mov ecx, ebx
mov eax, dword [0x531704]
mov eax, dword [eax]
mov edx, esi
call fcn.00447970
jmp 0x4577d7
cmp byte [esi + 0x5d], 1
jne 0x45774d
mov eax, esi
mov si, 0xffed
call fcn.0040394c
jmp 0x4577e0
or word [esi + 0x54], 1
jmp 0x4577d7
and word [esi + 0x54], 0xfffe
jmp 0x4577d7
mov eax, dword [0x532bd0]
cmp byte [eax + 0x20], 0
je 0x4577d7
mov eax, dword [0x532bd0]
cmp dword [eax + 0x1c], 0
je 0x4577d7
mov eax, dword [ebx]
mov edx, dword [0x532bd0]
cmp eax, dword [edx + 0x1c]
jne 0x4577d7
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.0043e284
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.0040394c
jmp 0x4577e0
mov eax, dword [ebx]
cmp eax, 0xb00b
jne 0x4577d7
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00455f70
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45ac80
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x45ac9c
cmp dword [esi + 4], 0
je 0x45acc9
test byte [ebx + 0x55], 1
jne 0x45acbb
mov eax, ebx
call fcn.004598d8
test eax, eax
jne 0x45acbb
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x45add9
mov edx, esi
mov eax, ebx
call fcn.0045a7a0
jmp 0x45add9
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x45add2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0045ca88
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00457584
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0045ac80
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0045ca88
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45add9
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4612b0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x531a50]
cmp byte [eax + 0xc], 0
je 0x46141d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x461416
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x532c24], 0
jne 0x461304
push 0x461424
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x46142c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x532c24], eax
cmp dword [0x4f0e18], 0
jne 0x4613ff
push 0x46143c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4f0e18], eax
cmp dword [0x4f0e18], 0
je 0x4613ff
push 0x461448
mov eax, dword [0x4f0e18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x532c28], eax
push 0x461458
mov eax, dword [0x4f0e18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x532c2c], eax
push 0x46146c
mov eax, dword [0x4f0e18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x532c30], eax
push 0x461484
mov eax, dword [0x4f0e18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x532c34], eax
push 0x46149c
mov eax, dword [0x4f0e18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x532c38], eax
push 0x4614b0
mov eax, dword [0x4f0e18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x532c3c], eax
push 0x4614c8
mov eax, dword [0x4f0e18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x532c40], eax
push 0x4614e0
mov eax, dword [0x4f0e18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x532c44], eax
push 0x4614fc
mov eax, dword [0x4f0e18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x532c48], eax
push 0x461508
mov eax, dword [0x4f0e18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x532c4c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46141d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x461c84
Capabilities:
Encode data using xor

Disassembly:
push esi
push ebx
push eax
mov eax, dword [eax]
mov esi, edx
or ecx, ecx
je 0x461ca8
mov edx, eax
shl edx, 8
mov bl, byte [esi]
shr eax, 0x18
xor al, bl
mov eax, dword [eax*4 + 0x4f0e50]
xor eax, edx
inc esi
dec ecx
jne 0x461c8f
mov ecx, eax
pop eax
mov dword [eax], ecx
pop ebx
pop esi
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404a0c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x469711
test al, 0x10
jne 0x469715
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x469bc4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x3c]
xor ecx, ecx
mov edx, 0x3c
call fcn.00407b3c
mov dword [ebp - 0x3c], 0x3c
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ebx
mov eax, 0x469c24
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 1
lea eax, [ebp - 0x3c]
push eax
call sub.shell32.dll_ShellExecuteExA
cmp eax, 1
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x46a0a8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.0040303c
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x531a50]
cmp byte [edx + 0xc], 0
je 0x46a10c
mov edx, dword [0x531a40]
cmp dword [edx], 2
jne 0x46a10c
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret

Function at 0x46a110
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x46a1c8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.0046a0a8
test al, al
je 0x46a1aa
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.0040464c
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x46a1aa
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404a0c
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueA
mov eax, dword [ebp - 0xc]
call fcn.00404a0c
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0040474c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x46a163
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a1cf
lea eax, [ebp - 0x2c]
call fcn.0040455c
lea eax, [ebp - 0xc]
call fcn.0040455c
ret
Function at 0x46a3f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00469dd4
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404a0c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x46a44e
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x531604]
mov dl, 1
mov eax, dword [0x469ccc]
call fcn.0040c5a4
call fcn.00403f1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x46a458
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404a0c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x46a4b0
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x531a64]
mov dl, 1
mov eax, dword [0x469ccc]
call fcn.0040c5a4
call fcn.00403f1c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00469e28
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004049fc
xor eax, eax
push ebp
push 0x46c459
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.00404a64
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x46c43d
test al, 0x10
je 0x46c441
xor ebx, ebx
jmp 0x46c443
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c460
lea eax, [ebp - 4]
call fcn.0040455c
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.004051e0
xor eax, eax
push ebp
push 0x46c4b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404e28
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x46c49d
test al, 0x10
je 0x46c4a1
xor ebx, ebx
jmp 0x46c4a3
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c4c0
lea eax, [ebp - 4]
call fcn.00404c78
ret

Function at 0x46c798
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
and ax, 0xffff
cmp ax, 0xffff
jne 0x46c7c4
mov eax, esi
call fcn.0046c468
test al, al
je 0x46c7c4
push 0x20
mov eax, esi
call fcn.00404e28
push eax
call sub.kernel32.dll_SetFileAttributesW
push ebx
mov ecx, esi
mov dl, 1
mov eax, dword [0x461db4]
call fcn.00461f28
cmp dword [eax + 8], 0xffffffff
jne 0x46c7e0
call fcn.00403750
xor eax, eax
pop esi
pop ebx
ret
Function at 0x46c7e4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x46c8fa
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov edx, dword [esi]
mov eax, 0x46c910
call fcn.00404b50
mov ebx, eax
test ebx, ebx
je 0x46c8d9
cmp ebx, dword [ebp - 8]
je 0x46c8d9
mov dword [ebp - 8], ebx
mov eax, esi
mov ecx, 1
mov edx, ebx
call fcn.00404aac
mov edx, dword [esi]
mov eax, 0x46c910
call fcn.00404b50
mov edi, eax
test edi, edi
je 0x46c8d9
lea eax, [ebp - 4]
push eax
mov ecx, edi
sub ecx, ebx
mov eax, dword [esi]
mov edx, ebx
call fcn.00404a6c
mov ecx, edi
sub ecx, ebx
inc ecx
mov eax, esi
mov edx, ebx
call fcn.00404aac
cmp dword [ebp - 4], 0
je 0x46c810
push 0x46c910
push dword [ebp - 4]
push 0x46c910
lea eax, [ebp - 4]
mov edx, 3
call fcn.004048d4
push 0x104
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 4]
call fcn.00404a64
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
lea eax, [ebp - 0x110]
lea edx, [ebp - 0x10c]
mov ecx, 0x104
call fcn.004047c4
mov eax, dword [ebp - 0x110]
mov edx, esi
mov ecx, ebx
call fcn.00404af4
jmp 0x46c810
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c901
lea eax, [ebp - 0x110]
call fcn.0040455c
lea eax, [ebp - 4]
call fcn.0040455c
ret
Function at 0x46db9c
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x46dba4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004049fc
xor eax, eax
push ebp
push 0x46dd4b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x414aa4]
call fcn.00403720
mov esi, eax
lea edx, [ebp - 8]
mov eax, 0x46dd64
call fcn.0040e31c
mov al, byte [0x46dd6c]
push eax
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x46dd78
mov edx, 0x46dd84
mov eax, dword [ebp - 8]
call fcn.0040d8bc
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 8]
call fcn.004045f4
mov al, byte [0x46dd6c]
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x46dd78
mov edx, 0x46dd84
mov eax, dword [ebp - 8]
call fcn.0040d8bc
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 8]
call fcn.004045f4
mov al, byte [0x46dd6c]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x46dd78
mov edx, 0x46dd84
mov eax, dword [ebp - 8]
call fcn.0040d8bc
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
call fcn.004045f4
mov al, byte [0x46dd6c]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, 0x46dd90
mov edx, 0x46dd78
mov eax, dword [ebp - 8]
call fcn.0040d8bc
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 8]
call fcn.004045f4
mov edx, dword [ebp - 8]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov byte [ebp - 0xd], 0
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x46dcc8
inc ebx
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 0xc]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.00404958
jne 0x46dcc2
mov byte [ebp - 0xd], 1
jmp 0x46dcc8
inc dword [ebp - 0xc]
dec ebx
jne 0x46dca2
cmp byte [ebp - 0xd], 0
jne 0x46dd1c
mov edx, dword [ebp - 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea edx, [ebp - 8]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov al, byte [0x46dd6c]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, 0x46dd78
mov edx, 0x46dd90
mov eax, dword [ebp - 8]
call fcn.0040d8bc
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 8]
call fcn.004045f4
lea eax, [ebp - 8]
call fcn.00404a64
push eax
push 0x46dd94
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, esi
call fcn.00403750
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46dd52
lea eax, [ebp - 0x28]
mov edx, 6
call fcn.00404580
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404580
ret

Function at 0x46dfec
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret