joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44fa00
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x44faa5
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
je 0x44fa90
dec eax
jne 0x44fab2
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x44fa30
sub eax, edx
sar eax, 1
cmp eax, 0x104
ja 0x44fab2
lea eax, [eax + eax + 2]
call fcn.00491130
mov esi, esp
mov edx, esi
mov eax, edi
sub edx, edi
jmp 0x44fa60
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x44fa60
push 0x5c
push esi
call fcn.00487df0
add esp, 8
test eax, eax
je 0x44fab2
xor ecx, ecx
push esi
mov word [eax], cx
call fcn.0044fa00
add esp, 4
test al, al
je 0x44fab2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret
test al, 0x10
je 0x44fab2
mov al, 1
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret
xor al, al
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret

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

Disassembly:
sub esp, 0x254
push 0x2a
push esi
call fcn.00487101
add esp, 8
test eax, eax
jne 0x44faf8
push 0x3f
push esi
call fcn.00487101
add esp, 8
test eax, eax
jne 0x44faf8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
add esp, 0x254
ret
lea eax, [esp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x44fb11
xor al, al
add esp, 0x254
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
add esp, 0x254
ret

Function at 0x44fc60
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x18
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x44fc81
xor al, al
add esp, 0x18
ret
lea ecx, [esp + 0xc]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp + 4]
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x44fc7b
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne al
add esp, 0x18
ret

Function at 0x44fce0
Capabilities:
Terminate process

Disassembly:
push ecx
push esi
mov esi, eax
lea eax, [esp + 4]
push eax
push 0x1f4
push 2
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x44fd31
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x44fd31
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x44fd31
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ecx
ret
Function at 0x457c10
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 0x63
jb 0x457c1c
xor eax, eax
ret
push esi
mov esi, dword [eax*4 + 0x4c1600]
test esi, esi
je 0x457dda
cmp dword [esi], 0
push ebx
push ebp
push edi
je 0x457cea
xor edi, edi
xor ebx, ebx
lea esp, [esp]
mov eax, dword [edi*4 + 0x4c1600]
test eax, eax
je 0x457c64
mov eax, dword [eax + 0x40]
cmp eax, dword [esi]
jne 0x457c5b
push edi
call fcn.00457c10
add esp, 4
inc ebx
cmp dword [0x4c30b4], ebx
je 0x457c6a
inc edi
cmp edi, 0x63
jb 0x457c40
mov eax, dword [esi + 4]
test eax, eax
je 0x457cae
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x406
push eax
call ebx
mov ebp, eax
xor edi, edi
test ebp, ebp
jle 0x457cae
jmp 0x457c90
mov ecx, dword [esi + 4]
push 0
push edi
push 0x414
push ecx
call ebx
test eax, eax
je 0x457ca9
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
inc edi
cmp edi, ebp
jl 0x457c90
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x457cea
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi]
push 0
push ecx
call dword [sym.imp.USER32.dll_SetMenu]
cmp byte [esi + 0xbb], 0
jne 0x457cea
mov edx, dword [esi]
push edx
mov byte [esi + 0xbb], 1
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esi + 0x60]
mov ebp, dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x457cfa
push eax
call ebp
mov eax, dword [esi + 0x68]
test eax, eax
je 0x457d04
push eax
call ebp
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x457d12
push eax
call dword [sym.imp.SHELL32.dll_DragFinish]
xor ebx, ebx
cmp dword [esi + 0xc], ebx
jbe 0x457d62
xor edi, edi
jmp 0x457d20
mov eax, dword [esi + 0x14]
mov cl, byte [eax + edi + 4]
add eax, edi
cmp cl, 2
jne 0x457d48
mov edx, dword [eax + 0x10]
test edx, edx
je 0x457d48
test byte [eax + 5], 0x80
push edx
je 0x457d44
call dword [sym.imp.USER32.dll_DestroyIcon]
jmp 0x457d59
call ebp
jmp 0x457d59
cmp cl, 0xa
jne 0x457d59
mov eax, dword [eax + 0x10]
push eax
call fcn.00487975
add esp, 4
inc ebx
add edi, 0x14
cmp ebx, dword [esi + 0xc]
jb 0x457d20
mov ecx, dword [esi + 0x14]
mov edi, dword [esi + 0x70]
mov ebx, dword [esi + 0x74]
push ecx
call fcn.00487975
mov esi, dword [esp + 0x18]
mov edx, dword [esi*4 + 0x4c1600]
push edx
call fcn.00487de5
mov dword [esi*4 + 0x4c1600], 0
mov esi, dword [0x4c30b4]
dec esi
add esp, 8
mov dword [0x4c30b4], esi
test edi, edi
je 0x457dd7
cmp edi, dword [0x4c3c54]
je 0x457dd7
xor edx, edx
mov ecx, 0x4c1600
cmp edx, esi
jge 0x457dcb
mov eax, dword [ecx]
test eax, eax
je 0x457dc0
cmp dword [eax + 0x70], edi
je 0x457dd7
inc edx
add ecx, 4
cmp ecx, 0x4c178c
jl 0x457db0
mov esi, dword [sym.imp.USER32.dll_DestroyIcon]
push edi
call esi
push ebx
call esi
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
ret
Function at 0x45e2d0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [eax]
test eax, eax
je 0x45e2df
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
ret

