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

Disassembly:
sub esp, 0x18
mov al, byte [0x4a93b3]
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov byte [esp + 0xc], 0x20
mov byte [esp + 0xd], al
mov dword [esp + 0xe], 0x3e3c0928
mov dword [esp + 0x12], 0x2d2b3d3a
mov dword [esp + 0x16], 0x7e212f2a
mov dword [esp + 0x1a], 0x5b5e7c26
mov dword [esp + 0x1e], 0x7b3f2e
mov edi, ebp
test ebp, ebp
je 0x41dd0a
mov dl, byte [ebp]
test dl, dl
je 0x41dd0a
lea ecx, [ecx]
lea ecx, [esp + 0xc]
mov al, 0x20
cmp dl, al
je 0x41dd5e
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x41dcf6
mov dl, byte [edi + 1]
inc edi
test dl, dl
jne 0x41dcf0
mov eax, ebp
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41dd10
sub eax, edx
lea edi, [eax + ebp - 1]
cmp edi, ebp
jbe 0x41dd30
mov al, byte [edi]
cmp al, 0x20
je 0x41dd2b
cmp al, 9
jne 0x41dd30
dec edi
cmp edi, ebp
ja 0x41dd21
mov esi, edi
sub esi, ebp
inc esi
cmp esi, 0xfd
jbe 0x41dd65
cmp byte [esp + 0x30], 0
je 0x41dd53
mov ecx, dword [esp + 0x28]
push ebp
push str.This_line_does_not_contain_a_recognized_action.
call fcn.0042fa70
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x18
ret 0xc
cmp edi, ebp
jbe 0x41dd30
dec edi
jmp 0x41dd1d
push esi
push ebp
push ebx
call fcn.0048a440
add esp, 0xc
mov eax, edi
pop edi
mov byte [esi + ebx], 0
pop esi
pop ebp
add esp, 0x18
ret 0xc
Function at 0x42ffe0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2004
call fcn.00493ca0
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
mov ebx, ecx
je 0x4300db
test ebx, ebx
jne 0x430010
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x374]
test ebx, ebx
je 0x43001a
movzx ecx, word [ebx + 2]
movzx eax, word [ebx + 4]
jmp 0x430027
mov ecx, dword [eax + 0x170]
movzx eax, word [eax + 0x174]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ecx*4 + 0x4ac234]
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.00474600
mov esi, dword [ebp + 0x14]
add esp, 0x10
cmp byte [esi], 0
lea edi, [esp + eax + 0x10]
je 0x430073
push esi
lea esi, [esp + 0x2014]
push str._____Specifically:__s_n
sub esi, edi
call fcn.00474600
mov esi, dword [ebp + 0x14]
add esp, 8
mov edi, dword [ebp + 0xc]
cmp edi, 3
jne 0x430099
mov eax, dword [ebp + 8]
push 0x49e244
push 0
lea edx, [esp + 0x18]
push edx
push eax
call fcn.0042f640
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp edi, 2
jne 0x4300db
test ebx, ebx
jne 0x4300ba
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 0x374]
test ebx, ebx
je 0x4300d1
mov edx, dword [ebp + 0x10]
push esi
push 1
push edx
mov ecx, ebx
call fcn.0042f7d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x10]
push esi
push eax
call fcn.0042fa70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x430510
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x1fc
push ebx
push ebp
push esi
push edi
mov edi, eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor ebx, ebx
cmp eax, ebx
je 0x43053f
push 0x64
lea ecx, [esp + 0xa4]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x430546
mov byte [esp + 0xa0], bl
mov esi, dword [0x4ae880]
mov byte [esp + 0x20], bl
cmp esi, ebx
je 0x4305eb
cmp byte [esi + 0x11], bl
je 0x430599
mov edx, dword [esi]
push edx
call fcn.0046f920
add esp, 4
sub eax, ebx
je 0x43057d
dec eax
je 0x430576
mov eax, str.Object
jmp 0x430582
mov eax, dword [esi]
mov eax, dword [eax + 4]
jmp 0x430582
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
push eax
push 0x49fe0c
mov eax, 0x7d
lea ecx, [esp + 0x28]
call fcn.00474640
add esp, 8
mov esi, dword [esi + 0x14]
cmp esi, ebx
jne 0x430558
cmp byte [esp + 0x20], bl
je 0x4305eb
lea eax, [esp + 0x20]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4305b0
sub eax, edx
cmp eax, 0x7b
jbe 0x4305dd
mov esi, 0x7f
sub esi, eax
push esi
lea ebp, [esp + eax + 0x24]
push 0x49de28
push ebp
call fcn.0048a440
add esp, 0xc
mov byte [esi + ebp], bl
jmp 0x4305eb
cmp byte [esp + eax + 0x1f], 0x20
lea eax, [esp + eax + 0x20]
jne 0x4305eb
mov byte [eax - 1], bl
mov edx, dword [0x4abec0]
cmp byte [edx + 0xd8], bl
je 0x430609
mov dword [esp + 0x14], 1
cmp byte [0x4ae8c1], bl
je 0x43060d
mov dword [esp + 0x14], ebx
mov eax, dword [0x4ad460]
mov dword [esp + 0x10], str.__preempted:_they_will_resume_when_the_current_thread_finishes_
cmp eax, 1
jg 0x43071c
mov dword [esp + 0x10], 0x49b8bd
mov dword [esp + 0x18], ebx
mov ebp, 0x49cb30
cmp dword [0x4ad420], ebx
je 0x430641
mov ebp, 0x49cb2c
mov esi, 0x49cb30
cmp dword [0x4ad41c], ebx
je 0x430653
mov esi, 0x49cb2c
push 1
call fcn.00412e80
mov bl, al
add esp, 4
lea eax, [esp + 0x108]
call fcn.00413270
mov ecx, dword [0x4ad460]
mov edx, dword [0x4ad464]
sub edx, dword [esp + 0x14]
push eax
mov eax, dword [0x4ad45c]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
mov eax, dword [0x4ae888]
push ecx
mov ecx, dword [0x4ae88c]
lea edx, [esp + 0x38]
push edx
push eax
push ecx
push ebp
push esi
lea edx, [esp + 0xcc]
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.00474600
mov esi, dword [esp + 0x50]
add edi, eax
mov eax, esi
sub eax, edi
add esp, 0x34
add eax, 0xfffe
push eax
push edi
call fcn.00409410
mov eax, edi
add esp, 8
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4306e0
sub eax, ecx
add edi, eax
cmp dword [0x4adb04], 0
mov eax, str._r_nPress__F5__to_refresh.
jne 0x4306fe
mov eax, str._r_nKey_History_has_been_disabled_via_KeyHistory_0.
sub esi, edi
push eax
add esi, 0xfffe
call fcn.00474600
add esp, 4
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1fc
ret
dec eax
mov dword [esp + 0x18], eax
jmp 0x43062f
Function at 0x4362e0
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.00442df0
mov edi, eax
test edi, edi
je 0x43630e
mov esi, dword [esp + 0x1c]
push edi
call fcn.00478f40
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x436359
mov ecx, dword [0x4a9978]
test byte [ecx + 0xe0], 1
jne 0x43633c
mov edx, dword [0x4adaf4]
push 1
push 0
push 0xffffffffffffffff
push 0x49cf28
push edx
call fcn.00477500
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov ecx, dword [esp + 0x18]
push 0x49b8bd
push 0
push 0x49cf28
call fcn.0042f3d0
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 0x436391
cmp ebp, dword [0x4ae274]
je 0x436391
mov esi, edi
call fcn.00479420
test al, al
jne 0x436391
mov eax, dword [0x4ae274]
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 0x4363cf
mov edx, dword [0x4adaf4]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8d8
push edx
call fcn.00477500
mov eax, dword [0x4a9978]
mov eax, dword [eax + 0x58]
cmp eax, 0xffffffff
jle 0x4363cf
push 1
push eax
call fcn.004013c0
add esp, 8
test bl, bl
je 0x4363e3
mov ecx, dword [0x4ae274]
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 0x437100
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 ebx, ecx
call fcn.004318c0
mov dword [esp + 0x10], eax
test eax, eax
jne 0x437135
mov ecx, dword [ebp + 8]
push esi
push eax
push str.Parameter_1_invalid.
call fcn.0042f7d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
dec eax
cmp eax, 4
ja case.default.0x43713f
jmp dword [eax*4 + 0x43732c]
mov ebx, dword [ebp + 0xc]
cmp byte [ebx], 0
je 0x437155
call fcn.00453ec0
jmp 0x43715b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x18
push 0
push eax
mov eax, dword [0x4adaf4]
call fcn.004010d0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp + 0xc]
call fcn.00453ec0
mov ebx, eax
test ebx, ebx
je 0x4371cf
push ebx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4371cf
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 [0x4adaf4]
push 0x18
push 0
push esi
call fcn.004010d0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4adaf4]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8d8
push eax
call fcn.00477500
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movsx ecx, byte [ebx]
push ecx
call fcn.00489d2b
add eax, 0xffffffbf
add esp, 4
cmp eax, 0x11
ja case.0x437209.67
movzx edx, byte [eax + 0x43735c]
jmp dword [edx*4 + 0x437340]
mov esi, 0x40
jmp 0x437238
mov esi, 0x4000
jmp 0x437238
mov esi, 0x20
jmp 0x437238
mov esi, 0x8000
jmp 0x437238
mov esi, 0x80
jmp 0x437238
mov esi, 0x100
mov ebx, dword [ebp + 0xc]
cmp byte [ebx], 0
je 0x437247
call fcn.00453ec0
jmp 0x43724d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
test ebx, ebx
je 0x4371cf
push ebx
push 0
push 0x200
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4371cf
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
jmp 0x4371a3
mov ecx, dword [0x4adaf4]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8d8
push ecx
call fcn.00477500
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [ebx], 0
je 0x4372c6
mov esi, ebx
mov byte [esp + 0xf], 0
call fcn.004147b0
fmul qword [0x4a3ea8]
call fcn.00495e90
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
jmp 0x4372d0
mov byte [esp + 0xf], 1
xor edi, edi
lea ecx, [ecx]
mov ebx, dword [ebp + 0xc]
call fcn.00453ec0
cmp dword [esp + 0x10], 4
mov esi, eax
jne 0x4372eb
test esi, esi
jne 0x4371b2
jmp 0x4372f3
test esi, esi
je 0x4371cf
cmp byte [esp + 0xf], 0
jne 0x437311
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x14]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x4371b2
push 1
push 0x64
call fcn.004013c0
add esp, 8
jmp 0x4372d0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x437b60
Capabilities:
Get graphical window text

