joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414960
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48c
mov eax, dword [ebp + 8]
push ebx
mov dword [ecx + 0x488], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x14], ecx
cmp eax, ebx
je 0x41498e
mov byte [esp + 0x13], 1
cmp byte [eax], bl
je 0x414992
mov byte [esp + 0x13], bl
cmp eax, ebx
je 0x4149fb
cmp byte [eax], bl
je 0x4149fb
push eax
push str.Critical_Error:__s_n_nThe_program_will_exit.
mov esi, 0x400
lea edi, [esp + 0xa0]
call fcn.00463ff0
mov ecx, dword [0x4a30cc]
mov eax, dword [0x4a0a38]
add esp, 8
push 0x10000
push ecx
mov edx, edi
push edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [0x4a0a38]
push ecx
call dword [sym.imp.USER32.dll_IsWindmw]
test eax, eax
je 0x4149f4
mov edx, dword [0x4a0a38]
push edx
mov byte [0x4a0a34], 1
call dword [sym.imp.USER32.dll_DestroyWindow]
push 2
call fcn.00409470
cmp dword [ecx + 0x484], ebx
je 0x414b41
cmp byte [0x4a332a], bl
jne 0x414b41
mov esi, dword [0x4a13a4]
cmp byte [esi + 0x17], bl
jne 0x414a21
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x414a2e
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x414a3a
mov eax, dword [esi + 8]
jmp 0x414a4a
cmp al, 2
jne 0x414a45
call fcn.00401000
jmp 0x414a4a
mov eax, 0x4a2ba4
push 0x7f
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0047a8e0
mov eax, dword [0x49d3c8]
inc dword [0x4a0b94]
add eax, 0xd8
mov edi, eax
mov byte [esp + 0xa3], bl
mov ecx, 0x36
mov esi, 0x49f708
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
mov dword [0x49d3c8], eax
mov dword [eax + 0x2c], ebx
push ebx
mov eax, 0x4a2c18
call fcn.00414620
mov dword [0x4a30f0], ebx
mov dword [0x4a30f4], ebx
cmp dword [0x4a0bbc], ebx
je 0x414ab1
push 0x4a13a8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x484]
mov ecx, dword [0x49d3c8]
mov esi, dword [ecx + 0x9c]
mov edi, dword [0x49d328]
push ebx
push ebx
mov dword [ecx + 0x9c], eax
mov ecx, dword [eax + 4]
push 1
mov dword [0x49d328], ebx
mov byte [0x4a332a], 1
call fcn.004217a0
mov edx, dword [0x49d3c8]
mov dword [edx + 0x9c], esi
cmp eax, ebx
jne 0x414b0a
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.00414b60
mov byte [0x4a332a], bl
cmp byte [esp + 0x13], bl
je 0x414b24
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.00414b60
lea eax, [esp + 0x18]
call fcn.004030b0
mov dword [0x49d328], edi
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
mov edx, dword [0x49d3c8]
push eax
push ecx
mov dword [0x49d328], ebx
mov byte [edx + 0xce], bl
call fcn.00414b60
int3
Function at 0x4391d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0xc], ecx
test esi, esi
je 0x43930a
cmp byte [esi], 0
je 0x43930a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43923e
mov ecx, dword [0x49d3c8]
shr eax, 4
not eax
test al, 1
mov dword [ecx + 0x30], 0xb7
mov eax, 0x4916f4
jne 0x439223
mov eax, 0x4900b0
mov ecx, dword [0x4a13a4]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004668b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x5c
push esi
call fcn.00478bf7
mov ebx, eax
add esp, 8
cmp ebx, esi
jbe 0x4392c2
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x439254
sub eax, edx
cmp eax, 0x104
jb 0x439276
mov edx, dword [0x49d3c8]
mov dword [edx + 0x30], 0x6f
jmp 0x439316
mov edi, ebx
sub edi, esi
push edi
lea eax, [esp + 0x14]
push esi
push eax
call fcn.0047a8e0
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
mov byte [esp + edi + 0x14], 0
call fcn.004391d0
cmp byte [ebx + 1], 0
je 0x4392b4
mov ecx, dword [0x4a13a4]
push 1
call fcn.00401230
cmp byte [eax], 0x31
jne 0x4392c2
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
neg eax
sbb esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
inc esi
mov edx, dword [0x49d3c8]
mov dword [edx + 0x30], eax
mov eax, 0x4916f4
jne 0x439223
mov ecx, dword [0x4a13a4]
push 1
push 0
mov eax, 0x4900b0
push 0xffffffffffffffff
push eax
call fcn.004668b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x49d3c8]
mov dword [eax + 0x30], 0x57
mov ecx, dword [0x4a13a4]
push 1
push 0
push 0xffffffffffffffff
push 0x4916f4
call fcn.004668b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4494d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x44959b
cmp byte [eax], bl
je 0x44959b
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 0x28]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x449510
sub eax, edx
cmp eax, ebx
je 0x44952a
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x44952a
mov byte [eax], bl
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x449531
sub eax, edx
mov byte [esp + eax + 0x29], bl
lea edx, [esp + 4]
lea eax, [esp + 0x28]
mov ecx, 0x54
push edx
mov dword [esp + 0x1e], ebx
mov dword [esp + 0x22], ebx
mov dword [esp + 0x1a], ebx
mov dword [esp + 8], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 3
mov word [esp + 0x18], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
mov eax, 0x4916f4
jne 0x449585
mov eax, 0x4900b0
mov ecx, dword [0x4a13a4]
push 1
push ebx
push 0xffffffffffffffff
push eax
call fcn.004668b0
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4a13a4]
push 1
push ebx
push 0xffffffffffffffff
push 0x4916f4
call fcn.004668b0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x449650
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4a13a4]
sub esp, 0x8c
push ebx
push esi
push edi
push 1
push 0
push 0xffffffffffffffff
push 0x4916f4
mov edi, eax
call fcn.004668b0
mov ecx, dword [0x4a09d8]
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.004668b0
test edi, edi
je 0x449799
cmp byte [edi], 0
je 0x449799
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test esi, esi
jne 0x4496c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x49d3c8]
mov dword [ecx + 0x30], eax
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.00476de3
add esp, 4
mov ebx, eax
fcom dword [ebx + 0x56]
mov edx, dword [0x49d3c8]
pop edi
pop esi
mov dword [edx + 0x30], 0x57
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44a1d0
Capabilities:
Check if file exists
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_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x44a253
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
je 0x44a23e
dec eax
jne 0x44a260
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44a1f7
sub eax, edx
cmp eax, 0x104
ja 0x44a260
inc eax
call fcn.004854f0
mov esi, esp
mov edx, esi
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x44a215
push 0x5c
push esi
call fcn.00478bf7
add esp, 8
test eax, eax
je 0x44a260
push esi
mov byte [eax], 0
call fcn.0044a1d0
add esp, 4
test al, al
je 0x44a260
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
setne al
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret
test al, 0x10
je 0x44a260
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 0x44a270
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x144
push 0x2a
push esi
call fcn.00477c01
add esp, 8
test eax, eax
jne 0x44a2a8
push 0x3f
push esi
call fcn.00477c01
add esp, 8
test eax, eax
jne 0x44a2a8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
add esp, 0x144
ret
lea eax, [esp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x44a2c1
xor al, al
add esp, 0x144
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
add esp, 0x144
ret

Function at 0x44a470
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_SendMessageTi_aoutA]
test eax, eax
jne 0x44a4c1
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x44a4c1
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x44a4c1
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 0x44f8c0
Capabilities:
Query environment variable

