joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4213b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x4926cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x340
mov ebx, ecx
call fcn.00454627
mov esi, eax
add esp, 4
test esi, esi
je 0x4213f4
mov dword [esi], 0
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x134], 0xffffffff
jmp 0x4213f6
xor esi, esi
cmp dword [esi], 0
jne 0x4214c4
cmp dword [esi + 4], 0xffffffff
jne 0x4214c4
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x421420
mov eax, dword [0x4814f0]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ebx
mov dword [edi], eax
mov dword [ebp - 0x23c], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x23c], eax
cmp eax, 0xffffffff
je 0x4214bd
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
push 0x1c
sete bl
call fcn.00454627
mov edi, eax
add esp, 4
mov byte [edi], 1
mov byte [edi + 1], bl
mov ecx, dword [ebp - 0x23c]
mov dword [edi + 4], ecx
mov byte [edi + 8], 0
mov dword [edi + 0xc], 0
test bl, bl
je 0x4214ad
push 1
push 0
push 0
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [edi + 0xc], eax
mov ecx, edi
call fcn.004075f0
mov dword [esi], eax
mov eax, dword [0x495dd8]
jmp 0x4214c9
mov eax, 0x200
jmp 0x4214c9
mov eax, 0x1000000
mov dword [0x495ddc], eax
test eax, eax
je 0x4214ee
push esi
call fcn.00452ca1
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452ca6
mov esp, ebp
pop ebp
ret
push 8
call fcn.00454627
mov edi, eax
add esp, 4
lea eax, [ebp - 0x238]
mov dword [edi + 4], esi
push eax
xor edx, edx
mov ecx, edi
mov dword [edi], 1
xor esi, esi
call fcn.00409200
add esp, 4
test eax, eax
jne 0x421538
lea esp, [esp]
lea eax, [ebp - 0x238]
inc esi
push eax
mov edx, esi
mov ecx, edi
call fcn.00409200
add esp, 4
test eax, eax
je 0x421520
mov ecx, edi
call fcn.004094a0
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00452ca6
mov esp, ebp
pop ebp
ret
Function at 0x4215e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470c4e
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x4926cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx]
mov dword [ebp - 0x14], 0
cmp eax, 0xffffffff
je 0x421634
push 0
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x421634
mov eax, dword [ebp - 0x14]
jmp 0x4216b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4969d0]
mov esi, eax
test cl, 1
jne 0x421691
or ecx, 1
mov dword [0x4969d0], ecx
mov dword [ebp - 4], 0
sub esp, 8
mov dword [0x4969ac], 0
mov dword [0x4969b0], 0
mov dword [0x4969b4], 0
call fcn.00401b40
push 0x471ef0
call fcn.00453882
add esp, 4
mov dword [ebp - 4], 0xffffffff
push esi
push str.writeFile_erro___d
push str.Utils
push 0x2b6
push str.utilsUtils.cpp
push 4
push 0x496990
call fcn.00402130
add esp, 0x1c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00452ca6
mov esp, ebp
pop ebp
ret

