joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407cd8
Capabilities:
Identify system language via api

Disassembly:
push ebx
xor eax, eax
push eax
call fcn.0042f150
push dword [esp + 0xc]
call fcn.004176e0
push edx
call fcn.0042efb0
pop edx
push eax
push edx
call fcn.0042efb0
pop edx
push eax
call sub.KERNEL32.dll_GetUserDefaultLangID
cdq
push edx
push eax
call fcn.0042cc40
lea eax, [esp + 4]
push eax
call fcn.0042f050
push dword [esp]
call fcn.0042ccc0
mov ebx, eax
cmp ebx, 3
jne 0x407d47
push edx
call fcn.0042efb0
pop edx
push eax
mov edx, 0x47b40e
push edx
call fcn.0042eff0
mov edx, dword [esp + 4]
push edx
call fcn.0042eff0
lea eax, [esp + 4]
push eax
call fcn.0042f050
mov edx, dword [esp]
push edx
call fcn.0042efb0
pop edx
push eax
push edx
call fcn.0042eff0
pop eax
push eax
call fcn.004176b0
pop edx
add eax, edx
jmp 0x407d6e
push dword [esp]
call fcn.0042f1e0
add esp, 4
pop ebx
ret

Function at 0x40ad7c
Capabilities:
Check os version

Disassembly:
push ebp
push ebx
mov edx, 0x14
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40ad83
call fcn.0042f150
mov edx, dword [esp + 0x5c]
lea ecx, [esp]
call fcn.00417000
call sub.KERNEL32.dll_GetVersion
mov ebx, eax
and ebx, 0xffff
and ebx, 0xff
mov dword [esp + 4], ebx
mov ebx, dword [esp + 4]
cmp ebx, 5
jge 0x40adcb
mov eax, 2
jmp 0x40ae81
mov ebp, 0x4d0307
mov dword [esp + 0x48], ebp
push edx
call fcn.0042efb0
pop edx
push eax
push edx
call fcn.0042efb0
pop edx
push eax
push 0x208
call fcn.0042c6b0
lea eax, [esp + 0x50]
push eax
call fcn.0042f050
push 0x19
push dword [esp + 4]
call fcn.0042ccc0
mov ebx, eax
inc ebx
push ebx
push dword [esp + 8]
mov eax, dword [esp + 0x58]
push eax
call fcn.0042dda0
lea ebp, [esp + 0x38]
mov dword [ebp], 0x10
mov dword [ebp + 8], 0
mov eax, dword [esp + 0x4c]
push eax
pop eax
mov dword [ebp + 4], eax
lea ebp, [esp + 8]
mov dword [ebp], 0x30
mov dword [ebp + 0xc], 2
mov dword [ebp + 0x14], 1
mov dword [ebp + 0x10], 0
lea eax, [esp + 0x38]
push eax
pop eax
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x28], 0x210
lea eax, [esp + 8]
push eax
push dword [esp + 0x4c]
push 0
call sub.WINTRUST.dll_WinVerifyTrust
jmp 0x40ae81
push dword [esp]
call fcn.0042f1e0
push dword [esp + 0x4c]
call fcn.0042f1e0
add esp, 0x50
pop ebx
pop ebp
ret 4
Function at 0x417e11
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x417ea9
push edi
push 0x5248b4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x523a98]
test edi, edi
je 0x417e7d
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x417e76
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x523a98
call fcn.0042ee97
pop ecx
pop ecx
jmp 0x417e78
mov edi, dword [edi]
test edi, edi
jne 0x417e4d
pop ebx
mov eax, dword [0x51ffc4]
mov esi, eax
inc eax
push 0x10
push 0x523a98
mov dword [0x51ffc4], eax
call fcn.0042eed7
pop ecx
pop ecx
push 0x5248b4
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8

