joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421829
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
mov edx, 0x80
mov eax, dword [eax]
cmp dword [eax - 8], 5
jle 0x421868
mov cl, 0x31
cmp byte [eax], cl
je 0x421868
cmp byte [eax + 1], cl
jne 0x421848
add edx, 0x20
cmp byte [eax + 2], cl
jne 0x421850
or edx, 2
cmp byte [eax + 3], cl
jne 0x421858
or edx, 1
cmp byte [eax + 4], cl
jne 0x421860
or edx, 4
cmp byte [eax + 5], cl
jne 0x421868
or dh, 1
mov eax, dword [esp + 4]
push edx
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret

Function at 0x421ad8
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov eax, dword [eax]
mov bl, 0x31
or edi, 0xffffffff
xor esi, esi
mov cl, byte [eax]
cmp cl, bl
jne 0x421b22
cmp dword [ebp + 0x10], esi
jne 0x421b15
mov dl, 0x30
cmp byte [eax + 1], dl
jne 0x421b15
cmp byte [eax + 2], dl
jne 0x421b15
cmp byte [eax + 3], dl
jne 0x421b15
cmp byte [eax + 4], dl
jne 0x421b15
cmp byte [eax + 5], dl
jne 0x421b15
mov esi, 0x80
cmp cl, bl
jne 0x421b22
cmp dword [ebp + 0x10], 0
je 0x421b22
or esi, 0x10
cmp byte [eax + 1], bl
jne 0x421b2a
or esi, 0x20
cmp byte [eax + 2], bl
jne 0x421b32
or esi, 2
cmp byte [eax + 3], bl
jne 0x421b3a
or esi, 1
cmp byte [eax + 4], bl
jne 0x421b42
or esi, 4
cmp byte [eax + 5], bl
jne 0x421b4d
or esi, 0x100
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, esi
jne 0x421b60
push 1
jmp 0x421b6f
cmp dword [ebp + 0x10], 0
jne 0x421b70
or esi, 0x10
cmp eax, esi
jne 0x421b70
push 0xfffffffffffffffe
pop edi
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x422e8a
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x457b50
call fcn.004324bc
sub esp, 0x28
push ebx
push esi
mov esi, ecx
push edi
lea eax, [ebp - 0x20]
mov ecx, 0x474888
lea edi, [esi + 0x28]
push edi
push eax
call fcn.0041ac30
xor ebx, ebx
push eax
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.00448374
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00448287
push 0x4747d0
lea ecx, [ebp - 0x10]
call fcn.004482f5
lea eax, [esi + 0x2c]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.004218ea
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00448374
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00448287
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.00447ffc
lea eax, [ebp - 0x14]
push eax
call fcn.0040b60c
add esp, 4
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
mov byte [ebp - 4], 3
call fcn.00447ffc
call fcn.0040b3e4
cmp eax, ebx
pop ecx
jne 0x422f32
push 1
jmp 0x422f54
push 0x80
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push str.IMAGEHLP.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x20], eax
jne 0x422f5a
push 4
pop ebx
jmp 0x422fea
push str.BindImageEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push ebx
lea ecx, [ebp - 0x14]
mov edi, eax
call fcn.0044866b
push eax
push ebx
lea ecx, [ebp - 0x14]
call fcn.0044866b
push eax
push ebx
lea ecx, [ebp - 0x10]
call fcn.0044866b
push eax
push ebx
call edi
test eax, eax
je 0x422fde
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040dcec
pop ecx
test eax, eax
pop ecx
je 0x422fe1
lea eax, [ebp - 0x34]
push 0xa
push eax
push dword [ebp - 0x18]
call fcn.004332dd
add esp, 0xc
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x1c]
push eax
call fcn.004482f5
mov eax, dword [esi]
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, esi
mov byte [ebp - 4], 4
call dword [eax + 0x78]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00448287
jmp 0x422fe1
push 2
pop ebx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x14]
mov dword [esi + 0x18], ebx
mov byte [ebp - 4], 1
call fcn.00448287
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00448287
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x424ead
Capabilities:
Get file version info