Disassembly:
push ecx
push ebp
push esi
mov esi, dword [0x4ad238]
push edi
push eax
mov eax, dword [esp + 0x18]
call fcn.00442df0
mov edi, eax
test edi, edi
je 0x437b86
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ebp, [eax + 1]
jmp 0x437b8b
mov ebp, 1
push 1
push 0
lea ecx, [ebp - 1]
push ecx
push 0
push esi
call fcn.00477500
cmp eax, 1
je 0x437ba9
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 4
mov ecx, esi
test edi, edi
je 0x437c2e
push ebp
push 0
push 1
call fcn.00401210
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [esi + 0x17], 0
mov ebp, eax
jne 0x437bce
mov edi, dword [esi + 0xc]
jmp 0x437bd0
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x437be8
test byte [edi + 0x15], 8
je 0x437be3
mov eax, edi
call fcn.00401150
lea eax, [edi + 0xc]
jmp 0x437bed
mov eax, 0x4aeabc
mov dword [eax], ebp
cmp byte [esi + 0x17], 0
jne 0x437bfa
mov edi, dword [esi + 0xc]
jmp 0x437bfc
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x437c14
test byte [edi + 0x15], 8
je 0x437c0f
mov eax, edi
call fcn.00401150
lea eax, [edi + 0xc]
jmp 0x437c19
mov eax, 0x4aeabc
cmp dword [eax], 0
jne 0x437c6a
push 0
push 1
mov ecx, esi
call fcn.00401210
mov byte [eax], 0
jmp 0x437c6a
push 0
push 1
call fcn.00401210
mov byte [eax], 0
cmp byte [esi + 0x17], 0
jne 0x437c45
mov edi, dword [esi + 0xc]
jmp 0x437c47
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x437c5f
test byte [edi + 0x15], 8
je 0x437c5a
mov eax, edi
call fcn.00401150
lea eax, [edi + 0xc]
jmp 0x437c64
mov eax, 0x4aeabc
mov dword [eax], 0
cmp byte [esi + 0x17], 0
jne 0x437c73
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x437c95
cmp dword [0x4ae298], 0
je 0x437c95
push 1
mov ecx, 0x4ae28c
call fcn.004047f0
pop edi
pop esi
pop ebp
pop ecx
ret 4
and byte [esi + 0x15], 0x86
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret 4

Function at 0x438a30
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x8000
call fcn.00493ca0
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push esi
mov esi, dword [0x4ad238]
push edi
push 0x7fff
lea eax, [esp + 0x10]
push eax
push ebx
call ebp
mov edi, eax
cmp edi, 0x7fff
jb 0x438ae4
push 1
push 1
lea ecx, [edi - 1]
push ecx
push 0
push esi
call fcn.00477500
test eax, eax
jne 0x438a82
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
push edi
push 0
push 1
mov ecx, esi
call fcn.00401210
push eax
push ebx
call ebp
test eax, eax
jne 0x438aa3
push eax
push 1
mov ecx, esi
call fcn.00401210
mov byte [eax], 0
cmp byte [esi + 0x17], 0
jne 0x438aac
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x438ad1
cmp dword [0x4ae298], 0
je 0x438ad1
push 1
mov ecx, 0x4ae28c
call fcn.004047f0
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
and byte [esi + 0x15], 0x86
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x8000
ret
lea eax, [esp + 0xc]
test edi, edi
jne 0x438af1
mov eax, 0x49b8bd
push 1
push 0
push edi
push eax
push esi
call fcn.00477500
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
Function at 0x43add0
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 [0x4ae8b8]
push ebx
push eax
push str.__s_s
mov esi, 0x800
call fcn.00474600
mov esi, eax
lea ecx, [esi + 1]
add esp, 0xc
cmp ecx, 0x800
jg 0x43ae25
lea edx, [edi + 1]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43ae25
mov ecx, dword [esp + 0x14]
mov word [esi + edi], 0x22
mov eax, dword [0x4ae8b8]
pop edi
pop esi
mov dword [ecx], eax
mov al, 1
pop ebp
ret
push ebp
call fcn.0043b490
add esp, 4
test eax, eax
je 0x43ae73
push ebx
push ebp
push str.__s_s
mov esi, 0x800
call fcn.00474600
mov esi, eax
lea eax, [esi + 1]
add esp, 0xc
cmp eax, 0x800
jg 0x43ae73
lea ecx, [edi + 1]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43ae73
mov edx, dword [esp + 0x14]
mov word [esi + edi], 0x22
pop edi
pop esi
mov dword [edx], ebp
mov al, 1
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebp
ret

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

Disassembly:
mov eax, 0x1114
call fcn.00493ca0
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
lea ebp, [esp + 0x924]
push ecx
mov eax, ebp
mov dword [esp + 0x18], 0x49b8bd
call fcn.0043add0
add esp, 8
test al, al
jne 0x43aebe
pop edi
pop esi
pop ebp
add esp, 0x1114
ret
cmp byte [esp + 0x1124], 0
je 0x43af27
mov edx, dword [esp + 0x14]
push 0x4a0d50
push edx
push str.__s_s
mov esi, 0x800
lea edi, [esp + 0x12c]
call fcn.00474600
mov esi, eax
lea eax, [esi + 1]
add esp, 0xc
cmp eax, 0x800
jg 0x43af27
lea ecx, [esp + 0x121]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43af27
lea edx, [esp + 0x920]
mov byte [esp + esi + 0x120], 0x22
mov byte [esp + esi + 0x121], 0
mov ebp, edi
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0x4ae2a8
mov edx, ebp
call fcn.00430730
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebp
add esp, 0x1114
ret
Function at 0x43b490
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
push edi
xor ebx, ebx
xor edi, edi
lea eax, [esp + 0x14]
push eax
mov ecx, edi
or ecx, 1
push ecx
push ebx
push str.SOFTWAREAutoHotkey
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
test eax, eax
je 0x43b4c8
mov byte [esp + 0x18], bl
xor eax, eax
jmp 0x43b543
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push str.InstallDir
push ecx
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x14]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x43b4c0
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x43b4c0
dec eax
mov dword [esp + 0x10], eax
cmp byte [esp + eax + 0x18], bl
jne 0x43b527
cmp eax, ebx
je 0x43b543
lea ecx, [esp + 0x18]
cmp byte [ecx + eax - 1], bl
jne 0x43b521
dec eax
jne 0x43b518
mov dword [esp + 0x10], eax
jmp 0x43b53f
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x104
jb 0x43b53b
mov byte [esp + 0x18], bl
xor eax, eax
jmp 0x43b543
mov byte [esp + eax + 0x18], bl
cmp eax, ebx
jne 0x43b551
cmp edi, ebx
jne 0x43b551
mov edi, 0x100
jmp 0x43b4a4
mov esi, dword [esp + 0x120]
cmp esi, ebx
je 0x43b56e
lea ecx, [esp + 0x18]
mov edx, ecx
sub esi, edx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
cmp dl, bl
jne 0x43b564
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x43eac0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x11c
push ebx
push ebp
mov ebp, dword [0x4ad238]
push edi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push 0
mov eax, esi
call fcn.00413780
add esp, 0xc
mov byte [esp + 0x13], al
test al, al
jne 0x43eb5c
push 0
lea ebx, [esp + 0x18]
mov eax, esi
call fcn.0044f610
mov edi, eax
add esp, 4
test edi, edi
jne 0x43eb20
push 1
push eax
push 0xffffffffffffffff
push 0x49b8bd
push ebp
call fcn.00477500
pop edi
pop ebp
pop ebx
add esp, 0x11c
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.0044f8b0
fstp st(0)
add esp, 8
lea eax, [esp + 0x18]
mov ebx, ebp
call fcn.00476e50
pop edi
pop ebp
pop ebx
add esp, 0x11c
ret 4
mov edx, dword [esp + 0x12c]
movzx ebx, byte [edx]
test ebx, 0xffffff80
jne 0x43eb80
push 2
push ebx
call fcn.00488cbe
add esp, 8
test eax, eax
je 0x43eb80
and bl, 0xdf
cmp bl, 0x50
je 0x43eb93
xor eax, eax
cmp bl, 0x54
setne al
dec eax
and eax, 2
jmp 0x43eb98
mov eax, 1
mov bl, byte [esp + 0x13]
push eax
call fcn.0044f800
add esp, 4
test al, al
mov eax, 0x4a0fe4
jne 0x43ebb3
mov eax, 0x4a0fe8
push 1
push 0
push 0xffffffffffffffff
push eax
push ebp
call fcn.00477500
pop edi
pop ebp
pop ebx
add esp, 0x11c
ret 4

