joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5298f9
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472754
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4a2008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xorps xmm0, xmm0
push 1
movups xmmword [esi], xmm0
push 0x48f868
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.0055cde9
mov dword [ebp - 4], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov byte [ebp - 4], 1
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [ebp - 4], 2
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov byte [ebp - 4], 3
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov byte [ebp - 4], 4
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov byte [ebp - 4], 5
mov ecx, dword [0x4a2a48]
mov eax, dword [0x4a2a4c]
add ecx, 1
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
adc eax, 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [0x4a2a4c], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], ecx
mov eax, dword [esi + 0x20]
sub eax, dword [esi + 0x18]
sar eax, 3
mov dword [0x4a2a48], ecx
cmp eax, 0x64
jae 0x529a1c
push ecx
lea ecx, [esi + 0x18]
call fcn.00549119
mov eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x24]
sar eax, 3
cmp eax, 0x14
jae 0x529a33
push ecx
lea ecx, [esi + 0x24]
call fcn.00549029
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x52f2ef
Capabilities:
Encode data using xor

Disassembly:
add al, 0x28
cld
outsd dx, dword [esi]
and al, 0xc
enter 0x56ff, 0xffffffffffffffb7
push esp
sal dword [esi - 0x20], 1
salc
push 0xffffffffffffffe8
dec esi
add ebp, dword [edi]
invalid
Function at 0x538019
Capabilities:
Encode data using xor

Disassembly:
movsb byte es:[edi], byte [esi]
mov ss, word [ebx + 0x3a]
xchg esp, eax
invalid
jo 0x537f21
or bh, byte [ebx]
dec esi
aam 0xd6
fistp word [esi]
inc ebp
and bl, byte [ecx]
aas
add eax, 0x44755d4
and edx, dword [ebp - 0x573dee41]
cdq
pop ds
wait
dec edx
ja 0x537fc2
pop ds
add al, 0xf
fistp dword [ebp - 0xb]
sub dword [ebp - 0x68bd2a22], esp
insd dword es:[edi], dx
je 0x537f28
lcall 0x75a1, 0x5b07b5a9
std
mov edi, 0xdba05792
cmp eax, 0x8afc0335
cmpsb byte [esi], byte es:[edi]
sub eax, esp
mov edi, 0xeb243dc2
jle 0x537f4e
mov bl, 0xaf
lodsd eax, dword [esi]
and esi, dword ds:[ebx]
stc
out 0x4f, al
lodsd eax, dword [esi]
mov esp, 0x95a30267
int 0x4b
dec edi
mov ecx, 0xf761a419
daa
int 0x78
invalid
inc dword [ebp + ebx*8 - 0x5181dc1e]
pop ebx
pop dword [eax]
jg 0x537f31
mov esi, 0xc93ca256
jns 0x537ff9
jl 0x537fee
int 0x2f
xchg byte [ebp + 0x2d], bl
not byte [edi]
test al, 0x81
cmp dh, byte [esi + 0x4e]
inc ebp
fist word [edx]
out 0xb6, ax
mov esp, 0xc9f927f7
add dword [ebp - 0x73], 0x77
mov bl, 0xb8
inc esp
xchg byte [ebp + esi*2 + 0x62473a35], dl
inc ebp
lea esi, [edi - 0x4d]
mov eax, 0x75948644
xor eax, 0xdc62473a
leave
xchg esp, eax
jne 0x537ffa
cmp al, byte [edi + 0x62]
fmul st(1), st(0)
jnp 0x537f8e
popfd
aam 0xf4
in al, 0x5c
push esp
salc
cmp al, 0xb5
and edi, dword [eax + 0x4f]
jno 0x538040
pushfd
inc edi
mov dword [ecx], eax
mov eax, dword [0x7c953d03]
invalid
das
xor eax, 0x2a3a7420
cmp ch, byte [edx]
push esi
xchg esp, eax
jno 0x537fea
nop
invalid
push edi
dec ecx
mov ebx, 0xa3bfbc8f
dec ebp
mov edx, 0x991eca4b
fst qword [ebp + esi - 0x2a]
pminsw mm7, qword [esi + eax*8]
cmp byte [edx + ebp*8 - 0x16375d4], dh
jb 0x537fcc
xchg edx, eax
out 0x94, eax
xchg esp, eax
xchg esp, eax
out dx, al
insd dword es:[di], dx
jne 0x537fbb
cmp dh, cl
pop edi
mov esi, 0x6c3f31b6
wait
pop esp
pop esi
inc ebx
or al, 0x5a
adc eax, 0x66ad820a
int3
mov byte [edi], al
pop edi
in al, 0xff
stosb byte es:[edi], al
outsb dx, byte [esi]
sub byte [ecx + esi], cl
sahf
or eax, dword [ecx - 0x3e687414]
add al, 0x46
test edi, ebx
push es
or cl, byte [ecx + 0x4e5f77b3]
cmp dl, byte [eax - 0x2d]
jle 0x53800e
invalid
Function at 0x572f09
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472754
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4a2008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xorps xmm0, xmm0
push 1
movups xmmword [esi], xmm0
push 0x48f868
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.005a63f9
mov dword [ebp - 4], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov byte [ebp - 4], 1
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [ebp - 4], 2
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov byte [ebp - 4], 3
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov byte [ebp - 4], 4
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov byte [ebp - 4], 5
mov ecx, dword [0x4a2a48]
mov eax, dword [0x4a2a4c]
add ecx, 1
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
adc eax, 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [0x4a2a4c], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], ecx
mov eax, dword [esi + 0x20]
sub eax, dword [esi + 0x18]
sar eax, 3
mov dword [0x4a2a48], ecx
cmp eax, 0x64
jae 0x57302c
push ecx
lea ecx, [esi + 0x18]
call fcn.00592729
mov eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x24]
sar eax, 3
cmp eax, 0x14
jae 0x573043
push ecx
lea ecx, [esi + 0x24]
call fcn.00592639
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5dbeb9
Capabilities:
Encode data using xor