Disassembly:
mov eax, 0x45815c
call fcn.004324bc
sub esp, 0x10
push ebx
push esi
push edi
xor esi, esi
lea ecx, [ebp + 8]
fldz
push esi
push esi
fstp qword [ebp - 0x1c]
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call fcn.0044866b
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, esi
jbe 0x424f74
lea eax, [edi + 1]
push eax
call fcn.004487e3
mov ebx, eax
pop ecx
cmp ebx, esi
je 0x424f74
push ebx
push edi
push esi
push esi
lea ecx, [ebp + 8]
call fcn.0044866b
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x424f6d
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x46f23c
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x424f6d
cmp dword [ebp - 0x10], esi
je 0x424f6d
mov edi, dword [ebp - 0x14]
cmp edi, esi
je 0x424f6d
fld qword [0x45c8b8]
push ecx
push ecx
fstp qword [esp]
fld qword [0x45c8b0]
push ecx
push ecx
fstp qword [esp]
call fcn.00433dc9
mov eax, dword [edi + 8]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0xc]
fild qword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
add esp, 0x10
fmulp st(1)
fild qword [ebp - 0x1c]
faddp st(1)
fstp qword [ebp - 0x1c]
push ebx
call fcn.0044880c
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00448287
mov ecx, dword [ebp - 0xc]
pop edi
fld qword [ebp - 0x1c]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x424f92
Capabilities:
Get file version info

Disassembly:
mov eax, 0x45818f
call fcn.004324bc
sub esp, 0x114
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x1c], ebx
push 0x4747d0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], ebx
call fcn.004482f5
push ebx
push ebx
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], ebx
call fcn.0044866b
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
jbe 0x425078
lea eax, [esi + 1]
push eax
call fcn.004487e3
mov edi, eax
pop ecx
cmp edi, ebx
je 0x425078
push edi
push esi
push ebx
push ebx
lea ecx, [ebp + 0xc]
call fcn.0044866b
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x425071
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x425071
cmp dword [ebp - 0x10], ebx
je 0x425071
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x120]
push str.StringFileInfo_04x_04xFileVersion
push eax
call fcn.00433fcd
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x120]
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x425071
cmp dword [ebp - 0x10], ebx
je 0x425071
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.004483c4
push edi
call fcn.0044880c
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.00447ffc
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00448287
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call fcn.00448287
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x42565d
Capabilities:
Copy file

Disassembly:
mov eax, 0x4581fc
call fcn.004324bc
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
mov eax, dword [esi]
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x425686
xor eax, eax
jmp 0x4256d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x4256cd
cmp dword [ebp + 0x14], 0
je 0x4256c9
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push esi
call fcn.00447ffc
and dword [ebp - 4], 0
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push edi
call fcn.00447ffc
or dword [ebp - 4], 0xffffffff
call fcn.0040c691
neg eax
sbb eax, eax
pop ecx
and al, 0xfe
pop ecx
add eax, 3
jmp 0x4256d0
push 2
jmp 0x4256cf
push 3
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x4299c1
Capabilities:
Delete file
Set file attributes