Function at 0x43ebd0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x120
push esi
mov esi, ecx
mov ecx, dword [0x4ad238]
push edi
call fcn.004147f0
test esi, esi
je 0x43ecb3
cmp byte [esi], 0
je 0x43ecb3
push 0x103
lea eax, [esp + 0x24]
push esi
push eax
call fcn.0048a440
lea eax, [esp + 0x2c]
add esp, 0xc
mov byte [esp + 0x123], 0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43ec20
sub eax, edx
cmp byte [esp + eax + 0x1f], 0x5c
je 0x43ec45
lea ecx, [eax + 1]
cmp ecx, 0x104
jae 0x43ecb3
mov byte [esp + eax + 0x20], 0x5c
mov byte [esp + eax + 0x21], 0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x43ecb3
cmp byte [ebp + 0xc], 0
je 0x43ec73
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
jmp 0x43ec7b
mov edi, dword [esp + 8]
mov esi, dword [esp + 0xc]
mov eax, dword [0x4adaf4]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8d8
push eax
call fcn.00477500
mov eax, dword [0x4ad238]
shrd edi, esi, 0x14
push 0x18
shr esi, 0x14
push esi
push edi
call fcn.004010d0
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x4a9978]
test byte [ecx + 0xe0], 1
jne 0x43ece1
mov edx, dword [0x4adaf4]
push 1
push 0
push 0xffffffffffffffff
push 0x49cf28
push edx
call fcn.00477500
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push 0x49b8bd
push 0
push 0x49cf28
call fcn.0042f3d0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x440a50
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x108
push esi
mov esi, eax
mov al, byte [esi]
test al, al
je 0x440a7f
mov cl, 0x3a
cmp byte [esi + 1], cl
jne 0x440a7f
cmp byte [esi + 2], 0
jne 0x440a7f
mov byte [esp + 4], al
mov byte [esp + 5], cl
mov word [esp + 6], 0x5c
lea esi, [esp + 4]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x440a9f
cmp byte [0x4ae8c0], al
je 0x440ae4
call fcn.00409890
pop esi
add esp, 0x108
ret
cmp byte [0x4ae8c0], 0
je 0x440ae4
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x440ac2
lea esi, [esp + 8]
jmp 0x440ac6
test esi, esi
je 0x440acd
mov eax, esi
call fcn.0044ff90
mov ecx, dword [0x4adaf4]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8d8
push ecx
call fcn.00477500
pop esi
add esp, 0x108
ret
Function at 0x4410e0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x44119b
cmp byte [ebx], 0
je 0x44119b
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x441123
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
shr eax, 4
and eax, 1
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
push 0x5c
push ebx
call fcn.00489b03
mov edi, eax
add esp, 8
mov dword [ebp + 8], edi
cmp edi, ebx
jbe 0x441185
cmp byte [edi - 1], 0x3a
je 0x441185
cmp dword [ebp + 0xc], 0
je 0x44114a
mov esi, ebx
mov byte [edi], 0
jmp 0x441168
sub edi, ebx
lea eax, [edi + 1]
call fcn.00490f00
mov esi, esp
push edi
push ebx
push esi
call fcn.0048a440
mov byte [edi + esi], 0
mov edi, dword [ebp + 8]
add esp, 0xc
push esi
push esi
call fcn.004410e0
add esp, 8
cmp dword [ebp + 0xc], 0
je 0x44117b
mov byte [edi], 0x5c
cmp byte [edi + 1], 0
je 0x4411a5
test al, al
je 0x4411a5
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
setne al
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x441de0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
xor edi, edi
cmp ebp, edi
je 0x441e30
push edi
push 1
mov ecx, ebp
call fcn.00401210
cmp byte [ebp + 0x17], 0
mov dword [esp + 0x24], eax
jne 0x441e0a
mov esi, dword [ebp + 0xc]
jmp 0x441e0c
mov esi, ebp
cmp byte [esi + 0x17], 1
jne 0x441e27
test byte [esi + 0x15], 8
je 0x441e1f
mov eax, esi
call fcn.00401150
mov ebx, dword [esi + 0xc]
add esi, 0xc
jmp 0x441e5e
mov esi, 0x4aeabc
mov ebx, dword [esi]
jmp 0x441e5e
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
push edi
call fcn.00476f90
add esp, 0xc
test eax, eax
jne 0x441e5a
mov edx, dword [0x4a9978]
mov dword [edx + 0x30], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x441ea6
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], edi
test eax, eax
je 0x441e9b
push 0
lea ecx, [esp + 0x24]
push ecx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor edx, edx
cmp dword [esp + 0x20], ebx
sete dl
mov edi, edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a9978]
mov dword [ecx + 0x30], eax
cmp esi, 0xffffffff
je 0x441ec1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
jne 0x441ed2
mov edx, dword [esp + 0x24]
push edx
call fcn.00487798
add esp, 4
mov edx, dword [esp + 0x1c]
test edi, edi
sete al
movzx ecx, al
push ecx
push edx
call fcn.0042f470
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc