joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41cf20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x2c
mov cx, word [0x4c48fc]
push ebx
push ebp
mov ebp, dword [esp + 0x40]
mov eax, 0x20
push esi
mov word [esp + 0xc], ax
push edi
lea ebx, [esp + 0x10]
mov eax, ebp
mov word [esp + 0x12], cx
mov dword [esp + 0x14], 0x90028
mov dword [esp + 0x18], 0x3e003c
mov dword [esp + 0x1c], 0x3d003a
mov dword [esp + 0x20], 0x2d002b
mov dword [esp + 0x24], 0x2f002a
mov dword [esp + 0x28], 0x7e0021
mov dword [esp + 0x2c], 0x7c0026
mov dword [esp + 0x30], 0x5b005e
mov dword [esp + 0x34], 0x3f002e
mov dword [esp + 0x38], 0x7b
call fcn.004095f0
test eax, eax
je 0x41cfa9
cmp eax, ebp
jbe 0x41cfc3
sub eax, 2
jmp 0x41cfc3
mov eax, ebp
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41cfb0
sub eax, edx
sar eax, 1
lea eax, [ebp + eax*2 - 2]
mov edi, eax
cmp eax, ebp
jbe 0x41cfe4
lea esp, [esp]
movzx eax, word [edi]
cmp eax, 0x20
je 0x41cfdd
cmp eax, 9
jne 0x41cfe4
sub edi, 2
cmp edi, ebp
ja 0x41cfd0
mov esi, edi
sub esi, ebp
sar esi, 1
inc esi
cmp esi, 0xfd
jbe 0x41d015
cmp byte [esp + 0x4c], 0
je 0x41d009
mov ecx, dword [esp + 0x40]
push ebp
push str.This_line_does_not_contain_a_recognized_action.
call fcn.0042ecc0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x10
mov ebx, dword [esp + 0x44]
push esi
push ebp
push ebx
call fcn.00491184
add esp, 0xc
xor ecx, ecx
mov eax, edi
pop edi
mov word [ebx + esi*2], cx
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x10
Function at 0x42bb80
Capabilities:
Check for time delay via gettickcount
Set current directory

Disassembly:
mov eax, dword [0x4c8678]
sub esp, 0x124
push ebx
push ebp
push esi
push edi
cmp eax, dword [0x4c48ec]
jl 0x42bba9
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret 8
mov esi, dword [0x4c8d08]
cmp byte [esi + 0x17], 0
jne 0x42bbb8
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x42bbc5
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x42bbde
test byte [esi + 0x15], 4
je 0x42bbd9
mov eax, esi
call fcn.0042f270
mov eax, dword [esi + 8]
jmp 0x42bbee
cmp al, 2
jne 0x42bbe9
call fcn.00401000
jmp 0x42bbee
mov eax, 0x4ca614
push 0x7f
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00491184
mov eax, dword [0x4c490c]
inc dword [0x4c8678]
add eax, 0x110
xor edx, edx
mov edi, eax
mov word [esp + 0x13a], dx
mov ecx, 0x44
mov esi, 0x4c7138
rep movsd dword es:[edi], dword [esi]
add esp, 0xc
mov esi, eax
xor edi, edi
mov dword [0x4c490c], eax
push edi
mov eax, 0x4ca680
mov dword [esi + 0x2c], edi
call fcn.00416640
mov dword [0x4cb150], edi
mov dword [0x4cb154], edi
cmp dword [0x4c86a4], edi
je 0x42bc5c
push 0x4c8d10
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
or eax, 0xffffffff
cmp byte [esi + 0xee], 0
jne 0x42bc77
mov byte [esi + 0xee], 1
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0x24], eax
cmp dword [0x4cb15c], edi
je 0x42bc87
cmp dword [0x4cb158], edi
jne 0x42bc90
cmp byte [esi + 0xee], 0
je 0x42bcbf
cmp byte [esi + 0xee], 0
mov byte [esi + 0xec], 0
jne 0x42bcbf
cmp dword [0x4cb15c], edi
jl 0x42bcb9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xdc], eax
mov eax, dword [0x4cb15c]
mov dword [esi + 0xe0], eax
mov eax, dword [0x4cb0d0]
mov ecx, dword [0x4cb128]
mov edx, dword [0x4cb12c]
mov ebp, dword [0x4cb0d4]
mov esi, dword [esp + 0x13c]
mov edi, eax
mov ebx, ecx
mov dword [esp + 0x1c], edx
mov dword [0x4cb0d4], eax
mov dword [0x4cb12c], ecx
mov dword [0x4cb0d0], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4cb164], eax
mov dword [0x4cb160], eax
mov dword [0x4cb128], eax
mov eax, dword [esp + 0x138]
cmp byte [eax], 5
jne 0x42bd23
mov esi, dword [eax + 0xc]
call fcn.0042bb10
mov esi, eax
jmp 0x42bd60
mov ecx, dword [eax + 0xc]
lea eax, [esp + 0x14]
push eax
lea edx, [esp + 0x24]
push edx
xor eax, eax
push 0x4a18b8
push ecx
lea edx, [eax + 1]
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], esi
call fcn.0046d390
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42bd60
mov esi, dword [esp + 0x14]
neg esi
sbb esi, esi
add esi, 4
mov eax, dword [0x4c490c]
mov ecx, dword [eax + 0xc4]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push eax
mov dword [0x4c868c], ecx
mov dword [0x4cb0d0], edi
mov dword [0x4cb128], ebx
mov dword [0x4cb0d4], ebp
mov dword [0x4cb12c], edx
call fcn.00403690
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret 8
Function at 0x42f140
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x4000
call fcn.00499c80
cmp dword [esp + 0x4008], 0
push ebx
push ebp
mov ebp, dword [esp + 0x4018]
mov ebx, ecx
je 0x42f263
test ebx, ebx
jne 0x42f178
mov eax, dword [esp + 0x400c]
mov ebx, dword [eax + 0x630]
test ebx, ebx
je 0x42f182
movzx ecx, word [ebx + 2]
movzx eax, word [ebx + 4]
jmp 0x42f18f
mov ecx, dword [eax + 0x26c]
movzx eax, word [eax + 0x270]
mov edx, dword [esp + 0x4014]
mov ecx, dword [ecx*4 + 0x4c84a0]
push esi
push edi
push edx
movzx eax, ax
push eax
push ecx
push str._s___d__:___Warning:__s_n
mov esi, 0x2000
lea edi, [esp + 0x20]
call fcn.00474ef0
add esp, 0x10
cmp word [ebp], 0
lea edi, [esp + eax*2 + 0x10]
je 0x42f1e0
lea eax, [esp + 0x10]
mov edx, edi
sub edx, eax
sar edx, 1
push ebp
push str._____Specifically:__s_n
sub esi, edx
call fcn.00474ef0
add esp, 8
mov esi, dword [esp + 0x4018]
cmp esi, 3
jne 0x42f20f
call fcn.0048ea3d
add eax, 0x20
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.004904be
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4000
ret 0x10
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 2
jne 0x42f261
test ebx, ebx
jne 0x42f234
mov ecx, dword [esp + 0x4014]
mov ebx, dword [ecx + 0x630]
test ebx, ebx
je 0x42f253
mov eax, dword [esp + 0x401c]
push ebp
push 1
push eax
mov ecx, ebx
call fcn.0042ea00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4000
ret 0x10
mov edx, dword [esp + 0x401c]
push ebp
push edx
call fcn.0042ecc0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4000
ret 0x10
Function at 0x42f670
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x3d8
push ebx
push ebp
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x42f697
push 0x64
lea ecx, [esp + 0x124]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x42f6a1
xor edx, edx
mov word [esp + 0x120], dx
mov esi, dword [0x4cb10c]
xor eax, eax
mov word [esp + 0x20], ax
test esi, esi
je 0x42f758
cmp byte [esi + 0x11], 0
je 0x42f6f9
mov ecx, dword [esi]
push ecx
call fcn.004702e0
add esp, 4
sub eax, 0
je 0x42f6dd
dec eax
je 0x42f6d6
mov eax, str.Object
jmp 0x42f6e2
mov edx, dword [esi]
mov eax, dword [edx + 4]
jmp 0x42f6e2
mov eax, dword [esi]
mov eax, dword [eax + 4]
push eax
push 0x4a9770
mov eax, 0x7d
lea ecx, [esp + 0x28]
call fcn.00474f30
add esp, 8
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x42f6b6
cmp word [esp + 0x20], si
je 0x42f758
lea eax, [esp + 0x20]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42f710
sub eax, edx
sar eax, 1
cmp eax, 0x7b
jbe 0x42f746
mov esi, 0x7f
sub esi, eax
push esi
lea edi, [esp + eax*2 + 0x24]
push 0x4a5bec
push edi
call fcn.00491184
add esp, 0xc
xor ecx, ecx
mov word [edi + esi*2], cx
jmp 0x42f758
cmp word [esp + eax*2 + 0x1e], 0x20
lea eax, [esp + eax*2 + 0x20]
jne 0x42f758
xor edx, edx
mov word [eax - 2], dx
mov eax, dword [0x4c7020]
cmp byte [eax + 0xf8], 0
je 0x42f777
cmp byte [0x4cb14d], 0
mov dword [esp + 0x14], 1
je 0x42f77f
mov dword [esp + 0x14], 0
mov eax, dword [0x4c8678]
mov dword [esp + 0x18], str.__preempted:_they_will_resume_when_the_current_thread_finishes_
cmp eax, 1
jg 0x42f89d
mov dword [esp + 0x18], 0x4ac474
xor ebp, ebp
cmp dword [0x4c863c], 0
mov edi, 0x4a3a60
je 0x42f7b2
mov edi, 0x4a3a58
cmp dword [0x4c8638], 0
mov esi, 0x4a3a60
je 0x42f7c5
mov esi, 0x4a3a58
push 1
call fcn.00411f50
mov bl, al
add esp, 4
lea eax, [esp + 0x1e8]
call fcn.00412310
mov ecx, dword [0x4c8674]
mov edx, dword [0x4c8678]
push eax
mov eax, dword [0x4c867c]
sub eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [0x4cb114]
push ecx
mov ecx, dword [0x4cb118]
push ebp
lea edx, [esp + 0x38]
push edx
push eax
push ecx
push edi
mov edi, dword [esp + 0x414]
push esi
lea edx, [esp + 0x14c]
push edx
push str.Window:__s_r_nKeybd_hook:__s_r_nMouse_hook:__s_r_nEnabled_Timers:__u_of__u___s__r_nInterrupted_threads:__d_s_r_nPaused_threads:__d_of__d___d_layers__r_nModifiers__GetKeyState___now____s_r_n
mov esi, 0xfffe
call fcn.00474ef0
lea esi, [edi + eax*2]
mov eax, esi
mov ebx, edi
sub eax, ebx
sar eax, 1
mov ecx, 0xfffe
add esp, 0x34
sub ecx, eax
push ecx
push esi
call fcn.004092e0
mov eax, esi
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42f852
sub eax, edx
sar eax, 1
cmp dword [0x4c8f1c], 0
lea edi, [esi + eax*2]
mov eax, str._r_nPress__F5__to_refresh.
jne 0x42f877
mov eax, str._r_nKey_History_has_been_disabled_via_KeyHistory_0.
mov edx, edi
sub edx, ebx
sar edx, 1
mov esi, 0xfffe
push eax
sub esi, edx
call fcn.00474ef0
add esp, 4
lea eax, [edi + eax*2]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3d8
ret 4
lea ebp, [eax - 1]
jmp 0x42f79f
Function at 0x435fc0
Capabilities:
Log keystrokes

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
push edi
push eax
mov eax, dword [esp + 0x28]
call fcn.00443610
mov edi, eax
test edi, edi
je 0x435fee
mov esi, dword [esp + 0x1c]
push edi
call fcn.00479730
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x436039
mov ecx, dword [0x4c490c]
cmp byte [ecx + 0x108], 0
jne 0x43601c
mov edx, dword [0x4c8d08]
push 1
push 0
push 0xffffffffffffffff
push 0x4a44b0
push edx
call fcn.00477d90
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov ecx, dword [esp + 0x18]
push 0x4ac474
push 0
push 0x4a44b0
call fcn.0042e740
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
push 0
push edi
xor bl, bl
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebp, eax
test ebp, ebp
je 0x436071
cmp ebp, dword [0x4ca628]
je 0x436071
mov esi, edi
call fcn.00479c50
test al, al
jne 0x436071
mov eax, dword [0x4ca628]
push 1
push ebp
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne bl
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
test eax, eax
je 0x4360af
mov edx, dword [0x4c8d08]
push 1
push 0
push 0xffffffffffffffff
push 0x4a1958
push edx
call fcn.00477d90
mov eax, dword [0x4c490c]
mov eax, dword [eax + 0x58]
cmp eax, 0xffffffff
jle 0x4360af
push 1
push eax
call fcn.00401360
add esp, 8
test bl, bl
je 0x4360c3
mov ecx, dword [0x4ca628]
push 0
push ebp
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 0x10
Function at 0x436f20
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
call fcn.00430b30
mov ebx, eax
test ebx, ebx
jne 0x436f53
mov ecx, dword [ebp + 8]
push esi
push eax
push str.Parameter_1_invalid.
call fcn.0042ea00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebx - 1]
cmp eax, 4
ja case.default.0x436f5f
jmp dword [eax*4 + 0x437158]
mov eax, dword [ebp + 0xc]
cmp word [eax], 0
je 0x436f7a
push eax
call fcn.00454f10
add esp, 4
jmp 0x436f80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x18
push 0
push eax
mov eax, dword [0x4c8d08]
call fcn.004010e0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
push eax
call fcn.00454f10
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x436ff8
push ebx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x436ff8
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
neg esi
sbb esi, esi
and esi, ebx
mov eax, dword [0x4c8d08]
push 0x18
push 0
push esi
call fcn.004010e0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x4c8d08]
push 1
push 0
push 0xffffffffffffffff
push 0x4a1958
push ecx
call fcn.00477d90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movzx edx, word [edi]
push edx
call fcn.00490632
movzx eax, ax
add eax, 0xffffffbf
add esp, 4
cmp eax, 0x11
ja case.0x437036.67
movzx eax, byte [eax + 0x437188]
jmp dword [eax*4 + 0x43716c]
mov esi, 0x40
jmp 0x437065
mov esi, 0x4000
jmp 0x437065
mov esi, 0x20
jmp 0x437065
mov esi, 0x8000
jmp 0x437065
mov esi, 0x80
jmp 0x437065
mov esi, 0x100
mov eax, dword [ebp + 0xc]
cmp word [eax], 0
je 0x437079
push eax
call fcn.00454f10
add esp, 4
jmp 0x43707f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
test ebx, ebx
je 0x436ff8
push ebx
push 0
push 0x200
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x436ff8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
jmp 0x436fcc
mov edx, dword [0x4c8d08]
push 1
push 0
push 0xffffffffffffffff
push 0x4a1958
push edx
call fcn.00477d90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp word [edi], 0
je 0x4370f9
mov esi, edi
mov byte [esp + 0x13], 0
call fcn.00413a00
fmul qword [0x4beab0]
call fcn.0049cdb0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
jmp 0x437100
mov byte [esp + 0x13], 1
xor edi, edi
mov eax, dword [ebp + 0xc]
push eax
call fcn.00454f10
add esp, 4
mov esi, eax
cmp ebx, 4
jne 0x43711d
test esi, esi
jne 0x436fdb
jmp 0x437121
test esi, esi
je case.0x437036.67
cmp byte [esp + 0x13], 0
jne 0x43713f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x14]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x436fdb
push 1
push 0x64
call fcn.00401360
add esp, 8
jmp 0x437100
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4379c0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [0x4c8450]
push eax
mov eax, dword [esp + 0x18]
call fcn.00443610
mov ebp, eax
test ebp, ebp
je 0x4379e6
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebx, [eax + 1]
jmp 0x4379eb
mov ebx, 1
push 1
push 0
lea ecx, [ebx - 1]
push ecx
push 0
push edi
call fcn.00477d90
cmp eax, 1
je 0x437a09
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
test ebp, ebp
je 0x437b1e
cmp byte [edi + 0x17], 0
jne 0x437a1c
mov esi, dword [edi + 0xc]
jmp 0x437a1e
mov esi, edi
test byte [esi + 0x15], 8
je 0x437a2b
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x437a44
test byte [esi + 0x15], 4
je 0x437a3f
mov eax, esi
call fcn.0042f270
mov eax, dword [esi + 8]
jmp 0x437a54
cmp al, 2
jne 0x437a4f
call fcn.00401000
jmp 0x437a54
mov eax, 0x4ca614
push ebx
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp byte [edi + 0x17], 0
mov ebx, eax
jne 0x437a6a
mov esi, dword [edi + 0xc]
jmp 0x437a6c
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x437a84
test byte [esi + 0x15], 8
je 0x437a7f
mov eax, esi
call fcn.00401160
lea eax, [esi + 0xc]
jmp 0x437a89
mov eax, 0x4cb370
lea edx, [ebx + ebx]
mov dword [eax], edx
cmp byte [edi + 0x17], 0
jne 0x437a99
mov esi, dword [edi + 0xc]
jmp 0x437a9b
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x437ab3
test byte [esi + 0x15], 8
je 0x437aae
mov eax, esi
call fcn.00401160
lea eax, [esi + 0xc]
jmp 0x437ab8
mov eax, 0x4cb370
test dword [eax], 0xfffffffe
jne 0x437b95
cmp byte [edi + 0x17], 0
jne 0x437acf
mov esi, dword [edi + 0xc]
jmp 0x437ad1
mov esi, edi
test byte [esi + 0x15], 8
je 0x437ade
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x437aff
test byte [esi + 0x15], 4
je 0x437af2
mov eax, esi
call fcn.0042f270
mov eax, dword [esi + 8]
xor ecx, ecx
mov word [eax], cx
jmp 0x437b95
cmp al, 2
jne 0x437b12
call fcn.00401000
xor ecx, ecx
mov word [eax], cx
jmp 0x437b95
mov eax, 0x4ca614
xor ecx, ecx
mov word [eax], cx
jmp 0x437b95
cmp byte [edi + 0x17], 0
jne 0x437b29
mov esi, dword [edi + 0xc]
jmp 0x437b2b
mov esi, edi
test byte [esi + 0x15], 8
je 0x437b38
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x437b51
test byte [esi + 0x15], 4
je 0x437b4c
mov eax, esi
call fcn.0042f270
mov eax, dword [esi + 8]
jmp 0x437b61
cmp al, 2
jne 0x437b5c
call fcn.00401000
jmp 0x437b61
mov eax, 0x4ca614
xor edx, edx
mov word [eax], dx
cmp byte [edi + 0x17], dl
jne 0x437b70
mov esi, dword [edi + 0xc]
jmp 0x437b72
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x437b8a
test byte [esi + 0x15], 8
je 0x437b85
mov eax, esi
call fcn.00401160
lea eax, [esi + 0xc]
jmp 0x437b8f
mov eax, 0x4cb370
mov dword [eax], 0
cmp byte [edi + 0x17], 0
jne 0x437b9e
mov edi, dword [edi + 0xc]
cmp byte [edi + 0x17], 2
jne 0x437bbe
cmp dword [0x4cb1b4], 0
je 0x437bbe
mov ecx, 0x4cb1a8
call fcn.00404330
pop edi
pop esi
pop ebp
pop ebx
ret 4
and byte [edi + 0x15], 0x86
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4
Function at 0x438a10
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10000
call fcn.00499c80
push ebp
mov ebp, dword [0x4c8450]
push esi
push edi
push 0x7fff
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp edi, 0x7fff
jb 0x438b3a
push 1
push 1
lea ecx, [edi - 1]
push ecx
push 0
push ebp
call fcn.00477d90
test eax, eax
jne 0x438a60
pop edi
pop esi
pop ebp
add esp, 0x10000
ret
cmp byte [ebp + 0x17], 0
jne 0x438a6b
mov esi, dword [ebp + 0xc]
jmp 0x438a6d
mov esi, ebp
test byte [esi + 0x15], 8
je 0x438a7a
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x438a93
test byte [esi + 0x15], 4
je 0x438a8e
mov eax, esi
call fcn.0042f270
mov eax, dword [esi + 8]
jmp 0x438aa3
cmp al, 2
jne 0x438a9e
call fcn.00401000
jmp 0x438aa3
mov eax, 0x4ca614
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x438af7
cmp byte [ebp + 0x17], al
jne 0x438aba
mov esi, dword [ebp + 0xc]
jmp 0x438abc
mov esi, ebp
test byte [esi + 0x15], 8
je 0x438ac9
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x438ae2
test byte [esi + 0x15], 4
je 0x438add
mov eax, esi
call fcn.0042f270
mov eax, dword [esi + 8]
jmp 0x438af2
cmp al, 2
jne 0x438aed
call fcn.00401000
jmp 0x438af2
mov eax, 0x4ca614
xor edx, edx
mov word [eax], dx
cmp byte [ebp + 0x17], 0
jne 0x438b02
mov eax, dword [ebp + 0xc]
jmp 0x438b04
mov eax, ebp
cmp byte [eax + 0x17], 2
jne 0x438b27
cmp dword [0x4cb1b4], 0
je 0x438b27
mov ecx, 0x4cb1a8
call fcn.00404330
pop edi
pop esi
pop ebp
add esp, 0x10000
ret
and byte [eax + 0x15], 0x86
mov eax, 1
pop edi
pop esi
pop ebp
add esp, 0x10000
ret
lea eax, [esp + 0xc]
test edi, edi
jne 0x438b47
mov eax, 0x4ac474
push 1
push 0
push edi
push eax
push ebp
call fcn.00477d90
pop edi
pop esi
pop ebp
add esp, 0x10000
ret
Function at 0x43ae30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
mov edi, eax
mov eax, dword [0x4cb144]
push ebx
push eax
push str.__s_s
mov esi, 0x800
call fcn.00474ef0
mov esi, eax
lea ecx, [esi + 1]
add esp, 0xc
cmp ecx, 0x800
jg 0x43ae87
lea edx, [edi + 2]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43ae87
mov edx, dword [esp + 0x14]
mov dword [edi + esi*2], 0x22
mov ecx, dword [0x4cb144]
pop edi
pop esi
mov dword [edx], ecx
mov al, 1
pop ebp
ret
push ebp
call fcn.0043b480
add esp, 4
test eax, eax
je 0x43aed7
push ebx
push ebp
push str.__s_s
mov esi, 0x800
call fcn.00474ef0
mov esi, eax
lea edx, [esi + 1]
add esp, 0xc
cmp edx, 0x800
jg 0x43aed7
lea eax, [edi + 2]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43aed7
mov eax, dword [esp + 0x14]
mov dword [edi + esi*2], 0x22
pop edi
mov dword [eax], ebp
pop esi
mov al, 1
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebp
ret

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

Disassembly:
mov eax, 0x2214
call fcn.00499c80
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
lea ebp, [esp + 0x1224]
push ecx
mov eax, ebp
mov dword [esp + 0x18], 0x4ac474
call fcn.0043ae30
add esp, 8
test al, al
jne 0x43af1e
pop edi
pop esi
pop ebp
add esp, 0x2214
ret
cmp byte [esp + 0x2224], 0
je 0x43af8e
mov edx, dword [esp + 0x14]
push 0x4aaf90
push edx
push str.__s_s
mov esi, 0x800
lea edi, [esp + 0x22c]
call fcn.00474ef0
mov esi, eax
lea eax, [esi + 1]
add esp, 0xc
cmp eax, 0x800
jg 0x43af8e
lea ecx, [esp + 0x222]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43af8e
mov edx, 0x22
xor eax, eax
lea ecx, [esp + 0x1220]
mov word [esp + esi*2 + 0x220], dx
mov word [esp + esi*2 + 0x222], ax
mov ebp, edi
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0x4ca680
mov edx, ebp
call fcn.0042f8b0
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebp
add esp, 0x2214
ret
Function at 0x43b480
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
push edi
xor edi, edi
lea eax, [esp + 0x14]
push eax
mov ecx, edi
or ecx, 1
push ecx
push 0
push str.SOFTWAREAutoHotkey
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
je 0x43b4c0
xor edx, edx
mov word [esp + 0x18], dx
xor eax, eax
jmp 0x43b525
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push str.InstallDir
push edx
mov dword [esp + 0x28], 0x208
call ebp
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x43b553
mov eax, dword [esp + 0x10]
test eax, eax
je 0x43b553
shr eax, 1
dec eax
mov dword [esp + 0x10], eax
cmp word [esp + eax*2 + 0x18], si
jne 0x43b533
test eax, eax
je 0x43b525
lea ecx, [esp + eax*2 + 0x16]
cmp word [ecx], 0
jne 0x43b51d
sub ecx, 2
dec eax
jne 0x43b511
mov dword [esp + 0x10], eax
test eax, eax
jne 0x43b55c
test edi, edi
jne 0x43b55c
mov edi, 0x100
jmp 0x43b498
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x104
jb 0x43b54a
xor ecx, ecx
mov word [esp + 0x18], cx
xor eax, eax
jmp 0x43b525
xor edx, edx
mov word [esp + eax*2 + 0x18], dx
jmp 0x43b521
xor eax, eax
mov word [esp + 0x18], ax
jmp 0x43b525
mov esi, dword [esp + 0x224]
test esi, esi
je 0x43b57f
lea ecx, [esp + 0x18]
mov edx, ecx
sub esi, edx
nop
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
test dx, dx
jne 0x43b570
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
Function at 0x43eee0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x218
push ebx
push ebp
mov ebp, dword [0x4c8450]
push esi
push edi
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
xor ecx, ecx
mov eax, esi
call fcn.004129d0
mov bl, al
add esp, 8
test bl, bl
jne 0x43ef7f
push 0
lea ebx, [esp + 0x18]
mov eax, esi
call fcn.0044ffa0
mov edi, eax
add esp, 4
test edi, edi
jne 0x43ef42
push 1
push eax
push 0xffffffffffffffff
push 0x4ac474
push ebp
call fcn.00477d90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 4
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x28]
mov dword [esp + 0x18], eax
push 0
push ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x28], 0
call fcn.00450250
fstp st(0)
add esp, 8
lea eax, [esp + 0x18]
mov ebx, ebp
call fcn.004776b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 4
mov edx, dword [esp + 0x22c]
movzx esi, word [edx]
test esi, 0xffffff80
jne 0x43efa3
push 2
push esi
call fcn.0048f6de
add esp, 8
test eax, eax
je 0x43efa3
and esi, 0xffffffdf
movzx eax, si
cmp eax, 0x50
je 0x43efbb
xor ecx, ecx
cmp eax, 0x54
setne cl
lea eax, [ecx - 1]
and eax, 2
jmp 0x43efc0
mov eax, 1
push eax
call fcn.004501a0
add esp, 4
test al, al
mov eax, 0x4ab460
jne 0x43efd7
mov eax, 0x4ab464
push 1
push 0
push 0xffffffffffffffff
push eax
push ebp
call fcn.00477d90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 4