joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447e0c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x447e23
add esp, 0xfffffff0
call fcn.00403ab4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041f604
mov eax, dword [0x5335e8]
cmp word [eax + 2], 0
jne 0x447e4b
mov eax, dword [0x5335e8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004494bc
mov eax, dword [0x533768]
cmp word [eax + 2], 0
jne 0x447e65
mov eax, dword [0x533768]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004496b4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41446c]
call fcn.00403720
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41446c]
call fcn.00403720
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x422304]
call fcn.0042a338
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x447fec
mov eax, dword [0x5333e4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042a708
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x449c34
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x5333e4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d2a8
test eax, eax
je 0x447f5a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409c88
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d2d0
test eax, eax
je 0x447f6e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004047c4
mov eax, dword [0x533104]
cmp byte [eax], 0
jne 0x447fa2
mov eax, ebx
call fcn.00448114
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00449e10
mov eax, ebx
call fcn.0044a750
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x447fe2
call fcn.00403b0c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x448388
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x534b9c]
cmp dword [eax + 0x30], 0
je 0x448432
cmp dword [ebx + 0x94], 0
jne 0x44842c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x448318
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44842c
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 0x4483f2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44842c
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.00416d88
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x448401
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x448ed0
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 0x448f05
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 0x448f12
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004045b0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x449fec
Capabilities:
Hide graphical window

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

Function at 0x44cc64
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 0x44ccb3
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 0x4551f0
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 [0x534c14], 0
je 0x45533f
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x533718]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x45533f
mov eax, dword [0x534c18]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x534c14]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x45530e
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x534c14]
call fcn.00416d88
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x455306
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x455306
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x455306
mov eax, dword [ebp - 0x14]
call fcn.0045dd40
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x455306
push ebp
call fcn.004551ac
pop ecx
test al, al
jne 0x455306
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x4552c2
mov eax, dword [ebp - 0x14]
call fcn.0045c89c
dec eax
jle 0x455306
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 0x455306
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x455306
mov edx, dword [ebp - 0x14]
mov eax, dword [0x534c18]
call fcn.00454974
inc edi
dec ebx
jne 0x455255
mov eax, dword [0x534c18]
cmp dword [eax + 8], 0
jle 0x455326
mov eax, dword [0x534c18]
call fcn.00454a04
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x45533f
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00455014
pop ecx
test al, al
jne 0x45533f
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 0x458908
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 0x458954
mov eax, esi
call fcn.004407e4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x458954
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x458954
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 0x458a98
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x458994
cmp eax, 0x108
ja 0x458994
mov eax, esi
call fcn.004407e4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x458a8f
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x458a98
jmp 0x458a8f
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x458a76
cmp eax, 0x20a
ja 0x458a76
test byte [esi + 0x50], 0x80
jne 0x4589c6
sub eax, 0x203
je 0x4589c3
sub eax, 3
je 0x4589c3
sub eax, 3
jne 0x4589c6
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x4589da
dec eax
je 0x4589ef
dec eax
je 0x458a0f
dec eax
je 0x4589ef
jmp 0x458a16
mov ecx, ebx
mov eax, dword [0x533718]
mov eax, dword [eax]
mov edx, esi
call fcn.00449ea4
jmp 0x458a8f
cmp byte [esi + 0x5d], 1
jne 0x458a05
mov eax, esi
mov si, 0xffed
call fcn.0040394c
jmp 0x458a98
or word [esi + 0x54], 1
jmp 0x458a8f
and word [esi + 0x54], 0xfffe
jmp 0x458a8f
mov eax, dword [0x534bd0]
cmp byte [eax + 0x20], 0
je 0x458a8f
mov eax, dword [0x534bd0]
cmp dword [eax + 0x1c], 0
je 0x458a8f
mov eax, dword [ebx]
mov edx, dword [0x534bd0]
cmp eax, dword [edx + 0x1c]
jne 0x458a8f
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.00440728
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 0x458a98
mov eax, dword [ebx]
cmp eax, 0xb00b
jne 0x458a8f
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00457228
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 0x45bf38
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 0x45bf54
cmp dword [esi + 4], 0
je 0x45bf81
test byte [ebx + 0x55], 1
jne 0x45bf73
mov eax, ebx
call fcn.0045ab90
test eax, eax
jne 0x45bf73
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x45c091
mov edx, esi
mov eax, ebx
call fcn.0045ba58
jmp 0x45c091
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 0x45c08a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0045dd40
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.0045883c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0045bf38
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.0045dd40
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c091
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 0x462568
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x533a64]
cmp byte [eax + 0xc], 0
je 0x4626d5
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4626ce
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x534c24], 0
jne 0x4625bc
push 0x4626dc
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4626e4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x534c24], eax
cmp dword [0x4f2e2c], 0
jne 0x4626b7
push 0x4626f4
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4f2e2c], eax
cmp dword [0x4f2e2c], 0
je 0x4626b7
push 0x462700
mov eax, dword [0x4f2e2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x534c28], eax
push 0x462710
mov eax, dword [0x4f2e2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x534c2c], eax
push 0x462724
mov eax, dword [0x4f2e2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x534c30], eax
push 0x46273c
mov eax, dword [0x4f2e2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x534c34], eax
push 0x462754
mov eax, dword [0x4f2e2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x534c38], eax
push 0x462768
mov eax, dword [0x4f2e2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x534c3c], eax
push 0x462780
mov eax, dword [0x4f2e2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x534c40], eax
push 0x462798
mov eax, dword [0x4f2e2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x534c44], eax
push 0x4627b4
mov eax, dword [0x4f2e2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x534c48], eax
push 0x4627c0
mov eax, dword [0x4f2e2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x534c4c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4626d5
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x462f3c
Capabilities:
Encode data using xor

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

Function at 0x46a98c
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 0x46a9a5
test al, 0x10
jne 0x46a9a9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x46ae58
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.00407b44
mov dword [ebp - 0x3c], 0x3c
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ebx
mov eax, 0x46aeb8
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 0x46b33c
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 [0x533a64]
cmp byte [edx + 0xc], 0
je 0x46b3a0
mov edx, dword [0x533a54]
cmp dword [edx], 2
jne 0x46b3a0
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 0x46b3a4
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 0x46b45c
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.0046b33c
test al, al
je 0x46b43e
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 0x46b43e
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 0x46b3f7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b463
lea eax, [ebp - 0x2c]
call fcn.0040455c
lea eax, [ebp - 0xc]
call fcn.0040455c
ret
Function at 0x46b684
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.0046b068
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 0x46b6e2
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x53361c]
mov dl, 1
mov eax, dword [0x46af60]
call fcn.0040c5d0
call fcn.00403f1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x46b6ec
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 0x46b744
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x533a78]
mov dl, 1
mov eax, dword [0x46af60]
call fcn.0040c5d0
call fcn.00403f1c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0046b0bc
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 0x46d69c
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 0x46d6ed
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 0x46d6d1
test al, 0x10
je 0x46d6d5
xor ebx, ebx
jmp 0x46d6d7
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d6f4
lea eax, [ebp - 4]
call fcn.0040455c
ret

