joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42cf20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc8
push esi
mov esi, eax
lea eax, [esp + 0x2c]
mov dword [esp + 4], eax
lea eax, [esp + 0x3c]
mov dword [esp + 8], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x8c]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x9c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0xac]
mov dword [esp + 0x24], eax
lea eax, [esp + 0xbc]
mov dword [esp + 0x28], eax
xor eax, eax
push edi
mov edi, 8
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], str.What
mov dword [esp + 0x48], eax
cmp esi, eax
jne 0x42cfad
movzx esi, word [ecx]
imul esi, esi, 0x15
mov esi, dword [esi + 0x4ec7a8]
mov dword [esp + 0x40], esi
movzx esi, word [ecx + 4]
mov ecx, dword [ecx + 8]
mov esi, dword [esi*4 + 0x4f04c8]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0xd4]
mov dword [esp + 0x58], eax
mov dword [esp + 0x50], 0x4dc080
mov dword [esp + 0x68], eax
mov dword [esp + 0x60], esi
mov dword [esp + 0x78], eax
mov dword [esp + 0x70], str.Line
mov dword [esp + 0x88], 1
mov dword [esp + 0x84], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x90], str.Message
mov dword [esp + 0xa8], eax
mov dword [esp + 0xa0], ecx
cmp edx, eax
je 0x42d04c
cmp byte [edx], al
je 0x42d04c
mov edi, 0xa
mov dword [esp + 0xb8], eax
mov dword [esp + 0xb0], str.Extra
mov dword [esp + 0xc8], eax
mov dword [esp + 0xc0], edx
lea edx, [esp + 8]
push edi
push edx
call fcn.004962d0
add esp, 8
pop edi
pop esi
add esp, 0xc8
ret 4
Function at 0x42d990
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x2000
call fcn.004c6f60
cmp dword [esp + 0x2008], 0
push ebx
push ebp
mov ebp, dword [esp + 0x2018]
mov ebx, ecx
je 0x42dac1
test ebx, ebx
jne 0x42d9c8
mov eax, dword [esp + 0x200c]
mov ebx, dword [eax + 0x370]
test ebx, ebx
je 0x42d9d2
movzx ecx, word [ebx + 4]
movzx eax, word [ebx + 8]
jmp 0x42d9df
mov ecx, dword [eax + 0x16c]
movzx eax, word [eax + 0x170]
mov edx, dword [esp + 0x2014]
mov ecx, dword [ecx*4 + 0x4f04c8]
push esi
push edi
push edx
movzx eax, ax
push eax
push ecx
push str.u_qom1deyqsrf
call fcn.0049be50
add esp, 4
push eax
mov esi, 0x2000
lea edi, [esp + 0x20]
call fcn.004a2f10
add esp, 0x10
cmp byte [ebp], 0
lea edi, [esp + eax + 0x10]
je 0x42da3e
push ebp
push str.phqgh
call fcn.0049be50
add esp, 4
lea esi, [esp + 0x2014]
push eax
sub esi, edi
call fcn.004a2f10
add esp, 8
mov esi, dword [esp + 0x2018]
cmp esi, 3
jne 0x42da6d
call fcn.004ba7fb
add eax, 0x20
push eax
lea edx, [esp + 0x14]
push edx
call fcn.004bc637
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 0x42dabf
test ebx, ebx
jne 0x42da92
mov ecx, dword [esp + 0x2014]
mov ebx, dword [ecx + 0x370]
test ebx, ebx
je 0x42dab1
mov ecx, dword [esp + 0x201c]
push ebp
push 1
push ecx
mov ecx, ebx
call fcn.0042d2f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2000
ret 0x10
mov edx, dword [esp + 0x201c]
push ebp
push edx
call fcn.00473b40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2000
ret 0x10
Function at 0x42df90
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 0x42dfbf
push 0x64
lea ecx, [esp + 0xa4]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x42dfc6
mov byte [esp + 0xa0], bl
mov esi, dword [0x4f22ac]
mov byte [esp + 0x20], bl
cmp esi, ebx
je 0x42e06b
cmp byte [esi + 0x11], bl
je 0x42e019
mov edx, dword [esi]
push edx
call fcn.00499050
add esp, 4
sub eax, ebx
je 0x42dffd
dec eax
je 0x42dff6
mov eax, 0x4dbb44
jmp 0x42e002
mov eax, dword [esi]
mov eax, dword [eax + 4]
jmp 0x42e002
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
push eax
push 0x4dc520
mov eax, 0x7d
lea ecx, [esp + 0x28]
call fcn.004a2f50
add esp, 8
mov esi, dword [esi + 0x14]
cmp esi, ebx
jne 0x42dfd8
cmp byte [esp + 0x20], bl
je 0x42e06b
lea eax, [esp + 0x20]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x42e030
sub eax, edx
cmp eax, 0x7b
jbe 0x42e05d
mov esi, 0x7f
sub esi, eax
push esi
lea ebp, [esp + eax + 0x24]
push 0x4d9a84
push ebp
call fcn.004bd1c0
add esp, 0xc
mov byte [esi + ebp], bl
jmp 0x42e06b
cmp byte [esp + eax + 0x1f], 0x20
lea eax, [esp + eax + 0x20]
jne 0x42e06b
mov byte [eax - 1], bl
mov edx, dword [0x4ef780]
cmp byte [edx + 0xd8], bl
je 0x42e089
mov dword [esp + 0x14], 1
cmp byte [0x4f22ed], bl
je 0x42e08d
mov dword [esp + 0x14], ebx
mov eax, dword [0x4f0d48]
cmp eax, 1
jle 0x42e0af
push str.p__5_0_55__tl2__i_:_c___2_0m2___n8._x___137p_95_4_e0__._o
call fcn.0049be50
mov dword [esp + 0x14], eax
mov eax, dword [0x4f0d48]
add esp, 4
jmp 0x42e0b7
mov dword [esp + 0x10], 0x4d6959
cmp eax, 1
jle 0x42e0c3
dec eax
mov dword [esp + 0x18], eax
jmp 0x42e0c7
mov dword [esp + 0x18], ebx
mov ebp, 0x4d8e18
cmp dword [0x4f0d0c], ebx
je 0x42e0d9
mov ebp, 0x4d8e14
mov esi, 0x4d8e18
cmp dword [0x4f0d08], ebx
je 0x42e0eb
mov esi, 0x4d8e14
lea eax, [esp + 0x108]
push eax
push 1
call fcn.00412200
add esp, 4
mov bl, al
call fcn.004125c0
mov ecx, dword [0x4f0d44]
mov edx, dword [0x4f0d48]
add esp, 4
push eax
mov eax, dword [0x4f0d4c]
sub eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
mov ecx, dword [0x4f22b4]
push edx
mov edx, dword [0x4f22b8]
lea eax, [esp + 0x38]
push eax
push ecx
push edx
push ebp
push esi
lea eax, [esp + 0xcc]
push eax
push str._a___wedAD_a:_i:_98ypm_JB
call fcn.0049be50
add esp, 4
push eax
mov esi, 0xfffe
call fcn.004a2f10
mov esi, dword [esp + 0x50]
add edi, eax
mov ecx, esi
sub ecx, edi
add esp, 0x34
add ecx, 0xfffe
push ecx
push edi
call fcn.004096d0
mov eax, edi
add esp, 8
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x42e181
sub eax, ecx
add edi, eax
cmp dword [0x4f14e8], 0
je 0x42e19c
push 0x4dc03c
jmp 0x42e1a1
push str._BK_1u
call fcn.0049be50
add esp, 4
sub esi, edi
push eax
add esi, 0xfffe
call fcn.004a2f10
add esp, 4
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1fc
ret
Function at 0x434ee0
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.00440f40
mov edi, eax
test edi, edi
je 0x434f0e
mov esi, dword [esp + 0x1c]
push edi
call fcn.004a75d0
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x434f59
mov ecx, dword [0x4ec48c]
test byte [ecx + 0xe0], 1
jne 0x434f3c
mov edx, dword [0x4f13d8]
push 1
push 0
push 0xffffffffffffffff
push 0x4d9220
push edx
call fcn.004a5c20
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov ecx, dword [esp + 0x18]
push 0x4d6959
push 0
push 0x4d9220
call fcn.0042d070
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 0x434f91
cmp ebp, dword [0x4f1c80]
je 0x434f91
mov esi, edi
call fcn.004a7ae0
test al, al
jne 0x434f91
mov eax, dword [0x4f1c80]
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 0x434fcf
mov edx, dword [0x4f13d8]
push 1
push 0
push 0xffffffffffffffff
push 0x4d69c8
push edx
call fcn.004a5c20
mov eax, dword [0x4ec48c]
mov eax, dword [eax + 0x58]
cmp eax, 0xffffffff
jle 0x434fcf
push 1
push eax
call fcn.00401910
add esp, 8
test bl, bl
je 0x434fe3
mov ecx, dword [0x4f1c80]
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 0x435d20
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.0042f4d0
mov ebx, eax
test ebx, ebx
jne 0x435d5c
push esi
push eax
push 0x4d9718
call fcn.0049be50
mov ecx, dword [ebp + 8]
add esp, 4
push eax
call fcn.0042d2f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebx - 1]
cmp eax, 4
ja case.default.0x435d68
jmp dword [eax*4 + 0x435f5c]
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x435d82
push eax
call fcn.00451a40
add esp, 4
jmp 0x435d88
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x18
push 0
push eax
mov eax, dword [0x4f13d8]
call fcn.00401570
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.00451a40
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x435e00
push ebx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x435e00
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 [0x4f13d8]
push 0x18
push 0
push esi
call fcn.00401570
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x4f13d8]
push 1
push 0
push 0xffffffffffffffff
push 0x4d69c8
push ecx
call fcn.004a5c20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movsx edx, byte [edi]
push edx
call fcn.004bc973
add eax, 0xffffffbf
add esp, 4
cmp eax, 0x11
ja case.0x435e3b.67
movzx eax, byte [eax + 0x435f8c]
jmp dword [eax*4 + 0x435f70]
mov esi, 0x40
jmp 0x435e6a
mov esi, 0x4000
jmp 0x435e6a
mov esi, 0x20
jmp 0x435e6a
mov esi, 0x8000
jmp 0x435e6a
mov esi, 0x80
jmp 0x435e6a
mov esi, 0x100
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x435e7d
push eax
call fcn.00451a40
add esp, 4
jmp 0x435e83
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
test ebx, ebx
je 0x435e00
push ebx
push 0
push 0x200
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x435e00
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
jmp 0x435dd4
mov edx, dword [0x4f13d8]
push 1
push 0
push 0xffffffffffffffff
push 0x4d69c8
push edx
call fcn.004a5c20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [edi], 0
je 0x435efc
mov esi, edi
mov byte [esp + 0x13], 0
call fcn.0041a440
fmul qword [0x4e58d8]
call fcn.004c9200
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
jmp 0x435f03
mov byte [esp + 0x13], 1
xor edi, edi
mov eax, dword [ebp + 0xc]
push eax
call fcn.00451a40
add esp, 4
mov esi, eax
cmp ebx, 4
jne 0x435f20
test esi, esi
jne 0x435de3
jmp 0x435f24
test esi, esi
je case.0x435e3b.67
cmp byte [esp + 0x13], 0
jne 0x435f42
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x14]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x435de3
push 1
push 0x64
call fcn.00401910
add esp, 8
jmp 0x435f03
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4367a0
Capabilities:
Get graphical window text