Disassembly:
mov eax, 0x458ca4
call fcn.004324bc
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
lea eax, [ebp - 0x14]
xor ebx, ebx
lea edi, [esi + 0x28]
mov ecx, 0x474888
push edi
push eax
mov dword [esi + 0x44], ebx
call fcn.0041ac30
push eax
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.00448374
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00448287
lea eax, [esi + 0x2c]
push eax
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.004218ea
add esp, 8
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov dword [ebp - 4], 1
call fcn.00447ffc
call fcn.0040b3e4
cmp eax, ebx
pop ecx
je 0x429a9c
push 0x80
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x429a98
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x429a46
xor edi, edi
jmp 0x429a9f
push 4
pop edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x429a59
cmp eax, 0x20
jne 0x429a9f
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00447ffc
call fcn.0040b3e4
cmp eax, ebx
pop ecx
je 0x429a9c
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00447ffc
call fcn.0040c9ca
pop ecx
lea eax, [ebp - 0x10]
mov ecx, dword [ebp + 8]
push 3
pop edi
push eax
call fcn.00445c02
jmp 0x429a9f
push 5
jmp 0x429a9e
push 2
pop edi
cmp dword [esi + 0x58], ebx
je 0x429ad0
cmp edi, ebx
je 0x429aad
cmp edi, 2
jne 0x429ad0
push ecx
lea eax, [ebp - 0x10]
mov ebx, esp
mov dword [ebp + 8], esp
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call fcn.00447ffc
push ebx
call fcn.0040b60c
pop ecx
pop ecx
call fcn.0040c18a
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov dword [esi + 0x18], edi
call fcn.00448287
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x42e50c
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x459c28
call fcn.004324bc
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
jne 0x42e525
push 1
pop eax
mov dword [esi + 0x18], eax
jmp 0x42e612
lea edi, [esi + 0x28]
lea eax, [ebp - 0x14]
push edi
push eax
mov ecx, 0x474888
call fcn.0041ac30
push eax
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.00448374
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00448287
lea eax, [esi + 0x2c]
push eax
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.004218ea
add esp, 8
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov dword [ebp - 4], 1
call fcn.00447ffc
call fcn.0040b3e4
cmp eax, ebx
pop ecx
jne 0x42e582
xor edi, edi
jmp 0x42e601
push 0x80
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x42e59e
push 3
pop eax
mov dword [esi + 0x18], eax
mov edi, eax
jmp 0x42e604
cmp dword [esi + 0x68], ebx
je 0x42e5dc
lea eax, [esi + 0x64]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00421877
mov eax, dword [eax]
mov edx, dword [esi + 0x58]
pop ecx
pop ecx
push dword [ebp - 0x10]
mov ecx, dword [esi + 0x5c]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [ebp - 0x18]
mov edi, eax
call fcn.00448287
neg edi
sbb edi, edi
and edi, 0xfffffffd
add edi, 5
jmp 0x42e601
push dword [ebp - 0x10]
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x58]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push ebx
push eax
push ecx
call edi
test eax, eax
je 0x42e5fe
push dword [ebp - 0x10]
push ebx
push ebx
push ebx
call edi
jmp 0x42e57e
push 4
pop edi
mov dword [esi + 0x18], edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00448287
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x42fb85
Capabilities:
Delete directory
Set file attributes

Disassembly:
mov eax, 0x45a070
call fcn.004324bc
sub esp, 0xc
push esi
mov esi, ecx
push edi
and dword [esi + 0x44], 0
cmp dword [esi + 0x40], 0
jne 0x42fb9e
push 1
pop eax
mov dword [esi + 0x18], eax
jmp 0x42fc5a
lea edi, [esi + 0x28]
lea eax, [ebp - 0x14]
push edi
push eax
mov ecx, 0x474888
call fcn.0041ac30
and dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.00448374
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00448287
lea eax, [esi + 0x2c]
push eax
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.004218ea
add esp, 0xc
push 0x80
mov dword [ebp - 4], 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x42fc46
cmp dword [esi + 0x60], 0
jne 0x42fc29
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x42fc09
xor edi, edi
jmp 0x42fc49
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00447ffc
call fcn.0040c9ca
neg eax
pop ecx
sbb eax, eax
add eax, 3
mov edi, eax
jmp 0x42fc49
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00447ffc
call fcn.0040c18a
neg eax
sbb eax, eax
pop ecx
and al, 0xfd
jmp 0x42fc22
push 4
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov dword [esi + 0x18], edi
call fcn.00448287
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x430304
Capabilities:
Delete file
Set file attributes