Function at 0x46d6fc
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 0x46d74d
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 0x46d731
test al, 0x10
je 0x46d735
xor ebx, ebx
jmp 0x46d737
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d754
lea eax, [ebp - 4]
call fcn.00404c78
ret

Function at 0x46da2c
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 0x46da58
mov eax, esi
call fcn.0046d6fc
test al, al
je 0x46da58
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 [0x46306c]
call fcn.004631bc
cmp dword [eax + 8], 0xffffffff
jne 0x46da74
call fcn.00403750
xor eax, eax
pop esi
pop ebx
ret
Function at 0x46da78
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 0x46db8e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov edx, dword [esi]
mov eax, 0x46dba4
call fcn.00404b50
mov ebx, eax
test ebx, ebx
je 0x46db6d
cmp ebx, dword [ebp - 8]
je 0x46db6d
mov dword [ebp - 8], ebx
mov eax, esi
mov ecx, 1
mov edx, ebx
call fcn.00404aac
mov edx, dword [esi]
mov eax, 0x46dba4
call fcn.00404b50
mov edi, eax
test edi, edi
je 0x46db6d
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 0x46daa4
push 0x46dba4
push dword [ebp - 4]
push 0x46dba4
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 0x46daa4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46db95
lea eax, [ebp - 0x110]
call fcn.0040455c
lea eax, [ebp - 4]
call fcn.0040455c
ret