Function at 0x4216e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4926cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
test ecx, ecx
je 0x421798
cmp word [ecx], 0
je 0x421798
push esi
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x421735
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452ca6
mov esp, ebp
pop ebp
ret
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jg 0x42175f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452ca6
mov esp, ebp
pop ebp
ret
push edi
mov ecx, ebx
call fcn.00403dc0
push 0
lea eax, [ebp - 8]
push eax
push edi
push dword [ebx]
mov dword [ebp - 8], 0
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452ca6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop ebx
call fcn.00452ca6
mov esp, ebp
pop ebp
ret
Function at 0x4217b0
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, ecx
mov eax, edx
mov dword [ebp - 8], eax
test ebx, ebx
je 0x42187b
test eax, eax
je 0x42187b
push esi
xor esi, esi
push edi
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
cmp word [ebx], si
je 0x421830
mov esi, ebx
lea ecx, [esi + 2]
lea ecx, [ecx]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4217f0
sub esi, ecx
sar esi, 1
push esi
lea ecx, [ebp - 0x1c]
call fcn.004045c0
mov edi, dword [ebp - 0x1c]
push esi
push ebx
push eax
push edi
call fcn.00454b08
xor eax, eax
add esp, 0x10
mov word [edi + esi*2], ax
test edi, edi
je 0x42182d
cmp word [edi], ax
je 0x42182d
mov esi, dword [ebp - 0x10]
mov eax, edi
jmp 0x421835
mov esi, dword [ebp - 0x10]
mov eax, 0x481274
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
sete byte [ebp - 1]
test edi, edi
je 0x421855
push edi
call fcn.004547da
add esp, 4
test esi, esi
je 0x421862
push esi
call fcn.004547da
add esp, 4
cmp byte [ebp - 1], 0
pop edi
pop esi
jne 0x42187b
push dword [ebp - 8]
push ebx
call fcn.00457d32
add esp, 8
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x17
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421dc0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4926cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.00421f10
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0045a8b0
mov esi, dword [0x4965f4]
add esp, 0xc
test esi, esi
je 0x421e09
cmp word [esi], 0
jne 0x421e0e
mov esi, 0x481274
push str..ini
mov ecx, 0x481d34
call fcn.00422030
push eax
push esi
push str._s_x_s
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.004573f2
xor edi, edi
xor esi, esi
add esp, 0x18
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], esi
cmp word [ebp - 0x210], si
je 0x421ec2
lea esi, [ebp - 0x210]
lea ecx, [esi + 2]
lea esp, [esp]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x421e70
sub esi, ecx
sar esi, 1
push esi
lea ecx, [ebp - 0x224]
call fcn.004045c0
mov edi, dword [ebp - 0x224]
push esi
lea ecx, [ebp - 0x210]
push ecx
push eax
push edi
call fcn.00454b08
xor eax, eax
add esp, 0x10
mov word [edi + esi*2], ax
test edi, edi
je 0x421ebc
cmp word [edi], ax
je 0x421ebc
mov esi, dword [ebp - 0x218]
mov eax, edi
jmp 0x421ec7
mov esi, dword [ebp - 0x218]
mov eax, 0x481274
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete bl
test edi, edi
je 0x421ee1
push edi
call fcn.004547da
add esp, 4
test esi, esi
je 0x421eee
push esi
call fcn.004547da
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00452ca6
mov esp, ebp
pop ebp
ret
Function at 0x4223d0
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470b30
mov eax, dword fs:[0]
push eax
sub esp, 0x33c
mov eax, dword [0x4926cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
push 0x206
mov dword [ebp - 4], 1
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0045a8b0
add esp, 0xc
lea ecx, [ebp - 0x344]
call fcn.00420110
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x422439
cmp word [ecx], 0
jne 0x42243e
mov ecx, 0x481274
mov eax, dword [eax]
test eax, eax
je 0x42244a
cmp word [eax], 0
jne 0x42244f
mov eax, 0x481274
push ecx
push eax
lea eax, [ebp - 0x218]
push 0x482780
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp - 0x344]
add esp, 0x10
test eax, eax
je 0x422483
push eax
call fcn.004547da
add esp, 4
mov dword [ebp - 0x344], 0
mov eax, dword [ebp - 0x338]
mov dword [ebp - 0x33c], 0
mov dword [ebp - 0x340], 0
test eax, eax
je 0x4224aa
push eax
call fcn.004547da
add esp, 4
push 0x114
lea eax, [ebp - 0x330]
push 0
push eax
call fcn.0045a8b0
add esp, 0xc
lea eax, [ebp - 0x330]
push eax
mov dword [ebp - 0x330], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4224f6
cmp dword [ebp - 0x32c], 6
jb 0x4224f6
lea ecx, [ebp - 0x218]
call fcn.00422d20
test eax, eax
setne bl
jmp 0x422527
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x422503
cmp word [eax], 0
jne 0x422508
mov eax, 0x481274
push 1
push 0
push eax
lea eax, [ebp - 0x218]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
setg bl
mov eax, dword [ebp + 8]
test eax, eax
je 0x42253e
push eax
call fcn.004547da
add esp, 4
mov dword [ebp + 8], 0
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x10], 0
mov dword [ebp + 0xc], 0
test eax, eax
je 0x42256a
push eax
call fcn.004547da
add esp, 4
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x18], 0
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x422581
push eax
call fcn.004547da
add esp, 4
mov dword [ebp + 0x1c], 0
mov eax, dword [ebp + 0x28]
mov dword [ebp + 0x24], 0
mov dword [ebp + 0x20], 0
test eax, eax
je 0x42259f
push eax
call fcn.004547da
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00452ca6
mov esp, ebp
pop ebp
ret
Function at 0x422a70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4926cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push str.SoftwareTencentWeChat
push SysReAllocString
mov esi, ecx
mov dword [ebp - 8], 0x400
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x422ae0
mov eax, dword [ebp + 8]
test eax, eax
je 0x422ab7
cmp word [eax], 0
jne 0x422abc
mov eax, 0x481274
lea ecx, [ebp - 8]
push ecx
push esi
push 0
push 0
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x422ae0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
jmp 0x422aeb
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
mov eax, dword [ebp + 8]
test eax, eax
je 0x422b02
push eax
call fcn.004547da
add esp, 4
mov dword [ebp + 8], 0
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x10], 0
mov dword [ebp + 0xc], 0
test eax, eax
je 0x422b20
push eax
call fcn.004547da
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00452ca6
mov esp, ebp
pop ebp
ret

Function at 0x422b40
Capabilities:
Create directory

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
test ecx, ecx
setle al
test al, al
je 0x422b77
push str.create_dir_is_empty
push str.Utils
push 0x4bb
push str.utilsUtils.cpp
push 4
call fcn.0040f8f0
push eax
call fcn.00402130
add esp, 0x18
xor al, al
pop esi
ret
cmp ecx, 1
jl 0x422b9d
mov eax, dword [esi]
push 1
lea eax, [eax + ecx*2]
add eax, 0xfffffffe
push 0x4814f0
push eax
call fcn.0045552b
add esp, 0xc
test eax, eax
sete al
test al, al
jne 0x422bb9
push 0x483200
mov ecx, esi
call fcn.004043a0
test al, al
jne 0x422bb9
push 0x4814f0
mov ecx, esi
call fcn.004041d0
mov eax, dword [esi]
test eax, eax
je 0x422bc5
cmp word [eax], 0
jne 0x422bca
mov eax, 0x481274
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov al, 1
pop esi
ret
Function at 0x422d20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x4926cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x68], ecx
call fcn.00422be0
mov dword [ebp - 0x64], eax
test eax, eax
jne 0x422d53
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452ca6
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x64]
call fcn.00422c60
mov edi, dword [ebp - 0x64]
push 1
push edi
lea eax, [ebp - 8]
push eax
mov ebx, 0x30
mov dword [ebp - 8], 0
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x422d85
mov esi, dword [ebp - 8]
mov ebx, 0x430
jmp 0x422d8a
xor esi, esi
mov dword [ebp - 8], esi
push 0x44
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.0045a8b0
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push esi
push ebx
push 0
push 0
push 0
push dword [ebp - 0x68]
xorps xmm0, xmm0
push 0
push edi
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x58], 0x483204
movq qword [ebp - 0x18], xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
test ebx, ebx
je 0x422de9
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp - 8]
test eax, eax
je 0x422df7
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00452ca6
mov esp, ebp
pop ebp
ret
Function at 0x422e10
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4708c2
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4926cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x483278
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [edi]
lea esi, [edi + 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], 1
mov dword [edi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push ecx
lea eax, [ecx - 0x18]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [eax + 4]
push esi
add ecx, edi
call fcn.0041fc10
mov dword [ebp - 4], 2
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.00423b50
lea eax, [esi + 4]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x4c], 0
mov byte [esi + 0x45], 0
lea ecx, [esi + 8]
mov dword [esi + 0x10], ecx
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x496984]
mov dword [esi + 0x50], 0
mov dword [esi + 0x48], eax
mov dword [esi + 0x40], 0
sub esp, 8
mov ecx, esi
push dword [ebp + 8]
mov byte [ebp - 4], 3
call fcn.00423920
test eax, eax
jne 0x422f74
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 0xc]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x422f62
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x422f74
push 0
call fcn.004027d0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x423df0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
xor esi, esi
call edi
push 8
pop ecx
test ax, ax
push 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x423e13
or esi, 1
push 1
call edi
test ax, ax
jns 0x423e1f
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x423e2b
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x423e37
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret

Function at 0x42470c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0xd8]
xor ebx, ebx
call fcn.00427a54
mov edi, dword [ebp + 8]
test eax, eax
jle 0x42475c
push ebx
mov byte [ebp + 0xb], 0
call fcn.004298c3
mov edx, dword [eax]
lea ecx, [ebp + 0xb]
push ecx
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 0xc]
push edi
call dword [edx]
cmp byte [ebp + 0xb], 0
jne 0x4247b7
lea ecx, [esi + 0xd8]
inc ebx
call fcn.00427a54
cmp ebx, eax
jl 0x42472b
sub edi, 0x100
je 0x42480f
sub edi, 4
je 0x4247bb
dec edi
dec edi
jne 0x424806
push dword [ebp + 0xc]
xor eax, eax
mov dword [ebp + 8], eax
call fcn.0046f490
pop ecx
mov ecx, dword [esi + 0x50]
push 0x8000000a
lea edx, [ebp + 8]
mov word [ebp + 8], ax
mov eax, dword [ecx]
push edx
push 0x427656
call dword [eax + 0xfc]
mov esi, eax
test esi, esi
je 0x424806
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xf0]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov al, 1
jmp 0x424808
cmp dword [esi + 0x54], 0
je 0x424806
xor eax, eax
push 7
pop ecx
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov word [ebp - 0xc], ax
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x68]
mov dword [ebp - 0x20], 6
mov dword [ebp - 0x10], eax
call fcn.00423df0
mov word [ebp - 0xa], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
lea edx, [ebp - 0x20]
push edx
call dword [eax + 0x108]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x424806
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x42485c
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x42485c
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xd4]
test al, al
je 0x42485c
mov ecx, dword [esi + 0x54]
push str.RichEditUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.00455005
pop ecx
pop ecx
test eax, eax
je 0x42485c
mov ecx, dword [esi + 0x54]
call fcn.00432359
test al, al
jne 0x424806
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setns al
movzx eax, al
push eax
mov ecx, esi
call fcn.00426977
jmp 0x4247b7
Function at 0x426568
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
push edi
mov ebx, ecx
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [ebx]
je 0x426588
push dword [ebx]
call dword [sym.imp.USER32.dll_SetFocus]
mov esi, dword [ebp + 8]
cmp esi, dword [ebx + 0x54]
je 0x426655
cmp dword [ebx + 0x54], 0
je 0x4265e2
push 7
pop ecx
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0x14
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x54]
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push edx
call dword [eax + 0x108]
xor edi, edi
push ecx
push edi
push edi
push str.killfocus
push dword [ebx + 0x54]
mov ecx, ebx
call fcn.00426b8b
mov dword [ebx + 0x54], edi
test esi, esi
je 0x426655
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, ebx
jne 0x426655
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc8]
test al, al
je 0x426655
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xd4]
test al, al
je 0x426655
push 7
pop ecx
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov dword [ebx + 0x54], esi
mov dword [esp + 0x10], 0x15
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x54]
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push edx
call dword [eax + 0x108]
push ecx
push 0
push 0
push str.setfocus
push dword [ebx + 0x54]
mov ecx, ebx
call fcn.00426b8b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x427b28
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x427b5a
xor eax, eax
inc eax
cmp byte [ebp + 0xc], 0
push 4
pop edx
cmovne edx, eax
xor eax, eax
cmp byte [ebp + 8], al
cmovne eax, edx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
Function at 0x42f414
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, ecx
call fcn.0042f4b5
push 0x482318
push 0x82
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x42f4b0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push esi
test ebx, ebx
jne 0x42f44d
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x42f4b0
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x42f45d
push esi
jmp 0x42f445
push edi
call fcn.004521af
pop ecx
push edi
push ebx
mov dword [0x496534], eax
mov dword [0x496538], edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [0x496534]
call fcn.004583d0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov edx, dword [0x496538]
mov ecx, dword [0x496534]
push 3
call fcn.00409180
pop ecx
mov dword [0x496544], eax
mov dword [0x4939a0], 4
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x42f59e
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x49653c]
push esi
push edi
xor edi, edi
mov esi, ecx
test eax, eax
je 0x42f5be
push eax
call fcn.00452ca1
pop ecx
mov dword [0x49653c], edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push esi
mov dword [0x496540], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42f5e6
xor al, al
jmp 0x42f644
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x42f605
push ebx
mov dword [ebp - 4], edi
call fcn.004521af
mov edi, eax
pop ecx
test edi, edi
jne 0x42f60e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42f632
push 0
lea eax, [ebp - 4]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x42f636
push edi
call fcn.00453897
pop ecx
xor al, al
jmp 0x42f643
mov dword [0x496540], eax
mov dword [0x49653c], edi
mov al, 1
pop ebx
pop edi
pop esi
leave
ret