Disassembly:
sub esp, 8
push ebx
push ebp
shl eax, 4
add eax, dword [edx + 8]
push esi
push edi
mov edi, dword [esp + 0x1c]
test ecx, ecx
je 0x44f8e9
push edi
call fcn.00466bf0
lea eax, [eax + edi + 1]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov ebx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x10], ebx
test eax, eax
je 0x44fa86
mov esi, eax
mov dword [esp + 0x14], eax
mov eax, dword [esi]
test eax, eax
je 0x44fa86
jmp 0x44f910
cmp ebx, eax
jae 0x44f922
mov cl, byte [ebx]
mov byte [edi], cl
inc ebx
inc edi
cmp ebx, eax
jb 0x44f914
mov dword [esp + 0x10], ebx
mov esi, dword [esi + 4]
movzx eax, byte [esi + 0x17]
mov ebp, edi
cmp eax, 3
ja case.default.0x44f934
jmp dword [eax*4 + 0x44faac]
mov eax, esi
call fcn.00401150
cmp dword [0x4a0b8c], 0
jne 0x44f9b8
cmp dword [esi + 0xc], 0
jne 0x44f9b8
cmp dword [0x4a3b6c], esi
jne 0x44f95d
test edi, edi
jne 0x44f997
mov eax, dword [esi + 0x18]
push 0
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x44f993
mov dword [0x4a3b6c], 0
test edi, edi
je 0x44f98d
mov ecx, dword [esi + 0x18]
call fcn.00465330
jmp 0x44fa65
dec eax
jmp 0x44fa65
test edi, edi
je 0x44f9ab
mov byte [edi], 0
mov dword [0x4a3b6c], 0
xor eax, eax
jmp 0x44fa65
mov dword [0x4a3b6c], esi
xor eax, eax
jmp 0x44fa65
mov ebx, dword [esi + 0xc]
test edi, edi
jne 0x44f9ca
mov eax, ebx
mov ebx, dword [esp + 0x10]
jmp 0x44fa65
test ebx, ebx
jne 0x44f9db
mov byte [edi], bl
mov ebx, dword [esp + 0x10]
xor eax, eax
jmp 0x44fa65
mov ecx, dword [esi + 8]
cmp edi, ecx
jne 0x44f9ea
mov eax, ebx
mov ebx, dword [esp + 0x10]
pop esp
and al, 0x10
jmp 0x44fa65
cmp ebx, 0x186a0
jae 0x44fa0f
mov al, byte [ecx]
test al, al
je 0x44fa03
inc ecx
mov byte [ebp], al
mov al, byte [ecx]
inc ebp
test al, al
jne 0x44f9f8
mov eax, ebx
mov ebx, dword [esp + 0x10]
mov byte [ebp], 0
jmp 0x44fa63
push ebx
push ecx
push edi
call 0x447b470
mov byte [edx + esi], 0
pop es
ret
mov ecx, dword [esi + 0xc]
push edi
call fcn.00466bf0
jmp 0x44fa65
push edi
mov ecx, 0x4a2bfc
call fcn.004039a1
cmp eax, 0xffffffef
jne 0x44fa43
xor eax, dword [eax + 5]
push dword [esi + ebx - 0x3a]
add eax, 0xc61e74ff
add al, 0x38
add bl, ch
sbb byte [ebp - 0x39fc8b11], al
test edi, ebp
je 0x44fa54
mov byte [edi], 0
xor eax, eax
jmp 0x44f9e5
test edi, ebp
je 0x44fa54
mov byte [edi], 0
xor eax, eax
jmp 0x44f9e5
invalid
les ecx, [eax]
mov esi, dword [esp + 0x14]
add edi, eax
movzx eax, word [esi + 0xa]
add esi, 0xc
add ebx, eax
or eax, dword [esi]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
test eax, eax
jne 0x44f910
mov al, byte [ebx]
test al, al
je 0x44fa9b
sub ebx, edi
mov edi, edi
mov byte [edi], al
mov al, byte [ebx + edi + 1]
inc edi
test al, al
jne 0x44fa90
mov byte [edi], 0
lea eax, [edi + 1]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x455500
Capabilities:
Get graphical window text
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov al, byte [esi + 4]
push edi
mov edi, ecx
cmp al, 0xa
je 0x455528
cmp al, 2
je 0x455528
mov ebx, dword [ebp + 0xc]
lea eax, [esi + 0x10]
mov dword [esp + 0x1c], eax
jmp 0x455532
mov ebx, dword [ebp + 0xc]
lea ecx, [ebx + 0x5c]
mov dword [esp + 0x1c], ecx
cmp byte [edi], 0
mov dword [esp + 0x14], edi
je 0x456f97
nop