Disassembly:
fstp dword [edi]
stosb byte es:[edi], al
inc esp
ror dword [ecx - 0x65ebc88c], 1
pop esi
pop esp
add ch, bl
mov al, 0x6c

Function at 0x64d09d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x654338
cmp edx, dword [eax]
je 0x64d0bf
add eax, 8
inc ecx
cmp eax, 0x6543c8
jl 0x64d0b0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x654338]
jne 0x64d1ed
mov eax, dword [0xa57c90]
cmp eax, 1
je 0x64d1c7
test eax, eax

Function at 0x64d0e1
Capabilities:
Write file on windows

Disassembly:
jne 0x64d0f0
cmp dword [0x654264], 1
je 0x64d1c7
cmp edx, 0xfc
je 0x64d1ed
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x64d127
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0064da80
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0064df10
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x64d16a
lea eax, [ebp - 0x1a4]
lea eax, [ebp + 8]
lea esi, [esi + 0x65433c]
push 0
push eax
push dword [esi]
call fcn.0064df10
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
Function at 0x4068db
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068ff
xor eax, eax
test eax, eax
je 0x406912
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406912
xor ecx, ecx
jmp 0x406915
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406a38
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43110c], 0
push esi
jne 0x406a6f
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a49
mov dword [ecx*4 + 0x431108], eax
inc ecx
cmp ecx, 0x100
jl 0x406a44
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406aa0
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431108]
xor eax, esi
inc ecx
dec edx
jne 0x406a82
pop edi
not eax
pop esi
ret 0xc

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00431219
Function at 0x1000b7a1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x10012385
call fcn.1001109f
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x428], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
test edi, edi
je 0x1000b97f
push edi
call dword [sym.imp.MSVCR120.dll_wcslen]
inc eax
push 2
push eax
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x41c]
push eax
call fcn.1000dda9
add esp, 0x10
test eax, eax
js 0x1000b979
mov esi, dword [ebp - 0x41c]
cmp esi, 0x400
jg 0x1000b83d
push esi
call fcn.10006ae7
pop ecx
test al, al
je 0x1000b83d
mov eax, esi
call fcn.100110e0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x1000b849
push esi
lea ecx, [ebp - 0x428]
call fcn.1000dda9
push 3
push esi
push edi
push eax
call fcn.1000dda9
mov esi, eax
test esi, esi
je 0x1000b979
push 0x60
push ebx
push esi
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x41c], edi
test edi, edi
jne 0x1000b895
push 2
push ebx
push esi
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x41c], eax
test edi, edi
jne 0x1000b895
call fcn.10002f77
mov esi, eax
jmp 0x1000b95e
push dword [ebp - 0x420]
push dword [ebp - 0x424]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x1000b8b8
call fcn.10002f77
jmp 0x1000b951
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x1000b8ae
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x424], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x1000b8e8
mov esi, 0x8007000e
jmp 0x1000b953
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.1000dda9
jmp 0x1000b90e
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x1000b8e1
push esi
push dword [ebp - 0x420]
push esi
push dword [ebp - 0x418]
call fcn.1000dda9
mov eax, dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
add esp, 0x10
mov byte [eax + esi], bl
push dword [ebp + 0x14]
push dword [ebp - 0x418]
call fcn.1000dda9
mov esi, eax
test edi, edi
je 0x1000b95e
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1000b999
lea ecx, [ebp - 0x418]
call fcn.1000af68
jmp 0x1000b999
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
cmp ebx, eax
je 0x1000b994
lea ecx, [ebp - 0x418]
call fcn.1000af68
mov esi, 0x8007000e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
call fcn.10001f09
mov eax, esi
lea esp, [ebp - 0x440]
call fcn.10010ff1
ret 0x10
Function at 0x1000d27a
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x3c
push ebx
mov ebx, dword [sym.imp.MSVCR120.dll__wcsicmp]
push esi
mov esi, dword [eax + 8]
push edi
mov edi, dword [ebp + 0x10]
add esi, 0x568
push 0x100144f0
push edi
call ebx
pop ecx
pop ecx
test eax, eax
je 0x1000d2fd
push str.file:__
push edi
call ebx
pop ecx
pop ecx
test eax, eax
je 0x1000d2fd
push dword [ebp + 0xc]
push edi
call ebx
pop ecx
pop ecx
test eax, eax
je 0x1000d2fd
push 0x38
xor ebx, ebx
mov dword [ebp - 0x3c], 0x3c
lea eax, [ebp - 0x38]
push ebx
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
push ebx
push ebx
push edi
call dword [sym.imp.wininet.dll_InternetCrackUrlW]
test eax, eax
je 0x1000d300
mov eax, dword [ebp - 0x30]
cmp eax, 1
je 0x1000d2f9
add eax, 0xfffffffd
cmp eax, 1
ja 0x1000d300
mov esi, edi
jmp 0x1000d300
mov esi, dword [ebp + 0xc]
push esi
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call fcn.1000dda9
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x4019e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
mov ebx, edx
sub esp, 0x5c
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x401bc0
mov edx, eax
lea esi, [ebp - 0x24]
cmp ebx, 0x11
je 0x401b70
mov eax, dword [0x410cb0]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x40], edx
mov dword [esp + 0xc], esi
mov esi, dword [sym.imp.user32.dll_SendMessageW]
mov dword [ebp - 0x1c], sym._stream_out_16
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x44a
mov dword [esp], eax
call esi
mov edx, dword [ebp - 0x40]
sub esp, 0x10
mov dword [ebp - 0x3c], eax
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [0x410cb0]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetFocus]
mov ecx, dword [ebp - 0x3c]
sub esp, 4
test ecx, ecx
je 0x401b30
xor eax, eax
movzx edx, word [edi + eax]
add eax, 2
mov word [eax + 0x411a7e], dx
test dx, dx
jne 0x401aa0
mov eax, 0x411a80
call sym._set_caption
mov eax, dword [0x410cb0]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb9
mov dword [esp], eax
call esi
mov dword [0x410c40], ebx
sub esp, 0x10
call sym._set_bar_states
call sym._set_default_font
mov eax, dword [0x410c40]
mov dword [esp], eax
call sym._reg_formatindex
mov eax, dword [eax*4 + 0x411860]
mov dword [esp + 4], eax
mov eax, dword [0x410cb8]
mov dword [esp], eax
call sym._target_device
mov ecx, 1
lea esp, [ebp - 0xc]
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
mov dword [esp + 8], eax
mov eax, dword [0x410cb0]
mov dword [ebp - 0x28], 0x4b0
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x45f
mov dword [esp], eax
call esi
mov ecx, dword [ebp - 0x3c]
sub esp, 0x10
test eax, eax
je 0x401a9e
jmp 0x401b1c
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 2
mov dword [esp + 4], 0x41c3a0
mov dword [esp], eax
mov dword [ebp - 0x3c], eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov edx, dword [ebp - 0x3c]
sub esp, 0x14
cmp dword [ebp - 0x24], 2
je 0x401a40
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_CloseHandle]
xor ecx, ecx
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 5
mov dword [esp + 0xc], 0x30
sete al
mov dword [esp + 8], 0x41c450
movzx eax, al
add eax, 0x6ab
mov dword [esp + 4], eax
mov eax, dword [0x410cb8]
mov dword [esp], eax
call dword [sym.imp.user32.dll_MessageBoxW]
xor ecx, ecx
sub esp, 0x10
jmp 0x401b1c
Function at 0x408320
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x40837b
cmp byte [esi + ebx - 1], 0xa
je 0x40834f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x410dd8], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x408f60
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xac
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov dword [0x410de0], 1
mov dword [0x410df8], 0
mov esi, eax
mov eax, dword [ebp + 0xc]
sub esp, 4
mov dword [0x410dfc], 0
mov dword [0x410e40], eax
mov eax, dword [ebp + 8]
mov dword [0x410e38], 0
mov dword [0x410e3c], 0
mov dword [esp + 4], 0x7d4
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetDlgItem]
mov ecx, 0x3f2
mov edx, 0x5a8
sub esp, 8
mov ebx, eax
xor eax, eax
cmp dword [0x410de4], 1
mov dword [esp], 6
setg al
mov edi, eax
mov eax, ebx
add edi, 0x5ab
call sym._AddTextButton
mov dword [esp], 7
mov eax, ebx
mov ecx, 0x3f9
mov edx, 0x5a9
call sym._AddTextButton
mov dword [esp], 8
mov eax, ebx
mov ecx, 0x3fa
mov edx, 0x5aa
call sym._AddTextButton
mov dword [esp], 9
mov edx, edi
mov eax, ebx
mov ecx, 0x3fb
call sym._AddTextButton
mov dword [esp], 0xa
mov eax, ebx
mov ecx, 0x3fc
mov edx, 0x5ad
call sym._AddTextButton
mov dword [esp], 0xb
mov eax, ebx
mov ecx, 0x3fd
mov edx, 0x5ae
call sym._AddTextButton
mov dword [esp], 0xc
mov ecx, 0x3e8
mov eax, ebx
mov edx, 0x5af
call sym._AddTextButton
mov edi, dword [sym.imp.user32.dll_CreateWindowExW]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x50000000
mov dword [esp + 8], 0
mov dword [esp + 4], 0x41311e
mov dword [esp], 0
call edi
mov dword [ebp - 0x7c], 0x50
sub esp, 0x30
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x78], 0x371
mov dword [ebp - 0x74], 0x140
mov dword [ebp - 0x54], 0x16
mov dword [ebp - 0x44], 0x16
mov dword [ebp - 0x58], 0x5a
mov dword [ebp - 0x50], 0x5a
mov dword [ebp - 0x38], 0x64
mov dword [ebp - 0x48], 0xd
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x40a
call dword [sym.imp.user32.dll_SendMessageW]
mov eax, dword [ebp + 8]
sub esp, 0x10
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0x7e0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0xa
mov dword [esp + 0x18], 0xc8
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x50300000
mov dword [esp + 8], 0
mov dword [esp + 4], str.PrtPreview
mov dword [esp], 0
call edi
sub esp, 0x30
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x409220
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._main
mov dword [esp], eax
call sym._exit
nop
nop
Function at 0x40ba80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x20
mov ebx, dword [sym.imp.user32.dll_SendMessageW]
cmp word [0x411a80], 0
jne 0x40bad8
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 8
mov ebx, dword [sym.imp.user32.dll_SendMessageW]
mov dword [esp + 8], eax
mov eax, dword [0x410cb0]
mov dword [ebp - 0xc], 0x4b0
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x45f
mov dword [esp], eax
call ebx
sub esp, 0x10
test eax, eax
je 0x40bbe0
mov eax, dword [0x410cb0]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb8
mov dword [esp], eax
call ebx
sub esp, 0x10
test eax, eax
je 0x40bbe0
cmp word [0x411a80], 0
movzx eax, word [0x411880]
mov ebx, 0x411880
jne 0x40bbf0
test ax, ax
je 0x40bc30
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x40bb30
sub eax, ebx
sar eax, 1
cmp word [0x412900], 0
je 0x40bb63
mov edx, 0x412900
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x40bb50
sub edx, 0x412900
sar edx, 1
add eax, edx
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_calloc]
mov esi, eax
test eax, eax
je 0x40bc7c
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x412900
mov dword [esp], eax
call dword [sym.imp.user32.dll_wsprintfW]
mov eax, dword [0x410cb8]
mov dword [esp + 4], esi
mov dword [esp + 0xc], 0x33
mov dword [esp + 8], 0x41c450
mov dword [esp], eax
call dword [sym.imp.user32.dll_MessageBoxW]
sub esp, 0x10
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
cmp ebx, 6
je 0x40bc40
xor eax, eax
cmp ebx, 7
sete al
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
lea esp, [ebp - 8]
mov eax, 1
pop ebx
pop esi
pop ebp
ret
mov ebx, 0x411a80
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
jne 0x40bbf8
cmp ebx, 0x411a80
jbe 0x40bc30
lea esi, [esi]
cmp ax, 0x5c
je 0x40bc70
cmp ax, 0x2f
je 0x40bc70
sub ebx, 2
movzx eax, word [ebx]
cmp ebx, 0x411a80
ja 0x40bc10
jmp 0x40bb1f
xor eax, eax
jmp 0x40bb3d
cmp word [0x411a80], 0
je 0x40bc60
mov edx, dword [0x410c40]
lea esp, [ebp - 8]
mov eax, 0x411a80
pop ebx
pop esi
pop ebp
jmp sym._DoSaveFile
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
jmp sym._DialogSaveFile
movzx eax, word [ebx + 2]
add ebx, 2
jmp 0x40bb1f
xor eax, eax
jmp 0x40bbd0