Function at 0x418cb5
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x418d0a
push dword [esp + 0x10]
push 0x418c34
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x523ae4]
test esi, esi
je 0x418d63
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x418d02
cmp byte [esi + 0x10], 0
je 0x418d02
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x418cde
jmp 0x418d63
mov esi, dword [0x523ae4]
test esi, esi
je 0x418d63
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x418d5c
cmp byte [esi + 0x11], 0
je 0x418d38
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x418d4f
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x523ae4
call fcn.0042ee97
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x418d17
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x418e67
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x524c08]
call fcn.0042e4b6
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x418f67
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x418ebd
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x418eb5
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x418efd
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x418f3f
push 0x22
pop edx
cmp cx, dx
je 0x418eef
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x418edf
xor ecx, ecx
cmp word [eax], cx
je 0x418f3f
mov ecx, eax
add eax, 2
jmp 0x418f41
test dx, dx
je 0x418f47
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x418eef
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x418f35
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x418f3f
cmp cx, dx
je 0x418f32
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x418f22
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x418f07
jmp 0x418eef
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x418f49
xor edx, edx
cmp dword [ebp], ebx
jne 0x418f52
test edi, edi
jne 0x418f6f
test edx, edx
je 0x418f57
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x418eab
test edi, edi
jne 0x418f80
mov eax, ebx
jmp 0x418f84
test esi, esi
je 0x418f80
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x418f84
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x4195fd
Capabilities:
Read file on windows

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x419651
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push 0
push eax
mov eax, dword [esp + 0x20]
sub eax, esi
push eax
lea eax, [esi + ebp]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41963f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x41964b
add esi, dword [esp + 0x10]
cmp esi, dword [esp + 0x18]
jl 0x419610
jmp 0x41964f
add esi, dword [esp + 0x10]
pop ebp
pop ebx
mov eax, esi
pop esi
ret 0xc
Function at 0x41a2af
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
push 0x41a1fe
push 0x10
push 0x2c
call fcn.0042e835
xor esi, esi
mov dword [0x523af8], eax
push esi
push esi
push 8
call fcn.0042e521
mov dword [0x524c30], eax
cmp word [0x523af0], si
jne 0x41a398
push edi
lea eax, [esp + 8]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
inc edi
test eax, eax
jne 0x41a307
mov word [0x523af0], di
jmp 0x41a30f
xor eax, eax
mov word [0x523af0], ax
push 0x800
push esi
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x523b0c], eax
test eax, eax
je 0x41a397
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0x523b0c]
mov dword [0x523afc], eax
call esi
push str.getnameinfo
push dword [0x523b0c]
mov dword [0x523b00], eax
call esi
push str.WSAStringToAddressA
push dword [0x523b0c]
mov dword [0x523b04], eax
call esi
cmp dword [0x523afc], 0
mov dword [0x523b08], eax
je 0x41a397
cmp dword [0x523b00], 0
je 0x41a397
cmp dword [0x523b04], 0
je 0x41a397
test eax, eax
je 0x41a397
mov dword [0x523af4], edi
pop edi
pop esi
add esp, 0x190
ret

Function at 0x41ab90
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x523b10], 0
jne 0x41ab9e
call fcn.0041ab30
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x523b14]
call esi
test eax, eax
jne 0x41abc1
call fcn.0041ab30
push dword [0x523b14]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x41abd0
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x41ac30
mov ebx, 0x10
test edi, edi
jns 0x41ac39
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x41ac02
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x41bda4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x5248a8]
call fcn.0042e762
mov ebx, eax
test ebx, ebx
je 0x41be08
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x41bdcd
push dword [esp + 0xc]
push ebx
call eax
jmp 0x41be08
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.0042f410
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 sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.0042f4f0
pop edi
pop esi
pop ebx
ret 8

Function at 0x41d0cf
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push dword [0x524c44]
call fcn.0042e4b6
xor ebx, ebx
mov ebp, eax
cmp dword [0x523d78], ebx
jne 0x41d163
mov esi, 0xa4
push esi
push ebx
push 0x523d80
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x523d84], esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [0x523d80], 0xa
mov dword [0x523d88], 0x41cc64
push 0x7f89
push ebx
mov dword [0x523df8], 0x41f410
mov dword [0x523dfc], 0x41f3ea
mov dword [0x523d8c], 0x41cc83
mov dword [0x523e10], 0x41cca3
call esi
mov dword [0x523d78], eax
test eax, eax
jne 0x41d163
push 0x7f00
push ebx
call esi
mov dword [0x523d78], 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.0042416c
push ebx
push dword [0x5233e8]
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 0x41d22f
push edi
push dword [esp + 0x14]
push dword [0x5248a8]
call fcn.0042e7a1
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 [0x5233e4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0x523d80
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.0041f359
push 0x41cd89
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 0x41fb98
Capabilities:
Check os version

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
xor ebx, ebx
mov esi, 0xc8
and dword [esp + 0x10], ebx
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41fd0e
mov eax, dword [esp + 0x24]
dec eax
je 0x41fcf1
dec eax
jne 0x41fd0e
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.0041fb51
pop ecx
test eax, eax
je 0x41fc4f
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x41fc12
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x41fced
dec ebx
je 0x41fce9
dec ebx
je 0x41fcc8
dec ebx
je 0x41fc82
sub ebx, 4
jne 0x41fd0e
test edi, edi
jne 0x41fd0e
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x41fd0e
lea eax, [esp + 0x244]
mov dword [esp + 0x244], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x41fc12
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x41fc0d
sub edi, 0
je 0x41fcba
dec edi
je 0x41fcac
dec edi
je 0x41fc9e
dec edi
jne 0x41fd0e
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x41fd0e
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x41fd0e
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x41fd0e
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x41fd0e
sub edi, 0
je 0x41fce5
dec edi
je 0x41fce1
dec edi
jne 0x41fd0e
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x41fd0e
push 0x3c
jmp 0x41fd0d
push 0x32
jmp 0x41fd0d
push 0x14
jmp 0x41fd0d
push 5
jmp 0x41fd0d
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41fd0b
cmp eax, 0xa
je 0x41fd07
cmp eax, 0x5a
jne 0x41fd0e
push 0x28
jmp 0x41fd0d
push 0x1e
jmp 0x41fd0d
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x420015
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x5248ac]
call fcn.0042e762
mov esi, eax
test esi, esi
je 0x4200ef
cmp dword [ebp + 0xc], 0
je 0x420061
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x420052
cmp dword [esi + 0x1c], 0
jne 0x420052
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4200ef
test byte [ebp + 0x10], 3
je 0x42007c
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.004207cc
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x4200a1
xor ebx, ebx
cmp dword [esi + 0x3c], 0x1000000
sete bl
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x4200b5
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov ebx, eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
test dword [ebp + 0x10], 0x2000000
je 0x4200d2
test ebx, ebx
je 0x4200c6
push 8
jmp 0x4200d8
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x4200e5
test ebx, ebx
je 0x4200db
push 3
pop ecx
jmp 0x4200e5
xor eax, eax
test ecx, ecx
setne al
lea ecx, [eax + 1]
push ecx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x4211c8
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 0x421260
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x42125d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x42125d
lea eax, [esi - 1]
push eax
push dword [0x5248ac]
call fcn.0042e762
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x42125f
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x421254
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x421347
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x42123a
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x421306
push eax
call esi
test al, al
jns 0x421306
push 0x11
call esi
test al, al
js 0x421306
push 0x10
call esi
test al, al
js 0x421306
push 0x12
call esi
test al, al
js 0x421306
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x421306
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x4212da
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x4212f1
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x421351
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x421351
test ebp, ebp
je 0x42132a
push 0x11
call esi
test al, al
js 0x421322
push 0x10
call esi
test al, al
js 0x421322
push 0x12
call esi
test al, al
jns 0x42132a
push 1
push ebp
call fcn.0042135d
test ebx, ebx
je 0x42133e
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x421351
test edi, edi
je 0x421351
mov eax, dword [edi + 8]
jmp 0x421353
and dword [esp + 0x14], 0
jmp 0x42125f
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x4214bc
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 0x421604
xor ecx, ecx
cmp word [eax], cx
je 0x421604
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x421515
cmp eax, 3
jne 0x42154f
cmp word [esp + 0xa], 0x3a
jne 0x42154f
cmp eax, 2
jne 0x421533
lea eax, [esp + 8]
push 0x4715c0
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x421604
push 0xfffffffffffffffe
pop edi
jmp 0x421604
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x421564
cmp ax, bx
jne 0x42156e
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x421557
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x4215ad
test byte [esp + 0x21c], 0x10
je 0x421594
push 0xfffffffffffffffe
pop edi
jmp 0x4215a4
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x421602
cmp word [esp + 0x10], bp
jne 0x4215bb
cmp word [esp + 0x12], bp
je 0x4215da
cmp word [esp + 0x10], bx
jne 0x4215c9
cmp word [esp + 0x12], bx
je 0x4215da
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x421602
cmp word [esp + 0x12], ax
jne 0x421602
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x4215ef
test al, 0x10
je 0x421602
jmp 0x4215ff
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x421602
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 0x421635
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x4216ad
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x42168e
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x42168b
cmp ecx, 0x5c
je 0x42168b
cmp ecx, 0x2f
jne 0x421698
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x421678
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4216af
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x42199c
Capabilities:
Set file attributes

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x4219aa
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 8

Function at 0x4219ad
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x4219d6
test byte [esp + 8], 2
je 0x4219ca
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 0x4219d8
xor eax, eax
ret 8

Function at 0x421b37
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x421c0c
push ebx
push edi
push pe_nt_image_headers32
push 3
push edi
push 3
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x421c0b
push esi
mov esi, dword [ebp + 0x10]
push esi
call fcn.00424200
push esi
mov word [ebp - 0x20], ax
call fcn.00424226
push esi
mov word [ebp - 0x1e], ax
call fcn.00424248
push esi
mov word [ebp - 0x1c], ax
call fcn.00424269
push esi
mov word [ebp - 0x1a], ax
call fcn.0042428a
push esi
mov word [ebp - 0x18], ax
call fcn.004242ab
push esi
mov word [ebp - 0x16], ax
call fcn.004242cc
mov word [ebp - 0x14], ax
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
cmp dword [ebp + 0xc], 1
mov eax, edi
mov ecx, edi
pop esi
jne 0x421bea
lea eax, [ebp - 8]
jmp 0x421bf8
cmp dword [ebp + 0xc], 2
jne 0x421bf5
lea ecx, [ebp - 8]
jmp 0x421bf8
lea edi, [ebp - 8]
push ecx
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x421fe0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x42201c
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x422580
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x4225e5
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4225dd
push dword [esp + 0x10]
push dword [0x524c78]
call fcn.0042e762
test eax, eax
je 0x4225d3
cmp dword [eax + 4], 0
je 0x4225c2
push edi
push esi
push eax
call fcn.00422b50
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc