joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c6ac
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41c749
push ebx
push esi
call fcn.0041c668
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041c8de
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41c6f6
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41c748
push edi
push eax
call fcn.0041545b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41c716
call fcn.00414490
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41c747
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041c8de
add esp, 0x20
test eax, eax
jne 0x41c735
push edi
call fcn.00414490
jmp 0x41c73d
push ebx
call fcn.00414490
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41c74c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41c75d
pop esi
ret
push ebx
push edi
push esi
call fcn.0041c668
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0041545b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41c785
push ebx
push esi
push edi
call fcn.004291c0
add esp, 0xc
push 0
call fcn.00414490
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x41d0b3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041cbaa
Function at 0x42422b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x579280]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42426b
cmp byte [ebx], 0xa
jne 0x42426b
or byte [edi + eax + 0x28], 4
jmp 0x424270
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x42436f
mov dl, byte [eax]
cmp dl, 0x1a
je 0x424352
inc eax
cmp dl, 0xd
je 0x42429c
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4242c2
cmp eax, ecx
jae 0x4242d0
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x424284
jmp 0x42436f
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42434d
cmp dword [ebp - 0x10], 0
je 0x42434d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x579280]
test byte [eax + edi + 0x28], 0x48
je 0x424327
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x424312
mov byte [esi], dl
jmp 0x424323
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x579280]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42436f
cmp byte [ebp - 1], 0xa
jne 0x424336
cmp esi, ebx
jne 0x424336
mov byte [esi], 0xa
jmp 0x42436e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00425324
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42436f
mov byte [esi], 0xd
jmp 0x42436e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x579280]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42436c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42436f
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x424378
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x579280]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4243be
cmp word [ebx], dx
jne 0x4243be
or byte [eax + edi + 0x28], 4
jmp 0x4243c3
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x424526
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x424506
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x424404
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42443a
cmp eax, edx
jae 0x424448
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4243df
jmp 0x424526
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x424501
cmp dword [ebp - 0x18], 0
je 0x424501
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x579280]
test byte [eax + edi + 0x28], 0x48
je 0x4244d7
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x42449b
mov word [esi], cx
jmp 0x4244d2
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x579280]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x579280]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x579280]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x424526
pop eax
cmp word [ebp - 4], ax
jne 0x4244e7
cmp esi, ebx
jne 0x4244e7
mov word [esi], ax
jmp 0x424523
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00425324
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x424526
push 0xd
pop eax
jmp 0x4244e2
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x579280]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x424520
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x424526
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4325cc
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x432621
push dword [esp + 0x10]
push 0x43254b
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [0x5795e0]
test edi, edi
je 0x43267a
xor esi, esi
mov ebx, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x432619
cmp byte [edi + 0x10], 0
je 0x432619
push 3
push esi
push esi
push esi
push esi
push 0xfffffffffffffffe
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, ebx
test ebx, ebx
jne 0x4325f5
jmp 0x43267a
mov edi, dword [0x5795e0]
test edi, edi
je 0x43267a
xor esi, esi
push ebp
mov ebp, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x432673
cmp byte [edi + 0x11], 0
je 0x43264c
push 1
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [edi + 0x10], 0
je 0x432663
push 3
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [edi + 8]
push eax
push 0x5795e0
call fcn.004498e4
pop ecx
pop ecx
mov edi, ebp
test ebp, ebp
jne 0x43262e
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x43277a
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push dword [0x57a5e8]
call fcn.00448f95
mov esi, eax
or ebx, 0xffffffff
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebp, dword [esp + 0x28]
mov edx, eax
movzx ecx, word [edx]
test cx, cx
je 0x4328b7
mov eax, dword [esi]
mov edi, ecx
mov esi, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0x20
push 0x22
pop ecx
movzx eax, di
cmp di, word [esp + 0x18]
jne 0x4327e0
push 0x20
pop edi
add edx, 2
movzx eax, word [edx]
cmp ax, di
je 0x4327d5
mov dword [esp + 0x14], 1
cmp ax, cx
jne 0x43281a
add edx, 2
mov edi, edx
movzx eax, word [edx]
mov ebx, eax
test ax, ax
je 0x432874
push 0x22
mov ecx, eax
pop esi
movzx ebx, cx
cmp cx, si
je 0x432874
add edx, 2
movzx eax, word [edx]
mov ecx, eax
mov ebx, eax
test ax, ax
jne 0x432801
jmp 0x432874
test ax, ax
je 0x432887
push 0x20
mov edi, edx
movzx eax, ax
pop ebp
movzx ebx, ax
cmp ax, bp
je 0x432870
add edx, 2
push 0x22
pop ebx
movzx eax, word [edx]
mov ecx, eax
cmp ax, bx
jne 0x432865
add edx, 2
movzx eax, word [edx]
mov ecx, eax
test ax, ax
je 0x432865
mov esi, eax
movzx ecx, si
cmp si, bx
je 0x432865
add edx, 2
movzx eax, word [edx]
mov esi, eax
mov ecx, eax
test ax, ax
jne 0x43284e
movzx eax, cx
movzx ebx, cx
test cx, cx
jne 0x432827
mov ebp, dword [esp + 0x28]
test bx, bx
lea eax, [edx + 2]
mov ebx, dword [esp + 0x10]
mov esi, edx
cmove eax, edx
mov edx, eax
jmp 0x43288e
and dword [esp + 0x14], 0
xor edi, edi
cmp dword [esp + 0x1c], ebx
jne 0x432898
test ebp, ebp
jne 0x4328bf
cmp dword [esp + 0x14], 0
lea eax, [ebx + 1]
movzx ecx, word [edx]
cmove eax, ebx
mov edi, ecx
mov ebx, eax
mov dword [esp + 0x10], ebx
test cx, cx
jne 0x4327c5
test ebp, ebp
jne 0x4328d4
mov eax, ebx
jmp 0x4328da
test edi, edi
je 0x4328d4
mov eax, dword [esp + 0x20]
sub esi, edi
sar esi, 1
mov dword [ebp], esi
inc dword [eax]
mov eax, edi
jmp 0x4328da
and dword [ebp], 0
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x43307f
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
cmp dword [esp + 0x24], 0x18
mov ebx, eax
je 0x43313e
cmp dword [esp + 0x24], 2
je 0x43313e
push 0x2000
push ebp
push dword [0x577ce4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
jmp 0x43310d
cmp dword [esp + 0x18], 2
jne 0x433129
cmp dword [esp + 0x28], 0xffffffff
je 0x4330d1
cmp ebp, dword [esp + 0x28]
jae 0x433129
add ebp, 2
test ebx, ebx
jne 0x4330f6
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x577ce4]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x433129
cmp ax, 0xd
je 0x43310d
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4330bd
push dword [esp + 0x2c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.00482c60
jmp 0x4331d0
push eax
push 0
push dword [0x577ce4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp dword [esp + 0x28], 0xffffffff
je 0x43315c
cmp ebp, dword [esp + 0x28]
jae 0x4331b4
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4331b4
cmp dword [esp + 0x18], 1
jne 0x4331b4
inc ebp
test ebx, ebx
jne 0x4331a1
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x577ce4]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x4331b4
cmp al, 0xd
je 0x43314f
mov byte [esi + edi], al
inc edi
dec ebx
jmp 0x43314f
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x2c]
mov byte [esi + edi], 0
push esi
jne 0x4331cb
call fcn.00482cb0
jmp 0x4331d0
call fcn.00482ee0
push esi
push 0
push dword [0x577ce4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x433f74
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x433ec7
push 0x10
push 0x2c
call fcn.004491d9
push 0
push 0
push 8
mov dword [0x579604], eax
call fcn.00449000
cmp word [0x5795fc], 0
mov dword [0x57a610], eax
jne 0x434054
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
push str.ws2_32.dll
sbb eax, eax
inc eax
mov word [0x5795fc], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x579608], eax
test eax, eax
je 0x434054
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0x579608]
mov dword [0x5795ec], eax
call esi
push str.getnameinfo
push dword [0x579608]
mov dword [0x5795f0], eax
call esi
push str.WSAStringToAddressA
push dword [0x579608]
mov dword [0x5795f4], eax
call esi
cmp dword [0x5795ec], 0
mov ecx, eax
mov dword [0x5795f8], ecx
pop esi
je 0x434054
cmp dword [0x5795f0], 0
je 0x434054
cmp dword [0x5795f4], 0
je 0x434054
mov eax, dword [0x579600]
xor edx, edx
inc edx
test ecx, ecx
cmovne eax, edx
mov dword [0x579600], eax
add esp, 0x190
ret
Function at 0x4365ff
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push 0
push 0
push 0x1304
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x436671
push ebp
mov ebp, dword [esp + 0x10]
mov ecx, ebp
and ecx, dword [esp + 0x14]
push esi
push edi
push dword [ebx]
cmp ecx, 0xffffffff
cmove ebp, eax
call fcn.00435d70
push ebp
push dword [ebx]
mov edi, eax
call fcn.00435d49
add esp, 0xc
mov esi, eax
push 0
push ebp
push 0x130c
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
push dword [ebx]
call fcn.00436691
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x43994a
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push dword [0x57a628]
call fcn.00448f95
xor ebx, ebx
mov ebp, eax
cmp dword [0x579b50], ebx
jne 0x4399de
mov esi, 0xa8
push esi
push ebx
push 0x579aa8
call fcn.00425a40
add esp, 0xc
mov dword [0x579aac], esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [0x579aa8], 0xa
mov dword [0x579ab0], 0x4394d8
push 0x7f89
push ebx
mov dword [0x579b20], 0x43b936
mov dword [0x579b24], 0x43b910
mov dword [0x579ab4], 0x4394f7
mov dword [0x579b38], 0x439517
call esi
mov dword [0x579b50], eax
test eax, eax
jne 0x4399de
push 0x7f00
push ebx
call esi
mov dword [0x579b50], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00440754
push ebx
push dword [0x577ce8]
push 0xffffffffffffffff
push dword [ebp]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push 0x40000000
push dword [esp + 0x48]
push str.STATIC
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x439aaa
push edi
push dword [esp + 0x14]
push dword [0x57a644]
call fcn.00449145
mov edi, eax
push 8
or dword [edi + 0x10], 0xffffffff
call dword [sym.imp.USER32.dll_GetSysColor]
push 0x14
push 0
mov dword [edi + 0x14], eax
push dword [0x577ce4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0x579aa8
push ebx
push edi
push dword [esp + 0x20]
mov dword [esi], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0xc], ecx
mov byte [esi + 0x10], 0
mov dword [edi + 0x1c], esi
call fcn.0043b04e
push 0x4395fd
push 0xfffffffffffffffc
push dword [edi]
mov ebx, eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 1
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 0x20

