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

Disassembly:
sub esp, 0x18
mov al, byte [0x4a83b3]
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 0x41d70a
mov dl, byte [ebp]
test dl, dl
je 0x41d70a
lea ecx, [ecx]
lea ecx, [esp + 0xc]
mov al, 0x20
cmp dl, al
je 0x41d75e
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x41d6f6
mov dl, byte [edi + 1]
inc edi
test dl, dl
jne 0x41d6f0
mov eax, ebp
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41d710
sub eax, edx
lea edi, [eax + ebp - 1]
cmp edi, ebp
jbe 0x41d730
mov al, byte [edi]
cmp al, 0x20
je 0x41d72b
cmp al, 9
jne 0x41d730
dec edi
cmp edi, ebp
ja 0x41d721
mov esi, edi
sub esi, ebp
inc esi
cmp esi, 0xfd
jbe 0x41d765
cmp byte [esp + 0x30], 0
je 0x41d753
mov ecx, dword [esp + 0x28]
push ebp
push str.This_line_does_not_contain_a_recognized_action.
call fcn.0042f200
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x18
ret 0xc
cmp edi, ebp
jbe 0x41d730
dec edi
jmp 0x41d71d
push esi
push ebp
push ebx
call fcn.0048a060
add esp, 0xc
mov eax, edi
pop edi
mov byte [esi + ebx], 0
pop esi
pop ebp
add esp, 0x18
ret 0xc
Function at 0x42f790
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x2000
call fcn.00493880
cmp dword [esp + 0x2008], 0
push ebx
push ebp
mov ebp, dword [esp + 0x2018]
mov ebx, ecx
je 0x42f8af
test ebx, ebx
jne 0x42f7c8
mov eax, dword [esp + 0x200c]
mov ebx, dword [eax + 0x374]
test ebx, ebx
je 0x42f7d2
movzx ecx, word [ebx + 2]
movzx eax, word [ebx + 4]
jmp 0x42f7df
mov ecx, dword [eax + 0x170]
movzx eax, word [eax + 0x174]
mov edx, dword [esp + 0x2014]
mov ecx, dword [ecx*4 + 0x4ab214]
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.00474080
add esp, 0x10
cmp byte [ebp], 0
lea edi, [esp + eax + 0x10]
je 0x42f82c
push ebp
lea esi, [esp + 0x2014]
push str._____Specifically:__s_n
sub esi, edi
call fcn.00474080
add esp, 8
mov esi, dword [esp + 0x2018]
cmp esi, 3
jne 0x42f85b
call fcn.00487787
add eax, 0x20
push eax
lea edx, [esp + 0x14]
push edx
call fcn.00489781
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2000
ret 0x10
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp esi, 2
jne 0x42f8ad
test ebx, ebx
jne 0x42f880
mov ecx, dword [esp + 0x2014]
mov ebx, dword [ecx + 0x374]
test ebx, ebx
je 0x42f89f
mov ecx, dword [esp + 0x201c]
push ebp
push 1
push ecx
mov ecx, ebx
call fcn.0042ef30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2000
ret 0x10
mov edx, dword [esp + 0x201c]
push ebp
push edx
call fcn.0042f200
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2000
ret 0x10
Function at 0x42fce0
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 0x42fd0f
push 0x64
lea ecx, [esp + 0xa4]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x42fd16
mov byte [esp + 0xa0], bl
mov esi, dword [0x4ad840]
mov byte [esp + 0x20], bl
cmp esi, ebx
je 0x42fdbb
cmp byte [esi + 0x11], bl
je 0x42fd69
mov edx, dword [esi]
push edx
call fcn.0046f3b0
add esp, 4
sub eax, ebx
je 0x42fd4d
dec eax
je 0x42fd46
mov eax, str.Object
jmp 0x42fd52
mov eax, dword [esi]
mov eax, dword [eax + 4]
jmp 0x42fd52
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
push eax
push 0x49ecec
mov eax, 0x7d
lea ecx, [esp + 0x28]
call fcn.004740c0
add esp, 8
mov esi, dword [esi + 0x14]
cmp esi, ebx
jne 0x42fd28
cmp byte [esp + 0x20], bl
je 0x42fdbb
lea eax, [esp + 0x20]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x42fd80
sub eax, edx
cmp eax, 0x7b
jbe 0x42fdad
mov esi, 0x7f
sub esi, eax
push esi
lea ebp, [esp + eax + 0x24]
push 0x49cd84
push ebp
call fcn.0048a060
add esp, 0xc
mov byte [esi + ebp], bl
jmp 0x42fdbb
cmp byte [esp + eax + 0x1f], 0x20
lea eax, [esp + eax + 0x20]
jne 0x42fdbb
mov byte [eax - 1], bl
mov edx, dword [0x4aaea0]
cmp byte [edx + 0xd8], bl
je 0x42fdd9
mov dword [esp + 0x14], 1
cmp byte [0x4ad881], bl
je 0x42fddd
mov dword [esp + 0x14], ebx
mov eax, dword [0x4ac43c]
mov dword [esp + 0x10], str.__preempted:_they_will_resume_when_the_current_thread_finishes_
cmp eax, 1
jg 0x42feec
mov dword [esp + 0x10], 0x49a87d
mov dword [esp + 0x18], ebx
mov ebp, 0x49ba98
cmp dword [0x4ac400], ebx
je 0x42fe11
mov ebp, 0x49ba94
mov esi, 0x49ba98
cmp dword [0x4ac3fc], ebx
je 0x42fe23
mov esi, 0x49ba94
push 1
call fcn.004129c0
mov bl, al
add esp, 4
lea eax, [esp + 0x108]
call fcn.00412db0
mov ecx, dword [0x4ac43c]
mov edx, dword [0x4ac440]
sub edx, dword [esp + 0x14]
push eax
mov eax, dword [0x4ac438]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
mov eax, dword [0x4ad848]
push ecx
mov ecx, dword [0x4ad84c]
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.00474080
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.00408f90
mov eax, edi
add esp, 8
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x42feb0
sub eax, ecx
add edi, eax
cmp dword [0x4acae0], 0
mov eax, str._r_nPress__F5__to_refresh.
jne 0x42fece
mov eax, str._r_nKey_History_has_been_disabled_via_KeyHistory_0.
sub esi, edi
push eax
add esi, 0xfffe
call fcn.00474080
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 0x42fdff
Function at 0x435ab0
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.004426e0
mov edi, eax
test edi, edi
je 0x435ade
mov esi, dword [esp + 0x1c]
push edi
call fcn.00478970
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x435b29
mov ecx, dword [0x4a8978]
test byte [ecx + 0xe0], 1
jne 0x435b0c
mov edx, dword [0x4acad0]
push 1
push 0
push 0xffffffffffffffff
push 0x49be90
push edx
call fcn.00476f70
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov ecx, dword [esp + 0x18]
push 0x49a87d
push 0
push 0x49be90
call fcn.0042ecc0
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 0x435b61
cmp ebp, dword [0x4ad250]
je 0x435b61
mov esi, edi
call fcn.00478e50
test al, al
jne 0x435b61
mov eax, dword [0x4ad250]
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 0x435b9f
mov edx, dword [0x4acad0]
push 1
push 0
push 0xffffffffffffffff
push 0x49a898
push edx
call fcn.00476f70
mov eax, dword [0x4a8978]
mov eax, dword [eax + 0x58]
cmp eax, 0xffffffff
jle 0x435b9f
push 1
push eax
call fcn.004013c0
add esp, 8
test bl, bl
je 0x435bb3
mov ecx, dword [0x4ad250]
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 0x4368d0
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.00431090
mov ebx, eax
test ebx, ebx
jne 0x436903
mov ecx, dword [ebp + 8]
push esi
push eax
push str.Parameter_1_invalid.
call fcn.0042ef30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebx - 1]
cmp eax, 4
ja case.default.0x43690f
jmp dword [eax*4 + 0x436b08]
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x436929
push eax
call fcn.004538a0
add esp, 4
jmp 0x43692f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x18
push 0
push eax
mov eax, dword [0x4acad0]
call fcn.004010d0
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.004538a0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4369a7
push ebx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4369a7
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 [0x4acad0]
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 ecx, dword [0x4acad0]
push 1
push 0
push 0xffffffffffffffff
push 0x49a898
push ecx
call fcn.00476f70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movsx edx, byte [edi]
push edx
call fcn.00489957
add eax, 0xffffffbf
add esp, 4
cmp eax, 0x11
ja case.0x4369e2.67
movzx eax, byte [eax + 0x436b38]
jmp dword [eax*4 + 0x436b1c]
mov esi, 0x40
jmp 0x436a11
mov esi, 0x4000
jmp 0x436a11
mov esi, 0x20
jmp 0x436a11
mov esi, 0x8000
jmp 0x436a11
mov esi, 0x80
jmp 0x436a11
mov esi, 0x100
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x436a24
push eax
call fcn.004538a0
add esp, 4
jmp 0x436a2a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
test ebx, ebx
je 0x4369a7
push ebx
push 0
push 0x200
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4369a7
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
jmp 0x43697b
mov edx, dword [0x4acad0]
push 1
push 0
push 0xffffffffffffffff
push 0x49a898
push edx
call fcn.00476f70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [edi], 0
je 0x436aa3
mov esi, edi
mov byte [esp + 0x13], 0
call fcn.004142f0
fmul qword [0x4a2e68]
call fcn.00495a70
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
jmp 0x436ab0
mov byte [esp + 0x13], 1
xor edi, edi
lea ebx, [ebx]
mov eax, dword [ebp + 0xc]
push eax
call fcn.004538a0
add esp, 4
mov esi, eax
cmp ebx, 4
jne 0x436acd
test esi, esi
jne 0x43698a
jmp 0x436ad1
test esi, esi
je case.0x4369e2.67
cmp byte [esp + 0x13], 0
jne 0x436aef
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x14]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x43698a
push 1
push 0x64
call fcn.004013c0
add esp, 8
jmp 0x436ab0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x437340
Capabilities:
Get graphical window text

Disassembly:
push ecx
push ebp
push esi
mov esi, dword [0x4ac218]
push edi
push eax
mov eax, dword [esp + 0x18]
call fcn.004426e0
mov edi, eax
test edi, edi
je 0x437366
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ebp, [eax + 1]
jmp 0x43736b
mov ebp, 1
push 1
push 0
lea ecx, [ebp - 1]
push ecx
push 0
push esi
call fcn.00476f70
cmp eax, 1
je 0x437389
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 4
mov ecx, esi
test edi, edi
je 0x43740e
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 0x4373ae
mov edi, dword [esi + 0xc]
jmp 0x4373b0
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x4373c8
test byte [edi + 0x15], 8
je 0x4373c3
mov eax, edi
call fcn.00401150
lea eax, [edi + 0xc]
jmp 0x4373cd
mov eax, 0x4ada9c
mov dword [eax], ebp
cmp byte [esi + 0x17], 0
jne 0x4373da
mov edi, dword [esi + 0xc]
jmp 0x4373dc
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x4373f4
test byte [edi + 0x15], 8
je 0x4373ef
mov eax, edi
call fcn.00401150
lea eax, [edi + 0xc]
jmp 0x4373f9
mov eax, 0x4ada9c
cmp dword [eax], 0
jne 0x43744a
push 0
push 1
mov ecx, esi
call fcn.00401210
mov byte [eax], 0
jmp 0x43744a
push 0
push 1
call fcn.00401210
mov byte [eax], 0
cmp byte [esi + 0x17], 0
jne 0x437425
mov edi, dword [esi + 0xc]
jmp 0x437427
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x43743f
test byte [edi + 0x15], 8
je 0x43743a
mov eax, edi
call fcn.00401150
lea eax, [edi + 0xc]
jmp 0x437444
mov eax, 0x4ada9c
mov dword [eax], 0
cmp byte [esi + 0x17], 0
jne 0x437453
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x437475
cmp dword [0x4ad8ec], 0
je 0x437475
push 1
mov ecx, 0x4ad8e0
call fcn.00404690
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 0x438200
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x8000
call fcn.00493880
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push esi
mov esi, dword [0x4ac218]
push edi
push 0x7fff
lea eax, [esp + 0x10]
push eax
push ebx
call ebp
mov edi, eax
cmp edi, 0x7fff
jb 0x4382b4
push 1
push 1
lea ecx, [edi - 1]
push ecx
push 0
push esi
call fcn.00476f70
test eax, eax
jne 0x438252
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 0x438273
push eax
push 1
mov ecx, esi
call fcn.00401210
mov byte [eax], 0
cmp byte [esi + 0x17], 0
jne 0x43827c
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x4382a1
cmp dword [0x4ad8ec], 0
je 0x4382a1
push 1
mov ecx, 0x4ad8e0
call fcn.00404690
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 0x4382c1
mov eax, 0x49a87d
push 1
push 0
push edi
push eax
push esi
call fcn.00476f70
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
Function at 0x43a590
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 [0x4ad878]
push ebx
push eax
push str.__s_s
mov esi, 0x800
call fcn.00474080
mov esi, eax
lea ecx, [esi + 1]
add esp, 0xc
cmp ecx, 0x800
jg 0x43a5e5
lea edx, [edi + 1]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43a5e5
mov ecx, dword [esp + 0x14]
mov word [esi + edi], 0x22
mov eax, dword [0x4ad878]
pop edi
pop esi
mov dword [ecx], eax
mov al, 1
pop ebp
ret
push ebp
call fcn.0043ac50
add esp, 4
test eax, eax
je 0x43a633
push ebx
push ebp
push str.__s_s
mov esi, 0x800
call fcn.00474080
mov esi, eax
lea eax, [esi + 1]
add esp, 0xc
cmp eax, 0x800
jg 0x43a633
lea ecx, [edi + 1]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43a633
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 0x43a640
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x1114
call fcn.00493880
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], 0x49a87d
call fcn.0043a590
add esp, 8
test al, al
jne 0x43a67e
pop edi
pop esi
pop ebp
add esp, 0x1114
ret
cmp byte [esp + 0x1124], 0
je 0x43a6e7
mov edx, dword [esp + 0x14]
push 0x49fc54
push edx
push str.__s_s
mov esi, 0x800
lea edi, [esp + 0x12c]
call fcn.00474080
mov esi, eax
lea eax, [esi + 1]
add esp, 0xc
cmp eax, 0x800
jg 0x43a6e7
lea ecx, [esp + 0x121]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43a6e7
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 0x4ad268
mov edx, ebp
call fcn.0042ff00
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebp
add esp, 0x1114
ret
Function at 0x43ac50
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 0x43ac88
mov byte [esp + 0x18], bl
xor eax, eax
jmp 0x43ad03
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 0x43ac80
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x43ac80
dec eax
mov dword [esp + 0x10], eax
cmp byte [esp + eax + 0x18], bl
jne 0x43ace7
cmp eax, ebx
je 0x43ad03
lea ecx, [esp + 0x18]
cmp byte [ecx + eax - 1], bl
jne 0x43ace1
dec eax
jne 0x43acd8
mov dword [esp + 0x10], eax
jmp 0x43acff
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x104
jb 0x43acfb
mov byte [esp + 0x18], bl
xor eax, eax
jmp 0x43ad03
mov byte [esp + eax + 0x18], bl
cmp eax, ebx
jne 0x43ad11
cmp edi, ebx
jne 0x43ad11
mov edi, 0x100
jmp 0x43ac64
mov esi, dword [esp + 0x120]
cmp esi, ebx
je 0x43ad2e
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 0x43ad24
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x43e280
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x11c
push ebx
push ebp
mov ebp, dword [0x4ac218]
push edi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push 0
mov eax, esi
call fcn.004132c0
add esp, 0xc
mov byte [esp + 0x13], al
test al, al
jne 0x43e31c
push 0
lea ebx, [esp + 0x18]
mov eax, esi
call fcn.0044ef30
mov edi, eax
add esp, 4
test edi, edi
jne 0x43e2e0
push 1
push eax
push 0xffffffffffffffff
push 0x49a87d
push ebp
call fcn.00476f70
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.0044f1d0
fstp st(0)
add esp, 8
lea eax, [esp + 0x18]
mov ebx, ebp
call fcn.004768c0
pop edi
pop ebp
pop ebx
add esp, 0x11c
ret 4
mov edx, dword [esp + 0x12c]
movzx ebx, byte [edx]
test ebx, 0xffffff80
jne 0x43e340
push 2
push ebx
call fcn.004885fe
add esp, 8
test eax, eax
je 0x43e340
and bl, 0xdf
cmp bl, 0x50
je 0x43e353
xor eax, eax
cmp bl, 0x54
setne al
dec eax
and eax, 2
jmp 0x43e358
mov eax, 1
mov bl, byte [esp + 0x13]
push eax
call fcn.0044f120
add esp, 4
test al, al
mov eax, 0x49feec
jne 0x43e373
mov eax, 0x49fef0
push 1
push 0
push 0xffffffffffffffff
push eax
push ebp
call fcn.00476f70
pop edi
pop ebp
pop ebx
add esp, 0x11c
ret 4
Function at 0x43e390
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x130
push esi
mov esi, ecx
mov ecx, dword [0x4ac218]
push edi
call fcn.00414330
test esi, esi
je 0x43e4fe
cmp byte [esi], 0
je 0x43e4fe
push 0x103
lea eax, [esp + 0x34]
push esi
push eax
call fcn.0048a060
lea eax, [esp + 0x3c]
add esp, 0xc
mov byte [esp + 0x133], 0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43e3e0
sub eax, edx
cmp byte [esp + eax + 0x2f], 0x5c
je 0x43e409
lea ecx, [eax + 1]
cmp ecx, 0x104
jae 0x43e4fe
mov byte [esp + eax + 0x30], 0x5c
mov byte [esp + eax + 0x31], 0
test byte [0x4ae4e0], 1
jne 0x43e437
or dword [0x4ae4e0], 1
push str.GetDiskFreeSpaceExA
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4ae4dc], eax
jmp 0x43e43c
mov eax, dword [0x4ae4dc]
test eax, eax
je 0x43e48a
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x3c]
push ecx
call eax
test eax, eax
je 0x43e4fe
cmp byte [ebp + 0xc], 0
je 0x43e477
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x43e4cc
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x43e4cc
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x43e4fe
cmp byte [ebp + 0xc], 0
mov eax, dword [esp + 0x14]
jne 0x43e4bb
mov eax, dword [esp + 0x10]
imul eax, dword [esp + 0xc]
imul eax, dword [esp + 8]
shr eax, 0x14
mov esi, eax
xor edi, edi
mov ecx, dword [0x4acad0]
push 1
push 0
push 0xffffffffffffffff
push 0x49a898
push ecx
call fcn.00476f70
mov eax, dword [0x4ac218]
push 0x18
push edi
push esi
call fcn.004010d0
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov edx, dword [0x4a8978]
test byte [edx + 0xe0], 1
jne 0x43e52b
mov eax, dword [0x4acad0]
push 1
push 0
push 0xffffffffffffffff
push 0x49be90
push eax
call fcn.00476f70
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push 0x49a87d
push 0
push 0x49be90
call fcn.0042ecc0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4402a0
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 0x4402cf
mov cl, 0x3a
cmp byte [esi + 1], cl
jne 0x4402cf
cmp byte [esi + 2], 0
jne 0x4402cf
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 0x4402ef
cmp byte [0x4ad880], al
je 0x440334
call fcn.00409410
pop esi
add esp, 0x108
ret
cmp byte [0x4ad880], 0
je 0x440334
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x440312
lea esi, [esp + 8]
jmp 0x440316
test esi, esi
je 0x44031d
mov eax, esi
call fcn.0044f8b0
mov ecx, dword [0x4acad0]
push 1
push 0
push 0xffffffffffffffff
push 0x49a898
push ecx
call fcn.00476f70
pop esi
add esp, 0x108
ret
Function at 0x440930
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
test ebx, ebx
je 0x440a42
cmp byte [ebx], 0
je 0x440a42
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x440986
mov ecx, dword [0x4a8978]
shr eax, 4
not al
and al, 1
movzx edx, al
push edx
push esi
mov dword [ecx + 0x30], 0xb7
call fcn.0042ed60
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x5c
push ebx
call fcn.0048951d
mov edi, eax
add esp, 8
mov dword [ebp + 8], edi
cmp edi, ebx
jbe 0x440a0c
cmp byte [edi - 1], 0x3a
je 0x440a0c
cmp dword [ebp + 0xc], 0
je 0x4409ad
mov esi, ebx
mov byte [edi], 0
jmp 0x4409cb
sub edi, ebx
lea eax, [edi + 1]
call fcn.00490ae0
mov esi, esp
push edi
push ebx
push esi
call fcn.0048a060
mov byte [edi + esi], 0
mov edi, dword [ebp + 8]
add esp, 0xc
mov ecx, dword [ebp - 4]
push esi
push esi
call fcn.00440930
cmp dword [ebp + 0xc], 0
je 0x4409de
mov byte [edi], 0x5c
cmp byte [edi + 1], 0
je 0x4409f8
mov ecx, dword [0x4acad0]
push 0
push 1
call fcn.00401210
cmp byte [eax], 0x31
jne 0x440a09
mov eax, 1
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp - 4]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
sete al
mov byte [ebp + 0xc], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0xc]
mov ecx, dword [0x4a8978]
push edx
push esi
mov dword [ecx + 0x30], eax
call fcn.0042ed60
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4a8978]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x440a79
mov eax, dword [0x4acad0]
push 1
push 0
push 0xffffffffffffffff
push 0x49be90
push eax
call fcn.00476f70
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x49a87d
push 0
push 0x49be90
call fcn.0042ecc0
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8