Function at 0x458490
Capabilities:
Get graphical window text

Disassembly:
cmp eax, 0x2af8
jae 0x45850f
mov ecx, dword [ecx*4 + 0x4a11b8]
test ecx, ecx
je 0x45850f
cmp eax, dword [ecx + 0xc]
jae 0x45850f
lea edx, [eax + eax*4]
mov eax, dword [ecx + 0x14]
mov ecx, dword [eax + edx*4 + 8]
lea eax, [eax + edx*4]
test esi, esi
je 0x4584e7
test ecx, ecx
je 0x4584da
mov ecx, dword [ecx + 0x18]
mov edx, esi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x4584c1
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4584d0
sub eax, edx
ret
mov ecx, dword [eax]
push 0x40
push esi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
ret
test ecx, ecx
je 0x4584fb
mov eax, dword [ecx + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4584f1
sub eax, edx
ret
mov edx, dword [eax]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
cmp eax, 0x3f
jbe 0x458518
mov eax, 0x3f
ret
test esi, esi
je 0x458516
mov byte [esi], 0
xor eax, eax
ret
Function at 0x45aaf0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, eax
mov al, byte [edi]
xor bl, bl
mov byte [esp + 0xf], bl
test al, al
je 0x45ab29
cmp al, 0x21
je 0x45ab1a
cmp al, 0x2b
je 0x45ab15
cmp al, 0x5e
jne 0x45ab25
or bl, 2
jmp 0x45ab1d
or bl, 1
jmp 0x45ab1d
or bl, 4
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x45ab04
mov byte [esp + 0xf], bl
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov cl, byte [edi]
test cl, cl
je 0x45ac17
cmp byte [edi + 1], 0
jne 0x45ab7d
mov byte [esp + 0x10], cl
cmp cl, 0xa
jne 0x45ab51
mov al, 0xd
jmp 0x45ac0f
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_VkKeyWcalExA]
movzx eax, ax
mov ecx, eax
shr ecx, 8
cmp cl, 0xff
jne 0x45ac0f
cmp al, 0xff
jne 0x45ac0f
xor al, al
jmp 0x45ac0f
movzx esi, cl
test esi, 0xffffff80
jne 0x45ab9a
push 2
push esi
call fcn.0047814e
add esp, 8
test eax, eax
je 0x45ab9a
and esi, 0xffffffdf
mov eax, esi
cmp al, 0x56
jne 0x45abd6
movzx esi, byte [edi + 1]
test esi, 0xffffff80
jne 0x45abbe
push 2
push esi
call fcn.0047814e
add esp, 8
test eax, eax
je 0x45abbe
and esi, 0xffffffdf
mov eax, esi
cmp al, 0x4b
jne 0x45abd6
push 0x10
lea edx, [edi + 2]
push 0
push edx
call fcn.00478594
add esp, 0xc
jmp 0x45ac0f
xor esi, esi
jmp 0x45abe0
mov eax, dword [esi*8 + 0x49e108]
push edi
push eax
call fcn.00476cb6
add esp, 8
test eax, eax
je 0x45ac20
inc esi
cmp esi, 0x6d
jl 0x45abe0
mov eax, edi
call fcn.00410e90
movzx ecx, ax
test cx, cx
je 0x45ac17
call fcn.004115c0
mov byte [esp + 0x10], al
test al, al
jne 0x45ac29
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov al, byte [esi*8 + 0x49e10c]
jmp 0x45ac0f
mov eax, edi
call fcn.00410e90
movzx eax, ax
test ax, ax
jne 0x45ac4e
mov ecx, dword [esp + 0x10]
push ecx
xor bl, bl
call fcn.00411340
mov bl, byte [esp + 0x13]
add esp, 4
movzx eax, ax
test eax, 0x100
je 0x45ac58
or bl, 8
movzx edx, byte [esp + 0x10]
movzx eax, bl
pop edi
shl eax, 8
pop esi
or eax, edx
pop ebx
add esp, 8
ret
Function at 0x45ac70
Capabilities:
Get keyboard layout

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 0x45ac8e
mov byte [ebp], 0x2b
lea esi, [ebp + 1]
test al, 2
je 0x45ac96
mov byte [esi], 0x5e
inc esi
test al, 4
je 0x45ac9e
mov byte [esi], 0x21
inc esi
test al, 8
je 0x45acee
push ebx
xor bl, bl
call fcn.00411340
mov ecx, dword [esp + 0x18]
push ecx
mov bl, 1
movzx edi, ax
call fcn.00411340
movzx eax, ax
add esp, 8
mov ecx, eax
test eax, 0x100
jne 0x45acca
mov ecx, edi
test ecx, 0x100
je 0x45acea
cmp di, ax
je 0x45acea
mov eax, 0x64
mov edx, esi
call fcn.00410e30
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
mov ebx, dword [esp + 0x14]
xor eax, eax
cmp byte [eax*8 + 0x49e10c], bl
je 0x45ad4c
inc eax
cmp eax, 0x6d
jl 0x45acf0
push 0x64
push ebx
xor eax, eax
call fcn.00411260
add esp, 8
cmp byte [esi], 0
je 0x45ad74
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 1
mov ecx, eax
push 0
xor edx, edx
mov eax, esi
call fcn.00410f30
add esp, 8
test al, al
jne 0x45ad74
movzx edi, bl
push 2
push edi
call dword [sym.imp.USER32.dll_MapVirtuahKeyA]
mov byte [esi], al
test al, al
je 0x45ad65
pop edi
mov byte [esi + 1], 0
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
mov edx, dword [eax*8 + 0x49e108]
push 0x63
push edx
push esi
call fcn.0047a8e0
add esp, 0xc
mov byte [esi + 0x63], 0
jmp 0x45ad0c
push edi
push str.vk_02X
push esi
call fcn.00477162
add esp, 0xc
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x4613f0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
mov esi, dword [esp + 0x120]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
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 0x4614a2
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
lea ecx, [esp + 0x2c]
push ecx
push esi
call ebp
test eax, eax
jne 0x4614af
mov edx, dword [esp + 0x14]
push edx
call fcn.004613f0
mov bl, al
mov eax, dword [esp + 0x18]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x4614af
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x4614af
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 0x461436
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x110
ret

Function at 0x4614c0
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 0x4614d6
cmp byte [edi], 0
jne 0x4614df
test esi, esi
je 0x461536
cmp byte [esi], 0
je 0x461536
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_RegOpenKeyExA]
test eax, eax
jne 0x461536
test esi, esi
je 0x461543
cmp byte [esi], al
je 0x461543
push str.ahk_default
push esi
call fcn.00476cb6
add esp, 8
test eax, eax
jne 0x461519
mov esi, 0x49588a
mov edx, dword [esp + 0xc]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x461570
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0xc]
push ecx
call fcn.004613f0
mov edx, dword [esp + 0x10]
add esp, 4
push edx
mov bl, al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x461536
mov eax, dword [ebp + 8]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x461536
mov ecx, dword [0x4a13a4]
push 1
push 0
push 0xffffffffffffffff
push 0x4900b0
call fcn.004668b0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x465b80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebp
push esi
push 2
push 0
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebp, dword [esp + 0x20]
mov esi, eax
test esi, esi
je 0x465c99
mov eax, ebp
test ebp, ebp
jns 0x465bb4
neg eax
jmp 0x465be6
jne 0x465bbb
mov eax, 1
lea ecx, [esp + 0xc]
push ecx
push 0x465b50
push 0xe
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0xffffffff
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
mov eax, dword [esp + 0x14]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceA]
movzx edx, ax
push 0xe
push edx
push esi
call edi
test eax, eax
je 0x465c89
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
push esi
call ebx
test eax, eax
je 0x465c88
mov ebp, dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call ebp
test eax, eax
je 0x465c84
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
cmp edx, 0xffffffff
jne 0x465c29
mov edx, ecx
cmp ecx, 0xffffffff
jne 0x465c32
mov ecx, dword [esp + 0x30]
push 0
push edx
push ecx
push 1
push eax
call dword [sym.imp.USER32.dll_LookupIcnIdFromDirdctoryMx]
test eax, eax
je 0x465c84
movzx eax, ax
push 3
push eax
push esi
call edi
mov edi, eax
test edi, edi
je 0x465c84
push edi
push esi
call ebx
test eax, eax
je 0x465c84
push eax
call ebp
mov ebx, eax
test ebx, ebx
je 0x465c84
push 0
push 0
push 0
push 0x30000
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
call dword [sym.imp.USER32.dll_CreateIcmnFromResourceEx]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x28]
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0xc]
pop edi
test eax, eax
jne 0x465ccd
test ebp, ebp
jle 0x465cb4
mov ecx, dword [esp + 0x1c]
lea eax, [ebp - 1]
push eax
push ecx
push 0
call dword [sym.imp.SHELL32.dll_ExtractIconA]
pop esi
pop ebp
add esp, 0x10
ret
mov ecx, dword [esp + 0x1c]
xor eax, eax
cmp ebp, 0xffffffff
setge al
dec eax
and eax, ebp
push eax
push ecx
push 0
call dword [sym.imp.SHELL32.dll_ExtractIconA]
pop esi
pop ebp
add esp, 0x10
ret
Function at 0x466bf0
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
mov ebx, ecx
movzx eax, byte [ebx + 0x17]
push esi
push edi
cmp eax, 3
ja case.default.0x466c03
jmp dword [eax*4 + 0x466d58]
mov eax, ebx
call fcn.00401150
cmp dword [0x4a0b8c], 0
jne 0x466c93
cmp dword [ebx + 0xc], 0
jne 0x466c93
mov edi, dword [esp + 0x14]
cmp dword [0x4a3b6c], ebx
jne 0x466c30
test edi, edi
jne 0x466c6e
mov ecx, dword [ebx + 0x18]
push 0
lea eax, [esp + 0x13]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x466c6a
mov dword [0x4a3b6c], 0
test edi, edi
je 0x466c62
mov ecx, dword [ebx + 0x18]
call fcn.00465330
pop edi
pop esi
pop ebx
pop ecx
ret 4
dec eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
test edi, edi
je 0x466c84
mov byte [edi], 0
mov dword [0x4a3b6c], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov dword [0x4a3b6c], ebx
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov esi, dword [esp + 0x14]
mov edi, dword [ebx + 0xc]
test esi, esi
je 0x466ce8
test edi, edi
jne 0x466cae
mov byte [esi], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov ecx, dword [ebx + 8]
cmp esi, ecx
je 0x466ce8
invalid

Function at 0x467900
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [esp + 8], 0
je 0x467910
mov eax, esi
call fcn.0044a470
jmp 0x46791d
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMussageA]
mov eax, dword [esp + 4]
test eax, eax
js 0x467978
je 0x467978
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call ebp
push 1
push 0x8000012f
mov edi, eax
call fcn.00401340
mov ebx, dword [sym.imp.USER32.dll_IsWindmw]
add esp, 8
push esi
call ebx
test eax, eax
je 0x467975
add edi, dword [esp + 0x10]
call ebp
mov ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x467975
push 1
push 0x8000012f
call fcn.00401340
add esp, 8
push esi
call ebx
test eax, eax
jne 0x467954
pop edi
pop ebp
pop ebx
mov eax, esi
ret