Function at 0x45e2f0
Capabilities:
Hide graphical window

Disassembly:
cmp dword [eax + 0x1c], 0
mov eax, dword [eax]
jne 0x45e30b
test eax, eax
je 0x45e31e
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
ret
push 0
push 0x2af80006
push 0x414
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, 1
ret

Function at 0x45e360
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x58
cmp dword [edi], 0
push ebx
push esi
je 0x45e4c5
xor ebx, ebx
cmp dword [edi + 0xc], ebx
jbe 0x45e3a9
xor esi, esi
mov eax, dword [edi + 0x14]
cmp dword [eax + esi + 8], 0
je 0x45e3a0
cmp byte [eax + esi + 4], 6
je 0x45e3a0
mov edx, dword [esi + eax + 8]
lea ecx, [esi + eax]
push edi
mov eax, str.Submit
call fcn.0045e590
inc ebx
add esi, 0x14
cmp ebx, dword [edi + 0xc]
jb 0x45e37d
xor esi, esi
xor ebx, ebx
cmp esi, dword [edi + 0xc]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], esi
je 0x45e3e0
mov edx, dword [edi + 0x14]
mov eax, dword [esp + 0x14]
mov ecx, dword [edx + eax]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x20000
je 0x45e42f
mov eax, 1
cmp dword [esp + 0x10], eax
jne 0x45e41c
cmp dword [esp + 0xc], eax
jle 0x45e41c
cmp ebx, 0xffffffff
jne 0x45e3f8
xor ebx, ebx
push 0xa
lea edx, [esp + 0x24]
push edx
push ebx
call fcn.004860b5
mov ecx, dword [esp + 0x24]
add esp, 0xc
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x2c]
push eax
call fcn.0046dd60
cmp esi, dword [edi + 0xc]
je 0x45e4b4
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
mov eax, dword [edi + 0x14]
mov edx, dword [esp + 0x14]
cmp byte [eax + edx + 4], 6
jne 0x45e49d
mov esi, dword [eax + edx + 8]
inc dword [esp + 0xc]
test esi, esi
je 0x45e451
inc dword [esp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax + edx]
push 0
push 0
push pe_nt_image_headers32
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
jne 0x45e487
test ebx, ebx
je 0x45e472
or ebx, 0xffffffff
jmp 0x45e476
mov ebx, dword [esp + 0xc]
test esi, esi
je 0x45e49d
push 1
push 0
push 0xffffffffffffffff
push 0x49e30c
jmp 0x45e496
test esi, esi
je 0x45e49d
push 1
push 0
push 0xffffffffffffffff
push 0x49b8d0
mov ecx, esi
call fcn.0046dd60
mov esi, dword [esp + 0x1c]
add dword [esp + 0x14], 0x14
inc esi
mov dword [esp + 0x1c], esi
cmp esi, dword [edi + 0xc]
jbe 0x45e3c4
cmp byte [ebp + 8], 0
je 0x45e4c5
mov ecx, dword [edi]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x45e4e0
Capabilities:
Get graphical window text

Disassembly:
cmp ecx, 0x2af8
jae 0x45e584
mov edx, dword [edx*4 + 0x4c1600]
test edx, edx
je 0x45e584
cmp ecx, dword [edx + 0xc]
jae 0x45e584
mov edx, dword [edx + 0x14]
lea ecx, [ecx + ecx*4]
lea ecx, [edx + ecx*4]
test eax, eax
je 0x45e552
mov edx, dword [ecx + 8]
test edx, edx
je 0x45e545
mov edx, dword [edx + 0x18]
push esi
mov esi, eax
mov edi, edi
movzx ecx, word [edx]
mov word [esi], cx
add edx, 2
add esi, 2
test cx, cx
jne 0x45e520
lea edx, [eax + 2]
pop esi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45e535
sub eax, edx
sar eax, 1
ret
push 0x40
push eax
mov eax, dword [ecx]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
ret
mov eax, dword [ecx + 8]
test eax, eax
je 0x45e570
mov eax, dword [eax + 0x18]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45e560
sub eax, edx
sar eax, 1
ret
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
cmp eax, 0x3f
jbe 0x45e58f
mov eax, 0x3f
ret
test eax, eax
je 0x45e58d
xor edx, edx
mov word [eax], dx
xor eax, eax
ret
Function at 0x460b60
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, eax
movzx eax, word [edi]
xor bl, bl
mov byte [esp + 0xf], bl
test ax, ax
je 0x460ba5
movzx eax, ax
cmp eax, 0x21
je 0x460b92
cmp eax, 0x2b
je 0x460b8d
cmp eax, 0x5e
jne 0x460ba1
or bl, 2
jmp 0x460b95
or bl, 1
jmp 0x460b95
or bl, 4
movzx eax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x460b76
mov byte [esp + 0xf], bl
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx ecx, word [edi]
test cx, cx
je 0x460c8a
cmp word [edi + 2], 0
jne 0x460bf4
cmp ecx, 0xa
jne 0x460bcc
mov al, 0xd
jmp 0x460c7f
push eax
push ecx
call dword [sym.imp.USER32.dll_VkKeyScanExW]
movzx eax, ax
mov ecx, eax
shr ecx, 8
cmp cl, 0xff
jne 0x460c7f
cmp al, 0xff
jne 0x460c7f
xor al, al
jmp 0x460c7f
mov esi, ecx
test esi, 0xffffff80
jne 0x460c10
push 2
push esi
call fcn.0048757e
add esp, 8
test eax, eax
je 0x460c10
and esi, 0xffffffdf
cmp si, 0x56
jne 0x460c4c
movzx esi, word [edi + 2]
test esi, 0xffffff80
jne 0x460c34
push 2
push esi
call fcn.0048757e
add esp, 8
test eax, eax
je 0x460c34
and esi, 0xffffffdf
cmp si, 0x4b
jne 0x460c4c
push 0x10
lea edx, [edi + 4]
push 0
push edx
call fcn.0048795b
add esp, 0xc
jmp 0x460c7f
xor esi, esi
mov edi, edi
mov eax, dword [esi*8 + 0x4be228]
push edi
push eax
call fcn.00486339
add esp, 8
test eax, eax
je 0x460c93
inc esi
cmp esi, 0x6d
jl 0x460c50
mov eax, edi
call fcn.00411780
movzx ecx, ax
test cx, cx
je 0x460c8a
call fcn.00411ec0
mov byte [esp + 0x10], al
cmp byte [esp + 0x10], 0
jne 0x460ca0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov cl, byte [esi*8 + 0x4be22c]
mov byte [esp + 0x10], cl
jmp 0x460c83
mov eax, edi
call fcn.00411780
movzx eax, ax
test ax, ax
jne 0x460cc5
mov edx, dword [esp + 0x10]
push edx
xor bl, bl
call fcn.00411c40
mov bl, byte [esp + 0x13]
add esp, 4
movzx eax, ax
test eax, 0x100
je 0x460ccf
or bl, 8
movzx ecx, byte [esp + 0x10]
movzx eax, bl
pop edi
shl eax, 8
pop esi
or eax, ecx
pop ebx
add esp, 8
ret
Function at 0x460cf0
Capabilities:
Get keyboard layout
Log keystrokes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
mov eax, ebx
push esi
shr eax, 8
push edi
mov esi, ebp
test al, 1
je 0x460d13
mov ecx, 0x2b
mov word [ebp], cx
lea esi, [ebp + 2]
test al, 2
je 0x460d22
mov edx, 0x5e
mov word [esi], dx
add esi, 2
test al, 4
je 0x460d31
mov ecx, 0x21
mov word [esi], cx
add esi, 2
test al, 8
je 0x460d81
push ebx
xor bl, bl
call fcn.00411c40
mov edx, dword [esp + 0x18]
push edx
mov bl, 1
movzx edi, ax
call fcn.00411c40
movzx eax, ax
add esp, 8
mov ecx, eax
test eax, 0x100
jne 0x460d5d
mov ecx, edi
test ecx, 0x100
je 0x460d7d
cmp di, ax
je 0x460d7d
mov eax, 0x64
mov edx, esi
call fcn.00411720
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
mov ebx, dword [esp + 0x14]
xor eax, eax
cmp byte [eax*8 + 0x4be22c], bl
je 0x460de6
inc eax
cmp eax, 0x6d
jl 0x460d83
push 0x64
push ebx
xor eax, eax
call fcn.00411b50
add esp, 8
cmp word [esi], 0
je 0x460e13
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 1
mov ecx, eax
push 0
xor edx, edx
mov eax, esi
call fcn.00411820
add esp, 8
test al, al
jne 0x460e13
movzx edi, bl
push 2
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
cbw
mov word [esi], ax
test ax, ax
je 0x460e04
pop edi
xor edx, edx
mov word [esi + 2], dx
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
mov eax, dword [eax*8 + 0x4be228]
push 0x63
push eax
push esi
call fcn.00488d24
add esp, 0xc
xor ecx, ecx
mov word [esi + 0xc6], cx
jmp 0x460d9f
push edi
push str.vk_02X
push esi
call fcn.00486743
add esp, 0xc
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x461a90
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x10
movzx eax, byte [esi + 4]
push ebp
mov ebp, dword [esp + 0x18]
add eax, 0xfffffff7
push edi
mov dword [esp + 8], SysStringLen
cmp eax, 8
ja case.0x461ab1.12
jmp dword [eax*4 + 0x461bb0]
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x19f
push eax
call edi
cmp eax, 0xffffffff
je 0x461b5e
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push eax
push 0x198
push edx
call edi
jmp 0x461b5e
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push 0xffffffffffffffff
push 0x100c
push eax
call edi
cmp eax, 0xffffffff
je 0x461b5e
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push eax
push 0x100e
push edx
mov dword [esp + 0x18], 2
call edi
jmp 0x461b5e
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 9
push 0x110a
push eax
call edi
test eax, eax
je 0x461b5e
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push 1
push 0x1104
push edx
mov dword [esp + 0x18], eax
call edi
jmp 0x461b5e
mov ecx, dword [esi]
lea eax, [esp + 8]
push eax
push 0
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esp + 8], 0x80000000
jne 0x461b78
mov eax, dword [esi]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x461b8a
mov edx, dword [esi]
push 2
lea ecx, [esp + 0xc]
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [ebp], eax
mov eax, dword [esp + 0x14]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
lea ecx, [eax + ecx + 2]
pop edi
mov dword [ebp + 4], ecx
pop ebp
add esp, 0x10
ret 4

Function at 0x467970
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x20214
call fcn.00493680
push esi
mov esi, ecx
test esi, esi
je 0x46798d
cmp word [esi], 0
jne 0x467992
mov esi, str.ERROR
xor eax, eax
push 0x1fffc
push eax
lea ecx, [esp + 0x222]
push ecx
mov word [esp + 0x224], ax
call fcn.00490160
mov ecx, dword [ebp + 8]
add esp, 0xc
lea edx, [esp + 4]
push edx
lea eax, [esp + 0xc]
push eax
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp word [edi], 0
je 0x467a0c
lea edx, [esp + 8]
push edx
push 0xffff
lea eax, [esp + 0x220]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [0x4c0e18]
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x224]
push eax
call fcn.0046dd60
pop esi
mov esp, ebp
pop ebp
ret 4
cmp word [ebx], 0
je 0x467a2d
lea ecx, [esp + 8]
push ecx
push 0xffff
lea edx, [esp + 0x220]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
jmp 0x467a45
lea eax, [esp + 8]
push eax
push 0xffff
lea ecx, [esp + 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
test eax, eax
je 0x4679ec
lea eax, [esp + 0x218]
cmp word [eax], 0
jne 0x467a65
cmp word [eax + 2], 0
je 0x4679ec
mov edx, 0xa
mov word [eax], dx
add eax, 2
jmp 0x467a50
Function at 0x467a70
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
sub esp, 0x258
push ebx
push ebp
push esi
mov esi, eax
mov ebp, 1
push edi
mov dword [esp + 0x10], ebp
test esi, esi
je 0x467aec
cmp word [esi], 0
je 0x467aec
push 4
push 0x4b70f0
push esi
call fcn.00487e1e
add esp, 0xc
test eax, eax
mov eax, esi
jne 0x467aa8
lea eax, [esi + 8]
mov ebx, 0x4a53e0
call fcn.00409070
test eax, eax
je 0x467adb
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x467aec
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x258
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
test al, al
jne 0x467ace
push 0
push 0
push 1
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x467ace
mov edx, dword [esp + 0x26c]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x467b15
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
sub eax, esi
sar eax, 1
mov esi, eax
mov ecx, 0x5d
push 0
mov word [edx + esi*2], cx
lea edx, [esp + 0x18]
push edx
push 4
push 0x4b6fa4
push edi
lea ebx, [esi + esi + 2]
call ebp
test eax, eax
je 0x467b72
cmp dword [esp + 0x14], 4
jne 0x467b72
mov ecx, dword [esp + 0x26c]
push 0
lea eax, [esp + 0x18]
push eax
push ebx
push ecx
push edi
call ebp
test eax, eax
je 0x467b72
cmp dword [esp + 0x14], ebx
je 0x467b7a
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x467b89
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x26c]
pop edi
xor edx, edx
mov word [eax + esi*2], dx
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
add esp, 0x258
ret
Function at 0x4683d0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebx
push ebp
push esi
mov esi, dword [esp + 0x220]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push 0
push esi
mov dword [esp + 0x30], 0xff
call edi
cmp eax, 0x103
je 0x468482
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
lea ecx, [esp + 0x2c]
push ecx
push esi
call ebp
test eax, eax
jne 0x46848f
mov edx, dword [esp + 0x14]
push edx
call fcn.004683d0
mov bl, al
mov eax, dword [esp + 0x18]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x46848f
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x46848f
lea edx, [esp + 0x18]
push edx
push eax
push eax
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
push ecx
push 0
push esi
mov dword [esp + 0x30], 0xff
call edi
cmp eax, 0x103
jne 0x468416
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x210
ret

Function at 0x4684a0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push ebx
push esi
mov esi, eax
test edi, edi
je 0x4684b7
cmp word [edi], 0
jne 0x4684c1
test esi, esi
je 0x468519
cmp word [esi], 0
je 0x468519
mov ecx, dword [ebp + 8]
lea eax, [esp + 0xc]
push eax
push 0x2001f
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x468519
test esi, esi
je 0x468526
cmp word [esi], ax
je 0x468526
push str.ahk_default
push esi
call fcn.00486339
add esp, 8
test eax, eax
jne 0x4684fc
mov esi, 0x4a596c
mov edx, dword [esp + 0xc]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x468553
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0xc]
push ecx
call fcn.004683d0
mov edx, dword [esp + 0x10]
add esp, 4
push edx
mov bl, al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x468519
mov eax, dword [ebp + 8]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x468519
mov ecx, dword [0x4c17f0]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8d0
call fcn.0046dd60
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x468e20
Capabilities:
Clear file content

Disassembly:
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
push ebx
push ebp
push edi
mov ecx, esi
call edx
mov ebp, edx
mov ecx, eax
and eax, ebp
cmp eax, 0xffffffff
jne 0x468e3d
or edi, eax
or ebx, eax
jmp 0x468e58
mov eax, dword [esi + 0x28]
test eax, eax
je 0x468e4c
sub eax, dword [esi + 0x2c]
sub eax, dword [esi + 8]
jmp 0x468e4f
mov eax, dword [esi + 8]
cdq
mov edi, eax
mov ebx, edx
add edi, ecx
adc ebx, ebp
mov ebp, dword [esp + 0x14]
mov edx, dword [esi]
mov eax, dword [esp + 0x10]
mov edx, dword [edx + 0x14]
push 0
push ebp
push eax
mov ecx, esi
call edx
test al, al
je 0x468ead
mov eax, dword [esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x468ead
cmp ebp, ebx
jg 0x468e91
jl 0x468e8b
cmp dword [esp + 0x10], edi
jae 0x468e91
mov edi, dword [esp + 0x10]
mov ebx, ebp
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push 0
push ebx
push edi
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
pop edi
pop ebp
pop ebx
ret 8
pop edi
or eax, 0xffffffff
pop ebp
or edx, eax
pop ebx
ret 8

Function at 0x46c080
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x258
push ebx
test esi, esi
je 0x46c101
cmp word [esi], 0
je 0x46c101
push 4
push 0x4b70f0
push esi
call fcn.00487e1e
add esp, 0xc
test eax, eax
mov eax, esi
jne 0x46c0aa
lea eax, [esi + 8]
mov ebx, 0x4a53e0
call fcn.00409070
test eax, eax
je 0x46c0e4
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x46c101
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
je 0x46c0da
mov ecx, dword [esp + 8]
mov dword [edi], ecx
mov al, 1
pop ebx
add esp, 0x258
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test edi, edi
je 0x46c0f1
mov dword [edi], eax
xor edx, edx
cmp eax, 0xffffffff
setne al
pop ebx
add esp, 0x258
ret
xor al, al
pop ebx
add esp, 0x258
ret

Function at 0x46c350
Capabilities:
Get file size

Disassembly:
sub esp, 0xc
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp], eax
cmp eax, 0xffffffff
jne 0x46c387
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x46c384
or eax, 0xffffffff
or edx, 0xffffffff
add esp, 0xc
ret
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 0xc
ret

Function at 0x46c710
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10000
call fcn.00493680
push esi
push 0x7fff
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
je 0x46c74f
lea edx, [esi + esi + 2]
push edx
lea eax, [esp + 8]
push eax
push edi
call fcn.00489760
add esp, 0xc
mov eax, esi
pop esi
add esp, 0x10000
ret
xor ecx, ecx
mov word [edi], cx
pop esi
add esp, 0x10000
ret