Disassembly:
mov eax, 0x45a1f0
call fcn.004324bc
sub esp, 0xc
push esi
mov esi, ecx
push edi
lea eax, [ebp - 0x14]
lea edi, [esi + 0x28]
mov ecx, 0x474888
push edi
push eax
call fcn.0041ac30
and dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.00448374
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00448287
mov eax, dword [0x470b50]
mov dword [ebp - 0x10], eax
cmp dword [ebp + 8], 0
lea eax, [esi + 0x2c]
push eax
mov dword [ebp - 4], 1
push edi
je 0x4303d9
lea eax, [ebp + 8]
push eax
call fcn.004218ea
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00448374
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00448287
push ecx
lea eax, [ebp - 0x10]
mov edi, esp
mov dword [ebp - 0x14], esp
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call fcn.00447ffc
push edi
call fcn.0040be4f
add esp, 4
lea eax, [ebp - 0x10]
mov edi, esp
mov dword [ebp - 0x18], esp
push ecx
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00447ffc
push edi
call fcn.0040b60c
pop ecx
lea eax, [ebp + 8]
pop ecx
mov byte [ebp - 4], 1
push eax
call fcn.0040de27
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.00448374
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
jmp 0x4303f9
lea eax, [ebp + 8]
push eax
call fcn.004218ea
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.00448374
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00448287
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00447ffc
call fcn.0040b3e4
test eax, eax
pop ecx
je 0x430449
cmp dword [esi + 0x44], 0
jne 0x430449
push 0x80
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x430445
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, eax
neg edi
sbb edi, edi
and edi, 0xfffffffe
inc edi
inc edi
jmp 0x43044c
push 3
jmp 0x43044b
push 1
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov dword [esi + 0x18], edi
call fcn.00448287
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret 4

Function at 0x433010
Capabilities:
Encode data using xor

Disassembly:
imul eax, ecx, 0x437fafe9
mov eax, 0xd1a66634
and ebp, edi
push 0
pop ebp
and bh, dl
xor al, 0x3b
cmp eax, 0xafe250aa
or ah, bl
test dl, ch
add ebp, 0xfffff808
add cl, al
lea esi, [0xe30c4e59]
add ebp, 0x7f9
dec esi
cmp ah, al
xchg bh, ch
movsx ecx, cx
sub ebx, 0x8166b0fd
or al, 0x4b
cmp ebp, 0x233
jbe 0x432ffc
mov al, 5
push 0xb08d6
push 0x468aef
jae 0x433050
dec ebx
movsx eax, cl
mov bl, cl
push edx
jmp 0x433058
ret
Function at 0x43794a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x471910
cmp edx, dword [eax]
je 0x43796c
add eax, 8
inc ecx
cmp eax, 0x4719a0
jl 0x43795d
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x471910]
jne 0x437a9a
mov eax, dword [0x477250]
cmp eax, 1
je 0x437a74
test eax, eax
jne 0x43799d
cmp dword [0x471224], 1
je 0x437a74
cmp edx, 0xfc
je 0x437a9a
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4379d4
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00433af0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00438220
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x437a17
lea eax, [ebp - 0x1a4]
push eax
call fcn.00438220
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x45f138
push edi
call fcn.0043b760
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00433af0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00433b00
lea eax, [ebp - 0xa0]
push 0x45f118
push eax
call fcn.00433b00
push dword [esi + 0x471914]
lea eax, [ebp - 0xa0]
push eax
call fcn.00433b00
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0043b6ce
add esp, 0x2c
pop edi
jmp 0x437a9a
lea eax, [ebp + 8]
lea esi, [esi + 0x471914]
push 0
push eax
push dword [esi]
call fcn.00438220
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]
pop esi
leave
ret
Function at 0x443e60
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004329b0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x443f2b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x443f2b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x443ede
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x443ee9
or bh, 8
and edi, 0x8000000
je 0x443f04
mov eax, dword [0x478a3c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x443f2b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x444300
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x44432b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x44434f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x44436a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20