Function at 0x43a7fc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x57a644]
call fcn.00449107
mov ebx, eax
test ebx, ebx
je 0x43a860
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x43a825
push dword [esp + 0xc]
push ebx
call eax
jmp 0x43a860
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.00449d30
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call fcn.0041acbf
pop ecx
sub edi, eax
push edi
call fcn.00449dc0
pop edi
pop esi
pop ebx
ret 8
Function at 0x43bcdb
Capabilities:
Check os version

Disassembly:
sub esp, 0x34c
push ebp
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x114
push eax
mov esi, 0xc8
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x43be44
mov eax, dword [esp + 0x1c]
sub eax, 1
je 0x43be27
sub eax, 1
jne 0x43be44
lea eax, [esp + 0x120]
xor edi, edi
push eax
call fcn.0043bc94
pop ecx
test eax, eax
je 0x43bd52
cmp byte [esp + 0x23a], 1
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x128]
mov ebp, dword [esp + 0x12c]
jne 0x43bd88
inc edi
jmp 0x43bd88
lea eax, [esp + 0x23c]
mov dword [esp + 0x23c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x43be44
mov ecx, dword [esp + 0x10]
xor edx, edx
mov eax, dword [esp + 0x14]
inc edx
cmp byte [esp + 0x356], dl
cmove edi, edx
sub ecx, 3
je 0x43be23
sub ecx, 1
je 0x43be1f
sub ecx, 1
je 0x43be01
sub ecx, 1
je 0x43bdc5
sub ecx, 4
jne 0x43be44
test eax, eax
jne 0x43be44
cmp ebp, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x43be44
sub eax, 0
je 0x43bdf4
sub eax, 1
je 0x43bde7
sub eax, 1
je 0x43bde0
sub eax, 1
jne 0x43be44
push 0x69
pop esi
push 0x64
jmp 0x43bdf9
push 0x5a
pop esi
push 0x5f
jmp 0x43bdec
push 0x50
pop esi
push 0x55
test edi, edi
pop eax
cmove esi, eax
jmp 0x43be44
push 0x4b
pop esi
push 0x46
test edi, edi
pop eax
cmovne esi, eax
jmp 0x43be44
sub eax, 0
je 0x43be1b
sub eax, 1
je 0x43be17
sub eax, 1
jne 0x43be44
push 0x41
pop esi
push 0x3c
jmp 0x43bdf9
push 0x3c
jmp 0x43be43
push 0x32
jmp 0x43be43
push 0x14
jmp 0x43be43
push 5
jmp 0x43be43
mov eax, dword [esp + 0x14]
test eax, eax
je 0x43be41
cmp eax, 0xa
je 0x43be3d
cmp eax, 0x5a
jne 0x43be44
push 0x28
jmp 0x43be43
push 0x1e
jmp 0x43be43
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x34c
ret
Function at 0x43d10c
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x43d1a2
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x43d19f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x43d19f
lea eax, [esi - 1]
push eax
push dword [0x57a658]
call fcn.00449107
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x43d1a1
mov ecx, dword [edi + 4]
add ecx, 4
pop esi
cmp word [ecx - 2], si
jne 0x43d18f
mov edx, 0xfa01
cmp word [ecx], dx
je 0x43d19a
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x43d17f
jmp 0x43d19f
and dword [esp + 0x10], 0
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x43d248
push eax
call esi
test al, al
jns 0x43d248
push 0x11
call esi
test al, al
js 0x43d248
push 0x10
call esi
test al, al
js 0x43d248
push 0x12
call esi
test al, al
js 0x43d248
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x43d248
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call fcn.0041c3c3
add esp, 0xc
test eax, eax
je 0x43d21c
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call fcn.0041c3c3
add esp, 0xc
test eax, eax
jne 0x43d233
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x43d289
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call fcn.00499036
pop ecx
pop ecx
test eax, eax
je 0x43d289
test ebp, ebp
je 0x43d26c
push 0x11
call esi
test al, al
js 0x43d264
push 0x10
call esi
test al, al
js 0x43d264
push 0x12
call esi
test al, al
jns 0x43d26c
push 1
push ebp
call fcn.0043d295
test ebx, ebx
je 0x43d280
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x43d289
test edi, edi
je 0x43d289
mov eax, dword [edi + 8]
jmp 0x43d28b
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x43d7f2
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x43d93a
xor ecx, ecx
cmp word [eax], cx
je 0x43d93a
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00498ff6
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call fcn.0041acbf
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x43d84b
cmp eax, 3
jne 0x43d885
cmp word [esp + 0xa], 0x3a
jne 0x43d885
cmp eax, 2
jne 0x43d869
lea eax, [esp + 8]
push 0x4c3398
push eax
call fcn.00499098
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x43d93a
push 0xfffffffffffffffe
pop edi
jmp 0x43d93a
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x43d89a
cmp ax, bx
jne 0x43d8a4
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x43d88d
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x43d8e3
test byte [esp + 0x21c], 0x10
je 0x43d8ca
push 0xfffffffffffffffe
pop edi
jmp 0x43d8da
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x43d938
cmp word [esp + 0x10], bp
jne 0x43d8f1
cmp word [esp + 0x12], bp
je 0x43d910
cmp word [esp + 0x10], bx
jne 0x43d8ff
cmp word [esp + 0x12], bx
je 0x43d910
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x43d938
cmp word [esp + 0x12], ax
jne 0x43d938
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x43d925
test al, 0x10
je 0x43d938
jmp 0x43d935
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x43d938
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x43d949
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x43d972
test byte [esp + 8], 2
je 0x43d966
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x43d974
xor eax, eax
ret 8
Function at 0x43dcd3
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x43dd4b
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.00498ff6
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.0041acbf
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x43dd2c
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x43dd29
cmp ecx, 0x5c
je 0x43dd29
cmp ecx, 0x2f
jne 0x43dd36
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x43dd16
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x43dd4d
xor eax, eax
leave
ret 4