Disassembly:
push ecx
push ebp
push esi
mov esi, dword [0x4f0b10]
push edi
push eax
mov eax, dword [esp + 0x18]
call fcn.00440f40
mov edi, eax
test edi, edi
je 0x4367c6
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ebp, [eax + 1]
jmp 0x4367cb
mov ebp, 1
push 1
push 0
lea ecx, [ebp - 1]
push ecx
push 0
push esi
call fcn.004a5c20
cmp eax, 1
je 0x4367e9
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 4
mov ecx, esi
test edi, edi
je 0x43686e
push ebp
push 0
push 1
call fcn.004016d0
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [esi + 0x17], 0
mov ebp, eax
jne 0x43680e
mov edi, dword [esi + 0xc]
jmp 0x436810
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x436828
test byte [edi + 0x15], 8
je 0x436823
mov eax, edi
call fcn.004015f0
lea eax, [edi + 0xc]
jmp 0x43682d
mov eax, 0x4f3e84
mov dword [eax], ebp
cmp byte [esi + 0x17], 0
jne 0x43683a
mov edi, dword [esi + 0xc]
jmp 0x43683c
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x436854
test byte [edi + 0x15], 8
je 0x43684f
mov eax, edi
call fcn.004015f0
lea eax, [edi + 0xc]
jmp 0x436859
mov eax, 0x4f3e84
cmp dword [eax], 0
jne 0x4368aa
push 0
push 1
mov ecx, esi
call fcn.004016d0
mov byte [eax], 0
jmp 0x4368aa
push 0
push 1
call fcn.004016d0
mov byte [eax], 0
cmp byte [esi + 0x17], 0
jne 0x436885
mov edi, dword [esi + 0xc]
jmp 0x436887
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x43689f
test byte [edi + 0x15], 8
je 0x43689a
mov eax, edi
call fcn.004015f0
lea eax, [edi + 0xc]
jmp 0x4368a4
mov eax, 0x4f3e84
mov dword [eax], 0
cmp byte [esi + 0x17], 0
jne 0x4368b3
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x4368d5
cmp dword [0x4f2354], 0
je 0x4368d5
push 1
mov ecx, 0x4f2348
call fcn.004049f0
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 0x437700
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x8000
call fcn.004c6f60
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push esi
mov esi, dword [0x4f0b10]
push edi
push 0x7fff
lea eax, [esp + 0x10]
push eax
push ebx
call ebp
mov edi, eax
cmp edi, 0x7fff
jb 0x4377b4
push 1
push 1
lea ecx, [edi - 1]
push ecx
push 0
push esi
call fcn.004a5c20
test eax, eax
jne 0x437752
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
push edi
push 0
push 1
mov ecx, esi
call fcn.004016d0
push eax
push ebx
call ebp
test eax, eax
jne 0x437773
push eax
push 1
mov ecx, esi
call fcn.004016d0
mov byte [eax], 0
cmp byte [esi + 0x17], 0
jne 0x43777c
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x4377a1
cmp dword [0x4f2354], 0
je 0x4377a1
push 1
mov ecx, 0x4f2348
call fcn.004049f0
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 0x4377c1
mov eax, 0x4d6959
push 1
push 0
push edi
push eax
push esi
call fcn.004a5c20
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
Function at 0x438b30
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 [0x4f22e4]
push ebx
push eax
push str.__s_s
mov esi, 0x800
call fcn.004a2f10
mov esi, eax
lea ecx, [esi + 1]
add esp, 0xc
cmp ecx, 0x800
jg 0x438b85
lea edx, [edi + 1]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x438b85
mov ecx, dword [esp + 0x14]
mov word [esi + edi], 0x22
mov eax, dword [0x4f22e4]
pop edi
pop esi
mov dword [ecx], eax
mov al, 1
pop ebp
ret
push ebp
call fcn.00439210
add esp, 4
test eax, eax
je 0x438bd3
push ebx
push ebp
push str.__s_s
mov esi, 0x800
call fcn.004a2f10
mov esi, eax
lea eax, [esi + 1]
add esp, 0xc
cmp eax, 0x800
jg 0x438bd3
lea ecx, [edi + 1]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x438bd3
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 0x438be0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x1114
call fcn.004c6f60
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], 0x4d6959
call fcn.00438b30
add esp, 8
test al, al
jne 0x438c1e
pop edi
pop esi
pop ebp
add esp, 0x1114
ret
cmp byte [esp + 0x1124], 0
je 0x438c90
push 0x4dd90c
call fcn.0049be50
mov edx, dword [esp + 0x18]
add esp, 4
push eax
push edx
push str.__s_s
mov esi, 0x800
lea edi, [esp + 0x12c]
call fcn.004a2f10
mov esi, eax
lea eax, [esi + 1]
add esp, 0xc
cmp eax, 0x800
jg 0x438c90
lea ecx, [esp + 0x121]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x438c90
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 0
push 0
push 0
push eax
push 0x4f1cd8
mov edx, ebp
call fcn.0042e1d0
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebp
add esp, 0x1114
ret
Function at 0x439210
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
push 0x4ddae4
call fcn.0049be50
push 0x4ddaf8
mov esi, eax
call fcn.0049be50
add esp, 8
lea ecx, [esp + 0x14]
push ecx
mov edx, edi
or edx, 1
push edx
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
test eax, eax
je 0x43925d
mov byte [esp + 0x18], bl
xor eax, eax
jmp 0x4392db
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
push ebx
push esi
push edx
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x439255
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x439255
dec eax
mov dword [esp + 0x10], eax
cmp byte [esp + eax + 0x18], bl
jne 0x4392bf
cmp eax, ebx
je 0x4392db
lea ecx, [esp + 0x18]
lea esp, [esp]
cmp byte [ecx + eax - 1], bl
jne 0x4392b9
dec eax
jne 0x4392b0
mov dword [esp + 0x10], eax
jmp 0x4392d7
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x104
jb 0x4392d3
mov byte [esp + 0x18], bl
xor eax, eax
jmp 0x4392db
mov byte [esp + eax + 0x18], bl
cmp eax, ebx
jne 0x4392e9
cmp edi, ebx
jne 0x4392e9
mov edi, 0x100
jmp 0x439224
mov esi, dword [esp + 0x120]
cmp esi, ebx
je 0x43930a
lea ecx, [esp + 0x18]
mov edx, ecx
sub esi, edx
lea esp, [esp]
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
cmp dl, bl
jne 0x439300
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x43c780
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x11c
push ebx
push ebp
mov ebp, dword [0x4f0b10]
push edi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
xor ecx, ecx
mov eax, esi
call fcn.00412c00
add esp, 8
mov byte [esp + 0x13], al
test al, al
jne 0x43c81c
push 0
lea ebx, [esp + 0x18]
mov eax, esi
call fcn.0044d050
mov edi, eax
add esp, 4
test edi, edi
jne 0x43c7e0
push 1
push eax
push 0xffffffffffffffff
push 0x4d6959
push ebp
call fcn.004a5c20
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.0044d330
fstp st(0)
add esp, 8
lea eax, [esp + 0x18]
mov ebx, ebp
call fcn.004a5560
pop edi
pop ebp
pop ebx
add esp, 0x11c
ret 4
mov edx, dword [esp + 0x12c]
movzx ebx, byte [edx]
test ebx, 0xffffff80
jne 0x43c840
push 2
push ebx
call fcn.004bb66e
add esp, 8
test eax, eax
je 0x43c840
and bl, 0xdf
cmp bl, 0x50
je 0x43c853
xor eax, eax
cmp bl, 0x54
setne al
dec eax
and eax, 2
jmp 0x43c858
mov eax, 1
mov bl, byte [esp + 0x13]
push eax
call fcn.0044d280
add esp, 4
test al, al
mov eax, 0x4ddc58
jne 0x43c873
mov eax, 0x4ddc5c
push 1
push 0
push 0xffffffffffffffff
push eax
push ebp
call fcn.004a5c20
pop edi
pop ebp
pop ebx
add esp, 0x11c
ret 4
Function at 0x43c890
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ccb1e
push eax
mov dword fs:[0], esp
sub esp, 0x134
push esi
mov esi, ecx
mov ecx, dword [0x4f0b10]
push edi
call fcn.0041a480
test esi, esi
je 0x43ca46
cmp byte [esi], 0
je 0x43ca46
push 0x104
lea eax, [esp + 0x34]
push esi
push eax
call fcn.004bd1c0
lea eax, [esp + 0x3c]
add esp, 0xc
mov byte [esp + 0x134], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43c8f3
sub eax, edx
cmp byte [esp + eax + 0x2f], 0x5c
lea ecx, [esp + eax + 0x30]
je 0x43c91b
inc eax
cmp eax, 0x105
jae 0x43ca46
mov byte [ecx], 0x5c
mov byte [esp + eax + 0x30], 0
test byte [0x4f4dc8], 1
jne 0x43c971
or dword [0x4f4dc8], 1
push 0x4ddc60
mov dword [esp + 0x148], 0
call fcn.0049be50
add esp, 4
push eax
push str.____9w
call fcn.0049be50
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4f4dc4], eax
mov dword [esp + 0x144], 0xffffffff
jmp 0x43c976
mov eax, dword [0x4f4dc4]
test eax, eax
je 0x43c9c4
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x3c]
push edx
call eax
test eax, eax
je 0x43ca46
cmp byte [ebp + 0xc], 0
je 0x43c9b1
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x43ca06
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x43ca06
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x43ca46
cmp byte [ebp + 0xc], 0
mov eax, dword [esp + 0x14]
jne 0x43c9f5
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 edx, dword [0x4f13d8]
push 1
push 0
push 0xffffffffffffffff
push 0x4d69c8
push edx
call fcn.004a5c20
mov eax, dword [0x4f0b10]
push 0x18
push edi
push esi
call fcn.00401570
mov eax, 1
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4ec48c]
test byte [eax + 0xe0], 1
jne 0x43ca81
mov ecx, dword [0x4f13d8]
push 1
push 0
push 0xffffffffffffffff
push 0x4d9220
push ecx
call fcn.004a5c20
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push 0x4d6959
push 0
push 0x4d9220
call fcn.0042d070
mov ecx, dword [esp + 0x13c]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x43e8c0
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push edi
call ebx
test eax, eax
jne 0x43e8ed
cmp byte [0x4f22ec], al
je 0x43e994
call fcn.00409b80
pop ebx
add esp, 0x10c
ret
cmp byte [0x4f22ec], 0
push ebp
push esi
mov esi, 0x4f13e0
jne 0x43e901
lea esi, [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
push 0x104
call ebp
test eax, eax
je 0x43e95c
cmp byte [edi], 0
je 0x43e972
cmp byte [edi + 1], 0x3a
jne 0x43e972
cmp byte [edi + 2], 0
jne 0x43e972
push esi
push edi
call fcn.004ba135
add esp, 8
test eax, eax
je 0x43e972
push edi
lea eax, [esp + 0x10]
push 0x4ddfd8
push eax
call fcn.004ba66c
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
call ebx
test eax, eax
je 0x43e972
push esi
push 0x104
call ebp
test eax, eax
jne 0x43e972
push 0x103
push edi
push esi
call fcn.004bd1c0
mov byte [esi + 0x103], 0
add esp, 0xc
cmp byte [0x4f22ec], 0
pop esi
pop ebp
je 0x43e994
mov edx, dword [0x4f13d8]
push 1
push 0
push 0xffffffffffffffff
push 0x4d69c8
push edx
call fcn.004a5c20
pop ebx
add esp, 0x10c
ret